/* The Tank: a Shark Tank set, lit by gaslight, in the early republic.
   Everything is sized in cqw (percent of the 16:9 screen width) so it reads the same on a
   projector, a laptop and a Chromebook. */

:root {
  --night: #07090c;
  --tank: #0b2230;          /* the blue wash of the set */
  --tank-2: #12394b;
  --water: #2b8fa8;
  --wood: #3a2415;
  --wood-2: #5a3822;
  --brass: #c9a54a;
  --brass-2: #f0d27a;
  --cream: #f4ead3;
  --paper: #efe3c6;
  --ink: #1b1410;
  --red: #b3342e;
  --green: #4f8a4a;
  --muted: #a99f8c;
  --display: 'Rye', 'Playfair Display', Georgia, serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* 16:9 screen, letterboxed */
.screen {
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  container-type: size;
  overflow: hidden;
  background: var(--tank);
  font-size: 1.6cqw;
}

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 0.25cqw solid var(--brass-2); outline-offset: 0.2cqw; }

/* ---------- the set ---------- */
.set { position: absolute; inset: 0; }
.set .wall {            /* patterned wallpaper */
  position: absolute; inset: 0 0 22% 0;
  background:
    radial-gradient(ellipse 45% 65% at 50% 22%, rgba(90,190,220,.18), transparent 70%),
    linear-gradient(180deg, rgba(4,14,20,.1), rgba(4,14,20,.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cg fill='none' stroke='%23d9b04c' stroke-width='1.4'%3E%3Cpath d='M30 0 Q58 18 60 40 Q58 62 30 80 Q2 62 0 40 Q2 18 30 0 Z'/%3E%3C/g%3E%3Cg fill='%23d9b04c'%3E%3Cpath d='M30 29 Q32 38 41 40 Q32 42 30 51 Q28 42 19 40 Q28 38 30 29 Z'/%3E%3Ccircle cx='30' cy='0' r='2.6'/%3E%3Ccircle cx='30' cy='80' r='2.6'/%3E%3Ccircle cx='0' cy='40' r='2.6'/%3E%3Ccircle cx='60' cy='40' r='2.6'/%3E%3Ccircle cx='30' cy='18' r='1.2'/%3E%3Ccircle cx='30' cy='62' r='1.2'/%3E%3Ccircle cx='12' cy='40' r='1.2'/%3E%3Ccircle cx='48' cy='40' r='1.2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 6cqw 8cqw,
    linear-gradient(180deg, #123746 0%, #0e2d3a 60%, #0a222d 100%);
}
.set .wall::before {       /* tone the pattern down so the stage light and emblem stand out */
  content: ''; position: absolute; inset: 0; background: rgba(9,28,37,.7);
}
.set .wall::after {        /* painted wainscot: raised panels, chair rail, baseboard */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 86%, #1a0a07 86%, #2a120d 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='9' y='16' width='82' height='66' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M9 82 V16 H91' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='3'/%3E%3Cpath d='M91 16 V82 H9' fill='none' stroke='rgba(255,220,200,0.16)' stroke-width='3'/%3E%3Cpath d='M15 76 V22 H85' fill='none' stroke='rgba(255,220,200,0.12)' stroke-width='2'/%3E%3Cpath d='M85 22 V76 H15' fill='none' stroke='rgba(0,0,0,0.35)' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 12.5cqw 86% repeat-x,
    linear-gradient(180deg, #6b2a25 0%, #56201c 60%, #3f1613 100%);
  border-top: 1.1cqw solid transparent;
  border-image: linear-gradient(180deg, #e2c16a 0 18%, #8a6a2c 18% 40%, #3b2412 40% 100%) 1;
  box-shadow: 0 -.3cqw .8cqw rgba(0,0,0,.45);
}
.set .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background:
    radial-gradient(ellipse 35% 80% at 30% 0%, rgba(255,220,150,.28), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 0.2cqw, transparent 0.2cqw 6cqw),
    linear-gradient(180deg, #4a2d19, #22140b);
}
.set .lamp { position: absolute; top: 12%; width: 2cqw; height: 5cqw; border-radius: 1cqw 1cqw 0.3cqw 0.3cqw;
  background: linear-gradient(#ffe6a8, #f0b44a); box-shadow: 0 0 4cqw 2cqw rgba(255,200,110,.35); }
.set .lamp { top: 4.5%; width: 1.4cqw; height: 3.4cqw; }
.set .lamp.l { left: 33%; } .set .lamp.r { right: 33%; }
.set .sign {
  position: absolute; top: 3.5%; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-size: 3cqw; letter-spacing: .3cqw; color: var(--brass-2);
  padding: .4cqw 2cqw; border: .3cqw solid var(--brass); border-radius: .4cqw;
  background: rgba(0,0,0,.35); text-shadow: 0 0 1.2cqw rgba(240,210,122,.5);
}
.spot { position: absolute; pointer-events: none; inset: 0;
  background: radial-gradient(ellipse 22% 70% at var(--spot-x, 25%) 55%, rgba(255,236,190,.18), transparent 70%); }

/* ---------- common UI ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: .7em 1.4em; border-radius: .5em; border: .15cqw solid var(--brass);
  background: linear-gradient(180deg, #2a1a0f, #1a100a); color: var(--brass-2);
  font-family: var(--serif); font-weight: 700; font-size: 1.5cqw; letter-spacing: .02em;
  box-shadow: 0 .3cqw 0 #0a0604, 0 0 0 transparent; transition: transform .08s, box-shadow .2s;
}
.btn:hover { box-shadow: 0 .3cqw 0 #0a0604, 0 0 1.5cqw rgba(240,210,122,.25); }
.btn:active { transform: translateY(.2cqw); box-shadow: 0 .1cqw 0 #0a0604; }
.btn.primary { background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: var(--ink); border-color: #7d6224; }
.btn.ghost { background: transparent; border-color: rgba(201,165,74,.5); color: var(--cream); }
.btn.big { font-size: 2cqw; }
.btn.small { font-size: 1.1cqw; padding: .45em .9em; }
.btn[disabled] { opacity: .4; cursor: default; }

.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .25em; font-size: 1.1cqw; color: var(--brass); font-weight: 700; }
.panel {
  background: rgba(5,12,18,.78); border: .15cqw solid rgba(201,165,74,.45); border-radius: .8cqw;
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
.topbar {
  position: absolute; top: 1.4cqw; left: 1.6cqw; right: 1.6cqw; display: flex; justify-content: space-between; align-items: center;
  z-index: 5; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.chip { font-size: 1.05cqw; padding: .35em .8em; border-radius: 99em; background: rgba(0,0,0,.45); border: .1cqw solid rgba(201,165,74,.4); color: var(--cream); }
.chip b { color: var(--brass-2); }
.homebtn { background: none; border: none; color: var(--muted); font-size: 1.05cqw; }
.homebtn:hover { color: var(--cream); }

/* ---------- lobby ---------- */
.lobby { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.marquee { position: relative; padding: 2.4cqw 5cqw 2.2cqw; }
.marquee .bulbs { position: absolute; inset: 0; border: .5cqw solid var(--brass); border-radius: 1.2cqw;
  background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 .5cqw #0b0704, 0 0 3cqw rgba(240,210,122,.25); }
.marquee .bulbs::before { content: ''; position: absolute; inset: .55cqw; border-radius: .8cqw;
  background: radial-gradient(circle, #ffe9a8 0 .28cqw, transparent .32cqw) 0 0 / 1.6cqw 1.6cqw;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  padding: .45cqw; animation: bulbs 1.6s steps(2) infinite; }
@keyframes bulbs { 50% { opacity: .55; } }
.marquee h1 { position: relative; margin: 0; font-family: var(--display); font-weight: 400; font-size: 9cqw; line-height: .95; color: var(--brass-2);
  text-shadow: 0 .4cqw 0 #6b4f1a, 0 0 2.5cqw rgba(240,210,122,.45); letter-spacing: .2cqw; }
.marquee .years { position: relative; font-family: var(--serif); font-size: 2.4cqw; color: var(--cream); letter-spacing: .6cqw; margin-top: .6cqw; }
.lobby .sub { background: rgba(5,12,18,.72); padding: .8cqw 1.6cqw; border-radius: .6cqw; font-size: 1.6cqw; color: var(--cream); max-width: 58cqw; margin: 2.2cqw auto 2.4cqw; line-height: 1.4; }
.lobby .choices { display: flex; gap: 1.6cqw; justify-content: center; flex-wrap: wrap; }
.lobby .meta { margin-top: 1.8cqw; font-size: 1.1cqw; color: var(--muted); }
.fin { position: absolute; bottom: 21%; width: 7cqw; height: 5cqw; background: #1a4a5e; clip-path: polygon(0 100%, 60% 0, 100% 100%); opacity: .7; animation: swim 14s linear infinite; }
@keyframes swim { from { left: -8%; } to { left: 108%; } }

/* ---------- character ---------- */
.actor { position: absolute; bottom: 4%; left: 4%; height: 84%; aspect-ratio: 400 / 520; z-index: 2; transition: left .9s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.actor.offstage { left: -40%; opacity: 0; }
.actor:has(.sprite) { bottom: 0; }
.actor svg.char, .actor .sprite { width: 100%; height: 100%; display: block; overflow: visible; }
.actor .sprite { position: relative; }
.actor .sprite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; visibility: hidden; }
.actor .bob, .actor .sprite { animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.actor.talking .bob, .actor.talking .sprite { animation-duration: 1.6s; }
@keyframes breathe { 50% { transform: translateY(-.4%) scaleY(1.006); } }
.actor .m-mid, .actor .m-open, .actor .eyes-shut { display: none; }
.actor[data-mouth="mid"] .m-closed, .actor[data-mouth="open"] .m-closed { display: none; }
.actor[data-mouth="mid"] .m-mid, .actor[data-mouth="open"] .m-open { display: inline; }
.actor[data-blink="1"] .eyes-open { display: none; }
.actor[data-blink="1"] .eyes-shut { display: inline; }
.actor .shadow { position: absolute; left: 12%; right: 12%; bottom: -2%; height: 5%; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(.6cqw); z-index: -1; }

/* ---------- intro (the hallway) ---------- */
.intro { position: absolute; inset: 0; }
.intro .card { position: absolute; right: 4%; top: 12%; width: 52%; padding: 1.8cqw 2.6cqw; }
.intro .year { font-family: var(--display); font-size: 7cqw; line-height: .9; color: var(--brass-2); text-shadow: 0 .4cqw 0 #6b4f1a; }
.intro .place { font-family: var(--serif); font-style: italic; font-size: 2cqw; color: var(--cream); margin: .2cqw 0 1cqw; }
.intro .who { font-family: var(--serif); font-size: 3cqw; font-weight: 900; color: var(--cream); margin: 0; }
.intro .role { color: var(--muted); font-size: 1.35cqw; margin: .3cqw 0 1cqw; }
.intro .tagline { font-style: italic; font-size: 1.4cqw; margin-bottom: 1cqw; }
.intro .seeking { border-top: .12cqw solid rgba(201,165,74,.4); padding-top: 1cqw; font-size: 1.5cqw; }
.intro .seeking b { color: var(--brass-2); font-family: var(--serif); }
.prospectus { display: grid; grid-template-columns: auto 1fr; gap: .45cqw 1.2cqw; margin: 1.1cqw 0 0; font-size: 1.3cqw; line-height: 1.3; }
.prospectus dt { color: var(--brass); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95cqw; padding-top: .2cqw; }
.prospectus dd { margin: 0; color: var(--cream); }
.intro .go { margin-top: 1.4cqw; display: flex; gap: 1cqw; align-items: center; }
.door { position: absolute; left: 3%; top: 10%; width: 36%; height: 72%; border: .5cqw solid var(--brass); border-bottom: none; border-radius: 16cqw 16cqw 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,230,170,.35), rgba(0,0,0,.6) 70%); }
.stamp-year { animation: stampin .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stampin { from { transform: scale(1.6); opacity: 0; } }

/* ---------- pitch ---------- */
.easel { position: absolute; right: 2.5%; top: 9%; width: 53%; z-index: 3; perspective: 120cqw; }
.exhibit {
  position: relative; background: var(--paper); color: var(--ink); border-radius: .5cqw;
  box-shadow: 0 1.4cqw 3cqw rgba(0,0,0,.55), inset 0 0 6cqw rgba(120,90,40,.22);
  padding: 1.3cqw 1.6cqw 1.4cqw; display: flex; flex-direction: column; gap: .5cqw;
  border: .45cqw solid #6b4a2b; transform: rotate(-.5deg);
  animation: flip .45s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes flip { from { transform: rotate(-.5deg) translateY(-4%) rotateX(35deg); opacity: 0; } }
.ex-head { display: flex; justify-content: space-between; align-items: center; }
.exhibit .label { font-weight: 700; letter-spacing: .3em; font-size: 1cqw; color: var(--red); text-transform: uppercase; }
.dots { display: flex; gap: .35cqw; }
.dots i { width: .7cqw; height: .7cqw; border-radius: 50%; border: .12cqw solid #8a6a44; }
.dots i.past { background: #8a6a44; }
.dots i.now { background: var(--red); border-color: var(--red); }
.ex-title { font-family: var(--serif); font-weight: 900; font-size: 2.7cqw; line-height: 1.05; }
.ex-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 63% 1fr; gap: 1.3cqw; align-items: start; }
.ex-art { width: 100%; aspect-ratio: 400 / 300; background: #f7efdc; border: .15cqw solid #8a6a44; border-radius: .4cqw; overflow: hidden; }
.ex-art svg { width: 100%; height: 100%; display: block; }
.ex-lead { font-weight: 700; font-size: 1.5cqw; line-height: 1.3; margin-bottom: .6cqw; color: #3b2e22; }
.ex-facts { margin: 0; padding-left: 1.2cqw; font-size: 1.32cqw; line-height: 1.35; color: #2a2019; }
.ex-facts li { margin-bottom: .45cqw; }
.ex-facts li::marker { color: var(--red); }

/* exhibit gallery */
.gallery { position: absolute; inset: 0; z-index: 30; background: #050b10; padding: 2.4cqw 3cqw; display: flex; flex-direction: column; }
.g-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.4cqw; }
.g-head h2 { font-family: var(--serif); font-size: 2.8cqw; margin: .2cqw 0 0; }
.g-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2cqw; align-content: start; }
.g-thumb { padding: 0; border: .15cqw solid rgba(201,165,74,.5); border-radius: .6cqw; background: var(--paper); color: var(--ink); text-align: left; overflow: hidden; }
.g-thumb:hover { border-color: var(--brass-2); transform: translateY(-.2cqw); }
.g-art svg { width: 100%; display: block; aspect-ratio: 400 / 300; }
.g-cap { padding: .6cqw .8cqw; font-size: 1.15cqw; line-height: 1.25; }
.g-cap b { color: var(--red); margin-right: .3em; }
.g-one { position: relative; flex: 1; }
.g-one .exhibit { position: absolute; inset: 0 8% 1cqw; animation: none; transform: none; }
.g-one .ex-title { font-size: 3.2cqw; }
.g-one .ex-lead { font-size: 1.7cqw; }
.g-one .ex-facts { font-size: 1.55cqw; }
.g-nav { display: flex; justify-content: center; gap: 1cqw; }

.captions { position: absolute; left: 38%; right: 2.5%; bottom: 9%; z-index: 4; text-align: center; min-height: 11cqw; display: flex; align-items: flex-end; justify-content: center; }
.captions .line { display: inline; font-size: 2.35cqw; line-height: 1.45; font-weight: 700; padding: .25em .6em; border-radius: .3em;
  background: rgba(3,8,12,.82); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.captions .w { color: rgba(244,234,211,.45); transition: color .12s; }
.captions .w.said { color: var(--cream); }
.captions.off { display: none; }

.transport { position: absolute; left: 38%; right: 2.5%; bottom: 2.2%; z-index: 5; display: flex; align-items: center; gap: 1cqw; }
.transport .bar { flex: 1; height: .5cqw; background: rgba(255,255,255,.15); border-radius: 1cqw; overflow: hidden; cursor: pointer; }
.transport .bar i { display: block; height: 100%; width: 0; background: var(--brass); }
.transport .time { font-variant-numeric: tabular-nums; font-size: 1.05cqw; color: var(--muted); min-width: 8cqw; text-align: center; }
.icon { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; border: .12cqw solid rgba(201,165,74,.6); background: rgba(0,0,0,.45); color: var(--brass-2);
  display: grid; place-items: center; font-size: 1.3cqw; padding: 0; }
.icon svg { width: 45%; height: 45%; fill: currentColor; }
.bigplay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; }

/* ---------- questions ---------- */
.qa { position: absolute; inset: 0; }
.qa .actor { height: 62%; left: 1%; bottom: 3%; }
.qa .head { position: absolute; left: 4%; top: 9%; right: 4%; display: flex; justify-content: space-between; align-items: end; }
.qa h2, .decide h2, .closed h2, .reveal h2 { font-family: var(--serif); font-weight: 900; font-size: 3.2cqw; margin: .2cqw 0 0; color: var(--cream); }
.qa .count { font-size: 1.4cqw; color: var(--brass-2); }
.qlist { position: absolute; right: 4%; top: 20%; width: 50%; display: flex; flex-direction: column; gap: .8cqw; }
.qbtn { text-align: left; padding: 1cqw 1.3cqw; border-radius: .6cqw; border: .12cqw solid rgba(201,165,74,.45); background: rgba(5,12,18,.8); font-size: 1.55cqw; line-height: 1.3; display: flex; gap: 1cqw; align-items: baseline; }
.qbtn .n { font-family: var(--display); color: var(--brass); font-size: 1.4cqw; min-width: 1.6cqw; }
.qbtn:hover { border-color: var(--brass-2); background: rgba(20,40,55,.9); }
.qbtn.asked { border-color: var(--water); background: rgba(43,143,168,.18); }
.qbtn.asked::after { content: 'asked'; margin-left: auto; font-size: .95cqw; text-transform: uppercase; letter-spacing: .15em; color: var(--water); }
.qbtn.spent { opacity: .38; }
.bubble { position: absolute; left: 26%; top: 20%; width: 44%; max-height: 64%; overflow: auto; padding: 1.8cqw 2cqw; background: var(--cream); color: var(--ink); border-radius: 1.2cqw;
  font-size: 1.85cqw; line-height: 1.45; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.5); z-index: 4; }
.bubble::before { content: ''; position: absolute; left: -1.6cqw; top: 40%; border: 1cqw solid transparent; border-right: 1.6cqw solid var(--cream); }
.bubble .asked-q { font-weight: 700; color: #6b4a2b; font-size: 1.35cqw; margin-bottom: .8cqw; }
.bubble .caret { display: inline-block; width: .5ch; background: var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble .back { margin-top: 1.2cqw; }
.bubble .back .btn { font-size: 1.2cqw; }
.qa .foot { position: absolute; right: 4%; bottom: 5%; display: flex; gap: 1cqw; }

/* ---------- decision ---------- */
.decide, .closed { position: absolute; inset: 0; display: grid; place-items: center; }
.decide .panel, .closed .panel { width: 64%; padding: 2.6cqw 3.2cqw; text-align: center; }
.decide p, .closed p { font-size: 1.7cqw; line-height: 1.45; margin: .8cqw 0; }
.decide .rules { text-align: left; margin: 1.4cqw auto; max-width: 46cqw; font-size: 1.5cqw; line-height: 1.5; }
.decide .rules li { margin: .3cqw 0; }
.timer { font-family: var(--display); font-size: 7cqw; color: var(--brass-2); margin: .6cqw 0; font-variant-numeric: tabular-nums; }
.timer.done { color: var(--red); animation: blink 1s steps(2) 3; }
.final-banner { display: inline-block; background: var(--red); color: #fff; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 1.2cqw; padding: .4em 1em; border-radius: .3em; margin-bottom: .6cqw; }
.ledger { display: flex; gap: 1.2cqw; justify-content: center; align-items: stretch; margin: 1.4cqw 0; }
.ledger .cell { background: rgba(0,0,0,.35); border-radius: .6cqw; padding: .9cqw 1.4cqw; min-width: 13cqw; }
.ledger .cell .k { font-size: 1cqw; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ledger .cell .v { font-family: var(--serif); font-weight: 900; font-size: 2.8cqw; color: var(--brass-2); font-variant-numeric: tabular-nums; }
.offer { display: flex; justify-content: center; align-items: center; gap: 1cqw; margin: 1cqw 0 1.4cqw; }
.offer label { font-size: 1.6cqw; }
.money { display: inline-flex; align-items: center; background: var(--cream); color: var(--ink); border-radius: .5cqw; padding: 0 .8cqw; font-size: 2.6cqw; font-family: var(--serif); font-weight: 900; }
.money input { width: 12cqw; border: none; background: transparent; font: inherit; color: inherit; padding: .4cqw .2cqw; }
.money input:focus { outline: none; }
input[type=range].slider { width: 60%; accent-color: var(--brass); }
.err { color: #ff9b8f; font-size: 1.3cqw; min-height: 1.6cqw; }

/* ---------- reveal ---------- */
.reveal { position: absolute; inset: 0; }
.paper {
  position: absolute; left: 42%; top: 48%; width: 64%; height: 80%; transform: translate(-50%, -50%) rotate(-.6deg);
  background: var(--paper); color: var(--ink); padding: 2cqw 3cqw; border-radius: .2cqw;
  box-shadow: 0 2cqw 5cqw rgba(0,0,0,.6), inset 0 0 8cqw rgba(120,90,40,.3);
  animation: spin-in .9s cubic-bezier(.2,.9,.3,1) both; display: flex; flex-direction: column;
}
@keyframes spin-in { from { transform: translate(-50%, -50%) rotate(-540deg) scale(.1); opacity: 0; } }
.paper .mast { text-align: center; border-bottom: .35cqw double var(--ink); padding-bottom: .4cqw; }
.paper .mast .name { font-family: var(--display); font-size: 3.4cqw; letter-spacing: .1cqw; }
.paper .mast .dateline { display: flex; justify-content: space-between; font-size: 1cqw; letter-spacing: .15em; text-transform: uppercase; border-top: .12cqw solid var(--ink); margin-top: .3cqw; padding-top: .3cqw; }
.paper h3 { font-family: var(--serif); font-weight: 900; font-size: 3.4cqw; line-height: 1.05; margin: 1cqw 0 .3cqw; text-align: center; text-transform: uppercase; }
.paper .subhead { font-family: var(--serif); font-style: italic; text-align: center; font-size: 1.7cqw; margin-bottom: 1cqw; }
.paper .cols { columns: 2; column-gap: 2.4cqw; column-rule: .1cqw solid rgba(27,20,16,.35); font-size: 1.32cqw; line-height: 1.42; flex: 1; overflow: hidden; }
.paper .cols p { margin: 0 0 .7cqw; }
.paper .impact { font-weight: 700; }
.payout-stamp {
  position: absolute; right: 2.5%; top: 38%; width: 21%; transform: rotate(-7deg); z-index: 3;
  border: .45cqw solid var(--red); color: var(--red); background: rgba(239,227,198,.9); border-radius: .6cqw; padding: .6cqw 1.4cqw; text-align: center;
  font-family: var(--serif); font-weight: 900; animation: stampin .45s cubic-bezier(.2,1.6,.4,1) 1s both;
}
.payout-stamp.win { border-color: var(--green); color: var(--green); }
.payout-stamp .k { font-size: 1.05cqw; letter-spacing: .2em; text-transform: uppercase; }
.payout-stamp .v { font-size: 4.2cqw; line-height: 1; }
.payout-stamp .x { font-family: var(--sans); font-size: 1.5cqw; margin-top: .3cqw; color: var(--ink); }
.payout-stamp .x b { font-family: var(--serif); font-size: 2.2cqw; }
.payout-stamp .eg { font-family: var(--sans); font-size: 1.2cqw; color: #3b2e22; font-weight: 700; margin-top: .3cqw; }
.payout-stamp .you { font-family: var(--sans); font-size: 1.2cqw; margin-top: .3cqw; color: var(--ink); }
.reveal .nav { position: absolute; bottom: 4%; right: 2.5%; width: 21%; display: flex; flex-direction: column-reverse; align-items: stretch; gap: .8cqw; z-index: 5; }
/* "why it mattered" and "big picture" */
.why { position: absolute; left: 3%; top: 6%; width: 72%; height: 90%; padding: 1.6cqw 2.2cqw; display: flex; flex-direction: column; gap: 1cqw; }
.why.big { width: 72%; }
.why h2 .yr { font-family: var(--sans); font-size: 1.6cqw; color: var(--brass); font-weight: 700; margin-left: .6em; }
.why-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5cqw; }
.why-art { width: 12.5cqw; flex: none; aspect-ratio: 400 / 300; background: #f7efdc; border-radius: .5cqw; overflow: hidden; border: .2cqw solid var(--brass); }
.why-art svg { width: 100%; height: 100%; display: block; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; flex: 1; min-height: 0; }
.why-grid h3 { font-family: var(--serif); color: var(--brass-2); font-size: 1.8cqw; margin: 0 0 .6cqw; }
.why-grid ul { margin: 0; padding-left: 1.4cqw; font-size: 1.3cqw; line-height: 1.36; }
.why-grid li { margin-bottom: .55cqw; }
.why-grid li::marker { color: var(--brass); }
.why-connect { background: rgba(201,165,74,.15); border-left: .4cqw solid var(--brass); padding: .8cqw 1.2cqw; font-size: 1.4cqw; border-radius: .3cqw; }
.why-connect b { color: var(--brass-2); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .8cqw; margin: .4cqw 0 .6cqw; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 2%; right: 2%; top: 1.3cqw; height: .25cqw; background: var(--brass); }
.timeline li { position: relative; padding-top: 3cqw; }
.timeline li::before { content: ''; position: absolute; top: .7cqw; left: 0; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--brass-2); border: .25cqw solid #0b2230; }
.timeline .ty { font-family: var(--display); color: var(--brass-2); font-size: 1.7cqw; }
.timeline .tt { font-weight: 700; font-size: 1.2cqw; margin: .2cqw 0; }
.timeline .td { font-size: 1.05cqw; color: var(--muted); line-height: 1.3; }
.why .lowell p { font-size: 1.5cqw; line-height: 1.45; margin: 0; background: rgba(43,143,168,.18); border: .12cqw solid var(--water); border-radius: .5cqw; padding: 1cqw 1.2cqw; }
.reveal .curtain { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.reveal .curtain .panel { padding: 3cqw 4cqw; width: 60%; }
.summary { width: 100%; border-collapse: collapse; font-size: 1.5cqw; margin: 1cqw 0; }
.summary th, .summary td { padding: .5cqw .8cqw; border-bottom: .1cqw solid rgba(201,165,74,.3); text-align: left; }
.summary td.num, .summary th.num { text-align: right; font-variant-numeric: tabular-nums; }
.summary tfoot td { font-weight: 700; color: var(--brass-2); border-bottom: none; font-size: 1.8cqw; }

/* ---------- teacher ---------- */
.teacher { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4.5cqw 3cqw 2cqw; }
.teacher h2 { font-family: var(--serif); font-size: 2.6cqw; margin: 0 0 1cqw; }
.tabs { display: flex; gap: .5cqw; border-bottom: .12cqw solid rgba(201,165,74,.4); margin-bottom: 1.4cqw; }
.tabs button { background: none; border: none; padding: .7cqw 1.2cqw; font-size: 1.3cqw; color: var(--muted); border-bottom: .3cqw solid transparent; }
.tabs button[aria-selected="true"] { color: var(--brass-2); border-color: var(--brass); }
.tpane { flex: 1; overflow: auto; font-size: 1.3cqw; line-height: 1.45; padding-right: 1cqw; }
.tpane h3 { font-family: var(--serif); font-size: 1.8cqw; margin: 1.4cqw 0 .6cqw; color: var(--brass-2); }
.tpane .row { display: flex; gap: 1.2cqw; align-items: center; margin: .8cqw 0; flex-wrap: wrap; }
.tpane select, .tpane input[type=number], .tpane input[type=text], .tpane input[type=password] {
  font: inherit; background: var(--cream); color: var(--ink); border: none; border-radius: .4cqw; padding: .4cqw .7cqw; }
.order { list-style: none; padding: 0; margin: .6cqw 0; display: flex; flex-direction: column; gap: .5cqw; max-width: 60cqw; }
.order li { display: flex; align-items: center; gap: 1cqw; background: rgba(0,0,0,.35); border-radius: .4cqw; padding: .5cqw .9cqw; }
.order li .n { font-family: var(--display); color: var(--brass); width: 2cqw; }
.order li .t { flex: 1; }
.lock { position: absolute; inset: 0; display: grid; place-items: center; }
.lock .panel { padding: 3cqw 3.6cqw; width: 44%; text-align: center; }
.lock input { font-size: 1.8cqw; width: 100%; margin: 1.2cqw 0 .6cqw; padding: .6cqw 1cqw; border-radius: .5cqw; border: none; background: var(--cream); color: var(--ink); text-align: center; }
.calc { border-collapse: collapse; font-size: 1.4cqw; }
.calc td, .calc th { padding: .4cqw .8cqw; text-align: left; border-bottom: .1cqw solid rgba(201,165,74,.25); }
.calc td.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc input { width: 9cqw; }
.note-list { margin: .3cqw 0 1cqw 1.2cqw; padding: 0; }
.note-list li { margin: .3cqw 0; }
.faqnote { margin: .5cqw 0 .9cqw; }
.faqnote .q { font-weight: 700; }
.faqnote .n { color: var(--muted); }
.board { border-collapse: collapse; font-size: 1.3cqw; margin-top: .6cqw; }
.board td, .board th { padding: .35cqw .7cqw; border-bottom: .1cqw solid rgba(201,165,74,.25); }
.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board input { width: 7cqw; }
.board input.name { width: 12cqw; }

.toast { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); background: var(--cream); color: var(--ink); padding: .6cqw 1.4cqw; border-radius: .5cqw; font-size: 1.3cqw; z-index: 20; }


/* ---------- The Tank emblem projected on the wall ---------- */
.gobo { position: absolute; aspect-ratio: 1; color: #ffe7b0; opacity: .2; mix-blend-mode: screen; pointer-events: none;
  filter: blur(.08cqw) drop-shadow(0 0 1.4cqw rgba(255,214,140,.7)); animation: gobo-flicker 7s ease-in-out infinite; }
.gobo::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,222,160,.55) 0%, rgba(255,222,160,.18) 45%, transparent 70%); }
.gobo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gobo.left { left: 6%; top: 7%; width: 34cqw; }
.gobo.qa { left: 1%; top: 30%; width: 25cqw; }
.gobo.center { left: 50%; top: 50%; width: 44cqw; transform: translate(-50%, -52%); opacity: .16; }
@keyframes gobo-flicker { 0%, 100% { opacity: .2; } 47% { opacity: .23; } 50% { opacity: .17; } 53% { opacity: .22; } }
.gobo.center { animation: none; }

/* ---------- podium with the venture's logo ---------- */
.podium { position: absolute; left: 5%; bottom: 0; width: 31%; height: 27%; z-index: 3; }
.podium-top { position: absolute; left: -3%; right: -3%; top: 0; height: 9%; border-radius: .4cqw; background: linear-gradient(180deg, #7a5230, #4a2d19); border: .2cqw solid #c9a54a; box-shadow: 0 .6cqw 1.2cqw rgba(0,0,0,.5); }
.podium-face { position: absolute; left: 0; right: 0; top: 8%; bottom: 0; background: linear-gradient(180deg, #5a3822, #2a180c);
  border: .25cqw solid #c9a54a; border-bottom: none; display: grid; place-items: center; padding: .6cqw .8cqw; box-shadow: inset 0 0 3cqw rgba(0,0,0,.6); }
.podium-face svg { width: 100%; height: 100%; display: block; }
.podium-name { font-family: var(--display); color: var(--brass-2); font-size: 2.2cqw; text-align: center; }

/* ---------- venture logo on the intro card and question screen ---------- */
.intro .card { overflow: visible; }
.card-logo { position: absolute; top: 1.2cqw; right: 1.6cqw; width: 22cqw; aspect-ratio: 2; }
.card-logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .4cqw .8cqw rgba(0,0,0,.5)); }
.qa-title { display: flex; align-items: center; gap: 1.2cqw; }
.qa-icon { width: 6.5cqw; height: 6.5cqw; flex: none; }
.qa-icon:empty { display: none; }
.qa-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- lobby tools and directions ---------- */
.lobby-tools { display: flex; gap: 1cqw; justify-content: center; margin-top: 1.4cqw; }
.modal { position: absolute; inset: 0; z-index: 40; background: rgba(3,7,10,.78); display: grid; place-items: center; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.howto { width: 78%; max-height: 92%; overflow: auto; padding: 2.2cqw 2.8cqw; background: #0a1b26; }
.howto-head { display: flex; gap: 2cqw; align-items: center; }
.howto-emblem { width: 11cqw; flex: none; color: var(--brass-2); }
.howto-emblem svg { width: 100%; display: block; }
.howto h2 { font-family: var(--serif); font-size: 3cqw; margin: .2cqw 0 .4cqw; }
.howto .lede { font-size: 1.55cqw; line-height: 1.4; margin: 0; }
.howto-steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6cqw 0 1.2cqw; display: grid; grid-template-columns: 1fr 1fr; gap: .9cqw 2cqw; }
.howto-steps li { counter-increment: step; position: relative; padding-left: 3.6cqw; font-size: 1.4cqw; line-height: 1.4; }
.howto-steps li::before { content: counter(step); position: absolute; left: 0; top: .1cqw; width: 2.6cqw; height: 2.6cqw; border-radius: 50%;
  background: var(--brass); color: var(--ink); font-family: var(--display); font-size: 1.5cqw; display: grid; place-items: center; }
.howto-steps b { color: var(--brass-2); }
.howto-tip { background: rgba(43,143,168,.16); border-left: .4cqw solid var(--water); padding: .9cqw 1.3cqw; font-size: 1.4cqw; line-height: 1.4; border-radius: .3cqw; }
.howto-tip b { color: #8fd4e6; }
.howto-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4cqw; font-size: 1.3cqw; color: var(--muted); }

.nw { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
