/* Cutaway: the page is a movie palace. The game frame is the screen, the side panel is the
   box office, and velvet curtains fill whatever room is left on wide displays. */

@font-face {
  font-family: "Limelight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/limelight-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Limelight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/limelight-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --house: #1c0d14;        /* the darkened auditorium */
  --booth: #26111a;        /* box-office panel */
  --booth-2: #2f1621;
  --line: #4a2532;
  --brass: #e9b14c;        /* marquee gold */
  --brass-ink: #2b1405;
  --light: #f7ede4;        /* projector light */
  --muted: #c4a6af;
  --faint: #8f6d77;
  --hit: #8adba6;
  --miss: #ff8f78;
  --glow: #f1d7a4;
  --tone-a: #2a0c12;
  --tone-b: #c0465a;
  --f-display: "Limelight", "Didot", "Bodoni 72", Georgia, serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --pad: clamp(12px, 2.2vw, 32px);
  --gap: clamp(14px, 1.6vw, 24px);
  --app-w: min(100vw, 760px);
  color-scheme: dark;
}

/* Wide screens: the screen is sized to the window height, the panel sits beside it. */
@media (min-width: 1000px) {
  :root {
    --side-w: 350px;
    --screen-w: max(520px, min(1760px, calc((100dvh - 246px) * 16 / 9), calc(100vw - var(--side-w) - var(--gap) - 2 * var(--pad) - 20px)));
    --app-w: calc(var(--screen-w) + var(--side-w) + var(--gap) + 2 * var(--pad));
  }
}

* { box-sizing: border-box; }
html { background: var(--house); }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden; overflow-x: clip;
  color: var(--light); font-family: var(--f-ui); font-size: 15px; line-height: 1.5;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(150, 52, 70, .32), transparent 70%),
    var(--house);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--brass); }
button { font-family: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- curtains ---------- */
.house { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.curtain {
  --rest: max(0px, calc((100vw - var(--app-w)) / 2 + var(--pad) * .6));
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), transparent 16%, transparent 64%, rgba(0,0,0,.6)),
    repeating-linear-gradient(90deg, #3a0711 0, #61111f 9px, #8e2133 18px, #a92e43 22px, #861d30 28px, #55101d 37px, #3a0711 46px);
}
.curtain::after { /* gold fringe along the hem */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: repeating-linear-gradient(90deg, rgba(233,177,76,.75) 0 2px, rgba(120,70,20,.5) 2px 4px);
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.25));
          mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.25));
  border-top: 2px solid rgba(233,177,76,.8);
}
@media (max-width: 779px) { .curtain { --rest: 0px; } }
.curtain.left { left: 0; transform: translateX(calc(var(--rest) - 100%)); box-shadow: inset -30px 0 30px -12px rgba(0,0,0,.75); }
.curtain.right { right: 0; transform: translateX(calc(100% - var(--rest))); box-shadow: inset 30px 0 30px -12px rgba(0,0,0,.75); }
@media (prefers-reduced-motion: no-preference) {
  .curtain.left  { animation: part-left 1.15s cubic-bezier(.65, 0, .25, 1) .25s backwards; }
  .curtain.right { animation: part-right 1.15s cubic-bezier(.65, 0, .25, 1) .25s backwards; }
}
@keyframes part-left  { from { transform: translateX(0); } }
@keyframes part-right { from { transform: translateX(0); } }

/* ---------- layout ---------- */
.app {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--app-w); margin: 0 auto; min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  display: grid; gap: var(--gap); align-content: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "meta" "stage" "play" "reveal" "log" "foot";
}
.side { display: contents; }
.meta { grid-area: meta; }
.play { grid-area: play; }
#revealSlot { grid-area: reveal; }
#revealSlot:empty { display: none; }
.log { grid-area: log; }
.top { grid-area: top; }
.stage { grid-area: stage; }
.foot { grid-area: foot; }

@media (min-width: 1000px) {
  .app {
    grid-template-columns: var(--screen-w) var(--side-w);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "top top" "stage side" "foot foot";
    row-gap: 18px; align-content: stretch;
  }
  .side {
    grid-area: side; align-self: stretch;
    display: flex; flex-direction: column; gap: 20px;
    background: linear-gradient(180deg, var(--booth-2), var(--booth) 40%);
    border: 1px solid var(--line); border-radius: 16px; padding: 20px;
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  }
  .meta, .play, #revealSlot, .log { grid-area: auto; }
}

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.mark {
  margin: 0; font: 400 clamp(32px, 3.1vw, 46px)/1 var(--f-display); letter-spacing: .015em;
  color: var(--brass); text-shadow: 0 0 22px rgba(233,177,76,.38), 0 1px 0 rgba(0,0,0,.6);
}
.tagline { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 1179px) { .tagline { display: none; } }
.hbtns { display: flex; gap: 8px; }
.navbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 14px var(--f-ui); color: var(--light);
  background: rgba(255,240,225,.05); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px 8px 12px;
}
.navbtn:hover { border-color: var(--faint); background: rgba(255,240,225,.09); }
.navbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 620px) {
  .navbtn { padding: 9px; }
  .navbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- the screen ---------- */
.stage { position: relative; isolation: isolate; min-width: 0; }
.stage::before { /* light thrown off the screen into the room */
  content: ""; position: absolute; z-index: -1; inset: -14% -10% -6%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 30%, transparent), transparent);
  transition: background .8s ease;
}
.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 10px;
  background: #050203; container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(255,236,210,.10), 0 0 70px -12px color-mix(in srgb, var(--glow) 55%, transparent), 0 30px 70px -30px rgba(0,0,0,.9);
  transition: box-shadow .8s ease;
}
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen .credit {
  position: absolute; z-index: 2; right: 8px; bottom: 6px; max-width: 70%;
  font-size: 11px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.screen .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { .screen.flick > :not(.clip) { animation: flick .5s ease-out; } }
@keyframes flick { 0% { filter: brightness(2.4) contrast(.55); } 30% { filter: brightness(.55); } 100% { filter: none; } }

/* written clue, set like a silent-film title card */
.card {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 7cqi 11cqi;
  background: radial-gradient(120% 120% at 30% 25%, var(--tone-b) -20%, var(--tone-a) 62%, #070304 110%);
}
.card::before { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.card::after { /* double rule frame */
  content: ""; position: absolute; inset: 4.2cqi 4.6cqi; pointer-events: none;
  border: 1px solid rgba(255,236,205,.38); border-radius: 3px;
  outline: 1px solid rgba(255,236,205,.16); outline-offset: .9cqi;
}
.card p {
  position: relative; margin: 0; max-width: 34em;
  font-size: clamp(15px, 3.05cqi, 42px); line-height: 1.38; font-weight: 450; font-stretch: 96%;
  color: #fff8ef; text-shadow: 0 1px 2px rgba(0,0,0,.6); text-wrap: pretty;
}
.card .kicker { position: relative; display: block; margin-bottom: 1.6cqi; font-size: clamp(11px, 1.5cqi, 15px); color: rgba(255,240,220,.7); letter-spacing: .04em; }

/* the answer when there is no clip, and the end-of-day card */
.titlecard {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8cqi; padding: 6cqi; text-align: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--tone-b) -30%, var(--tone-a) 58%, #070304 105%);
}
.titlecard .kicker { font-size: clamp(12px, 1.9cqi, 18px); color: rgba(255,240,220,.78); }
.titlecard h3 {
  margin: 0; font: 400 clamp(26px, 7cqi, 84px)/1.02 var(--f-display); color: #fff6e8; text-wrap: balance;
  text-shadow: 0 0 30px rgba(255,220,170,.25), 0 2px 3px rgba(0,0,0,.5);
}
.titlecard .sub { font-size: clamp(13px, 2.1cqi, 20px); color: rgba(255,240,220,.85); }
.titlecard .big { font: 800 clamp(48px, 15cqi, 170px)/.9 var(--f-ui); font-stretch: 70%; color: var(--brass); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(233,177,76,.35); }

.clip { position: absolute; inset: 0; background: #000; }
.clip iframe, .clip > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 650 clamp(13px, 1.7cqi, 16px) var(--f-ui); color: var(--brass-ink); background: var(--brass);
  padding: .7em 1.2em; border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.7);
}
.pill svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.pill:hover { filter: brightness(1.07); }

/* ---------- film strip ---------- */
.strip {
  position: relative; margin-top: 12px; padding: 13px 10px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
  background: #0e0609; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,236,210,.06);
}
.strip::before, .strip::after { /* sprocket holes */
  content: ""; position: absolute; left: 8px; right: 8px; height: 5px;
  background: repeating-linear-gradient(90deg, rgba(255,236,210,.16) 0 7px, transparent 7px 15px);
  border-radius: 1px;
}
.strip::before { top: 4px; } .strip::after { bottom: 4px; }
.cell {
  position: relative; height: 54px; min-width: 0; padding: 0; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--light);
  background: var(--booth) center / cover no-repeat;
  font-variant-numeric: tabular-nums;
}
.cell.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,4,6,.25), rgba(10,4,6,.78)); }
.cell > * { position: relative; }
.cell .n { position: absolute; top: 3px; left: 6px; font-size: 11px; color: var(--muted); }
.cell .p { font: 700 18px/1 var(--f-ui); font-stretch: 78%; }
.cell .r { position: absolute; top: 3px; right: 5px; width: 13px; height: 13px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cell .r.wrong { stroke: var(--miss); } .cell .r.skip { stroke: var(--faint); } .cell .r.right { stroke: var(--hit); }
.cell .lk { position: absolute; top: 4px; right: 5px; width: 11px; height: 11px; fill: currentColor; }
.cell .lbl { font-size: 11.5px; color: var(--muted); line-height: 1.1; }
.cell .ico { width: 15px; height: 15px; fill: currentColor; }
.cell.passed .p { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.cell.won .p { color: var(--hit); }
.cell.locked { cursor: not-allowed; background: transparent; border-style: dashed; color: var(--faint); }
.cell.locked .n, .cell.locked .lbl { color: var(--faint); }
.cell.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.cell:not(.locked):not(.on):hover { border-color: var(--faint); }
.cell.answer:not(.locked) { color: var(--brass); }
.cell.answer:not(.locked) .lbl { color: var(--brass); }

/* ---------- side panel ---------- */
.meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: end; }
.reelinfo h2 { margin: 0; font: 700 19px/1.15 var(--f-ui); font-stretch: 92%; }
.reelinfo p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.score { text-align: right; line-height: 1; }
.score b { display: block; font: 800 46px/.9 var(--f-ui); font-stretch: 72%; font-variant-numeric: tabular-nums; color: var(--light); }
.score span { font-size: 13px; color: var(--muted); }
.reels { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.reels li {
  height: 46px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,240,225,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.reels li b { font: 700 17px/1.05 var(--f-ui); font-stretch: 80%; color: var(--faint); }
.reels li.now { border-color: var(--brass); color: var(--brass); background: rgba(233,177,76,.08); }
.reels li.now b { color: var(--brass); }
.reels li.won b { color: var(--hit); }
.reels li.lost b { color: var(--miss); }

.status { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.status b { color: var(--light); font-weight: 650; }
.status .worth { color: var(--brass); font-weight: 600; }
form.guess { display: flex; flex-wrap: wrap; gap: 8px; }
form.guess input {
  flex: 1 1 100%; min-width: 0; font: 400 17px var(--f-ui); color: var(--light);
  background: rgba(10,4,6,.55); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
form.guess input::placeholder { color: var(--faint); }
form.guess input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(233,177,76,.22); }
.btnrow { display: flex; gap: 8px; flex: 1 1 100%; }
.btn { font: 650 15px var(--f-ui); border-radius: 10px; padding: 12px 18px; cursor: pointer; border: 1px solid transparent; }
.btn.go { background: var(--brass); color: var(--brass-ink); flex: 1; box-shadow: 0 8px 20px -10px rgba(233,177,76,.6); }
.btn.go:hover { filter: brightness(1.07); }
.btn.skip, .btn.quiet { background: transparent; color: var(--light); border-color: var(--line); }
.btn.skip:hover, .btn.quiet:hover { border-color: var(--faint); }
.btn.wide { width: 100%; }
.msg { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--muted); }
.msg.bad { color: var(--miss); }
.msg:empty { margin-top: 0; min-height: 0; }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.log:empty { display: none; }
.log li {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px;
  font-size: 14.5px; padding: 8px 12px; border-radius: 8px; background: rgba(255,240,225,.045); border: 1px solid transparent;
}
.log li .n { width: 14px; flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.log li svg { width: 15px; height: 15px; flex: none; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.log li.wrong svg { stroke: var(--miss); } .log li.skip svg { stroke: var(--faint); } .log li.right svg { stroke: var(--hit); }
.log li.right { border-color: rgba(138,219,166,.35); }
.log li.skip .t { color: var(--muted); }
.log li .t { overflow-wrap: anywhere; min-width: 0; }
.log li.empty { background: transparent; border: 1px dashed rgba(255,236,210,.10); color: var(--faint); }
.log li.next { border-color: rgba(233,177,76,.45); border-style: dashed; }
.log li.empty .t { font-size: 13px; }
@media (max-width: 999px) { .log li.empty { display: none; } }

/* your stats, at the foot of the panel on wide screens */
.mini { display: none; margin-top: auto; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,236,210,.08); text-align: center; }
.mini b { display: block; font: 800 24px/1.05 var(--f-ui); font-stretch: 74%; font-variant-numeric: tabular-nums; }
.mini span { font-size: 12px; color: var(--muted); }

/* reveal, in the panel */
.reveal { display: flex; flex-direction: column; gap: 12px; }
.verdict { margin: 0; font-weight: 650; font-size: 14.5px; }
.verdict.won { color: var(--hit); } .verdict.lost { color: var(--miss); }
.reveal h2 { margin: 0; font: 400 clamp(28px, 2.5vw, 38px)/1.05 var(--f-display); text-wrap: balance; overflow-wrap: anywhere; }
.facts { margin: 0; color: var(--muted); font-size: 14.5px; }
.facts b { color: var(--light); font-weight: 600; }
.gain { font: 800 32px/1 var(--f-ui); font-stretch: 74%; color: var(--brass); font-variant-numeric: tabular-nums; }
.gain span { font: 500 14px var(--f-ui); color: var(--muted); margin-left: 6px; }

/* end of the day */
.rows { display: flex; flex-direction: column; gap: 4px; }
.rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,236,210,.07); }
.rows .t { overflow-wrap: anywhere; min-width: 0; }
.rows .e { letter-spacing: 1px; font-size: 12px; white-space: nowrap; }
.rows .p { font: 700 17px var(--f-ui); font-stretch: 80%; font-variant-numeric: tabular-nums; text-align: right; min-width: 32px; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share .btn { flex: 1; }
.after { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.countdown { font-size: 14px; color: var(--muted); }
.countdown b { color: var(--light); font-variant-numeric: tabular-nums; }
pre.sharebox { margin: 0; font: 400 13px ui-monospace, Menlo, monospace; white-space: pre-wrap; color: var(--muted); user-select: all; }

.empty-state { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.empty-state p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.foot { font-size: 12.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.tmdb-credit { display: flex; align-items: center; gap: 10px; }
.tmdb-credit img { height: 12px; width: auto; display: block; } /* kept smaller than the Cutaway name, per TMDB's rules */
.tmdb-credit p { margin: 0; }

/* ---------- dialogs ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12,4,8,.72); backdrop-filter: blur(3px); }
.panel {
  width: min(460px, 100%); max-height: 90dvh; overflow: auto; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, var(--booth-2), var(--booth) 50%); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.panel h3 { margin: 0; font: 400 30px/1.1 var(--f-display); color: var(--brass); }
.panel .note { margin: 0; color: var(--muted); font-size: 14px; }
.panel ul { margin: 0; padding-left: 18px; color: var(--light); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.panel ul li::marker { color: var(--brass); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.nums div { background: rgba(255,240,225,.04); border-radius: 10px; padding: 10px 4px; }
.nums b { display: block; font: 800 32px/1 var(--f-ui); font-stretch: 74%; font-variant-numeric: tabular-nums; }
.nums span { font-size: 12.5px; color: var(--muted); }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.scale div { background: rgba(255,240,225,.04); border-radius: 8px; padding: 7px 2px; }
.scale b { display: block; font: 700 17px var(--f-ui); font-stretch: 80%; color: var(--light); font-variant-numeric: tabular-nums; }
.about { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.about h4 { margin: 0; font-size: 14px; color: var(--light); font-weight: 650; }
.about p { margin: 0; }
.arch { display: flex; flex-direction: column; gap: 6px; }
.arch button {
  display: flex; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer;
  font: 500 14.5px var(--f-ui); color: var(--light); background: rgba(255,240,225,.04);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.arch button:hover { border-color: var(--faint); }
.arch button span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- phones and tablets ---------- */
@media (max-width: 999px) {
  .meta { grid-template-columns: minmax(0, 1fr) auto; }
  .reels li { height: 42px; }
  .reveal, .empty-state, .final { background: var(--booth); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
}
@media (max-width: 520px) {
  .score b { font-size: 40px; }
  .strip { gap: 5px; padding: 12px 6px; }
  .cell { height: 48px; }
  .cell .p { font-size: 15px; }
  .cell .n { left: 4px; font-size: 10px; }
  .cell .lbl { font-size: 10px; }
  .card { padding: 6cqi 8cqi; }
  .card p { font-size: clamp(13.5px, 4.1cqi, 18px); line-height: 1.32; }
  .btn { padding: 12px 14px; }
  .scale { grid-template-columns: repeat(4, 1fr); }
  .foot { justify-content: flex-start; }
}
@media (max-width: 999px) { .log:not(:has(li:not(.empty))) { display: none; } }
@media (min-width: 1000px) {
  .mini { display: grid; }
  .log { flex: 0 1 auto; }
  .log li { min-height: 42px; }
}
@media (min-width: 1000px) and (min-height: 1000px) {
  .log li { min-height: 52px; font-size: 15.5px; }
  .side { gap: 24px; padding: 24px; }
}
.share .msg:empty { display: none; }
@media (max-width: 999px) { .stage::before { inset: -8% 0 -4%; } }
@media (min-width: 1000px) and (max-height: 760px) {
  .log li { min-height: 34px; padding: 6px 12px; }
  .side { gap: 16px; padding: 18px; }
}
