/* ═══════════════════════════════════════════════
   DARK ARENA — Main Stylesheet
   Dark Fantasy Web3 Card Game
═══════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.btn, button {
  min-height: 44px;
  touch-action: manipulation;
}

.card-atk, .card-hp, .card-mana,
.end-turn-btn, .auto-btn {
  min-height: unset;
}

:root {
  --purple:       #7b2fff;
  --purple-deep:  #4a0e8f;
  --purple-glow:  rgba(123,47,255,0.4);
  --purple-dim:   rgba(123,47,255,0.15);
  --gold:         #d4a843;
  --gold-light:   #f0c96a;
  --red:          #e02020;
  --red-glow:     rgba(224,32,32,0.4);
  --bg-void:      #050308;
  --bg-deep:      #0a0514;
  --bg-dark:      #100920;
  --bg-card:      #130d2a;
  --bg-panel:     rgba(255,255,255,0.03);
  --border:       rgba(123,47,255,0.25);
  --border-gold:  rgba(212,168,67,0.4);
  --text:         #e8deff;
  --text-muted:   rgba(232,222,255,0.55);
  --text-dim:     rgba(232,222,255,0.3);
  --font-display: 'Cinzel', serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-text:    'Crimson Text', serif;
  --nav-h:        72px;
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.25s ease;
  --landing-card-width-desktop: 160px;
  --landing-card-width-tablet: 145px;
  --landing-card-width-mobile: 132px;
  --landing-card-art-ratio: 3 / 4;
  --landing-card-meta-padding: 7px 8px 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.inline-token-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
}
.icon-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
  flex-shrink: 0;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ─── */
.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #7b2fff, #4a0e8f);
  color: #fff;
  border: 1px solid var(--purple);
  box-shadow: 0 0 24px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #9146ff, #6020c0);
  box-shadow: 0 0 40px var(--purple-glow), 0 4px 20px rgba(123,47,255,0.5);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(232,222,255,0.3);
}
.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 16px var(--purple-dim);
}

.btn--purple {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn--purple:hover { background: var(--purple); color: #fff; }

.btn--sm  { padding: 8px 18px; font-size: 11px; }
.btn--lg  { padding: 16px 40px; font-size: 14px; }
.btn--xl  { padding: 20px 56px; font-size: 16px; }

.btn__icon { font-size: 1.1em; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(5,3,8,0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-img { height: 40px; width: auto; }
.nav__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo-icon-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav__logo-title-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.4));
  transition: filter 0.2s ease;
}
.nav__logo-link:hover .nav__logo-title-img {
  filter: drop-shadow(0 0 16px rgba(212,168,67,0.7));
}
.nav__logo-fallback,
.nav__logo-text,
.nav__logo-icon:not(img) { display: none !important; }
.nav__logo-icon .icon-svg { width: 1.5rem; height: 1.5rem; margin: 0; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color var(--transition);
  border-radius: var(--radius);
}
.nav__link:hover, .nav__link--active { color: var(--gold); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__social-link {
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__social-link:hover { color: var(--purple); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5,3,8,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav__mobile.active { display: flex; }
.nav__mobile-link {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav__mobile-link:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: max(100vh, 700px);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050308;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}
.hero__bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(5,3,8,1.00)  0%,
      rgba(5,3,8,0.95) 15%,
      rgba(5,3,8,0.80) 25%,
      rgba(5,3,8,0.40) 38%,
      rgba(5,3,8,0.00) 50%,
      rgba(5,3,8,0.00) 100%),
    linear-gradient(to bottom,
      rgba(5,3,8,0.70)  0%,
      rgba(5,3,8,0.20)  8%,
      rgba(5,3,8,0.00) 20%,
      rgba(5,3,8,0.00) 75%,
      rgba(5,3,8,0.80) 90%,
      rgba(5,3,8,1.00) 100%),
    linear-gradient(to left,
      rgba(5,3,8,0.30)  0%,
      rgba(5,3,8,0.00) 15%,
      rgba(5,3,8,0.00) 100%);
}
.hero__bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__character {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 220px;
  max-width: 52%;
  margin-left: 0;
}
.hero__content::before {
  content: '';
  position: absolute;
  inset: -40px -60px -40px -80px;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(5,3,8,0.5) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.hero__eyebrow-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.hero__eyebrow-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.hero__logo-img-wrap {
  margin-bottom: 16px;
}
.hero__logo-img {
  width: clamp(320px, 55vw, 700px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(212,168,67,0.4))
          drop-shadow(0 0 80px rgba(212,168,67,0.2));
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.25em;
  color: rgba(232,222,255,0.75);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero__desc {
  font-family: var(--font-text);
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(232,222,255,0.80);
  margin-bottom: 36px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__stat { text-align: center; }
.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}
.hero__stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero features bar */
.hero__features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,5,20,0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 3;
}
.hero__features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-right: 1px solid var(--border);
}
.hero__feature:last-child { border-right: none; }
.hero__feature-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 10px;
}
.hero__feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}
.hero__feature strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.hero__feature span {
  display: block;
  font-size: 13px;
  color: rgba(232,222,255,0.65);
  line-height: 1.5;
}

/* ─── SECTIONS ─── */
.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.section__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── GAME OVERVIEW ─── */
.game-overview {
  background: var(--bg-deep);
}
.game-overview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* Game Loop */
.game-loop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.game-loop__step {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(123,47,255,0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
}
.game-loop__step:hover {
  border-color: rgba(212,168,67,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(123,47,255,0.15);
}
.game-loop__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(123,47,255,0.7);
  margin-bottom: 16px;
  display: block;
}
.game-loop__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.game-loop__step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.game-loop__step p {
  font-size: 14px;
  color: rgba(232,222,255,0.65);
  line-height: 1.6;
}
.game-loop__arrow {
  flex-shrink: 0;
  opacity: 0.6;
  width: 20px;
  height: 2px;
  background: var(--purple);
  position: relative;
}
.game-loop__arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--purple);
  border-right: 2px solid var(--purple);
  transform: translateY(-50%) rotate(45deg);
}

/* Panels grid */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.panel:hover { border-color: rgba(123,47,255,0.5); }
.panel__inner { padding: 24px; }
.panel__title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(123,47,255,0.2);
}
.panel__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.panel__text {
  font-size: 14px;
  color: rgba(232,222,255,0.65);
  margin-bottom: 16px;
  line-height: 1.65;
}

/* Card frame showcase */
.panel--card .panel__inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.card-showcase {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}
.card-frame {
  width: 150px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #1a0533, #0d0220);
  border: 2px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(212,168,67,0.15),
    0 8px 32px rgba(0,0,0,0.6),
    0 0 24px rgba(212,168,67,0.1);
}
.card-frame__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.card-frame__mana {
  position: absolute;
  top: 6px; left: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5fff, #0a3aaa);
  border: 1px solid #4d8fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}
.card-frame__atk {
  position: absolute;
  bottom: 6px; left: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #aa3300);
  border: 1px solid #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}
.card-frame__hp {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cc55, #006622);
  border: 1px solid #00cc55;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}
.card-frame__footer       { display: none !important; }
.card-frame__name-overlay { display: none !important; }
.card-frame__desc         { display: none !important; }
.card-frame__name         { display: none !important; }
.card-frame__stats        { display: none !important; }

/* Card hero stats (below card) */
.card-hero-stats {
  width: 100%;
  text-align: center;
}
.card-hero-stats__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.card-hero-stats__rarity {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #949494;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card-hero-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.card-hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(123,47,255,0.15);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: left;
}
.card-hero-stat__label {
  font-size: 9px;
  color: rgba(232,222,255,0.4);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}
.card-hero-stat__val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* Roadmap mini */
.roadmap-mini { margin-bottom: 16px; }
.roadmap-mini__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.roadmap-mini__item:last-child { border-bottom: none; }
.roadmap-mini__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.roadmap-mini__item--done .roadmap-mini__dot { background: var(--purple); border-color: var(--purple); }
.roadmap-mini__item--active .roadmap-mini__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.roadmap-mini__item strong { display: block; color: var(--text); }
.roadmap-mini__item span { color: var(--text-muted); }

/* Token display */
.token-display {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 14px;
}
.token-display__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.token-display__fallback {
  width: 56px;
  height: 56px;
  background: var(--purple);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 0 16px var(--purple-glow));
}

/* ─── CARDS SECTION ─── */
.cards-section {
  background: var(--bg-void);
  border-top: 1px solid var(--border);
}

.card-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.card-tab {
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.card-tab:hover { color: var(--text); }
.card-tab--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
  align-items: start;
}

/* Individual card component */
.game-card {
  background: linear-gradient(145deg, #1a0533, #0d0220);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212,168,67,0.25);
}
.game-card--common    { border-color: rgba(148,148,148,0.5); }
.game-card--uncommon  { border-color: rgba(0,200,100,0.5); }
.game-card--rare      { border-color: rgba(0,130,255,0.5); }
.game-card--epic      { border-color: rgba(140,0,255,0.6); }
.game-card--legendary { border-color: rgba(255,165,0,0.7); box-shadow: 0 0 12px rgba(255,165,0,0.2); }
.game-card--mythic    { border-color: rgba(255,50,100,0.8);  box-shadow: 0 0 16px rgba(255,50,100,0.3); }
.game-card--ancient   { border-color: rgba(255,149,0,0.7);   box-shadow: 0 0 16px rgba(255,149,0,0.25); }
.game-card--divine    { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 20px rgba(255,255,255,0.3); }

.game-card__rarity-bar {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}
.game-card--common .game-card__rarity-bar    { background: #949494; }
.game-card--uncommon .game-card__rarity-bar  { background: #00c864; }
.game-card--rare .game-card__rarity-bar      { background: #0082ff; }
.game-card--epic .game-card__rarity-bar      { background: #8c00ff; }
.game-card--legendary .game-card__rarity-bar { background: linear-gradient(90deg, #ffa500, #ffdd00); }
.game-card--mythic .game-card__rarity-bar    { background: linear-gradient(90deg, #ff1464, #ff6b00, #ff1464); }
.game-card--ancient .game-card__rarity-bar   { background: linear-gradient(90deg, #ff9500, #ffcc00); }
.game-card--divine .game-card__rarity-bar    { background: linear-gradient(90deg, #ffffff, #e8deff, #ffffff); }

/* Art area */
.game-card__art-wrap {
  width: 100%;
  aspect-ratio: var(--landing-card-art-ratio);
  overflow: hidden;
  position: relative;
  background: #0d0220;
  flex-shrink: 0;
}
.game-card__art-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}
.game-card:hover .game-card__art-img { transform: scale(1.06); }
.game-card__art-fallback {
  position: absolute;
  inset: 0;
  display: none;
}

/* Body */
.game-card__body {
  padding: 10px 12px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to bottom, rgba(13,2,32,0.9), #0d0220);
}
.game-card__name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.game-card__type {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.game-card__power {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(123,47,255,0.2);
}
.game-card__power-val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.game-card__mana {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5fff, #0a3aaa);
  border: 1px solid #4d8fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

/* Rarity guide */
.rarity-guide {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.rarity-guide__title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}
.rarity-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.rarity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.rarity-item:hover { transform: translateY(-2px); }
.rarity-item__gem {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: block;
}
.rarity-item__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.rarity-item__mult {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.rarity-item--common    .rarity-item__gem { background: #949494; }
.rarity-item--uncommon  .rarity-item__gem { background: #00c864; }
.rarity-item--rare      .rarity-item__gem { background: #0082ff; }
.rarity-item--epic      .rarity-item__gem { background: #8c00ff; }
.rarity-item--legendary .rarity-item__gem { background: linear-gradient(135deg, #ffa500, #ffdd00); }
.rarity-item--mythic    .rarity-item__gem { background: linear-gradient(135deg, #ff1464, #ff6b00); }

.rarity-item--common    .rarity-item__mult { color: #949494; }
.rarity-item--uncommon  .rarity-item__mult { color: #00c864; }
.rarity-item--rare      .rarity-item__mult { color: #4d8fff; }
.rarity-item--epic      .rarity-item__mult { color: #b06fff; }
.rarity-item--legendary .rarity-item__mult { color: var(--gold); }
.rarity-item--mythic    .rarity-item__mult { color: #ff6b8a; }

/* ─── BOSSES SECTION ─── */
.bosses-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.bosses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}

.boss-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.boss-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 12px 40px var(--purple-dim);
}

.boss-card__tier {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
  color: var(--text-muted);
  z-index: 2;
}
.boss-card__tier--world {
  color: var(--gold);
  border-color: var(--gold);
}

.boss-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.boss-card:hover .boss-card__img {
  transform: scale(1.05);
}

.boss-card__glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.boss-card:hover .boss-card__glow { opacity: 1; }
.boss-card--t1 .boss-card__glow { background: radial-gradient(at top, rgba(0,200,80,0.15), transparent 60%); }
.boss-card--t2 .boss-card__glow { background: radial-gradient(at top, rgba(255,100,0,0.15), transparent 60%); }
.boss-card--t3 .boss-card__glow { background: radial-gradient(at top, rgba(0,100,255,0.15), transparent 60%); }
.boss-card--t4 .boss-card__glow { background: radial-gradient(at top, rgba(123,47,255,0.2), transparent 60%); }
.boss-card__glow--world { background: radial-gradient(at top, rgba(224,32,32,0.25), transparent 60%); }

.boss-card__world-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(224,32,32,0.8);
  border-radius: 4px;
  color: #fff;
  z-index: 2;
}

.boss-card__info { padding: 14px; flex: 1; }
.boss-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.boss-card__stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.boss-card__bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.boss-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 2px;
}
.boss-card__bar-fill--world {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  animation: worldBar 2s ease-in-out infinite;
}
@keyframes worldBar {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ─── TOKENOMICS ─── */
.tokenomics { background: var(--bg-void); border-top: 1px solid var(--border); }

.tokenomics__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.tokenomics__subtitle {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.token-uses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.token-use {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.token-use:hover { border-color: var(--purple); }
.token-use__icon { flex-shrink: 0; color: var(--purple); }
.token-use__icon .icon-svg { width: 20px; height: 20px; margin: 0; }
.token-use strong { display: block; font-size: 13px; color: var(--text); }
.token-use span { display: block; font-size: 11px; color: var(--text-muted); }

.donut-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-center__label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.donut-center__total {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donut-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.donut-leg span {
  width: 12px; height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.token-economy-note {
  background: rgba(123,47,255,0.06);
  border: 1px solid rgba(123,47,255,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.token-economy-note p {
  font-size: 13px;
  color: rgba(232,222,255,0.65);
  line-height: 1.65;
  margin-bottom: 10px;
}
.token-economy-note p:last-child { margin-bottom: 0; }
.token-economy-note strong { color: #d4a843; font-weight: 600; }

.box-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.box-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.box-item:hover { border-color: var(--gold); background: rgba(212,168,67,0.05); }
.box-item img {
  width: 32px; height: 32px;
  object-fit: contain;
}
.box-item__name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.box-item__price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* ─── MUSIC BUTTON ─── */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,5,20,0.85);
  border: 1px solid rgba(123,47,255,0.4);
  color: rgba(232,222,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.music-btn:hover {
  border-color: #7b2fff;
  color: #7b2fff;
  box-shadow: 0 0 16px rgba(123,47,255,0.3);
}
.music-btn.playing {
  border-color: #d4a843;
  color: #d4a843;
  box-shadow: 0 0 16px rgba(212,168,67,0.3);
  animation: musicPulse 2s ease-in-out infinite;
}
@keyframes musicPulse {
  0%,100% { box-shadow: 0 0 8px rgba(212,168,67,0.3); }
  50%     { box-shadow: 0 0 20px rgba(212,168,67,0.6); }
}

/* ─── PVP SECTION ─── */
.pvp-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.pvp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pvp-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.pvp-rank {
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid;
}
.pvp-rank--bronze  { color: #cd7f32; border-color: #cd7f32; background: rgba(205,127,50,0.1); }
.pvp-rank--silver  { color: #c0c0c0; border-color: #c0c0c0; background: rgba(192,192,192,0.1); }
.pvp-rank--gold    { color: var(--gold); border-color: var(--gold); background: rgba(212,168,67,0.1); }
.pvp-rank--plat    { color: #00d4ff; border-color: #00d4ff; background: rgba(0,212,255,0.1); }
.pvp-rank--diamond { color: #b06fff; border-color: #b06fff; background: rgba(176,111,255,0.1); }
.pvp-rank--master  { color: #ff6b8a; border-color: #ff6b8a; background: rgba(255,107,138,0.1); }
.pvp-rank--legend  { color: #ff9500; border-color: #ff9500; background: rgba(255,149,0,0.1); box-shadow: 0 0 12px rgba(255,149,0,0.2); }

.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #d4a843;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.pvp-fee {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(123,47,255,0.2);
  border-radius: var(--radius);
}
.pvp-fee__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pvp-fee__label {
  color: rgba(232,222,255,0.5);
  min-width: 100px;
}
.pvp-fee__val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  min-width: 48px;
}
.pvp-fee__val--win      { color: #00c864; }
.pvp-fee__val--pool     { color: #7b2fff; }
.pvp-fee__val--platform { color: rgba(232,222,255,0.4); }
.pvp-fee__desc {
  font-size: 12px;
  color: rgba(232,222,255,0.4);
}

.pvp-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(135deg, #1a0533, #0a0514);
  border: 1px solid var(--border);
}
.pvp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pvp-vs {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  text-stroke: 2px var(--gold);
  text-shadow: 0 0 40px rgba(212,168,67,0.4);
}

/* ─── ROADMAP ─── */
.roadmap-section { background: var(--bg-void); border-top: 1px solid var(--border); }

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.roadmap__line {
  position: absolute;
  top: 16px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
}
.roadmap__phase {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.roadmap__dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-void);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.roadmap__dot--done {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-glow);
}
.roadmap__dot--active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,67,0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(212,168,67,0.5); }
  50% { box-shadow: 0 0 32px rgba(212,168,67,0.8); }
}
.roadmap__phase-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 8px;
}
.roadmap__phase--done .roadmap__phase-label { color: var(--purple); }
.roadmap__phase--active .roadmap__phase-label { color: var(--gold); }
.roadmap__content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}
.roadmap__content ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roadmap__content li {
  font-size: 12px;
  color: var(--text-muted);
}
.roadmap__phase--done .roadmap__content li { color: var(--text-muted); }
.roadmap__phase--done .roadmap__content li::before { content: '✓ '; color: var(--purple); }
.roadmap__phase--active .roadmap__content li::before { content: '→ '; color: var(--gold); }

/* ─── FAQ ─── */
.faq-section { background: var(--bg-deep); border-top: 1px solid var(--border); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--purple);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 20px;
}
.faq-item.open .faq-a { display: block; }
.faq-a p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CTA SECTION ─── */
.cta-section {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
}
.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,14,143,0.4) 0%, rgba(5,3,8,0.8) 70%);
}
.cta-section__content {
  position: relative;
  z-index: 1;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-section__desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ─── FOOTER ─── */
.footer {
  background: #030206;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer__brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 20px;
  max-width: 260px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer__logo-title {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.3));
}
.footer__social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__social a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--gold); }
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer__col a {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer__bottom strong { color: var(--gold); }

/* ─── PARTICLES ─── */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-120px) scale(0.3); opacity: 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .bosses-grid { grid-template-columns: repeat(3, 1fr); }
  .panels { grid-template-columns: 1fr 1fr; }
  .tokenomics__grid { grid-template-columns: 1fr 1fr; }
}

/* ── TABLET 769–900px ── */
@media (min-width: 769px) and (max-width: 900px) {
  .hero__content { max-width: 65%; }
  .hero__logo-img { width: clamp(300px, 48vw, 560px); }
  .panels { grid-template-columns: 1fr 1fr; }
  .bosses-grid { grid-template-columns: repeat(3, 1fr); }
  .tokenomics__grid { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; gap: 32px; }
  .roadmap__line { display: none; }
}

/* ══════════════════════════════════
   MOBILE — 768px и меньше
══════════════════════════════════ */
@media (max-width: 768px) {

  /* NAV */
  .nav { padding: 0 16px; height: 56px; }
  .nav__links  { display: none; }
  .nav__social { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }
  .nav__logo-title-img { height: 24px; }
  .nav__logo-icon-img  { height: 30px; width: 30px; }

  /* HERO */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero__bg-video { object-position: 75% top; }
  .hero__bg-img   { object-position: 75% top; }
  .hero__bg-gradient {
    background:
      linear-gradient(to bottom,
        rgba(5,3,8,0.20)  0%,
        rgba(5,3,8,0.60) 45%,
        rgba(5,3,8,0.95) 65%,
        rgba(5,3,8,1.00) 80%),
      linear-gradient(to right,
        rgba(5,3,8,0.90)  0%,
        rgba(5,3,8,0.50) 30%,
        rgba(5,3,8,0.00) 60%);
  }
  .hero__content {
    max-width: 100%;
    padding: 0 20px 180px;
    text-align: left;
  }
  .hero__logo-img { width: clamp(240px, 80vw, 360px); }
  .hero__eyebrow  { font-size: 10px; }
  .hero__subtitle { font-size: 10px; letter-spacing: 0.2em; }
  .hero__desc     { font-size: 14px; max-width: 100%; }
  .hero__actions  { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; padding: 14px 24px; }
  .hero__stats    { gap: 16px; }
  .hero__stat-value { font-size: 20px; }

  /* FEATURE BAR */
  .hero__features-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero__feature { padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero__feature:nth-child(odd)       { border-right: 1px solid var(--border); }
  .hero__feature:nth-last-child(-n+2) { border-bottom: none; }

  /* SECTIONS */
  .section        { padding: 60px 0; }
  .section__title { font-size: 28px; }
  .section__desc  { font-size: 14px; }

  /* GAME LOOP */
  .game-loop        { flex-direction: column; gap: 16px; }
  .game-loop__arrow { display: none; }
  .game-loop__step  { min-width: auto; }

  /* PANELS */
  .panels { grid-template-columns: 1fr; gap: 16px; }

  /* CARDS */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-tabs  { overflow-x: auto; padding-bottom: 4px; }
  .card-tab   { padding: 8px 16px; font-size: 11px; white-space: nowrap; }
  .rarity-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* BOSSES */
  .bosses-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .boss-card:last-child { grid-column: 1 / -1; }
  .boss-card__img { height: 160px; }

  /* BOXES */
  .boxes-landing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* TOKENOMICS */
  .tokenomics__grid { grid-template-columns: 1fr; gap: 24px; }

  /* PVP */
  .pvp-inner  { grid-template-columns: 1fr; gap: 32px; }
  .pvp-visual { min-height: 200px; }
  .pvp-vs     { font-size: 40px; }
  .pvp-ranks  { gap: 6px; }
  .pvp-rank   { padding: 5px 12px; font-size: 10px; }

  /* ROADMAP */
  .roadmap        { grid-template-columns: 1fr; gap: 32px; }
  .roadmap__line  { display: none; }
  .roadmap__phase { padding: 0; }

  /* FAQ */
  .faq-q { font-size: 13px; }

  /* FOOTER */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

/* ══════════════════════════════════
   MOBILE — 480px и меньше
══════════════════════════════════ */
@media (max-width: 480px) {
  .hero__logo-img { width: clamp(200px, 75vw, 300px); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card__art-wrap { aspect-ratio: 4/3; }

  .bosses-grid { grid-template-columns: 1fr; gap: 12px; }
  .boss-card:last-child { grid-column: auto; }
  .boss-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 150px;
    overflow: hidden;
  }
  .boss-card__img {
    width: 130px !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 12px 0 0 12px !important;
  }
  .boss-card__glow { display: none; }
  .boss-card__info { padding: 12px !important; }
  .boss-card__name { font-size: 16px !important; margin-bottom: 6px; }

  .boxes-landing-grid { grid-template-columns: 1fr; }

  .rarity-list { grid-template-columns: repeat(2, 1fr); }

  .hero__stats { flex-wrap: wrap; gap: 12px; }
  .hero__stat-divider { display: none; }
}

/* ══════════════════════════════════
   LANDING RESPONSIVE POLISH
══════════════════════════════════ */
@media (min-width: 481px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--landing-card-width-tablet), 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .nav {
    padding-inline: max(16px, env(safe-area-inset-left));
  }
  .nav__burger {
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin-right: max(0px, env(safe-area-inset-right));
  }

  .hero {
    min-height: max(100svh, 720px);
    padding-top: max(56px, env(safe-area-inset-top));
  }
  .hero__bg-video {
    object-fit: cover;
    object-position: 68% 30%;
  }
  .hero__content {
    padding-inline: 16px;
  }

  .card-tabs {
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .card-tabs::-webkit-scrollbar {
    display: none;
  }
  .card-tab {
    flex: 0 0 auto;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
  }
  .game-card {
    align-self: start;
    min-width: 0;
    height: auto;
    border-radius: 10px;
  }
  .game-card__art-wrap {
    aspect-ratio: var(--landing-card-art-ratio);
  }
  .game-card__art-img {
    object-fit: contain;
    object-position: center top;
  }
  .game-card__body {
    flex: 0 0 auto;
    min-height: 0;
    padding: var(--landing-card-meta-padding);
    gap: 2px;
  }
  .game-card__name {
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .game-card__type {
    font-size: 7px;
    line-height: 1.25;
    letter-spacing: .07em;
    overflow-wrap: anywhere;
  }
  .game-card__power {
    margin-top: 2px;
    padding-top: 4px;
  }
  .game-card__power-val {
    font-size: 10px;
    line-height: 1;
  }
  .game-card__mana {
    width: 19px;
    height: 19px;
    min-height: 19px;
    font-size: 9px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--landing-card-width-tablet), 1fr));
    gap: 12px;
  }
}

@media (max-width: 360px) {
  :root {
    --landing-card-meta-padding: 6px 7px 7px;
  }
  .cards-grid {
    gap: 8px;
  }
  .game-card__name {
    font-size: 9px;
  }
  .game-card__type {
    font-size: 6px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: max(100svh, 520px);
    padding-top: max(56px, env(safe-area-inset-top));
    padding-bottom: 0;
  }
  .hero__bg-video {
    object-fit: cover;
    object-position: center 30%;
  }
  .hero__content {
    padding-top: 54px;
    padding-bottom: 170px;
    max-width: 62%;
  }
  .hero__eyebrow {
    margin-bottom: 10px;
  }
  .hero__logo-img-wrap,
  .hero__subtitle {
    margin-bottom: 8px;
  }
  .hero__desc {
    margin-bottom: 14px;
    line-height: 1.35;
  }
  .hero__actions {
    flex-direction: row;
    margin-bottom: 14px;
  }
  .hero__actions .btn {
    width: auto;
    min-height: 44px;
    padding: 9px 16px;
  }
}
