/* How to Play a murder mystery. Dark on purpose: it follows the Murder at the Speakeasy cover and the game itself.
   One accent (the cover's gold). Red is only for rubber stamps. All corners are 6px, except the phones. */
@font-face { font-family: "Abril Fatface"; src: url(fonts/AbrilFatface.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; src: url(fonts/Playfair-Italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 400; src: url(fonts/DMSans-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 500; src: url(fonts/DMSans-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 700; src: url(fonts/DMSans-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; font-weight: 600; src: url(fonts/InterTight-600.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #111110; --panel: #1b1a17; --panel2: #25231e; --line: #3b362b;
  --gold: #d2a92f; --gold-dim: #8a7022; --cream: #f4efe4; --text: #d3cdbf; --mute: #a59e8e; --red: #c8392f;
  --r: 6px; --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Abril Fatface", Georgia, serif; --italic: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif; --ui: "Inter Tight", "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--gold); }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--cream); margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; }
h3 { font: 600 1.15rem/1.3 var(--ui); color: var(--cream); margin: 0 0 8px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--cream); max-width: 62ch; margin-top: 16px; }
.small { font-size: .9rem; color: var(--mute); margin: 8px 0 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.center { justify-content: center; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.sub-head { margin-top: 56px; font-size: 1.35rem; }

/* buttons, the same shape as the store's */
.btn { display: inline-block; border: 1px solid var(--gold); background: var(--gold); color: #171404; font: 600 .95rem/1 var(--ui); padding: 15px 22px; border-radius: var(--r); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--ease); }
.btn:hover { background: #e6bd42; border-color: #e6bd42; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { background: rgba(17, 17, 16, .55); color: var(--cream); border-color: var(--gold-dim); }
.btn.ghost:hover { background: var(--panel2); border-color: var(--gold); }
.btn[disabled] { background: var(--panel2); border-color: var(--line); color: var(--mute); cursor: not-allowed; }

.seg { display: inline-flex; border: 1px solid var(--gold-dim); border-radius: var(--r); overflow: hidden; }
.seg button { background: transparent; color: var(--cream); border: 0; font: 600 .92rem/1 var(--ui); padding: 12px 16px; cursor: pointer; transition: background .2s; }
.seg button + button { border-left: 1px solid var(--gold-dim); }
.seg button[aria-pressed="true"] { background: var(--gold); color: #171404; }

/* top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 4vw, 40px); background: rgba(17, 17, 16, .92); border-bottom: 1px solid var(--line); }
.bar-logo img { height: 20px; width: auto; }
.bar-now { font: 600 .85rem var(--ui); color: var(--mute); margin-left: auto; white-space: nowrap; }
.bar-menu { position: relative; }
.bar-menu summary { list-style: none; cursor: pointer; font: 600 .85rem var(--ui); color: var(--cream); border: 1px solid var(--gold-dim); border-radius: var(--r); padding: 8px 12px; }
.bar-menu summary::-webkit-details-marker { display: none; }
.bar-menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.bar-menu a { display: block; padding: 9px 10px; color: var(--cream); text-decoration: none; border-radius: var(--r); font-size: .95rem; }
.bar-menu a:hover { background: var(--line); }
.bar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
@media (max-width: 520px) { .bar-now { display: none; } .bar-menu { margin-left: auto; } }

/* hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #111110 4%, rgba(17, 17, 16, .78) 34%, rgba(17, 17, 16, .05) 70%); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) clamp(40px, 7vh, 80px); }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: 1.02; max-width: 12ch; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cream); max-width: 40ch; margin: 18px 0 24px; }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 700px) {
  .hero-img { height: 66%; object-position: 6% 40%; }
  .hero::after { background: linear-gradient(to top, #111110 36%, rgba(17, 17, 16, .55) 54%, rgba(17, 17, 16, 0) 72%); }
}

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* the idea */
.idea { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.victim { margin: 0; display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: start; }
.victim img { border-radius: var(--r); transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.victim figcaption b { display: block; font: 600 1.1rem var(--ui); color: var(--cream); }
.victim figcaption span { display: block; font-size: .92rem; color: var(--mute); margin: 4px 0 10px; }
.victim em { font: italic 500 1.05rem/1.4 var(--italic); color: var(--gold); display: block; }
.setup { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 40px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--panel); transition: border-color .2s, transform .2s var(--ease); }
.choice:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice.on { border-color: var(--gold-dim); }
.choice b { display: block; font: 400 1.8rem/1.1 var(--display); color: var(--cream); margin-bottom: 6px; }
.choice span { font-size: .93rem; color: var(--text); }
@media (max-width: 860px) { .idea, .setup { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }

/* cast */
.guests { max-width: 640px; margin: 32px 0 40px; }
.guests label { font: 600 1rem var(--ui); color: var(--cream); display: block; margin-bottom: 8px; }
.guests output { font: 400 1.9rem var(--display); color: var(--gold); margin-left: 4px; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 32px; margin: 0; cursor: pointer; }
.ticks { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mute); padding: 0 6px; }
#guestNote { color: var(--cream); margin: 14px 0 0; min-height: 4.8em; }
.tap-hint { font: 600 .95rem var(--ui); color: var(--gold); margin: 0 0 14px; }
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.suspect { position: relative; display: block; width: 100%; padding: 0; text-align: left; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); color: inherit; cursor: pointer; overflow: hidden; font: inherit; transition: border-color .2s, transform .25s var(--ease), opacity .3s; }
.suspect:hover { border-color: var(--gold); transform: translateY(-3px); }
.suspect img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; transition: filter .3s; }
.suspect .t { display: block; padding: 10px 12px 12px; }
.suspect b { display: block; font: 600 1.02rem/1.25 var(--ui); color: var(--cream); }
.suspect .role { display: block; font-size: .88rem; color: var(--mute); line-height: 1.35; margin-top: 2px; }
.suspect.out img { filter: grayscale(1) brightness(.45); }
.suspect .tag { display: block; font-size: .82rem; color: var(--gold); margin-top: 6px; }
.agents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; grid-column: 1 / -1; }
.agent { flex: 1 1 200px; border: 1px dashed var(--gold-dim); border-radius: var(--r); padding: 12px 14px; font-size: .92rem; animation: rise .5s var(--ease) both; }
.agent b { display: block; font: 600 1rem var(--ui); color: var(--cream); }
@media (max-width: 860px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }

/* get ready */
.print-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 32px; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 13px 4px; cursor: pointer; }
.check + .check { border-top: 1px solid var(--line); }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1px solid var(--gold-dim); border-radius: var(--r); cursor: pointer; display: grid; place-content: center; transition: background .15s; background: transparent; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: "✓"; color: #171404; font-weight: 700; font-size: 15px; line-height: 1; }
.check span { transition: color .2s; }
.check span b { color: var(--cream); font-weight: 700; }
.check input:checked + span { color: var(--mute); }
.check input:checked + span b { color: var(--mute); }
.print-note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; align-self: start; }
.print-note p { font-size: .95rem; }
.print-note p:last-child { margin: 0; }
@media (max-width: 860px) { .print-grid { grid-template-columns: 1fr; } }

.snap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-color: var(--gold-dim) transparent; }
.snap > * { scroll-snap-align: start; }
.tile { display: flex; gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .95rem; }
.tile b { display: block; font: 600 1.05rem var(--ui); color: var(--cream); margin-bottom: 4px; }
.tile input { appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1px solid var(--gold-dim); border-radius: var(--r); cursor: pointer; display: grid; place-content: center; background: transparent; }
.tile input:checked { background: var(--gold); border-color: var(--gold); }
.tile input:checked::after { content: "✓"; color: #171404; font-weight: 700; font-size: 14px; line-height: 1; }

/* the two phones */
.demo { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: clamp(16px, 3vw, 36px); margin-top: 28px; align-items: start; }
.demo-steps { list-style: none; margin: 0; padding: 0; }
.demo-steps li { padding: 12px 0 12px 16px; border-left: 2px solid var(--line); color: var(--mute); transition: color .25s, border-color .25s; }
.demo-steps li.now { color: var(--cream); border-color: var(--gold); }
.demo-steps li.past { color: var(--text); border-color: var(--gold-dim); }
.demo-steps li b { display: block; font: 600 1rem var(--ui); }
.demo-steps li span { display: none; font-size: .93rem; margin-top: 3px; }
.demo-steps li.now span { display: block; }
.demo-reset { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--gold); font: 600 .9rem var(--ui); text-decoration: underline; cursor: pointer; }
.phone-wrap { text-align: center; }
.phone-label { display: block; font: 600 .85rem var(--ui); color: var(--mute); margin-bottom: 8px; }
.phone-wrap.live .phone-label { color: var(--gold); }
.phone { width: 268px; height: 540px; border-radius: 34px; border: 7px solid #2b2a26; background: #0d0d0c; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, opacity .3s; opacity: .62; text-align: left; }
.phone-wrap.live .phone { opacity: 1; box-shadow: 0 0 0 1px var(--gold-dim), 0 22px 50px rgba(0, 0, 0, .6); }
.scr { flex: 1; overflow-y: auto; padding: 22px 14px 16px; font-size: .86rem; line-height: 1.45; display: flex; flex-direction: column; gap: 10px; animation: scr .35s var(--ease); }
@keyframes scr { from { opacity: 0; transform: translateX(10px); } }
.scr h4 { margin: 0; font: 400 1.25rem/1.15 var(--display); color: var(--cream); }
.scr .eb { font: 600 .68rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.scr .cover { width: 92px; border-radius: 4px; }
.scr .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.scr .pbtn { width: 100%; background: var(--gold); color: #171404; border: 0; border-radius: var(--r); padding: 11px; font: 600 .86rem var(--ui); cursor: pointer; animation: pulse 2s ease-in-out infinite; }
.scr .pbtn2 { width: 100%; background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 9px; font: 600 .82rem var(--ui); }
.scr .pbtn2.sel { border-color: var(--gold); color: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(210, 169, 47, .22); } }
.scr .fld { background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; color: var(--cream); }
.scr .lbl { font-size: .74rem; color: var(--mute); margin-bottom: 3px; }
.scr .code { font: 400 2.4rem/1 var(--display); color: var(--gold); letter-spacing: .08em; }
.scr .plist { list-style: none; margin: 0; padding: 0; }
.scr .plist li { padding: 5px 0; border-top: 1px solid var(--line); color: var(--cream); animation: rise .4s var(--ease) both; }
.scr .plist li:first-child { border: 0; }
.scr .plist i { font-style: normal; font-size: .7rem; color: var(--gold); margin-left: 6px; }
.scr .waiting { margin: auto; color: var(--mute); text-align: center; }
.scr .bubble { background: #1f3b2d; color: #eaf5ee; padding: 9px 11px; border-radius: 10px 10px 10px 2px; font-size: .83rem; border: 0; text-align: left; cursor: pointer; font-family: inherit; animation: pulse 2s ease-in-out infinite; }
.scr .bubble u { color: #9fe3bd; word-break: break-all; }
.scr .mini-cast { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scr .mc { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; color: var(--cream); font: 600 .74rem var(--ui); cursor: pointer; text-align: left; }
.scr .mc img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.scr .mc span { display: block; padding: 4px 6px; }
.scr .mc.taken { opacity: .45; cursor: default; }
.scr .mc.mine { border-color: var(--gold); }
.scr .tabs { display: flex; gap: 4px; overflow: hidden; }
.scr .tabs span { flex: none; font: 600 .7rem var(--ui); padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r); color: var(--cream); }
.scr .tabs span.on { background: var(--gold); color: #171404; border-color: var(--gold); }
.scr .redact { display: block; height: .9em; background: #000; border: 1px solid var(--line); border-radius: 2px; margin: 4px 0; }
@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .demo-steps { width: 100%; }
  .demo-steps li:not(.now) { display: none; }
  .demo > :first-child { width: 100%; min-height: 150px; }
  .phone-wrap:not(.live) { display: none; }
}

/* the night */
.night-controls { display: flex; flex-wrap: wrap; gap: 24px; margin: 28px 0; align-items: end; }
.field label, .field .label { display: block; font: 600 .9rem var(--ui); color: var(--cream); margin-bottom: 8px; }
input[type=time] { background: var(--ink); color: var(--cream); border: 1px solid var(--gold-dim); border-radius: var(--r); padding: 10px 12px; font: 600 1rem var(--ui); color-scheme: dark; }
.night { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.rail { list-style: none; margin: 0; padding: 0; }
.rail button { width: 100%; display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; border-left: 2px solid var(--line); color: var(--text); padding: 11px 12px; cursor: pointer; font: inherit; transition: border-color .2s, background .2s, color .2s; }
.rail button:hover { background: var(--panel2); }
.rail button[aria-current="true"] { border-color: var(--gold); background: var(--panel2); color: var(--cream); }
.rail .clock { font: 600 .85rem var(--ui); color: var(--gold); }
.rail .nm { font: 600 .98rem/1.25 var(--ui); }
.rail .mins { display: block; font: 400 .8rem var(--sans); color: var(--mute); }
.rail-end { padding: 12px 14px; font-size: .9rem; color: var(--mute); border-left: 2px solid transparent; }
.stage { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 76px; }
.stage-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } }
.stage-body { padding: clamp(18px, 3vw, 30px); animation: rise .45s var(--ease); }
.stage-body h3 { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display); margin-bottom: 4px; }
.stage-meta { font: 600 .88rem var(--ui); color: var(--gold); margin-bottom: 14px; }
.stage-you { border-left: 2px solid var(--gold); padding-left: 14px; color: var(--cream); }
.stage-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.clue { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.clue .n { display: block; font: 600 .75rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.clue h4 { margin: 2px 0 6px; font: 600 1.02rem var(--ui); color: var(--cream); }
.clue p { margin: 0; font-size: .96rem; }
.player { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 14px 0; }
.player button { flex: none; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--gold); color: #171404; cursor: pointer; font-size: 1rem; }
.player .pt { flex: 1; min-width: 0; font-size: .93rem; color: var(--cream); }
.player .pl { display: block; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); margin-top: 7px; }
.scene-text summary { cursor: pointer; font: 600 .95rem var(--ui); color: var(--gold); }
.scene-text p { font-size: .96rem; margin: 10px 0 0; }
@media (max-width: 860px) {
  .night { grid-template-columns: 1fr; }
  .rail { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x proximity; padding-bottom: 8px; }
  .rail li { flex: none; scroll-snap-align: start; }
  .rail button { display: block; width: 150px; height: 100%; border: 1px solid var(--line); border-radius: var(--r); }
  .rail .clock, .rail .nm { display: block; }
  .rail button[aria-current="true"] { border-color: var(--gold); }
  .rail-end { display: none; }
  .stage { position: static; }
}

/* rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rule-list { margin: 24px 0 0; padding: 0 0 0 1.3em; color: var(--cream); font-size: 1.08rem; }
.rule-list li { margin-bottom: 14px; padding-left: 4px; }
.rule-list li::marker { font-family: var(--display); color: var(--gold); }
.rule-list strong { color: var(--gold); }
.quiz { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); min-height: 380px; }
.quiz-count { font: 600 .85rem var(--ui); color: var(--gold); margin-bottom: 10px; }
.quiz h3 { font: italic 500 clamp(1.25rem, 2.2vw, 1.55rem)/1.3 var(--italic); margin-bottom: 18px; }
.quiz .opt { display: block; width: 100%; text-align: left; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; margin-bottom: 9px; font: 500 .98rem/1.35 var(--sans); cursor: pointer; transition: border-color .2s; }
.quiz .opt:hover:not([disabled]) { border-color: var(--gold); }
.quiz .opt[disabled] { cursor: default; }
.quiz .opt.right { border-color: var(--gold); background: rgba(210, 169, 47, .12); }
.quiz .opt.wrong { color: var(--mute); text-decoration: line-through; }
.quiz .why { margin: 12px 0 14px; color: var(--cream); animation: rise .4s var(--ease); }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

/* practice case */
.practice { position: relative; background: linear-gradient(rgba(17, 17, 16, .93), rgba(17, 17, 16, .97)), url(img/scenes/r1.jpg) center / cover; }
.desk { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 36px); margin-top: 32px; align-items: start; }
.desk-col > h3 { margin-top: 0; font-size: 1.25rem; }
.round-btn { width: 100%; margin: 8px 0; text-align: left; }
.round-group { margin-bottom: 18px; }
.round-group .rg { font: 600 .85rem var(--ui); color: var(--gold); margin-bottom: 6px; }
.round-group .clue { margin: 8px 0; }
.round-group.fresh .clue { animation: flip .55s var(--ease) both; }
@keyframes flip { from { opacity: 0; transform: rotateX(70deg) translateY(-6px); transform-origin: top; } }
.ask { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.ask img { border-radius: var(--r); width: 62px; height: 72px; object-fit: cover; object-position: top; }
.ask b { display: block; color: var(--cream); font: 600 1rem var(--ui); }
.ask .q { background: none; border: 0; padding: 0; color: var(--gold); font: 600 .9rem var(--ui); text-decoration: underline; cursor: pointer; text-align: left; margin-top: 3px; }
.ask .a { margin: 4px 0 0; font: italic 500 .98rem/1.4 var(--italic); color: var(--cream); }
.ask .a.fresh { animation: rise .4s var(--ease); }
.accuse { grid-column: 1 / -1; border: 1px solid var(--gold-dim); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); background: var(--panel); animation: rise .5s var(--ease); }
.accuse fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.accuse legend { font: 600 1.05rem var(--ui); color: var(--cream); padding: 0; margin-bottom: 10px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick button { background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font: 500 .95rem/1.35 var(--sans); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.pick button:hover { border-color: var(--gold-dim); }
.pick button[aria-pressed="true"] { border-color: var(--gold); background: rgba(210, 169, 47, .14); }
.verdict { grid-column: 1 / -1; position: relative; border: 1px solid var(--gold-dim); border-radius: var(--r); padding: clamp(20px, 4vw, 40px); background: var(--panel); overflow: hidden; }
.verdict h3 { font: 400 clamp(1.7rem, 4vw, 2.7rem)/1.1 var(--display); margin: 0 0 16px; max-width: 16ch; }
.stamp { position: absolute; top: 22px; right: 22px; font: 400 1.15rem/1.1 var(--display); color: var(--red); border: 3px solid var(--red); border-radius: var(--r); padding: 8px 12px; transform: rotate(7deg); animation: slam .4s cubic-bezier(.3, 1.6, .5, 1) both; text-align: center; background: var(--panel); }
@keyframes slam { from { opacity: 0; transform: rotate(7deg) scale(2.1); } }
.tally { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tally li { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: .92rem; color: var(--mute); }
.tally li.got { border-color: var(--gold); color: var(--cream); }
.confession { font: italic 500 1.12rem/1.45 var(--italic); color: var(--gold); margin: 14px 0; max-width: 58ch; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; }
  .verdict h3 { margin-top: 62px; }
}

/* scoring */
.points { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 28px 0 8px; max-width: 760px; }
.points div + div { border-left: 1px solid var(--line); padding-left: clamp(14px, 3vw, 32px); }
.points b { display: block; font: 400 clamp(3.6rem, 10vw, 6.4rem)/1 var(--display); color: var(--gold); }
.points span { font-size: .98rem; color: var(--cream); }
.award { padding: 22px 18px; border: 1px solid var(--gold-dim); outline: 1px solid var(--line); outline-offset: -6px; border-radius: var(--r); text-align: center; }
.award b { display: block; font: 400 1.35rem/1.15 var(--display); color: var(--cream); margin-bottom: 6px; }
.award span { font-size: .9rem; }

/* crack the case */
.case { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.case-cover img { border-radius: var(--r); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.case-steps { margin: 22px 0; padding-left: 1.3em; }
.case-steps li { margin-bottom: 10px; }
.case-steps li::marker { font-family: var(--display); color: var(--gold); }
.case-steps b { color: var(--cream); }
.tokens { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 22px 0; }
.token-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.token { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); color: #171404; font: 600 .85rem var(--ui); cursor: pointer; transition: background .2s, color .2s, transform .15s var(--ease); }
.token.spent { background: transparent; color: var(--mute); border-color: var(--line); }
.token:active { transform: scale(.92); }
.token-out { color: var(--cream); font-weight: 500; margin: 14px 0 0; min-height: 1.6em; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } .case-cover { max-width: 240px; } }

/* questions */
.faq-list { margin-top: 28px; columns: 2; column-gap: 40px; }
.faq-list details { break-inside: avoid; border-top: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font: 600 1.03rem/1.35 var(--ui); color: var(--cream); }
.faq-list summary:hover { color: var(--gold); }
.faq-list p { margin: 10px 0 0; }
@media (max-width: 760px) { .faq-list { columns: 1; } }

/* finale */
.finale { padding-top: 0; }
.frame { text-align: center; padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 40px); border: 1px solid var(--gold); outline: 1px solid var(--gold-dim); outline-offset: -9px; border-radius: var(--r); }
.frame .lead { margin: 16px auto 26px; }
.foot { border-top: 1px solid var(--line); padding: 32px 16px 44px; text-align: center; }
.foot img { height: 18px; width: auto; margin: 0 auto 12px; }
.foot p { margin: 0; font-size: .92rem; }

/* the booklet */
.book { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--panel); color: var(--text); border: 1px solid var(--gold-dim); border-radius: var(--r); padding: 0; }
.book::backdrop { background: rgba(0, 0, 0, .78); }
.book[open] { animation: rise .35s var(--ease); }
.b-stamp { font: 600 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; text-align: center; color: #fff; background: var(--red); padding: 7px 44px; }
.b-close { position: absolute; top: 0; right: 0; width: 44px; height: 30px; background: none; border: 0; color: #fff; font-size: 1.15rem; cursor: pointer; }
.b-in { padding: clamp(18px, 4vw, 28px); }
.b-who { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.b-who img { border-radius: var(--r); width: 96px; height: 110px; object-fit: cover; object-position: top; }
.b-who h2 { font-size: 1.8rem; }
.b-who span { color: var(--mute); }
.b-in h4 { margin: 18px 0 5px; font: 600 .78rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.b-in p { margin: 0; }
.b-in i { font: italic 500 1.05rem/1.45 var(--italic); color: var(--cream); }
.bars { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; }
.bars span { display: block; height: 15px; margin: 6px 0; background: #000; border-radius: 2px; }
.b-msg { margin-top: 8px !important; font-size: .9rem; color: var(--cream); animation: rise .3s var(--ease); }
.b-round { font-size: .92rem; color: var(--mute); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin-top: 6px; }
.b-round b { color: var(--cream); font-family: var(--ui); }
.b-foot { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* the landing page: two doors */
.landing { background: var(--ink); }
.doors { position: relative; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.doors-head { position: absolute; z-index: 3; inset: 0 0 auto; padding: 26px clamp(16px, 4vw, 40px) 110px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; background: linear-gradient(rgba(17, 17, 16, .97) 45%, rgba(17, 17, 16, 0)); pointer-events: none; }
.doors-head a { pointer-events: auto; }
.doors-head img { height: 22px; width: auto; }
.doors-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.door { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 100dvh; text-decoration: none; color: var(--cream); isolation: isolate; }
.door + .door { border-left: 1px solid var(--gold-dim); }
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: brightness(.82); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(17, 17, 16, .96) 8%, rgba(17, 17, 16, .55) 42%, rgba(17, 17, 16, .05) 72%); }
.door:hover img, .door:focus-visible img { transform: scale(1.05); filter: brightness(1); }
.door-text { display: block; padding: clamp(24px, 4vw, 56px); }
.door-text b { display: block; font: 400 clamp(2.6rem, 5.5vw, 5rem)/1.05 var(--display); margin-bottom: 12px; transition: color .25s; }
.door:hover .door-text b, .door:focus-visible .door-text b { color: var(--gold); }
.door-text span { display: block; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 34ch; }
.door-text b::after { content: "→"; font-family: var(--sans); font-size: .6em; margin-left: .4em; display: inline-block; transition: transform .3s var(--ease); }
.door:hover .door-text b::after { transform: translateX(8px); }
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .door { min-height: 50dvh; }
  .door + .door { border-left: 0; border-top: 1px solid var(--gold-dim); }
  .doors-head { padding-bottom: 60px; gap: 12px; }
}

/* guide switch in the top bar */
.bar-switch { display: inline-flex; border: 1px solid var(--gold-dim); border-radius: var(--r); overflow: hidden; }
.bar-switch a { font: 600 .85rem var(--ui); color: var(--cream); padding: 8px 12px; text-decoration: none; }
.bar-switch a[aria-current="page"] { background: var(--gold); color: #171404; }
@media (max-width: 520px) { .bar { gap: 8px; } .bar-logo img { height: 16px; } .bar-switch { margin-left: auto; } .bar-switch a, .bar-menu summary { padding: 7px 9px; font-size: .8rem; } .bar-menu { margin-left: 0; } }

/* how to print */
.hero-print .hero-img { object-position: 50% 45%; }
.planner { display: grid; grid-template-columns: minmax(280px, 1fr) 1.4fr; gap: clamp(24px, 5vw, 64px); margin-top: 32px; align-items: start; }
.plan-controls { position: sticky; top: 80px; }
.plan-controls .guests { margin: 0 0 22px; }
.switch { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; color: var(--cream); }
.switch small { display: block; color: var(--mute); font-size: .88rem; }
.switch input { appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1px solid var(--gold-dim); border-radius: var(--r); display: grid; place-content: center; cursor: pointer; background: transparent; }
.switch input:checked { background: var(--gold); border-color: var(--gold); }
.switch input:checked::after { content: "✓"; color: #171404; font-weight: 700; font-size: 15px; line-height: 1; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.totals div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.totals b { display: block; font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: var(--gold); }
.totals span { font-size: .88rem; color: var(--cream); display: block; margin-top: 6px; line-height: 1.3; padding-right: 8px; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; font-size: .95rem; animation: fade .3s ease; }
.plan-list li + li { border-top: 1px solid var(--line); }
.plan-list b { display: block; font: 600 1.02rem var(--ui); color: var(--cream); }
.p-kind { font: 600 .74rem var(--ui); text-align: center; padding: 3px 0; border-radius: var(--r); border: 1px solid var(--line); color: var(--text); }
.p-kind.card { background: var(--gold); border-color: var(--gold); color: #171404; }
.p-n { font: 600 .92rem var(--ui); color: var(--gold); white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 32px; align-items: start; }
.musts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.musts b { display: block; font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--gold); margin-bottom: 4px; }
.musts span { font-size: .88rem; display: block; line-height: 1.35; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs-row button { background: transparent; border: 1px solid var(--line); color: var(--cream); padding: 9px 13px; border-radius: var(--r); font: 600 .88rem var(--ui); cursor: pointer; }
.tabs-row button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #171404; }
.app-steps { margin: 0; padding-left: 1.3em; min-height: 9.5em; }
.app-steps li { margin-bottom: 8px; animation: rise .35s var(--ease) both; }
.app-steps li::marker { font-family: var(--display); color: var(--gold); }
.size-demo .seg { margin-bottom: 16px; }
.sheet { width: min(100%, 250px); aspect-ratio: 210 / 297; background: var(--cream); border-radius: 3px; padding: 8%; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); display: grid; place-items: center; margin-bottom: 14px; }
.sheet-in { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); gap: 5%; transition: transform .5s var(--ease); }
.sheet-in i { border: 1.5px dashed #6e6650; border-radius: 2px; background: #e4d8bd; }
.sheet.fit .sheet-in { transform: scale(.82); }
#sizeNote { color: var(--cream); margin-bottom: 0; min-height: 3.2em; }
.spoil-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 32px; }
.spoil-grid > div { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); grid-column: span 4; }
.spoil-grid > div:first-child { grid-column: span 5; border-color: var(--gold-dim); }
.spoil-grid > div:nth-child(2) { grid-column: span 4; }
.spoil-grid > div:nth-child(3) { grid-column: span 3; }
.spoil-grid b { display: block; font: 400 1.5rem/1.15 var(--display); color: var(--cream); margin-bottom: 10px; }
.spoil-grid p { margin: 0; font-size: .96rem; }
.setup-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 32px; align-items: start; }
.env-board { position: sticky; top: 80px; }
.env-board .small { margin: 0 0 14px; }
.envs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.env { background: #d9c9a6; color: #2b2415; border-radius: 4px; padding: 11px 10px; min-height: 76px; display: flex; flex-direction: column; justify-content: flex-end; animation: rise .35s var(--ease) both; }
.env span { font: 600 .6rem var(--ui); letter-spacing: .04em; text-transform: uppercase; }
.env b { font: 400 clamp(.86rem, 1.5vw, 1.1rem)/1.15 var(--display); }
.env.dark { background: #0b0b0a; color: var(--cream); border: 1px solid var(--gold-dim); }
.env.dark span { color: var(--gold); }
.env.sealed { background: #d9c9a6; border: 2px solid var(--red); }
.env.sealed span { color: #8c1f18; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 30px; }
.who-col + .who-col { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 48px); }
.who-col h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 12px; }
.who-col ul { list-style: none; padding: 0; margin: 0; }
.who-col li { margin-bottom: 12px; font-size: .98rem; }
.who-col b { color: var(--cream); }
.next-guide { margin-top: 36px; }
.others { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kit-peek { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kit-peek img { border-radius: var(--r); width: 100%; height: auto; }
.kit-peek img:nth-child(2) { transform: translateY(24px); }
h3.after { margin-top: 22px; margin-bottom: 4px; color: var(--gold); }
.others p { margin-bottom: 0; }
@media (max-width: 860px) {
  .planner, .settings-grid, .setup-grid, .who-grid, .others { grid-template-columns: 1fr; }
  .plan-controls, .env-board { position: static; }
  .who-col + .who-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .spoil-grid > div, .spoil-grid > div:first-child, .spoil-grid > div:nth-child(2), .spoil-grid > div:nth-child(3) { grid-column: 1 / -1; }
  .musts { grid-template-columns: 1fr 1fr; }
  .size-demo { max-width: 320px; }
}
@media (max-width: 480px) { .plan-list li { grid-template-columns: 54px 1fr; } .p-n { grid-column: 2; } }
