/* =========================================================================
   APKverse — design system
   Dark OLED base · neon violet/cyan/rose accents · glass surfaces
   Fonts: Russo One (display) · Chakra Petch (numbers, labels) · Inter (body)
   Icons: Phosphor (inlined SVG, currentColor)
   Motion: GSAP in js/motion.js; CSS handles hover/press states only
   ========================================================================= */

:root {
  --bg: #0a0a1c;
  --bg-2: #10102a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-3: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f3f4f8;
  --text-2: #c9cbd8;
  --muted: #9093a8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --pink: #ff3d81;
  --gold: #fbbf24;
  --green: #34d399;
  --danger: #ef4444;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-hot: linear-gradient(135deg, var(--pink), #f97316);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.4), 0 14px 44px -12px rgba(124, 92, 255, 0.6);
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-brand: 'Russo One', 'Inter', system-ui, sans-serif;
  --font-tech: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 260ms;
  --dur-slow: 420ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* icons */
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.2em; }
.ic--lg { width: 22px; height: 22px; }
.ic--star { color: var(--gold); }
.ic--chev { width: 14px; height: 14px; color: var(--muted); transition: transform var(--dur); }
.ic--mobile-only { display: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Pre-intro state (set by inline script, cleared by motion.js) */
.js-intro .site-header, .js-intro .hero__inner > * { visibility: hidden; }
/* While GSAP drives an element, CSS transitions must not fight it */
.is-anim, .is-anim * { transition: none !important; }

/* ---------- ambient background ---------- */
/* Lenis smooth scroll: native smooth scrolling must be off or the two fight each other */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Background glows are pre-blurred gradients (no filter/blend modes): animating a
   blurred, blended layer forces a GPU re-blur on every frame and stutters fast scrolling */
.bg { position: fixed; inset: -40px; z-index: -1; overflow: hidden; background: radial-gradient(1200px 600px at 70% -10%, rgba(124, 92, 255, 0.2), transparent 60%), var(--bg); will-change: transform; transform: translateZ(0); }
.bg__blob { position: absolute; border-radius: 50%; opacity: 0.85; will-change: transform; }
.bg__blob--1 { width: 900px; height: 900px; left: -300px; top: -260px; background: radial-gradient(circle, rgba(124, 92, 255, 0.34) 0%, rgba(124, 92, 255, 0.12) 35%, transparent 68%); }
.bg__blob--2 { width: 820px; height: 820px; right: -280px; top: 120px; background: radial-gradient(circle, rgba(34, 211, 238, 0.26) 0%, rgba(34, 211, 238, 0.09) 35%, transparent 68%); }
.bg__blob--3 { width: 780px; height: 780px; left: 30%; bottom: -400px; background: radial-gradient(circle, rgba(255, 61, 129, 0.22) 0%, rgba(255, 61, 129, 0.07) 35%, transparent 68%); }
.bg__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 100%); }
.bg__stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.9), transparent 60%), radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.7), transparent 60%), radial-gradient(1.6px 1.6px at 41% 33%, rgba(200,220,255,0.9), transparent 60%), radial-gradient(1px 1px at 57% 79%, rgba(255,255,255,0.6), transparent 60%), radial-gradient(1.3px 1.3px at 66% 12%, rgba(255,255,255,0.85), transparent 60%), radial-gradient(1px 1px at 78% 48%, rgba(255,230,200,0.75), transparent 60%), radial-gradient(1.5px 1.5px at 88% 86%, rgba(255,255,255,0.8), transparent 60%), radial-gradient(1px 1px at 8% 91%, rgba(255,255,255,0.6), transparent 60%), radial-gradient(1px 1px at 49% 52%, rgba(255,255,255,0.5), transparent 60%), radial-gradient(1.2px 1.2px at 94% 26%, rgba(200,230,255,0.8), transparent 60%), radial-gradient(1px 1px at 35% 6%, rgba(255,255,255,0.7), transparent 60%), radial-gradient(1px 1px at 72% 68%, rgba(255,255,255,0.55), transparent 60%);
  background-size: 640px 640px, 520px 520px, 760px 760px, 430px 430px, 690px 690px, 580px 580px, 820px 820px, 470px 470px, 610px 610px, 720px 720px, 550px 550px, 660px 660px; opacity: .8; animation: twinkle 9s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .55; } to { opacity: .95; } }
.bg__noise { position: absolute; inset: 0; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1; border: 1px solid transparent; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur), border-color var(--dur), color var(--dur); white-space: nowrap; cursor: pointer; will-change: transform; }
.btn:active { transform: translateY(1px) scale(0.97); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7); }
.btn--primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 92, 255, 0.95); transform: translateY(-1px); }
.btn--outline { border-color: var(--border-strong); background: var(--surface); }
.btn--outline:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.3); }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn--icon { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.btn--icon:hover { background: var(--surface-3); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 15px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- badges / tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.badge--glow { border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.12); color: #ddd6ff; box-shadow: inset 0 0 20px rgba(124, 92, 255, 0.14); }
.badge .ic { width: 16px; height: 16px; color: var(--accent-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-family: var(--font-tech); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tag .ic { width: 12px; height: 12px; }
.tag--hot { background: var(--grad-hot); color: #fff; }
.tag--new { background: linear-gradient(135deg, var(--green), var(--accent-2)); color: #052b25; }
.tag--editors { background: linear-gradient(135deg, var(--gold), #f97316); color: #2b1600; }
.tag--updated { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(10, 10, 28, 0.72); transform: translateZ(0); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; will-change: transform; }
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 28, 0.82); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 22px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-size: 22px; letter-spacing: .01em; }
.logo__mark { display: inline-flex; filter: drop-shadow(0 6px 16px rgba(124, 92, 255, 0.45)); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-1px) rotate(-6deg); }
.logo__mark svg { border-radius: 10px; }
.logo__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: color var(--dur), background var(--dur); position: relative; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--surface-2); }
.main-nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.main-nav a.is-active::after { transform: scaleX(1); }

.header-search { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 44px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--dur), background var(--dur), box-shadow var(--dur); }
.header-search:focus-within { border-color: rgba(124, 92, 255, 0.55); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
.header-search .ic { color: var(--muted); }
.header-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.header-search input::placeholder { color: var(--muted); }
.header-search input::-webkit-search-cancel-button { appearance: none; }
.header-search kbd { font-family: var(--font-tech); font-size: 11px; color: var(--muted); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); background: rgba(0,0,0,0.3); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-tech); font-weight: 700; font-size: 13px; transition: background var(--dur), border-color var(--dur); }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); }
.lang__btn[aria-expanded="true"] .ic--chev { transform: rotate(180deg); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 14px; background: rgba(16, 16, 32, 0.97); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(20px); z-index: 60; }
.lang__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; transition: background var(--dur-fast); }
.lang__item:hover { background: var(--surface-2); }
.lang__item[aria-selected="true"] { background: rgba(124, 92, 255, 0.18); color: #fff; }
.lang__item .flag { font-size: 18px; line-height: 1; }
.lang__item .check { margin-left: auto; width: 16px; height: 16px; color: var(--accent-2); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- AD SLOTS ----------
   Every slot is a plain container marked with data-ad-slot. The dashed
   placeholder look is removed automatically when the slot is filled
   (class .is-filled). See ADS.md for integration details.            */
.ad-slot { position: relative; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px dashed rgba(255,255,255,0.16); background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px), rgba(255,255,255,0.02); color: var(--muted); overflow: hidden; }
.ad-slot__label { position: absolute; top: 8px; left: 10px; font-family: var(--font-tech); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.35); pointer-events: none; }
.ad-slot__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ad-slot__inner:empty::after, .ad-slot__inner.is-empty::after { content: attr(data-placeholder); font-family: var(--font-tech); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,0.3); }
.ad-slot.is-filled { border: 0; background: none; }
.ad-slot.is-filled .ad-slot__label { top: -14px; left: 2px; }
.ad-slot--leaderboard { min-height: 110px; margin: 18px 0 8px; }
.ad-slot--billboard { min-height: 250px; margin: 8px 0 40px; }
.ad-slot--rect { min-height: 600px; width: 300px; }
.ad-slot--sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.ad-slot--native { min-height: 100%; }
.ad-slot--modal { min-height: 250px; }
.ad-slot--anchor { min-height: 60px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }

.ad-anchor { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(10, 10, 28, 0.92); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom); }
.ad-anchor.is-open { display: block; }
.ad-anchor__close { position: absolute; top: -16px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.ad-anchor__close .ic { width: 14px; height: 14px; }

/* ---------- generated artwork ---------- */
.art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); isolation: isolate; will-change: transform; transform: translateZ(0); }
.art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 20% 10%, rgba(255,255,255,0.32), transparent 55%), radial-gradient(60% 60% at 90% 100%, rgba(0,0,0,0.35), transparent 60%); mix-blend-mode: overlay; }
.art--img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__orb { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .75; pointer-events: none; will-change: transform; }
.art__orb--a { width: 55%; height: 55%; left: -12%; top: -14%; background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 65%); }
.art__orb--b { width: 70%; height: 70%; right: -22%; bottom: -26%; background: radial-gradient(circle, var(--c2), transparent 65%); filter: blur(26px); mix-blend-mode: screen; }
.art__ring { position: absolute; width: 78%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.22); box-shadow: inset 0 0 40px rgba(255,255,255,0.06), 0 0 40px rgba(255,255,255,0.05); pointer-events: none; }
.art__ring::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.16); }
.art__glow, .art__icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; color: #fff; pointer-events: none; }
.art__glow .ic, .art__icon .ic { width: 100%; height: 100%; }
.art__glow { width: 58%; aspect-ratio: 1; opacity: .55; filter: blur(22px); }
.art__icon { width: 46%; aspect-ratio: 1; filter: drop-shadow(0 14px 22px rgba(0,0,0,0.45)); transition: transform var(--dur-slow) var(--ease); will-change: transform; }
.art__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.14) 45%, transparent 60%); transform: translateX(-60%); transition: transform .9s var(--ease); pointer-events: none; }
.card:hover .art__shine { transform: translateX(60%); }
.card:hover .art__icon { transform: scale(1.1) rotate(-6deg); }
.art__icon path[opacity] { opacity: .5; }
.art--lg .art__icon { left: 68%; top: 36%; width: 40%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.art--lg .art__icon .ic { animation: float 7s ease-in-out infinite; }
.art--lg .art__glow { left: 68%; top: 36%; width: 56%; }
.art--lg .art__ring { left: 68%; top: 36%; width: 58%; }
.art--lg .art__orb--a { width: 60%; height: 60%; left: -10%; top: -20%; }
.art--lg .art__orb--b { width: 80%; height: 80%; right: -30%; bottom: -30%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.mini { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 26%; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.mini::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 25% 20%, rgba(255,255,255,0.4), transparent 60%); mix-blend-mode: overlay; }
.mini .ic { position: relative; width: 56%; height: 56%; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); }
.mini--xs { width: 22px; height: 22px; border-radius: 6px; }
.mini--sm { width: 38px; height: 38px; }
.mini--md { width: 46px; height: 46px; }
.mini--lg { width: 62px; height: 62px; }
.mini--xl { width: 92px; height: 92px; }
.mini--hero { width: 116px; height: 116px; box-shadow: 0 24px 50px -16px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.15); }

/* ---------- hero ---------- */
/* Cinematic hero: full-viewport, centered copy, 3D planet rising from the bottom */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(var(--header-h) + 34px) 0 0; overflow: hidden; }
.hero__shader { position: absolute; inset: -10% 0 0 0; z-index: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 75%); }
.hero__shader.is-ready { opacity: .38; }
.hero__shader canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__3d { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.8s ease .2s; }
.hero__3d.is-ready { opacity: 1; pointer-events: auto; }
.hero__3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,28,0) 0%, var(--bg) 100%); }
.hero__3d.is-ready { cursor: grab; }
.hero__grab { position: absolute; left: 50%; top: 100%; width: 0; height: 0; translate: -50% -50%; border-radius: 50%; touch-action: none; }
.hero__3d.is-dragging { cursor: grabbing; }
.moon-tip { position: fixed; z-index: 40; padding: 8px 12px; border-radius: 10px; background: rgba(16,16,32,0.92); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: #fff; pointer-events: none; opacity: 0; transform: translate(-50%, -140%) scale(.9); transition: opacity .18s, transform .18s var(--ease); white-space: nowrap; box-shadow: var(--shadow); }
.moon-tip.is-on { opacity: 1; transform: translate(-50%, -150%) scale(1); }
.moon-tip small { display: block; font-family: var(--font-tech); font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hero__inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; pointer-events: none; }
.hero__inner > * { pointer-events: none; }
.hero__inner .hero-search__field, .hero__inner .suggest, .hero__inner .hero__tags .chip, .hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__inner { user-select: none; -webkit-user-select: none; }
html.is-planet-drag, html.is-planet-drag * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }
/* animations of sections that are scrolled out of view are paused (motion.js toggles the class) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-tech); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #cfd4ff; background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.35); backdrop-filter: blur(10px); }
.hero__kicker .ic { width: 16px; height: 16px; color: var(--accent-2); }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; color: #fff; text-shadow: 0 10px 60px rgba(0,0,0,0.5); }
.hero__line { display: block; }
.hero__title .char { display: inline-block; will-change: transform; }
/* padding + negative margin keep italic descenders (g, y) inside the clipped background box */
.hero__title-accent { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #d9d0ff 0%, #a78bfa 30%, var(--accent-2) 65%, #e0f7ff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; padding: .04em .12em .18em; margin: -.04em 0 -.18em; line-height: 1.02; }
@keyframes shimmer { to { background-position: 200% 0; } }
.hero__subtitle { max-width: 620px; font-size: clamp(15.5px, 1.3vw, 18px); color: var(--text-2); }
.hero__hint { position: absolute; left: 50%; bottom: 26px; z-index: 3; translate: -50% 0; width: 1px; height: 54px; overflow: hidden; opacity: .7; }
.hero__hint-line { display: block; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, #fff 50%, transparent); animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.hero-search { position: relative; width: 100%; max-width: 560px; }
.hero-search__field { display: flex; align-items: center; gap: 10px; height: 62px; padding: 6px 6px 6px 18px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); transition: border-color var(--dur), box-shadow var(--dur); }
.hero-search__field:focus-within { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.16), 0 20px 50px -20px rgba(124, 92, 255, 0.6); }
.hero-search__field > .ic { color: var(--muted); }
.hero-search__field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.hero-search__field input::placeholder { color: var(--muted); }
.hero-search__field input::-webkit-search-cancel-button { appearance: none; }
.hero-search__field .btn { height: 100%; padding: 0 22px; border-radius: 13px; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; border-radius: 16px; background: rgba(14, 14, 30, 0.97); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(20px); z-index: 40; }
.suggest__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 7px 10px; border-radius: 10px; text-align: left; transition: background var(--dur-fast); }
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-2); }
.suggest__title { font-weight: 600; font-size: 14px; }
.suggest__title mark { background: rgba(34, 211, 238, 0.25); color: #c8fbff; border-radius: 3px; padding: 0 1px; }
.suggest__meta { font-size: 12px; color: var(--muted); }
.suggest__rating { margin-left: auto; font-family: var(--font-tech); font-size: 13px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }
.suggest__rating .ic { width: 13px; height: 13px; }

.hero__tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #d5d8ee; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hero__tags .chip--sm { background: rgba(10,10,28,0.62); border-color: rgba(255,255,255,0.22); color: #fff; backdrop-filter: blur(10px); }
.hero__tags > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip--sm { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease); cursor: pointer; }
.chip--sm:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip--sm .ic { width: 13px; height: 13px; color: var(--muted); }

.hero__stats { display: flex; justify-content: center; gap: 44px; margin: 6px 0 0; padding: 18px 28px; border-radius: 999px; background: rgba(10,10,28,0.45); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.hero__stats > div { text-align: center; }
.hero__stats dt { font-family: var(--font-tech); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd { margin: 4px 0 0; font-family: var(--font-tech); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }

/* spotlight carousel (wide banner under the hero) */
.section--spot { padding: 10px 0 30px; }
.spotlight { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; min-height: 360px; background: var(--bg-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08); will-change: transform; transform-style: preserve-3d; }
.spotlight__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; opacity: 0; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,28,0) 28%, rgba(10,10,28,0.82) 72%, rgba(10,10,28,0.97) 100%); pointer-events: none; }
.slide .art { z-index: 0; }
.slide__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.slide { padding: 34px; }
.art--lg .art__icon { left: 76%; top: 48%; width: 24%; }
.art--lg .art__glow { left: 76%; top: 48%; width: 34%; }
.art--lg .art__ring { left: 76%; top: 48%; width: 36%; }
.slide__title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.01em; }
.slide__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-tech); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.slide__kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.slide__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13.5px; color: var(--text-2); }
.slide__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.slide__meta .ic { width: 15px; height: 15px; color: var(--muted); }
.slide__actions { display: flex; gap: 10px; margin-top: 4px; }
.spotlight__dots { position: absolute; top: 22px; left: 28px; display: flex; gap: 6px; z-index: 3; }
.spotlight__dot { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.25); overflow: hidden; min-height: 0; }
.spotlight__dot.is-active { background: rgba(255,255,255,0.35); }
.spotlight__dot.is-active::after { content: ''; display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: progress 4s linear forwards; }
.spotlight { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.spotlight:active { cursor: grabbing; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.025); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; align-items: center; gap: 28px; padding: 10px 14px; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color var(--dur); }
.ticker__item:hover { color: var(--text); }
.ticker__meta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-tech); color: var(--gold); font-size: 12.5px; }
.ticker__meta .ic { width: 12px; height: 12px; }
.ticker__sep { display: inline-flex; color: var(--pink); }
.ticker__sep .ic { width: 14px; height: 14px; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section--tight { padding: 30px 0 26px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }
.section__title .word { display: inline-block; }

/* Trending rail pinned to scroll on desktop (motion.js adds .rail--pinned) */
.rail.rail--pinned { overflow: visible; scroll-snap-type: none; padding-bottom: 20px; will-change: transform; }
.section--trending.is-pinned .rail-wrap { overflow: visible; }
.section--trending.is-pinned { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 0; }
.section--trending.is-pinned .rail-nav { display: none; }
.section--trending.is-pinned .rail > * { flex-basis: 300px; }
.section--trending.is-pinned .section__head { margin-bottom: 34px; }
.section--trending.is-pinned::before { content: 'TRENDING'; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 22vw, 320px); letter-spacing: .04em; color: rgba(255,255,255,0.025); pointer-events: none; white-space: nowrap; }
.section--trending { position: relative; overflow: hidden; }
.section__title-muted { color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 0.7em; }
.section__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--surface-2); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.section__icon .ic { width: 20px; height: 20px; }
.section__icon--hot { background: var(--grad-hot); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255, 61, 129, 0.8); }
.section__icon--gold { background: linear-gradient(135deg, var(--gold), #f97316); color: #2b1600; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(251, 191, 36, 0.8); }
.section__icon--pink { background: linear-gradient(135deg, #f472b6, var(--accent)); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(244, 114, 182, 0.8); }
.section__icon--cyan { background: linear-gradient(135deg, var(--accent-2), #6366f1); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(34, 211, 238, 0.8); }
.section__icon--violet { background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.8); }
.section__sub { margin-top: 4px; color: var(--muted); font-size: 14px; }

.rail-nav { display: flex; gap: 8px; }
.rail-nav__btn { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; transition: background var(--dur), border-color var(--dur), transform var(--dur) var(--ease); }
.rail-nav__btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease); }
.chip:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip[aria-selected="true"] { background: rgba(124, 92, 255, 0.18); border-color: rgba(124, 92, 255, 0.6); color: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12); }
.chip__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); color: #cdbfff; }
.chip[aria-selected="true"] .chip__icon { background: var(--grad); color: #fff; }
.chip__icon .ic { width: 17px; height: 17px; }
.chip__count { font-family: var(--font-tech); font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,0.3); }

/* ---------- rails ---------- */
.rail-wrap { overflow: hidden; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 240px; scroll-snap-align: start; }

/* ---------- game card ---------- */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color .3s; --mx: 50%; --my: 50%; }
.card::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.22), transparent 60%); opacity: 0; transition: opacity var(--dur); }
.card:hover::before { opacity: 1; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%); opacity: .6; }
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5); box-shadow: var(--glow); }
.card__cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.card__cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(10,10,28,0.6)); pointer-events: none; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.card__rank { position: absolute; top: 8px; right: 12px; z-index: 2; font-family: var(--font-brand); font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,0.6); }
.card__rank small { font-size: 16px; opacity: .8; }
.card__rating { position: absolute; bottom: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(10,10,28,0.72); border: 1px solid rgba(255,255,255,0.14); font-family: var(--font-tech); font-size: 13px; font-weight: 700; }
.card__rating .ic { width: 13px; height: 13px; }
.card__cat { position: absolute; bottom: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-tech); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.9); padding: 5px 9px; border-radius: 999px; background: rgba(10,10,28,0.72); border: 1px solid rgba(255,255,255,0.14); }
.card__cat .ic { width: 13px; height: 13px; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__dev { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-family: var(--font-tech); font-size: 12.5px; color: var(--text-2); }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta .ic { width: 14px; height: 14px; color: var(--muted); }
.card__actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.card__actions .btn { flex: 1; min-height: 42px; padding: 8px 12px; font-size: 13px; }
.card__actions .btn--icon { flex: none; width: 42px; height: 42px; }
.card__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; cursor: pointer; }
.card__body, .card__actions { position: relative; z-index: 2; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.grid .ad-slot--native { grid-column: span 2; min-height: 100%; }
.grid--trending { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .grid--trending { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .grid--trending { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid--trending { grid-template-columns: repeat(2, 1fr); } }

.load-more { display: flex; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty__icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 28px; background: var(--surface-2); color: #cdbfff; }
.empty__icon .ic { width: 52px; height: 52px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- charts (Most popular / Users' choice) ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 32px; align-items: start; }
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart__item { position: relative; display: grid; grid-template-columns: 34px 62px 1fr auto; align-items: center; gap: 14px; padding: 10px 12px 10px 8px; border-radius: 16px; border: 1px solid transparent; transition: background var(--dur), border-color var(--dur), transform var(--dur) var(--ease); cursor: pointer; --mx: 50%; --my: 50%; overflow: hidden; }
.chart__item::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(220px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.16), transparent 60%); opacity: 0; transition: opacity var(--dur); }
.chart__item:hover { background: var(--surface); border-color: var(--border); transform: translateX(4px); }
.chart__item:hover::before { opacity: 1; }
.chart__rank { font-family: var(--font-brand); font-size: 20px; text-align: center; color: var(--muted); }
.chart__item:nth-child(1) .chart__rank { color: var(--gold); text-shadow: 0 0 14px rgba(251, 191, 36, 0.6); }
.chart__item:nth-child(2) .chart__rank { color: #d1d5db; }
.chart__item:nth-child(3) .chart__rank { color: #d97706; }
.chart__info { min-width: 0; position: relative; }
.chart__title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart__sub { font-family: var(--font-tech); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart__sub > * { display: inline; vertical-align: middle; }
.chart__sub .dot::before { content: '·'; margin: 0 7px; }
.chart__stars { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-family: var(--font-tech); font-weight: 700; }
.chart__stars .ic { width: 12px; height: 12px; }
.chart__action { position: relative; }
.chart__action .btn { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 12px; }

/* ---------- editor's choice ---------- */
.editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.editor-card { position: relative; display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform var(--dur-slow) var(--ease), border-color .3s, box-shadow var(--dur-slow) var(--ease); cursor: pointer; --mx: 50%; --my: 50%; }
.editor-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .1; transition: opacity .3s; }
.editor-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(251, 191, 36, 0.16), transparent 60%); opacity: 0; transition: opacity var(--dur); }
.editor-card:hover { transform: translateY(-5px); border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 16px 40px -12px rgba(251, 191, 36, 0.35); }
.editor-card:hover::before { opacity: .18; }
.editor-card:hover::after { opacity: 1; }
.editor-card .mini { position: relative; z-index: 1; }
.editor-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.editor-card__title { font-weight: 800; font-size: 17px; }
.editor-card__dev { font-size: 13px; color: var(--muted); }
.editor-card__desc { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editor-card__meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; font-family: var(--font-tech); font-size: 12.5px; color: var(--text-2); }
.editor-card__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.editor-card__meta .ic { width: 13px; height: 13px; color: var(--muted); }
.editor-card__meta .chart__stars .ic { color: var(--gold); }
.editor-card__tag { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 5px; }
.editor-card__tag .ic { width: 14px; height: 14px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 22px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.filters__icon { color: var(--muted); align-self: center; margin-right: -2px; }
.select { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-tech); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.select select { appearance: none; -webkit-appearance: none; height: 44px; min-width: 190px; padding: 0 38px 0 14px; border-radius: 12px; background: rgba(0,0,0,0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%238d90a5'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1px solid var(--border-strong); font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); outline: 0; transition: border-color var(--dur); cursor: pointer; }
.select select:focus { border-color: rgba(124, 92, 255, 0.7); }
.select select option { background: #12122a; }
.filters__count { margin-left: auto; font-family: var(--font-tech); font-size: 13px; color: var(--muted); align-self: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 10px 0 40px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35)); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 40px 0; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; color: var(--text-2); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-family: var(--font-tech); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); font-size: 14px; padding: 4px 0; transition: color var(--dur), transform var(--dur) var(--ease); display: inline-block; }
.footer__col a:hover { color: var(--text); transform: translateX(3px); }
.newsletter { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.newsletter label { font-size: 13px; font-weight: 600; color: var(--text); }
.newsletter__row { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0,0,0,0.35); outline: 0; font-size: 16px; }
.newsletter input:focus { border-color: rgba(124, 92, 255, 0.7); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer__muted { opacity: .7; }
.footer__lang { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__lang button { min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color var(--dur), background var(--dur); }
.footer__lang button:hover { color: var(--text); background: var(--surface-2); }
.footer__lang button[aria-current="true"] { color: var(--text); background: rgba(124, 92, 255, 0.18); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; background: rgba(16, 16, 32, 0.9); border: 1px solid var(--border-strong); display: grid; place-items: center; backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), background var(--dur); }
.to-top:hover { transform: translateY(-2px); background: var(--surface-3); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(4, 4, 12, 0.74); backdrop-filter: blur(10px); }
.modal__panel { position: relative; width: 100%; max-width: 980px; border-radius: var(--radius-lg); background: #0f0f22; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); overflow: hidden; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 12px; background: rgba(10,10,28,0.6); border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; backdrop-filter: blur(8px); transition: background var(--dur), transform var(--dur) var(--ease); }
.modal__close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

.detail__hero { position: relative; padding: 44px 32px 24px; overflow: hidden; }
.detail__art { position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.detail__art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,0.22), transparent 60%); mix-blend-mode: overlay; }
.detail__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,34,0.15), rgba(15,15,34,0.86) 70%, #0f0f22 100%); }
.detail__art .art__orb--a { width: 40%; height: 120%; left: -10%; top: -40%; }
.detail__art .art__orb--b { width: 50%; height: 140%; right: -10%; bottom: -60%; }
.detail__art-icon { position: absolute; right: 4%; top: -30%; width: 340px; height: 340px; color: #fff; opacity: .3; filter: blur(1px); transform: rotate(-10deg); }
.detail__art-icon .ic { width: 100%; height: 100%; }
.detail__head { position: relative; display: flex; gap: 22px; align-items: flex-end; }
.detail__headinfo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.detail__dev { color: var(--text-2); font-size: 14.5px; }
.detail__dev b { color: var(--text); font-weight: 600; }

.detail__stats { position: relative; display: flex; margin: 22px 0 0; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); overflow: hidden; backdrop-filter: blur(8px); }
.detail__stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; text-align: center; border-right: 1px solid var(--border); }
.detail__stat:last-child { border-right: 0; }
.detail__stat b { font-family: var(--font-tech); font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.detail__stat b .ic { width: 15px; height: 15px; }
.detail__stat span { font-family: var(--font-tech); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.detail__grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 24px 32px 32px; }
.detail__main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.detail__side { display: flex; flex-direction: column; gap: 18px; }
.detail__section h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; letter-spacing: .01em; }
.detail__desc { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.shots::-webkit-scrollbar { display: none; }
.shots.is-drag-scroll, .rail.is-drag-scroll { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shots.is-drag-scroll .shot, .rail.is-drag-scroll .card { pointer-events: none; }
.shot { flex: 0 0 150px; aspect-ratio: 9 / 16; border-radius: 14px; position: relative; overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; background: linear-gradient(var(--rot), var(--c1), var(--c2)); color: #fff; }
.shot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.2), transparent 50%); }
.shot::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); }
.shot .ic { position: relative; width: 44%; height: 44%; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.4)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.rate { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.rate__stars { display: flex; gap: 4px; }
.rate__star { width: 44px; height: 44px; display: grid; place-items: center; color: rgba(255,255,255,0.22); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast); }
.rate__star .ic { width: 32px; height: 32px; }
.rate__star:hover { transform: scale(1.15); color: rgba(251, 191, 36, 0.6); }
.rate__star.is-on { color: var(--gold); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
.rate__hint { font-size: 13px; color: var(--muted); }
.rate__hint.is-done { color: var(--green); font-weight: 600; }

.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 14px 1fr 36px; align-items: center; gap: 10px; font-family: var(--font-tech); font-size: 12px; color: var(--muted); }
.bar__track { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #f97316); }

.dl-card { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.05)); border: 1px solid rgba(124, 92, 255, 0.4); display: flex; flex-direction: column; gap: 10px; }
.dl-card__info { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.dl-card__info .ic { width: 15px; height: 15px; color: var(--green); }
.dl-card__row { display: flex; gap: 8px; }
.dl-card__row .btn--outline { flex: 1; }

.specs { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.specs div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.specs div:last-child { border-bottom: 0; }
.specs span { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.specs span .ic { width: 15px; height: 15px; }
.specs b { font-weight: 600; font-family: var(--font-tech); }

.related { display: flex; flex-direction: column; gap: 6px; }
.related__item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 12px; transition: background var(--dur-fast); text-align: left; width: 100%; }
.related__item:hover { background: var(--surface-2); }
.related__title { font-size: 14px; font-weight: 600; }
.related__meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; font-family: var(--font-tech); }

/* ---------- crawlable link list (generated by the build into index.html) ---------- */
.seo-links { padding: 30px 24px 10px; max-width: var(--container); margin: 0 auto; color: var(--muted); font-size: 13px; }
.seo-links h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.seo-links ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.seo-links a { color: var(--text-2); }
.seo-links a:hover { color: var(--text); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120; padding: 12px 18px; border-radius: 14px; background: rgba(16, 16, 32, 0.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: min(92vw, 480px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   EFFECTS — ported from 21st.dev components (Shimmer Button, Border Beam,
   Tilt Card) and the ui-ux-pro-max motion library
   ========================================================================= */

/* Shimmer button: a spark travels around the perimeter (21st.dev "Shimmer Button") */
.btn--shimmer { position: relative; isolation: isolate; overflow: hidden; --spread: 90deg; --shimmer: #fff; --speed: 3s; --cut: 2px; background: rgba(255, 255, 255, 0.14); border-color: rgba(255,255,255,0.14); }
.btn--shimmer::before { content: ''; position: absolute; inset: -100%; z-index: -2; background: conic-gradient(from calc(270deg - (var(--spread) * 0.5)), transparent 0, var(--shimmer) var(--spread), transparent var(--spread)); animation: spin-around var(--speed) linear infinite; filter: blur(2px); }
.btn--shimmer::after { content: ''; position: absolute; inset: var(--cut); z-index: -1; border-radius: inherit; background: var(--grad); box-shadow: inset 0 -8px 12px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.28); transition: box-shadow var(--dur); }
.btn--shimmer:hover::after { box-shadow: inset 0 -6px 12px rgba(255,255,255,0.28), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn--shimmer:active::after { box-shadow: inset 0 -10px 12px rgba(255,255,255,0.3); }
@keyframes spin-around { to { transform: rotate(360deg); } }

/* Press ripple */
.btn, .chip, .dd__btn, .lang__btn, .rail-nav__btn { position: relative; overflow: hidden; }
.modal__close { overflow: hidden; } /* stays position:absolute (top-right of the panel) */
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.45), rgba(255,255,255,0.15) 40%, transparent 70%); transform: scale(0); animation: ripple .65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; pointer-events: none; z-index: 1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Border beam: a light travels along the container border (21st.dev "Border Beam") */
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.beam::before { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--beam-angle), transparent 0 72%, var(--accent-2) 86%, #fff 93%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam-spin 7s linear infinite; }
.dl-card { position: relative; }
.dl-card.beam::before { animation-duration: 4s; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* 3D tilt state on cards: GSAP owns transform, CSS keeps the rest */
.card.is-tilt, .editor-card.is-tilt { transition: box-shadow var(--dur-slow) var(--ease), border-color .3s; transform-style: preserve-3d; }
.card.is-tilt .card__body, .card.is-tilt .card__actions { transform: translateZ(18px); }
.card.is-tilt .art__icon { transform: translateZ(28px) scale(1.06); }

/* Spotlight: the whole slide opens the game */
.slide__hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; border-radius: inherit; }
.slide__hit:focus-visible { outline-offset: -6px; }

/* Custom dropdowns (filters) */
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-tech); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dd { position: relative; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.dd__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; min-width: 210px; padding: 0 12px 0 10px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--text); transition: border-color var(--dur), background var(--dur), box-shadow var(--dur); }
.dd__btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.45); }
.dd.is-open .dd__btn { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15); }
.dd.is-open .ic--chev { transform: rotate(180deg); }
.dd__label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.dd__icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: #cdbfff; flex: none; }
.dd__icon .ic { width: 15px; height: 15px; }
.dd__menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 100%; width: max-content; max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 14px; background: rgba(16, 16, 32, 0.98); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(20px); z-index: 30; scrollbar-width: thin; }
.dd__opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; color: var(--text-2); transition: background var(--dur-fast), color var(--dur-fast); }
.dd__opt:hover { background: var(--surface-2); color: var(--text); }
.dd__opt[aria-selected="true"] { background: rgba(124, 92, 255, 0.18); color: #fff; }
.dd__opt[aria-selected="true"] .dd__icon { background: var(--grad); color: #fff; }
.dd__opt .check { margin-left: auto; width: 16px; height: 16px; color: var(--accent-2); }

/* =========================================================================
   3D COVERFLOW (featured games) — ported from 21st.dev "3D Coverflow Carousel"
   ========================================================================= */
.section--spot { padding: 10px 0 20px; }
.spotlight { aspect-ratio: auto; height: 600px; min-height: 0; background: var(--bg-2); overflow: hidden; }
.spotlight__track { position: absolute; inset: 0; }
.cf__bg { position: absolute; inset: -20%; background: radial-gradient(60% 80% at 30% 30%, var(--c1, #7c5cff), transparent 70%), radial-gradient(60% 80% at 75% 70%, var(--c2, #22d3ee), transparent 70%), var(--bg-2); filter: blur(60px) saturate(1.2); opacity: .55; transition: --c1 1s, --c2 1s; }
.cf__bg::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,28,0.35); }
.cf__kicker { position: absolute; top: 26px; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--font-tech); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #d6cdfd; pointer-events: none; }
.cf__kicker::before, .cf__kicker::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5)); }
.cf__kicker::after { background: linear-gradient(270deg, transparent, rgba(255,255,255,0.5)); }
.cf__stage { position: absolute; inset: 0; perspective: 1500px; transform-style: preserve-3d; }
.cf__item { position: absolute; left: 50%; top: 50%; width: 360px; height: 480px; margin: -240px 0 0 -180px; border-radius: 22px; overflow: hidden; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateX(calc(var(--o, 0) * 330px + var(--drag, 0px))) translateZ(calc(var(--ao, 0) * -230px)) rotateY(calc(var(--o, 0) * -26deg + var(--dragRot, 0deg))) scale(calc(1 - var(--ao, 0) * 0.05));
  transition: transform .95s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .6s, box-shadow .6s; z-index: calc(10 - var(--ao, 0)); will-change: transform; cursor: pointer; }
.cf__stage.is-dragging .cf__item { transition: opacity .6s, box-shadow .6s; }
.cf__stage.is-dragging { cursor: grabbing; }
.cf__item.is-hidden { opacity: 0; pointer-events: none; }
.cf__item::before { content: ''; position: absolute; inset: 0; z-index: 2; background: rgba(6, 6, 18, calc(var(--ao, 0) * 0.42)); transition: background .6s; pointer-events: none; }
.cf__item.is-active { box-shadow: 0 50px 110px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.18), 0 0 70px -10px color-mix(in srgb, var(--c1) 55%, transparent); cursor: default; }
.cf__item .art--cf .art__icon { top: 34%; width: 44%; }
.cf__item .art--cf .art__glow { top: 34%; width: 60%; }
.cf__item .art--cf .art__ring { top: 34%; width: 62%; }
.cf__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 68%; z-index: 2; background: linear-gradient(180deg, rgba(10,10,28,0) 0%, rgba(10,10,28,0.72) 45%, rgba(10,10,28,0.96) 100%); pointer-events: none; }
.cf__hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.cf__tag { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: rgba(10,10,28,0.7); border: 1px solid rgba(255,255,255,0.16); font-family: var(--font-tech); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cf__tag .ic { width: 13px; height: 13px; }
.cf__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 22px 22px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: calc(1 - var(--ao, 0) * 0.55); transition: opacity .6s; }
.cf__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.08; letter-spacing: -0.01em; text-shadow: 0 6px 24px rgba(0,0,0,0.6); text-wrap: balance; }
.cf__sub { font-family: var(--font-tech); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #cfd4ff; }
.cf__sub::after { content: ''; display: block; width: 34px; height: 2px; margin: 8px auto 2px; background: var(--grad); border-radius: 2px; }
.cf__meta { display: flex; gap: 12px; font-family: var(--font-tech); font-size: 12.5px; color: var(--text-2); }
.cf__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.cf__meta .ic { width: 13px; height: 13px; color: var(--muted); }
.cf__desc { font-size: 13px; font-style: italic; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.cf__actions { display: flex; gap: 8px; margin-top: 10px; }
.cf__item:not(.is-active) .cf__actions, .cf__item:not(.is-active) .cf__desc, .cf__item:not(.is-active) .cf__meta { display: none; }
.cf__arrow { position: absolute; top: 50%; z-index: 6; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,28,0.55); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8); transition: background var(--dur), transform var(--dur) var(--ease), border-color var(--dur); }
.cf__arrow:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: scale(1.06); }
.cf__arrow .ic { width: 22px; height: 22px; }
.cf__arrow--l { left: 22px; } .cf__arrow--r { right: 22px; }
.spotlight__dots { top: auto; bottom: 20px; left: 50%; translate: -50% 0; }

/* =========================================================================
   GLOSSY / LIQUID-GLASS BUTTONS — after the 21st.dev "best buttons" set
   ========================================================================= */
.btn--glossy { position: relative; isolation: isolate; color: #fff; border: 0; background: linear-gradient(180deg, #2b2b44 0%, #12121f 55%, #0b0b16 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06), 0 14px 34px -10px rgba(124, 92, 255, 0.75), 0 2px 6px rgba(0,0,0,0.5); text-shadow: 0 1px 0 rgba(0,0,0,0.6); }
.btn--glossy::before { content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02)); pointer-events: none; }
.btn--glossy::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -3px; height: 6px; border-radius: 50%; background: var(--grad); filter: blur(6px); opacity: .9; z-index: -1; transition: opacity var(--dur), filter var(--dur); }
.btn--glossy:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,0,0,0.6), 0 18px 40px -10px rgba(124, 92, 255, 0.95), 0 2px 6px rgba(0,0,0,0.5); }
.btn--glossy:hover::after { filter: blur(9px); opacity: 1; }
.btn--glossy:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0,0,0,0.7), 0 8px 20px -10px rgba(124, 92, 255, 0.7); }
.btn--glass { color: #fff; background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.25), 0 10px 26px -12px rgba(0,0,0,0.7); }
.btn--glass:hover { background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08)); border-color: rgba(255,255,255,0.45); }
/* Primary buttons everywhere get the glossy treatment; shimmer CTAs keep their travelling light */
.btn--primary:not(.btn--shimmer) { background: linear-gradient(180deg, #a08cff 0%, #7c5cff 45%, #5f3fe0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,0,0,0.35), 0 12px 28px -10px rgba(124, 92, 255, 0.85); text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.btn--primary:not(.btn--shimmer):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(0,0,0,0.35), 0 16px 34px -10px rgba(124, 92, 255, 1); }
.btn--outline { background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)); border-color: rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--outline:hover { background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06)); border-color: rgba(255,255,255,0.4); }

/* =========================================================================
   RESPONSIVE — 1440 desktop · 1100 laptop · 900 tablet · 600 phone · 375 small
   ========================================================================= */
@media (max-width: 1100px) {
  .charts { grid-template-columns: 1fr 1fr; }
  .charts__aside { grid-column: 1 / -1; display: flex; justify-content: center; }
  .ad-slot--rect { width: 100%; max-width: 728px; min-height: 250px; position: static; }
  .editors { grid-template-columns: repeat(2, 1fr); }
  .header-search { width: 220px; }
  .main-nav a { padding: 9px 10px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero { min-height: 92vh; padding-top: calc(var(--header-h) + 22px); }
  .hero__inner { gap: 18px; }
  .hero__stats { gap: 22px; padding: 14px 20px; }
  .spotlight { aspect-ratio: 16 / 10; min-height: 0; width: 100%; }
  .art--lg .art__icon, .art--lg .art__glow, .art--lg .art__ring { left: 78%; top: 36%; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px; background: rgba(10, 10, 28, 0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); margin: 0; z-index: 49; }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; font-size: 16px; min-height: 44px; }
  .main-nav a::after { display: none; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__side { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid .ad-slot--native { grid-column: 1 / -1; min-height: 120px; }
  .hero__stats { gap: 24px; }
  .hero__stats dd { font-size: 24px; }
  .charts { grid-template-columns: 1fr; }
  .ad-anchor { display: block; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .to-top { bottom: 84px; }
  .detail__art-icon { width: 240px; height: 240px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { min-height: 88vh; padding-top: calc(var(--header-h) + 16px); }
  .hero__inner { gap: 14px; }
  .hero__title { font-size: clamp(38px, 11.5vw, 52px); }
  .hero__kicker { font-size: 10.5px; letter-spacing: .14em; padding: 7px 12px; }
  .hero__hint { display: none; }
  .hero__subtitle { font-size: 15.5px; }
  .hero-search__field { height: 56px; padding-left: 14px; gap: 8px; }
  .hero-search__field .btn { padding: 0 14px; width: 48px; }
  .hero-search__field .btn > span { display: none; }
  .hero-search__field .btn .ic--mobile-only { display: inline-block; }
  .hero__stats { gap: 14px; justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 20px; }
  .hero__stats dd { font-size: 20px; }
  .spotlight { aspect-ratio: 4 / 4; }
  .slide { padding: 18px; }
  .slide__body { max-width: none; }
  .art--lg .art__icon, .art--lg .art__glow, .art--lg .art__ring { left: 72%; top: 30%; width: 40%; }
  .art--lg .art__glow { width: 56%; }
  .art--lg .art__ring { width: 58%; }
  .slide { padding: 18px; }
  .slide__title { font-size: 24px; }
  .slide__meta { gap: 10px; font-size: 12.5px; }
  .slide__actions .btn { flex: 1; padding: 10px 14px; }
  .spotlight__dots { top: 16px; left: 18px; }
  .ticker__group { gap: 20px; }
  .editors { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 12px 12px 8px; }
  .card__actions { padding: 0 12px 12px; }
  .card__actions .btn--icon { display: none; }
  .card__cat { display: none; }
  .card__rank { font-size: 24px; }
  .rail > * { flex-basis: 196px; }
  .section { padding: 30px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rail-nav { display: none; }
  .detail__hero { padding: 40px 18px 18px; }
  .detail__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mini--hero { width: 88px; height: 88px; }
  .detail__grid { padding: 18px 16px 24px; gap: 22px; }
  .detail__stats { flex-wrap: wrap; }
  .detail__stat { flex: 1 1 33%; border-bottom: 1px solid var(--border); }
  .detail__stat:nth-child(4), .detail__stat:nth-child(5) { flex-basis: 50%; border-bottom: 0; }
  .detail__stat:nth-child(3) { border-right: 0; }
  .shot { flex-basis: 128px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .chart__item { grid-template-columns: 26px 52px 1fr auto; gap: 10px; padding: 8px 6px; }
  .chart__item .mini--lg { width: 52px; height: 52px; }
  .chart__action .btn { width: 40px; height: 40px; }
  .modal { padding: 8px; align-items: flex-end; }
  .modal__panel { border-radius: 22px 22px 16px 16px; }
  .filters { gap: 10px; }
  .filters__icon { display: none; }
  .field { flex: 1 1 45%; min-width: 0; }
  .dd__btn { min-width: 0; width: 100%; }
  .dd__menu { width: 100%; }
  .filters__count { margin-left: 0; width: 100%; order: 3; }
  #filter-reset { order: 4; }
  .lang__btn { padding: 0 10px; }
  .to-top { right: 14px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__meta { gap: 8px; font-size: 11.5px; }
  .card__actions .btn { font-size: 12.5px; padding: 8px 10px; }
  .hero__stats { gap: 12px; }
  .hero__stats dd { font-size: 20px; }
  .chip { padding: 8px 12px 8px 8px; font-size: 13px; }
  .badge { font-size: 11.5px; padding: 7px 11px; }
}
@media (min-width: 1600px) {
  :root { --container: 1360px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .rail > * { flex-basis: 256px; }
}
/* Landscape phones: keep the hero compact so the search is reachable */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 10px) 0 40px; }
  .spotlight { aspect-ratio: 16 / 7; min-height: 0; }
  .hero__title { font-size: clamp(28px, 5vw, 40px); }
}
/* Hover-less devices: keep visuals that CSS hover would otherwise reveal */
@media (hover: none) {
  .card .art__shine { display: none; }
  .card:hover { transform: none; }
  .card:active { transform: scale(0.98); }
  .chart__item:hover { transform: none; }
}

/* =========================================================================
   POLISH — cursor, scroll progress, shooting stars, reflections, category tiles
   ========================================================================= */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(124, 92, 255, 0.8); pointer-events: none; }

.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; will-change: transform; }
.cursor__dot { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.8); }
.cursor__ring { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,0.55); transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; border-color: var(--accent-2); background: rgba(34, 211, 238, 0.08); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { html.has-cursor .cursor { display: block; } html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [role="button"] { cursor: none; } html.has-cursor .hero__3d.is-ready { cursor: none; } }

.bg__shooting { position: absolute; top: -10%; width: 2px; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 40%, rgba(255,255,255,0)); opacity: 0; transform: rotate(35deg); filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); animation: shoot 11s linear infinite; }
.bg__shooting--1 { left: 20%; animation-delay: 2s; }
.bg__shooting--2 { left: 60%; animation-delay: 6.5s; animation-duration: 13s; }
.bg__shooting--3 { left: 85%; animation-delay: 9s; animation-duration: 9s; height: 90px; }
@keyframes shoot { 0%, 78% { opacity: 0; transform: translate(0, 0) rotate(35deg); } 80% { opacity: 1; } 92%, 100% { opacity: 0; transform: translate(-60vw, 90vh) rotate(35deg); } }

/* coverflow reflections + ambient glow under the active tile */
.cf__item { -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(255,255,255,0.14)); }
.cf__stage::after { content: ''; position: absolute; left: 50%; bottom: 34px; width: 420px; height: 60px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); filter: blur(18px); opacity: .7; pointer-events: none; }

/* category tiles (replaces the plain chip row) */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 132px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; text-align: left; transition: transform var(--dur-slow) var(--ease), border-color .3s, box-shadow var(--dur-slow) var(--ease); isolation: isolate; --mx: 50%; --my: 50%; }
.cat-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tile) 55%, transparent), transparent 60%); opacity: .55; transition: opacity .35s; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255,255,255,0.14), transparent 60%); opacity: 0; transition: opacity var(--dur); }
.cat-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tile) 70%, white 10%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tile) 40%, transparent), 0 22px 44px -16px color-mix(in srgb, var(--tile) 70%, transparent); }
.cat-tile:hover::before { opacity: .9; }
.cat-tile:hover::after { opacity: 1; }
.cat-tile[aria-selected="true"] { border-color: color-mix(in srgb, var(--tile) 80%, white 15%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tile) 55%, transparent), inset 0 0 40px color-mix(in srgb, var(--tile) 25%, transparent); }
.cat-tile__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--tile) 28%, rgba(10,10,28,0.6)); color: #fff; margin-bottom: auto; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.cat-tile__icon .ic { width: 22px; height: 22px; }
.cat-tile__mark { position: absolute; right: -14px; bottom: -18px; width: 110px; height: 110px; color: #fff; opacity: .07; transform: rotate(-12deg); transition: transform .6s var(--ease), opacity .4s; pointer-events: none; }
.cat-tile__mark .ic { width: 100%; height: 100%; }
.cat-tile:hover .cat-tile__mark { transform: rotate(-4deg) scale(1.12); opacity: .14; }
.cat-tile__name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.cat-tile__count { position: relative; z-index: 1; font-family: var(--font-tech); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.cat-tile--all { grid-column: span 2; min-height: 132px; background: linear-gradient(135deg, rgba(124,92,255,0.22), rgba(34,211,238,0.1)); }
.cat-tile--all .cat-tile__name { font-size: 24px; }
.cat-tile__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%); transform: translateX(-80%); transition: transform 1s var(--ease); pointer-events: none; }
.cat-tile:hover .cat-tile__shine { transform: translateX(80%); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .cat-tile { min-height: 116px; padding: 12px; } .cat-tile__name { font-size: 16px; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-tile--all { grid-column: span 2; } .cf__item { -webkit-box-reflect: none; } .scroll-progress { height: 2px; } }

/* coverflow breakpoints */
@media (max-width: 1100px) {
  .cf__item { width: 320px; height: 440px; margin: -220px 0 0 -160px; transform: translateX(calc(var(--o, 0) * 280px + var(--drag, 0px))) translateZ(calc(var(--ao, 0) * -220px)) rotateY(calc(var(--o, 0) * -26deg + var(--dragRot, 0deg))) scale(calc(1 - var(--ao, 0) * 0.05)); }
  .spotlight { height: 560px; }
}
@media (max-width: 600px) {
  .spotlight { height: 500px; aspect-ratio: auto; }
  .cf__item { width: 250px; height: 380px; margin: -190px 0 0 -125px; transform: translateX(calc(var(--o, 0) * 190px + var(--drag, 0px))) translateZ(calc(var(--ao, 0) * -200px)) rotateY(calc(var(--o, 0) * -30deg + var(--dragRot, 0deg))) scale(calc(1 - var(--ao, 0) * 0.06)); }
  .cf__title { font-size: 22px; }
  .cf__body { padding: 14px; }
  .cf__desc { display: none !important; }
  .cf__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .cf__arrow--l { left: 8px; } .cf__arrow--r { right: 8px; }
  .cf__kicker { top: 16px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
