/* ═══════════════════════════════════════════════════════════════
   FXGAMES by Adiox — standalone single-page site (fxgames.adiox.io)
   Dark theme, gold accent. Base shared with the tournaments site. Fonts: Manrope · Inter · IBM Plex Mono
═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #07080f; --bg-2: #0b0c17; --surface: #10121f; --surface-2: #161829; --surface-3: #1e2136;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14);
  --ink: #f0f1fa; --ink-2: #b7bbd3; --ink-3: #8086a3;
  --gold: #f5b942; --gold-2: #fcd57a; --gold-deep: #b7791f;
  --violet: #a78bfa; --pink: #e879f9; --green: #34d399; --red: #f87171; --blue: #60a5fa;
  --brand: linear-gradient(120deg, #f5b942, #fb923c 55%, #e879f9);
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --f-display: "Manrope", system-ui, sans-serif; --f-body: "Inter", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1160px; --hh: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(245,185,66,0.4); color: #fff; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1a1205; font-weight: 700; }
.skip:focus { top: 10px; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 70px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
h3 { font-size: 19px; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 680px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 13.5px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font-family: var(--f-display); font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #f8c75b, #f5a623); color: #1a1205; box-shadow: 0 10px 30px rgba(245,185,66,0.3), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(245,185,66,0.45), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-gold { color: var(--gold); border-color: rgba(245,185,66,.45); background: rgba(245,185,66,.08); }
.b-green { color: var(--green); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.b-red { color: var(--red); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.b-violet { color: var(--violet); border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.1); }
.b-blue { color: var(--blue); border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); }

/* header */
.hdr { position: sticky; top: 0; z-index: 100; height: var(--hh); background: rgba(7,8,15,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 32px; width: auto; mix-blend-mode: screen; }
.logo span { font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1.2; white-space: nowrap; }
.logo span b { color: var(--gold); font-weight: 800; }
.hnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.hnav::-webkit-scrollbar { display: none; }
.hnav a { padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .15s, background-color .15s; }
.hnav a:hover, .hnav a.on { color: var(--ink); background: rgba(255,255,255,.05); }
.hdr .btn { margin-left: auto; }

/* sections */
.sec { padding: clamp(64px, 8.5vw, 104px) 0; position: relative; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 40px; }
.head.c { margin-left: auto; margin-right: auto; text-align: center; }
.head.c .lead { margin: 0 auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 700px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 320px at 22% 38%, rgba(245,185,66,.2), transparent 70%), radial-gradient(460px 300px at 78% 28%, rgba(232,121,249,.14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }


/* cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.grid > *, .hero-grid > *, .anatomy > *, .sim > *, .row2 > *, .row3 > * { min-width: 0; }
.card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card .big { font-family: var(--f-mono); font-size: 30px; font-weight: 600; margin: 4px 0 6px; }
.ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--c, 245,185,66), .12); border: 1px solid rgba(var(--c, 245,185,66), .35); color: rgb(var(--c, 245,185,66)); }
.ic svg { width: 20px; height: 20px; }
.c-gold { --c: 245,185,66; } .c-green { --c: 52,211,153; } .c-violet { --c: 167,139,250; } .c-red { --c: 248,113,113; } .c-blue { --c: 96,165,250; } .c-pink { --c: 232,121,249; }
.checks { display: grid; gap: 9px; margin-top: 12px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 6px; background: rgba(245,185,66,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b942' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.checks li b { color: var(--ink); }

/* tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-display); font-size: 13.5px; font-weight: 700; background: var(--surface-2); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.code { font-family: var(--f-mono); font-size: 12px; color: var(--gold-2); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(245,185,66,.45); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 17px 54px 17px 20px; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); font-family: var(--f-mono); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* cta + footer */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; padding: clamp(36px, 5vw, 56px); border-radius: var(--r-xl); border: 1px solid rgba(245,185,66,.3);
  background: linear-gradient(135deg, rgba(245,185,66,.2), rgba(232,121,249,.1) 60%, rgba(96,165,250,.06)), var(--surface); }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--ink-2); max-width: 560px; }
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 30px; font-size: 13.5px; color: var(--ink-3); }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 22px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr nav a { color: var(--ink-2); } .ftr nav a:hover { color: var(--ink); }
.ftr .risk { font-size: 12.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }
.ftr .risk a { color: var(--ink-2); text-decoration: underline; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ─── Live data (portal API) ─── */
.live-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.live-stats span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.live-stats b { font-family: var(--f-mono); color: var(--ink); }
.live-stats .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.skel { min-height: 420px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; border-color: var(--line); }
@keyframes shimmer { to { background-position: -150% 0; } }
.state { padding: 32px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); }
.state b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 17px; margin-bottom: 6px; }
.state .actions { justify-content: center; margin-top: 14px; }
.updated { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }




/* ═══ FXGAMES theme: neon violet / pink on the Adiox dark base ═══ */
:root { --neon: #a78bfa; --neon-2: #c4b5fd; --hot: #f472b6; --cyan: #22d3ee; --game: linear-gradient(120deg, #a78bfa, #f472b6 55%, #f5b942); }
.grad { background: var(--game); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { color: var(--neon-2); }
.btn-neon { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; box-shadow: 0 10px 30px rgba(139,92,246,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-neon:hover { box-shadow: 0 14px 40px rgba(236,72,153,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.logo span b { background: var(--game); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .02em; }
.b-neon { color: var(--neon-2); border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.1); }
.b-hot { color: #fbcfe8; border-color: rgba(244,114,182,.5); background: rgba(244,114,182,.1); }
.b-cyan { color: #a5f3fc; border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.08); }
.caption { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.hero::before { background: radial-gradient(520px 320px at 20% 35%, rgba(139,92,246,.24), transparent 70%), radial-gradient(460px 300px at 80% 25%, rgba(244,114,182,.18), transparent 70%), radial-gradient(400px 260px at 60% 80%, rgba(245,185,66,.1), transparent 70%); }

/* hero: live duel */
.arena { position: relative; border-radius: var(--r-xl); padding: 22px; background: linear-gradient(160deg, rgba(139,92,246,.14), rgba(16,18,31,.95) 45%), var(--surface); border: 1px solid rgba(167,139,250,.35); box-shadow: 0 30px 90px rgba(76,29,149,.35); container-type: inline-size; }
.arena-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.arena-top b { font-family: var(--f-display); font-size: 17px; }
.vs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: stretch; }
.fighter { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.fighter small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fighter b { display: block; font-family: var(--f-display); font-size: 18px; margin: 4px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fighter .pl { font-family: var(--f-mono); font-size: 20px; font-weight: 600; }
.fighter .pl.up { color: var(--green); } .fighter .pl.down { color: var(--red); }
.fighter .meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); margin-top: 10px; overflow: hidden; }
.fighter .meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.fighter.lead { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
.vs-badge { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 0 0 4px rgba(139,92,246,.18), 0 8px 24px rgba(236,72,153,.4); }
.pot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(245,185,66,.08); border: 1px solid rgba(245,185,66,.3); font-size: 13.5px; color: var(--ink-2); }
.pot b { font-family: var(--f-mono); font-size: 18px; color: var(--gold-2); }
.arena-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.timer { font-family: var(--f-mono); color: var(--ink); }
@container (max-width: 380px) { .vs { grid-template-columns: minmax(0,1fr); } .vs-badge { justify-self: center; } }

/* live lobby ticker */
.ticker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ticker span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.ticker b { font-family: var(--f-mono); color: var(--ink); }
.ticker .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(244,114,182,.6); animation: hotpulse 1.8s infinite; }
@keyframes hotpulse { 0% { box-shadow: 0 0 0 0 rgba(244,114,182,.55); } 70% { box-shadow: 0 0 0 8px rgba(244,114,182,0); } 100% { box-shadow: 0 0 0 0 rgba(244,114,182,0); } }

/* modes strip */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; }
.mode::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(139,92,246,.25)), transparent 70%); pointer-events: none; }
.mode:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.45); }
.mode h3 { font-size: 22px; }
.mode p { font-size: 14.5px; color: var(--ink-2); }
.mode .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.mode .go { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--neon-2); }
.mode.m-solo { --glow: rgba(34,211,238,.22); } .mode.m-duel { --glow: rgba(244,114,182,.25); } .mode.m-battle { --glow: rgba(245,185,66,.2); }
.mode .ico-g { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.mode .ico-g svg { width: 24px; height: 24px; }

/* ─── Game library ─── */
.lib-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color .15s, background-color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(236,72,153,.22)); color: #fff; box-shadow: inset 0 0 0 1px rgba(167,139,250,.5); }
.tabs .n { font-family: var(--f-mono); font-size: 12px; color: var(--neon-2); margin-left: 4px; }
.tabs .n:empty { display: none; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools .inp { min-height: 42px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); }
.tools .inp:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(167,139,250,.22); }
.tools input.inp { width: 220px; }
.tools select.inp { padding-right: 30px; }

.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); transition: transform .2s, border-color .2s, box-shadow .2s; min-width: 0; }
.gcard:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.5); box-shadow: 0 20px 50px rgba(76,29,149,.3); }
.gart { position: relative; height: 128px; overflow: hidden; background: var(--art, linear-gradient(135deg, #1e1440, #0e1022)); }
.gart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gart svg { position: absolute; right: 14px; bottom: 10px; width: 120px; height: 60px; opacity: .8; }
.gart .badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.gart .badge { background: rgba(7,8,15,.72); backdrop-filter: blur(6px); }
.gart .lobby { position: absolute; right: 12px; top: 12px; }
.k-solo .gart { --art: radial-gradient(220px 120px at 20% 30%, rgba(34,211,238,.4), transparent 70%), linear-gradient(135deg, #0c2a33, #0e1022 70%); }
.k-duel .gart { --art: radial-gradient(220px 120px at 20% 30%, rgba(244,114,182,.45), transparent 70%), radial-gradient(200px 120px at 85% 70%, rgba(139,92,246,.45), transparent 70%), linear-gradient(135deg, #2a0f2a, #120e28 70%); }
.k-battle .gart { --art: radial-gradient(220px 120px at 20% 30%, rgba(245,185,66,.42), transparent 70%), radial-gradient(200px 120px at 85% 70%, rgba(139,92,246,.4), transparent 70%), linear-gradient(135deg, #2a1d05, #150f2a 70%); }
.gbody { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.gbody h3 { font-size: 19px; margin-bottom: 4px; overflow-wrap: anywhere; }
.gbody .desc { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; margin-bottom: 14px; }
.win { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 12px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(245,185,66,.14), rgba(236,72,153,.08)); border: 1px solid rgba(245,185,66,.35); }
.win span { font-size: 12.5px; color: var(--ink-2); }
.win b { font-family: var(--f-mono); font-size: 19px; font-weight: 600; color: var(--gold-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.stats div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.stats b { display: block; font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.stats span { font-size: 11px; color: var(--ink-3); }
.stats .hi b { color: var(--gold-2); }
.rulelist { display: grid; gap: 5px; margin-bottom: 12px; }
.rulelist li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.rulelist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--neon); transform: rotate(45deg); }
.syms { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.syms span { padding: 2px 7px; border-radius: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.gfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.gfoot .meta { font-size: 12px; color: var(--ink-3); }
.gfoot .meta b { display: block; font-family: var(--f-mono); color: var(--ink); font-size: 13px; }
.gcard.soon .gfoot .btn { opacity: .85; }

.js .g-grid.is-loading > :not(.skel), .g-grid:not(.is-loading) .skel, html:not(.js) .g-grid .skel { display: none; }
.g-grid .skel { min-height: 420px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.state .actions .btn { flex: 0 1 auto; }

/* explainers */
.explain { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.explain + .explain { margin-top: 56px; }
.explain h3 { font-size: 26px; margin: 10px 0 10px; }
.explain p.lead { font-size: 16px; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); counter-increment: s; font-size: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; color: var(--neon-2); background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.4); }
.steps li b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 15px; }
.missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.missions div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.missions dt { font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.missions dd { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.tldr { margin-top: 26px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.tldr b { color: var(--ink); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.glance div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.glance dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.glance dd { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.cmp table { min-width: 680px; }
.cmp thead th:not(:first-child) { color: var(--neon-2); }
.cmp tbody th { white-space: nowrap; }
dl.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
dl.terms div { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
dl.terms dt { font-family: var(--f-display); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
dl.terms dd { font-size: 14px; color: var(--ink-2); }
.faq details[open] { border-color: rgba(167,139,250,.5); }
.faq summary::after { color: var(--neon-2); }
.cta { border-color: rgba(167,139,250,.35); background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(236,72,153,.12) 60%, rgba(245,185,66,.08)), var(--surface); }

/* responsive */
@media (max-width: 1100px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .hero-grid, .cta, .explain { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .glance, dl.terms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) { .hnav { display: none; } }
@media (max-width: 440px) { .logo span { display: none; } }
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .g-grid, dl.terms, .missions { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .card { padding: 20px; }
  .actions .btn { flex: 1 1 auto; }
  .lib-bar { flex-direction: column; align-items: stretch; }
  .tools input.inp { width: 100%; flex: 1 1 100%; }
  .tools select.inp { flex: 1 1 auto; }
  .tabs { display: flex; } .tabs button { flex: 1 1 auto; padding: 9px 8px; }
}
