/* ==========================================================================
   JUST EPYX, main stylesheet
   Sections: 1 Reset/tokens · 2 Base · 3 Header · 4 Hero · 5 Ticker
             6 Sections · 7 About · 8 Games · 9 Graphics · 10 Projects
             11 Contact · 12 Footer · 13 Dialogs/Lightbox · 14 Effects
             15 Glass skin · 16 Responsive · 17 Reduced motion
             18 Consent · 19 Look switch · 20 Flat look
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/silkscreen-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/silkscreen-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07070f;
  --bg-soft: #0b0b18;
  --panel: #10101f;
  --panel-2: #15152b;
  --panel-3: #1b1b34;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Glass + gel surfaces */
  --glass: rgba(17, 17, 34, 0.52);
  --glass-strong: rgba(13, 13, 28, 0.74);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-line-strong: rgba(255, 255, 255, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.30);
  --glass-shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.92);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  --glass-blur: blur(18px) saturate(145%);

  --text: #f4f1ff;
  --muted: #a9a4c9;
  --muted-2: #8b86a6;

  --green: #9fe870;
  --yellow: #ffea64;
  --pink: #ffd7ef;
  --purple: #9c98cf;
  --violet: #7c6bff;

  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Silkscreen', 'Courier New', monospace;

  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 720px at 12% 18%, rgba(159, 232, 112, 0.12), transparent 62%),
    radial-gradient(1100px 800px at 88% 8%, rgba(124, 107, 255, 0.24), transparent 64%),
    radial-gradient(900px 700px at 72% 82%, rgba(255, 215, 239, 0.10), transparent 62%),
    radial-gradient(700px 600px at 18% 92%, rgba(255, 234, 100, 0.07), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--green); color: #07070f; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08080f; }
::-webkit-scrollbar-thumb { background: #2a2a45; border-radius: 99px; border: 2px solid #08080f; }
::-webkit-scrollbar-thumb:hover { background: #3b3b60; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--green);
  color: #07070f;
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Grain + CRT overlays */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.32) 2px,
    rgba(0, 0, 0, 0.32) 3px
  );
}
body.crt .crt-overlay { opacity: 0.55; }

/* Buttons */
.btn {
  --btn-bg: var(--panel-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #07070f;
  box-shadow: 0 12px 34px -16px rgba(159, 232, 112, 0.85);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(159, 232, 112, 0.7); }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: rgba(159, 232, 112, 0.06); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }

.btn-sm { padding: 10px 16px; font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    backdrop-filter 0.35s var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(7, 7, 15, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--yellow) 55%, var(--pink));
  transition: transform 0.12s linear;
}

.nav-shell {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.035em;
  flex-shrink: 0;
}
.brand-mark { transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.08); }
.brand-name { line-height: 1; }
.brand-dot { color: var(--green); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
  padding: 7px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px -24px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.desktop-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a.is-active { color: var(--text); }
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-itch { display: inline-flex; align-items: center; gap: 8px; }
.nav-itch .socicon { font-size: 15px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 19px; transform: translateX(-50%); }
.menu-toggle span:nth-child(2) { top: 25px; transform: translateX(-50%); }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 110px 7vw 48px;
  background:
    radial-gradient(700px 500px at 90% 0%, rgba(124, 107, 255, 0.22), transparent 60%),
    rgba(7, 7, 15, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s ease;
}
.mobile-nav a span {
  font-family: var(--pixel);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.08em;
}
.mobile-nav a:hover { color: var(--green); }
body.menu-open .mobile-nav a { opacity: 1; transform: none; }
body.menu-open .mobile-nav a:nth-child(1) { transition-delay: 0.04s; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: 0.09s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: 0.14s; }
body.menu-open .mobile-nav a:nth-child(4) { transition-delay: 0.19s; }
body.menu-open .mobile-nav a:nth-child(5) { transition-delay: 0.24s; }

.mobile-menu-foot {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--pixel);
  font-size: 0.8rem;
  color: var(--muted);
}
.mobile-menu-foot a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
}
.hero-aura {
  position: absolute;
  z-index: 0;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  right: -14vw;
  top: -12vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 107, 255, 0.24) 0%, rgba(124, 107, 255, 0.07) 42%, transparent 68%);
  filter: blur(10px);
  animation: auraPulse 14s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(122px, 15vh, 168px) 0 clamp(96px, 12vh, 130px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(159, 232, 112, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 7.3vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroLine 1.05s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.18s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.29s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.4s; }

.hero-title em {
  font-family: var(--pixel);
  font-style: normal;
  font-size: 0.44em;
  letter-spacing: -0.02em;
  color: var(--green);
  display: inline-block;
  transform: translateY(-0.12em);
  text-shadow: 0 0 32px rgba(159, 232, 112, 0.45);
}
.hero-period { color: var(--yellow); }

.hero-lede {
  max-width: 47ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.68s forwards;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 52px);
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.82s forwards;
}
.hero-stat dt {
  font-family: var(--pixel);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  color: var(--green);
  line-height: 1;
  margin-bottom: 9px;
}
.hero-stat:nth-child(2) dt { color: var(--yellow); }
.hero-stat:nth-child(3) dt { color: var(--pink); }
.hero-stat dd {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.planet-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.planet-wrap {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: bob 9s ease-in-out infinite;
}
.planet-wrap::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 232, 112, 0.28), rgba(124, 107, 255, 0.16) 45%, transparent 70%);
  filter: blur(24px);
  z-index: -1;
}
.planet {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.planet-stage:hover .planet {
  filter: drop-shadow(0 0 34px rgba(159, 232, 112, 0.45));
}
.planet-stage.is-boosted .planet { animation: planetSpin 1.6s var(--ease); }

.orbit {
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 70s linear infinite;
}
.orbit-1 { inset: 2%; border-color: rgba(159, 232, 112, 0.2); }
.orbit-2 { inset: 14%; border-style: solid; border-color: rgba(124, 107, 255, 0.22); animation-duration: 48s; animation-direction: reverse; }
.orbit-3 { inset: 25%; border-color: rgba(255, 234, 100, 0.16); animation-duration: 34s; }

.orbit-satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 234, 100, 0.8);
  offset-path: circle(47% at 50% 50%);
  offset-rotate: 0deg;
  animation: orbitMove 20s linear infinite;
}
.sat-2 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 215, 239, 0.8);
  offset-path: circle(35% at 50% 50%);
  animation-duration: 13s;
  animation-direction: reverse;
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--green);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.4s ease-in-out infinite;
}
.spark-1 { top: 14%; left: 18%; }
.spark-2 { top: 24%; right: 12%; background: var(--yellow); animation-delay: 0.8s; width: 9px; height: 9px; }
.spark-3 { bottom: 18%; left: 10%; background: var(--pink); animation-delay: 1.6s; }

.hero-chip {
  position: absolute;
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 16, 31, 0.82);
  backdrop-filter: blur(10px);
  color: var(--muted);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9);
  animation: floatChip 8s ease-in-out infinite;
  white-space: nowrap;
}
.chip-a { top: 7%; right: 0; transform: rotate(4deg); color: var(--green); border-color: rgba(159, 232, 112, 0.28); }
.chip-b { bottom: 15%; left: -4%; transform: rotate(-5deg); color: var(--pink); border-color: rgba(255, 215, 239, 0.26); animation-delay: 1.4s; }
.chip-c { bottom: 2%; right: 6%; transform: rotate(2deg); color: var(--yellow); border-color: rgba(255, 234, 100, 0.24); animation-delay: 2.6s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.25s ease;
}
.scroll-cue:hover { color: var(--green); }
.scroll-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--muted-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--green);
  animation: scrollDown 2.2s var(--ease-soft) infinite;
}

/* --------------------------------------------------------------------------
   5. Ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px 0;
  user-select: none;
}
.ticker-alt {
  background: var(--green);
  color: #06060c;
  border: 0;
  transform: rotate(-1.4deg) scale(1.02);
  margin-block: 42px;
  padding: 12px 0;
}
.ticker-alt .ticker-star { color: #06060c; opacity: 0.55; }

.ticker-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-reverse { animation-direction: reverse; animation-duration: 52s; }

.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item {
  font-family: var(--pixel);
  font-size: clamp(0.72rem, 1.25vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-inline: 22px;
  white-space: nowrap;
}
.ticker-star {
  font-size: 0.85rem;
  color: var(--green);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(84px, 11vw, 132px) 0;
}
.section + .section { padding-top: clamp(40px, 5vw, 64px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding-inline: 5px;
  border: 1px solid rgba(159, 232, 112, 0.32);
  border-radius: 6px;
  color: var(--green);
  font-size: 0.6rem;
  background: rgba(159, 232, 112, 0.07);
}

.section-title {
  font-size: clamp(2.35rem, 5.3vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 28px clamp(24px, 5vw, 80px);
  margin-bottom: 44px;
}
.section-lede {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 42ch;
  padding-bottom: 6px;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 48ch;
  margin-bottom: 18px;
}
.about-copy > p:not(.lede):not(.kicker) {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.2;
}
.tag-list-lg { margin-top: 24px; }
.tag-list-lg li { font-size: 0.65rem; padding: 8px 12px; color: var(--text); }

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--pixel);
  font-size: 0.72rem;
}

.result-count {
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}
.about-media { position: relative; max-width: 470px; }

.portrait-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  transform: rotate(-1.6deg);
  transition: transform 0.5s var(--ease), border-color 0.4s ease;
  overflow: hidden;
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.01); border-color: rgba(159, 232, 112, 0.45); }
.portrait-frame img {
  display: block;
  width: 100%;
  border-radius: 18px;
  filter: saturate(0.92) contrast(1.03);
}
.portrait-tint {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(160deg, #cdf9b4, #9fe870);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.scanlines {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  opacity: 0.9;
}
.frame-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.frame-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.frame-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.frame-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.floating-tag {
  position: absolute;
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 32px -20px #000;
  animation: floatChip 9s ease-in-out infinite;
}
.tag-a { top: -14px; right: 18px; color: var(--green); transform: rotate(4deg); border-color: rgba(159, 232, 112, 0.35); }
.tag-b { bottom: -16px; left: 26px; color: var(--yellow); transform: rotate(-3deg); border-color: rgba(255, 234, 100, 0.3); animation-delay: 1.5s; }

.about-socials { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.about-social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.3s var(--ease), color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.about-social:hover {
  transform: translateY(-3px);
  color: #07070f;
  background: var(--green);
  border-color: var(--green);
}
.about-social .socicon { font-size: 17px; }
.brand-icon {
  display: block;
  fill: currentColor;
}
.social-icon .brand-icon-csdb,
.about-social .brand-icon-csdb { width: 30px; height: 10px; }
.social-icon .brand-icon-demozoo,
.about-social .brand-icon-demozoo { width: 24px; height: 19px; }

/* --------------------------------------------------------------------------
   8. Games
   -------------------------------------------------------------------------- */
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #07070f;
  font-weight: 600;
}

.sort-control { display: flex; align-items: center; gap: 9px; }
.sort-control label {
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sort-control select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9a4c9' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 8px 34px 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.sort-control select:hover { border-color: var(--line-strong); }
.sort-control option { background: var(--panel); color: var(--text); }

/* Featured game */
.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  margin-bottom: 26px;
  isolation: isolate;
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease);
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--green)) 26%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}
.featured-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 48%, var(--line));
  box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--accent, var(--green)) 80%, transparent);
}
.featured-media { position: relative; overflow: hidden; min-height: 300px; }
.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s var(--ease);
}
.featured-card:hover .featured-media img { transform: scale(1.045); }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(13, 13, 26, 0.7) 100%),
    linear-gradient(0deg, rgba(9, 9, 18, 0.55), transparent 45%);
}
.featured-badge {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: 7px;
  color: #07070f;
  background: var(--green);
  box-shadow: 0 10px 26px -14px rgba(159, 232, 112, 0.8);
}
.featured-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 3.6vw, 46px);
}
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.featured-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.featured-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: -8px;
}
.featured-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38ch;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.featured-cta span { color: var(--green); font-size: 1.1rem; transition: transform 0.3s var(--ease); }
.featured-card:hover .featured-cta span { transform: translateX(5px); }

/* Award / platform pills */
.award-pill,
.platform-pill,
.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.platform-pill {
  color: var(--text);
  background: rgba(7, 7, 15, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.award-pill {
  color: var(--yellow);
  background: rgba(255, 234, 100, 0.1);
  border-color: rgba(255, 234, 100, 0.32);
}
.kind-pill {
  color: var(--purple);
  background: rgba(156, 152, 207, 0.1);
  border-color: rgba(156, 152, 207, 0.3);
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--panel-2), var(--panel) 62%);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
  animation: cardIn 0.65s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent, var(--green)) 16%, transparent),
    transparent 65%
  );
}
.game-card:hover {
  --ty: -6px;
  border-color: color-mix(in srgb, var(--accent, var(--green)) 42%, var(--line));
  box-shadow: 0 34px 60px -38px color-mix(in srgb, var(--accent, var(--green)) 70%, transparent);
}
.game-card:hover::after { opacity: 1; }

.game-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0c0c18;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
  filter: saturate(0.96);
}
.game-card:hover .game-card__media img { transform: scale(1.055); filter: saturate(1.06); }
.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.7), transparent 52%);
}
.game-card__badges {
  position: absolute;
  z-index: 1;
  inset: 12px 12px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.badge-stack { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 20px 20px 18px;
}
.game-card__title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.game-card__sub {
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: -6px;
}
.game-card__tagline {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.game-card__year {
  font-family: var(--pixel);
  font-size: 0.6rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.game-card__open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}
.game-card__open i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-style: normal;
  font-size: 0.8rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease), border-color 0.25s ease;
}
.game-card:hover .game-card__open i {
  background: var(--accent, var(--green));
  border-color: var(--accent, var(--green));
  color: #07070f;
  transform: rotate(-45deg);
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}
.card-hit:focus-visible { outline: 2px solid var(--green); outline-offset: -5px; }

/* --------------------------------------------------------------------------
   9. Graphics gallery
   -------------------------------------------------------------------------- */
.gallery {
  columns: 3;
  column-gap: 20px;
}
.graphics-award-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 234, 100, 0.3);
  border-radius: 999px;
  background: rgba(255, 234, 100, 0.06);
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}
.graphics-award-star { font-size: 0.85rem; line-height: 1; }

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  break-inside: avoid;
  text-align: left;
  transition: border-color 0.35s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: cardIn 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.gallery-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.gallery-item:hover {
  border-color: rgba(159, 232, 112, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 30px 55px -40px rgba(159, 232, 112, 0.55);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item img { image-rendering: pixelated; }

.gallery-body {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 15px 17px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gallery-title { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.gallery-comment {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.gallery-award {
  margin-top: 2px;
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: uppercase;
}
.gallery-award-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(255, 234, 100, 0.4);
  border-radius: 999px;
  background: rgba(7, 7, 15, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.gallery-meta {
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 7, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   10. Projects
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.4s var(--ease);
  animation: cardIn 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 45%, var(--line));
  box-shadow: 0 28px 50px -36px color-mix(in srgb, var(--accent, var(--green)) 65%, transparent);
}
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b16; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.65), transparent 55%);
}
.project-kind {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(7, 7, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.project-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.project-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.project-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.project-foot span:last-child { color: var(--green); font-family: var(--font); font-size: 0.92rem; transition: transform 0.3s var(--ease); }
.project-card:hover .project-foot span:last-child { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   10b. Demoscene
   -------------------------------------------------------------------------- */
.scene-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 26px;
}
.scene-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: var(--muted);
  font-size: 0.76rem;
}
.scene-meta-label {
  font-family: var(--pixel);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.scene-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 248px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-top-color: rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent, var(--green)) 14%, transparent), transparent 58%),
    linear-gradient(152deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 38%, rgba(10, 10, 24, 0.5) 78%),
    var(--glass);
  box-shadow: var(--glass-inset), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  isolation: isolate;
  animation: cardIn 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.4s var(--ease);
}
.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%);
  opacity: 0.55;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}
.scene-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 55%, var(--glass-line-strong));
  box-shadow:
    var(--glass-inset),
    0 32px 66px -34px color-mix(in srgb, var(--accent, var(--green)) 62%, transparent),
    0 24px 48px -38px rgba(0, 0, 0, 0.9);
}
.scene-card:hover::before { opacity: 0.9; }
.scene-media {
  position: relative;
  z-index: 0;
  min-height: 100%;
  overflow: hidden;
  background: #0b0b16;
}
.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}
.scene-card:hover .scene-media img { transform: scale(1.055); filter: saturate(1.08); }
.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 52%, rgba(10, 10, 24, 0.5));
  pointer-events: none;
}
.scene-kind {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 7, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--pixel);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scene-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}
.scene-kicker {
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scene-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.scene-desc { color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.scene-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.scene-award {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 234, 100, 0.36);
  border-radius: 7px;
  background: linear-gradient(160deg, rgba(255, 234, 100, 0.2), rgba(255, 234, 100, 0.05));
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--yellow);
}
.scene-award.is-empty {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-2);
}
.scene-link {
  color: var(--green);
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease);
}
.scene-card:hover .scene-link { transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .scene-card { grid-template-columns: minmax(0, 1fr); }
  .scene-media { aspect-ratio: 16 / 9; min-height: 0; }
  .scene-media::after { background: linear-gradient(to top, rgba(10, 10, 24, 0.5), transparent 55%); }
  .scene-body { padding: 18px; }
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact .container {
  position: relative;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(124, 107, 255, 0.22), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(159, 232, 112, 0.1), transparent 65%),
    linear-gradient(160deg, var(--panel-2), #0a0a16);
}
.contact .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  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: 44px 44px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
}

.contact-head { position: relative; max-width: 720px; margin-bottom: 42px; }
.contact-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--green) 0%, var(--yellow) 45%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-lede { color: var(--muted); max-width: 50ch; }
.text-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--yellow); }

.social-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease);
}
.social-card:hover {
  border-color: rgba(159, 232, 112, 0.42);
  background: rgba(159, 232, 112, 0.06);
  transform: translateY(-3px);
}
.social-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(7, 7, 15, 0.55);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.social-card:hover .social-icon { color: var(--green); border-color: rgba(159, 232, 112, 0.4); background: rgba(159, 232, 112, 0.08); }
.social-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.social-label { font-size: 0.86rem; font-weight: 600; }
.social-handle {
  font-size: 0.7rem;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-arrow { margin-left: auto; color: var(--muted-2); font-size: 0.9rem; transition: color 0.25s ease, transform 0.3s var(--ease); }
.social-card:hover .social-arrow { color: var(--green); transform: translate(2px, -2px); }

.big-mail {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 26px;
  padding: 26px 0 6px;
  border-top: 1px solid var(--line-strong);
  transition: color 0.25s ease;
}
.big-mail-label {
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.big-mail-value {
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  transition: color 0.25s ease;
}
.big-mail:hover .big-mail-value { color: var(--green); }
.big-mail-arrow {
  margin-left: auto;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green);
  transition: transform 0.35s var(--ease);
}
.big-mail:hover .big-mail-arrow { transform: translate(5px, -5px); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: rgba(6, 6, 12, 0.6);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-copy { color: var(--muted-2); font-size: 0.78rem; }
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.74rem;
  color: var(--muted-2);
}
.footer-legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-legal a:hover { color: var(--green); text-decoration-color: var(--green); }
.footer-actions { display: flex; align-items: center; gap: 10px; }
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.footer-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.crt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
body.crt .crt-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-secret { cursor: help; }
.footer-secret:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   13. Dialogs & lightbox
   -------------------------------------------------------------------------- */
dialog { color: var(--text); }
dialog::backdrop {
  background: rgba(3, 3, 8, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game-dialog {
  width: min(1000px, calc(100% - 32px));
  max-width: 1000px;
  max-height: 90vh;
  max-height: 90svh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.game-dialog[open] {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: minmax(0, 1fr);
  animation: dialogIn 0.45s var(--ease);
}
.game-dialog.is-closing { animation: dialogOut 0.22s ease forwards; }

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 7, 15, 0.68);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}
.dialog-close:hover { background: var(--green); color: #07070f; transform: rotate(90deg); }

.dialog-media {
  position: relative;
  min-height: 100%;
  background: #0a0a14;
  overflow: hidden;
}
.dialog-media::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--art, none);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.2);
  opacity: 0.38;
  transform: scale(1.08);
}
.dialog-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.dialog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(16, 16, 31, 0.55));
  pointer-events: none;
}
.dialog-media-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3.4vw, 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.dialog-kicker {
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  padding-right: 44px;
}
.dialog-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.dialog-subtitle { color: var(--muted); font-size: 0.9rem; margin-top: -4px; }
.dialog-award {
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 234, 100, 0.09);
  border: 1px solid rgba(255, 234, 100, 0.3);
  padding: 7px 10px;
  border-radius: 7px;
  margin-top: 2px;
}
.dialog-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-top: 4px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dialog-links .btn { padding: 11px 18px; font-size: 0.84rem; }
.dialog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dialog-nav-btn {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.dialog-nav-btn:hover:not(:disabled) { color: var(--green); }
.dialog-nav-btn:disabled { opacity: 0.3; cursor: default; }
.dialog-nav-count {
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 11, 0.88);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}
.lightbox[open] { display: flex; flex-direction: column; animation: fadeIn 0.3s ease; }
.lightbox::backdrop { background: rgba(5, 5, 11, 0.62); }
.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.lightbox-counter {
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lightbox-tools { display: flex; align-items: center; gap: 12px; }
.lightbox-zoom-control {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lightbox-tool {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox-tool:hover:not(:disabled) { background: var(--green); color: #07070f; }
.lightbox-tool:disabled { opacity: 0.3; cursor: default; }
.lightbox-zoom-reset { font-size: 0.95rem; }
.lightbox-zoom-value {
  min-width: 42px;
  text-align: center;
  font-family: var(--pixel);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lightbox-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}
.lightbox-close:hover { background: var(--green); color: #07070f; transform: rotate(90deg); }
.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: stretch;
  gap: 10px;
  padding: 18px clamp(10px, 2.6vw, 34px) 22px;
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.lightbox-image-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1100px);
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
  touch-action: none;
}
.lightbox-image-wrap.is-zoomed { cursor: grab; }
.lightbox-image-wrap.is-panning { cursor: grabbing; }
.lightbox-figure img.pixelated { image-rendering: pixelated; }
.lightbox-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transform-origin: center center;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.lightbox-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 7, 15, 0.72);
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-image-wrap.is-zoomed .lightbox-zoom-hint { opacity: 0; }
.lightbox-caption {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 760px);
  text-align: center;
}
.lightbox-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lightbox-title { font-weight: 600; font-size: 1rem; }
.lightbox-meta {
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.lightbox-award {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}
.lightbox-comment {
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.lightbox-arrow {
  align-self: center;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lightbox-arrow:hover { background: var(--green); border-color: var(--green); color: #07070f; }
.lightbox-arrow:disabled { opacity: 0.25; cursor: default; }
.lightbox-arrow.prev { justify-self: start; }
.lightbox-arrow.next { justify-self: end; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 500;
  transform: translate(-50%, 24px);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(159, 232, 112, 0.45);
  background: rgba(10, 10, 20, 0.95);
  color: var(--green);
  font-family: var(--pixel);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  box-shadow: 0 20px 50px -20px #000;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.noscript-note {
  margin: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 234, 100, 0.4);
  border-radius: 12px;
  color: var(--yellow);
  background: rgba(255, 234, 100, 0.06);
  font-size: 0.9rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. Scroll reveal + effects
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Party mode (Konami code) */
body.party main { animation: partyHue 5s linear infinite; }
body.party .planet { animation: partyWobble 0.9s ease-in-out infinite; }
body.party .hero-chip { animation: partyWobble 0.7s ease-in-out infinite; }

@keyframes heroLine { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(159, 232, 112, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(159, 232, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 232, 112, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbitMove { to { offset-distance: 100%; } }
@keyframes bob { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }
@keyframes floatChip { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes scrollDown { 0% { top: -50%; } 60%, 100% { top: 120%; } }
@keyframes auraPulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes planetSpin { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(190deg) scale(1.07); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes partyHue { to { filter: hue-rotate(360deg); } }
@keyframes partyWobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04); } }

/* --------------------------------------------------------------------------
   15. Glass + gel skin
   -------------------------------------------------------------------------- */

/* Frosted chrome */
.site-header.is-scrolled {
  background: rgba(8, 8, 20, 0.56);
  border-bottom-color: var(--glass-line);
  box-shadow: 0 18px 42px -30px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
}

/* Gel buttons */
.btn-primary {
  background:
    radial-gradient(130% 90% at 24% -8%, rgba(255, 255, 255, 0.62), transparent 46%),
    linear-gradient(180deg, #c2f99a 0%, var(--green) 46%, #7dca52 100%);
  color: #061006;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -7px 14px rgba(7, 45, 5, 0.18),
    0 14px 32px -14px rgba(159, 232, 112, 0.78);
}
.btn-primary:hover {
  background:
    radial-gradient(130% 90% at 24% -8%, rgba(255, 255, 255, 0.78), transparent 48%),
    linear-gradient(180deg, #d2ffb1 0%, #abf07d 46%, #86d65a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -7px 14px rgba(7, 45, 5, 0.16),
    0 20px 44px -14px rgba(159, 232, 112, 0.72);
}
.btn-outline,
.btn-ghost {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018));
  border-color: var(--glass-line);
  box-shadow: var(--glass-inset), 0 14px 28px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn-outline:hover,
.btn-ghost:hover {
  border-color: rgba(159, 232, 112, 0.45);
  background: linear-gradient(145deg, rgba(159, 232, 112, 0.16), rgba(255, 255, 255, 0.04));
}

/* Glass cards + gel edges */
.game-card,
.project-card,
.social-card,
.featured-card,
.gallery-item {
  border-color: var(--glass-line);
  border-top-color: rgba(255, 255, 255, 0.30);
  background:
    radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--accent, var(--green)) 10%, transparent), transparent 56%),
    linear-gradient(152deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.028) 34%, rgba(10, 10, 24, 0.48) 72%),
    var(--glass);
  box-shadow: var(--glass-inset), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Image-led cards already carry their own depth; skip live blur there. */
.gallery-item,
.social-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.game-card {
  overflow: hidden;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.045) 22%, transparent 46%),
    radial-gradient(120% 70% at 18% -16%, rgba(255, 255, 255, 0.18), transparent 54%);
  opacity: 0.62;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}
.game-card:hover::before { opacity: 0.92; }
.game-card__media { z-index: 0; }
.game-card__badges { z-index: 2; }
.game-card__body { position: relative; z-index: 3; }
.game-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 52%, var(--glass-line-strong));
  box-shadow:
    var(--glass-inset),
    0 34px 70px -34px color-mix(in srgb, var(--accent, var(--green)) 66%, transparent),
    0 24px 50px -40px rgba(0, 0, 0, 0.9);
}

.project-card { overflow: hidden; }
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 38%);
  opacity: 0.55;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}
.project-card:hover::before { opacity: 0.85; }
.project-media { z-index: 0; }
.project-kind { z-index: 2; }
.project-body { position: relative; z-index: 2; }
.project-card:hover {
  box-shadow:
    var(--glass-inset),
    0 30px 58px -34px color-mix(in srgb, var(--accent, var(--green)) 62%, transparent),
    0 24px 44px -38px rgba(0, 0, 0, 0.9);
}

.gallery-item {
  background: rgba(12, 12, 26, 0.5);
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), transparent 32%);
  opacity: 0.55;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}
.gallery-item:hover::before { opacity: 0.9; }
.gallery-item img { position: relative; z-index: 0; }
.gallery-overlay { z-index: 2; }
.gallery-zoom { z-index: 3; }
.gallery-item:hover {
  border-color: rgba(159, 232, 112, 0.5);
  box-shadow:
    var(--glass-inset),
    0 34px 62px -38px rgba(159, 232, 112, 0.62),
    0 24px 44px -38px rgba(0, 0, 0, 0.9);
}

.featured-card {
  border-color: var(--glass-line-strong);
  border-top-color: rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(100% 90% at 100% 0%, color-mix(in srgb, var(--accent, var(--green)) 16%, transparent), transparent 58%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03) 36%, rgba(10, 10, 24, 0.52) 76%),
    var(--glass);
  box-shadow: var(--glass-inset), 0 45px 90px -48px rgba(0, 0, 0, 0.95);
}
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.16), transparent 34%);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.featured-media { z-index: 0; }
.featured-body { z-index: 2; }
.featured-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 55%, var(--glass-line-strong));
  box-shadow:
    var(--glass-inset),
    0 46px 96px -44px color-mix(in srgb, var(--accent, var(--green)) 62%, transparent),
    0 45px 90px -60px rgba(0, 0, 0, 0.95);
}

.social-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 46%),
    rgba(14, 14, 30, 0.46);
}
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%);
  opacity: 0.65;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}
.social-card:hover::before { opacity: 0.95; }
.social-card > * { position: relative; z-index: 1; }
.social-card:hover {
  border-color: rgba(159, 232, 112, 0.48);
  background:
    linear-gradient(145deg, rgba(159, 232, 112, 0.13), rgba(255, 255, 255, 0.025) 48%),
    rgba(14, 14, 30, 0.52);
  box-shadow: var(--glass-inset), 0 20px 38px -30px rgba(159, 232, 112, 0.55);
}

/* Glass controls */
.filterbar {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.014) 46%),
    rgba(13, 13, 29, 0.48);
  box-shadow: var(--glass-inset), 0 22px 46px -38px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.chip {
  border-color: var(--glass-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.chip:hover {
  border-color: var(--glass-line-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
}
.chip.is-active {
  background:
    radial-gradient(140% 100% at 24% -10%, rgba(255, 255, 255, 0.65), transparent 48%),
    linear-gradient(180deg, #c3f99d 0%, var(--green) 52%, #82cf58 100%);
  border-color: rgba(214, 255, 188, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -5px 10px rgba(7, 45, 5, 0.16),
    0 8px 18px -10px rgba(159, 232, 112, 0.75);
}
.sort-control select {
  background-color: rgba(255, 255, 255, 0.035);
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.tag-list li,
.platform-pill,
.award-pill,
.kind-pill,
.kicker span {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tag-list li {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--glass-line);
}
.platform-pill { background: rgba(8, 8, 18, 0.55); }
.award-pill {
  background: linear-gradient(160deg, rgba(255, 234, 100, 0.2), rgba(255, 234, 100, 0.06));
  border-color: rgba(255, 234, 100, 0.4);
}
.kind-pill {
  background: linear-gradient(160deg, rgba(156, 152, 207, 0.22), rgba(156, 152, 207, 0.06));
}

/* Frosted panels */
.about-social,
.menu-toggle,
.footer-btn,
.dialog-close,
.lightbox-arrow,
.gallery-zoom {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015));
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.about-social:hover {
  color: #061006;
  background: linear-gradient(180deg, #c3f99d, var(--green) 55%, #82cf58);
  border-color: rgba(214, 255, 188, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 26px -14px rgba(159, 232, 112, 0.8);
}
.hero-chip {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border-color: var(--glass-line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 34px -22px rgba(0, 0, 0, 0.95);
}

/* Gel navigation pills */
.desktop-nav a { isolation: isolate; }
.desktop-nav a::before {
  content: "";
  position: absolute;
  inset: -6px -9px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px -18px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), border-color 0.25s ease;
}
.desktop-nav a:hover::before,
.desktop-nav a.is-active::before {
  opacity: 1;
  transform: none;
  border-color: var(--glass-line);
}
.desktop-nav a::after { display: none; }

.mobile-nav a {
  padding: 16px 12px;
  margin-inline: -12px;
  border-radius: 14px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s ease,
    background-color 0.25s ease, box-shadow 0.25s ease;
}
.mobile-nav a:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
body.menu-open .mobile-nav a:nth-child(6) { transition-delay: 0.29s; }

/* Frosted interactive surfaces */
.big-mail {
  padding: 24px 26px;
  border: 1px solid var(--glass-line);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(159, 232, 112, 0.12), transparent 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 48%),
    var(--glass);
  box-shadow: var(--glass-inset), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.3s ease, box-shadow 0.35s var(--ease), background-color 0.3s ease;
}
.big-mail:hover {
  border-color: rgba(159, 232, 112, 0.48);
  box-shadow: var(--glass-inset), 0 26px 52px -34px rgba(159, 232, 112, 0.6);
}

.dialog-nav-btn {
  padding: 8px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.dialog-nav-btn:hover:not(:disabled) {
  color: var(--green);
  border-color: rgba(159, 232, 112, 0.42);
  background: linear-gradient(145deg, rgba(159, 232, 112, 0.14), rgba(255, 255, 255, 0.03));
}

.lightbox-close {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015));
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.look-switch {
  border-color: var(--glass-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.look-option[aria-pressed="true"] {
  background:
    radial-gradient(140% 100% at 24% -10%, rgba(255, 255, 255, 0.6), transparent 48%),
    linear-gradient(180deg, #c3f99d 0%, var(--green) 52%, #82cf58 100%);
  color: #061006;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 8px rgba(7, 45, 5, 0.15);
}

/* Gel bubbles around the planet */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16) 14%, transparent 36%),
    radial-gradient(circle at 58% 70%, rgba(159, 232, 112, 0.54), rgba(159, 232, 112, 0.1) 48%, transparent 72%);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.22),
    inset -12px -16px 30px rgba(0, 0, 0, 0.26),
    0 24px 50px -22px rgba(0, 0, 0, 0.6);
  opacity: 0.82;
}
.hero-visual::before {
  width: clamp(58px, 8vw, 104px);
  height: clamp(58px, 8vw, 104px);
  top: 5%;
  left: 2%;
  animation: gelFloat 11s ease-in-out infinite;
}
.hero-visual::after {
  width: clamp(34px, 4.5vw, 58px);
  height: clamp(34px, 4.5vw, 58px);
  right: 4%;
  bottom: 8%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.16) 14%, transparent 36%),
    radial-gradient(circle at 58% 70%, rgba(255, 215, 239, 0.6), rgba(255, 215, 239, 0.1) 48%, transparent 72%);
  animation: gelFloat 13s ease-in-out infinite reverse;
}
.planet-stage { z-index: 1; }
.planet-wrap::after {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.06) 18%, transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Frosted contact + footer + ticker */
.contact .container {
  border-color: var(--glass-line-strong);
  border-top-color: rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(124, 107, 255, 0.28), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(159, 232, 112, 0.14), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 38%, rgba(10, 10, 24, 0.55));
  box-shadow: var(--glass-inset), 0 50px 100px -60px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}
.contact .container::before { z-index: 0; }
.contact .container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 34%),
    radial-gradient(80% 55% at 50% -12%, rgba(255, 255, 255, 0.10), transparent 66%);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.contact .container > * { position: relative; z-index: 1; }

.ticker {
  background: rgba(10, 10, 24, 0.46);
  border-block-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.ticker-alt {
  background:
    radial-gradient(120% 100% at 20% -20%, rgba(255, 255, 255, 0.55), transparent 48%),
    linear-gradient(180deg, #c7fb9f 0%, var(--green) 55%, #82cf58 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -10px 20px rgba(7, 45, 5, 0.13),
    0 22px 44px -26px rgba(159, 232, 112, 0.7);
}

.site-footer {
  border-top-color: var(--glass-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(8, 8, 18, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

/* Frosted dialog, lightbox chrome and toast */
.game-dialog {
  border-color: var(--glass-line-strong);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 40%),
    rgba(12, 12, 28, 0.82);
  box-shadow:
    var(--glass-inset),
    0 60px 130px -42px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}
.lightbox-top {
  background: rgba(8, 8, 18, 0.62);
  border-bottom-color: var(--glass-line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.toast {
  background: rgba(12, 12, 28, 0.78);
  border-color: rgba(159, 232, 112, 0.5);
  box-shadow: var(--glass-inset), 0 24px 54px -22px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

@keyframes gelFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -14px, 0) scale(1.04); }
}

/* Without backdrop-filter, keep the glass colour but lose the blur. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled,
  .game-card,
  .project-card,
  .social-card,
  .featured-card,
  .gallery-item,
  .filterbar,
  .contact .container,
  .ticker,
  .site-footer,
  .game-dialog,
  .lightbox-top,
  .toast {
    background-color: rgba(15, 15, 31, 0.94);
  }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-visual { min-height: 360px; }
  .chip-a, .chip-c { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-itch span:last-child { display: none; }
  .nav-itch { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-itch .socicon { font-size: 17px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding-top: 128px;
    text-align: left;
  }
  .hero-visual {
    width: 100%;
    min-height: 0;
    margin-top: 18px;
    justify-items: center;
  }
  .planet-stage { width: min(78vw, 420px); }
  .chip-b { display: block; bottom: 8%; left: 0; }
  .scroll-cue { display: none; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 420px; }
  .featured-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .featured-media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .featured-media::after { background: linear-gradient(0deg, rgba(13, 13, 26, 0.75), transparent 60%); }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container, .hero-inner, .nav-shell { width: calc(100% - 32px); }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { columns: 1; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .social-grid { grid-template-columns: minmax(0, 1fr); }
  .contact .container { padding: 30px 22px; border-radius: 24px; }
  .big-mail { padding-top: 20px; }
  .big-mail-arrow { margin-left: 0; }
  .game-dialog[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .game-dialog { max-height: 92svh; }
  .dialog-media { min-height: 220px; aspect-ratio: 16 / 10; }
  .dialog-body { padding: 24px 22px 26px; }
  .lightbox-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 12px 16px 16px; position: relative; }
  .lightbox-figure { gap: 10px; }
  .lightbox-image-wrap { width: 100%; min-height: 30dvh; }
  .lightbox-caption { max-height: 38dvh; overflow-y: auto; padding-bottom: 4px; }
  .lightbox-arrow { width: 42px; height: 42px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
  .lightbox-arrow.prev { left: 12px; }
  .lightbox-arrow.next { right: 12px; }
  .lightbox-zoom-hint { display: none; }
  .ticker-alt { transform: rotate(-1.8deg) scale(1.04); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 26px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: clamp(2.7rem, 15vw, 4rem); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stat dd { font-size: 0.56rem; letter-spacing: 0.08em; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .chip-b { display: none; }
  .filterbar { align-items: flex-start; }
  .lightbox-top { padding: 12px 14px; gap: 10px; }
  .lightbox-tools { gap: 8px; }
  .lightbox-zoom-value { min-width: 36px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; width: 100%; scrollbar-width: none; -ms-overflow-style: none; }
  .chips::-webkit-scrollbar { display: none; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; }
  .tag-list-lg li { font-size: 0.6rem; }
  .about-media { max-width: 100%; }
  .floating-tag { display: none; }
  .footer-note { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   17. Reduced motion / touch
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .lightbox-zoom-hint { display: none; }
  .gallery-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(to top, rgba(5, 5, 12, 0.9), rgba(5, 5, 12, 0.2) 55%, transparent 80%);
  }
  .gallery-zoom { display: none; }
  .game-card:hover { --ty: 0px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-title .line > span { transform: none; }
  .eyebrow, .hero-lede, .hero-actions, .hero-stats { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .starfield { display: none; }
  .planet-wrap, .orbit, .orbit-satellite, .spark, .hero-chip { animation: none !important; }
  .hero-visual::before, .hero-visual::after { animation: none !important; }
}

/* Glass on small screens: keep the depth, skip the expensive live blur. */
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .game-card,
  .project-card,
  .social-card,
  .featured-card,
  .gallery-item,
  .filterbar,
  .contact .container,
  .ticker,
  .site-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .filterbar { padding: 10px; border-radius: 16px; }
  .hero-visual::after { display: none; }
  .hero-visual::before {
    width: 52px;
    height: 52px;
    top: 1%;
    left: 0;
    opacity: 0.58;
  }
  .planet-wrap::after { opacity: 0.45; }
  .game-card::before,
  .project-card::before,
  .gallery-item::before,
  .social-card::before { opacity: 0.42; }
}

/* --------------------------------------------------------------------------
   18. Consent banner / storage settings
   -------------------------------------------------------------------------- */
body.consent-open { overflow: hidden; }

/* Keep the footer controls reachable while the notice is on screen. */
body.consent-banner-open { padding-bottom: 190px; }

.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 450;
  width: min(100% - 32px, 920px);
  transform: translateX(-50%);
  pointer-events: none;
}
.consent[hidden] { display: none; }

.consent-card {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid var(--glass-line-strong);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 38%, rgba(10, 10, 24, 0.62)),
    var(--glass-strong);
  box-shadow:
    var(--glass-inset),
    0 30px 70px -30px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  animation: consentIn 0.45s var(--ease);
}

.consent-kicker {
  grid-column: 1;
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 4px;
}

.consent-title {
  grid-column: 1;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  padding-right: 26px;
}

.consent-text {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 2px 0 0;
  max-width: 66ch;
}
.consent-text strong { color: var(--text); }
.consent-text code,
.consent-row code {
  font-family: var(--pixel);
  font-size: 0.86em;
  color: var(--green);
  background: rgba(159, 232, 112, 0.08);
  border: 1px solid rgba(159, 232, 112, 0.18);
  border-radius: 4px;
  padding: 1px 4px;
}

.consent-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.consent-actions .btn { white-space: nowrap; }

.consent-link {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.consent-link:hover { color: var(--green); }

.consent-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.consent-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-line);
}

.consent-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: 88vh;
  max-height: 88svh;
  padding: 0;
  border: 1px solid var(--glass-line-strong);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 38%, rgba(10, 10, 24, 0.78)),
    var(--glass-strong);
  color: var(--text);
  box-shadow:
    var(--glass-inset),
    0 60px 130px -40px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  overflow-y: auto;
}
.consent-dialog::backdrop {
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.consent-dialog[open] { animation: dialogIn 0.38s var(--ease); }

.consent-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 4vw, 34px);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.consent-row strong { color: var(--text); font-size: 0.92rem; }
.consent-row p { margin: 3px 0 0; font-size: 0.78rem; line-height: 1.5; }
.consent-row--toggle { cursor: pointer; }
.consent-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--green);
  cursor: pointer;
}

.consent-badge {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid rgba(159, 232, 112, 0.3);
  border-radius: 999px;
  background: rgba(159, 232, 112, 0.09);
  color: var(--green);
  font-family: var(--pixel);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.consent-form .consent-actions {
  grid-column: auto;
  grid-row: auto;
  justify-content: flex-start;
  margin-top: 6px;
}

.consent-settings-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.consent-settings-link:hover { color: var(--green); text-decoration-color: var(--green); }

@keyframes consentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  body.consent-banner-open { padding-bottom: 280px; }
  .consent { bottom: 10px; width: calc(100% - 20px); }
  .consent-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 16px 14px;
    border-radius: 18px;
  }
  .consent-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 10px;
  }
  .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
  .consent-dialog { width: calc(100% - 20px); max-height: 90svh; }
  .consent-form { padding: 22px 18px; }
}

@media (prefers-reduced-transparency: reduce) {
  .consent-card,
  .consent-dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #10101f;
  }
}

@media print {
  .consent,
  .consent-dialog { display: none !important; }
}

/* Respect an explicit wish for less transparency where supported. */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .game-card,
  .project-card,
  .social-card,
  .featured-card,
  .gallery-item,
  .filterbar,
  .contact .container,
  .ticker,
  .site-footer,
  .game-dialog,
  .lightbox-top,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #10101f;
  }
}

/* --------------------------------------------------------------------------
   19. Look switch (Glass / Flat)
   -------------------------------------------------------------------------- */
.look-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.look-option {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.look-option:hover { color: var(--text); }
.look-option[aria-pressed="true"] {
  background: var(--green);
  color: #061006;
  font-weight: 600;
}

/* Gel chrome over dark overlays (lightbox, dialogs) */
.lightbox-close,
.lightbox-arrow {
  background:
    radial-gradient(130% 100% at 30% -8%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 48%),
    linear-gradient(180deg, rgba(159, 232, 112, 0.16), rgba(159, 232, 112, 0.04)),
    rgba(18, 18, 38, 0.82);
  border-color: rgba(159, 232, 112, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -6px 12px rgba(0, 0, 0, 0.22),
    0 18px 36px -22px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.lightbox-close:hover,
.lightbox-arrow:hover:not(:disabled) {
  color: #061006;
  border-color: rgba(214, 255, 188, 0.8);
  background:
    radial-gradient(130% 100% at 30% -8%, rgba(255, 255, 255, 0.72), transparent 52%),
    linear-gradient(180deg, #c3f99d 0%, var(--green) 55%, #82cf58 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -6px 12px rgba(7, 45, 5, 0.18),
    0 18px 38px -16px rgba(159, 232, 112, 0.65);
}

/* --------------------------------------------------------------------------
   Candy-gel buttons, black rim, wet highlight, saturated gel body
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-outline,
.btn-ghost,
.chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-style: solid;
  border-width: 2px;
}
.look-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Bright green candy */
.btn-primary {
  color: #042504;
  border-color: rgba(2, 26, 2, 0.92);
  background:
    linear-gradient(180deg, #dcffab 0%, #a6f866 16%, #67ec2c 40%, #2fc70d 53%, #49dc1b 72%, #1c9008 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.95),
    inset 0 -12px 18px rgba(0, 60, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 14px 28px -12px rgba(94, 240, 50, 0.55),
    0 6px 12px -5px rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary::before,
.chip.is-active::before,
.look-option[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 2px;
  height: 48%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(58% 120% at 16% 0%, rgba(255, 255, 255, 0.98), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}
.btn-primary:hover {
  color: #032003;
  background:
    linear-gradient(180deg, #e6ffc2 0%, #b6ff7c 16%, #74f43a 40%, #38d512 53%, #55e827 72%, #21990a 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 1),
    inset 0 -12px 18px rgba(0, 60, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 18px 34px -12px rgba(110, 255, 60, 0.65),
    0 8px 16px -6px rgba(0, 0, 0, 0.8);
}

/* Dark licorice glass for secondary buttons */
.btn-outline,
.btn-ghost {
  color: #f2fff0;
  border-color: rgba(0, 0, 0, 0.92);
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(180, 255, 150, 0.35), transparent 56%),
    linear-gradient(180deg, #5c6675 0%, #3a414e 42%, #1a1d26 53%, #262b36 74%, #10131a 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.68),
    inset 0 -10px 16px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px -14px rgba(0, 0, 0, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-outline::before,
.btn-ghost::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 3px;
  height: 42%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.16) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.btn-outline:hover,
.btn-ghost:hover {
  color: #042504;
  border-color: rgba(2, 26, 2, 0.92);
  background:
    linear-gradient(180deg, #d3ff9c 0%, #98f256 16%, #5de525 40%, #28bb08 53%, #3fd315 72%, #177f05 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.95),
    inset 0 -11px 17px rgba(0, 60, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 16px 30px -12px rgba(94, 240, 50, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Chips: dark glass pills, active one turns to green candy */
.chip {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.9);
  background:
    linear-gradient(180deg, #49525f 0%, #2a2f3a 44%, #14171e 55%, #232833 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -7px 10px rgba(0, 0, 0, 0.55),
    0 6px 14px -10px rgba(0, 0, 0, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}
.chip::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 2px;
  height: 47%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(60% 120% at 18% 0%, rgba(255, 255, 255, 0.55), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06) 72%, transparent);
  pointer-events: none;
}
.chip:hover {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.9);
  background:
    linear-gradient(180deg, #525c6d 0%, #333947 44%, #1c2029 55%, #2a303c 100%);
}
.chip.is-active {
  color: #042504;
  border-color: rgba(2, 26, 2, 0.92);
  background:
    linear-gradient(180deg, #d9ffa4 0%, #a2f760 16%, #63e82a 40%, #2ec40d 53%, #46d918 72%, #1a8c07 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.92),
    inset 0 -8px 12px rgba(0, 60, 0, 0.4),
    0 8px 16px -10px rgba(94, 240, 50, 0.7);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Look switch keeps its glass frame; the active pill gets the candy finish */
.look-option[aria-pressed="true"] {
  color: #042504;
  border: 1px solid rgba(2, 26, 2, 0.9);
  background:
    linear-gradient(180deg, #d9ffa4 0%, #a2f760 18%, #5fe228 45%, #2cbe0b 58%, #43d416 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -6px 10px rgba(0, 60, 0, 0.35),
    0 6px 12px -8px rgba(94, 240, 50, 0.6);
}

/* Per-item accent candy: each card and its dialog buttons use the item colour */
.game-card__open i,
.featured-cta span,
.scene-link,
.project-foot .project-arrow {
  --candy: var(--accent, var(--green));
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(2, 26, 2, 0.9);
  color: var(--accent-ink, #06120a);
  font-style: normal;
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--candy) 32%, #ffffff) 0%,
      color-mix(in srgb, var(--candy) 64%, #ffffff) 16%,
      var(--candy) 42%,
      color-mix(in srgb, var(--candy) 82%, #000000) 54%,
      color-mix(in srgb, var(--candy) 92%, #000000) 74%,
      color-mix(in srgb, var(--candy) 72%, #000000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -6px 10px rgba(0, 0, 0, 0.3),
    0 8px 18px -10px color-mix(in srgb, var(--candy) 70%, transparent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.3s var(--ease), background-color 0.25s ease, border-color 0.25s ease;
}
.game-card__open i::before,
.featured-cta span::before,
.scene-link::before,
.project-foot .project-arrow::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 2px;
  height: 44%;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.52) 60%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}
.featured-cta span { width: 32px; height: 32px; font-size: 1rem; }
.scene-link { width: 34px; height: 34px; font-size: 1.02rem; }

/* The game dialog switches its candy to the open game's accent */
.game-dialog .btn-primary,
.game-dialog .btn-outline {
  --candy: var(--accent, var(--green));
  border-width: 2px;
}
.game-dialog .btn-primary {
  color: var(--accent-ink, #06120a);
  border-color: rgba(2, 26, 2, 0.92);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--candy) 36%, #ffffff) 0%,
      color-mix(in srgb, var(--candy) 68%, #ffffff) 16%,
      var(--candy) 42%,
      color-mix(in srgb, var(--candy) 82%, #000000) 54%,
      color-mix(in srgb, var(--candy) 92%, #000000) 74%,
      color-mix(in srgb, var(--candy) 72%, #000000) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.95),
    inset 0 -12px 18px rgba(0, 0, 0, 0.32),
    0 14px 28px -12px color-mix(in srgb, var(--candy) 60%, transparent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.game-dialog .btn-outline {
  color: #f4fff0;
  border-color: color-mix(in srgb, var(--candy) 68%, #000000);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 -10px 16px rgba(0, 0, 0, 0.6),
    0 12px 24px -14px color-mix(in srgb, var(--candy) 55%, transparent);
}
.game-dialog .btn-primary:hover {
  color: var(--accent-ink, #06120a);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--candy) 46%, #ffffff) 0%,
      color-mix(in srgb, var(--candy) 80%, #ffffff) 16%,
      color-mix(in srgb, var(--candy) 94%, #ffffff) 42%,
      color-mix(in srgb, var(--candy) 90%, #000000) 54%,
      color-mix(in srgb, var(--candy) 98%, #000000) 74%,
      color-mix(in srgb, var(--candy) 78%, #000000) 100%);
}
.game-dialog .btn-outline:hover {
  color: var(--accent-ink, #06120a);
  border-color: rgba(2, 26, 2, 0.92);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--candy) 36%, #ffffff) 0%,
      color-mix(in srgb, var(--candy) 68%, #ffffff) 16%,
      var(--candy) 42%,
      color-mix(in srgb, var(--candy) 82%, #000000) 54%,
      color-mix(in srgb, var(--candy) 92%, #000000) 74%,
      color-mix(in srgb, var(--candy) 72%, #000000) 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.game-card:hover .game-card__open i { color: var(--accent-ink, #06120a); }

/* Soft gel press feedback for clickable surfaces */
.btn-primary:active,
.btn-outline:active,
.btn-ghost:active,
.chip:active,
.look-option:active,
.menu-toggle:active,
.gallery-zoom:active,
.lightbox-arrow:active:not(:disabled) {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

/* --------------------------------------------------------------------------
   20. Flat look, html[data-look="flat"]
   Solid panels, real hairlines, no blur, no gel highlights.
   -------------------------------------------------------------------------- */
html[data-look="flat"] {
  --glass: var(--panel);
  --glass-strong: var(--panel-2);
  --glass-line: var(--line);
  --glass-line-strong: var(--line-strong);
  --glass-highlight: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 20px 46px -38px rgba(0, 0, 0, 0.9);
  --glass-inset: 0 0 0 0 transparent;
  --glass-blur: none;
}

html[data-look="flat"] body {
  background:
    radial-gradient(900px 620px at 74% -12%, rgba(124, 107, 255, 0.10), transparent 64%),
    var(--bg);
  background-attachment: scroll;
}

/* Chrome */
html[data-look="flat"] .site-header.is-scrolled {
  background: rgba(7, 7, 15, 0.96);
  border-bottom-color: var(--line-strong);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .desktop-nav {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .mobile-menu {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Buttons */
html[data-look="flat"] .btn-primary {
  background: var(--green);
  color: #061006;
  text-shadow: none;
  box-shadow: none;
}
html[data-look="flat"] .btn-primary:hover {
  background: #b7f68d;
  box-shadow: none;
}
html[data-look="flat"] .btn-outline,
html[data-look="flat"] .btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .btn-outline:hover,
html[data-look="flat"] .btn-ghost:hover {
  background: rgba(159, 232, 112, 0.12);
  border-color: rgba(159, 232, 112, 0.5);
}

/* Cards */
html[data-look="flat"] .game-card,
html[data-look="flat"] .project-card,
html[data-look="flat"] .social-card,
html[data-look="flat"] .featured-card,
html[data-look="flat"] .gallery-item {
  background: var(--panel);
  border-color: var(--line);
  border-top-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .featured-card,
html[data-look="flat"] .gallery-item { background: var(--panel-2); }
html[data-look="flat"] .social-card { background: var(--panel); }
html[data-look="flat"] .game-card::before,
html[data-look="flat"] .project-card::before,
html[data-look="flat"] .social-card::before,
html[data-look="flat"] .gallery-item::before,
html[data-look="flat"] .featured-card::after { display: none; }
html[data-look="flat"] .game-card:hover,
html[data-look="flat"] .project-card:hover,
html[data-look="flat"] .featured-card:hover,
html[data-look="flat"] .gallery-item:hover,
html[data-look="flat"] .social-card:hover {
  background: var(--panel);
  border-color: var(--line-strong);
  box-shadow: none;
}
html[data-look="flat"] .game-card:hover,
html[data-look="flat"] .project-card:hover,
html[data-look="flat"] .featured-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 55%, var(--line-strong));
}
html[data-look="flat"] .gallery-item:hover,
html[data-look="flat"] .social-card:hover { background: var(--panel-2); }

/* Filters and small controls */
html[data-look="flat"] .filterbar {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: none;
}
html[data-look="flat"] .chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}
html[data-look="flat"] .chip.is-active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: none;
}
html[data-look="flat"] .sort-control select {
  background-color: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
}
html[data-look="flat"] .tag-list li,
html[data-look="flat"] .platform-pill,
html[data-look="flat"] .award-pill,
html[data-look="flat"] .kind-pill,
html[data-look="flat"] .kicker span {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
html[data-look="flat"] .platform-pill { background: rgba(8, 8, 18, 0.78); }
html[data-look="flat"] .award-pill { background: rgba(255, 234, 100, 0.14); }
html[data-look="flat"] .kind-pill { background: rgba(156, 152, 207, 0.16); }

/* Frosted chrome becomes matte chrome */
html[data-look="flat"] .about-social,
html[data-look="flat"] .menu-toggle,
html[data-look="flat"] .footer-btn,
html[data-look="flat"] .dialog-close,
html[data-look="flat"] .lightbox-arrow,
html[data-look="flat"] .gallery-zoom {
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .about-social:hover {
  background: var(--green);
  border-color: var(--green);
  box-shadow: none;
}
html[data-look="flat"] .hero-chip {
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

/* Demoscene + interactive chrome */
html[data-look="flat"] .scene-card,
html[data-look="flat"] .scene-meta-item,
html[data-look="flat"] .big-mail {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .scene-card:hover,
html[data-look="flat"] .big-mail:hover { background: var(--panel-2); }
html[data-look="flat"] .scene-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 55%, var(--line-strong));
  box-shadow: none;
}
html[data-look="flat"] .scene-card::before { display: none; }
html[data-look="flat"] .desktop-nav a::before {
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
}
html[data-look="flat"] .mobile-nav a:hover { background: var(--panel); box-shadow: none; }
html[data-look="flat"] .dialog-nav-btn,
html[data-look="flat"] .lightbox-close,
html[data-look="flat"] .look-switch {
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .look-option[aria-pressed="true"] {
  background: var(--green);
  color: #061006;
  box-shadow: none;
}

/* Hero extras */
html[data-look="flat"] .hero-visual::before,
html[data-look="flat"] .hero-visual::after,
html[data-look="flat"] .planet-wrap::before,
html[data-look="flat"] .planet-wrap::after { display: none; }
html[data-look="flat"] .planet-stage:hover .planet {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
}

/* Ticker, contact, footer */
html[data-look="flat"] .ticker {
  background: var(--bg-soft);
  border-block-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .ticker-alt {
  background: var(--green);
  border-block-color: var(--green);
  box-shadow: none;
}
html[data-look="flat"] .contact .container {
  background: var(--panel);
  border-color: var(--line-strong);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .contact .container::after { display: none; }
html[data-look="flat"] .site-footer {
  background: var(--bg-soft);
  border-top-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Dialogs, lightbox, toast */
html[data-look="flat"] dialog::backdrop {
  background: rgba(3, 3, 8, 0.86);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .game-dialog {
  background: var(--panel-2);
  border-color: var(--line-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .lightbox {
  background: #05050b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .lightbox::backdrop { background: #05050b; }
html[data-look="flat"] .lightbox-top {
  background: var(--bg-soft);
  border-bottom-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-look="flat"] .lightbox-zoom-control { background: var(--panel-2); }
html[data-look="flat"] .toast {
  background: var(--panel-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Consent */
html[data-look="flat"] .consent-card,
html[data-look="flat"] .consent-dialog {
  background: var(--panel-2);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-look="flat"] .scroll-progress span { background: var(--green); }

/* Candy finish is a glass-mode effect only, flat stays matte. */
html[data-look="flat"] .btn-primary,
html[data-look="flat"] .btn-outline,
html[data-look="flat"] .btn-ghost,
html[data-look="flat"] .chip {
  border-width: 1px;
  text-shadow: none;
}
html[data-look="flat"] .btn-primary::before,
html[data-look="flat"] .btn-outline::before,
html[data-look="flat"] .btn-ghost::before,
html[data-look="flat"] .chip::before,
html[data-look="flat"] .look-option::before {
  display: none;
}
html[data-look="flat"] .chip {
  color: var(--muted);
  border-color: var(--line);
}
html[data-look="flat"] .chip:hover { color: var(--text); }
html[data-look="flat"] .chip.is-active { color: #07070f; border-color: var(--green); }
html[data-look="flat"] .btn-outline,
html[data-look="flat"] .btn-ghost { color: var(--text); border-color: var(--line-strong); }
html[data-look="flat"] .btn-outline:hover,
html[data-look="flat"] .btn-ghost:hover { color: var(--green); }
html[data-look="flat"] .look-option[aria-pressed="true"] { border: 1px solid transparent; }

/* Per-item accent candy in the flat look: solid, no gloss. */
html[data-look="flat"] .game-card__open i,
html[data-look="flat"] .featured-cta span,
html[data-look="flat"] .scene-link,
html[data-look="flat"] .project-foot .project-arrow {
  background: var(--accent, var(--green));
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--accent-ink, #06120a);
  text-shadow: none;
}
html[data-look="flat"] .game-card__open i::before,
html[data-look="flat"] .featured-cta span::before,
html[data-look="flat"] .scene-link::before,
html[data-look="flat"] .project-foot .project-arrow::before {
  display: none;
}
html[data-look="flat"] .game-dialog .btn-primary {
  background: var(--accent, var(--green));
  color: var(--accent-ink, #06120a);
  border-color: var(--accent, var(--green));
  box-shadow: none;
  text-shadow: none;
}
html[data-look="flat"] .game-dialog .btn-primary:hover {
  background: color-mix(in srgb, var(--accent, var(--green)) 82%, #ffffff);
}
html[data-look="flat"] .game-dialog .btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
  color: var(--text);
  text-shadow: none;
}
html[data-look="flat"] .game-dialog .btn-outline:hover {
  background: rgba(159, 232, 112, 0.12);
  color: var(--green);
  border-color: rgba(159, 232, 112, 0.5);
}
