/* ==========================================================================
   Kaldforge Studio
   The home page is one day at The Last Stash, from first light to the bunker.
   Palette from the Kaldforge emblem: stone, wood, ice crystals and forge fire.
   Game UI pieces are the real The Last Stash UI kit (9-slice textures in /assets/ui).
   Fonts: Bebas Neue + Rajdhani (SIL OFL), the game's own typefaces.
   ========================================================================== */

@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0f1014;          /* the emblem's own background */
  --ink-deep: #08090c;
  --ink-raise: #16181e;
  --line: rgba(236, 226, 207, .1);
  --line-2: rgba(236, 226, 207, .2);

  --cream: #ece2cf;
  --text: #d6ccb8;
  --muted: #918878;
  --stone: #8d8f94;
  --wood: #7a4a2a;
  --tan: #d8c09a;
  --ice: #9fd0f5;
  --ice-deep: #3f7fb4;
  --ember: #f39a3c;
  --ember-hi: #ffc27a;
  --ember-lo: #b9501a;
  --parch-ink: #2f2416;

  --sky: rgba(255, 170, 90, .0);

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --wrap: 1260px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --hdr: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-weight: 500; font-size: 19px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ember); color: #1d1206; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ember); color: #1d1206; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Time-of-day light that washes over the page while you scroll through the day */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: var(--sky); transition: background-color 1.6s ease;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 70%); }

/* Quiet film grain */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

/* ---------- Game UI buttons (9-slice from the game's button sprites) ---------- */

.gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 14px;
  border: 18px solid transparent; border-image-repeat: stretch; background: none; cursor: pointer;
  font-family: var(--display); font-size: 24px; letter-spacing: .06em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), filter .18s ease; }
.gbtn:hover { transform: translateY(-2px); filter: brightness(1.08) saturate(1.05); }
.gbtn:active { transform: translateY(1px); filter: brightness(.94); }
.gbtn img { width: 30px; height: auto; margin: -6px 0; }
.gbtn-tan { border-width: 18px 20px; border-image-source: url("/assets/ui/9-btn-tan.png"); border-image-slice: 36 40 fill; color: #2b2112; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.gbtn-olive { border-width: 21px; border-image-source: url("/assets/ui/9-btn-olive.png"); border-image-slice: 68 fill; color: var(--cream); text-shadow: 0 1px 0 rgba(0,0,0,.45); padding: 0 8px; }
.gbtn-sm { min-height: 46px; font-size: 19px; border-width: 14px 16px; padding: 0 8px; }
.gbtn-sm.gbtn-olive { border-width: 16px; padding: 0 4px; }
.gbtn-lg { min-height: 72px; font-size: 28px; padding: 0 22px; }
.glow-cta { filter: drop-shadow(0 10px 28px rgba(243,154,60,.25)); }
.glow-cta:hover { filter: drop-shadow(0 12px 34px rgba(243,154,60,.4)) brightness(1.06); }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.text-link::after { content: ""; width: 26px; height: 1px; background: var(--ember); transition: width .25s var(--ease); }
.text-link:hover::after { width: 42px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Header + HUD ---------- */

.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr); border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease; }
.hdr.is-solid { background: rgba(10, 11, 14, .84); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.hdr-inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand span { font-family: var(--display); font-size: 26px; letter-spacing: .16em; line-height: 1; padding-top: 3px; }
.nav { justify-self: end; display: flex; align-items: center; gap: 28px; }
.nav a:not(.gbtn) { position: relative; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); padding: 6px 0; }
.nav a:not(.gbtn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .3s var(--ease); }
.nav a:not(.gbtn):hover { color: var(--cream); }
.nav a:not(.gbtn):hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* In-game HUD: clock + weather + day bar, pinned over the header while you scroll through the day. */
.hud { position: fixed; z-index: 61; top: calc((var(--hdr) - 30px) / 2); left: calc(50% - 135px); display: flex; align-items: center; gap: 12px; opacity: 0; transform: translate(-50%, -6px); pointer-events: none; transition: opacity .5s ease, transform .5s var(--ease); }
.in-day .hud { opacity: 1; transform: translate(-50%, 0); }
.hud-time { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 12px; border-radius: 6px;
  background: linear-gradient(180deg, #3a3524, #24211a); border: 1px solid #8b7a4f; box-shadow: inset 0 1px 0 rgba(255,236,190,.18), 0 4px 12px rgba(0,0,0,.5);
  font-weight: 700; font-size: 14px; letter-spacing: .1em; color: #f1dfb6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-time img { width: 22px; height: 22px; object-fit: contain; }
.hud-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; width: 196px; height: 30px; padding: 0 8px; border-radius: 6px;
  background: linear-gradient(180deg, #2b2e33, #1b1d21); border: 1px solid #6a6c70; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.5); overflow: hidden; }
.hud-bar img { position: relative; z-index: 1; justify-self: center; width: 24px; height: 20px; object-fit: contain; opacity: .55; transition: opacity .4s ease; }
.hud-bar img.on { opacity: 1; }
.hud-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--day, 0%); background: linear-gradient(90deg, rgba(255,190,90,.0), rgba(255,190,90,.32)); border-right: 2px solid #ffd27a; transition: width .25s linear; }

.burger { display: none; justify-self: end; width: 46px; height: 46px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), background-color .2s ease; content: ""; }
.burger span { top: 22px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (title screen) ---------- */

.hero { position: relative; min-height: max(660px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--ink-deep); }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -3; will-change: transform; }
.hero-kb { position: absolute; inset: 0; animation: kenburns 22s var(--ease) both; transform-origin: 46% 40%; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-kb picture { position: absolute; inset: 0; }
.hero-kb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 32%; }
.hotspot { position: absolute; width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.hotspot-lantern { --r: 420px; background: radial-gradient(circle, rgba(255,186,96,.55) 0%, rgba(255,150,60,.18) 30%, rgba(255,140,40,0) 62%); animation: flicker 4.6s infinite; }
.hotspot-station { --r: 380px; background: radial-gradient(circle, rgba(255,196,120,.35) 0%, rgba(255,160,70,.1) 35%, rgba(255,150,60,0) 65%); animation: flicker 6.2s infinite reverse; }
.hotspot-moon { --r: 300px; background: radial-gradient(circle, rgba(200,225,255,.22) 0%, rgba(160,200,255,0) 60%); }
@keyframes flicker { 0%,100% { opacity: .95; } 8% { opacity: .8; } 10% { opacity: 1; } 34% { opacity: .9; } 36% { opacity: .72; } 38% { opacity: .96; } 62% { opacity: .88; } 70% { opacity: 1; } 84% { opacity: .82; } 86% { opacity: .97; } }
.hero-snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--snow-from, 50%), #000 calc(var(--snow-from, 50%) + 8%)); mask-image: linear-gradient(90deg, transparent var(--snow-from, 50%), #000 calc(var(--snow-from, 50%) + 8%)); }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.62) 28%, rgba(8,9,12,.1) 54%, rgba(8,9,12,0) 70%),
  linear-gradient(0deg, var(--ink) 0%, rgba(15,16,20,.55) 16%, rgba(15,16,20,0) 40%),
  linear-gradient(180deg, rgba(8,9,12,.7) 0%, rgba(8,9,12,0) 20%); }
.hero-content { position: relative; padding-top: calc(var(--hdr) + 48px); padding-bottom: clamp(64px, 11vh, 124px); display: grid; gap: 22px; justify-items: start; }
.presents { font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); opacity: .85; }
.hero-logo { margin: 0 0 0 -10px; }
.hero-logo img { width: clamp(270px, 33vw, 500px); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.hero-tagline { font-family: var(--display); font-size: clamp(30px, 3.3vw, 50px); line-height: 1; letter-spacing: .02em; color: var(--cream); }
.hero-tagline em { display: block; font-style: normal; color: var(--ember); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.play-btn .ring { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(236,226,207,.45); transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease); }
.play-btn .ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(236,226,207,.18); animation: pulse 2.6s ease-out infinite; }
.play-btn .ring svg { width: 16px; height: 16px; fill: var(--cream); margin-left: 3px; }
.play-btn:hover .ring { background: var(--ember); border-color: var(--ember); transform: scale(1.06); }
.play-btn:hover .ring svg { fill: #1d1206; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.hero-note { margin-top: 6px; font-size: 16px; color: var(--muted); }
.hero-note b { color: var(--text); font-weight: 700; }

/* ---------- Trailer ---------- */

.trailer { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.screen { position: relative; max-width: 1180px; margin: 0 auto; border: 20px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 20px; filter: drop-shadow(0 40px 70px rgba(0,0,0,.7)); }
.screen-inner { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 3px; }
.screen-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.screen-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .4s ease, transform 1.2s var(--ease); }
.screen-facade:hover img { opacity: .95; transform: scale(1.03); }
.play-big { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,9,12,.45); border: 2px solid rgba(236,226,207,.85); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background-color .3s ease; }
.play-big::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(236,226,207,.3); animation: pulse 2.6s ease-out infinite; }
.play-big svg { width: 34px; height: 34px; fill: var(--cream); margin-left: 6px; }
.screen-facade:hover .play-big { transform: scale(1.06); background: var(--ember); border-color: var(--ember); }
.screen-facade:hover .play-big svg { fill: #1d1206; }
.screen-label { position: absolute; left: 22px; bottom: 18px; font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }

/* ---------- Chapters of the day ---------- */

.chapter { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.chapter-flip .chapter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter-flip .chapter-head { order: 2; }
.chapter-head { display: grid; gap: 22px; align-content: start; }
.clock { display: flex; align-items: baseline; gap: 16px; }
.clock b { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 5.6vw, 84px); line-height: .8; letter-spacing: .02em; color: var(--ember); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(243,154,60,.25); }
.clock span { font-weight: 700; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.chapter-night .clock b { color: var(--ice); text-shadow: 0 0 30px rgba(159,208,245,.25); }
.chapter h2, .big { font-family: var(--display); font-size: clamp(46px, 5.6vw, 92px); line-height: .9; letter-spacing: .01em; color: var(--cream); max-width: 12ch; }
.chapter-head > p { max-width: 30em; font-size: clamp(18px, 1.45vw, 21px); color: var(--text); }

/* Photo with a real-world feel: framed by darkness, opens full size */
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s ease; }
.shot:hover img { transform: scale(1.025); filter: brightness(1.06); }
.shot figcaption, .shot .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.9); text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s var(--ease); }
.shot:hover .cap { opacity: 1; transform: none; }

/* 06:00 radio */
.radio-set { display: grid; gap: 14px; justify-items: center; }
.radio { position: relative; width: min(100%, 620px); padding: 18px 22px 20px; border: 24px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 24px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.65)); }
.radio-title { display: flex; justify-content: center; align-items: center; gap: 12px; font-family: var(--display); font-size: 34px; letter-spacing: .06em; color: var(--ember-hi); text-shadow: 0 0 18px rgba(255,170,80,.35); }
.radio-title .led { width: 9px; height: 9px; border-radius: 50%; background: #e0442f; box-shadow: 0 0 10px #e0442f; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dial { position: relative; height: 66px; margin: 14px 0 12px; border-radius: 6px; background: linear-gradient(180deg, #efe1bf, #d9c69c); box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 0 3px #4a4b3a, 0 0 0 4px #8a8466; overflow: hidden; }
.dial-scale { position: absolute; inset: 0 18px; background:
    repeating-linear-gradient(90deg, #3a2e1c 0 2px, transparent 2px 100%) 0 100% / 10% 22px no-repeat,
    repeating-linear-gradient(90deg, #3a2e1c 0 1px, transparent 1px 2%) 0 100% / 100% 12px no-repeat; }
.dial-scale::before { content: ""; position: absolute; inset: auto 0 0; height: 22px; background: repeating-linear-gradient(90deg, #3a2e1c 0 2px, transparent 2px 16.66%); }
.dial-nums { position: absolute; inset: 8px 18px auto; display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; color: #3a2e1c; }
.needle { position: absolute; top: 4px; bottom: 4px; left: calc(18px + (100% - 36px) * var(--tune, .5)); width: 8px; margin-left: -4px; border-radius: 2px; background: linear-gradient(90deg, #d97a1c, #ffb347, #d97a1c); box-shadow: 0 0 10px rgba(255,140,40,.7); transition: left .7s var(--ease); }
.radio-band { text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.radio-headline { min-height: 2.1em; margin-top: 6px; text-align: center; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; letter-spacing: .03em; color: var(--cream); }
.radio-desc { margin-top: 8px; text-align: center; font-size: 16px; color: var(--muted); min-height: 3em; }
.radio-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(216,192,154,.25);
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #d9c7a0; }
.radio-foot span:nth-child(2) { color: var(--ember-hi); }
.radio-foot span:last-child { text-align: right; }
.radio.is-static .radio-headline, .radio.is-static .radio-desc, .radio.is-static .radio-band { animation: staticfx .35s steps(4) both; }
@keyframes staticfx { 0% { opacity: .2; filter: blur(2px); transform: translateX(-3px); } 50% { opacity: .6; transform: translateX(2px); } 100% { opacity: 1; filter: none; transform: none; } }
.radio-tune { display: flex; align-items: center; gap: 14px; }
.radio-tune span { font-weight: 700; font-size: 14px; letter-spacing: .18em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 08:00 supply run */
.collage { position: relative; padding: 0 0 18% 0; }
.collage .shot:first-child { width: 86%; margin-left: auto; }
.collage .shot:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 54%; border: 6px solid #0b0c0f; }
.toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  border: 14px solid transparent; border-image: url("/assets/ui/9-bar.png") 24 30 fill / 12px 15px;
  font-family: var(--display); font-size: 22px; letter-spacing: .06em; color: var(--cream); white-space: nowrap; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); }
.toast img { width: 40px; height: auto; }
.collage .toast { top: -26px; left: 18%; }

/* 11:00 the dilemma */
.dilemma-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); min-height: 680px; margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; align-items: center; gap: 24px; padding: 60px clamp(16px, 3vw, 40px); }
.side { position: absolute; top: 0; bottom: 0; width: 50%; z-index: -2; overflow: hidden; transition: filter .8s ease; }
.side::before { content: ""; position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(10px) saturate(1.1); transform: scale(1.05); }
.side::after { content: ""; position: absolute; inset: 0; }
.side-shop { left: 0; }
.side-shop::before { background-image: url("/assets/img/blur-shop.jpg"); }
.side-shop::after { background: linear-gradient(90deg, rgba(40,18,4,.35), rgba(15,16,20,.86)), radial-gradient(70% 60% at 30% 40%, rgba(255,160,70,.28), transparent 70%); }
.side-bunker { right: 0; }
.side-bunker::before { background-image: url("/assets/img/blur-bunker.jpg"); filter: blur(10px) saturate(.6) hue-rotate(-12deg); }
.side-bunker::after { background: linear-gradient(270deg, rgba(10,26,48,.45), rgba(15,16,20,.88)), radial-gradient(70% 60% at 70% 45%, rgba(120,170,230,.22), transparent 70%); }
.dilemma-stage::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; z-index: -1; background: linear-gradient(transparent, rgba(236,226,207,.25) 30%, rgba(236,226,207,.25) 70%, transparent); }
.dilemma-stage[data-choice="sell"] .side-shop { filter: brightness(1.35); }
.dilemma-stage[data-choice="sell"] .side-bunker { filter: brightness(.45) saturate(.4); }
.dilemma-stage[data-choice="stash"] .side-bunker { filter: brightness(1.45); }
.dilemma-stage[data-choice="stash"] .side-shop { filter: brightness(.45) saturate(.4); }
.side-label { display: grid; gap: 8px; align-self: end; }
.side-label.right { justify-items: end; text-align: right; }
.side-label h3 { font-family: var(--display); font-size: clamp(44px, 4.6vw, 76px); line-height: .85; }
.side-label p { max-width: 14em; font-size: 16px; color: var(--muted); }
.side-label .big-sell { color: #ffd59a; }
.side-label .big-stash { color: #cfe4fb; }
.counter { position: relative; display: grid; gap: 18px; justify-items: center; }
.bubble { position: relative; max-width: 420px; text-align: center; padding: 6px 16px 10px; color: #3a2a12;
  border: 17px solid transparent; border-width: 17px 17px 27px; border-image: url("/assets/ui/9-bubble.png") 34 34 54 fill / 17px 17px 27px;
  font-weight: 700; font-size: 19px; line-height: 1.3; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -27px; width: 40px; height: 31px; margin-left: -20px; background: url("/assets/ui/bubble-tail.png") center / 100% 100% no-repeat; }
.bubble cite { display: block; margin-top: 4px; font-style: normal; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #7a5f35; }
.crate { position: relative; width: 100%; min-height: 330px; display: grid; place-items: center; padding: 18px 18px 26px;
  border: 32px solid transparent; border-width: 32px 32px 52px; border-image: url("/assets/ui/9-popup.png") 64 64 104 fill / 32px 32px 52px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.crate::before { content: ""; position: absolute; left: 50%; bottom: -52px; width: 165px; height: 48px; margin-left: -82px; background: url("/assets/ui/popup-handle.png") center / 100% 100% no-repeat; }
.crate::after { content: ""; position: absolute; right: -32px; top: 42%; width: 33px; height: 61px; background: url("/assets/ui/popup-side.png") center / 100% 100% no-repeat; }
.item-view { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.item-view::before { content: ""; position: absolute; left: 50%; top: 40%; width: 360px; height: 280px; margin: -140px 0 0 -180px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255,196,120,.2), rgba(255,170,80,.06) 60%, transparent); }
.item-img { height: 200px; width: auto; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
.item-name { font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: .04em; color: var(--cream); }
.item-price { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 30px; color: #ffd28c; letter-spacing: .04em; }
.item-price img { width: 28px; height: auto; }
.item-swap { animation: itemIn .5s var(--ease); }
@keyframes itemIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.choices .gbtn { min-width: 190px; }
.choices .gbtn[aria-pressed="true"] { filter: brightness(1.15) drop-shadow(0 0 18px rgba(255,190,110,.45)); }
.slots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.slot { width: 64px; height: 64px; display: grid; place-items: center; padding: 0; cursor: pointer; background: none; border: 12px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 12px; transition: transform .2s var(--ease), filter .2s ease; }
.slot img { max-height: 34px; width: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.slot:hover { transform: translateY(-3px); }
.slot[aria-pressed="true"] { filter: drop-shadow(0 0 10px rgba(243,154,60,.75)) brightness(1.15); transform: translateY(-3px); }
.outcome { min-height: 150px; width: 100%; max-width: 520px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.outcome-text { font-size: 20px; line-height: 1.45; color: var(--cream); min-height: 3em; }
.outcome-text .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ember); animation: blink 1s steps(2) infinite; }
.outcome-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; animation: itemIn .45s var(--ease) both; }
.chip img { width: 18px; height: auto; }
.chip-coin { background: rgba(255,194,122,.12); border: 1px solid rgba(255,194,122,.4); color: #ffd28c; }
.chip-warm { background: rgba(243,154,60,.14); border: 1px solid rgba(243,154,60,.45); color: #ffc887; }
.chip-cold { background: rgba(159,208,245,.12); border: 1px solid rgba(159,208,245,.4); color: #cfe4fb; }
.chip-bad { background: rgba(208,64,47,.14); border: 1px solid rgba(208,64,47,.5); color: #ffb2a6; }
.outcome-final { display: none; gap: 14px; justify-items: center; }
.outcome-final.is-on { display: grid; animation: itemIn .6s var(--ease); }
.outcome-final p { font-family: var(--display); font-size: 30px; letter-spacing: .03em; color: var(--cream); }

/* 14:00 prices + contracts */
.board-set { position: relative; padding: 56px 0 120px; }
.board-set .shot { width: 100%; }
.note { position: absolute; width: min(38%, 250px); padding: 20px 18px 16px; color: var(--parch-ink);
  border: 14px solid transparent; border-image: url("/assets/ui/9-parchment.png") 26 fill / 13px;
  rotate: var(--rot, 0deg); filter: drop-shadow(0 16px 20px rgba(0,0,0,.55)); transition: rotate .4s var(--ease), translate .4s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8d6e, #b8352b 55%, #6b1a12); box-shadow: 0 4px 6px rgba(0,0,0,.45); }
.note:hover { rotate: 0deg; translate: 0 -6px; z-index: 3; }
.note .who { font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #7a6544; }
.note h3 { margin: 4px 0 6px; font-family: var(--display); font-size: 25px; line-height: .95; color: #2a1d0e; }
.note p { font-size: 15px; line-height: 1.38; color: #4a3a24; }
.note-1 { --rot: -3deg; left: -5%; top: 0; }
.note-2 { --rot: 2.6deg; right: -5%; top: 34%; }
.note-3 { --rot: -1.6deg; left: 26%; bottom: 0; }

/* 16:30 weather */
.weather { display: grid; gap: 16px; }
.weather-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.weather-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s linear; }
.weather-view img.is-on { opacity: 1; transform: scale(1); }
.weather-event { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 14px 18px; border: 12px solid transparent; border-image: url("/assets/ui/9-bar.png") 24 30 fill / 12px 15px; }
.weather-event b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .04em; color: var(--ember-hi); }
.weather-event span { display: block; font-size: 15px; color: var(--text); }
.weather-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.wx { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 8px; cursor: pointer; background: none;
  border: 12px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 12px; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); transition: filter .2s ease, transform .2s var(--ease); }
.wx img { width: 28px; height: 28px; object-fit: contain; }
.wx:hover { transform: translateY(-2px); }
.wx[aria-pressed="true"] { color: var(--cream); filter: drop-shadow(0 0 10px rgba(243,154,60,.6)) brightness(1.15); }

/* 19:00 closing */
.closing { position: relative; padding: clamp(90px, 12vw, 170px) 0; text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 40%, rgba(185,80,26,.22), transparent 70%); }
.sign { width: 220px; height: 189px; margin: 0 auto 30px; perspective: 800px; }
.sign-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.5, -0.2, .3, 1.4); transform-origin: 50% 0; }
.sign-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; filter: drop-shadow(0 20px 26px rgba(0,0,0,.55)); }
.sign-card img + img { transform: rotateY(180deg); }
.closing.is-closed .sign-card { transform: rotateY(180deg); }
.closing .clock { justify-content: center; margin-bottom: 18px; }
.closing h2 { font-family: var(--display); font-size: clamp(64px, 10vw, 160px); line-height: .82; color: var(--cream); }
.closing p { margin: 22px auto 0; max-width: 26em; font-size: clamp(18px, 1.6vw, 22px); color: var(--text); }

/* 22:00 bunker */
.bunker-set { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: end; }
.bunker-set .shot:nth-child(2) { margin-bottom: 12%; }
.status-stack { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 6px; background: linear-gradient(180deg, #3a1d18, #221210); border: 1px solid #9a3c2c;
  box-shadow: 0 8px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,200,180,.12); font-weight: 700; font-size: 14px; letter-spacing: .14em; color: #ffb9a8; animation: warn 2.4s ease-in-out infinite; }
.status:nth-child(2) { animation-delay: .8s; }
.status:nth-child(3) { animation-delay: 1.6s; border-color: #4d7ea6; background: linear-gradient(180deg, #17283a, #0f1a26); color: #cfe4fb; }
.status img { width: 26px; height: 26px; object-fit: contain; }
@keyframes warn { 50% { box-shadow: 0 8px 18px rgba(0,0,0,.55), 0 0 18px rgba(208,64,47,.35); } }

/* 23:59 day report over the night street */
.night { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 13vw, 180px) 0; }
.night-bg { position: absolute; inset: 0; z-index: -3; }
.night-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--ink) 0%, rgba(15,16,20,.4) 26%, rgba(15,16,20,.45) 74%, var(--ink) 100%), radial-gradient(60% 70% at 50% 50%, rgba(8,9,12,.55), rgba(8,9,12,.1)); }
.night canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.night-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.night h2 { font-family: var(--display); font-size: clamp(60px, 8vw, 132px); line-height: .84; color: var(--cream); text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.night h2 em { font-style: normal; display: block; color: var(--ice); text-shadow: 0 0 40px rgba(140,190,240,.35); }
.night .hero-actions { margin-top: 32px; }
.report { padding: 18px 24px 22px; border: 24px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 24px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)); }
.report-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(216,192,154,.25); }
.report-head h3 { font-family: var(--display); font-size: 34px; letter-spacing: .06em; color: var(--ember-hi); }
.report-head span { font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.report dl { display: grid; margin-top: 6px; }
.report dl > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(216,192,154,.16); }
.report dt { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.report dd { font-weight: 700; font-size: 17px; color: var(--cream); }
.report .issue dd { color: #ffb2a6; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flags img { width: 34px; height: auto; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }

/* ---------- Studio ---------- */

.studio { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px);
  background: radial-gradient(70% 45% at 50% 100%, rgba(185,80,26,.42), rgba(185,80,26,.08) 50%, transparent 72%), linear-gradient(180deg, var(--ink) 0%, #0d0b0a 100%); }
.studio canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.emblem { position: relative; justify-self: center; width: min(100%, 520px); }
.emblem::before { content: ""; position: absolute; inset: 8% 4% 10%; z-index: -1; background:
  radial-gradient(40% 40% at 18% 62%, rgba(110,180,240,.28), transparent 70%),
  radial-gradient(40% 40% at 82% 62%, rgba(110,180,240,.28), transparent 70%),
  radial-gradient(35% 30% at 50% 66%, rgba(255,140,40,.45), transparent 70%); filter: blur(20px); animation: forge 5s ease-in-out infinite; }
@keyframes forge { 50% { opacity: .75; } }
.emblem img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.letter { display: grid; gap: 20px; }
.letter .kicker { font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); }
.letter h2 { font-family: var(--display); font-size: clamp(44px, 5vw, 80px); line-height: .9; color: var(--cream); max-width: 13ch; }
.letter p { max-width: 33em; font-size: clamp(18px, 1.4vw, 20px); }
.sign-off { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.sign-off img { width: 46px; height: 46px; }
.sign-off b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .04em; color: var(--cream); line-height: 1; }
.sign-off span { font-size: 15px; color: var(--muted); }

/* The shelf: our games */
.shelf-sec { padding: clamp(40px, 6vw, 80px) 0 clamp(150px, 14vw, 200px); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.shelf-head h2 { font-family: var(--display); font-size: clamp(40px, 4.4vw, 68px); line-height: .9; color: var(--cream); }
.shelf-head p { color: var(--muted); max-width: 30em; }
.shelf { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: end; padding: 0 clamp(10px, 6vw, 90px); }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, #8a5a34 0%, #6b4226 22%, #4a2d19 70%, #2a190e 100%); box-shadow: 0 30px 40px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,210,160,.35); }
.shelf::before { content: ""; position: absolute; left: 2%; right: 2%; bottom: -60px; height: 34px; background: radial-gradient(50% 100% at 50% 0%, rgba(0,0,0,.6), transparent); }
.product { position: relative; z-index: 2; display: grid; justify-items: center; text-decoration: none; color: inherit; }
.box { position: relative; width: min(100%, 300px); aspect-ratio: 2 / 3; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.box img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 30px 40px -12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.06); }
.box::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(105deg, rgba(255,255,255,.18), transparent 30%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.product:hover .box { transform: translateY(-10px) rotate(-1.5deg); }
.tag { position: absolute; top: 18%; right: -38px; z-index: 2; padding: 10px 14px 10px 22px; rotate: 8deg; transform-origin: 0 50%;
  background: #efe3c4; color: #2b2112; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); box-shadow: 0 8px 14px rgba(0,0,0,.4);
  font-family: var(--display); font-size: 22px; letter-spacing: .04em; line-height: 1; transition: rotate .5s var(--ease); }
.tag small { display: block; margin-top: 3px; font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b5a40; }
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #1b140b; }
.product:hover .tag { rotate: 2deg; }
.product-name { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%; text-align: center; padding: 8px 16px 9px; background: #efe3c4; color: #2b2112; border-radius: 2px; box-shadow: 0 6px 12px rgba(0,0,0,.45); }
.product-name b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .04em; color: #2b2112; line-height: 1; }
.product-name span { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6b5a40; }
.tarp { position: relative; width: min(100%, 340px); aspect-ratio: 34 / 40; }
.tarp svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 30px rgba(0,0,0,.7)); }
.tarp-glow { animation: forge 4s ease-in-out infinite; }
.product-next:hover .tarp svg { animation: rustle .7s ease-in-out; }
@keyframes rustle { 30% { transform: skewX(-1.5deg); } 60% { transform: skewX(1deg); } }

/* ---------- Contact ---------- */

.contact-sec { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact h2 { font-family: var(--display); font-size: clamp(48px, 5.6vw, 92px); line-height: .88; color: var(--cream); }
.contact .lede { margin-top: 20px; max-width: 30em; font-size: clamp(18px, 1.45vw, 21px); }
.contact .gbtn { margin-top: 26px; }
.contract { position: relative; display: grid; gap: 24px; padding: 34px 34px 28px; color: var(--parch-ink);
  border: 16px solid transparent; border-image: url("/assets/ui/9-parchment-warm.png") 32 fill / 16px; rotate: .8deg; filter: drop-shadow(0 26px 34px rgba(0,0,0,.6)); }
.contract::before { content: ""; position: absolute; top: -8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8d6e, #b8352b 55%, #6b1a12); box-shadow: 0 4px 6px rgba(0,0,0,.45); }
.contract-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed rgba(74,58,36,.4); }
.contract-head h3 { font-family: var(--display); font-size: 34px; line-height: 1; color: #2a1d0e; }
.contract-head span, .contract-foot, .contract .label { font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #7a6544; }
.contract .label { margin-bottom: 8px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.email { font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; color: var(--parch-ink); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(#b9501a, #b9501a) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease), color .3s ease; }
.email:hover { color: #8a3a12; background-size: 100% 2px; }
.copy-btn { background: none; border: 1px solid rgba(74,58,36,.45); border-radius: 3px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #4a3a24; transition: border-color .2s ease, color .2s ease; }
.copy-btn:hover { border-color: #b9501a; color: #2a1d0e; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.socials a { text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: #4a3a24; padding: 3px 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.socials a:hover { color: #2a1d0e; border-bottom-color: #b9501a; }
.contract-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed rgba(74,58,36,.4); }

/* ---------- Footer ---------- */

.ftr { position: relative; padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--ink-deep); }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ftr-brand { display: flex; align-items: center; gap: 16px; }
.ftr-brand img { width: 64px; height: 64px; }
.ftr-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .14em; color: var(--cream); line-height: 1; }
.ftr-brand span { font-size: 15px; color: var(--muted); }
.ftr-open { display: flex; align-items: center; gap: 16px; }
.ftr-open img { width: 96px; height: auto; transition: transform .5s var(--ease); transform-origin: 50% 0; }
.ftr-open:hover img { transform: rotate(-6deg); }
.ftr-open p { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--cream); }
.ftr-open p span { display: block; font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 24px; font-size: 15px; color: var(--muted); }
.ftr-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr-row a { text-decoration: none; color: var(--text); }
.ftr-row a:hover { color: var(--cream); }

/* ---------- Lightbox ---------- */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,5,8,.96); color: var(--cream); }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox::backdrop { background: rgba(4,5,8,.8); }
.lightbox img { max-width: min(94vw, 1920px); max-height: 84vh; width: auto; height: auto; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lb-btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer; padding: 0; background: none; border: 12px solid transparent; border-image: url("/assets/ui/9-panel.png") 40 fill / 12px; font-size: 26px; line-height: 1; color: var(--cream); }
.lb-btn:hover { filter: brightness(1.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-weight: 700; font-size: 16px; color: var(--text); padding: 0 90px; }
.lb-caption b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .08em; color: var(--ember-hi); margin-right: 12px; }

/* ---------- Press page ---------- */

.press-hero { padding: calc(var(--hdr) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 80% at 85% 10%, rgba(63,127,180,.22), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(185,80,26,.18), transparent 70%), var(--ink); }
.press-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.press-hero .kicker { font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); }
.press-hero h1 { margin-top: 14px; font-family: var(--display); font-size: clamp(64px, 9vw, 140px); line-height: .84; color: var(--cream); }
.press-hero .lede { margin-top: 20px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); }
.press-hero .hero-actions { margin-top: 26px; }
.press-hero-logo img { width: clamp(180px, 20vw, 300px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.press-layout { display: grid; grid-template-columns: 330px 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; padding: clamp(60px, 8vw, 110px) 0; }
.press-layout > aside { align-self: stretch; }
.press-facts { position: sticky; top: calc(var(--hdr) + 24px); display: grid; }
.press-facts .fact { padding: 13px 0; border-bottom: 1px solid var(--line); }
.press-facts dt { font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.press-facts dd { color: var(--cream); font-weight: 700; font-size: 17px; }
.press-facts dd a { color: var(--cream); text-decoration-color: rgba(243,154,60,.6); text-underline-offset: 3px; }
.press-main { display: grid; gap: clamp(56px, 7vw, 96px); }
.press-block { display: grid; gap: 18px; }
.press-block h2 { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-size: clamp(36px, 3.6vw, 52px); line-height: .95; color: var(--cream); }
.press-block h2::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.press-block p { max-width: 42em; }
.press-block .lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--cream); }
.dash li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--ember); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dl-card { display: grid; gap: 10px; text-decoration: none; color: var(--text); }
.dl-card .thumbwrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #000; border: 1px solid var(--line); }
.dl-card .thumbwrap.contain { background: repeating-conic-gradient(#16181e 0 25%, #111317 0 50%) 0 0 / 20px 20px; }
.dl-card .thumbwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dl-card .thumbwrap.contain img { object-fit: contain; padding: 12px; }
.dl-card:hover .thumbwrap img { transform: scale(1.04); }
.dl-card .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.dl-card .meta b { font-weight: 700; color: var(--cream); }
.dl-card .meta span { color: var(--muted); white-space: nowrap; }
.dl-card .meta span::after { content: " ↓"; color: var(--ember); }
.usage { padding: 26px 28px; border: 1px solid var(--line); border-left: 3px solid var(--ember); background: var(--ink-raise); }
.usage ul { display: grid; gap: 8px; }
.press-contact .email { color: var(--cream); }
.press-contact .email:hover { color: var(--ember-hi); }
.press-contact .copy-btn { border-color: var(--line-2); color: var(--text); }

/* ---------- 404 ---------- */

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; position: relative; isolation: isolate; overflow: hidden; }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(243,154,60,.12), transparent 70%); }
.lost .item { height: 150px; width: auto; margin: 0 auto 24px; opacity: .9; transform: rotate(-12deg); filter: grayscale(.4) drop-shadow(0 20px 20px rgba(0,0,0,.6)); }
.lost h1 { font-family: var(--display); font-size: clamp(56px, 9vw, 120px); line-height: .88; color: var(--cream); }
.lost p { margin: 18px auto 30px; max-width: 26em; color: var(--muted); }
.lost .kicker { font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) and (min-width: 881px) {
  .hud { top: auto; bottom: 14px; left: 50%; }


  .hud-bar { width: 170px; }
}

@media (max-width: 1100px) {
  .dilemma-stage { grid-template-columns: 1fr; padding: 40px 18px 48px; min-height: 0; gap: 30px; }
  .side { width: 100%; height: 50%; }
  .side-shop { top: 0; bottom: auto; }
  .side-bunker { top: auto; bottom: 0; }
  .dilemma-stage::after { inset: 50% 0 auto 0; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(236,226,207,.25) 30%, rgba(236,226,207,.25) 70%, transparent); }
  .side-label, .side-label.right { justify-items: center; text-align: center; align-self: auto; }
  .side-label p { max-width: 28em; }
  .side-label.right { order: 3; }
  .counter { order: 2; }
}

@media (max-width: 980px) {
  .chapter-grid, .chapter-flip .chapter-grid, .night-grid, .studio-grid, .contact { grid-template-columns: 1fr; }
  .chapter-flip .chapter-head { order: 0; }
  .press-layout { grid-template-columns: 1fr; }
  .press-facts { position: static; }
  .press-hero-grid { grid-template-columns: 1fr; }
  .press-hero-logo { display: none; }
  .emblem { width: min(80%, 420px); }
}

@media (max-width: 880px) {
  :root { --hdr: 64px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 90px var(--gutter) 40px; background: rgba(8,9,12,.97);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a:not(.gbtn) { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 12vw, 64px); letter-spacing: .03em; line-height: 1.05; text-transform: none; color: var(--cream); transform: translateY(18px); opacity: 0; transition: transform .5s var(--ease), opacity .5s ease; }
  .menu-open .nav a:not(.gbtn) { transform: none; opacity: 1; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .menu-open .nav a:nth-child(3) { transition-delay: .1s; } .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .nav a:not(.gbtn)::after { display: none; }
  .nav .gbtn { margin: 26px 0 0; }
  .menu-open .hdr, .menu-open .hdr.is-solid { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { position: relative; z-index: 2; }
  .menu-open .hud { opacity: 0; }
  .hud { left: 50%; }
  .brand span { transition: opacity .3s ease; }
  .in-day .brand span { opacity: 0; }
  .hdr-inner { grid-template-columns: 1fr auto; }
  .hero-kb img { object-position: 46% 30%; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(15,16,20,.9) 36%, rgba(15,16,20,.55) 62%, rgba(15,16,20,.28) 100%), linear-gradient(180deg, rgba(8,9,12,.75) 0%, rgba(8,9,12,0) 18%); }
  .board-set { padding: 0; display: grid; gap: 18px; }
  .board-set .shot { width: 100%; }
  .note { position: relative; inset: auto; width: auto; }
  .note-1, .note-2, .note-3 { left: auto; right: auto; top: auto; bottom: auto; }
  .shelf { grid-template-columns: 1fr; gap: 90px; padding: 0; }
  .shelf::after { display: none; }
  .shelf::before { display: none; }
  .product { padding-bottom: 0; margin-bottom: 110px; border-bottom: 22px solid; border-image: linear-gradient(180deg, #8a5a34, #4a2d19) 1; }
  .product-name { top: calc(100% - 8px); }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .brand span { font-size: 23px; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: 100svh; }
  .hero-kb img { object-position: 47% 30%; }
  .hero-content { gap: 16px; padding-bottom: 64px; }
  .hero-actions .gbtn { width: 100%; }
  .hud-time { font-size: 13px; }
  .hud-bar { width: 128px; padding: 0 4px; }
  .hud-bar img { width: 18px; height: 16px; }
  .collage { padding: 0; display: grid; gap: 12px; }
  .collage .shot:first-child, .collage .shot:nth-child(2) { position: relative; width: 100%; border: 0; }
  .collage .toast { position: relative; top: auto; left: auto; justify-self: start; }
  .toast { font-size: 19px; }
  .bubble { font-size: 17px; }
  .crate { min-height: 290px; }
  .item-img { height: 140px; }
  .choices .gbtn { min-width: 0; flex: 1 1 140px; }
  .slot { width: 56px; height: 56px; border-width: 10px; }
  .slot img { max-height: 30px; }
  .weather-event { position: relative; left: 0; right: 0; bottom: 0; margin-top: 8px; }
  .weather-view { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; padding-top: 56.25%; }
  .weather-view img { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 9; border-radius: 3px; }
  .wx { flex: 1 1 40%; justify-content: flex-start; }
  .sign { width: 170px; height: 146px; }
  .bunker-set { grid-template-columns: 1fr; }
  .bunker-set .shot:nth-child(2) { margin: 0; }
  .status-stack { position: relative; left: auto; top: auto; transform: none; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 4px; }
  .report { padding: 12px 10px 16px; border-width: 18px; border-image-width: 18px; }
  .report dl > div { grid-template-columns: 1fr; gap: 2px; }
  .contract { padding: 26px 22px 22px; rotate: 0deg; }
  .contract-head { flex-direction: column; gap: 6px; }
  .email { font-size: 23px; }
  .tag { right: -14px; }
  .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; }
  .lb-caption { padding: 0 16px; bottom: 16px; font-size: 14px; }
}

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