/* ===== Big-screen app (TV · tablet · desktop) ===== */
.screen { min-height: 100vh; padding: clamp(14px, 2.4vw, 3rem); position: relative; }
html.tv .screen { padding: 4vh 4.5vw; } /* TV overscan safe area */
.kicker.dark { color: var(--pumpkin-deep); }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(43, 29, 20, 0.35); }

/* ---------- Title ---------- */
.title-screen { display: flex; align-items: flex-end; overflow: hidden; padding-bottom: 7vh; }
.title-bg, .title-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.title-bg img, .title-bg .ph-fallback { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; animation: slowzoom 40s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.title-shade { background: linear-gradient(180deg, rgba(20, 12, 7, 0.15) 0%, rgba(20, 12, 7, 0.25) 35%, rgba(20, 12, 7, 0.88) 72%, rgba(20, 12, 7, 0.97) 100%); }
.title-inner { position: relative; max-width: 62rem; }
.title-h { display: flex; flex-direction: column; line-height: 0.92; margin: 0.4rem 0 0.9rem; text-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.55); }
.title-h .t1 { font-size: 2.6rem; font-weight: 600; color: var(--on-dark); font-style: italic; }
.title-h .t2 { font-size: 5.6rem; font-weight: 900; color: var(--pumpkin-2); letter-spacing: -0.02em; }
.title-h .t3 { align-self: flex-start; font-family: var(--f-vhs); font-size: 2.4rem; color: #fff; background: var(--wine); padding: 0.05em 0.45em 0; border-radius: 0.3rem; transform: rotate(-4deg); margin-top: 0.4rem; text-shadow: none; }
.title-tag { font-size: 1.3rem; max-width: 40rem; color: var(--on-dark); margin-bottom: 1.4rem; }
.title-actions { margin-bottom: 1rem; }
.title-small .btn { font-size: 0.9rem; }

/* ---------- Layers (modals) ---------- */
.layer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 2.5vw, 3rem); }
.layer-scrim { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 8, 4, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.layer-box { position: relative; width: 100%; max-width: 64rem; max-height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #3d2718, #2a1a11); border-radius: 1.1rem; padding: clamp(18px, 2.4vw, 2.6rem); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 230, 190, 0.12);
  animation: pop 0.22s ease-out both; }
@keyframes pop { from { transform: translateY(14px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.layer-x { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 3; font-size: 0.9rem; min-height: 2.6rem; }
.layer-h { font-size: 2rem; margin: 0 0 0.6rem; padding-right: 7rem; color: var(--on-dark); }
/* Only the content scrolls, so the Close button never scrolls away (long letters on a phone). */
.layer-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: -0.4rem; padding: 0.4rem; }
.layer-content > p { margin-bottom: 0.8rem; }
.layer-content .row { margin-top: 1.2rem; }
.ev-layer .layer-box { max-width: 72rem; }
.ev-head { margin-bottom: 1.2rem; }
.ev-head .chip { margin-bottom: 0.4rem; }
.ev-nav { justify-content: center; }
.small-note { font-size: 0.9rem; margin-top: 0.8rem; }
.howto { padding-left: 1.4rem; margin: 0.4rem 0 1rem; }
.howto li { margin-bottom: 0.7rem; font-size: 1.1rem; }
.howto.small li { font-size: 1rem; }
.toast { position: fixed; left: 50%; bottom: 4vh; transform: translate(-50%, 2rem); opacity: 0; z-index: 90; background: var(--paper); color: var(--ink); padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-2); transition: all 0.25s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Setup ---------- */
.setup-screen { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.setup-card { position: relative; max-width: 52rem; width: 100%; padding: clamp(20px, 3vw, 3rem); border-radius: 0.5rem; box-shadow: var(--shadow-2); transform: rotate(-0.4deg); }
.setup-card h2 { font-size: 2.4rem; margin: 0.2rem 0 0.5rem; }
.setup-help { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.08rem; }
.count-row { margin-bottom: 1.1rem; }
.count-btn { background: #fffaf0; }
.count-btn.on { background: var(--pumpkin); color: #fff; }
.team-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.8rem; margin-bottom: 1.1rem; }
.team-field { display: flex; align-items: center; gap: 0.6rem; background: #fffaf0; border-radius: 0.6rem; padding: 0.35rem 0.8rem; box-shadow: inset 0 0 0 2px rgba(43, 29, 20, 0.15); }
.team-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; padding: 0.45rem 0; color: var(--ink); }
.team-field:focus-within { box-shadow: inset 0 0 0 3px var(--gold); }
.dot { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; flex: none; background: var(--tc, var(--pumpkin)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
.setup-phones { background: rgba(111, 131, 96, 0.16); border-radius: 0.6rem; padding: 0.75rem 1rem; color: var(--ink); margin-bottom: 1.3rem; }
.setup-phones .icon { vertical-align: -0.2em; }
.setup-actions { justify-content: space-between; }

/* ---------- Prologue ---------- */
.prologue-screen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; }
.pro-media { position: relative; }
.pro-wide { border-radius: 0.6rem; box-shadow: var(--shadow-2); }
.pro-vignette { background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45)); }
.pro-pol { max-width: 30rem; margin: 0 auto; transform: rotate(-2.5deg); }
.pro-vhs .pro-pol .ratio img { filter: saturate(1.2) contrast(1.05) sepia(0.15); }
.kicker-vhs { font-family: var(--f-vhs); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.08em; color: #fff; }
.kicker-vhs::before { content: '● '; color: #ff4a4a; }
.pro-h { font-size: 3.4rem; margin: 0.3rem 0 0.8rem; color: var(--on-dark); }
.pro-p { font-size: 1.45rem; line-height: 1.5; max-width: 34rem; margin-bottom: 1.4rem; }
.pro-june .pro-h { font-style: italic; color: var(--pumpkin-2); }
.pro-dots { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.pro-dots span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255, 235, 200, 0.25); }
.pro-dots span.on { background: var(--pumpkin-2); width: 1.8rem; border-radius: 1rem; }
.pro-text { animation: rise 0.5s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hub ---------- */
.hub { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.hub-top { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.brand-mini { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--on-dark-soft); display: flex; gap: 0.4rem; align-items: baseline; }
.brand-mini b { font-family: var(--f-vhs); font-weight: 400; color: #fff; background: var(--wine); padding: 0 0.35em; border-radius: 0.2rem; }
.round-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; padding: 0.4rem 1rem; border-radius: 999px; box-shadow: var(--shadow-1); }
.hub-right { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.timer-box { display: flex; align-items: center; gap: 0.4rem; }
.timer { font-family: var(--f-vhs); font-size: 2rem; color: var(--gold); min-width: 4.5ch; text-align: right; }
.top-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hub-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr); gap: 1.4rem; }
.hub-side { display: flex; flex-direction: column; gap: 1rem; min-height: 0; overflow-y: auto; padding: 0.3rem; }
.goal { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; border-radius: 0.6rem; box-shadow: var(--shadow-1); transform: rotate(-0.6deg); }
.goal-ava { width: 3.6rem; height: 3.6rem; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, var(--shadow-1); position: relative; background: #6c4a33; }
.goal-ava img, .goal-ava .ph-fallback { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.goal-ava .ph-fallback span { display: none; }
.goal-k { font-family: var(--f-hand-goldie); color: var(--pumpkin-deep); font-size: 1rem; line-height: 1.1; }
.goal-t { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.teams { display: flex; flex-direction: column; gap: 0.6rem; }
.team-row { display: flex; align-items: center; gap: 0.7rem; background: rgba(255, 240, 210, 0.07); border-radius: 0.7rem; padding: 0.6rem 0.7rem; box-shadow: inset 0.3rem 0 0 var(--tc); }
.team-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.team-meta b { font-family: var(--f-display); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-st { font-size: 0.9rem; color: var(--on-dark-soft); display: flex; align-items: center; gap: 0.3rem; }
.team-row.frozen { background: rgba(120, 170, 220, 0.16); }
.team-row.frozen .team-st { color: #bfe0ff; font-weight: 700; }
.team-row.done .team-st { color: var(--gold); font-weight: 700; }
.accuse-btn { flex: none; }
.next-round { margin-top: auto; }
.hub-main { min-height: 0; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 0.4rem; }
.tab { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; padding: 0.6rem 1.2rem; border-radius: 0.8rem 0.8rem 0 0; background: rgba(255, 240, 210, 0.08); color: var(--on-dark-soft); min-height: 2.9rem; }
.tab.on { background: rgba(255, 240, 210, 0.16); color: var(--on-dark); }
.tab-panel { flex: 1; min-height: 0; overflow-y: auto; background: rgba(255, 240, 210, 0.08); border-radius: 0 0.9rem 0.9rem 0.9rem; padding: 1.2rem 1.2rem 2rem; }

/* Evidence tiles: objects on the table */
.ev-group + .ev-group { margin-top: 1.6rem; }
.ev-group-h { font-size: 1.2rem; color: var(--gold); display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.1rem; }
.ev-tile {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-align: left; position: relative;
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0.75rem 0.9rem; border-radius: 0.5rem;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); transform: rotate(var(--rot, 0deg));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ev-tile:hover, .ev-tile:focus-visible { transform: rotate(0) translateY(-3px) scale(1.02); box-shadow: var(--shadow-2); }
.ev-tile.unseen { box-shadow: 0 0 0 3px var(--pumpkin), var(--shadow-1); }
.ev-n { font-family: var(--f-vhs); font-size: 1.15rem; color: var(--pumpkin-deep); line-height: 1; margin-top: 0.3rem; }
.ev-title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.ev-short { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.3; }
.ev-new { position: absolute; top: -0.6rem; right: -0.4rem; transform: rotate(4deg); box-shadow: var(--shadow-1); }
.sealed-env { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.2rem; border-radius: 0.6rem; border: 2px dashed rgba(255, 235, 200, 0.3); color: var(--on-dark-soft); font-weight: 700; }

/* Tile thumbnails (pure CSS miniatures) */
.th { display: block; position: relative; height: 6.2rem; border-radius: 0.3rem; overflow: hidden; background: #e9dcc0; }
.th i { display: block; height: 0.32rem; margin: 0.55rem 0.8rem 0; background: rgba(35, 49, 79, 0.45); border-radius: 1rem; }
.th i:nth-child(2) { width: 70%; }
.th-card { background: #fbf6ea repeating-linear-gradient(transparent 0 0.9rem, rgba(80, 120, 170, 0.25) 0.9rem 0.95rem); padding-top: 0.4rem; }
.th-card.red { border-top: 0.3rem solid #c84a4a; }
.th-scrap { background: #fdfdf6; transform: rotate(-2deg); padding-top: 0.6rem; box-shadow: inset 0.9rem 0 0 -0.84rem rgba(220, 80, 80, 0.6); }
.th-news { background: #efe6d2; padding-top: 0.4rem; }
.th-news b, .th-letter b { display: block; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 1rem; letter-spacing: 0.06em; }
.th-letter { background: #f7f2e6; padding-top: 0.4rem; }
.th-letter b { color: var(--wine); }
.th-letter em { position: absolute; right: 0.5rem; bottom: 0.4rem; font-style: normal; font-weight: 700; font-size: 0.875rem; background: var(--uv); color: var(--uv-glow); padding: 0.1rem 0.45rem; border-radius: 0.3rem; }
.th-letter.bank b { color: #3c5a3a; }
.th-map { background: #f4ead3; background-image: linear-gradient(#6b4a2e, #6b4a2e), linear-gradient(#6b4a2e, #6b4a2e), linear-gradient(#6b4a2e, #6b4a2e); background-size: 100% 3px, 3px 100%, 3px 60%; background-position: 0 55%, 45% 0, 70% 0; background-repeat: no-repeat; box-shadow: inset 0 0 0 3px #6b4a2e; }
.th-map i { display: none; }
.th-score { background: #f7f2e6; box-shadow: inset 0 0 0 0.25rem #6f8360; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.th-score b { font-family: var(--f-hand-goldie); color: #1f2f6b; font-size: 1.3rem; }
.th-score em { color: #c0394b; font-style: normal; font-size: 1.4rem; }
.th-machine { background: linear-gradient(180deg, #e9e0cd, #cfc3aa); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.th-machine i { width: 1.9rem; height: 1.9rem; margin: 0; border-radius: 50%; background: radial-gradient(circle, #e8e2d6 0 22%, #3a332c 23% 40%, #8b7d6a 41%); }
.th-machine b { font-family: var(--f-vhs); font-size: 1.3rem; background: #9fb08a; padding: 0 0.3rem; border-radius: 0.2rem; }
.th-receipt { background: #fbfbf7; width: 60%; margin: 0 auto; box-shadow: 0.9rem 0.4rem 0 -0.2rem #ffe88a; padding-top: 0.3rem; }
.th-photo { background: #151515; height: auto; }
.pol-th { background: #fbf8f1; padding: 0.3rem 0.3rem 0.9rem; }
.th-vhs-t { font-family: var(--f-vhs); color: #fff; font-size: 1.4rem; padding: 0.2rem 0.4rem; text-shadow: 1px 1px 0 #000; }

/* Suspects */
.sus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.4rem 1.2rem; }
.sus-tile { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--on-dark); text-align: center; border-radius: 0.6rem; }
.sus-tile .polaroid { transition: transform 0.15s ease; }
.sus-tile:hover .polaroid, .sus-tile:focus-visible .polaroid { transform: rotate(0) scale(1.04) !important; }
.sus-role { display: block; margin-top: 0.55rem; font-size: 0.95rem; color: var(--on-dark-soft); }
.sus-tile.victim .polaroid { box-shadow: 0 0 0 3px var(--gold), var(--shadow-2); }
.sus-sheet { display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.sus-blurb { font-size: 1.2rem; margin-bottom: 1rem; }
.statement { padding: 1rem 1.2rem; border-radius: 0.4rem; box-shadow: var(--shadow-1); margin-bottom: 1rem; }
.st-k { display: block; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pumpkin-deep); margin-bottom: 0.3rem; }
.st-q { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.35; }
.sus-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; }
.sus-facts dt { font-weight: 700; color: var(--gold); }
.sus-facts dd { margin: 0; }
.facts { padding-left: 1.2rem; font-size: 1.15rem; }
.facts li { margin-bottom: 0.6rem; }

/* Round intro & phones */
.round-intro { text-align: center; max-width: 46rem; margin: 0 auto; }
.round-h { font-size: 3rem; color: var(--pumpkin-2); display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.2rem 0 0.8rem; }
.round-h .icon { width: 0.9em; height: 0.9em; }
.round-p { font-size: 1.3rem; margin-bottom: 0.8rem; }
.round-goal { font-size: 1.15rem; background: rgba(255, 240, 210, 0.08); border-radius: 0.6rem; padding: 0.7rem 1rem; display: inline-block; }
.round-new { color: var(--gold); font-weight: 700; margin: 0.8rem 0 !important; }
.round-intro .row { justify-content: center; }
.phone-block { display: flex; gap: 1.2rem; align-items: center; text-align: left; background: var(--paper); color: var(--ink); border-radius: 0.8rem; padding: 0.9rem 1.1rem; margin: 1rem 0; box-shadow: var(--shadow-1); }
.qr { width: 9rem; height: 9rem; flex: none; background: #fff; border-radius: 0.4rem; padding: 0.3rem; }
.qr svg { width: 100%; height: 100%; display: block; }
.phone-txt p + p { margin-top: 0.3rem; }
.phone-txt .icon { vertical-align: -0.2em; }
.round-code { font-family: var(--f-vhs); font-size: 2.6rem; letter-spacing: 0.2em; color: var(--wine); line-height: 1; }
.warn { color: var(--wine); font-size: 0.9rem; font-weight: 700; }

/* Hints, menu, keypad */
.hint-list { padding-left: 1.4rem; }
.hint-list li { margin-bottom: 0.8rem; font-size: 1.15rem; }
.hint-list li.open { background: var(--paper); color: var(--ink); padding: 0.7rem 1rem; border-radius: 0.5rem; list-style-position: inside; margin-left: -1.4rem; box-shadow: var(--shadow-1); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.7rem; }
.menu-grid .btn { justify-content: flex-start; border-radius: 0.7rem; }
.code-dots { display: flex; gap: 1rem; justify-content: center; margin: 0.6rem 0 1rem; }
.code-dots span { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 3px solid var(--on-dark-soft); }
.code-dots span.on { background: var(--gold); border-color: var(--gold); }
.code-dots.bad span { border-color: var(--wine-2); background: var(--wine-2); animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 5rem); gap: 0.7rem; justify-content: center; }
.keypad .btn { border-radius: 0.8rem; font-size: 1.5rem; min-height: 4rem; }

/* Accusation */
.acc-layer .layer-box { max-width: 70rem; }
.acc-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 1.05rem; margin-bottom: 0.9rem; padding-right: 7rem; }
.acc-head b { font-family: var(--f-display); font-size: 1.2rem; }
.acc-steps { display: flex; gap: 0.35rem; margin-left: auto; }
.acc-steps span { padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700; background: rgba(255, 240, 210, 0.08); color: var(--on-dark-soft); }
.acc-steps span.on { background: var(--pumpkin); color: #fff; }
.acc-steps span.done { background: rgba(111, 131, 96, 0.5); color: #fff; }
.acc-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.acc-pick { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0.35rem; cursor: pointer; border-radius: 0.6rem; }
.acc-pick .polaroid { transition: transform 0.12s ease; }
.acc-pick:hover .polaroid, .acc-pick:focus-visible .polaroid { transform: scale(1.05) rotate(-1deg); }
.acc-pick.on .polaroid { box-shadow: 0 0 0 4px var(--pumpkin), var(--shadow-2); }
.acc-list { display: grid; gap: 0.7rem; }
.acc-opt { justify-content: flex-start; text-align: left; border-radius: 0.8rem; font-size: 1.2rem; padding: 0.8rem 1.2rem; }
.acc-opt.on { background: var(--pumpkin); color: #fff; }
.acc-review { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 1.6rem; align-items: center; }
.acc-sum { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; margin: 0; font-size: 1.25rem; }
.acc-sum dt { font-family: var(--f-display); font-weight: 900; color: var(--gold); }
.acc-sum dd { margin: 0; }

/* Verdict */
.verdict-layer .layer-box { max-width: 44rem; text-align: center; }
.verdict-h { font-size: 3rem; margin: 0.3rem 0 1rem; }
.verdict.pending .verdict-h { animation: pulse 0.8s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }
.verdict .row { justify-content: center; }
.stamp { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; letter-spacing: 0.08em; padding: 0.2em 0.6em; border: 0.3rem solid currentColor; border-radius: 0.5rem; transform: rotate(-6deg); margin: 0.2rem 0 1.2rem; animation: stampin 0.35s cubic-bezier(.2, 1.6, .5, 1) both; }
@keyframes stampin { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.stamp.ok { color: #8fd17a; }
.stamp.bad { color: #9fd0ff; }
.stamp.locked { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal-screen { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
.rv-nav { justify-content: center; }
.rv-rewind { text-align: center; }
.rv-vhs { font-family: var(--f-vhs); font-size: 3rem; color: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.rv-big { font-size: 3.6rem; margin: 0.6rem auto 1rem; max-width: 50rem; color: var(--pumpkin-2); }
.rv-p { font-size: 1.4rem; line-height: 1.5; max-width: 42rem; margin: 0 auto; }
.rv-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; animation: rise 0.5s ease-out both; }
.rv-media .polaroid { max-width: 28rem; margin: 0 auto; }
.rv-time { font-family: var(--f-vhs); font-size: 2.2rem; color: var(--gold); }
.rv-h { font-size: 2.8rem; margin: 0.2rem 0 0.8rem; color: var(--on-dark); }
.rv-h.dark { color: var(--ink); }
.rv-text .rv-p { margin: 0; }
.rv-ev { margin-top: 1rem !important; display: inline-block; background: rgba(255, 240, 210, 0.1); padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 700; color: var(--on-dark-soft); }
.rv-letter { position: relative; max-width: 44rem; margin: 0 auto; padding: 2rem 2.2rem; box-shadow: var(--shadow-2); transform: rotate(-0.8deg); }
.rv-letter p { font-size: 1.7rem; line-height: 1.35; color: #23314f; }
.rv-letter p + p { margin-top: 0.6rem; }
.rv-letter-k { font-family: var(--f-body) !important; font-size: 0.95rem !important; color: var(--ink-soft) !important; text-align: right; }
.rv-under { text-align: center; color: var(--on-dark-soft); font-style: italic; }
.rv-finale { position: relative; max-width: min(66rem, 100vh); margin: 0 auto; width: 100%; }
.rv-wide { border-radius: 0.8rem; box-shadow: var(--shadow-2); }
.rv-finale-card { position: absolute; right: 4%; bottom: -1.5rem; width: min(24rem, 60%); transform: rotate(2.5deg); }
.rv-finale-p { margin-top: 2.8rem; text-align: center; }
.rv-results { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; max-width: 70rem; margin: 0 auto; width: 100%; }
.rv-res-main { position: relative; padding: 1.6rem 1.8rem; border-radius: 0.5rem; box-shadow: var(--shadow-2); }
.rv-sol { font-size: 1.2rem; margin-bottom: 1rem; }
.rv-teams { list-style: none; padding: 0; margin: 0 0 0.9rem; }
.rv-teams li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(43, 29, 20, 0.15); }
.rv-teams li span:last-child { margin-left: auto; color: var(--ink-soft); }
.rv-stats { font-weight: 700; color: var(--pumpkin-deep); }
.rv-seal { background: rgba(255, 240, 210, 0.08); border-radius: 0.8rem; padding: 1.4rem; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.seal-words { font-family: var(--f-vhs); font-size: 2.6rem; color: var(--gold); line-height: 1.1; }
.rv-paper { max-width: 56rem; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hub { height: auto; }
  .hub-body { grid-template-columns: minmax(0, 1fr); }
  .hub-side { overflow: visible; }
  .tab-panel { overflow: visible; }
  .hub-right { margin-left: 0; justify-content: flex-start; }
  .prologue-screen, .rv-scene, .rv-results, .sus-sheet, .acc-review { grid-template-columns: 1fr; }
  .title-h .t2 { font-size: 3.6rem; }
  .title-h .t1 { font-size: 1.8rem; }
  .pro-h { font-size: 2.3rem; }
  .rv-big { font-size: 2.4rem; }
  .rv-finale-card { position: relative; right: auto; bottom: auto; width: auto; margin: -2rem 1rem 0; }
  .rv-finale-p { margin-top: 1.2rem; }
  .sus-pic { max-width: 18rem; margin: 0 auto; }
}
@media (max-width: 560px) {
  .layer-h { font-size: 1.55rem; padding-right: 0; margin-top: 2.6rem; }
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.8rem; }
  .sus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-block { flex-direction: column; text-align: center; }
  .brand-mini span { display: none; }
  .tab { flex: 1; justify-content: center; padding: 0.5rem 0.6rem; font-size: 1rem; }
  .tab .icon { display: none; }
  .setup-card .tape { display: none; }
  .top-actions .btn span { display: none; }
  .acc-head { padding-right: 0; margin-top: 2.6rem; }
  .keypad { grid-template-columns: repeat(3, 4.2rem); }
}

/* ---------- Difficulty picker ---------- */
.setup-sub { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin: 0.2rem 0 0.6rem; }
.level-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.1rem; }
.level-btn { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem; border-radius: 0.7rem; background: #fffaf0; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(43, 29, 20, 0.15); }
.level-btn b { font-family: var(--f-display); font-size: 1.2rem; }
.level-tag { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pumpkin-deep); }
.level-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.3; }
.level-btn.on { background: var(--pumpkin); color: #fff; box-shadow: var(--shadow-1); }
.level-btn.on .level-tag, .level-btn.on .level-desc { color: #fff; }
.acc-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.6rem; }

/* ---------- Gift / next case ---------- */
.rv-gift { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 70rem; margin: 0 auto; width: 100%; }
.gift-card { position: relative; padding: 1.8rem 2rem; border-radius: 0.5rem; box-shadow: var(--shadow-2); transform: rotate(-0.6deg); }
.gift-h { font-size: 3.2rem; color: var(--wine); margin: 0.2rem 0 0.5rem; font-weight: 900; }
.gift-p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.gift-row { display: flex; gap: 1.4rem; align-items: center; }
.gift-qr { width: 11rem; height: 11rem; box-shadow: var(--shadow-1); }
.gift-scan { font-weight: 700; font-size: 1.1rem; }
.gift-code-l { color: var(--ink-soft); margin-top: 0.4rem; }
.gift-code { font-family: var(--f-vhs); font-size: 2.6rem; letter-spacing: 0.08em; color: var(--pumpkin-deep); line-height: 1; border: 3px dashed var(--pumpkin); padding: 0.15em 0.4em; display: inline-block; margin-top: 0.2rem; }
.gift-shop { margin-top: 0.5rem; font-family: var(--f-display); font-weight: 700; }
.gift-tape { font-size: 2.2rem; text-align: left; }
.gift-next .rv-p { margin: 0; }
.gift-review { margin-top: 1.2rem; color: var(--on-dark-soft); font-style: italic; }
@media (max-width: 900px) {
  .rv-gift { grid-template-columns: 1fr; }
  .level-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gift-row { flex-direction: column; text-align: center; }
  .gift-h { font-size: 2.3rem; }
  .acc-proof { grid-template-columns: 1fr; }
}
