/* BetWinner Uganda — styles */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #0B0F1A;
  --ink-2: #121826;
  --ink-3: #1A2236;
  --ink-4: #243049;
  --line: rgba(190, 176, 140, .14);
  --line-2: rgba(190, 176, 140, .26);
  --gold: #F2B133;
  --gold-soft: #FFD27A;
  --amber: #C8842A;
  --crane-red: #D6233A;
  --crane-red-deep: #B81D31;
  --jade: #2FBF8F;
  --text: #EAF0FA;
  --text-dim: #9AA6BF;
  --text-mute: #6975A0;
  --bg: var(--ink);

  --font-display: "Bebas Neue", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* rhythm */
  --band-pad: clamp(40px, 6vw, 80px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .25);
  --maxw: 1240px;
  --header-h: 64px;
}

/* ----------------------------- RESET ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, .3vw + .9rem, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-size: .8rem; color: var(--text-mute); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 6vw + 1rem, 4.25rem); letter-spacing: .04em; line-height: .98; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 2.8vw + .5rem, 2.5rem); letter-spacing: .03em; text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 1vw + .7rem, 1.45rem); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
p { max-width: none; }
strong { color: var(--text); font-weight: 700; }

/* skip link */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--gold); color: #0b0f1a; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* ----------------------------- LAYOUT ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.band { padding-block: var(--band-pad); }
.band--tight { padding-block: clamp(28px, 4vw, 48px); }
.band--ink2 { background: var(--ink-2); }
.band--ink3 { background: var(--ink-3); }
.section { scroll-margin-top: calc(var(--header-h) + 12px); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3);
}
.lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--text-dim); max-width: 65ch; }
.section-head { margin-bottom: var(--s-6); }
.section-head p { color: var(--text-dim); margin-top: var(--s-3); }

/* equator line — signature divider */
.equator {
  height: 1px; border: 0; margin-block: var(--s-7);
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-soft) 50%, var(--gold) 80%, transparent);
  opacity: .55;
}

/* ----------------------------- HEADER ----------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, .92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transform: none !important; /* never hide on scroll */
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; gap: var(--s-5);
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; color: var(--text); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .brand-dot { color: var(--gold); }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }

.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.nav-list a { color: var(--text-dim); font-weight: 600; font-size: .95rem; padding: 6px 2px; position: relative; }
.nav-list a:hover { color: var(--text); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }

.header-cta { display: flex; align-items: center; gap: var(--s-3); }

/* nav toggle (mobile) */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative; border-radius: 2px;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ----------------------------- BUTTONS ----------------------------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: #0b0f1a; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  min-height: 46px; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242, 177, 51, .28); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--crane-red); --btn-fg: #fff; }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(214, 35, 58, .35); --btn-bg: var(--crane-red-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .04); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; min-height: 38px; font-size: .88rem; }

/* lubugo ribbon — signature card edge */
.ribbon {
  height: 4px; border: 0; border-radius: 4px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 8px, var(--gold) 8px 16px, transparent 16px 22px);
  opacity: .8;
}

/* ----------------------------- HERO ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  padding: 0;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,15,26,.9) 0%, rgba(11,15,26,.7) 42%, rgba(11,15,26,.45) 100%),
    linear-gradient(180deg, rgba(11,15,26,.2) 0%, rgba(11,15,26,.88) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding-block: clamp(56px, 9vw, 104px);
  width: 100%;
}
.hero__inner {
  width: 100%;
  display: grid;
  gap: var(--s-5);
}
.hero__logo {
  height: clamp(32px, 5vw, 44px); width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.45));
}
.hero h1 {
  color: #fff;
  max-width: none;
  width: 100%;
  font-size: clamp(2.6rem, 5vw + .2rem, 4.5rem);
  line-height: .94;
  letter-spacing: .01em;
}
.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: start;
  width: 100%;
}
.hero .lead {
  margin: 0;
  color: var(--text-dim);
  max-width: 62ch;
  font-size: clamp(1.05rem, .35vw + 1rem, 1.22rem);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  width: 100%;
  margin-top: var(--s-2);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.hero-trust p {
  color: var(--text-dim);
  font-size: .9rem;
  margin: 0;
  flex: 1 1 220px;
}
@media (min-width: 900px) {
  .hero__split {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(40px, 6vw, 72px);
    align-items: end;
  }
}

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 64px); }
.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(242,177,51,.16), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; width: 100%; }
.page-hero__inner > .eyebrow,
.page-hero__inner > .page-hero__logo { display: block; }
.page-hero__inner > .hero-cta { margin-top: var(--s-5); }
.page-visual {
  margin-bottom: var(--s-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-4);
}
.page-visual img {
  width: 100%; height: auto; max-height: 360px; object-fit: cover; object-position: center;
}
.page-hero .lead { margin-top: var(--s-4); max-width: min(70ch, 100%); }
.page-hero h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(2rem, 3.2vw + .6rem, 3.4rem);
}

/* crowned crane crest — legacy (unused on home) */
.crane { display: none; }

/* ----------------------------- TILES ----------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-4); }
.tiles--related { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pay-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 30px; border-radius: 6px; background: var(--ink-4);
  color: var(--gold); font-weight: 800; font-size: .75rem; letter-spacing: .06em;
}
.tile {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: transform .12s, border-color .15s, background .15s;
  position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background-image: repeating-linear-gradient(90deg, var(--amber) 0 6px, var(--gold) 6px 12px, transparent 12px 18px); opacity: .7; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--ink-4); text-decoration: none; }
.tile-ico { width: 40px; height: 40px; color: var(--gold); }
.tile h3 { font-size: 1.05rem; }
.tile p { color: var(--text-dim); font-size: .88rem; max-width: none; }

/* ----------------------------- CAROUSEL ----------------------------- */
.carousel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.carousel-head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.carousel-controls { display: flex; gap: var(--s-2); }
.car-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-3);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.car-btn:hover { background: var(--ink-4); border-color: var(--gold); color: var(--gold); }
.car-btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  --car-gap: var(--s-4);
  --car-cols: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--car-cols) - 1) * var(--car-gap)) / var(--car-cols));
  gap: var(--car-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--s-3);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .carousel-track { --car-cols: 3; } }
@media (min-width: 960px) { .carousel-track { --car-cols: 4; } }
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 8px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }

.game-card {
  scroll-snap-align: start; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-soft); }
.game-card__media {
  position: relative;
  background: #05070d;
  line-height: 0;
}
.game-card__media img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  object-fit: unset;
  aspect-ratio: auto;
}
.game-card__media .play-mini {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(11, 15, 26, .88); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 20px; min-height: 44px; min-width: 72px;
  font-size: .95rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1;
}
.game-card__media .play-mini:hover {
  background: var(--crane-red); border-color: var(--crane-red); color: #fff;
}
.game-card__body {
  padding: var(--s-3) var(--s-4) var(--s-4);
}

/* Live casino carousel only — equal square tiles */
.carousel-block--uniform .game-card { height: 100%; }
.carousel-block--uniform .game-card__media {
  aspect-ratio: 1 / 1;
  flex: none;
  overflow: hidden;
}
.carousel-block--uniform .game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.carousel-block--uniform .game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 4.5rem;
}
.game-card__title { font-size: .98rem; font-weight: 700; }
.game-card__prov { color: var(--text-mute); font-size: .78rem; margin-top: 2px; }
.game-card__desc { color: var(--text-dim); font-size: .88rem; margin-top: var(--s-2); }
.game-card details { margin-top: var(--s-3); }
.game-card details > summary { cursor: pointer; list-style: none; color: var(--gold); font-size: .85rem; font-weight: 700; display: inline-flex; gap: 6px; }
.game-card details > summary::-webkit-details-marker { display: none; }
.game-card details[open] > summary { color: var(--gold-soft); }

/* ----------------------------- PROMO / CARDS ----------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--promo { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); position: relative; overflow: hidden;
  height: 100%; min-height: 100%;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background-image: repeating-linear-gradient(90deg, var(--amber) 0 6px, var(--gold) 6px 12px, transparent 12px 18px); opacity: .7; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-dim); flex: 1 1 auto; }
.card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: rgba(242, 177, 51, .1); padding: 4px 10px; border-radius: 999px; }
.card img { width: 100%; height: auto; border-radius: var(--radius-sm); aspect-ratio: 16 / 7; object-fit: cover; background: var(--ink-4); }
.card .card-cta { margin-top: auto; align-self: flex-start; }

/* ----------------------------- PROVIDERS ----------------------------- */
.providers { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.provider-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-size: .85rem; font-weight: 600; }
.provider-chip img { height: 18px; width: auto; opacity: .85; }

/* ----------------------------- PAYMENTS ----------------------------- */
.payments { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--s-4); }
.pay-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; transition: border-color .15s, transform .12s;
}
.pay-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pay-card img { height: 30px; width: auto; }
.pay-card span { font-size: .82rem; color: var(--text-dim); font-weight: 600; }

/* ----------------------------- APP BLOCK ----------------------------- */
.app-block { display: grid; gap: var(--s-6); align-items: center; }
.app-block .app-copy { order: 2; }
.app-block .app-shot { order: 1; }
.app-features { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.app-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); list-style: none; }
.app-features svg { color: var(--gold); flex: none; margin-top: 3px; }
.app-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.app-shot {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  min-height: 280px;
  overflow: hidden;
}
.app-shot img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

/* ----------------------------- TRUST / RESPONSIBLE ----------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { color: var(--gold); flex: none; }
.trust-item h4 { font-size: 1rem; }
.trust-item p { color: var(--text-dim); font-size: .9rem; }

.age-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(214, 35, 58, .12); border: 1px solid rgba(214, 35, 58, .35); color: var(--text);
  font-weight: 700; font-size: .9rem;
}
.age-badge strong { color: var(--gold-soft); }

/* warning / info callout */
.callout {
  border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: var(--s-5) var(--s-6); background: linear-gradient(180deg, rgba(242, 177, 51, .06), transparent);
}
.callout--warn { border-left-color: var(--crane-red); background: linear-gradient(180deg, rgba(214, 35, 58, .08), transparent); }
.callout h3 { display: flex; gap: 10px; align-items: center; }
.callout h3 svg { color: var(--gold); flex: none; }
.callout--warn h3 svg { color: var(--crane-red); }
.callout p { color: var(--text-dim); margin-top: var(--s-2); }

/* ----------------------------- FAQ ----------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: 700; font-family: var(--font-display);
  display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: var(--s-4) var(--s-5) var(--s-5); color: var(--text-dim); }
.faq-answer p { max-width: none; }
.faq-answer p + p { margin-top: var(--s-3); }

/* ----------------------------- SEO TEXT + TABLES ----------------------------- */
.prose { max-width: none; width: 100%; }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); color: var(--gold-soft); }
.prose p { color: var(--text-dim); max-width: none; }
.prose p + p, .prose ul + p, .prose ol + p { margin-top: var(--s-4); }
.prose ul, .prose ol { color: var(--text-dim); padding-left: 1.3em; max-width: none; }
.prose li { margin-block: var(--s-2); }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
#guide .table-wrap, .prose .table-wrap { max-width: none; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin-block: var(--s-5); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
caption { text-align: left; padding: var(--s-3) var(--s-4); color: var(--text-dim); font-size: .85rem; font-style: italic; }
th, td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink-2); color: var(--gold); font-family: var(--font-display); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td .pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pill--ok { background: rgba(47, 191, 143, .14); color: var(--jade); }
.pill--no { background: rgba(214, 35, 58, .14); color: #ff7a8a; }
.pill--warn { background: rgba(242, 177, 51, .14); color: var(--gold); }

/* mobile: tables become key/value stacks on very narrow screens via .stack */
@media (max-width: 560px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; min-width: 0; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
  table.stack td { border: 0; padding: 4px var(--s-4); min-width: 0; }
  table.stack td::before { content: attr(data-label) " "; color: var(--gold); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; display: block; }
}

/* ----------------------------- REVIEWS ----------------------------- */
.reviews-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-6); }
.rating-big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: 2px; }
.rating-meta { color: var(--text-dim); font-size: .9rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.review { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.review-author { font-weight: 700; }
.review-date { color: var(--text-mute); font-size: .8rem; }
.review p { color: var(--text-dim); }

.review-form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6); margin-top: var(--s-6); }
.review-form h3 { margin-bottom: var(--s-2); }
.form-row { margin-bottom: var(--s-4); }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-size: 1rem;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242, 177, 51, .18); }
.rating-input { display: inline-flex; gap: 4px; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--text-mute); margin-top: var(--s-2); }
.form-status { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: rgba(47, 191, 143, .12); border: 1px solid rgba(47, 191, 143, .3); color: var(--jade); font-weight: 600; display: none; }
.form-status.show { display: block; }

/* ----------------------------- FOOTER ----------------------------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); margin-top: var(--s-7); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-6); }
.footer-brand p { color: var(--text-dim); font-size: .9rem; margin-top: var(--s-3); }
.footer-col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--text-mute); font-size: .82rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.lic-note { color: var(--text-mute); font-size: .76rem; max-width: 60ch; margin-top: var(--s-4); line-height: 1.5; }

/* ----------------------------- BREADCRUMBS ----------------------------- */
.crumbs { font-size: .82rem; color: var(--text-mute); padding-block: var(--s-4); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--text-mute); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--text-dim); }
.crumbs [aria-current] { color: var(--gold); }

/* page hero (inner pages) — see .page-hero above */
.page-hero.band { padding-block: clamp(36px, 6vw, 64px); }

/* data-saver toggle */
.lite-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--text-dim); font-size: .82rem; font-weight: 600;
}
.lite-toggle input { accent-color: var(--gold); }
.lite-banner { background: var(--ink-3); border-bottom: 1px solid var(--line-2); padding: var(--s-2) 0; font-size: .82rem; color: var(--text-dim); display: none; }
body.lite .lite-banner { display: block; }

/* data saver: drop heavy bg images / motion */
body.lite .hero__media, body.lite .crane, body.lite .card::before, body.lite .tile::before { display: none; }
body.lite .hero { background: var(--ink-2); min-height: auto; }
body.lite img[data-full] { content: attr(data-lite); }
body.lite .game-card__media img { opacity: .75; }

/* ----------------------------- UTILITIES ----------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); color: var(--text-dim); font-size: .8rem; font-weight: 600; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- BACK TO TOP ----------------------------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(11, 15, 26, .92);
  color: var(--text);
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s, border-color .15s;
}
.to-top.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: var(--crane-red); border-color: var(--crane-red); color: #fff;
}
.to-top:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (min-width: 768px) {
  .app-block { grid-template-columns: 1.05fr .95fr; }
  .app-block .app-copy { order: 1; }
  .app-block .app-shot { order: 2; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .lite-toggle { display: none; }
  .header-inner { gap: var(--s-3); }
  .header-cta { margin-inline-start: auto; flex-shrink: 0; }
  .header-cta .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    min-height: 40px;
    font-size: .82rem;
    letter-spacing: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
  }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand img { height: 26px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: var(--s-5) clamp(16px, 4vw, 32px); transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .nav-list a { font-size: 1.05rem; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .hero { min-height: 68vh; align-items: end; }
  .hero__media img { object-position: center 30%; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 140px; }
  .page-hero__inner { text-align: left; }
  .header-cta .btn {
    padding: 8px 12px;
    font-size: .8rem;
  }
}
@media (min-width: 921px) {
  .nav-toggle { display: none; }
}

/* ----------------------------- MOTION / A11Y ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .crane .crest-ray { animation: none; }
}

/* content-visibility for offscreen sections (perf) */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 600px; }
