:root {
  --bg: #0c0d11;
  --panel: #15171e;
  --line: #252834;
  --text: #f4f5f8;
  --muted: #9097a6;
  --accent: #fed913;
  --live: #2ee66b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2 { font-family: 'Lilita One', sans-serif; font-weight: 400; letter-spacing: .01em; line-height: .95; margin: 0; }

/* Nav */
nav { position: fixed; inset: 0 0 auto; z-index: 10; background: rgba(12, 13, 17, .7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav img { height: 28px; filter: invert(1); }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 15px; }
nav ul a { color: var(--muted); transition: color .2s; }
nav ul a:hover { color: var(--text); }

/* Hero */
#home { position: relative; min-height: var(--screen-h, 100svh); display: grid; place-items: center; overflow: hidden; text-align: center; padding: 96px 0 64px; }
.collage { position: absolute; inset: -20% -10%; transform: rotate(-8deg); opacity: .28; }
.collage .track { display: flex; flex-direction: column; animation: drift 60s linear infinite; }
.collage .set { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
@keyframes drift { to { transform: translateY(-33.3333%); } }
#home::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12, 13, 17, .55) 0%, var(--bg) 75%); }
.hero { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(4.5rem, 15vw, 11rem); margin-bottom: 48px; }
.hero h1 span { color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px; min-width: 170px; }
.stat b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.stat small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 107, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 230, 107, 0); } }

/* Sections */
section { padding: 112px 0; scroll-margin-top: 40px; }
h2 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 48px; }

/* Games */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 10px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent); }
.card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; background: var(--line); }
.card h3 { font-size: 17px; margin: 14px 6px 6px; line-height: 1.25; }
.meta { display: flex; justify-content: space-between; gap: 8px; margin: 0 6px 6px; font-size: 13px; color: var(--muted); }
.meta .on { color: var(--live); font-weight: 700; }

/* About */
#about p { color: #c9cdd6; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; max-width: 46ch; margin: 0; }

/* Footer */
footer { background: linear-gradient(180deg, var(--accent) 0%, #e8c100 100%); color: #111; text-align: center; padding: 72px 0 40px; }
.socials { display: flex; justify-content: center; gap: 16px; }
.socials a { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #111; color: var(--accent); transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 28px; height: 28px; fill: currentColor; }
footer small { display: block; margin-top: 40px; font-size: 16px; }

/* 404 */
.notfound { min-height: var(--screen-h, 100svh); display: grid; place-items: center; text-align: center; padding: 96px 0 64px; }
.notfound h1 { font-size: clamp(5rem, 20vw, 12rem); color: var(--accent); }
.notfound p { color: var(--muted); font-size: 1.3rem; margin: 16px 0 36px; }
.btn { display: inline-block; background: var(--accent); color: #111; font-weight: 700; padding: 14px 28px; border-radius: 999px; }

@media (max-width: 760px) {
  nav ul { gap: 18px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .collage .set { grid-template-columns: repeat(4, 1fr); }
  section { padding: 80px 0; }
  .stat { min-width: 0; flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collage .track, .dot { animation: none; }
}
