/* ═══════════════════════════════════════════════
   Tower Rush ES — Dark Gaming-Tech Theme
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0b0d14;
  --bg-soft: #10131c;
  --bg-alt: #0f1119;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-muted: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(240, 180, 41, 0.25);
  --text: #eae8e3;
  --text-secondary: #9a978f;
  --muted: #6b6862;
  --accent: #f0b429;
  --accent-soft: rgba(240, 180, 41, 0.12);
  --accent-dark: #d49b1a;
  --accent-glow: rgba(240, 180, 41, 0.18);
  --success-soft: rgba(72, 187, 120, 0.14);
  --danger-soft: rgba(220, 80, 70, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 20px rgba(240, 180, 41, 0.08);
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240, 180, 41, 0.06), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(72, 130, 187, 0.04), transparent 40%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fcc544; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 90vw); margin: 0 auto; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.topbar .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  line-height: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: filter 0.2s ease;
}

.topbar .logo:hover { filter: brightness(1.1); }

.topbar .logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.topbar .logo img {
  display: block;
  height: clamp(44px, 6.5vw, 56px);
  width: auto;
  max-width: min(320px, 72vw);
  object-fit: contain;
}

.menu-toggle {
  display: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--border-accent);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Page TOC (registration) ── */
.page-toc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 0 12px;
  border-bottom: 1px solid var(--border);
}

.page-toc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.page-toc__label {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-toc__hint {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.85;
}

.page-toc__track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  margin-inline: calc(-1 * min(5vw, 24px));
  padding-inline: min(5vw, 24px);
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 180, 41, 0.3) transparent;
}

.page-toc__track::-webkit-scrollbar { height: 5px; }
.page-toc__track::-webkit-scrollbar-thumb {
  background: rgba(240, 180, 41, 0.3);
  border-radius: 999px;
}

.page-toc__track::after {
  content: "";
  position: absolute;
  top: 0;
  right: min(5vw, 24px);
  bottom: 6px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to left, var(--bg), transparent);
}

.page-toc__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}

.page-toc__list > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-toc__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.page-toc__link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.page-toc__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .page-toc {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 24px;
    padding: 14px 0 14px;
  }

  .page-toc__head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 4px;
    flex: 0 0 auto;
  }

  .page-toc__hint { display: none; }

  .page-toc__track {
    flex: 1;
    min-width: 0;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .page-toc__track::after { display: none; }

  .page-toc__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 8px 10px;
    width: 100%;
  }

  .page-toc__list > li {
    min-width: 0;
    scroll-snap-align: unset;
  }

  .page-toc__link {
    width: 100%;
    min-height: 42px;
    white-space: normal;
    text-align: center;
    hyphens: auto;
  }
}

.page-registration [id] {
  scroll-margin-top: 5.5rem;
}

/* ── Hero ── */
.hero {
  padding: 52px 0 18px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 70% 10%, rgba(240, 180, 41, 0.05), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 52px;
  align-items: center;
  position: relative;
}

.hero-box { padding: 0; }

.hero-box__note {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}

.section-flow-hint {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.section-flow-hint strong { color: var(--text); }

.operator-table-lead {
  margin-top: 14px;
  max-width: 68ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.operator-table-lead a { font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(240, 180, 41, 0.4);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 100%;
  color: var(--text);
}

.hero h1 strong { font-weight: 600; color: var(--accent); }

.hero p {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.hero-media-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.hero-media-stack .btn-play-external {
  align-self: center;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}

.hero-media {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

.hero-media--square {
  width: auto;
  max-width: min(420px, 100%);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

/* bonus hero fit */
.hero--bonus .hero-grid > .hero-media-fit {
  justify-self: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}

.hero--bonus .hero-grid > .hero-media-fit .hero-media {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
}

/* game-rules hero shell */
.hero-media-shell {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.page-game-rules .hero-grid > .hero-media-shell > .hero-media {
  mix-blend-mode: normal;
  border-radius: 0;
  -webkit-clip-path: none;
  clip-path: none;
}

/* mobile-app hero shell */
.hero--mobile-app .hero-grid > .hero-media-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  overflow: clip;
  line-height: 0;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}

.hero--mobile-app .hero-grid > .hero-media-shell > .hero-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  -webkit-clip-path: none;
  clip-path: none;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 980px) {
  .hero--mobile-app .hero-grid > .hero-media-shell,
  .hero--mobile-app .hero-grid > .hero-media-shell > .hero-media {
    max-height: min(320px, 58vh);
  }
}

@media (min-width: 981px) {
  .hero--mobile-app .hero-grid > .hero-media-shell,
  .hero--mobile-app .hero-grid > .hero-media-shell > .hero-media {
    max-height: min(420px, 50vh);
  }
}

.hero--mobile-app .hero-mobile-app-after.container {
  width: 100%;
  max-width: min(760px, 100%);
  margin-top: 32px;
  margin-inline: auto;
  text-align: center;
}

.hero--mobile-app .hero-mobile-app-after > p:first-of-type {
  margin-top: 0;
}

@media (min-width: 768px) {
  .hero--mobile-app .hero-mobile-app-after > p:first-of-type {
    white-space: nowrap;
  }
}

.hero--mobile-app .hero-mobile-app-after p {
  max-width: none;
  margin-inline: auto;
}

.hero--mobile-app .hero-mobile-app-after .badge-strip {
  justify-content: center;
  margin-top: 18px;
}

.hero--mobile-app .hero-mobile-app-after .cta {
  justify-content: center;
  margin-top: 22px;
}

/* ── Badges ── */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}

/* ── CTA / Buttons ── */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f0b429, #d49b1a);
  color: #0b0d14;
  border: none;
  box-shadow: 0 4px 16px rgba(240, 180, 41, 0.25);
}

.btn-primary:hover {
  color: #0b0d14;
  background: linear-gradient(135deg, #fcc544, #f0b429);
  box-shadow: 0 6px 24px rgba(240, 180, 41, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Content ── */
.content {
  padding: 16px 0 64px;
  position: relative;
}

/* Live region for promo code copy */
#reg-promo-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel,
.section-block {
  padding: 54px 0;
}

.panel + .panel,
.section-block + .section-block {
  border-top: 1px solid var(--border);
}

.panel h2,
.section-block h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.panel h3,
.section-block h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ── Article text ── */
.article p {
  margin-top: 14px;
  max-width: 70ch;
  color: var(--text-secondary);
  font-size: 1rem;
}

.article strong { color: var(--text); }

.article-promo-code {
  font: inherit;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  vertical-align: baseline;
}

.article-promo-code:hover { color: #fcc544; }

.article-promo-code:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.article .article-bullet-list {
  margin-top: 14px;
  margin-left: 1.2rem;
  max-width: 70ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.article .article-bullet-list li { margin-top: 10px; }

/* ── Figure rules (game rules page) ── */
.figure-rules {
  margin: 22px 0 0;
  max-width: 760px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.figure-rules img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-rules figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.figure-rules.rules-game-buildings-banner {
  margin: 6px auto 10px;
  max-width: min(480px, 94%);
  background: transparent;
  box-shadow: none;
}

.figure-rules.rules-game-buildings-banner img {
  width: 100%;
  height: auto;
  max-height: min(168px, 28vw);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  -webkit-clip-path: inset(0 round var(--radius-sm));
  clip-path: inset(0 round var(--radius-sm));
}

/* Game-rules bonus column */
.page-game-rules .section-block--rules-bonus {
  padding-top: 36px;
  padding-bottom: 36px;
}

.page-game-rules .article--rules-bonus .section-label { margin-bottom: 10px; }
.page-game-rules .article--rules-bonus h3 { margin-top: 0.85rem; margin-bottom: 0.2rem; }
.page-game-rules .article--rules-bonus h3:first-of-type { margin-top: 0; }
.page-game-rules .article--rules-bonus p { margin-top: 8px; }
.page-game-rules .article--rules-bonus .article-bullet-list { margin-top: 8px; }
.page-game-rules .article--rules-bonus .article-bullet-list li { margin-top: 6px; }

/* Promo logo figure */
.figure-rules.figure-rules--promo-logo { background: transparent; }

.figure-rules.figure-rules--promo-logo:not(.figure-rules--cadastro-banner) {
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.figure-rules.figure-rules--promo-logo img {
  width: 100%;
  max-height: min(52vh, 520px);
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.figure-rules.figure-rules--promo-logo:not(.figure-rules--cadastro-banner) img {
  border-radius: var(--radius);
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

.figure-rules.figure-rules--promo-logo figcaption { text-align: center; }

/* Registration banner */
.figure-rules.figure-rules--cadastro-banner {
  margin-top: 18px;
  background: transparent;
}

.figure-rules.figure-rules--cadastro-banner img {
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: unset;
  border-radius: var(--radius);
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

.figure-rules.figure-rules--demo-infographic img {
  width: 100%;
  max-height: min(78vh, 720px);
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.rules-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.rules-thumb {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.rules-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.rules-thumb figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.rules-aside-visual {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rules-aside-visual img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.rules-demo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}

.rules-demo-split .figure-rules { margin-top: 0; max-width: none; }

@media (max-width: 900px) {
  .rules-thumb-row { grid-template-columns: 1fr; }
  .rules-demo-split { grid-template-columns: 1fr; }
}

/* ── Section grid (homepage sidebar) ── */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 52px;
  align-items: start;
}

.section-grid aside .panel { padding: 0; }

.home-cta-panel {
  position: sticky;
  top: 102px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-cta-panel .cta {
  flex-direction: column;
  align-items: flex-start;
}

/* ── KPIs ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0 12px;
}

.kpi {
  padding: 28px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.kpi b {
  display: block;
  margin-bottom: 6px;
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--accent);
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

.card img {
  width: auto;
  max-width: 100%;
  height: 146px;
  margin: 0 auto 18px;
  object-fit: contain;
  border-radius: 10px;
}

/* How-to card image frames */
.howto-cards .card-img-frame {
  position: relative;
  display: block;
  height: 146px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
}

.howto-cards .card .card-img-frame .howto-card-img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

.howto-cards .card .card-img-frame .howto-card-img--build,
.howto-cards .card .card-img-frame .howto-card-img--cashout,
.howto-cards .card .card-img-frame .howto-card-img--build-floor {
  object-fit: contain;
  border-radius: var(--radius);
  -webkit-clip-path: inset(0 round var(--radius));
  clip-path: inset(0 round var(--radius));
}

/* bonus.html: fit frame */
.howto-cards.howto-cards--fit-frame .card-img-frame { height: auto; }
.howto-cards.howto-cards--fit-frame .card .card-img-frame .howto-card-img {
  width: 100%;
  height: auto;
  max-height: none;
}

.card--text-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  min-height: 0;
}

.card h3 { margin-bottom: 10px; }

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  counter-reset: step-counter;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.step:hover { border-color: var(--border-accent); }

.step h4 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ── Keyword list ── */
.keyword-list {
  margin-top: 16px;
  list-style: none;
}

.keyword-list li {
  padding: 14px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

/* ── Tables ── */
.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 10px;
  text-align: left;
}

th {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-accent);
}

td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Where to Play ── */
.where-to-play {
  padding: 54px 0;
  border-top: 1px solid var(--border);
}

.where-to-play h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.wtp-subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.casino-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
  gap: 22px;
  margin-top: 28px;
}

.casino-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.casino-card--with-brand {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.casino-card--featured {
  border: 1.5px solid var(--border-accent);
  background: var(--surface-strong);
}

.casino-card-brand {
  width: 100%;
  box-sizing: border-box;
  height: 132px;
  min-height: 132px;
  flex-shrink: 0;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid var(--border);
}

.casino-card-brand .casino-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.casino-card-content {
  flex: 1 1 auto;
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.casino-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.casino-name {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.casino-badge-best {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d14;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.casino-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.casino-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 500;
}

.feat-icon {
  flex: none;
  font-size: 1rem;
}

.wtp-cta-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  width: 100%;
}

.wtp-cta-stack .wtp-cta { margin-top: 0; }

.wtp-cta {
  align-self: stretch;
  margin-top: auto;
  text-align: center;
}

/* Single featured card in horizontal layout */
.where-to-play .casino-list { grid-template-columns: 1fr; }

.where-to-play .casino-card--featured.casino-card--with-brand {
  flex-direction: row;
  align-items: stretch;
}

.where-to-play .casino-card--featured .casino-card-brand {
  width: clamp(160px, 26%, 260px);
  min-width: 140px;
  height: auto;
  min-height: 0;
  align-self: stretch;
  border-bottom: none;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.where-to-play .casino-card--featured .casino-card-brand .casino-logo {
  max-width: 200px;
  width: 100%;
}

.where-to-play .casino-card--featured .casino-card-content {
  flex: 1;
  min-width: 0;
}

/* ── Bonus Box (donde-jugar) ── */
.where-to-play .bonus-box {
  --bonus-box-bg: #141620;
  --bonus-box-green: #48bb78;
  --bonus-box-text: #ffffff;
  --bonus-box-muted: #c8ccd5;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(26px, 4vw, 38px) clamp(22px, 3.5vw, 40px);
  border-radius: 14px;
  background: var(--bonus-box-bg);
  border: 1px solid rgba(240, 180, 41, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.where-to-play .bonus-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: var(--bonus-box-bg);
  background-image:
    linear-gradient(145deg, rgba(20, 22, 32, 0.92) 0%, rgba(20, 22, 32, 0.8) 42%, rgba(20, 22, 32, 0.6) 100%),
    url('assets/bonus-box-wtp-bg.jpg');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.where-to-play .bonus-box > * {
  position: relative;
  z-index: 1;
}

.where-to-play .bonus-box-title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bonus-box-text);
  line-height: 1.3;
}

.where-to-play .bonus-box-value {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bonus-box-green);
}

.where-to-play .bonus-box-sub {
  margin: 6px 0 16px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bonus-box-muted);
  line-height: 1.4;
}

.where-to-play .bonus-box-promo-note {
  margin: 0 0 14px;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bonus-box-muted);
}

.where-to-play .bonus-box-promo-note strong {
  color: var(--bonus-box-text);
  font-weight: 700;
}

.where-to-play .bonus-box-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 22px;
}

.where-to-play .bonus-box-code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--bonus-box-text);
  border: 1px solid rgba(72, 187, 120, 0.4);
}

.where-to-play .bonus-box-copy-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: 2px solid var(--bonus-box-green);
  background: transparent;
  color: var(--bonus-box-green);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.where-to-play .bonus-box-copy-btn:hover {
  background: rgba(72, 187, 120, 0.14);
  color: #5fd08e;
  border-color: #5fd08e;
}

.where-to-play .bonus-box-copy-btn:focus-visible {
  outline: 2px solid var(--bonus-box-green);
  outline-offset: 3px;
}

.where-to-play .bonus-box-copy-btn.is-copied {
  background: var(--bonus-box-green);
  color: var(--bonus-box-bg);
  border-color: var(--bonus-box-green);
}

.where-to-play .bonus-box-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.where-to-play .bonus-box-features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
}

.where-to-play .bonus-box-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bonus-box-text);
  line-height: 1.2;
}

.where-to-play .bonus-box-icon {
  flex-shrink: 0;
  color: var(--bonus-box-green);
  display: block;
}

.where-to-play .bonus-box-icon--percent { overflow: visible; }

.where-to-play .casino-card--featured .casino-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.where-to-play .casino-card--featured .wtp-cta-stack {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}

.where-to-play .casino-card--featured .wtp-cta-stack .btn-play-external,
.where-to-play .casino-card--featured .wtp-cta-stack .wtp-cta {
  flex: 1 1 200px;
}

/* ── Game-style CTA button ── */
.btn-play-external {
  position: relative;
  align-self: stretch;
  justify-content: center;
  min-height: 58px;
  padding: 16px 52px;
  border-radius: 11px;
  border: 2px solid #1e1810;
  font-size: 1.35rem;
  font-weight: 400;
  font-family: 'Archivo Black', 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  background-color: #b97208;
  background-image:
    repeating-linear-gradient(45deg, #0d0d0d 0 5px, #e6a818 5px 10px),
    repeating-linear-gradient(45deg, #0d0d0d 0 5px, #e6a818 5px 10px),
    radial-gradient(ellipse 125% 210% at 50% 18%, #fff9e6 0%, #ffe566 14%, #f4b82a 42%, #d0890a 72%, #8f5206 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%, rgba(0, 0, 0, 0.12) 100%);
  background-size: 100% 10px, 100% 10px, 100% 100%, 100% 100%;
  background-position: top center, bottom center, center, center;
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat;
  box-shadow:
    0 3px 0 #120e0a,
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-play-external::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

.btn-play-external__label {
  position: relative;
  z-index: 2;
}

.btn-play-external__screw {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e8e8e8 0%, #9a9a9a 45%, #4a4a4a 78%, #2a2a2a 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.btn-play-external__screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  margin: -1px 0 0 -4.5px;
  border-radius: 1px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-play-external__screw:first-of-type { left: 12px; }
.btn-play-external__screw:last-of-type { right: 12px; }

.btn-play-external:hover {
  color: #fff;
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 4px 0 #120e0a,
    0 14px 34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-play-external:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .casino-list { grid-template-columns: 1fr; }
  .where-to-play { padding: 40px 0; }

  .where-to-play .casino-card--featured.casino-card--with-brand {
    flex-direction: column;
  }

  .where-to-play .casino-card--featured .casino-card-brand {
    width: 100%;
    min-width: 0;
    height: 132px;
    min-height: 132px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .where-to-play .casino-card--featured .casino-card-brand .casino-logo {
    max-width: 100%;
  }

  .where-to-play .casino-card--featured .casino-features {
    grid-template-columns: 1fr;
  }

  .where-to-play .casino-card--featured .wtp-cta-stack {
    flex-direction: column;
  }

  .where-to-play .casino-card--featured .wtp-cta-stack .btn-play-external,
  .where-to-play .casino-card--featured .wtp-cta-stack .wtp-cta {
    flex: 1 1 auto;
  }
}

/* ── Details FAQ ── */
.details-faq {
  margin-top: 26px;
}

.details-faq details {
  border-top: 1px solid var(--border);
  padding: 0;
}

.details-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.details-faq summary:hover { color: var(--accent); }
.details-faq summary::-webkit-details-marker { display: none; }

.details-faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
  transition: color var(--transition);
}

.details-faq details[open] summary::after { content: "\2212"; color: var(--accent); }

.details-faq p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.details-faq .faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0 2px;
}

.details-faq .faq-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

/* ── Promo hub (registration) ── */
.promo-cassino-block {
  padding-top: 48px;
  padding-bottom: 56px;
}

.promo-hub {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 32px);
}

.promo-hub__head { margin-bottom: 4px; }

.promo-hub__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 8px;
}

.promo-hub__title {
  margin: 0;
  flex: 1 1 12ch;
  min-width: min(100%, 260px);
}

.promo-hub__badge {
  flex: none;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 8px 14px;
  border-radius: 999px;
}

.promo-hub .promo-section-lead {
  margin-top: 16px;
  max-width: none;
  font-size: 1.02rem;
}

.promo-section-lead {
  margin-top: 12px;
  max-width: 68ch;
  color: var(--text-secondary);
  line-height: 1.55;
}

.details-faq.details-promos {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.details-promos.details-faq details {
  border-top: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.details-promos.details-faq details:hover {
  border-color: var(--border-accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.details-promos.details-faq details[open] {
  border-color: var(--border-accent);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

.details-promos.details-faq details[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(240, 180, 41, 0.05);
}

.details-promos.details-faq summary {
  padding: 14px 16px;
  gap: 14px;
  align-items: center;
  transition: background var(--transition);
}

.details-promos.details-faq summary:hover {
  background: rgba(240, 180, 41, 0.04);
}

.details-promos.details-faq details[open] summary:hover {
  background: rgba(240, 180, 41, 0.07);
}

.details-promos.details-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1;
  position: relative;
}

.details-promos.details-faq summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.details-promos.details-faq details[open] summary::after {
  content: "\2212";
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.promo-summary-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--border);
}

.promo-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-summary-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.3;
}

.details-promos .promo-details-inner {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 20px 18px 24px;
}

.details-promos .promo-details-figure { margin: 0; }

.details-promos .promo-details-figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

#promo-app-coins .promo-details-figure {
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

#promo-app-coins .promo-details-figure img {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}

.details-promos .promo-details-body h4 {
  margin: 22px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.details-promos .promo-details-body > p:first-of-type { margin-top: 0; }

.details-promos .promo-details-body ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.details-promos .promo-details-body li { margin-bottom: 6px; }

.details-promos .promo-formula {
  margin: 6px 0 14px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

@media (max-width: 520px) {
  .promo-hub__title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-hub__badge { align-self: flex-start; }

  .promo-summary-thumb {
    width: 52px;
    height: 52px;
  }

  .details-promos.details-faq summary {
    padding: 12px;
    gap: 10px;
  }

  .details-promos.details-faq summary::after {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .promo-summary-text { font-size: 0.95rem; }
}

@media (min-width: 768px) {
  .details-promos .promo-details-inner {
    grid-template-columns: minmax(220px, 380px) 1fr;
    gap: 28px;
  }
}

/* ── Mobile app page ── */
.ios-download-section .ios-download-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}

.ios-download-section .ios-download-visual {
  order: 1;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.ios-download-section .ios-download-copy {
  order: 2;
  scroll-margin-top: 5.5rem;
}

.ios-download-section .ios-download-img {
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 1024;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.ios-download-section .ios-download-copy > p {
  margin-top: 14px;
  color: var(--text-secondary);
  max-width: 56ch;
}

.ios-download-section .ios-download-copy .cta { margin-top: 20px; }

.ios-download-section .ios-pwa-steps {
  margin: 14px 0 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.55;
}

.ios-download-section .ios-pwa-steps li { margin-top: 10px; }
.ios-download-section .ios-install-heading { margin-top: 28px; }
.ios-download-section .ios-pwa-label { margin-top: 16px; margin-bottom: 8px; }

.bonus-app-coins-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}

.bonus-app-coins-visual {
  margin: 0;
  width: min(100%, 380px);
  /* ~52% высоты исходного кадра 682×1024: видна верхняя часть, низ обрезан */
  aspect-ratio: 682 / 532;
  overflow: hidden;
  border-radius: var(--radius);
  justify-self: center;
  box-shadow: var(--shadow-card);
}

.bonus-app-coins-visual img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.sys-req-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.sys-req-section .cards.cards--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.req-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.req-card ul li { margin-top: 8px; }

.req-card .req-card-foot {
  margin-top: 18px;
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .bonus-app-coins-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 40px;
  }

  .bonus-app-coins-visual { justify-self: end; }
  .bonus-app-coins-visual img { margin-inline: 0; }

  .ios-download-section .ios-download-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.15fr);
    gap: 48px;
  }

  .ios-download-section .ios-download-copy { order: 2; }
}

@media (max-width: 720px) {
  .sys-req-section .cards.cards--pair {
    grid-template-columns: 1fr;
  }
}

/* ── Demo game container ── */
.demo-game-container {
  margin-top: 24px;
  --demo-viewport-height: min(82vh, 980px);
}

.game-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d0f16;
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: var(--demo-viewport-height);
}

.game-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 20, 0.5);
  backdrop-filter: blur(5px);
}

.btn-play-demo { min-width: 160px; }

/* ── Demo review band ── */
.py-5 {
  padding-top: clamp(2.5rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

.demo-review {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.demo-review-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.demo-review-intro .section-label { margin-bottom: 12px; }

.demo-review h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.demo-review-lead {
  margin-top: 14px;
  max-width: 42ch;
  color: var(--text-secondary);
  font-size: 1rem;
}

.demo-review-features-title {
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-review-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-review-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.demo-review-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.1em;
  border-radius: 50%;
  background: var(--success-soft);
  color: #48bb78;
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .demo-review-inner { grid-template-columns: 1fr; }
  .demo-review-lead { max-width: none; }
}

.demo-iframe-wrapper {
  position: relative;
  width: 100%;
  height: var(--demo-viewport-height);
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: #000;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-iframe-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.demo-iframe-close:hover { background: rgba(0, 0, 0, 0.9); }

/* ── Footer ── */
.footer {
  margin-top: 40px;
  padding: 42px 0 52px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h4 {
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 7px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.age-box {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: #e87070;
  font-weight: 600;
  border: 1px solid rgba(220, 80, 70, 0.2);
}

/* ── Selection ── */
::selection {
  background: rgba(240, 180, 41, 0.2);
  color: var(--text);
}

/* ── Hero disclaimer ── */
.hero-disclaimer {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
}

.hero-disclaimer strong { color: var(--text) !important; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards { grid-template-columns: 1fr 1fr; }

  .steps,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-height: 320px;
    margin-inline: auto;
  }

  .hero--bonus .hero-grid > .hero-media-fit .hero-media {
    max-height: 320px;
  }

  .home-cta-panel { position: static; }
}

@media (max-width: 720px) {
  .container { width: 92vw; }
  .menu-toggle { display: inline-flex; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 10px 12px;
    border-radius: var(--radius-xs);
  }

  .topbar-inner { flex-wrap: wrap; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 2.1rem; max-width: none; }
  .hero p { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .panel, .section-block { padding: 40px 0; }
  .badge-strip { gap: 8px; }
  .badge { white-space: normal; }
  .demo-iframe-wrapper { height: min(88vh, 920px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Utility: override inline color hardcodes ── */
[style*="color:#5e5549"],
[style*="color: #5e5549"] {
  color: var(--text-secondary) !important;
}

.footer-legal {
  color: var(--text-secondary) !important;
}
