/* ============================================================
   TRASHY GAMES: Publisher Website
   DARK theme matched to the brand logo: charcoal-to-black
   vignette, brushed-steel panels, electric-cyan glow, a hint
   of Game Boy purple. Heavy gaming-poster type (Blizzard/Diablo
   energy).
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:        #0a0b0e;
  --bg-2:      #14171c;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-2:   rgba(255, 255, 255, 0.02);
  --brd:       rgba(130, 150, 175, 0.16);
  --brd-2:     rgba(130, 150, 175, 0.10);

  /* metallics + text */
  --steel:     #d2dae6;
  --steel-dim: #aab3c2;
  --text:      #d7deea;
  --muted:     #98a2b3;
  --dim:       #69727f;

  /* brand cyan + accents */
  --cyan:      #29e3ff;
  --cyan-2:    #6fd9ff;
  --cyan-deep: #0db8de;
  --purple:    #8b6cff;
  --red:       #ff5a5f;
  --green:     #46d18a;
  --gold:      #ffc24a;

  /* genre accents */
  --rpg:     #9b7bff;
  --racing:  #ff5a5f;
  --classic: #46d18a;
  --anime:   #ff6fb5;
  --scifi:   #29e3ff;

  --grad: linear-gradient(120deg, #29e3ff, #57c9ff 45%, #8b6cff);
  --grad-soft: linear-gradient(120deg, rgba(41,227,255,.16), rgba(139,108,255,.16));

  --shadow-card: 0 26px 60px -22px rgba(0, 0, 0, .85);
  --shadow-soft: 0 16px 40px -20px rgba(0, 0, 0, .8);
  --glow-cyan: 0 0 26px rgba(41, 227, 255, .45);

  --nav-h: 76px;
  --maxw: 1240px;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 800px at 50% -8%, #1b2026 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 120%, #161a20 0%, transparent 55%),
    #07080a;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, .display {
  font-family: 'Oswald', system-ui, sans-serif;
  line-height: 1.06;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}

::selection { background: var(--cyan); color: #06121a; }

/* ---------- Background layers ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -2; display: block; }

.bg-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% 0%, rgba(41,227,255,.10), transparent 55%),
    radial-gradient(900px 700px at 85% 90%, rgba(139,108,255,.10), transparent 55%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
}
/* faint brushed-metal grid */
.bg-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(130,150,175,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,150,175,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 30%, transparent 82%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 100px 0; }

.eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); }

.section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: 14px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.section-intro { color: var(--muted); max-width: 620px; font-size: 1.08rem; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 11, 15, .8); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--brd);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; }
.brand .logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(160deg, #1c2129, #0c0e12);
  border: 1px solid var(--brd); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--glow-cyan);
  color: var(--cyan); transition: transform .5s var(--ease);
}
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.brand .brand-trashy { color: var(--steel); }
.brand .brand-games  { color: var(--cyan); text-shadow: 0 0 18px rgba(41,227,255,.5); }
.brand-logo { height: 50px; width: auto; display: block; transition: filter .4s var(--ease); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 12px rgba(41,227,255,.6)); }
.footer .f-brand .brand-logo { height: 78px; }
@media (max-width: 560px) { .brand-logo { height: 42px; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
  position: relative; display: inline-block; padding: 10px 16px;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: .95rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); transition: color .25s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--steel); }
.nav-links > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); box-shadow: var(--glow-cyan);
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a::before { content: "▾"; margin-left: 7px; font-size: .7em; color: var(--cyan); }
.dropdown {
  position: absolute; top: 100%; left: 8px; min-width: 252px; padding: 10px;
  background: rgba(13, 16, 21, .96); backdrop-filter: blur(18px);
  border: 1px solid var(--brd); border-radius: 14px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .28s var(--ease);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(8px); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.dropdown a:hover { background: var(--grad-soft); color: var(--steel); }
.dropdown a .d-thumb {
  width: 40px; height: 40px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, #1c2129, #0c0e12); border: 1px solid var(--brd); color: var(--cyan);
}
.dropdown a small { display: block; color: var(--dim); font-size: .78rem; letter-spacing: .4px; text-transform: none; }

/* mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--steel); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: .92rem; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s; will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #06121a; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(41,227,255,.55); }
.btn-primary:hover { box-shadow: 0 14px 42px -6px rgba(41,227,255,.7), var(--glow-cyan); transform: translateY(-2px); }
.btn-ghost { color: var(--steel); border-color: var(--brd); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--brd);
  font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.hero-tag .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(41,227,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(41,227,255,.6)} 70%{box-shadow:0 0 0 12px rgba(41,227,255,0)} 100%{box-shadow:0 0 0 0 rgba(41,227,255,0)} }

.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 50px rgba(41,227,255,.18); }
.hero h1 .line { display: block; }
.hero p.lead { font-family: 'Barlow'; font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; text-transform: none; }

.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: 'Oswald'; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat .label { font-family: 'Oswald'; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }

/* floating game card in hero */
.hero-visual { position: relative; min-height: 420px; }
.float-card {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--brd);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.06); animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0) rotate(.4deg)} 50%{transform:translateY(-18px) rotate(-.4deg)} }
.float-card .card-art {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 70% 16%, rgba(139,108,255,.5), transparent 55%),
    radial-gradient(120% 90% at 22% 88%, rgba(41,227,255,.55), transparent 55%),
    linear-gradient(160deg, #12161d, #07090c);
}
.float-card .card-art .planet { width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #bdf5ff, #29a3ff 42%, #1a1146 95%); box-shadow: 0 0 60px rgba(41,227,255,.5), inset -14px -10px 36px rgba(0,0,0,.6); }
.float-card .card-art .ring { position: absolute; width: 220px; height: 60px; border: 2px solid rgba(139,108,255,.6); border-radius: 50%; transform: rotateX(74deg) rotate(12deg); box-shadow: 0 0 30px rgba(139,108,255,.4); }
.float-card .card-body { padding: 20px 22px 24px; background: rgba(8,10,13,.5); }
.float-card .card-body .tag { font-family: 'Oswald'; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); }
.float-card .card-body h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.float-card .card-body p { color: var(--muted); font-size: .96rem; }
.float-badge { position: absolute; top: 18px; right: 18px; padding: 7px 14px; border-radius: 999px; font-family: 'Oswald'; font-weight: 600; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(8,10,13,.8); border: 1px solid var(--brd); color: var(--gold); z-index: 2; display: inline-flex; align-items: center; gap: 6px; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-family: 'Oswald'; font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--dim); border-radius: 14px; position: relative; }
.scroll-cue .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; background: var(--cyan); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- Game cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 50px; }
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--brd);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-8px); border-color: rgba(41,227,255,.5); box-shadow: var(--shadow-card), var(--glow-cyan); }
.game-card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; display: grid; place-items: center; }
.game-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,9,12,.85)); }
.game-card .thumb .glyph { z-index: 1; transition: transform .5s var(--ease); }
.game-card:hover .thumb .glyph { transform: scale(1.12) translateY(-4px); }

.art-horizon { background: radial-gradient(120% 100% at 70% 12%, #8b6cff 0%, transparent 46%), radial-gradient(120% 100% at 20% 88%, #29e3ff 0%, transparent 46%), linear-gradient(160deg,#141a26,#07090c); }
.art-nebula  { background: radial-gradient(120% 100% at 30% 20%, #8b6cff 0%, transparent 50%), linear-gradient(160deg,#1a1430,#08060f); }
.art-circuit { background: radial-gradient(120% 100% at 80% 80%, #29e3ff 0%, transparent 50%), linear-gradient(160deg,#062a2c,#04111a); }
.art-ember   { background: radial-gradient(120% 100% at 50% 0%, #ffc24a 0%, transparent 44%), radial-gradient(120% 100% at 80% 100%, #ff5a3d 0%, transparent 50%), linear-gradient(160deg,#241206,#0c0606); }
.art-pulse   { background: radial-gradient(120% 100% at 20% 30%, #ff6fb5 0%, transparent 50%), linear-gradient(160deg,#2a0f24,#0c0413); }
.art-frost   { background: radial-gradient(120% 100% at 60% 30%, #8fe9ff 0%, transparent 50%), linear-gradient(160deg,#103048,#050c16); }

.game-card .info { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card .info .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.chip { font-family: 'Oswald'; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--brd); color: var(--muted); background: rgba(255,255,255,.02); }
.chip.live { color: var(--cyan); border-color: rgba(41,227,255,.4); }
.chip.soon { color: var(--gold); border-color: rgba(255,194,74,.4); }
.game-card .info h3 { font-size: 1.5rem; }
.game-card .info p { color: var(--muted); font-size: .96rem; flex: 1; }
.game-card .info .card-link { margin-top: 6px; font-family: 'Oswald'; font-weight: 600; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.game-card .info .card-link span { transition: transform .3s var(--ease); }
.game-card:hover .info .card-link span { transform: translateX(6px); }
.featured-flag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 13px; border-radius: 999px; background: var(--grad); color: #06121a; font-family: 'Oswald'; font-weight: 600; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Feature / value cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 50px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--brd);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(139,108,255,.5); box-shadow: var(--shadow-card); }
.feature .ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--brd); margin-bottom: 18px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: 1px; }
.feature p { color: var(--muted); font-size: .98rem; }
.feature ul { font-size: .96rem; }

/* ---------- Controls ---------- */
.ctrl-list { display: grid; gap: 4px; margin-top: 4px; }
.ctrl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--brd-2); }
.ctrl-row:last-child { border-bottom: none; }
.ctrl-row .act { color: var(--text); font-weight: 500; }
.kbd { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.kbd span {
  font-family: 'Oswald'; font-size: .76rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 10px; min-width: 30px; text-align: center; border-radius: 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--brd); border-bottom-width: 2px;
  color: var(--steel); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; margin: 0 auto; max-width: var(--maxw); border-radius: 22px; padding: 64px 48px;
  text-align: center; overflow: hidden; border: 1px solid var(--brd);
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(41,227,255,.18), transparent 58%),
    radial-gradient(120% 150% at 100% 100%, rgba(139,108,255,.18), transparent 58%),
    rgba(13,16,21,.6);
  box-shadow: var(--shadow-card);
}
.cta-band h2 { font-size: clamp(1.9rem,4vw,2.9rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 36px; text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 14px; text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 50px rgba(41,227,255,.18); }
.page-hero p { color: var(--muted); font-size: 1.16rem; max-width: 640px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; font-family: 'Oswald'; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--purple); }

/* ---------- Game detail / showcase ---------- */
.game-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.bh-stage {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--brd);
  background: linear-gradient(160deg,#10151d,#07090c); min-height: 440px; box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
}
.bh-stage canvas { display: block; width: 100%; height: 100%; }
.bh-stage .stage-label { position: absolute; bottom: 16px; left: 16px; font-family: 'Oswald'; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.bh-stage .stage-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
.bh-stage.bh-video { min-height: 0; aspect-ratio: 16 / 9; }
.bh-stage.bh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Hero mini-game: Trash Dash ---------- */
.hero-game { min-height: auto; padding-top: 132px; padding-bottom: 46px; }
.welcome-banner { text-align: center; margin-bottom: 26px; }
.welcome-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: 'Oswald'; font-size: .72rem; letter-spacing: 4px; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.welcome-title { font-size: clamp(1.9rem, 4.8vw, 3.4rem); line-height: 1; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 0 34px rgba(41,227,255,.22); }
.game-hero { display: grid; gap: 24px; }
.game-hero-head { max-width: 760px; }
.game-hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .94; margin: 12px 0 10px; letter-spacing: -1px; }
.game-hero-sub { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.game-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--brd);
  background: radial-gradient(130% 110% at 50% 0%, #131a24 0%, #0a0e14 55%, #06080c 100%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05); aspect-ratio: 16 / 9; }
.game-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: none; }
.game-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 9px; align-items: center; z-index: 3; flex-wrap: wrap; pointer-events: none; }
.game-hud .hud-btn { pointer-events: auto; }
.hud-stat { background: rgba(8,11,16,.6); backdrop-filter: blur(7px); border: 1px solid var(--brd); border-radius: 12px; padding: 7px 13px; display: grid; gap: 2px; }
.hud-k { font-family: 'Oswald'; font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.hud-v { font-family: 'Oswald'; font-weight: 600; font-size: 1.15rem; color: var(--text); line-height: 1; }
.hud-health { min-width: 96px; }
.hud-bar { display: block; width: 92px; height: 8px; margin-top: 4px; border-radius: 999px; background: rgba(255,255,255,.13); overflow: hidden; }
.hud-bar > i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg,#29e3ff,#52ffb0); transition: width .25s ease, background .25s ease; }
.hud-btn { background: rgba(41,227,255,.12); color: var(--cyan); border: 1px solid rgba(41,227,255,.4); border-radius: 12px; padding: 9px 16px; font-family: 'Oswald'; letter-spacing: 1.5px; text-transform: uppercase; font-size: .72rem; cursor: pointer; transition: background .2s, box-shadow .2s; }
.hud-btn:hover { background: rgba(41,227,255,.22); box-shadow: 0 0 18px rgba(41,227,255,.35); }
.hud-btn#tg-sound { margin-left: auto; }
.hud-btn.muted { color: var(--muted); border-color: var(--brd); }
.game-help { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; font-family: 'Oswald'; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); background: rgba(8,11,16,.5); backdrop-filter: blur(5px); border: 1px solid var(--brd); border-radius: 999px; padding: 7px 16px; white-space: nowrap; }
.game-highscore { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(8,11,16,.68); backdrop-filter: blur(7px); border: 1px solid rgba(41,227,255,.35); border-radius: 13px; padding: 6px 22px; text-align: center; box-shadow: 0 0 22px rgba(41,227,255,.12); }
.game-highscore .hs-k { font-family: 'Oswald'; font-size: .56rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); }
.game-highscore .hs-v { font-family: 'Oswald'; font-weight: 700; font-size: 1.5rem; color: var(--cyan); line-height: 1; text-shadow: 0 0 14px rgba(41,227,255,.5); }
.game-toast { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%) scale(.9); z-index: 4; font-family: 'Oswald'; font-weight: 700; font-size: clamp(1.4rem,4vw,2.5rem); text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 26px rgba(41,227,255,.6); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; text-align: center; }
.game-toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
@media (max-width: 640px) {
  .hero-game { padding-top: 110px; }
  .game-help { font-size: .58rem; padding: 6px 12px; white-space: normal; max-width: 92%; text-align: center; }
  .hud-stat { padding: 6px 10px; }
  .hud-v { font-size: 1rem; }
  .hud-btn { padding: 8px 12px; font-size: .66rem; }
  .game-highscore { top: 8px; padding: 4px 14px; }
  .game-highscore .hs-v { font-size: 1.1rem; }
}

.bh-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 24px; }
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--brd); border: 1px solid var(--brd); border-radius: 14px; overflow: hidden; margin-top: 28px; }
.spec-grid .spec { background: rgba(13,16,21,.7); padding: 18px 20px; }
.spec-grid .spec .k { font-family: 'Oswald'; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.spec-grid .spec .v { font-family: 'Oswald'; font-weight: 600; margin-top: 4px; letter-spacing: .5px; }

.screens { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 50px; }
.screens .shot { aspect-ratio: 16/10; border-radius: 14px; border: 1px solid var(--brd); position: relative; overflow: hidden; display: grid; place-items: center; transition: transform .4s var(--ease); box-shadow: var(--shadow-soft); }
.screens .shot:hover { transform: scale(1.03); }

/* ---------- About / team ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.timeline { margin-top: 50px; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--brd); }
.tl-item:last-child { border-bottom: 1px solid var(--brd); }
.tl-item .yr { font-family: 'Oswald'; font-weight: 700; font-size: 1.4rem; color: var(--cyan); letter-spacing: 1px; }
.tl-item h3 { font-size: 1.25rem; margin-bottom: 6px; letter-spacing: .5px; }
.tl-item p { color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; margin-top: 50px; }
.member { text-align: center; padding: 30px 20px; border: 1px solid var(--brd); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.member:hover { transform: translateY(-6px); border-color: rgba(41,227,255,.5); box-shadow: var(--shadow-card); }
.member .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family:'Oswald'; font-weight:700; font-size:1.5rem; color:#06121a; background: var(--grad); box-shadow: var(--glow-cyan); }
.member h3 { font-size:1.25rem; letter-spacing: .5px; }
.member .role { color: var(--cyan); font-family:'Oswald'; font-size:.82rem; letter-spacing:2px; text-transform:uppercase; }
.member p { color: var(--muted); font-size:.94rem; margin-top:10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--brd); }
.contact-info .info-item .ic { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--brd); }
.contact-info .info-item .k { font-family: 'Oswald'; font-size:.74rem; letter-spacing:2px; text-transform:uppercase; color: var(--dim); }
.contact-info .info-item .v { font-size:1.1rem; font-weight:600; }
.socials { display:flex; gap:12px; margin-top:26px; }
.socials a { width:48px; height:48px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--brd); background: rgba(255,255,255,.03); transition: all .3s var(--ease); }
.socials a:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.form { padding: 34px; border: 1px solid var(--brd); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); box-shadow: var(--shadow-card); }
.field { margin-bottom: 20px; }
.field label { display:block; font-family: 'Oswald'; font-size:.76rem; letter-spacing:2px; text-transform:uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: rgba(0,0,0,.35); border: 1px solid var(--brd); border-radius: 10px; color: var(--text); font-family: 'Barlow'; font-size: 1.02rem; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,227,255,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 42px; color-scheme: dark; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2329e3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option, .field select optgroup { background-color: #0e141c; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: rgba(41,227,255,.1); border: 1px solid rgba(41,227,255,.35); color: var(--cyan); font-size: .96rem; display: none; }
.form-note.show { display: block; }
.form-note.error { background: rgba(255,90,106,.1); border-color: rgba(255,90,106,.4); color: #ff7d8c; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd); overflow: hidden; padding: 20px 0; background: rgba(13,16,21,.5); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: 'Oswald'; font-weight: 700; font-size: 1.3rem; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--brd); padding: 64px 0 34px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(13,16,21,.6)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer .f-brand p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.footer h4 { font-family: 'Oswald'; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--muted); transition: color .2s, padding-left .2s; }
.footer ul li a:hover { color: var(--cyan); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--brd); color: var(--dim); font-size: .9rem; flex-wrap: wrap; gap: 12px; }

/* ---------- SVG icons ---------- */
.svg-ic { display: block; width: 26px; height: 26px; }
.brand .logo-mark svg { width: 21px; height: 21px; color: var(--cyan); }
.feature .ic svg { width: 28px; height: 28px; color: var(--cyan); }
.feature .ic img { width: 44px; height: 44px; object-fit: contain; display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.dropdown a .d-thumb svg { width: 21px; height: 21px; color: var(--cyan); }
.game-card .thumb .glyph svg { width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.screens .shot svg { width: 48px; height: 48px; color: #fff; opacity: .94; }
.contact-info .info-item .ic svg { width: 24px; height: 24px; color: var(--cyan); }
.socials a svg { width: 21px; height: 21px; color: var(--muted); transition: color .3s var(--ease); }
.socials a:hover svg { color: var(--cyan); }
.btn .svg-ic { width: 18px; height: 18px; }
.float-badge svg, .featured-flag svg { width: 13px; height: 13px; }

.ic.t-rpg svg    { color: var(--rpg) !important; }
.ic.t-racing svg { color: var(--racing) !important; }
.ic.t-classic svg{ color: var(--classic) !important; }
.ic.t-anime svg  { color: var(--anime) !important; }
.ic.t-scifi svg  { color: var(--scifi) !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; width: min(86vw, 360px); height: calc(100vh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 4px; padding: 26px 22px;
    background: rgba(9,11,15,.97); backdrop-filter: blur(20px); border-left: 1px solid var(--brd);
    transform: translateX(110%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links > li > a { padding: 14px 12px; font-size: 1.1rem; }
  .nav-links > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 12px; min-width: 0; }
  .has-drop > a::before { content: "▸"; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .game-detail, .about-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .screens { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 76px 0; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 16px; }
  .screens { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
