/* ==========================================================
   DoZo Games — a parallax level you scroll down through:
   Dawn → The Woods → Going Under → Crystal Caves → The Core
   ========================================================== */
:root {
  --cream: #fff6ec;
  --ink: #160f26;
  --muted: rgba(255, 246, 236, .72);
  --accent: #ff5d5d;
  --gold: #ffcf6b;
  --line: rgba(255, 255, 255, .16);
  --card: rgba(18, 12, 34, .42);
  --f-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(18px, 5vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: #241a45; color: var(--cream); font-family: var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 16px var(--gutter); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__logo img { width: 104px; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.hud__level { justify-self: center; display: flex; align-items: baseline; gap: 12px; padding: 9px 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hud__level .mono { color: var(--gold); }
.hud__level b { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: opacity .3s; }
.hud__nav { display: flex; gap: 4px; }
.hud__nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 99px; transition: background .25s, color .25s; }
.hud__nav a:hover { background: var(--cream); color: var(--ink); }
.hud__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.hud__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.depth { position: fixed; z-index: 50; right: var(--gutter); bottom: 22px; display: flex; align-items: baseline; gap: 8px; color: var(--muted); pointer-events: none; }
.depth b { font-family: var(--f-display); font-size: 22px; color: var(--cream); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- scenes ---------- */
.scene { position: relative; height: var(--h, 300vh); }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; }
.layer svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.ridge svg { height: 100%; }

/* Dawn */
.scene--dawn .sky { background: linear-gradient(180deg, #3b2a6b 0%, #7a4f98 28%, #d77b9a 52%, #ffb18a 70%, #ffd8a8 84%, #ffe9c8 100%); }
.sun { display: grid; place-items: center; }
.sun span { width: min(30vw, 300px); aspect-ratio: 1; border-radius: 50%; margin-top: -6vh; margin-left: 26vw; background: radial-gradient(circle, #fff7df 0 34%, #ffe1a8 35%, rgba(255, 196, 140, .55) 52%, rgba(255, 170, 140, 0) 72%); }
/* Woods */
.scene--woods .sky { background: linear-gradient(180deg, #071824 0%, #0f2c3b 40%, #1d4a57 72%, #2f6a6f 100%); }
.moon { display: grid; justify-items: end; padding: 12vh 16vw 0 0; }
.moon span { width: min(14vw, 150px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fbfbf2, #d8e6df 55%, #b7cfc8); box-shadow: 0 0 60px 20px rgba(200, 240, 230, .18), inset -14px -10px 0 rgba(0, 0, 0, .08); }
/* Under */
.scene--under .soil { background: linear-gradient(180deg, #5b3b26 0%, #3d281b 40%, #2a1c14 75%, #1a110d 100%); }
.grass { height: 34vh; bottom: auto; background: linear-gradient(180deg, #0a222b 0%, #0a222b 30%, #2f6b3a 30.5%, #2a5e33 52%, #5b3b26 54%); }
.grass::after { content: ""; position: absolute; left: 0; right: 0; top: calc(30% - 18px); height: 22px; background: radial-gradient(circle at 10px 22px, #2f6b3a 10px, transparent 11px) 0 0 / 20px 22px repeat-x; }
/* Caves */
.scene--caves .cave-bg { background: radial-gradient(120% 80% at 50% 100%, #2a1a40 0%, #140d22 55%, #0a0612 100%); }
.torch { background: radial-gradient(circle 46vmax at var(--mx, 50%) var(--my, 55%), rgba(255, 220, 160, .06) 0 12%, transparent 26%, rgba(6, 3, 12, .35) 55%, rgba(4, 2, 8, .7) 85%); }
/* Core */
.scene--core .core-bg { background: radial-gradient(120% 70% at 50% 110%, #ff7a2b 0%, #c2341c 30%, #5a1218 60%, #1a0710 100%); }

/* ---------- copy ---------- */
.copy { position: absolute; z-index: 5; will-change: transform, opacity; }
.copy--hero { left: var(--gutter); top: 18vh; max-width: 760px; }
.copy--center { left: 0; right: 0; top: 36vh; text-align: center; padding: 0 var(--gutter); }
.copy--left { left: var(--gutter); top: 18vh; max-width: 560px; }
.copy--wide { max-width: 680px; }
.copy--right { right: var(--gutter); top: 18vh; width: min(560px, 46vw); }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 0 0 18px; }
.kicker i { width: 22px; height: 1px; background: currentColor; }
.copy--center .kicker { justify-content: center; }
.title { font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 11vw, 176px); line-height: .88; letter-spacing: -.045em; margin: 0 0 24px; text-shadow: 0 10px 40px rgba(40, 20, 80, .35); }
.big { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 7vw, 112px); line-height: .92; letter-spacing: -.04em; margin: 0 0 20px; text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.title em, .big em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 40ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s; }
.btn:hover { transform: translateY(-2px); background: var(--cream); color: var(--ink); }
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); box-shadow: 0 12px 30px -10px rgba(255, 207, 107, .7); }
.scrollhint { position: absolute; z-index: 5; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--cream); }
.scrollhint span { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.label { color: var(--gold); display: block; margin-bottom: 8px; }
.code h4 { font-family: var(--f-display); font-size: 18px; margin: 0 0 6px; letter-spacing: -.02em; }
.code p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.phases { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 5; right: var(--gutter); top: 0; bottom: 0; width: min(460px, 42vw); }
.phase { position: absolute; left: 0; right: 0; top: 30vh; padding: 22px 24px; }
.phase .mono { color: var(--gold); }
.phase h3 { font-family: var(--f-display); font-size: 30px; letter-spacing: -.03em; margin: 8px 0 8px; }
.phase p { margin: 0; color: var(--muted); line-height: 1.55; }

.zo { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px; margin: 0; max-width: 440px; }
.zo__pic { width: 96px; height: 148px; border-radius: 12px; background: #120c18 url("assets/zo-turnaround.webp") no-repeat; background-size: 365px auto; background-position: -3px -20px; }
.zo h3 { font-family: var(--f-display); font-size: 24px; margin: 0 0 4px; }
.zo p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.code { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code .card { padding: 18px; }
.code .mono { color: var(--gold); display: block; margin-bottom: 8px; }

/* ---------- generated bits ---------- */
.fly { position: absolute; border-radius: 50%; background: #fff4b0; box-shadow: 0 0 10px 3px rgba(255, 240, 150, .7); animation: fly var(--d, 6s) ease-in-out infinite alternate; }
@keyframes fly { to { transform: translate(var(--fx, 20px), var(--fy, -30px)); opacity: .25; } }
.ember { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffd08a; box-shadow: 0 0 10px 2px rgba(255, 140, 60, .8); animation: rise var(--d, 6s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--fx, 30px), -100vh); opacity: 0; } }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: #1a0710; padding: 60px var(--gutter) 34px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.foot img { width: min(360px, 70%); height: auto; filter: drop-shadow(0 10px 30px rgba(255, 90, 60, .35)); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot nav a:hover { color: var(--cream); }
.foot p { color: var(--muted); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hud { grid-template-columns: auto 1fr; }
  .hud__nav { display: none; }
  .hud__level { justify-self: end; }
  .copy--left, .copy--hero { right: var(--gutter); top: 14vh; }
  .copy--right { left: var(--gutter); right: var(--gutter); width: auto; top: 14vh; }
  .phases { left: var(--gutter); right: var(--gutter); width: auto; }
  .phase { top: 46vh; }
  .code { grid-template-columns: 1fr; }
  .code .card:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  .hud__logo img { width: 84px; }
  .hud__level { padding: 7px 12px; }
  .hud__level b { font-size: 13px; }
  .zo { grid-template-columns: 72px 1fr; } .zo__pic { width: 72px; height: 112px; background-size: 275px auto; background-position: -2px -15px; }
}
@media (prefers-reduced-motion: reduce) { .fly, .ember, .scrollhint span { animation: none; } }

.scene--core .big { font-size: clamp(40px, 5.6vw, 92px); }
.scene--core .copy--left { max-width: 46vw; }
@media (max-width: 900px) { .scene--core .copy--left { max-width: none; } }

/* =================== v2: games, dig meter, Zo, grotto, forms =================== */
/* Woods intro: three icons fanned */
.trio { position: absolute; z-index: 4; right: var(--gutter); top: 50%; width: min(40vw, 58vh, 480px); aspect-ratio: 1; margin-top: calc(min(40vw, 58vh, 480px) / -2); }
.trio__i { position: absolute; width: 62%; height: auto; left: 19%; top: 19%; border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: transform .6s var(--ease); }
.trio__i--1 { transform: translate(-34%, -8%) rotate(-14deg); }
.trio__i--3 { transform: translate(34%, -8%) rotate(14deg); }
.trio__i--2 { transform: translateY(10%) scale(1.06); z-index: 2; }

/* Woods: one game per beat */
.show { position: absolute; z-index: 5; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 5vw, 90px); padding: 92px var(--gutter) 60px; pointer-events: none; }
.show--flip .show__art { order: 2; }
.show__art { position: relative; justify-self: center; width: min(36vw, 60vh, 460px); aspect-ratio: 1; }
.show__art::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .5) 0%, rgba(var(--glow), .14) 40%, transparent 68%); filter: blur(10px); }
.show__art img { position: relative; width: 100%; height: auto; border-radius: 22%; box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.show__tag { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--gold); border: 1px solid var(--line); padding: 8px 12px; border-radius: 99px; font-size: 10px; }
.show__body { max-width: 560px; }
.show--flip .show__body { justify-self: end; }
.show__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5.2vw, 84px); line-height: .92; letter-spacing: -.04em; margin: 0 0 18px; text-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.show__name em { font-style: normal; color: rgb(var(--glow)); }
.show__body > p:not(.kicker):not(.plat) { color: var(--muted); line-height: 1.6; font-size: clamp(15px, 1.15vw, 17px); margin: 0 0 18px; }
.plat { color: var(--cream); opacity: .8; margin: 0; display: flex; align-items: center; gap: 10px; }
.plat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 12px 2px rgba(var(--glow), .8); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.chips li { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.chips--big li { font-size: 14px; padding: 9px 14px; }

/* Under: dig meter */
.dig { list-style: none; margin: 8px 0 0 6px; padding: 0 0 0 22px; border-left: 2px solid rgba(255, 255, 255, .14); display: grid; gap: 14px; }
.dig li { position: relative; display: flex; gap: 14px; align-items: baseline; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 26px); color: rgba(255, 246, 236, .35); transition: color .4s, transform .4s var(--ease); }
.dig li b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; font-weight: 500; }
.dig li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #3d281b; border: 2px solid rgba(255, 255, 255, .25); transition: background .4s, box-shadow .4s, border-color .4s; }
.dig li.on { color: var(--cream); transform: translateX(6px); }
.dig li.on b { color: var(--gold); }
.dig li.on::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 16px 4px rgba(255, 207, 107, .6); }

/* Caves: big Zo on the right */
.zobig { position: absolute; z-index: 3; margin: 0; right: calc(var(--gutter) + 2vw); bottom: 11vh; width: min(30vw, 52vh, 380px); }
.zobig img { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(255, 60, 60, .35)); }
.zobig figcaption { text-align: center; color: var(--gold); margin-top: -6px; }
.scene--caves .copy--left { max-width: min(520px, 44vw); }

/* Grotto */
.scene--grotto .grotto-bg { background: radial-gradient(110% 70% at 50% 100%, #0f4a55 0%, #0a2a3a 40%, #061420 75%, #03080e 100%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-weight: 600; font-size: 16px; }
.steps b { font-family: var(--f-mono); font-size: 11px; color: #8ff6ff; letter-spacing: .14em; }
.scene--grotto .kicker, .scene--grotto .big em, .scene--grotto .label { color: #8ff6ff; }
.scene--grotto .btn--solid:hover { background: #8ff6ff; border-color: #8ff6ff; box-shadow: 0 12px 30px -10px rgba(143, 246, 255, .7); }
.scene--grotto .copy--left { max-width: min(520px, 42vw); }

/* Core */
.scene--core .copy--left { max-width: min(520px, 42vw); }
.aside { color: var(--muted); margin: 4px 0 0; }
.aside a { color: var(--gold); font-weight: 700; text-decoration: none; }
.aside a:hover { text-decoration: underline; }

/* Forms */
.sendform { padding: 22px 24px; display: grid; gap: 12px; top: 15vh; width: min(540px, 46vw); }
.sendform .label { margin: 0; }
.sendform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sendform label { display: grid; gap: 6px; min-width: 0; }
.sendform label .mono { font-size: 10px; color: var(--muted); }
.sendform input, .sendform textarea, .sendform select { font: 500 15px var(--f-body); color: var(--cream); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; transition: border-color .2s, background .2s; }
.sendform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.sendform select option { background: #1a1230; color: var(--cream); }
.sendform input::placeholder, .sendform textarea::placeholder { color: rgba(255, 246, 236, .35); }
.sendform textarea { resize: vertical; min-height: 84px; }
.sendform input:focus, .sendform textarea:focus, .sendform select:focus { outline: none; border-color: var(--gold); background-color: rgba(0, 0, 0, .4); }
.scene--grotto .sendform input:focus, .scene--grotto .sendform textarea:focus, .scene--grotto .sendform select:focus { border-color: #8ff6ff; }
.sendform .is-bad { border-color: var(--accent); }
.sendform .btn { justify-self: start; }
.sendform .btn[disabled] { opacity: .6; pointer-events: none; }
.fine { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 246, 236, .5); }
.form__msg { margin: 0; min-height: 1.2em; font-weight: 600; color: var(--gold); }
.form__msg.is-err { color: #ff9a9a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 99px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* short desktop screens */
@media (min-width: 901px) and (max-height: 800px) {
  .sendform { top: 90px; gap: 9px; padding: 18px 20px; }
  .sendform textarea { min-height: 64px; }
  .sendform input, .sendform textarea, .sendform select { padding: 9px 12px; }
  .show { padding-top: 84px; }
  .show__body > p:not(.kicker):not(.plat) { font-size: 14.5px; line-height: 1.5; }
}

@media (max-width: 900px) {
  .trio { right: 50%; margin-right: calc(min(70vw, 34vh) / -2); width: min(70vw, 34vh); top: auto; bottom: 6vh; margin-top: 0; }
  .show { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: 84px; }
  .show--flip .show__art { order: 0; }
  .show--flip .show__body { justify-self: start; }
  .show__art { width: min(46vw, 26vh); justify-self: start; }
  .show__art::before { inset: -14%; }
  .show__body > p:not(.kicker):not(.plat) { font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .show__name { font-size: clamp(36px, 10vw, 56px); margin-bottom: 12px; }
  .show__body .kicker { margin-bottom: 10px; }
  .zobig { right: 50%; margin-right: calc(min(58vw, 40vh) / -2); width: min(58vw, 40vh); bottom: 4vh; }
  .scene--caves .copy--left, .scene--grotto .copy--left, .scene--core .copy--left { max-width: none; }
  .sendform { left: var(--gutter); right: var(--gutter); width: auto; top: 76px; gap: 9px; padding: 16px; }
  .sendform .row { gap: 9px; }
  .sendform textarea { min-height: 64px; }
  .sendform .fine { font-size: 11px; }
  .scene--caves .copy--right { top: 76px; }
}
@media (max-width: 600px) {
  .zo { display: none; }
  .sendform .row { grid-template-columns: 1fr; }
}

/* v2 tune-ups */
.hud__nav { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hud__nav a { padding: 7px 13px; }
.scene--under .big, .scene--caves .big, .scene--grotto .big, .scene--core .big { font-size: clamp(40px, 5.2vw, 88px); }
.scene--under .copy--wide { max-width: min(600px, 50vw); }
.scene--under .big { font-size: clamp(38px, 4.7vw, 84px); }
@media (min-width: 901px) { .phase { top: 34vh; } .trio { width: min(36vw, 54vh, 460px); margin-top: calc(min(36vw, 54vh, 460px) / -2); } }
.scene--woods .big { font-size: clamp(40px, 5.6vw, 96px); }
@media (max-width: 900px) { .scene--caves .copy--right { top: 92px; } .zobig { bottom: 9vh; } .sendform { top: 84px; } }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 480px; }
.stats li { padding: 16px 16px 14px; display: grid; gap: 6px; }
.stats b { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.03em; color: var(--gold); }
.stats span { color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 600px) { .stats { gap: 8px; } .stats li { padding: 12px; } .stats span { font-size: 12px; } }

/* =================== v3 polish =================== */
/* film grain + soft vignette for depth */
body::after { content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scene__sticky::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(5, 2, 12, .45) 100%); }

/* headline accents get a warm gradient */
.title em, .big em, .foot__tag em { background: linear-gradient(100deg, #ffe7a0 0%, #ffc768 55%, #ff9f5c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.scene--grotto .big em { background: linear-gradient(100deg, #b9fbff, #6fe3ff 55%, #b79bff); -webkit-background-clip: text; background-clip: text; }

/* Dawn: dusk settles over the ground, fireflies wake, three promises */
.scene--dawn .dusk { background: radial-gradient(90% 60% at 50% 55%, rgba(255, 170, 120, .16), transparent 70%), linear-gradient(180deg, rgba(27, 19, 54, 0) 0%, rgba(14, 22, 38, .55) 100%); }
.pillars { list-style: none; margin: 34px auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pillars li { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 99px; background: rgba(255, 246, 236, .07); border: 1px solid var(--line); font-weight: 700; font-size: 15px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pillars b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 11px var(--f-mono); }

/* Woods: moon moves out from behind the game icons */
.scene--woods .moon { justify-items: start; padding: 3vh 0 0 53vw; }
.moon span { background: radial-gradient(circle at 30% 34%, rgba(0, 0, 0, .07) 0 7%, transparent 8%), radial-gradient(circle at 62% 60%, rgba(0, 0, 0, .06) 0 10%, transparent 11%), radial-gradient(circle at 58% 28%, rgba(0, 0, 0, .05) 0 5%, transparent 6%), radial-gradient(circle at 38% 35%, #fbfbf2, #d8e6df 55%, #b7cfc8); }
.trio::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 70, .35), rgba(190, 110, 255, .12) 45%, transparent 68%); filter: blur(14px); }
.show__art img { transition: transform .5s var(--ease); }
.show__art::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -9%; height: 10%; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(14px); z-index: -1; }

/* Cards: readable over busy art, with a lit top edge */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%), var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.scene--caves .card { --card: rgba(13, 8, 26, .74); }
.scene--caves .code .card { border-color: rgba(160, 230, 255, .18); }
.scene--caves .code .mono, .scene--caves .stats b { color: #9ff0ff; text-shadow: 0 0 18px rgba(127, 233, 255, .55); }
.stats b { text-shadow: 0 0 22px rgba(255, 207, 107, .35); }
.sendform { --card: rgba(10, 8, 22, .62); }
.scene--core .sendform { --card: rgba(30, 8, 12, .62); border-color: rgba(255, 150, 100, .2); }

/* Buttons: a little more life */
.btn--solid { box-shadow: 0 14px 30px -12px rgba(255, 207, 107, .55); }
.btn { transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s; }
.btn:hover { transform: translateY(-2px); }

/* Footer: tagline + glow seam with the lava */
.foot { background: radial-gradient(70% 120% at 50% 0%, #3a0f12 0%, #1a0710 60%); padding-top: 80px; }
.foot img { order: 0; }
.foot .foot__tag { order: 1; color: var(--cream); margin: -6px 0 6px; font: 800 clamp(24px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.035em; }
.foot__tag em { white-space: nowrap; }
.foot nav { order: 2; }
.foot p.mono { order: 3; }

@media (max-width: 900px) {
  .scene--woods .moon { padding: 50vh 0 0 76vw; }
  .pillars { flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
  .pillars li { font-size: 14px; padding: 9px 16px 9px 9px; }
  .pillars b { width: 28px; height: 28px; }
}
/* soft scrim behind the HUD so content never collides with the logo */
.hud::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 4, 16, .55), rgba(8, 4, 16, 0)); }

/* =================== Level 06 · The Mines (hiring) =================== */
.scene--mines .mine-bg { background: radial-gradient(60% 50% at 50% 60%, #6a3a1a 0%, #3a1f10 35%, #1c0f08 70%, #0c0604 100%); }
.scene--mines .kicker, .scene--mines .label { color: #ffb35c; }
.scene--mines .big em { background: linear-gradient(100deg, #ffd27a, #ff9a3c 60%, #ff6a3c); -webkit-background-clip: text; background-clip: text; }
.scene--mines .copy--left { max-width: min(520px, 42vw); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.perks b { color: #ffb35c; text-shadow: 0 0 12px rgba(255, 179, 92, .8); }

.roles { display: grid; gap: 12px; }
.roles .kicker { margin-bottom: 4px; }
.role { --card: rgba(24, 12, 6, .72); display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 18px 18px 22px; border-color: rgba(255, 179, 92, .18); transition: border-color .25s, transform .3s var(--ease); }
.role:hover { border-color: rgba(255, 179, 92, .55); transform: translateX(-4px); }
.role h4 { font-family: var(--f-display); font-size: 20px; letter-spacing: -.02em; margin: 0 0 4px; }
.role .mono { color: #ffb35c; margin: 0 0 8px; font-size: 10px; }
.role p:not(.mono) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.role .btn { flex: none; padding: 10px 18px; }
.role .btn:hover { background: #ffb35c; border-color: #ffb35c; color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 700; }
.linkish:hover { text-decoration: underline; }
.scene--mines .sendform { --card: rgba(24, 12, 6, .7); border-color: rgba(255, 179, 92, .2); }
.scene--mines .sendform input:focus, .scene--mines .sendform textarea:focus, .scene--mines .sendform select:focus { border-color: #ffb35c; }

@media (min-width: 901px) and (max-height: 800px) {
  .role { padding: 14px 14px 14px 18px; }
  .role h4 { font-size: 18px; }
  .roles { gap: 9px; top: 104px; }
}
@media (max-width: 900px) {
  .scene--mines .copy--left { max-width: none; }
  .roles { left: var(--gutter); right: var(--gutter); width: auto; top: 96px; gap: 9px; }
  .role { padding: 14px; gap: 12px; }
  .role h4 { font-size: 17px; }
  .role p:not(.mono) { font-size: 13px; }
  .role .btn { padding: 9px 14px; }
}
@media (max-width: 600px) { .perks { grid-template-columns: 1fr 1fr; gap: 8px; } .perks li { font-size: 14px; } }

/* =================== HD rendering =================== */
/* will-change pins a layer's raster at its first size, so anything that scales (sun, mine frames) or holds text would stay soft. Let the browser re-raster those crisply. */
.copy, .layer[data-s] { will-change: auto; }
body { text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; }

/* =====================================================================
   PAPERCUT / CARDBOARD DIORAMA
   Every scene is a shadow box: layers of cut card stood one in front of
   the next, inside a kraft-cardboard frame, under a paper-fibre texture.
   ===================================================================== */
:root {
  --fw: clamp(8px, 1.1vw, 16px);      /* cardboard frame width */
  --kraft: #c09062;
  --kraft-dk: #8f6438;
  --paper: #f5ead6;                    /* cream card stock */
  --paper-ink: #2a1d14;
  --card: #2a2040;
}

/* paper fibre over everything (replaces the film grain) */
body::after { opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.1 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .04' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .9 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23q)'/%3E%3C/svg%3E"); }

/* the cardboard shadow-box frame around the viewport */
.shadowbox { position: fixed; inset: 0; z-index: 44; pointer-events: none;
  box-shadow: inset 0 0 0 var(--fw) var(--kraft), inset 0 0 0 calc(var(--fw) + 2px) var(--kraft-dk), inset 0 calc(var(--fw) + 6px) 22px -4px rgba(0, 0, 0, .55), inset 0 0 70px rgba(0, 0, 0, .35); }
.shadowbox::before { content: ""; position: absolute; inset: 0; padding: var(--fw);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px), linear-gradient(180deg, #cfa071, #b5844f);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.shadowbox::after { content: ""; position: absolute; inset: var(--fw); border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.hud { padding: calc(10px + var(--fw)) calc(var(--gutter) + 4px) 12px; }
.hud__bar { left: var(--fw); right: var(--fw); }
.depth { bottom: calc(14px + var(--fw)); right: calc(var(--gutter) + 4px); }
.hud::before { background: linear-gradient(180deg, rgba(8, 4, 16, .4), rgba(8, 4, 16, 0)); }

/* sun + moon: flat paper discs with cut-paper halo rings */
.sun span { background: #ffe9ba; box-shadow: 0 0 0 clamp(10px, 1.6vw, 22px) rgba(255, 214, 165, .55), 0 0 0 clamp(22px, 3.4vw, 46px) rgba(255, 196, 160, .3), 0 6px 14px rgba(80, 30, 40, .25); }
.moon span { background: radial-gradient(circle at 30% 34%, #d9d6c4 0 7%, transparent 7.5%), radial-gradient(circle at 63% 60%, #dcd9c7 0 10%, transparent 10.5%), radial-gradient(circle at 58% 27%, #dedbc9 0 5%, transparent 5.5%), #f3f0e1;
  box-shadow: 0 0 0 clamp(8px, 1.2vw, 16px) rgba(220, 240, 230, .14), 0 0 0 clamp(18px, 2.6vw, 34px) rgba(220, 240, 230, .07), 0 8px 16px rgba(0, 0, 0, .35); }
.scene--dawn .dusk { background: linear-gradient(180deg, rgba(27, 19, 54, 0) 0%, rgba(14, 22, 38, .45) 100%); }

/* headlines: solid colour, stacked like cut-out card letters */
.title em, .big em, .foot__tag em, .scene--grotto .big em, .scene--mines .big em { background: none; -webkit-text-fill-color: currentColor; }
.title, .big, .show__name { text-shadow: 0 2px 0 rgba(0, 0, 0, .16), 0 5px 0 rgba(0, 0, 0, .1), 0 12px 22px rgba(0, 0, 0, .28); }
.scene--grotto .big em { color: #8ff6ff; }
.scene--mines .big em { color: #ffb35c; }

/* cards are solid card stock now: no glass, a real paper shadow */
.card { background: var(--card); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 rgba(0, 0, 0, .3), 0 14px 22px -8px rgba(0, 0, 0, .6); }
.scene--under { --card: #4f3324; }
.scene--caves { --card: #21183a; }
.scene--caves .card { --card: #21183a; }
.scene--grotto { --card: #0f3a44; }
.scene--mines { --card: #3d2616; }
.scene--mines .role, .scene--mines .sendform { --card: #3d2616; }
.scene--core { --card: #4a1519; }
.scene--core .sendform { --card: #4a1519; }
.sendform { --card: inherit; }
.scene--grotto .sendform { --card: #0f3a44; }
.sendform input, .sendform textarea, .sendform select { background-color: rgba(0, 0, 0, .25); border: 0; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .08); }
.sendform .is-bad { box-shadow: inset 0 0 0 2px var(--accent); }
.sendform input:focus, .sendform textarea:focus, .sendform select:focus { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 0 0 2px var(--gold); }

/* HUD pills + chips + tags: cream card stock */
.hud__level, .hud__nav { background: var(--paper); color: var(--paper-ink); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 2px 0 #cdb894, 0 8px 16px -6px rgba(0, 0, 0, .5); }
.hud__level .mono { color: #b4502e; }
.hud__nav a:hover { background: var(--paper-ink); color: var(--paper); }
.chips li, .pillars li { background: var(--paper); color: var(--paper-ink); border: 0; backdrop-filter: none; box-shadow: 0 2px 0 #cdb894, 0 6px 12px -6px rgba(0, 0, 0, .5); }
.pillars b { background: #b4502e; color: var(--paper); }
.show__tag { background: var(--paper); color: #b4502e; border: 0; box-shadow: 0 2px 0 #cdb894; }

/* buttons: thick card with a pressed-down edge */
.btn { border: 0; backdrop-filter: none; background: rgba(20, 10, 30, .35); box-shadow: inset 0 0 0 2px rgba(245, 234, 214, .7); }
.btn:hover { background: var(--paper); color: var(--paper-ink); box-shadow: 0 3px 0 #cdb894; }
.btn--solid, .scene--grotto .btn--solid:hover { background: var(--paper); color: var(--paper-ink); box-shadow: 0 4px 0 #c6ad84, 0 12px 18px -8px rgba(0, 0, 0, .55); }
.btn--solid:hover { background: #ffe3a3; border: 0; box-shadow: 0 6px 0 #d4a95e, 0 16px 22px -8px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c6ad84; }

/* game icons mounted on card stock */
.show__art img, .trio__i { box-shadow: 0 0 0 clamp(5px, .6vw, 8px) var(--paper), 0 3px 0 clamp(5px, .6vw, 8px) #cdb894, 0 26px 34px -12px rgba(0, 0, 0, .7); }
.show__art::before { background: radial-gradient(circle, rgba(var(--glow), .32) 0%, rgba(var(--glow), .1) 42%, transparent 66%); }

/* fireflies: paper confetti dots with only a soft glow */
.fly { box-shadow: 0 0 6px 1px rgba(255, 240, 150, .5); }

/* footer: kraft card */
.foot { background: radial-gradient(70% 120% at 50% 0%, #3a1512 0%, #1d0d0a 60%); }

@media (max-width: 900px) {
  :root { --fw: 6px; }
}

/* Zo: full-body render, cut out like a paper sticker standing in the cave */
.zobig { width: min(34vw, 60vh, 440px); }
.zobig img { filter: drop-shadow(3px 0 0 var(--paper)) drop-shadow(-3px 0 0 var(--paper)) drop-shadow(0 3px 0 var(--paper)) drop-shadow(0 -3px 0 var(--paper)) drop-shadow(0 16px 20px rgba(0, 0, 0, .65)); }
.zobig figcaption { margin-top: 10px; }

/* footer socials: card-stock buttons */
.foot .socials { order: 4; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 99px; background: var(--paper); color: var(--paper-ink); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 #c6ad84, 0 12px 18px -8px rgba(0, 0, 0, .6); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.social svg { width: 22px; height: 22px; flex: none; }
.social:hover { transform: translateY(-2px); background: #ffe3a3; box-shadow: 0 6px 0 #d4a95e, 0 16px 22px -8px rgba(0, 0, 0, .6); }
.social:active { transform: translateY(2px); box-shadow: 0 1px 0 #c6ad84; }
.social:first-child:hover { color: #c1355b; }
.social:last-child:hover { color: #0a66c2; }
@media (max-width: 900px) { .zobig { width: min(64vw, 42vh); margin-right: calc(min(64vw, 42vh) / -2); } }
@media (max-width: 900px) { .foot { padding-bottom: 76px; } }

/* =================== footer v2: brand, link columns, base bar =================== */
.foot.foot--v2 { display: block; text-align: left; padding: 80px var(--gutter) calc(30px + var(--fw)); }
.foot--v2 .foot__brand { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: 56px; }
.foot--v2 .foot__brand img { width: min(300px, 64%); }
.foot--v2 .foot__tag { margin: 6px 0 0; }
.foot--v2 .foot__blurb { max-width: 46ch; color: var(--muted); line-height: 1.55; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; padding: 30px 0 34px; border-top: 2px dashed rgba(255, 246, 236, .12); border-bottom: 2px dashed rgba(255, 246, 236, .12); }
.foot--v2 .foot__cols nav { display: grid; gap: 10px; align-content: start; justify-content: start; }
.foot__cols h3 { margin: 0 0 6px; color: var(--gold); font-weight: 500; }
.foot--v2 .foot__cols a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot--v2 .foot__cols a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot--v2 .foot__cols .foot__mail { color: var(--paper); font-weight: 700; white-space: nowrap; }
.foot__base { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: 1100px; margin: 26px auto 0; }
.foot--v2 .foot__base p { margin: 0; color: var(--muted); }
.foot--v2 .socials { margin: 0; }
@media (max-width: 900px) {
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .foot__base { flex-direction: column; text-align: center; }
  .foot.foot--v2 { padding-bottom: 80px; }
}
.foot--v2 .foot__brand img { order: 0; } .foot--v2 .foot__tag { order: 1; } .foot--v2 .foot__blurb { order: 2; }
.foot.foot--v2 { padding-bottom: calc(76px + var(--fw)); }
@media (max-width: 420px) { .foot--v2 .foot__cols a { font-size: 14px; } .foot__cols { column-gap: 16px; } }
@media (min-width: 901px) and (max-height: 800px) { .sendform { top: 104px; } }

/* big monitors: let headlines run wide instead of stacking word-per-line */
@media (min-width: 1400px) {
  .copy--hero { max-width: min(1240px, 80vw); }
  .scene--under .copy--wide { max-width: min(780px, 48vw); }
  .scene--caves .copy--left, .scene--grotto .copy--left, .scene--core .copy--left, .scene--mines .copy--left, .scene--woods .copy--left { max-width: min(700px, 42vw); }
}

/* forms and the roles list never run off screen: they scroll inside their card if space runs out */
.sendform, .roles { max-height: calc(100svh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* =================== phones turned sideways (and other very short screens) =================== */
@media (max-height: 520px) and (orientation: landscape) {
  .hud { padding: calc(6px + var(--fw)) calc(var(--gutter) + 4px) 6px; }
  .hud__logo img { width: 62px; }
  .hud__level { padding: 5px 12px; }
  .hud__nav a { padding: 5px 10px; font-size: 13px; }
  .depth { display: none; }
  .scrollhint { display: none; }
  .kicker { margin-bottom: 8px; }
  .copy--left, .copy--right { top: 58px; }
  .copy--hero { top: 56px; }
  .title { font-size: clamp(36px, 12.5vh, 72px); margin-bottom: 10px; }
  .big, .scene--under .big, .scene--caves .big, .scene--grotto .big, .scene--core .big, .scene--woods .big { font-size: clamp(28px, 10.5vh, 56px); margin-bottom: 10px; }
  .lede, .copy--hero .lede { font-size: 13.5px; line-height: 1.45; margin-bottom: 12px; max-width: 62ch; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .ctas { gap: 10px; }
  .copy--center { top: 22vh; }
  .pillars { flex-direction: row; flex-wrap: wrap; margin-top: 10px; gap: 8px; }
  .pillars li { font-size: 12px; padding: 6px 12px 6px 6px; }
  .pillars b { width: 22px; height: 22px; font-size: 9px; }

  /* woods: heading left, icons right; each game = art beside text */
  .scene--woods .copy--left { right: auto; max-width: 54vw; }
  .trio { width: min(30vw, 58vh); right: var(--gutter); margin: calc(min(30vw, 58vh) / -2) 0 0; top: 56%; bottom: auto; }
  .show { grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 26px; padding: 56px calc(var(--gutter) + 4px) 12px; }
  .show--flip .show__art { order: 0; }
  .show--flip .show__body { justify-self: start; }
  .show__art { width: min(28vw, 54vh); justify-self: start; }
  .show__name { font-size: clamp(28px, 10vh, 48px); margin-bottom: 8px; }
  .show__body .kicker { margin-bottom: 6px; }
  .chips { margin-bottom: 8px; gap: 6px; }
  .chips li { font-size: 11px; padding: 5px 9px; }
  .show__body > p:not(.kicker):not(.plat) { font-size: 13px; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .show__tag { display: none; }

  /* under */
  .dig { display: none; }
  .phase { top: 28vh; padding: 14px 18px; }
  .phase h3 { font-size: 22px; margin: 4px 0; }
  .phase p { font-size: 13.5px; }

  /* caves */
  .scene--caves .copy--left { right: auto; max-width: 58vw; }
  .stats { gap: 8px; } .stats li { padding: 10px; } .stats b { font-size: 24px; } .stats span { font-size: 11px; }
  .zobig { right: var(--gutter); margin-right: 0; width: min(26vw, 60vh); bottom: 3vh; }
  .code { grid-template-columns: 1fr 1fr; gap: 8px; }
  .code .card { padding: 12px; }
  .code .card:nth-child(n+3) { display: block; }
  .code h4 { font-size: 15px; margin-bottom: 4px; } .code p { font-size: 12.5px; line-height: 1.4; }

  /* grotto, mines, core */
  .steps li { font-size: 14px; } .steps { gap: 6px; }
  .perks { gap: 6px; } .perks li { font-size: 13px; }
  .chips--big li { font-size: 12px; padding: 6px 10px; }
  .sendform, .roles { top: 56px; max-height: calc(100svh - 66px); }
  .sendform { gap: 8px; padding: 14px 16px; }
  .sendform .row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sendform input, .sendform textarea, .sendform select { padding: 8px 11px; font-size: 14px; }
  .sendform textarea { min-height: 54px; }
  .sendform .fine { display: none; }
  .roles { gap: 8px; }
  .role { padding: 10px 12px; }
  .role p:not(.mono) { display: none; }
  .role .mono { margin: 0; }
}
@media (max-height: 520px) and (orientation: landscape) { .copy--left, .copy--right, .copy--hero { top: 68px; } .hud__logo img { width: 56px; } }
@media (min-width: 901px) { .copy--hero { max-width: min(1240px, 88vw); } .title { font-size: clamp(64px, min(11vw, 17vh), 176px); } }

/* =================== fit fixes from the all-sizes audit =================== */
/* stats tiles never push past their column; under/caves columns leave room for the right side */
.stats { max-width: min(480px, 100%); }
@media (min-width: 901px) {
  .scene--under .copy--wide { max-width: min(600px, 46vw); }
  .scene--caves .copy--left { max-width: min(520px, 42vw); }
  .scene--caves .copy--right { width: min(560px, 44vw); }
}
@media (min-width: 1400px) {
  .scene--under .copy--wide { max-width: min(780px, 46vw); }
  .scene--caves .copy--left { max-width: min(700px, 42vw); }
}

/* phones */
@media (max-width: 900px) {
  .dig { display: none; }                       /* the dig meter only matters when the copy stays on screen (desktop) */
  .title { font-size: clamp(44px, min(15vw, 11vh), 96px); }
  .copy--center { top: max(84px, 24vh); }
  /* Zo shrinks to whatever room is left under the crew text */
  .zobig { width: clamp(110px, calc((82vh - 380px) / 1.18), min(64vw, 42vh)); margin-right: calc(clamp(110px, calc((82vh - 380px) / 1.18), min(64vw, 42vh)) / -2); bottom: 2vh; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .pillars { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
  .pillars li { font-size: 12px; padding: 6px 12px 6px 6px; gap: 8px; }
  .pillars b { width: 22px; height: 22px; font-size: 9px; }
  .copy--center .big { font-size: clamp(34px, 10vw, 56px); }
  .stats li { padding: 10px; } .stats b { font-size: 24px; } .stats span { font-size: 11px; }
  .scene--caves .lede { margin-bottom: 14px; }
}
@media (max-width: 900px) and (max-height: 600px) {
  .lede { font-size: 14.5px; line-height: 1.5; margin-bottom: 16px; }
  .copy--hero .ctas { gap: 8px; }
  .btn { padding: 11px 16px; font-size: 14px; }
}

/* short landscape screens: wide desktop layout keeps both columns side by side */
@media (max-height: 520px) and (orientation: landscape) and (min-width: 901px) {
  .scene--woods .copy--left { max-width: min(560px, 46vw); }
  .scene--caves .copy--left { max-width: 42vw; right: auto; }
  .scene--caves .copy--right { width: 46vw; }
  .zobig { right: calc(var(--gutter) + 2vw); width: min(24vw, 56vh); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .sendform, .roles { top: 64px; max-height: calc(100svh - 76px); }
}

/* iPhone/iPad zoom into any form field with text under 16px; keep fields at 16px on touch and small screens */
@media (max-width: 900px), (pointer: coarse) { .sendform input, .sendform select, .sendform textarea { font-size: 16px; } }
.nojs-note { color: var(--cream); font-weight: 600; }
.nojs-note a { color: var(--gold); }
@media (max-width: 900px) {
  .zobig { width: clamp(100px, calc((82vh - 410px) / 1.18), min(64vw, 42vh)); margin-right: calc(clamp(100px, calc((82vh - 410px) / 1.18), min(64vw, 42vh)) / -2); }
}
@media (max-width: 900px) and (max-height: 600px) {
  .show { gap: 14px; }
  .show__art { width: min(40vw, 20vh); }
  .show__body > p:not(.kicker):not(.plat) { -webkit-line-clamp: 3; }
}
@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) { .zobig { right: var(--gutter); margin-right: 0; width: min(26vw, 60vh); } }
@media (max-width: 380px) {
  .depth { display: none; }
  .hud__level { white-space: nowrap; gap: 8px; padding: 6px 10px; }
  .hud__level .mono { font-size: 9px; letter-spacing: .1em; }
  .hud__level b { font-size: 12px; }
}
.zobig figcaption { white-space: nowrap; margin-left: -40px; margin-right: -40px; }
