/* =====================================================================
   Theme
   ===================================================================== */
:root {
  --bg: #0b0e13;
  --surface: #12161d;
  --surface-2: #181d26;
  --panel: rgba(17, 21, 28, 0.9);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaef;
  --soft: #c5cad3;
  --muted: #a0a7b4;
  --faint: #6f7684;
  --accent: #e0b36c;
  --accent-2: #f2cf97;
  --accent-rgb: 224, 179, 108;
  --accent-soft: rgba(var(--accent-rgb), 0.1);
  --ok: #7cc79a;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; } /* "*" alone misses pseudo-elements: bordered dots/rings would grow off-centre */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--accent); color: #17120a; }

/* =====================================================================
   Animated background layers
   ===================================================================== */
#bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--accent-rgb), .05), transparent 70%),
              radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .55) 100%);
}

/* =====================================================================
   Cursor (PROFILE.cursor in data.js): "pointer" = themed arrow, "crosshair" = FPS
   crosshair. Both sit exactly on the pointer, react to anything clickable and
   kick on click (plus hit sparks). .on-light = over a solid amber button.
   ===================================================================== */
@property --spread { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --kick { syntax: "<length>"; inherits: true; initial-value: 0px; }
.cursor { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 300; transition: opacity .2s; }
.cursor.off { opacity: 0; }

/* Arrow: tip on the hotspot. Over clickables it swaps to an amber pointing hand
   (fingertip on the hotspot) drawn in the same filled + dark-outline style; both dip on click */
.cursor.arrow svg {
  position: absolute; width: 24px; height: 24px; overflow: visible;
  fill: var(--text); stroke: #0b0e13; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45));
  transition: opacity .12s, scale .2s cubic-bezier(.2,.9,.3,1.4), fill .2s, stroke .2s;
}
.cursor.arrow .ptr { left: -3px; top: -2px; transform-origin: 3px 2px; }
.cursor.arrow .hand { left: -8px; top: -2px; transform-origin: 8px 2px; fill: var(--accent); opacity: 0; scale: .8; }
.cursor.arrow .hand .crease { fill: none; }
.cursor.arrow.hover .ptr { opacity: 0; scale: .8; }
.cursor.arrow.hover .hand { opacity: 1; scale: 1; }
.cursor.arrow.on-light .hand { fill: #17120a; stroke: #fff; } /* amber would vanish on solid amber buttons */
.cursor.arrow.fire svg { animation: press .28s cubic-bezier(.2,.8,.3,1); }
@keyframes press { from { transform: scale(.8); } }

/* Crosshair: 4 lines around a small gap; spreads over clickables, recoils on click */
.cursor.crosshair {
  --gap: 4px; --len: 8px; color: var(--text);
  filter: drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 1px rgba(0,0,0,.6)); /* dark outline keeps it visible on light images and lit text */
  transition: opacity .2s, color .2s, --spread .25s cubic-bezier(.2,.9,.3,1.4);
}
.cursor.crosshair i { position: absolute; background: currentColor; }
.cursor.crosshair i:nth-child(-n+2) { left: -1px; width: 2px; height: var(--len); }
.cursor.crosshair i:nth-child(n+3) { top: -1px; height: 2px; width: var(--len); }
.cursor.crosshair i:nth-child(1) { bottom: var(--gap); transform: translateY(calc(-1 * (var(--spread) + var(--kick)))); }
.cursor.crosshair i:nth-child(2) { top: var(--gap); transform: translateY(calc(var(--spread) + var(--kick))); }
.cursor.crosshair i:nth-child(3) { right: var(--gap); transform: translateX(calc(-1 * (var(--spread) + var(--kick)))); }
.cursor.crosshair i:nth-child(4) { left: var(--gap); transform: translateX(calc(var(--spread) + var(--kick))); }
.cursor.crosshair.hover { --spread: 4px; color: var(--accent); }
.cursor.crosshair.hover.on-light { color: #17120a; filter: drop-shadow(0 0 1px rgba(255,255,255,.7)); } /* amber would vanish on solid amber buttons */
.cursor.crosshair.fire { animation: recoil .32s cubic-bezier(.2,.8,.3,1); }
@keyframes recoil { from { --kick: 7px; } to { --kick: 0px; } }
.hit-spark {
  position: fixed; pointer-events: none; z-index: 299; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), .6);
  animation: spark .5s ease-out forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* Text spotlight: a lit copy of the text sits on top, masked to a soft circle around the
   pointer, so only the letters near it glow. --mx/--my/--r come from textGlow() in main.js */
.readable { position: relative; }
.readable::after {
  content: attr(data-text); content: attr(data-text) / ""; /* empty alt: screen readers skip the copy */
  position: absolute; inset: 0; padding: inherit; pointer-events: none;
  color: #fff; -webkit-text-stroke: .3px #fff; /* reads a touch bolder without shifting the layout */
  text-shadow: 0 0 10px rgba(var(--accent-rgb), .55), 0 0 1px rgba(255, 255, 255, .6);
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 0px) var(--my, 0px), #000, rgba(0,0,0,.7) 35%, rgba(0,0,0,.25) 65%, transparent);
          mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 0px) var(--my, 0px), #000, rgba(0,0,0,.7) 35%, rgba(0,0,0,.25) 65%, transparent);
}

/* =====================================================================
   Scroll progress + nav
   ===================================================================== */
.xp { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.xp i { display: block; height: 100%; width: 0; background: var(--accent); opacity: .8; }

.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, calc((100% - 1160px) / 2)); /* full-width bar, content lines up with .wrap */
  background: rgba(11, 14, 19, .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 18px; font-weight: 700; letter-spacing: -.2px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo svg {
  width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.logo:hover svg { transform: translateY(-2px); }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a { font-size: 14.5px; font-weight: 500; padding: 8px 12px; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; font-weight: 600; font-size: 13px; color: var(--text); border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 8px; }

/* =====================================================================
   Layout + headings
   ===================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 110px 0 40px; }
.sec-head { margin-bottom: 36px; }
.sec-tag {
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.sec-tag::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.sec-title { font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 10px; }
.sec-title em { font-style: normal; color: var(--accent); }
.sec-sub { color: var(--muted); max-width: 620px; margin-top: 12px; font-size: 17px; }

/* Reveal on scroll: quiet fade up */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Buttons + chips
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text);
  background: rgba(255, 255, 255, .02);
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover { border-color: rgba(var(--accent-rgb), .6); background: var(--accent-soft); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #17120a; }
.btn.solid:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.small { padding: 8px 14px; font-size: 14px; }

.chip {
  font-weight: 500; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .03);
  transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.badge {
  font-weight: 600; font-size: 10.5px; letter-spacing: .8px; padding: 4px 8px; border-radius: 6px;
  background: rgba(11, 14, 19, .8); border: 1px solid rgba(255, 255, 255, .12); color: #d5d9e0;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { min-height: calc(100vh - 64px); display: grid; align-items: center; padding: 60px 0 80px; }
.hero > .wrap { width: 100%; } /* a grid item with auto margins would shrink to its content and centre */
.hero-inner { max-width: 760px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
  margin-bottom: 26px;
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(124, 199, 154, .15); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7.5vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .hi { display: block; font-size: .36em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-bottom: .35em; }
.typer { font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--accent); margin: 18px 0 14px; min-height: 1.6em; }
.typer::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.15em; margin-left: 3px;
  background: currentColor; animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero-about { color: var(--muted); font-size: 17.5px; max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; margin-top: 52px; flex-wrap: wrap; row-gap: 20px; }
.stat { padding: 0 32px; border-left: 1px solid var(--line-strong); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.stat span { display: block; font-size: 14px; color: var(--muted); } /* block, so the glow copy lines up exactly */

/* Featured strip */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: rgba(11, 14, 19, .85);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font-weight: 500; font-size: 15px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; transition: color .2s; }
.marquee a:hover { color: var(--text); }
.marquee a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   Tabs (engine select) + filters
   ===================================================================== */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); position: relative; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; font-weight: 500; font-size: 14.5px; padding: 8px 16px; border-radius: 9px; color: var(--muted); transition: color .2s; }
.tab:hover, .tab.active { color: var(--text); }
.tab-pill {
  position: absolute; z-index: 0; top: 4px; height: calc(100% - 8px); border-radius: 9px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease);
}
.tab .count { font-size: 12px; color: var(--faint); margin-left: 6px; transition: color .2s; }
.tab.active .count { color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 30px; align-items: center; }
.filters .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.filter {
  font-weight: 500; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(11, 14, 19, .5); transition: color .2s, border-color .2s, background-color .2s;
}
.filter:hover { border-color: var(--line-strong); color: var(--text); }
.filter.on { border-color: rgba(var(--accent-rgb), .55); color: var(--accent); background: var(--accent-soft); }

/* =====================================================================
   Game cards
   ===================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .85); }
.card.spawn { animation: cardIn .6s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card.despawn { animation: cardOut .22s ease-in forwards; }
@keyframes cardOut { to { opacity: 0; transform: translateY(8px); } }

.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #07090c; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .ph { /* placeholder art when no image */
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    radial-gradient(circle at var(--px, 30%) var(--py, 30%), rgba(var(--accent-rgb), .16), transparent 55%),
    linear-gradient(160deg, #161b24, #0d1015);
  font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; color: var(--text); line-height: 1.2;
}
.thumb .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.thumb .engine { position: absolute; top: 10px; right: 10px; z-index: 2; }
.play-trailer {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  background: rgba(8, 10, 14, .45); opacity: 0; transition: opacity .25s;
}
.card:hover .play-trailer { opacity: 1; }
.play-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center;
  background: rgba(11, 14, 19, .6); transform: scale(.9); transition: transform .25s var(--ease), border-color .2s;
}
.card:hover .play-btn { transform: scale(1); }
.play-btn::before { content: ""; border-left: 15px solid var(--text); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play-trailer small { position: absolute; bottom: 12px; font-weight: 600; font-size: 12px; color: var(--text); }
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; transition: color .2s; }
.card:hover .card-title { color: var(--accent-2); }
.card-title span { font-size: 13px; color: var(--faint); font-weight: 400; white-space: nowrap; }
.card-short { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; transition: color .25s; }
.card:hover .card-short { color: var(--soft); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; text-align: center; font-weight: 500; color: var(--muted); grid-column: 1/-1; }

/* =====================================================================
   Genres
   ===================================================================== */
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.level {
  position: relative; display: block; padding: 22px 22px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: opacity .7s var(--ease) var(--rd, 0ms), transform .3s var(--ease), border-color .25s, background-color .25s;
}
.level::after { /* accent rule slides in along the top edge */
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.level:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.level:hover::after { transform: none; }
.level .lvl-no { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 1px; }
.level h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 6px; transition: color .2s; }
.level:hover h3 { color: var(--accent-2); }
.level p { font-size: 14.5px; color: var(--muted); }
.level .lvl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--faint); }
.level .go { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); }
.level:hover .go { opacity: 1; transform: none; }

/* =====================================================================
   Experience timeline
   ===================================================================== */
.quests { position: relative; padding-left: 30px; }
.quests::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
.quest { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.quest::before { /* dot threaded on the timeline, level with the title */
  content: ""; position: absolute; left: -28px; top: 28px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--faint);
}
.quest.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.quest-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.quest h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.quest .q-company { color: var(--accent); font-weight: 500; font-size: 15px; }
.quest .q-period { font-size: 13.5px; color: var(--faint); }
.quest .q-state {
  font-size: 11.5px; font-weight: 600; color: var(--accent); padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .3);
}
.quest ul { list-style: none; margin-top: 12px; }
.quest li { color: var(--muted); font-size: 15px; padding-left: 18px; position: relative; margin: 6px 0; }
.quest li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 7px; height: 1px; background: var(--faint); }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.edu { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.edu .ico {
  width: 44px; height: 44px; border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 10px; display: grid; place-items: center;
  font-weight: 600; font-size: 14px; color: var(--accent); background: var(--accent-soft); flex-shrink: 0;
}
.edu h4 { font-size: 16.5px; font-weight: 600; }
.edu p { color: var(--muted); font-size: 14.5px; }

/* Skills */
.inv-group { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.inv-group h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--faint); letter-spacing: 1.5px; text-transform: uppercase; padding-top: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  font-weight: 500; font-size: 14px; padding: 6px 13px; border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; color: var(--soft); transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.slot:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--text); transform: translateY(-2px); }

/* Contact */
.contact-box {
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 60px);
  text-align: center; background: var(--panel); position: relative; overflow: hidden; isolation: isolate;
}
.contact-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--accent-rgb), .08), transparent 70%);
}
.contact-box h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin-top: 12px; }
.contact-box h2 em { font-style: normal; color: var(--accent); }
.contact-box .sub { color: var(--muted); margin: 16px auto 28px; max-width: 520px; font-size: 17px; }
.socials { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 26px; }
.socials a { font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--accent); }

footer { padding: 60px 0 40px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* =====================================================================
   Sub-page header (genre / game)
   ===================================================================== */
.page-head { padding-top: 56px; padding-bottom: 30px; } /* keep .wrap's side gutters */
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 20px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.genre-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Game detail */
.game-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #07090c; box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .9);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster { position: absolute; inset: 0; display: grid; place-items: center; }
.video .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.video .poster:hover img { opacity: .95; }
.video .poster .play-btn { position: relative; transform: scale(1); width: 76px; height: 76px; }
.video .poster:hover .play-btn { transform: scale(1.08); border-color: var(--accent); }
.video .poster .ph { position: absolute; inset: 0; }
.video .no-video { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 500; font-size: 14px; color: var(--muted); text-align: center; line-height: 2; }
.info-panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px; }
.info-panel h1 { font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 10px; }
.info-panel .lede { color: var(--muted); margin: 10px 0 16px; }
.info-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 12px; }
.info-row span:first-child { white-space: nowrap; font-weight: 500; color: var(--faint); font-size: 13px; }
.info-row span:last-child { text-align: right; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; color: var(--soft); }
.links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.links .btn { justify-content: space-between; }
.desc { max-width: 760px; font-size: 17px; color: var(--soft); }
.desc p { margin-bottom: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shot {
  aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  transition: opacity .7s var(--ease) var(--rd, 0ms), transform .3s var(--ease), border-color .25s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.shots.tall { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); }
.shots.tall .shot { aspect-ratio: 9 / 16; }

/* Modal (trailer + lightbox) */
.modal {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 8, 11, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(1000px, 100%); position: relative; transform: translateY(14px) scale(.98); transition: transform .35s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box .video { border-color: var(--line-strong); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.modal-box img.full { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line-strong); }
.modal-close { position: absolute; top: -42px; right: 0; font-weight: 500; font-size: 14px; color: var(--muted); padding: 8px; transition: color .2s; }
.modal-close:hover { color: var(--text); }
.modal-title { position: absolute; top: -38px; left: 0; font-weight: 600; color: var(--text); font-size: 16px; }

/* Achievement toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 160; display: flex; align-items: center; gap: 12px;
  background: rgba(18, 22, 29, .96); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 18px 10px 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); transform: translateY(calc(100% + 100px)); /* fully off-screen even when raised on phones */ transition: transform .45s var(--ease);
  max-width: calc(100vw - 48px);
}
.toast.show { transform: none; }
.toast .trophy { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; flex-shrink: 0; }
.toast small { display: block; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.toast b { font-size: 14px; font-weight: 600; }

/* Sound toggle (bottom-left): speaker with waves = on, speaker with ✕ = off */
.sound-toggle {
  position: fixed; left: 20px; bottom: 18px; z-index: 110;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--accent); background: rgba(11, 14, 19, .8); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s, background-color .2s;
}
.sound-toggle:hover { border-color: rgba(var(--accent-rgb), .5); background: var(--accent-soft); }
.sound-toggle.off { color: var(--faint); }
.sound-toggle.off:hover { color: var(--muted); border-color: var(--line-strong); background: rgba(11, 14, 19, .8); }
.sound-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; }
.sound-toggle .waves, .sound-toggle .mute { transition: opacity .2s; }
.sound-toggle.off .waves, .sound-toggle:not(.off) .mute { opacity: 0; }

/* Page transition: dark shutters drop from the click, a loading card names the
   destination, the next page opens them downwards. --close/--hold/--open come from main.js */
.wipe {
  position: fixed; inset: 0; z-index: 180; pointer-events: none; overflow: hidden;
  display: grid; grid-template-columns: repeat(6, 1fr); visibility: hidden;
}
.wipe.out, .wipe.in { visibility: visible; }
/* Covered and still: drawn by the snippet at the top of each page's <body> before anything else is
   painted, until main.js plays "in" (same look, so the hand-over is invisible). Gives up after 4s
   in case main.js never runs, so a page can't get stuck behind it */
.wipe.hold { visibility: visible; animation: holdGiveUp 0s 4s forwards; }
.wipe.hold i, .wipe.hold .wipe-bar::after { transform: none; }
.wipe.hold .wipe-hud { opacity: 1; }
@keyframes holdGiveUp { to { visibility: hidden; } }
/* First load ("boot", no transition to continue): the same closed shutters are the loading screen. main.js
   fades the card in once it has named the page ("lit"), fills the bar with real progress (--p), then opens
   them. Swallows clicks meanwhile, and waits up to 10s for main.js before giving up */
.wipe.hold.boot { pointer-events: auto; animation-delay: 10s; }
.wipe.hold.boot .wipe-hud { opacity: 0; }
.wipe.hold.boot.lit .wipe-hud { animation: hudIn .3s ease-out both; }
.wipe.hold.boot .wipe-bar::after { transform: scaleX(var(--p, 0)); }
.wipe.out { pointer-events: auto; } /* swallow double clicks while leaving */
.wipe i {
  --d: 0ms; position: relative; margin-right: -1px; /* overlap neighbours: no hairline seams */
  clip-path: inset(-40px 0); /* edge glow spills up/down onto the page, never sideways into a neighbour */
  transform: translateY(-100%);
  background: linear-gradient(to top, rgba(var(--accent-rgb), .05), transparent 140px), var(--bg);
}
.wipe i::before, .wipe i::after { /* run past the sides so the glow doesn't fade at column boundaries */
  content: ""; position: absolute; left: -40px; right: -40px; height: 1px;
  background: rgba(var(--accent-rgb), .7); box-shadow: 0 0 10px rgba(var(--accent-rgb), .3);
}
.wipe i::before { top: 0; }
.wipe i::after { bottom: 0; }
.wipe.out i { animation: shutterIn var(--close) cubic-bezier(.7,0,.3,1) var(--d) both; }
.wipe.in i { transform: none; animation: shutterOut var(--open) cubic-bezier(.65,0,.25,1) calc(var(--hold) + var(--d)) both; }
@keyframes shutterIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes shutterOut { from { transform: none; } to { transform: translateY(100%); } }

.wipe-hud {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 20px; text-align: center; opacity: 0;
}
.wipe-hud small { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.wipe-hud b { font-size: clamp(28px, 5vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); }
.wipe-hud b:empty { display: none; } /* no title: keep the label and bar together */
.wipe-bar { width: min(220px, 60vw); height: 2px; margin-top: 6px; background: rgba(255, 255, 255, .08); }
.wipe-bar::after { content: ""; display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.wipe.out .wipe-hud { animation: hudIn .22s ease-out calc(var(--close) * .8) both; }
/* one smooth 0 → 100% fill that starts with the card and ends before the page changes; transform-only,
   so the browser runs it off the main thread and page work can't make it stutter */
.wipe.out .wipe-bar::after { animation: barFill var(--fill) cubic-bezier(.45, .05, .25, 1) calc(var(--close) * .8) both; }
.wipe.in .wipe-bar::after { transform: none; } /* the new page starts with the bar already full */
.wipe.in .wipe-hud { opacity: 1; animation: hudOut .2s ease-in var(--hold) both; }
@keyframes barFill { to { transform: none; } }
@keyframes hudIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hudOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* Play (WebGL) page */
.player-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 78vh; border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.play-tip { font-size: 14px; color: var(--muted); margin-top: 12px; display: inline-block; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .game-hero, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(11, 14, 19, .97); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
  section { padding: 80px 0 30px; }
  .stat { padding: 0 20px; }
  .inv-group { grid-template-columns: 1fr; gap: 10px; }
  .inv-group h4 { padding-top: 0; }
  .toast { left: 16px; right: 16px; bottom: 64px; max-width: none; } /* clears the sound toggle */
  .sound-toggle { left: 12px; bottom: 12px; }
}
@media (hover: none) { .play-trailer { opacity: 1; background: transparent; align-items: end; justify-items: end; padding: 10px; } .play-btn { width: 44px; height: 44px; transform: none; } .play-trailer small { display: none; } }

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