:root {
  --red: #e11212;
  --red-dim: #6a0606;
  --bone: #d8d2c8;
  --ink: #050505;
  --beam-in: 140px;
  --beam-out: 360px;
  --x: 50vw;
  --y: 50vh;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #000;
  color: var(--bone);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: hidden;
  cursor: none;
  min-height: 100%;
  transition: background-color 0.6s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── LIGHTS ON ─────────────────────────────────────────────── */
body.lights-on {
  cursor: auto;
  background: #0c0c0e;
  color: #e8e3da;
}
body.lights-on .dark,
body.lights-on .beam-tint,
body.lights-on .grain,
body.lights-on .vignette,
body.lights-on .cursor,
body.lights-on .hud .battery,
body.lights-on .hud .row:not(.lights-row) {
  display: none !important;
}
body.lights-on .whisper { display: none; }
body.lights-on .hero .logo-lockup {
  animation: none;
  filter: drop-shadow(0 0 24px rgba(225, 18, 18, 0.25));
}
body.lights-on a,
body.lights-on { cursor: auto; }
body.lights-on nav,
body.lights-on .hud-left,
body.lights-on .hud { opacity: 0.95; }
body.lights-on main { background: #0c0c0e; }
body.lights-on .game { background: rgba(30, 5, 5, 0.55); }

/* ── DARKNESS OVERLAY ──────────────────────────────────────── */
.dark {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(
    circle var(--beam-out) at var(--x) var(--y),
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)    22%,
    rgba(0,0,0,0.6)  55%,
    rgba(0,0,0,0.95) 82%,
    rgba(0,0,0,1)    100%
  );
}

.beam-tint {
  position: fixed;
  inset: 0;
  z-index: 51;
  pointer-events: none;
  background: radial-gradient(
    circle var(--beam-in) at var(--x) var(--y),
    rgba(255, 230, 200, 0.10) 0%,
    rgba(255, 200, 170, 0.05) 50%,
    rgba(0,0,0,0)             80%
  );
  mix-blend-mode: screen;
}

/* ── VIGNETTE + GRAIN ──────────────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 52;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 53;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.4s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -3%); }
  50%  { transform: translate(2%, -1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── CURSOR ────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  z-index: 60;
  pointer-events: none;
  transform: translate3d(var(--x), var(--y), 0);
}
.cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 18, 18, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(225, 18, 18, 0.7), inset 0 0 6px rgba(225, 18, 18, 0.4);
}
.cursor::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}

/* ── HUD Z-INDEX ───────────────────────────────────────────── */
nav, .hud, .hud-left {
  z-index: 55;
}

/* ── TOP NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: none;
  color: var(--bone);
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav .brand .dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--red); }
}
nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  pointer-events: auto;
}
nav a {
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
nav a:hover {
  color: var(--red);
  opacity: 1;
}
nav .meta {
  font-size: 10px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* ── HUD LEFT ──────────────────────────────────────────────── */
.hud-left {
  position: fixed;
  bottom: 22px;
  left: 28px;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-left .red-text {
  color: var(--red);
  opacity: 0.95;
}
.lights-toggle {
  margin-top: 10px;
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(225, 18, 18, 0.55);
  color: var(--bone);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lights-toggle:hover {
  background: var(--red);
  color: #000;
  border-color: var(--red);
}
.lights-toggle:hover .led {
  background: #000;
  box-shadow: none;
}
.lights-toggle .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transition: background 0.2s, box-shadow 0.2s;
}
body.lights-on .lights-toggle {
  border-color: rgba(232, 227, 218, 0.4);
}
body.lights-on .lights-toggle .led {
  background: #f5e9a0;
  box-shadow: 0 0 12px #f5e9a0, 0 0 24px rgba(245, 233, 160, 0.4);
}
body.lights-on .lights-toggle:hover {
  background: #f5e9a0;
  color: #0c0c0e;
  border-color: #f5e9a0;
}

/* ── HUD RIGHT ─────────────────────────────────────────────── */
.hud {
  position: fixed;
  bottom: 22px;
  right: 28px;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hud .row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud .battery {
  width: 60px;
  height: 6px;
  border: 1px solid var(--red);
  position: relative;
}
.hud .battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 1px;
  width: 2px;
  height: 2px;
  background: var(--red);
}
.hud .battery .fill {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  background: var(--red);
  width: 86%;
  transition: width 0.4s linear;
}
.hud .blink {
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  50% { opacity: 0.3; }
}


/* ── LAYOUT ────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
}

section {
  min-height: 100vh;
  padding: 140px 8vw 120px;
  position: relative;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding-top: 100px;
}
.hero .logo-lockup {
  width: min(56vmin, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 50px rgba(225, 18, 18, 0.45));
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  50% { filter: drop-shadow(0 0 70px rgba(225, 18, 18, 0.65)); }
}
.hero .tagline {
  margin-top: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--bone);
  letter-spacing: 0.04em;
  max-width: 720px;
  text-wrap: balance;
  line-height: 1.4;
}
.hero .sub {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.85;
}

/* ── SCROLL HINT ───────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--bone);
}
.scroll-hint .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: drip 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ── SECTION LABELS ────────────────────────────────────────── */
.label {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

h2 {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  color: var(--red);
  line-height: 0.95;
  margin: 18px 0 32px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 30px rgba(225, 18, 18, 0.4);
}

.lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  max-width: 880px;
  color: var(--bone);
  text-wrap: pretty;
}
.lede em {
  color: var(--red);
  font-style: italic;
}

/* ── BODY GRID ─────────────────────────────────────────────── */
.body-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 32px;
}
.body-grid .col {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.88;
}
.body-grid .col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-12 { grid-column: 1 / -1; }

/* ── GAMES ─────────────────────────────────────────────────── */
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.game {
  border: 1px solid rgba(225, 18, 18, 0.35);
  background: rgba(20, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s, transform 0.3s;
}
.game:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.game .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(225, 18, 18, 0.08) 0 8px,
      rgba(0, 0, 0, 0) 8px 18px
    ),
    linear-gradient(180deg, #1a0303 0%, #0a0000 100%);
}
.game .placeholder::after {
  content: 'KEY ART // TBD';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  letter-spacing: 0.4em;
  opacity: 0.5;
  white-space: nowrap;
  color: var(--bone);
}
.game .meta {
  position: relative;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 70%, transparent);
}
.game .meta .num {
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--red);
  opacity: 0.85;
}
.game .meta h3 {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: 32px;
  color: var(--bone);
  margin: 6px 0 10px;
  letter-spacing: 0.02em;
}
.game .meta p {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.6;
}
.game .status {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(225, 18, 18, 0.6);
  background: rgba(0, 0, 0, 0.7);
  color: var(--red);
}

/* ── MANIFESTO ─────────────────────────────────────────────── */
.manifesto {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 1100px;
}
.manifesto .item {
  padding: 24px 0;
  border-top: 1px solid rgba(216, 210, 200, 0.14);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}
.manifesto .num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red);
  opacity: 0.85;
  padding-top: 4px;
}
.manifesto h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 10px;
  font-style: italic;
}
.manifesto p {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.78;
}

/* ── JOIN / BUTTONS ────────────────────────────────────────── */
.join {
  margin-top: 60px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid rgba(216, 210, 200, 0.25);
  color: rgba(216, 210, 200, 0.6);
  background: rgba(216, 210, 200, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #000;
}
.btn.ghost {
  background: rgba(216, 210, 200, 0.06);
  border-color: rgba(216, 210, 200, 0.25);
  color: rgba(216, 210, 200, 0.6);
}
.btn.ghost:hover {
  background: var(--red);
  border-color: var(--red);
  color: #000;
}
.btn .arrow {
  font-family: monospace;
  font-size: 14px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 60px 8vw 40px;
  border-top: 1px solid rgba(225, 18, 18, 0.2);
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--bone);
}
footer .copy {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 16px;
  opacity: 0.85;
  color: var(--red);
}

/* ── WHISPERS ──────────────────────────────────────────────── */
.whisper {
  position: absolute;
  font-family: 'Creepster', cursive;
  font-size: clamp(16px, 2.2vw, 32px);
  color: rgba(225, 18, 18, 0.55);
  pointer-events: none;
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(225, 18, 18, 0.3);
  user-select: none;
}
.whisper.tiny {
  font-size: clamp(14px, 1.4vw, 22px);
  color: rgba(216, 210, 200, 0.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* ── MINI ESCAPE ROOM ──────────────────────────────────────── */

/* Base game object — invisible, non-interactive by default */
.game-obj {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
}
/* Hide entirely when lights on */
body.lights-on .game-obj { display: none !important; }

/* Near: faintly visible, still not clickable */
.game-obj.near { opacity: 0.14; }

/* Hot: close enough to interact */
.game-obj.hot  { opacity: 0.60; pointer-events: auto; }

/* ── Door ── */
.game-door {
  width: 48px;
  height: 72px;
  border: 1px solid rgba(225, 18, 18, 0.55);
  border-radius: 2px 2px 0 0;
}
.game-door.hot {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(225, 18, 18, 0.28), inset 0 0 18px rgba(225, 18, 18, 0.06);
}
.game-door.door-opened {
  opacity: 1 !important;
  pointer-events: none;
  border-color: rgba(255, 220, 160, 0.5);
}

/* ── Keyhole ── */
.door-keyhole {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.door-keyhole::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(225, 18, 18, 0.6);
}
.door-keyhole::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid rgba(225, 18, 18, 0.45);
  margin-top: 1px;
}
.game-door.hot .door-keyhole::before {
  border-color: var(--red);
  box-shadow: 0 0 6px rgba(225, 18, 18, 0.7);
}
.game-door.hot .door-keyhole::after {
  border-top-color: var(--red);
}

/* ── "key" word in lede ── */
/* .active is a JS-only flag — no visual change, player must discover */
.game-word-key { }
body.lights-on .game-word-key,
body.lights-on .game-word-key.active {
  pointer-events: none !important;
}

/* ── Footer contact ── */
.footer-contact {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-contact:hover { opacity: 1; }
.footer-contact a { color: var(--bone); }
.footer-sep { opacity: 0.35; margin: 0 10px; }
body.lights-on .footer-contact a { color: #e8e3da; }

/* ── "DARK" word in footer ── */
/* No visual change — player must find it with the bulb */
.game-word-dark { }
body.lights-on .game-word-dark { pointer-events: none !important; }

/* ── Key cursor (rides the flashlight) ── */
.cursor-key {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 61;
  width: 28px;
  height: 28px;
  color: var(--red);
  pointer-events: none;
  display: none;
  transform: translate3d(calc(var(--x) - 14px), calc(var(--y) - 14px), 0);
  filter: drop-shadow(0 0 6px rgba(225, 18, 18, 0.95));
  will-change: transform;
}
.cursor-key svg { display: block; width: 100%; height: 100%; }
body.holding-key .cursor-key { display: block; }
body.holding-key .cursor      { display: none !important; }
body.lights-on   .cursor-key  { display: none !important; }

/* ── Bulb cursor (rides the flashlight) ── */
.cursor-bulb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 61;
  width: 26px;
  height: 32px;
  color: rgba(255, 248, 200, 0.96);
  pointer-events: none;
  display: none;
  transform: translate3d(calc(var(--x) - 13px), calc(var(--y) - 16px), 0);
  filter: drop-shadow(0 0 5px rgba(255, 235, 120, 0.9));
  will-change: transform;
}
.cursor-bulb svg { display: block; width: 100%; height: 100%; }
body.holding-bulb .cursor-bulb { display: block; }
body.holding-bulb .cursor      { display: none !important; }
body.lights-on    .cursor-bulb { display: none !important; }

/* ── Door light (warm fill inside the open door, clickable to take bulb) ── */
.door-light {
  position: fixed;
  z-index: 54;
  pointer-events: none;
  width: 44px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 1px 1px 0 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 252, 228, 0.98) 0%,
    rgba(255, 238, 175, 0.94) 55%,
    rgba(255, 218, 118, 0.86) 100%
  );
  box-shadow:
    0 0  5px 2px rgba(255, 238, 160, 0.55),
    0 0 12px 4px rgba(255, 215, 100, 0.18);
  opacity: 0;
  transition: opacity 1.4s ease;
  cursor: default;
}
.door-light.show {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
body.lights-on .door-light { display: none !important; }

/* ── Game caption strip ── */
.game-caption {
  position: fixed;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 56;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.game-caption.show { opacity: 0.62; }
body.lights-on .game-caption { display: none; }

/* ── Scare overlay ── */
.scare-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.97);
  transition: opacity 0.12s ease;
}
.scare-overlay.flash-bg    { background: rgba(160, 0, 0, 0.88); }
.scare-overlay.flash-white { background: rgba(255, 255, 255, 0.95); }
.scare-overlay.scare-in    { opacity: 1; }

.scare-content {
  font-family: 'Creepster', cursive;
  font-size: clamp(44px, 9vw, 110px);
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(225, 18, 18, 0.9);
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.12s ease, transform 0.2s ease;
}
.scare-overlay.scare-in .scare-content {
  opacity: 1;
  transform: scale(1);
}
.scare-overlay.flash-white .scare-content {
  color: #1a0000;
  text-shadow: none;
}

/* ── Screen shake ── */
@keyframes shake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  12%  { transform: translate(-7px, -3px) rotate(-0.5deg); }
  24%  { transform: translate(8px, 4px) rotate(0.5deg); }
  36%  { transform: translate(-6px, 6px) rotate(-0.3deg); }
  48%  { transform: translate(7px, -4px) rotate(0.4deg); }
  60%  { transform: translate(-8px, 2px) rotate(-0.5deg); }
  72%  { transform: translate(5px, -6px) rotate(0.3deg); }
  84%  { transform: translate(-4px, 4px) rotate(-0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
body.shaking { animation: shake 0.48s ease; }

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain,
  .hero .logo-lockup,
  .scroll-hint .line,
  nav .brand .dot,
  .hud .blink {
    animation: none !important;
  }
}

/* ── PASSWORD TERMINAL (Act 6) ─────────────────────────────── */
.pw-terminal {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(225, 18, 18, 0.55);
  padding: 12px 28px 10px;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 0 28px rgba(225, 18, 18, 0.15);
}
.pw-terminal.show { display: flex; }
.pw-terminal.wrong { animation: pw-shake 0.32s ease; }
@keyframes pw-shake {
  0%,100% { transform: translateX(-50%); }
  20%     { transform: translateX(calc(-50% - 8px)); }
  50%     { transform: translateX(calc(-50% + 8px)); }
  75%     { transform: translateX(calc(-50% - 4px)); }
}
.pw-hint {
  font-size: 9px;
  letter-spacing: 0.4em;
  opacity: 0.4;
  color: var(--bone);
}

/* ── PASSWORD ANCHOR ────────────────────────────────────────── */
.password-anchor {
  display: none;
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--bone);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  text-shadow: 0 0 10px rgba(216, 210, 200, 0.35);
}

/* ── MOBILE TOAST ───────────────────────────────────────────── */
.mobile-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid rgba(216, 210, 200, 0.3);
  background: rgba(5, 5, 5, 0.92);
  padding: 18px 28px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-toast.show { opacity: 1; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 18px 22px; }
  nav ul { gap: 14px; font-size: 10px; }
  nav .meta { display: none; }
  section { padding: 120px 6vw 80px; }
  .body-grid { grid-template-columns: 1fr; gap: 32px; }
  .col-6, .col-4 { grid-column: 1 / -1; }
  .games { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; }
  .hud { display: none; }
  .hud-left { display: none; }
}
