/* ============================================================
   MoodMaker — night arcade design system
   ============================================================ */

:root {
  --night-0: #070a14;
  --night-1: #0b0e1a;
  --night-2: #111527;
  --ink: #eef1ff;
  --ink-soft: #a7aecb;
  --ink-faint: #6d7590;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  --mist: #6ee7ff;
  --mist-deep: #2f9db8;
  --ember: #ff8a5c;
  --ember-deep: #c46a4a;
  --arcade: #3ecf8e;
  --arcade-deep: #1f8f5f;
  --violet: #a78bfa;
  --crystal: #8fd8e8;

  --accent: var(--crystal);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --glow: 0 0 24px rgba(110, 231, 255, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* safety net only; decorative layers are contained by their own wrappers */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--night-1);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection { background: rgba(110, 231, 255, 0.28); color: #fff; }

/* ---------- backdrop: aurora night sky ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 45%, #131a33 78%, #1a1430 100%);
  overflow: hidden;
}

.sky-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 42% 26% at 72% 12%, rgba(110, 231, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 38% 24% at 18% 22%, rgba(167, 139, 250, 0.13), transparent 60%),
    radial-gradient(ellipse 30% 20% at 55% 34%, rgba(62, 207, 142, 0.08), transparent 65%),
    radial-gradient(ellipse 45% 30% at 85% 55%, rgba(255, 138, 92, 0.06), transparent 65%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-1deg) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) rotate(1.5deg) scale(1.06); }
}

.sky-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(1px 1px at 32% 8%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(1.5px 1.5px at 54% 22%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(1px 1px at 71% 10%, rgba(255, 255, 255, 0.6), transparent 55%),
    radial-gradient(2px 2px at 86% 26%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1px 1px at 24% 38%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(1.5px 1.5px at 44% 44%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(1px 1px at 64% 40%, rgba(255, 255, 255, 0.5), transparent 55%),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(255, 255, 255, 0.6), transparent 55%),
    radial-gradient(1px 1px at 92% 48%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(1px 1px at 38% 62%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(1.5px 1.5px at 78% 66%, rgba(255, 255, 255, 0.6), transparent 55%);
  animation: twinkle 7s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to   { opacity: 0.95; }
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 20, 0.55);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  transform: rotate(45deg);
  border-radius: 6px;
  background: linear-gradient(135deg, #d9f6ff 0%, var(--mist) 45%, var(--violet) 100%);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.6);
  animation: mark-pulse 5s ease-in-out infinite alternate;
}

@keyframes mark-pulse {
  from { box-shadow: 0 0 10px rgba(110, 231, 255, 0.4), inset 0 0 6px rgba(255, 255, 255, 0.6); }
  to   { box-shadow: 0 0 20px rgba(167, 139, 250, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.6); }
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--glass);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-nav a:hover { color: var(--ink); background: var(--glass-strong); }

.site-nav a.is-active {
  color: var(--night-1);
  background: linear-gradient(135deg, var(--mist), #b8f0ff);
  box-shadow: 0 0 16px rgba(110, 231, 255, 0.35);
}

main { padding-bottom: 4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--glass);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-primary {
  background: linear-gradient(135deg, var(--mist) 0%, #9db8ff 55%, var(--violet) 100%);
  border-color: transparent;
  color: #0a0d18;
  box-shadow: 0 8px 26px -10px rgba(110, 231, 255, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9df0ff 0%, #b4c6ff 55%, #c0aaff 100%);
  box-shadow: 0 12px 32px -10px rgba(157, 184, 255, 0.7);
  color: #0a0d18;
}

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 9vh, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 4.5rem);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 12%;
  right: 6%;
  width: min(46vw, 430px);
  height: min(46vw, 430px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, rgba(217, 246, 255, 0.9), rgba(110, 231, 255, 0.35) 38%, transparent 62%),
    radial-gradient(circle at 66% 64%, rgba(167, 139, 250, 0.35), transparent 58%);
  filter: blur(1px);
  opacity: 0.9;
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 14%;
  width: 90px;
  height: 90px;
  transform: rotate(45deg);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 246, 255, 0.85), rgba(110, 231, 255, 0.25) 55%, rgba(167, 139, 250, 0.4));
  box-shadow: 0 0 40px rgba(110, 231, 255, 0.45), inset 0 0 18px rgba(255, 255, 255, 0.5);
  animation: crystal-float 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 6%) scale(1.07); }
}

@keyframes crystal-float {
  from { transform: rotate(45deg) translate(0, 0); }
  to   { transform: rotate(52deg) translate(-10px, 14px); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 1rem;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 12ch;
  background: linear-gradient(120deg, #ffffff 20%, var(--mist) 55%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  max-width: 30ch;
  color: var(--ink);
  animation: rise 0.9s 0.12s ease-out both;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 2rem;
  animation: rise 0.9s 0.22s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.32s ease-out both;
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: clamp(1.25rem, 4vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  animation: rise 0.9s 0.5s ease-out both;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--ink-faint), transparent);
  animation: scroll-hint 2.2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%      { transform: scaleY(0.55); opacity: 1; }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.9rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section .sub {
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}

.section-link {
  color: var(--mist);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(110, 231, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.section-link:hover { color: #b8f0ff; border-color: #b8f0ff; }

/* ---------- game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: var(--glass);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
}

.game-card:hover::after { opacity: 1; }

/* card artwork — pure CSS scenes per palette */
.game-card-art {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.art-layer { position: absolute; inset: 0; display: block; }

/* mist: Skylight Basin — teal mountains + floating crystal */
.palette-mist .art-a { background: linear-gradient(180deg, #9fdcec 0%, #58a9c4 55%, #2c6d88 100%); }
.palette-mist .art-b {
  background: linear-gradient(180deg, #20485c, #173344);
  clip-path: polygon(0 100%, 0 62%, 14% 44%, 26% 60%, 40% 36%, 55% 58%, 66% 46%, 80% 62%, 92% 50%, 100% 60%, 100% 100%);
  opacity: 0.95;
}
.palette-mist .art-c { background: linear-gradient(180deg, #2c6d88, #15303f); clip-path: polygon(0 100%, 0 78%, 18% 66%, 34% 80%, 52% 62%, 70% 78%, 86% 68%, 100% 78%, 100% 100%); }
.palette-mist .game-card-art::after {
  content: "";
  position: absolute;
  top: 16%;
  right: 12%;
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(135deg, #eafcff, #6ee7ff 60%, #a78bfa);
  box-shadow: 0 0 24px rgba(110, 231, 255, 0.8);
}

/* ember: Dark Delivery — blood moon over spires */
.palette-ember .art-a { background: linear-gradient(180deg, #1c0f1e 0%, #4b1a30 55%, #8a3a34 100%); }
.palette-ember .art-b {
  background: radial-gradient(circle at 74% 26%, #ffd9a0 0 16%, rgba(255, 177, 120, 0.55) 17% 24%, transparent 25%);
}
.palette-ember .art-c {
  background: linear-gradient(180deg, #12060f, #12060f);
  clip-path: polygon(0 100%, 0 58%, 7% 58%, 7% 40%, 12% 40%, 12% 62%, 22% 62%, 22% 34%, 27% 30%, 32% 34%, 32% 58%, 45% 58%, 45% 44%, 52% 44%, 52% 64%, 63% 64%, 63% 38%, 68% 38%, 68% 56%, 79% 56%, 79% 46%, 86% 46%, 86% 62%, 100% 62%, 100% 100%);
}
.palette-ember .game-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 26%, rgba(255, 138, 92, 0.25), transparent 45%);
}

/* arcade: Snake Deluxe — neon grid + snake trail */
.palette-arcade .art-a { background: linear-gradient(180deg, #05130d 0%, #0c3524 60%, #1d6b47 100%); }
.palette-arcade .art-b {
  background:
    repeating-linear-gradient(90deg, rgba(62, 207, 142, 0.22) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(62, 207, 142, 0.22) 0 1px, transparent 1px 34px);
  transform: perspective(200px) rotateX(38deg) scale(1.6);
  transform-origin: 50% 100%;
}
.palette-arcade .art-c { background: none; }
.palette-arcade .game-card-art::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 16%;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #3ecf8e;
  box-shadow:
    0 0 12px rgba(62, 207, 142, 0.9),
    17px 0 0 #2fae74, 34px 0 0 #2fae74,
    34px -17px 0 #2fae74, 34px -34px 0 #2fae74,
    51px -34px 0 #2fae74, 68px -34px 0 #2fae74,
    68px -17px 0 #2fae74, 68px 0 0 #2fae74,
    85px 0 0 #2fae74;
}

/* neutral: crystal cavern */
.palette-neutral .art-a { background: linear-gradient(180deg, #141a2e 0%, #232c4d 55%, #37406b 100%); }
.palette-neutral .art-b {
  background: linear-gradient(180deg, #0d1122, #0d1122);
  clip-path: polygon(0 100%, 0 66%, 20% 52%, 42% 68%, 60% 48%, 82% 66%, 100% 54%, 100% 100%);
  opacity: 0.9;
}
.palette-neutral .art-c { background: linear-gradient(180deg, #232c4d, #12162b); clip-path: polygon(0 100%, 0 80%, 24% 70%, 46% 82%, 68% 70%, 88% 80%, 100% 74%, 100% 100%); }
.palette-neutral .game-card-art::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 16%;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  border-radius: 7px;
  background: linear-gradient(135deg, #eafcff, var(--crystal) 60%, var(--violet));
  box-shadow: 0 0 22px rgba(143, 216, 232, 0.75);
}

/* card body */
.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.3rem;
  position: relative;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

.game-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip.status { color: var(--ink); }

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.chip.status-in_development .dot { background: var(--mist); box-shadow: 0 0 8px var(--mist); animation: dot-pulse 2.4s ease-in-out infinite; }
.chip.status-coming_soon .dot { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.chip.status-play .dot { background: var(--arcade); box-shadow: 0 0 8px var(--arcade); animation: dot-pulse 1.6s ease-in-out infinite; }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.card-link {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-arrow { transition: transform 0.2s; }
.game-card:hover .card-arrow { transform: translateX(4px); }

/* palette accent glows on hover */
.palette-mist.game-card:hover { border-color: rgba(110, 231, 255, 0.4); box-shadow: var(--shadow-card), 0 0 32px -6px rgba(110, 231, 255, 0.25); }
.palette-ember.game-card:hover { border-color: rgba(255, 138, 92, 0.4); box-shadow: var(--shadow-card), 0 0 32px -6px rgba(255, 138, 92, 0.25); }
.palette-arcade.game-card:hover { border-color: rgba(62, 207, 142, 0.4); box-shadow: var(--shadow-card), 0 0 32px -6px rgba(62, 207, 142, 0.25); }
.palette-neutral.game-card:hover { border-color: rgba(143, 216, 232, 0.4); box-shadow: var(--shadow-card), 0 0 32px -6px rgba(143, 216, 232, 0.22); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- prose / about ---------- */

.prose {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose strong, .prose b { color: var(--ink); }
.prose a { color: var(--mist); }

.prose ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.6rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--mist), var(--violet));
  box-shadow: 0 0 8px rgba(110, 231, 255, 0.5);
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: var(--glass);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.devlog-list { display: grid; gap: 1.25rem; margin-top: 0.5rem; }

.devlog-post h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.devlog-meta {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- game detail ---------- */

.game-detail {
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3rem) 0;
  max-width: 860px;
  margin: 0 auto;
}

.game-hero-art {
  position: relative;
  aspect-ratio: 16 / 6.5;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  margin-bottom: 2rem;
}

.game-hero-art .art-layer { position: absolute; inset: 0; }

.game-detail.palette-mist { --accent: var(--mist); }
.game-detail.palette-ember { --accent: var(--ember); }
.game-detail.palette-arcade { --accent: var(--arcade); }
.game-detail.palette-neutral { --accent: var(--crystal); }

.game-detail .chips { margin-bottom: 1.1rem; }

.game-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.025em;
  background: linear-gradient(115deg, #fff 30%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.game-detail .logline {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 56ch;
}

.link-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--ink); }

/* ---------- contact ---------- */

.contact-block { display: grid; gap: 0.8rem; margin-top: 0.5rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--glass);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.contact-row:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, 0.2); background: var(--glass-strong); }

.contact-row .contact-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid var(--line);
  color: var(--mist);
  font-weight: 700;
}

.contact-row .contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; }
.contact-row .contact-value { color: var(--ink); font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.contact-row > span:last-child { min-width: 0; }

/* ---------- subscribe forms ---------- */

.subscribe-form {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.subscribe-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.subscribe-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

.subscribe-form input {
  width: 100%;
  min-width: 0;
  height: 2.85rem;
  padding: 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.subscribe-form input:-webkit-autofill,
.subscribe-form input:-webkit-autofill:hover,
.subscribe-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px rgba(18, 22, 40, 0.95) inset;
  transition: background-color 9999s ease-out 0s;
}

.subscribe-form input::placeholder {
  color: var(--ink-faint);
}

.subscribe-form input:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.55);
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.15);
}

.subscribe-btn {
  display: inline-flex;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  height: 2.85rem;
  min-height: 2.85rem;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
  align-self: stretch;
  box-sizing: border-box;
}

.subscribe-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.subscribe-status {
  min-height: 1.6rem;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--arcade);
}

.subscribe-status.is-error {
  color: var(--ember);
}

.game-subscribe {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  max-width: none;
}

.game-subscribe .subscribe-fields {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .subscribe-form { max-width: none; margin-top: 1.75rem; }
  .subscribe-fields {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .subscribe-form input,
  .subscribe-btn {
    height: 3rem;
    min-height: 3rem;
  }
  .subscribe-btn {
    width: 100%;
    display: flex;
    margin-top: 0.15rem;
    font-size: 1rem;
  }
  .subscribe-result { align-items: flex-start; min-height: 0; }
  .subscribe-result .subscribe-status { font-size: 0.88rem; line-height: 1.45; min-height: 0; }
  .signup-lantern { margin-top: 0.05rem; }
}

/* ---------- feedback panel ---------- */

.feedback-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(110, 231, 255, 0.35);
  border-radius: 999px;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 26px -10px rgba(110, 231, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 12px 32px -10px rgba(110, 231, 255, 0.7);
}

.feedback-fab span { color: var(--mist); font-size: 1rem; line-height: 1; }

.feedback-panel {
  position: fixed;
  right: 1.25rem;
  bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(360px, calc(100vw - 2.5rem));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgba(13, 17, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.25rem 1.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.feedback-panel.is-open { opacity: 1; transform: none; }

.feedback-panel.is-open ~ .feedback-fab { display: none; }

.feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.feedback-head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: -0.015em;
}

.feedback-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.feedback-close:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }

.feedback-sub { color: var(--ink-soft); font-size: 0.88rem; margin: 0.5rem 0 1rem; }
.feedback-sub a { color: var(--mist); overflow-wrap: break-word; }

.feedback-field { display: block; margin-bottom: 0.85rem; }

.feedback-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.feedback-field em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-field textarea { resize: vertical; min-height: 96px; }

.feedback-field input:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.15);
}

.feedback-status { min-height: 1.2em; margin: 0.25rem 0 0.6rem; font-size: 0.88rem; color: var(--arcade); }
.feedback-status.is-error { color: var(--ember); }

.feedback-send { width: 100%; border: none; cursor: pointer; }
.feedback-send:disabled { opacity: 0.6; cursor: wait; transform: none; }

@media (max-width: 720px) {
  .feedback-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 82vh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(24px);
  }
  .feedback-fab { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin-bottom: 2.25rem;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 30ch;
  margin: 0.9rem 0 0;
}

.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  width: fit-content;
}

.footer-col a:hover { color: var(--mist); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-base p { margin: 0; }
.footer-note { font-style: italic; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.9rem 1.1rem; }
  .site-header .brand { justify-content: center; }
  .site-nav { justify-content: center; }
  .hero { min-height: 88vh; }
  .hero::after { width: 56px; height: 56px; top: 14%; right: 10%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-brand { text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .game-hero-art { aspect-ratio: 16 / 9; }
}

@media (max-width: 460px) {
  .site-nav { gap: 0.15rem; width: 100%; justify-content: space-between; }
  .site-nav a { padding: 0.4rem 0.62rem; font-size: 0.8rem; }
}

/* ---------- hero lantern ---------- */

.hero.has-lantern::after { display: none; }

/* contain glow, embers, shimmer and motes inside the hero */
.hero { overflow: hidden; }
@supports (overflow: clip) { .hero { overflow: clip; } }
.hero-motes { contain: paint; }

.hero-lantern {
  position: absolute;
  top: 0;
  right: clamp(1.5rem, 11vw, 10rem);
  width: clamp(96px, 13vw, 150px);
  aspect-ratio: 120 / 220;
  transform-origin: 50% 0;
  animation: lantern-sway 6.5s ease-in-out infinite alternate;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero > *:not(.hero-lantern):not(.hero-scroll):not(.hero-motes) { position: relative; z-index: 1; }
.hero-scroll { z-index: 1; }

.lantern-svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 16px rgba(255, 170, 90, 0.55)); }
.lantern-svg .flame, .lantern-svg .lantern-aura, .lantern-svg .lantern-glass { transform-box: fill-box; }

.lantern-chain { transform-box: fill-box; transform-origin: 50% 0; animation: chain-swing 3.25s ease-in-out infinite alternate; }

.flame { transform-origin: 50% 100%; will-change: transform, opacity; }
.flame-outer { animation: flame-outer 1.7s ease-in-out infinite alternate, flame-flicker 2.3s steps(1, end) infinite; opacity: 0.9; }
.flame-mid   { animation: flame-mid 1.15s ease-in-out infinite alternate; }
.flame-core  { animation: flame-core 0.8s ease-in-out infinite alternate; }
.lantern-aura { transform-origin: 50% 70%; animation: aura-pulse 2.6s ease-in-out infinite; }
.lantern-glass { transform-origin: 50% 60%; animation: glass-flicker 3.1s steps(1, end) infinite; }

.lantern-halo {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 360%;
  aspect-ratio: 1;
  margin: -180% 0 0 -180%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 107, 0.42) 0%, rgba(255, 138, 92, 0.18) 30%, rgba(167, 139, 250, 0.07) 50%, transparent 68%);
  animation: halo-breathe 4.2s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
.lantern-halo-core {
  width: 150%;
  margin: -75% 0 0 -75%;
  background: radial-gradient(circle, rgba(255, 228, 160, 0.5), rgba(255, 170, 90, 0.16) 45%, transparent 70%);
  animation: halo-flicker 1.9s ease-in-out infinite alternate;
}

.lantern-shimmer {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 46%;
  height: 26%;
  margin-left: -23%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 220, 170, 0.22), transparent 70%);
  filter: blur(6px);
  opacity: 0;
  animation: heat-shimmer 3.4s ease-in infinite;
  pointer-events: none;
}
.lantern-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: heat-shimmer 3.4s ease-in 1.7s infinite;
}

.lantern-ember {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd38a;
  box-shadow: 0 0 8px 2px rgba(255, 170, 90, 0.75);
  opacity: 0;
  animation: ember-rise var(--t, 5s) cubic-bezier(.25, .6, .4, 1) var(--d, 0s) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
.lantern-ember.e1 { --dx: -26px; --h: -150px; --t: 5.2s; --d: 0s; }
.lantern-ember.e2 { --dx: 18px;  --h: -120px; --t: 3.9s; --d: 0.8s; width: 3px; height: 3px; }
.lantern-ember.e3 { --dx: -6px;  --h: -175px; --t: 6.4s; --d: 1.9s; }
.lantern-ember.e4 { --dx: 32px;  --h: -140px; --t: 4.6s; --d: 2.7s; width: 3px; height: 3px; }
.lantern-ember.e5 { --dx: -38px; --h: -110px; --t: 3.4s; --d: 3.6s; width: 2px; height: 2px; }
.lantern-ember.e6 { --dx: 10px;  --h: -190px; --t: 7.2s; --d: 4.3s; width: 2px; height: 2px; }
.lantern-ember.e7 { --dx: -16px; --h: -130px; --t: 4.1s; --d: 5.1s; width: 3px; height: 3px; }

/* tap / hover: flare up */
.lantern-svg, .lantern-halo, .lantern-halo-core { transition: filter 0.5s ease, opacity 0.5s ease, scale 0.5s ease; }
.hero-lantern:hover .lantern-svg { filter: drop-shadow(0 0 22px rgba(255, 170, 90, 0.75)); }
.hero-lantern.is-bright .lantern-svg { filter: drop-shadow(0 0 30px rgba(255, 190, 110, 0.95)) brightness(1.15); }
.hero-lantern.is-bright .lantern-halo { scale: 1.35; }
.hero-lantern.is-bright .lantern-halo-core { scale: 1.5; }
.hero-lantern.is-bright .flame-outer { animation-duration: 0.6s, 2.3s; }
.hero-lantern.is-bright .flame-mid { animation-duration: 0.45s; }
.hero-lantern.is-bright .lantern-ember { --t: 2.2s; }

/* ambient motes / fireflies */
.hero-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-motes span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe2a8;
  box-shadow: 0 0 10px 3px rgba(255, 200, 120, 0.45);
  opacity: 0;
  animation: mote-drift var(--t, 14s) ease-in-out var(--d, 0s) infinite;
  will-change: transform, opacity;
}
.hero-motes span:nth-child(1) { left: 62%; top: 30%; --t: 13s; --d: 0s;   --mx: 40px;  --my: -60px; }
.hero-motes span:nth-child(2) { left: 78%; top: 58%; --t: 17s; --d: 3s;   --mx: -50px; --my: -40px; }
.hero-motes span:nth-child(3) { left: 88%; top: 18%; --t: 11s; --d: 6s;   --mx: -30px; --my: 50px; }
.hero-motes span:nth-child(4) { left: 52%; top: 72%; --t: 19s; --d: 1.5s; --mx: 60px;  --my: -30px; width: 2px; height: 2px; }
.hero-motes span:nth-child(5) { left: 70%; top: 85%; --t: 15s; --d: 8s;   --mx: -40px; --my: -70px; width: 2px; height: 2px; }
.hero-motes span:nth-child(6) { left: 8%;  top: 22%; --t: 18s; --d: 4.5s; --mx: 50px;  --my: 30px; width: 2px; height: 2px; }
.hero-motes span:nth-child(7) { left: 94%; top: 44%; --t: 16s; --d: 10s;  --mx: -60px; --my: -20px; }

@keyframes lantern-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes chain-swing { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes flame-outer {
  0%   { transform: scale(1, 1) skewX(0deg); }
  25%  { transform: scale(0.92, 1.1) skewX(-5deg); }
  50%  { transform: scale(1.06, 0.94) skewX(3deg); }
  75%  { transform: scale(0.95, 1.08) skewX(-2deg); }
  100% { transform: scale(1.03, 0.97) skewX(4deg); }
}
@keyframes flame-mid {
  0%   { transform: scale(1, 1) skewX(2deg); }
  40%  { transform: scale(0.9, 1.12) skewX(-4deg); }
  100% { transform: scale(1.06, 0.92) skewX(3deg); }
}
@keyframes flame-core {
  0%   { transform: scale(1, 1); opacity: 1; }
  50%  { transform: scale(0.88, 1.12); opacity: 0.85; }
  100% { transform: scale(1.08, 0.92); opacity: 1; }
}
@keyframes flame-flicker { 0%, 100% { opacity: 0.9; } 18% { opacity: 0.7; } 22% { opacity: 0.95; } 61% { opacity: 0.78; } 66% { opacity: 0.92; } }
@keyframes aura-pulse { 0%, 100% { transform: scale(0.92); opacity: 0.65; } 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes glass-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.86; } 52% { opacity: 1; } 78% { opacity: 0.92; } }
@keyframes halo-breathe { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes halo-flicker { 0% { transform: scale(0.95); opacity: 0.75; } 40% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(0.98); opacity: 0.85; } }
@keyframes heat-shimmer {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.7, 0.8); }
  25%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(4px, -70px) scale(1.4, 1.8) skewX(8deg); }
}
@keyframes ember-rise {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(1); }
  12%  { opacity: 1; }
  60%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), var(--h, -150px)) scale(0.3); }
}
@keyframes mote-drift {
  0%   { opacity: 0; transform: translate(0, 0); }
  20%  { opacity: 0.9; }
  50%  { opacity: 0.35; transform: translate(calc(var(--mx) * 0.6), calc(var(--my) * 0.4)); }
  75%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--mx), var(--my)); }
}

@media (max-width: 720px) {
  .hero-lantern { right: 5%; width: 78px; top: -0.25rem; }
  .lantern-halo { width: 320%; margin: -160% 0 0 -160%; }
  .hero-motes span:nth-child(n+5) { display: none; }
  .hero-scroll { display: none; }
}

/* ---------- signup lantern ---------- */

.subscribe-result { display: flex; align-items: center; gap: 0.6rem; min-height: 2.3rem; margin-top: 0.7rem; }
.subscribe-result .subscribe-status { margin: 0; }

.signup-lantern {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 33px;
  display: none;
}
.signup-lantern svg { width: 100%; height: 100%; display: block; overflow: visible; }
.signup-lantern .sl-glass { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.18); stroke-width: 0.8; transition: fill 0.6s ease; }
.signup-lantern .sl-flame { fill: #ffe7a8; opacity: 0; transform-origin: 12px 21px; transform: scale(0.2); transition: opacity 0.4s ease 0.15s, transform 0.5s cubic-bezier(.3, 1.6, .5, 1) 0.15s; }
.subscribe-form.is-lit .signup-lantern { display: block; animation: rise 0.5s ease-out both; }
.subscribe-form.is-lit .sl-glass { fill: rgba(255, 190, 110, 0.55); }
.subscribe-form.is-lit .sl-flame { opacity: 1; transform: scale(1); animation: flame-dance 1.6s ease-in-out 0.7s infinite alternate; }
.subscribe-form.is-lit .signup-lantern svg { filter: drop-shadow(0 0 10px rgba(255, 170, 90, 0.75)); }
.subscribe-form.is-lit .subscribe-status { color: #ffd9a0; }

.sl-spark {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd38a;
  box-shadow: 0 0 6px 1px rgba(255, 170, 90, 0.8);
  opacity: 0;
}
.subscribe-form.is-lit .sl-spark { animation: ember-rise 1.4s ease-out 0.25s 2; }
.subscribe-form.is-lit .sl-spark { --h: -30px; }
.subscribe-form.is-lit .s1 { --dx: -14px; }
.subscribe-form.is-lit .s2 { --dx: 10px; animation-delay: 0.45s; }
.subscribe-form.is-lit .s3 { --dx: 2px; animation-delay: 0.7s; }

/* ---------- cover art on cards / game hero (only when art exists) ---------- */

.art-cover {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.02);
  transition: transform 0.9s cubic-bezier(.2, .7, .2, 1), filter 0.4s ease;
  will-change: transform;
}
.game-card:hover .art-cover { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); filter: saturate(1.1) brightness(1.05); }
.has-cover::after { z-index: 1; }
.game-card .has-cover::after { background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 20, 0.55)); }
.game-card:hover .chip.status-coming_soon .dot { animation: dot-flicker 1.2s steps(1, end) infinite; }
@keyframes dot-flicker { 0%, 100% { opacity: 1; } 30% { opacity: 0.35; } 38% { opacity: 1; } 64% { opacity: 0.6; } }

/* ---------- art gallery (only when media rows exist) ---------- */

.art-gallery { margin-top: 2.5rem; }
.art-gallery h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; grid-auto-flow: dense; }
.gallery-item { margin: 0; }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--glass);
  cursor: zoom-in;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.gallery-open img { display: block; width: 100%; height: auto; aspect-ratio: auto; transition: transform 0.6s ease; }
.gallery-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 196, 107, 0.32), rgba(255, 138, 92, 0.1) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-open:hover, .gallery-open:focus-visible { border-color: rgba(255, 196, 107, 0.45); box-shadow: 0 0 30px -8px rgba(255, 170, 90, 0.45); transform: translateY(-2px); outline: none; }
.gallery-open:hover .gallery-glow, .gallery-open:focus-visible .gallery-glow { opacity: 1; }
.gallery-open:hover img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: 0.45rem; font-size: 0.85rem; color: var(--ink-soft); }

.gallery-lightbox {
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgba(11, 14, 26, 0.96);
  color: var(--ink);
}
.gallery-lightbox::backdrop { background: rgba(4, 6, 12, 0.82); backdrop-filter: blur(4px); }
.gallery-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 5rem); margin: 0 auto; border-radius: var(--radius-m); }
.lightbox-caption { margin: 0.6rem 0 0; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }
.lightbox-caption:empty { display: none; }
.lightbox-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 1; }

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery-item.is-wide { grid-column: 1 / -1; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* lantern stays lit, just still */
  .hero-lantern, .lantern-chain, .flame, .lantern-aura, .lantern-glass, .lantern-halo, .sl-flame, .subscribe-form.is-lit .sl-flame { animation: none !important; }
  .hero-lantern, .lantern-chain, .flame { transform: none; }
  .lantern-halo { transform: none; opacity: 0.9; }
  .lantern-aura { opacity: 0.8; }
  .flame-outer { opacity: 0.9; }
  .lantern-ember, .lantern-shimmer, .hero-motes, .sl-spark { display: none; }
  .art-cover { transform: none !important; }
}
