/* style.css - global styles and shared components.
   Colors: #080B12 bg, #111827 surface, #FF4D35 accent, #00D4FF accent 2 */
:root {
  --bg: #080B12; --bg2: #111827; --bg3: #172033;
  --accent: #FF4D35; --accent2: #00D4FF; --text: #FFFFFF; --muted: #929BAD;
  --line: rgba(255, 255, 255, .09); --glass: rgba(17, 24, 39, .62);
  --ok: #3ddc84; --gold: #ffd166;
  --font-display: "Oxanium", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --radius: 14px; --header-h: 68px; --maxw: 1200px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; opacity: 0; transition: opacity .35s ease;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255, 77, 53, .12), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(0, 212, 255, .08), transparent 60%);
  background-attachment: fixed;
}
body.page-in { opacity: 1; }
body.page-out { opacity: 0; transition-duration: .2s; }
body.no-scroll { overflow: hidden; }
noscript .ns { padding: 16px; background: var(--accent); color: #fff; text-align: center; }
img, svg { max-width: 100%; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row.center { justify-content: center; }
.stack { display: grid; gap: 10px; }
kbd { font-family: var(--font-display); font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-bottom-width: 2px; white-space: nowrap; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity .5s ease, visibility .5s; font-family: var(--font-display); letter-spacing: .3em; font-size: .8rem; color: var(--muted); }
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--accent); border-right-color: var(--accent2); animation: spin 0.9s linear infinite; position: relative; }
.loader-ring::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* buttons */
.btn {
  --c: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .92rem;
  padding: 13px 26px; color: #fff; text-decoration: none; position: relative; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #ff6a4d, var(--accent)); box-shadow: 0 8px 30px rgba(255, 77, 53, .35); }
.btn-primary:hover { background: linear-gradient(135deg, #ff7d63, #ff4d35); filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(0, 212, 255, .12); box-shadow: inset 0 0 0 1px var(--accent2); }
.btn-ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: .78rem; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn.danger:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }
.link-arrow { font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; }
.link-arrow::after { content: " \2192"; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--header-h); transition: background .25s, backdrop-filter .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body.nav-open .site-header { background: rgba(8, 11, 18, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }
.logo-mark { color: var(--accent2); transition: transform .5s; } .brand:hover .logo-mark { transform: rotate(90deg); }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: 8px 14px; color: var(--muted); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; position: relative; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: #fff; text-decoration: none; }
.main-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--accent2); background: rgba(0, 212, 255, .1); }
.icon-btn .mute { display: none; } .icon-btn.off .mute { display: block; } .icon-btn.off .waves { display: none; } .icon-btn.off { color: var(--muted); }
.rank-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 3px; column-gap: 8px; align-items: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; text-align: left; min-width: 118px; }
.rank-chip:hover { border-color: var(--accent); }
.rank-chip .lv { font-family: var(--font-display); font-weight: 800; font-size: .72rem; color: var(--bg); background: var(--accent2); padding: 1px 6px; border-radius: 4px; }
.rank-chip .nm { font-family: var(--font-display); font-weight: 700; font-size: .85rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-chip .xpbar { grid-column: 1 / -1; margin-top: 4px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; display: block; }
.rank-chip .xpbar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 25px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); } body.nav-open .burger span:nth-child(2) { opacity: 0; } body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* sections */
main { display: block; }
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section.tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { margin: 0; position: relative; padding-left: 18px; }
.section-title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; background: linear-gradient(var(--accent), var(--accent2)); border-radius: 3px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 8px 0 0 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .24em; font-size: .75rem; text-transform: uppercase; color: var(--accent2); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.panel { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.panel h2, .panel h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.panel::before { content: ""; position: absolute; top: -1px; left: 16px; width: 44px; height: 2px; background: var(--accent); }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(900px 520px at 72% 45%, rgba(255, 77, 53, .28), transparent 62%), radial-gradient(700px 480px at 20% 80%, rgba(0, 212, 255, .16), transparent 60%), linear-gradient(180deg, #0a0f1a, var(--bg)); }
.hero-grid { position: absolute; left: -10%; right: -10%; bottom: -2px; height: 52%; z-index: -2; background-image: linear-gradient(rgba(0, 212, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, .22) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000 20%, transparent); -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); animation: gridmove 3s linear infinite; }
@keyframes gridmove { to { background-position: 0 64px; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 4px); mix-blend-mode: multiply; }
#hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); text-transform: uppercase; line-height: .98; margin-bottom: 20px; }
.hero h1 .accent { display: block; color: var(--accent); text-shadow: 0 0 40px rgba(255, 77, 53, .55); position: relative; }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: .7; }
.glitch::before { color: var(--accent2); transform: translate(2px, 0); clip-path: inset(0 0 55% 0); animation: gl1 3.2s infinite steps(1); }
.glitch::after { color: #fff; transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: gl2 2.7s infinite steps(1); }
@keyframes gl1 { 0%, 92%, 100% { transform: translate(0); } 93% { transform: translate(4px, -1px); } 96% { transform: translate(-3px, 1px); } }
@keyframes gl2 { 0%, 88%, 100% { transform: translate(0); } 90% { transform: translate(-4px, 1px); } 95% { transform: translate(3px, -1px); } }
.hero p.lead { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: #c6cdda; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; font-family: var(--font-display); }
.hero-meta div strong { display: block; font-size: 1.8rem; color: #fff; line-height: 1; } .hero-meta div span { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hud-card { position: relative; padding: 22px; background: linear-gradient(160deg, rgba(17, 24, 39, .8), rgba(8, 11, 18, .75)); border: 1px solid rgba(0, 212, 255, .3); border-radius: 6px; backdrop-filter: blur(14px); box-shadow: 0 0 60px rgba(0, 212, 255, .12); }
.hud-card::before, .hud-card::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent2); }
.hud-card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; } .hud-card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.hud-card h3 { font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent2); }
.hud-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-family: var(--font-display); font-weight: 600; }
.hud-row:last-child { border: 0; } .hud-row span { color: var(--muted); } .hud-row b { color: #fff; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: marquee 32s linear infinite; font-family: var(--font-display); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.ticker-track span::after { content: "\2726"; margin-left: 48px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* game cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.games-grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.featured-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.game-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s, border-color .25s, box-shadow .25s; backdrop-filter: blur(10px); }
.game-card:hover { transform: translateY(-6px); border-color: rgba(255, 77, 53, .6); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 77, 53, .12); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05070d; }
.thumb-link { display: block; width: 100%; height: 100%; }
.thumb-svg { display: block; width: 100%; height: 100%; transition: transform .6s ease; }
.game-card:hover .thumb-svg { transform: scale(1.07); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 11, 18, .85)); pointer-events: none; }
.float { animation: float 3s ease-in-out infinite; transform-box: fill-box; } @keyframes float { 50% { transform: translateY(-6px); } }
.thumb-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.badge-new { background: var(--accent2); color: #04121a; } .badge-hot { background: var(--accent); color: #fff; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 11, 18, .65); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: transform .2s, color .2s, background .2s; }
.fav:hover { transform: scale(1.12); } .fav[aria-pressed="true"] { color: var(--accent); background: rgba(255, 77, 53, .18); border-color: var(--accent); }
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; } .fav[aria-pressed="true"] svg { fill: currentColor; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-body h3 { margin: 0; font-size: 1.28rem; text-transform: uppercase; letter-spacing: .03em; } .card-body h3 a { color: #fff; } .card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.cat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); border: 1px solid rgba(0, 212, 255, .35); padding: 2px 8px; border-radius: 4px; }
.cat-tag:hover { background: rgba(0, 212, 255, .14); text-decoration: none; }
.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.rating { display: inline-flex; align-items: center; gap: 6px; } .rating b { color: #fff; font-family: var(--font-display); }
.stars { --r: 4.5; display: inline-block; font-size: .95rem; letter-spacing: 1px; line-height: 1; }
.stars::before { content: "\2605\2605\2605\2605\2605"; background: linear-gradient(90deg, var(--gold) calc(var(--r) / 5 * 100%), #3a4256 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pips { display: inline-flex; align-items: center; gap: 3px; } .pips i { width: 7px; height: 12px; background: #2a3347; transform: skewX(-18deg); } .pips i.on { background: var(--accent); box-shadow: 0 0 8px rgba(255, 77, 53, .6); } .pips em { font-style: normal; margin-left: 6px; }
.best-line { font-size: .8rem; color: var(--muted); } .best-line b { color: var(--gold); font-family: var(--font-display); }
.card-actions { display: flex; gap: 10px; margin-top: 12px; }
.game-card.is-featured .thumb { aspect-ratio: 16 / 10; } .game-card.is-featured .card-body p { font-size: .95rem; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); color: #fff; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--accent2); text-decoration: none; }
.cat-tile .glyph { font-size: 2rem; color: var(--accent); line-height: 1; transition: transform .3s; } .cat-tile:hover .glyph { transform: scale(1.2) rotate(8deg); }
.cat-tile strong { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; } .cat-tile span:not(.glyph) { color: var(--muted); font-size: .85rem; } .cat-tile em { font-style: normal; font-size: .75rem; color: var(--accent2); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: auto; padding-top: 8px; }

/* daily operation */
.daily-card { display: grid; grid-template-columns: minmax(240px, 1fr) 1.2fr; border: 1px solid rgba(255, 77, 53, .4); border-radius: var(--radius); overflow: hidden; background: linear-gradient(120deg, rgba(255, 77, 53, .1), rgba(17, 24, 39, .7)); box-shadow: 0 0 60px rgba(255, 77, 53, .1); }
.daily-thumb { min-height: 220px; position: relative; } .daily-thumb .thumb-svg { position: absolute; inset: 0; }
.daily-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .daily-body h3 { font-size: 1.6rem; margin: 0; text-transform: uppercase; } .daily-body p { color: var(--muted); margin: 0; }
.tag-live { font-family: var(--font-display); font-weight: 800; letter-spacing: .2em; font-size: .72rem; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.tag-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; } .tag-live.done { color: var(--ok); } .tag-live.done::before { background: var(--ok); animation: none; }
.progress, .xp-track { width: 100%; height: 10px; background: rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; }
.progress b, .xp-track b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 6px; transition: width .8s ease; box-shadow: 0 0 12px rgba(255, 77, 53, .5); }
.daily-foot { display: flex; justify-content: space-between; width: 100%; font-size: .85rem; color: var(--muted); font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }

/* stats / features */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 28px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin-bottom: 8px; background: linear-gradient(180deg, #fff, #9fb0c9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); transition: border-color .25s, transform .25s; } .feature:hover { border-color: var(--accent2); transform: translateY(-4px); }
.feature .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-size: 1.4rem; color: var(--accent2); background: rgba(0, 212, 255, .1); border: 1px solid rgba(0, 212, 255, .3); margin-bottom: 14px; }
.feature h3 { text-transform: uppercase; letter-spacing: .04em; } .feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.timeline { display: grid; gap: 14px; counter-reset: st; } .timeline li { list-style: none; counter-increment: st; padding: 18px 20px 18px 70px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); position: relative; }
.timeline li::before { content: counter(st); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--accent); border-radius: 8px; }
.timeline strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; } .timeline p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--glass); margin-bottom: 10px; padding: 0 20px; } .faq summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; } .faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; } .faq details[open] summary::after { content: "\2212"; } .faq details p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + 54px) 0 44px; position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 80% 0, rgba(255, 77, 53, .16), transparent 70%), linear-gradient(180deg, rgba(0, 212, 255, .05), transparent); }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; margin: 0; }
.notice { display: inline-flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid rgba(255, 209, 102, .4); background: rgba(255, 209, 102, .08); color: #ffe3a0; border-radius: 10px; font-size: .88rem; margin-top: 18px; }

/* library toolbar */
.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.search-field { position: relative; } .search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
input, textarea, select { width: 100%; font: inherit; color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #6b7589; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(0, 212, 255, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 53, .16); }
.search-field input { padding-left: 42px; } select { appearance: none; padding-right: 36px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #929BAD 50%), linear-gradient(135deg, #929BAD 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; } select option { background: var(--bg2); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; } .check input { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: var(--accent2); } .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(255, 77, 53, .35); }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* details page */
.details-hero { padding: calc(var(--header-h) + 36px) 0 36px; background: radial-gradient(900px 400px at 15% 0, rgba(0, 212, 255, .1), transparent 70%); }
.details-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 77, 53, .4); box-shadow: var(--shadow), 0 0 60px rgba(255, 77, 53, .12); }
.preview .thumb-svg { transition: transform 1.2s ease; } .preview:hover .thumb-svg { transform: scale(1.05); }
.preview-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; background: rgba(5, 7, 13, .25); transition: background .25s; }
.preview-play:hover { background: rgba(5, 7, 13, .5); text-decoration: none; }
.preview-play span { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px rgba(255, 77, 53, .22), 0 0 40px rgba(255, 77, 53, .6); transition: transform .25s; } .preview-play:hover span { transform: scale(1.1); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.preview-stats div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); text-align: center; } .preview-stats small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; } .preview-stats strong { font-family: var(--font-display); font-size: 1.4rem; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.details-info h1 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; margin: 6px 0 12px; }
.rate-row { display: flex; align-items: center; gap: 22px; margin: 14px 0; flex-wrap: wrap; } .lead { color: #c6cdda; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 24px; } .facts div { padding: 10px 14px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, .03); } .facts dt { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; } .facts dd { margin: 0; font-weight: 600; }
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #c6cdda; } .steps li::marker { color: var(--accent); font-weight: 800; }
.controls-table { width: 100%; border-collapse: collapse; } .controls-table th, .controls-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; } .controls-table th { width: 55%; padding-right: 10px; } .controls-table td { color: var(--muted); }
.hs-you { padding: 14px; border-radius: 10px; background: rgba(255, 209, 102, .07); border: 1px solid rgba(255, 209, 102, .3); margin-bottom: 14px; } .hs-you small { display: block; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; } .hs-you strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.mini-h { font-size: .8rem !important; color: var(--muted); margin: 14px 0 6px; }
.mini-lb { list-style: none; margin: 0 0 10px; padding: 0; } .mini-lb li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; } .mini-lb .pos { color: var(--muted); font-family: var(--font-display); font-weight: 800; } .mini-lb .sc { font-family: var(--font-display); font-weight: 700; } .mini-lb li.you { background: rgba(0, 212, 255, .1); border-radius: 6px; color: var(--accent2); }
.not-found { padding: 160px 0 100px; text-align: center; }

/* leaderboard */
.lb-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.lb-table { width: 100%; border-collapse: collapse; min-width: 320px; } .lb-table th, .lb-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.lb-table thead th { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.lb-table tbody th { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; } .lb-table .num { text-align: right; font-variant-numeric: tabular-nums; } .lb-table .strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.lb-table tr:last-child td, .lb-table tr:last-child th { border-bottom: 0; } .lb-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.lb-table tr.you { background: linear-gradient(90deg, rgba(0, 212, 255, .16), rgba(0, 212, 255, .04)); box-shadow: inset 3px 0 0 var(--accent2); } .lb-table tr.gap td { text-align: center; color: var(--muted); padding: 4px; }
.you-tag { font-size: .65rem; padding: 2px 7px; border-radius: 4px; background: var(--accent2); color: #04121a; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; margin-left: 6px; }
.rank-pill { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-family: var(--font-display); font-weight: 800; background: rgba(255, 255, 255, .07); } .rank-pill.r1 { background: linear-gradient(135deg, #ffd166, #e09a1a); color: #231600; } .rank-pill.r2 { background: linear-gradient(135deg, #e5ebf5, #98a4ba); color: #111; } .rank-pill.r3 { background: linear-gradient(135deg, #e6a36b, #b0642e); color: #201004; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 6px; } .tab { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); cursor: pointer; } .tab:hover { color: #fff; } .tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-stack { display: grid; gap: 18px; } .player-card .pc-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; } .player-card h2 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1.5rem; }
.badge-rank { font-family: var(--font-display); font-weight: 800; padding: 6px 10px; border-radius: 8px; background: var(--accent2); color: #04121a; font-size: .9rem; } .badge-rank.big { font-size: 1.3rem; padding: 14px 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; } .stat-grid div { padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); } .stat-grid small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; } .stat-grid strong { font-family: var(--font-display); font-size: 1.3rem; }
.best-list { list-style: none; margin: 0; padding: 0; } .best-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); } .best-list li:last-child { border: 0; } .best-list strong { font-family: var(--font-display); color: var(--gold); }
.ach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ach-grid li { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); opacity: .45; filter: grayscale(1); display: grid; gap: 2px; } .ach-grid li.on { opacity: 1; filter: none; border-color: rgba(255, 209, 102, .5); background: rgba(255, 209, 102, .07); } .ach-grid .g { font-size: 1.4rem; color: var(--gold); } .ach-grid strong { font-family: var(--font-display); font-size: .9rem; } .ach-grid small { color: var(--muted); font-size: .72rem; line-height: 1.3; }

/* forms / contact */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; letter-spacing: .04em; display: block; margin-bottom: 6px; }
textarea { min-height: 150px; resize: vertical; } .field-err { color: #ff8a78; font-size: .82rem; min-height: 1.2em; margin-top: 4px; } .field-hint { float: right; color: var(--muted); font-size: .78rem; font-weight: 400; }
.form-msg { font-size: .85rem; min-height: 1.2em; margin: 6px 0 0; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: #ff8a78; }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; } .contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); } .contact-card .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 77, 53, .12); color: var(--accent); font-size: 1.2rem; } .contact-card strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; } .contact-card span { color: var(--muted); font-size: .92rem; }
#contactDone { text-align: center; padding: 50px 20px; border: 1px solid rgba(61, 220, 132, .4); border-radius: var(--radius); background: rgba(61, 220, 132, .06); } #contactDone .tick { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--ok); color: #05150c; }
.mini-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .mini-form .form-msg { grid-column: 1 / -1; } .mini-form input { padding: 10px 12px; }
.newsletter { text-align: center; border: 1px solid rgba(255, 77, 53, .35); border-radius: 20px; padding: clamp(32px, 6vw, 64px); background: radial-gradient(600px 240px at 50% 0, rgba(255, 77, 53, .2), transparent 70%), var(--glass); } .newsletter .mini-form { max-width: 480px; margin: 22px auto 0; text-align: left; }

/* footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 38px; } .footer-grid h4 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); } .footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .footer-grid a { color: var(--muted); } .footer-grid a:hover { color: #fff; } .footer-brand p { color: var(--muted); margin-top: 14px; font-size: .92rem; max-width: 340px; }
.footer-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* modal / toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 12, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; } .modal-backdrop.open { opacity: 1; }
.modal { position: relative; width: min(100%, 560px); max-height: 90vh; overflow: auto; background: linear-gradient(160deg, #141c2e, #0b101b); border: 1px solid rgba(0, 212, 255, .3); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); transform: translateY(14px) scale(.98); transition: transform .25s; } .modal-backdrop.open .modal { transform: none; } .modal-sm { width: min(100%, 440px); }
.modal-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; } .modal-x:hover { color: #fff; } .modal-title { font-size: 1.5rem; text-transform: uppercase; }
.profile-rank { display: flex; gap: 14px; align-items: center; margin: 12px 0; } .profile-rank strong { display: block; font-family: var(--font-display); font-size: 1.2rem; } .profile-rank span.muted { font-size: .85rem; } .xp-track { margin-bottom: 18px; }
.modal-search { align-self: start; margin-top: 12vh; } .search-big { font-size: 1.15rem; padding: 16px 18px; } .search-results { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; } .search-hit { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; color: #fff; border: 1px solid transparent; } .search-hit:hover, .search-hit:focus { background: rgba(255, 255, 255, .06); border-color: var(--line); text-decoration: none; } .search-hit small { display: block; color: var(--muted); } .sh-thumb { width: 96px; flex: none; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; display: block; } .search-results .empty { padding: 20px; border: 0; color: var(--muted); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 1800; display: grid; gap: 10px; max-width: min(92vw, 360px); } .toast { padding: 13px 16px; border-radius: 12px; background: #131b2c; border: 1px solid var(--line); border-left: 4px solid var(--accent2); box-shadow: var(--shadow); display: grid; gap: 2px; transform: translateX(120%); opacity: 0; transition: transform .3s, opacity .3s; } .toast.show { transform: none; opacity: 1; } .toast strong { font-family: var(--font-display); } .toast span { color: var(--muted); font-size: .88rem; } .toast.ach { border-left-color: var(--gold); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 100px 20px; } .nf h1 { font-size: clamp(5rem, 22vw, 12rem); line-height: .9; margin: 0; color: var(--accent); } .nf p { color: var(--muted); max-width: 460px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } body { opacity: 1; } }
