/* DafBat — "Midnight Mela" design tokens.
   Per-site accents are injected at build time as [data-site="…"] blocks. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Metric-matched fallbacks keep CLS near zero while the web fonts swap in. */
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 112%; ascent-override: 92%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 102%; ascent-override: 98%; }

:root {
  /* colour — dark (default) */
  --bg: #0B0A1A;
  --surface: #15132B;
  --surface-2: #1E1B3A;
  --glass: rgb(255 255 255 / .06);
  --border: rgb(255 255 255 / .10);
  --text: #F4F1FF;
  --text-muted: #A9A3C9;
  --success: #22C55E;
  --warn: #FFB020;
  --accent: #FF9F1C;
  --accent-ink: #0B0A1A;
  --accent-text: var(--accent);
  --glow: color-mix(in oklab, var(--accent) 45%, transparent);

  /* type */
  --font-display: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, sans-serif;
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  --fs-h3: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --lh-tight: 1.15;
  --lh-body: 1.65;

  /* space (4px base) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --gutter: 16px;
  --maxw: 1200px;

  /* shape */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 0 rgb(255 255 255 / .04) inset, 0 10px 30px -12px rgb(0 0 0 / .6);
  --shadow-glow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 18px 60px -18px var(--glow);

  /* layers */
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 120;

  --hero-grad: radial-gradient(60% 80% at 80% 10%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%),
               radial-gradient(50% 60% at 10% 90%, rgb(120 70 255 / .25), transparent 70%);
}

/* light theme: system preference unless the user picked dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F5FF;
    --surface: #FFFFFF;
    --surface-2: #EFECFA;
    --glass: rgb(255 255 255 / .7);
    --border: rgb(20 16 60 / .12);
    --text: #15122E;
    --text-muted: #555070;
    --success: #127A3A;
    --warn: #8A5A00;
    --accent-text: var(--accent-text-light);
    --shadow-card: 0 1px 2px rgb(20 16 60 / .06), 0 12px 30px -16px rgb(20 16 60 / .25);
  }
}
:root[data-theme="light"] {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --surface-2: #EFECFA;
  --glass: rgb(255 255 255 / .7);
  --border: rgb(20 16 60 / .12);
  --text: #15122E;
  --text-muted: #555070;
  --success: #127A3A;
  --warn: #8A5A00;
  --accent-text: var(--accent-text-light);
  --shadow-card: 0 1px 2px rgb(20 16 60 / .06), 0 12px 30px -16px rgb(20 16 60 / .25);
}

[data-site="hub"]{--accent:#FF9F1C;--accent-ink:#0B0A1A;--accent-text:#FF9F1C;--accent-text-light:#a56712}
[data-site="yono"]{--accent:#FF6B4A;--accent-ink:#0B0A1A;--accent-text:#FF6B4A;--accent-text-light:#bb4f36}
[data-site="all-yono"]{--accent:#2EE6C5;--accent-ink:#0B0A1A;--accent-text:#2EE6C5;--accent-text-light:#197c6a}
[data-site="yono-rummy"]{--accent:#22C55E;--accent-ink:#0B0A1A;--accent-text:#22C55E;--accent-text-light:#16803d}
[data-site="yono-777"]{--accent:#FFD23F;--accent-ink:#0B0A1A;--accent-text:#FFD23F;--accent-text-light:#897122}
[data-site="spin-777"]{--accent:#FF3D8B;--accent-ink:#0B0A1A;--accent-text:#FF3D8B;--accent-text-light:#d43373}
[data-site="yono-slots"]{--accent:#9B5CFF;--accent-ink:#0B0A1A;--accent-text:#9B5CFF;--accent-text-light:#8951e1}
[data-site="yono-vip"]{--accent:#E8C27A;--accent-ink:#0B0A1A;--accent-text:#E8C27A;--accent-text-light:#856f46}
[data-site="yono-arcade"]{--accent:#22D3EE;--accent-ink:#0B0A1A;--accent-text:#22D3EE;--accent-text-light:#137988}
/* DafBat main stylesheet — one file for all nine hosts.
   BEM-lite. Mobile first: base → 768px → 1200px. */

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* reset: the hidden attribute always wins */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  overflow-x: clip;
}
img, svg, picture, video, iframe { display: block; max-width: 100%; }
p, li, dd, dt, td, th, h1, h2, h3, a { overflow-wrap: break-word; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -.01em; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; margin-top: var(--space-6); }
p { margin: 0 0 var(--space-4); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--glass); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
kbd { font: 600 .75rem var(--font-body); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; margin-right: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }
@media (max-width: 479px) { .nowrap { white-space: normal; overflow-wrap: anywhere; } }
.eyebrow { font: 600 .78rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--space-2); }
.h-small { font-size: 1rem; }
.h-display { font: 700 2rem/1.1 var(--font-display); }

.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: var(--space-3); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in oklab, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(14px)) { .site-header { backdrop-filter: blur(14px) saturate(1.4); } }
.site-header__in { max-width: var(--maxw); margin: 0 auto; padding: var(--space-2) var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); min-height: 44px; min-width: 0; }
.brand__mark { flex: none; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__word { font: 800 1.05rem var(--font-display); letter-spacing: -.02em; }
.brand__hub { font-size: .75rem; color: var(--accent-text); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header__tools { display: flex; align-items: center; gap: var(--space-2); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text); cursor: pointer; text-decoration: none; font: 600 .85rem var(--font-body); list-style: none; }
.iconbtn:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--border)); }
.iconbtn::-webkit-details-marker { display: none; }
.switcher { position: relative; }
.switcher__label { display: none; }
.switcher__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-card); }
.switcher__title { font: 600 .75rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 4px 8px 8px; }
.switcher ul { list-style: none; margin: 0; padding: 0; }
.switcher a { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px; border-radius: 10px; color: var(--text); text-decoration: none; }
.switcher a:hover, .switcher a[aria-current] { background: var(--glass); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 10px var(--dot); }
.subnav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.subnav ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0 0 var(--space-2); overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--text-muted); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.subnav a:hover, .subnav a[aria-current] { color: var(--text); background: var(--glass); }

/* ---------------------------------------------------------------- layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) var(--space-12); display: block; overflow-x: clip; }
.sec { padding: var(--space-10) 0; border-top: 1px solid var(--border); }
.sec:first-child { border-top: 0; }
.answer { font-size: 1.06em; }
.quote { border-left: 3px solid var(--accent); padding: var(--space-2) var(--space-4); background: var(--glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose-list { padding-left: 1.2em; }
.prose-list li { margin-bottom: var(--space-2); }
.warn { border: 1px solid color-mix(in oklab, var(--warn) 50%, transparent); background: color-mix(in oklab, var(--warn) 12%, transparent); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.lede { font-size: 1.08em; color: var(--text-muted); max-width: 62ch; }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; min-width: 0; padding: 8px 18px; text-align: center; line-height: 1.2; white-space: normal; border-radius: 14px; font: 700 .95rem var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--accent, .btn--dl { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: var(--glass); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--dl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn--dl:hover::after, .btn--dl:focus-visible::after { transform: translateX(120%); transition: transform .7s ease; }
.btn .i, .iconbtn .i, .pill .i { flex: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--accent-text); font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.disclosure { font-size: .8rem; color: var(--text-muted); margin: var(--space-2) 0 0; }
.disclosure a { color: inherit; }

/* ---------------------------------------------------------------- hero (bento) */
.hero { position: relative; isolation: isolate; padding: var(--space-8) 0 var(--space-6); display: grid; gap: var(--space-6); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero__aurora { position: absolute; inset: -40px calc(var(--gutter) * -1) 0; z-index: -2; background: var(--hero-grad), conic-gradient(from var(--a) at 70% 30%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 30%, rgb(90 60 255 / .18) 55%, transparent 80%); filter: blur(30px); animation: aurora 40s linear infinite; opacity: .9; pointer-events: none; }
@keyframes aurora { to { --a: 360deg; } }
.hero__motif { position: absolute; right: -40px; top: 0; width: 260px; color: var(--accent); opacity: .08; z-index: -1; pointer-events: none; }
.hero__copy { max-width: 720px; }
.hero h1 { margin-bottom: var(--space-4); }
.search { display: flex; gap: var(--space-2); margin-top: var(--space-5); max-width: 560px; }
.search input { flex: 1; min-width: 0; min-height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 16px; font: inherit; }
.search input:focus-visible { outline-offset: 0; }
.search .btn span { display: none; }

.bento { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; grid-template-areas: "flag flag" "phones phones" "t1 t2" "t3 t3"; }
.bento > * { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); min-width: 0; }
@supports (backdrop-filter: blur(14px)) { .bento > * { backdrop-filter: blur(14px); } }
.bento__flag { grid-area: flag; box-shadow: var(--shadow-glow); position: relative; }
.bento__head { display: flex; align-items: center; gap: var(--space-4); color: var(--text); text-decoration: none; margin-bottom: var(--space-4); }
.bento__head .logo img { border-radius: 22px; }
.bento__name { display: block; font: 700 1.25rem var(--font-display); }
.bento__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-4); }
.bento__phones { grid-area: phones; display: flex; justify-content: center; gap: var(--space-4); padding: var(--space-5) var(--space-3) 0; overflow: hidden; min-height: 240px; background: radial-gradient(70% 70% at 50% 100%, color-mix(in oklab, var(--accent) 25%, transparent), transparent), var(--glass); }
.bento__t1 { grid-area: t1; } .bento__t2 { grid-area: t2; } .bento__t3 { grid-area: t3; }
.phone { width: 42%; max-width: 170px; }
.phone img { border-radius: 22px; border: 3px solid #2a2650; box-shadow: 0 20px 40px -10px rgb(0 0 0 / .7); }
.phone--a { animation: float 8s ease-in-out infinite; }
.phone--b { animation: float 8s ease-in-out -4s infinite; margin-top: 28px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); }
.tile__value { font: 700 clamp(1.05rem, .95rem + .6vw, 1.25rem)/1.25 var(--font-display); overflow-wrap: anywhere; }
.tile { min-width: 0; }
.tile__label { overflow-wrap: anywhere; }
.tile__value a { color: var(--text); }
.tile__label { font-size: .8rem; color: var(--text-muted); }
.bento > .tile { background: var(--glass); }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: var(--space-2) 0; }
.marquee__belt { display: flex; gap: var(--space-4); width: max-content; animation: belt 60s linear infinite; }
.marquee:hover .marquee__belt, .marquee:focus-within .marquee__belt { animation-play-state: paused; }
.marquee img { border-radius: 12px; opacity: .85; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- top-10 rail */
.rail { list-style: none; margin: 0; padding: 0 0 var(--space-3); display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.rail__item { scroll-snap-align: start; }
.topcard { position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-5); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; }
.topcard__rank { position: absolute; right: -6px; top: -26px; z-index: -1; font: 900 8rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px color-mix(in oklab, var(--accent) 55%, transparent); }
.topcard .logo img { border-radius: 20px; }
.topcard__name { font: 700 1.1rem var(--font-display); display: block; }
.topcard__body { display: flex; flex-direction: column; gap: 2px; }
.topcard__bonus { color: var(--accent-text); font-weight: 700; }
.topcard__type { color: var(--text-muted); font-size: .85rem; }

/* ---------------------------------------------------------------- filters + grid + card */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.filters[hidden] { display: none; }
.chip { flex: 0 1 auto; max-width: 100%; min-height: 44px; padding: 6px 14px; line-height: 1.2; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
/* Columns come from the space available: 1 on phones, 2 on large phones/tablets, 3 on laptops, 4 on desktop. */
.grid, .grid--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--space-4); width: 100%; min-width: 0; }
.grid__status { margin: var(--space-3) 0 0; color: var(--text-muted); min-height: 1.4em; }
.grid__more { margin-top: var(--space-2); }
.card { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: var(--space-3); width: 100%; max-width: 100%; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: transform .25s ease, border-color .25s ease; min-width: 0; }
.card[hidden] { display: none; }
.card__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; color: var(--text); text-decoration: none; }
.card:has(.ribbon) .card__head { padding-right: 56px; }
.card__head .logo { flex: none; }
@container (min-width: 280px) { .card__head { flex-direction: row; align-items: center; gap: var(--space-3); } }
.card__head .logo img { border-radius: 16px; }
.card__name { font: 700 1.02rem/1.25 var(--font-display); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.pill--ok { color: var(--success); }
.pill .i { width: 14px; height: 14px; }
.card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: var(--space-2); margin: 0; min-width: 0; }
.card__facts div { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.card__facts dt { font-size: .72rem; line-height: 1.35; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.card__facts dd { margin: 0; font: 800 clamp(1.05rem, 1rem + .4vw, 1.2rem)/1.25 var(--font-display); overflow-wrap: anywhere; }
.card__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: var(--space-2); margin-top: auto; }
.card__actions .btn { width: 100%; min-height: 48px; padding: 8px 12px; font-size: .9rem; }
.ribbon { position: absolute; top: 12px; right: -1px; background: var(--accent); color: var(--accent-ink); font: 800 .68rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px 4px 12px; border-radius: 8px 0 0 8px; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card--featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--spin), var(--accent), transparent 30%, color-mix(in oklab, var(--accent) 40%, #7b5cff) 60%, transparent 85%, var(--accent)) border-box; border: 1px solid transparent; animation: spinb 8s linear infinite; }
@keyframes spinb { to { --spin: 360deg; } }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px) perspective(800px) rotateX(2deg); border-color: color-mix(in oklab, var(--accent) 50%, var(--border)); }
  .topcard:hover { transform: translateY(-4px); }
  .topcard { transition: transform .25s ease; }
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: 700; caption-side: top; }
.compare caption .muted { display: block; font-weight: 400; font-size: .8rem; }
.compare th, .compare td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--border); white-space: nowrap; }
.compare thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); position: sticky; top: 0; }
.compare tbody tr:hover { background: var(--glass); }
.compare tbody th a { color: var(--text); font-weight: 700; }
.sortbtn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.sortbtn:focus-visible { outline: 2px solid var(--accent); }
.sortbtn::after { content: "↕"; opacity: .5; }
[aria-sort="ascending"] .sortbtn::after { content: "↑"; opacity: 1; }
[aria-sort="descending"] .sortbtn::after { content: "↓"; opacity: 1; }

/* ---------------------------------------------------------------- facts dl, pros/cons */
.facts { display: grid; gap: 0; margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.facts div { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: var(--space-3); padding: 12px var(--space-4); border-top: 1px solid var(--border); min-width: 0; }
@media (max-width: 399px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--text-muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.pc { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.pc__col { padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.pc__col h3 { margin-top: 0; }
.pc__col ul { margin: 0; padding-left: 1.1em; }
.pc__col li { margin-bottom: 6px; }
.pc__col--pro { border-top: 3px solid var(--success); }
.pc__col--con { border-top: 3px solid var(--warn); }
.sources { padding-left: 1.1em; }
.editorial { margin: var(--space-8) 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--glass); border: 1px dashed var(--border); font-size: .92rem; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: var(--space-2); }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.faq__item summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 700 1.3rem var(--font-display); color: var(--accent-text); transition: transform .25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.faq__a { padding: 0 var(--space-5) var(--space-2); }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.steps li { counter-increment: s; position: relative; padding: var(--space-3) var(--space-4) var(--space-3) 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 20%, transparent); color: var(--accent-text); font: 700 .9rem var(--font-display); }

/* ---------------------------------------------------------------- crumbs, toc */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: var(--space-4) 0 0; padding: 0; font-size: .88rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a, .crumbs span { display: inline-flex; min-height: 44px; align-items: center; }
.toc { margin: var(--space-4) 0; }
.toc__title { font: 700 .75rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: var(--space-2); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--text); text-decoration: none; white-space: nowrap; font-size: .88rem; font-weight: 600; }
.toc a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- game page */
.gp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.gp > * { min-width: 0; }
.gp__toc { position: sticky; top: 60px; z-index: 5; background: var(--bg); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--border); }
.gp__toc .toc { margin: var(--space-2) 0; }
.gp__toc .toc__title { display: none; }
.gp__hero { padding-top: var(--space-6); border-top: 0; }
.gp__id { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.gp__id h1 { margin: 0; }
.logo--hero img { border-radius: 24px; box-shadow: var(--shadow-glow); }
.gp__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-5) 0; }
.gp__tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gp__cta .btn { width: 100%; }
.share ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.share a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text); text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------------- doc pages */
.doc { max-width: 820px; }
.doc__head { padding: var(--space-8) 0 var(--space-4); }
.big404 { font: 900 5rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--accent); margin: 0; }
.newlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.newlist__item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.newlist__item a { color: var(--text); }
.newlist__item .logo img, .minilist .logo img, .az .logo img { border-radius: 10px; }
.steps--big li { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ---------------------------------------------------------------- hub specials */
.hubgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.hubcard { position: relative; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); overflow: hidden; padding: var(--space-4); }
.hubcard a { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; min-height: 100%; }
.hubcard strong { font: 700 1rem var(--font-display); color: var(--hub, var(--accent)); }
.hubcard span { font-size: .85rem; color: var(--text-muted); }
.hubcard .hubcard__n { color: var(--text); font-weight: 700; margin-top: auto; }
.hubcard__motif { position: absolute; right: -18px; bottom: -18px; width: 90px; color: var(--hub, var(--accent)); opacity: .18; }
.azbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--space-5); }
.azbar a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); color: var(--text); text-decoration: none; font: 700 .95rem var(--font-display); }
.azbar a:hover { background: var(--accent); color: var(--accent-ink); }
.az { display: grid; gap: var(--space-4); }
.az__letter { font-size: 1.6rem; color: var(--accent-text); margin: 0 0 var(--space-2); }
.az ul, .minilist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.az li a, .minilist li a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); }
.az li a .muted { margin-left: 4px; }
.modes { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.mode { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.mode__icon { color: var(--accent-text); }
.mode span:last-child { font-size: .85rem; color: var(--text-muted); }
.fan { position: relative; height: 150px; margin: var(--space-4) auto; width: 220px; }
.fan__card { position: absolute; left: 50%; bottom: 0; width: 76px; height: 108px; margin-left: -38px; border-radius: 10px; background: #FFFDF6; color: #15122E; font: 800 1.1rem var(--font-display); padding: 8px; border: 1px solid #ddd; box-shadow: 0 8px 20px -6px rgb(0 0 0 / .5); transform-origin: 50% 120%; transform: rotate(calc(var(--i) * 6deg)); transition: transform .4s cubic-bezier(.2, .8, .2, 1.2); }
.fan__card:nth-child(2) { color: #C81E3A; } .fan__card:nth-child(3) { color: #C81E3A; }
.fan:hover .fan__card, .modes-wrap:hover .fan__card { transform: rotate(calc(var(--i) * 16deg)) translateY(-6px); }
.reels { display: flex; gap: var(--space-3); justify-content: center; margin: var(--space-4) 0 var(--space-6); }
.reel { width: 30%; max-width: 160px; text-align: center; }
.reel__strip { display: block; height: 86px; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface-2), var(--surface) 50%, var(--surface-2)); border: 2px solid color-mix(in oklab, var(--accent) 50%, var(--border)); position: relative; }
.reel__strip span { display: grid; place-items: center; height: 86px; font: 800 1.15rem var(--font-display); color: var(--accent-text); }
.reel__strip span:first-child, .reel__strip span:nth-child(2) { position: absolute; inset: 0; transform: translateY(-100%); }
.reel__cap { display: block; margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
.wheel { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto var(--space-4); }
.wheel__disc { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -22.5deg, var(--accent) 0 45deg, color-mix(in oklab, var(--accent) 35%, var(--surface)) 45deg 90deg); border: 6px solid var(--surface-2); box-shadow: 0 0 0 2px var(--accent), 0 20px 50px -20px var(--glow); animation: spinwheel 3.2s cubic-bezier(.15, .85, .25, 1) .4s both; }
.wheel__disc span { position: absolute; left: 50%; top: 50%; width: 30px; margin: -15px; height: 30px; display: grid; place-items: center; font: 800 1rem var(--font-display); color: var(--accent-ink); transform: rotate(calc(var(--i) * 45deg)) translateY(-90px) rotate(calc(var(--i) * -45deg)); }
.wheel__pin { position: absolute; left: 50%; top: -8px; margin-left: -12px; border: 12px solid transparent; border-top: 22px solid var(--text); }
@keyframes spinwheel { from { transform: rotate(-1260deg); } to { transform: rotate(0); } }
.split { display: grid; gap: var(--space-6); align-items: center; }
.vip-ladder { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.vip-ladder li { display: flex; flex-direction: column; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.vip-ladder li:nth-child(1) { margin-right: 30%; } .vip-ladder li:nth-child(2) { margin-right: 20%; } .vip-ladder li:nth-child(3) { margin-right: 10%; }
.vip-ladder li:nth-child(4) { border-color: var(--accent); }
.vip-ladder span { font-size: .88rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- risk band, cta, footer */
.risk { max-width: var(--maxw); margin: 0 auto var(--space-8); padding: var(--space-5); display: flex; gap: var(--space-4); align-items: flex-start; border-radius: var(--radius-lg); background: color-mix(in oklab, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); width: calc(100% - var(--gutter) * 2); }
.risk p { margin-bottom: var(--space-2); }
.risk__badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--warn); font: 800 1rem var(--font-display); color: var(--warn); margin: 0; }
.cta { margin: var(--space-6) 0; padding: var(--space-8) var(--space-5); border-radius: var(--radius-lg); text-align: center; background: var(--hero-grad), var(--surface); border: 1px solid var(--border); }
.cta__row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__in { max-width: var(--maxw); margin: 0 auto; padding: var(--space-10) var(--gutter) var(--space-6); display: grid; gap: var(--space-8); }
.site-footer__brand { display: flex; gap: var(--space-3); align-items: flex-start; }
.site-footer__brand p { font-size: .92rem; color: var(--text-muted); }
.site-footer__h { font: 700 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--accent-text); }
.site-footer__legal { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) var(--space-10); font-size: .82rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- dialogs, toast, cookie */
.modal, .palette { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .7); }
.modal::backdrop, .palette::backdrop { background: rgb(5 4 15 / .7); }
@supports (backdrop-filter: blur(4px)) { .modal::backdrop, .palette::backdrop { backdrop-filter: blur(4px); } }
.modal__in { padding: var(--space-6); text-align: center; }
.modal__in .risk__badge { margin: 0 auto var(--space-4); }
.modal__actions { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); flex-wrap: wrap; }
.modal[open], .palette[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ring { width: 64px; height: 64px; margin: 0 auto var(--space-3); transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--surface-2); stroke-width: 5; }
.ring .ring__bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 126; }
.modal.is-counting .ring__bar { animation: ring 3s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.palette { width: min(640px, calc(100vw - 32px)); margin-top: 10vh; }
.palette__in { padding: var(--space-3); }
.palette input { width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: 600 1.1rem var(--font-body); padding: 0 var(--space-3); }
.palette input:focus-visible { outline: none; border-bottom-color: var(--accent); }
.palette__list { list-style: none; margin: 0; padding: var(--space-2) 0; max-height: 55vh; overflow: auto; }
.palette__list a { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px var(--space-3); border-radius: 10px; color: var(--text); text-decoration: none; min-height: 44px; align-items: center; }
.palette__list a[aria-selected="true"], .palette__list a:hover { background: var(--glass); outline: 1px solid var(--accent); }
.palette__hint { padding: 0 var(--space-3); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 140%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 700; transition: transform .25s ease, opacity .25s ease; opacity: 0; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-toast); display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatch { display: flex; align-items: flex-end; width: 120px; height: 70px; padding: 6px; border-radius: 12px; background: var(--sw); border: 1px solid var(--border); }

/* ---------------------------------------------------------------- scroll reveal */
@supports (animation-timeline: view()) {
  .sec, .topcard, .hubcard { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  .reel__strip span:nth-child(-n + 2) { animation: reelspin linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes reelspin { 0% { transform: translateY(0); } 50% { transform: translateY(100%); } 100% { transform: translateY(200%); } }
.io .sec:not(.in), .io .hubcard:not(.in) { opacity: 0; transform: translateY(18px); }
.io .sec, .io .hubcard { transition: opacity .5s ease, transform .5s ease; }
.io .in .reel__strip span:nth-child(-n + 2) { animation: reelflip .9s ease-out calc(var(--d) * .15s) both; }
@keyframes reelflip { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(200%); } }

/* ---------------------------------------------------------------- breakpoints */
@media (max-width: 374px) {
  :root { --gutter: 14px; }
  .chip { padding: 6px 11px; font-size: .84rem; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "flag" "phones" "t1" "t2" "t3"; }
  .gp__tiles { grid-template-columns: 1fr; }
  .hero h1, .doc__head h1 { font-size: 1.85rem; }
}
@media (min-width: 560px) {
    .search .btn span { display: inline; }
  .switcher__label { display: inline; }
}
@media (min-width: 768px) {
  .bento { grid-template-columns: 1.2fr 1fr 1fr; grid-template-areas: "flag phones phones" "t1 t2 t3"; }
  .bento__phones { min-height: 300px; }
  .pc { grid-template-columns: 1fr 1fr; }
  .hubgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 300px 1fr; }
  .site-footer__in { grid-template-columns: 1.3fr 1fr 1fr; }
  .gp__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp__tiles .tile:last-child:nth-child(odd) { grid-column: auto; }
  .gp__cta .btn { width: auto; }
  .az { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; padding-top: var(--space-12); }
  .hero .marquee { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "flag phones" "t1 phones" "t2 t3"; }
  .gp { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-10); }
  .gp__toc { position: sticky; top: 90px; align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .gp__toc .toc__title { display: block; }
  .gp__toc .toc ol { flex-direction: column; overflow: visible; }
  .gp__toc .toc a { border: 0; background: none; border-left: 2px solid var(--border); border-radius: 0; color: var(--text-muted); }
  .gp__toc .toc a[aria-current="true"] { border-left-color: var(--accent); color: var(--text); background: var(--glass); }
  .crumbs { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .hero__motif { width: 380px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; scroll-behavior: auto !important; }
  .hero__aurora, .phone--a, .phone--b, .marquee__belt, .card--featured, .wheel__disc, .sec, .topcard, .hubcard, .reel__strip span { animation: none !important; }
  .card:hover, .topcard:hover { transform: none !important; }
  .io .sec:not(.in), .io .hubcard:not(.in) { transform: none; }
  @view-transition { navigation: none; }
}
@media print { .site-header, .risk, .site-footer, .modal, .palette, .gp__toc, .marquee { display: none; } }
