/* Detective Juni: a hand-painted storybook look. Paper, ink, sky, meadow, sunset. */
:root {
  --paper: #f6ecd6; --paper-2: #fbf5e6; --ink: #3b2f2a; --ink-soft: #6b5a50;
  --sky: #a9d6e5; --sky-deep: #5b9fb8; --meadow: #8fbf7f; --forest: #4f8a5b;
  --sun: #f4b860; --sunset: #ee8f5a; --rose: #e07a6c; --teal: #2f6f73; --line: #d9c9a6;
  --shadow: 0 3px 0 rgba(59, 47, 42, .14), 0 10px 24px rgba(59, 47, 42, .12);
  --r: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 500 18px/1.5 Nunito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, .btn, .level-name, .badge-n, .clock, .num { font-family: Fredoka, "Avenir Next Rounded", "Arial Rounded MT Bold", Nunito, sans-serif; }
h1, h2, h3, p { margin: 0; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
#app { max-width: 980px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 16px; }
small { display: block; color: var(--ink-soft); font-size: .85rem; font-weight: 500; }
.big { font-size: 1.25rem; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .04em; color: var(--teal); margin-top: .9rem; }
.hint { text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* buttons */
button { font: inherit; color: inherit; cursor: pointer; }
.btn {
  border: 2px solid var(--ink); background: var(--sun); border-radius: 999px; padding: .6rem 1.3rem;
  font-weight: 600; font-size: 1.05rem; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.big { font-size: 1.25rem; padding: .8rem 1.8rem; }
.btn.ghost { background: var(--paper-2); }
.btn.small { font-size: .9rem; padding: .35rem .9rem; box-shadow: 0 3px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.panel { background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }

/* title */
.title { position: relative; height: clamp(220px, 38vw, 340px); border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow);
  background: linear-gradient(#8ec9e0 0%, #c5e6ea 45%, #fbe3b5 78%, #f7c98b 100%) center/cover; display: grid; place-items: center; }
.title.has-art { background-image: url(../assets/title.jpg); }
.title.has-art .title-sky { display: none; }
.title-text { position: relative; text-align: center; padding: 0 16px; }
.title h1 { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 700; line-height: 1; color: #fff8e8; letter-spacing: .01em;
  text-shadow: 0 3px 0 var(--teal), 0 6px 18px rgba(47, 111, 115, .55); }
.tag { margin-top: .5rem; display: inline-block; background: rgba(251, 245, 230, .9); border-radius: 999px; padding: .25rem 1rem; font-weight: 800; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .85; filter: blur(2px); animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 55%; height: 170%; left: 15%; top: -80%; } .cloud::after { width: 40%; height: 130%; left: 52%; top: -50%; }
.c1 { width: 150px; height: 38px; top: 18%; left: 6%; } .c2 { width: 110px; height: 28px; top: 34%; left: 68%; animation-duration: 85s; } .c3 { width: 80px; height: 20px; top: 12%; left: 44%; animation-duration: 110s; }
.hill { position: absolute; bottom: -42%; border-radius: 50%; }
.h1 { left: -12%; width: 75%; height: 70%; background: var(--meadow); } .h2 { right: -18%; width: 85%; height: 62%; background: var(--forest); }
@keyframes drift { from { transform: translateX(-30px); } 50% { transform: translateX(40px); } to { transform: translateX(-30px); } }

.badge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; text-align: center; }
.badge { display: grid; gap: 2px; justify-items: center; }
.badge-n { font-size: 1.9rem; font-weight: 700; color: var(--teal); line-height: 1.1; } .badge-n small { display: inline; font-size: 1rem; }

/* Pip */
.pip { display: flex; gap: 12px; align-items: flex-end; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sunset); display: grid; place-items: center; font-size: 1.8rem; object-fit: cover; box-shadow: 0 3px 0 var(--ink); }
.bubble { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; padding: .7rem 1rem; font-size: 1.1rem; box-shadow: var(--shadow); }

/* levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.level { text-align: left; display: grid; gap: 4px; padding: 18px; border-radius: var(--r); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .1s; }
.level:hover { transform: translateY(-3px) rotate(-.6deg); }
.level-easy { background: #cfe9c4; } .level-medium { background: #bfe0ee; } .level-hard { background: #f6c9a8; }
.level-name { font-size: 1.5rem; font-weight: 700; } .level-meta { font-size: .85rem; font-weight: 800; color: var(--teal); }

/* in-case */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clock { font-weight: 600; background: var(--paper-2); border: 2px solid var(--line); border-radius: 999px; padding: .25rem .9rem; }
.clock.low { background: #fbd5cc; border-color: var(--rose); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }

.scene { position: relative; aspect-ratio: 16 / 9; max-height: 52vh; width: 100%; border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow); background: center/cover; display: flex; align-items: flex-end; }
.scene.short { aspect-ratio: 16 / 5; }
.scene:not(.has-art)::before { content: ""; position: absolute; inset: 55% -10% -45%; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.c-europe { background-image: linear-gradient(#9ecfe6, #dbeee6 55%, #b8d9a0); }
.c-asia { background-image: linear-gradient(#f3b7a6, #fbe2bf 55%, #b9d8b0); }
.c-africa { background-image: linear-gradient(#f6c36f, #fbe6b8 55%, #dcae6b); }
.c-north-america { background-image: linear-gradient(#89c4dd, #e4f0e2 55%, #9fc79a); }
.c-south-america { background-image: linear-gradient(#7fc8b5, #e8f1c8 55%, #6fb07a); }
.c-oceania { background-image: linear-gradient(#6fc0d8, #c9ecec 55%, #f4dfa8); }
.scene-flag { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 22vw, 11rem); opacity: .9; filter: drop-shadow(0 6px 10px rgba(59, 47, 42, .25)); }
.scene-caption { position: relative; width: 100%; padding: 40px 22px 16px; color: #fff8e8; background: linear-gradient(transparent, rgba(40, 30, 25, .72)); }
.scene-caption h2 { font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.05; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.scene-caption p { font-weight: 800; }

.trail { display: flex; justify-content: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper-2); }
.dot.done { background: var(--forest); } .dot.here { background: var(--sunset); transform: scale(1.35); }

.places, .dests { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.place, .dest { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--ink); transition: transform .08s; }
.place:hover, .dest:hover { transform: translateY(-2px); background: #fff; }
.place.seen { background: #e3eed6; box-shadow: 0 2px 0 var(--ink); }
.place-icon { font-size: 1.7rem; }
.num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--ink); }

/* map */
.map-panel { padding: 14px; } .map { width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--line); display: block; }
.sea { fill: #bfe1ea; } .land { fill: #a9cf94; stroke: #6f9a66; stroke-width: .8; stroke-linejoin: round; }
.route { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .45; }
.here-pin { fill: var(--teal); stroke: #fff; stroke-width: 3; } .here-ring { fill: none; stroke: var(--teal); stroke-width: 2; opacity: .5; }
.pin { cursor: pointer; } .pin circle { fill: var(--rose); stroke: var(--ink); stroke-width: 2.5; transition: r .1s; } .pin:hover circle { r: 19; }
.pin text { fill: #fff; font: 700 17px Fredoka, sans-serif; text-anchor: middle; pointer-events: none; }
.clue-recap { background: #fff7d9; border: 2px dashed var(--sun); border-radius: var(--r); padding: 12px 18px; }
.cluelist { margin: .3rem 0 0; padding-left: 1.2rem; } .cluelist li { margin: .2rem 0; }

/* flight + quiz */
.flight { text-align: center; padding: 10px 0; overflow: hidden; }
.plane { font-size: 3rem; animation: fly 2.6s ease-in-out infinite; }
@keyframes fly { 0% { transform: translate(-40vw, 14px) rotate(8deg); } 100% { transform: translate(40vw, -14px) rotate(-4deg); } }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.answer { padding: 12px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.answers.flags .answer { font-size: 3rem; line-height: 1.1; }
.answer.right { background: #bfe3b2; } .answer.wrong { background: #f6c1b8; } .answer:disabled { cursor: default; }
#quiz-result { display: grid; gap: 12px; justify-items: center; text-align: center; }

/* notebook + chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .4rem 0; } .chips.center { justify-content: center; }
.chip { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .15rem .8rem; font-size: .95rem; font-weight: 700; }
.chip.unknown { border-style: dashed; color: var(--ink-soft); background: transparent; }
.noted { margin-top: .7rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* lineup */
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.suspect { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--ink); transition: transform .08s; }
.suspect:hover:not(.out) { transform: translateY(-3px) rotate(-1deg); background: #fff; }
.suspect.out { opacity: .32; box-shadow: none; filter: grayscale(1); }
.portrait { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: #d9cfe6; display: grid; place-items: center; font-size: 2.6rem; }
.traits { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; font-size: .78rem; font-weight: 700; }
.traits span { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 .5rem; }

/* end */
.end { text-align: center; display: grid; gap: 8px; justify-items: center; }
.end h2 { font-size: 2.2rem; } .end-win { background: #e6f2d8; } .end-portrait .portrait { width: 130px; height: 130px; font-size: 3.6rem; }
.promo { background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem 1rem; font-weight: 800; }
.journey-list { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-weight: 800; } .journey-list i { color: var(--ink-soft); font-style: normal; }

/* modal */
#modal { position: fixed; inset: 0; z-index: 10; background: rgba(59, 47, 42, .5); display: grid; place-items: center; padding: 16px; overflow: auto; }
#modal[hidden] { display: none; }
.sheet { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 24px; padding: 22px; box-shadow: 0 8px 0 var(--ink); animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.94) translateY(8px); opacity: 0; } }
.sheet-body { display: grid; gap: 8px; } .sheet-body > .btn { justify-self: center; margin-top: 10px; }
.read { position: absolute; top: 12px; right: 12px; } .sheet .eyebrow:first-child { margin-top: 0; padding-right: 130px; }
blockquote { margin: 0; font-size: 1.2rem; background: #fff; border-left: 6px solid var(--sunset); border-radius: 12px; padding: 12px 16px; }
.fact { background: #e2f1f0; border: 2px solid #b5d8d6; border-radius: 16px; padding: 10px 14px; margin-top: 6px; }
.fact.locked { background: transparent; border-style: dashed; color: var(--ink-soft); }
.howto { padding-left: 1.3rem; margin: 0; } .howto li { margin: .45rem 0; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.stamp { display: grid; justify-items: center; align-content: center; min-height: 78px; padding: 6px; border: 2px dashed var(--line); border-radius: 14px; color: var(--line); font-weight: 800; font-size: .82rem; text-align: center; }
.stamp.got { border: 2px solid var(--ink); color: var(--ink); background-size: cover; transform: rotate(-1.5deg); } .stamp.got:nth-child(even) { transform: rotate(1.5deg); }
.stamp.got span { font-size: 1.7rem; line-height: 1.1; }

@media (max-width: 560px) {
  body { font-size: 17px; } #app { padding: 12px 12px 40px; gap: 13px; }
  .avatar { width: 52px; height: 52px; font-size: 1.4rem; } .bubble { font-size: 1rem; }
  .sheet .eyebrow:first-child { padding-right: 0; } .read { position: static; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ───────────── detective layer: evidence, case board, atlas, letter ───────────── */
.eyebrow.first { margin-top: 0; }
.kicker { display: inline-block; background: var(--rose); color: #fff; border-radius: 999px; padding: 0 .8rem; font-size: .85rem; letter-spacing: .03em; margin-bottom: 4px; }
.case-file { display: grid; gap: 10px; border-style: dashed; border-color: var(--ink-soft); }
.case-file h3 { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.calling-card { justify-self: center; max-width: 440px; text-align: center; background: #2f2a33; color: #f6ecd6; border-radius: 12px; padding: 14px 20px; transform: rotate(-1.2deg); box-shadow: var(--shadow); }
.calling-card span { font-size: 1.6rem; } .calling-card p { font-size: 1.15rem; font-style: italic; } .calling-card i { font-size: .85rem; opacity: .75; }

.ev { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; margin: 6px 0; box-shadow: 0 3px 0 rgba(59, 47, 42, .25); }
.ev:nth-child(odd) { transform: rotate(-.35deg); } .ev:nth-child(even) { transform: rotate(.3deg); }
.ev-icon { flex: none; font-size: 1.7rem; line-height: 1.2; }
.ev b { display: block; font-size: .8rem; letter-spacing: .03em; color: var(--teal); }
.ev-trace { background: #fdf3d2; } .ev-talk { background: #eef6f6; }
.found { font-weight: 800; margin-top: 6px; } .empty, .small-note { color: var(--ink-soft); font-size: .95rem; }
.sheet .pip { margin-top: 6px; } .sheet .bubble { font-size: 1rem; box-shadow: none; }
.sheet.wide { width: min(860px, 100%); }
.count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: 4px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .8em; }
.leads { background: #fff7d9; border: 2px dashed var(--sun); border-radius: var(--r); padding: 12px 16px; }

.dest { cursor: default; flex-wrap: wrap; } .dest:hover { transform: none; background: var(--paper-2); }
.dest-name { flex: 1 1 120px; }
.pin { cursor: default; } .pin:hover circle { r: 15; }

.lineup.compact { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 8px; }
.lineup.compact .portrait { width: 56px; height: 56px; font-size: 1.6rem; }
.suspect { position: relative; }
.suspect.out::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; color: var(--rose); opacity: .8; }
.suspect.out { opacity: .5; filter: grayscale(.8); } .suspect[data-act="none"] { cursor: default; }

.atlas { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0; } .atlas dt { font-weight: 800; color: var(--teal); } .atlas dd { margin: 0; }
.letter { background: #fffaf0; border: 2px solid var(--line); border-radius: 6px; padding: 18px 22px; font-style: italic; font-size: 1.15rem; display: grid; gap: 6px; box-shadow: var(--shadow); transform: rotate(-.6deg); }
.letter p:last-child { text-align: right; } .letter .missing { color: var(--line); letter-spacing: -1px; overflow: hidden; white-space: nowrap; font-style: normal; }

/* ───────────── case opening: the desk, the newspaper, the case file ───────────── */
.desk { border-radius: 28px; padding: clamp(14px, 4vw, 34px); border: 2px solid var(--ink); box-shadow: var(--shadow), inset 0 0 80px rgba(0, 0, 0, .35);
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 46px), linear-gradient(160deg, #8a5a3c, #6b4129 60%, #54311f); overflow: hidden; }
.paper { --news: "Playfair Display", "Times New Roman", Georgia, serif; max-width: 760px; margin: 0 auto; background: #f3eedf; color: #26211d; padding: clamp(14px, 3.5vw, 30px);
  font-family: Georgia, "Times New Roman", serif; box-shadow: 0 2px 0 #d9d2bd, 0 4px 0 #cbc3ab, 0 18px 30px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); animation: paper-drop .7s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes paper-drop { from { transform: translateY(-40px) rotate(-14deg) scale(.55); opacity: 0; } to { transform: rotate(-1.2deg); opacity: 1; } }
.masthead { text-align: center; border-bottom: 4px double #26211d; padding-bottom: 6px; margin-bottom: 10px; }
.masthead h1 { font-family: var(--news); font-weight: 900; font-size: clamp(1.9rem, 7vw, 3.4rem); line-height: 1.05; letter-spacing: .01em; }
.mast-line { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.mast-line.rule { border-top: 1px solid #26211d; margin-top: 6px; padding-top: 4px; }
.headline { font-family: var(--news); font-weight: 900; font-size: clamp(1.7rem, 6.4vw, 3.1rem); line-height: 1.02; text-transform: uppercase; text-align: center; text-wrap: balance; }
.deck { text-align: center; font-style: italic; font-size: 1.05rem; border-bottom: 1px solid #26211d; padding: 6px 0 8px; margin-bottom: 12px; }
.paper-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px 18px; align-items: start; }
.news-photo { margin: 0; grid-row: span 2; } .news-photo div, .polaroid div { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.news-photo div { filter: grayscale(1) sepia(.35) contrast(1.15); border: 1px solid #26211d; }
.news-photo figcaption { font-size: .8rem; font-style: italic; margin-top: 4px; }
.columns { font-size: .98rem; line-height: 1.42; text-align: justify; hyphens: auto; display: grid; gap: 7px; }
.columns p:first-child::first-letter { font-family: var(--news); font-weight: 900; font-size: 3.1em; float: left; line-height: .8; padding: 4px 6px 0 0; }
.news-box { border: 2px solid #26211d; padding: 8px 10px; font-size: .9rem; } .news-box b { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 2px; }

.folder { position: relative; max-width: 820px; margin: 22px auto 0; background: #e3c48a; border-radius: 4px 14px 14px 14px; padding: clamp(10px, 2.5vw, 20px); box-shadow: 0 16px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px #c9a565; animation: folder-in .5s ease-out both; }
@keyframes folder-in { from { transform: translateY(50px) rotate(2deg); opacity: 0; } }
.folder-tab { position: absolute; left: 0; top: -26px; height: 27px; padding: 3px 18px 0; background: #e3c48a; border-radius: 10px 10px 0 0; font: 400 1rem "Special Elite", "Courier New", monospace; box-shadow: inset 0 1px 0 #f0d9aa; }
.folder-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.sheet-typed { position: relative; background: #fbf8ef; padding: clamp(14px, 3vw, 26px); font-family: "Special Elite", "Courier New", monospace; color: #2b2622; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transform: rotate(-.6deg);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(70, 110, 150, .13) 27px 28px); }
.sheet-typed h2 { font: inherit; font-size: 1.35rem; line-height: 1.25; margin: 6px 0 12px; text-decoration: underline; text-underline-offset: 4px; }
.typed-head { font: 400 .8rem "Special Elite", "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; color: #6b5a50; }
.sheet-typed dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .98rem; } .sheet-typed dt { text-transform: uppercase; font-size: .8rem; padding-top: 2px; color: #6b5a50; } .sheet-typed dd { margin: 0; }
.typed-foot { margin-top: 14px; border-top: 1px dashed #2b2622; padding-top: 8px; font-size: .92rem; }
.clipped { display: grid; gap: 16px; justify-items: center; }
.polaroid { position: relative; margin: 0; width: min(260px, 100%); background: #fff; padding: 9px 9px 6px; box-shadow: 0 5px 12px rgba(0, 0, 0, .35); transform: rotate(3deg); }
.polaroid figcaption { font: 600 1.15rem Caveat, "Comic Sans MS", cursive; text-align: center; padding-top: 4px; color: #2b2622; }
.clip { position: absolute; top: -14px; left: 26px; width: 16px; height: 44px; border: 3px solid #8d9499; border-radius: 9px; z-index: 1; transform: rotate(-8deg); }
.ev-bag { position: relative; width: min(280px, 100%); text-align: center; padding: 22px 14px 12px; border-radius: 8px; background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22)), #2f2a33; color: #f6ecd6; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 5px 12px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.ev-bag p { font-style: italic; font-size: 1.02rem; } .ev-bag i { font-size: .8rem; opacity: .8; } .feather { font-size: 1.7rem; display: block; }
.bag-label { position: absolute; top: -9px; left: 12px; background: #fff; color: #b3261e; border: 1.5px solid #b3261e; font: 400 .72rem "Special Elite", monospace; text-transform: uppercase; letter-spacing: .1em; padding: 1px 8px; }
.sticky { width: min(230px, 100%); background: #ffe680; padding: 12px 14px; font: 600 1.25rem/1.15 Caveat, "Comic Sans MS", cursive; color: #2b2622; box-shadow: 0 5px 10px rgba(0, 0, 0, .3); transform: rotate(2.5deg); } .sticky b { display: block; text-align: right; }
.rubber { position: absolute; right: 10px; top: 12px; z-index: 2; font: 400 1.25rem "Special Elite", "Courier New", monospace; text-transform: uppercase; letter-spacing: .12em; color: #b3261e; border: 4px double #b3261e; border-radius: 8px; padding: 4px 12px 1px; transform: rotate(9deg); opacity: .82; mix-blend-mode: multiply; animation: stamp-in .45s .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp-in { from { transform: rotate(9deg) scale(3.2); opacity: 0; } }
.rubber.closed { color: #2e7d4f; border-color: #2e7d4f; } .rubber.unsolved { color: #6b5a50; border-color: #6b5a50; }
.end { position: relative; } .end .typed-head { justify-self: start; }

@media (max-width: 640px) {
  .paper-body, .folder-inner { grid-template-columns: 1fr; } .news-photo { grid-row: auto; }
  .rubber { font-size: 1rem; top: 6px; right: 6px; } .sheet-typed h2 { padding-right: 0; margin-top: 30px; }
}
.sheet-typed .typed-head, .sheet-typed h2 { padding-right: 150px; }
@media (max-width: 640px) { .sheet-typed .typed-head { padding-right: 0; margin-top: 38px; } .sheet-typed h2 { padding-right: 0; margin-top: 6px; } }

/* ═════════════ the detective's desk: every in-case screen ═════════════ */
:root { --typed: "Special Elite", "Courier New", monospace; --hand: Caveat, "Comic Sans MS", cursive; --card: #fbf8ef; --pin: radial-gradient(circle at 35% 30%, #ff9a8a, #c0392b 55%, #7d1f15); }
body.case { background: repeating-linear-gradient(91deg, rgba(0, 0, 0, .06) 0 3px, transparent 3px 52px), linear-gradient(170deg, #84563a, #63402a 55%, #4e2f1e) #5f3b27; background-attachment: fixed; min-height: 100vh; }
body.case .desk { background: none; border: 0; box-shadow: none; padding: 6px 0; overflow: visible; }
body.case .hint { color: #f3e6cf; }

/* top strip: a typed case label */
body.case .topbar { background: #e3c48a; border-radius: 6px 6px 12px 12px; padding: 8px 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.case-tag { display: grid; justify-items: center; font-family: var(--typed); line-height: 1.25; text-align: center; } .case-tag b { font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: #6b5a50; }
.case-tag .clock { font-family: var(--typed); font-weight: 400; background: none; border: 0; padding: 0; font-size: 1rem; } .case-tag .clock.low { color: #b3261e; background: none; }

/* city scene: a photo print taped to the desk */
.scene { display: block; aspect-ratio: auto; max-height: none; background: #fff; border: 0; border-radius: 3px; padding: 10px 10px 4px; overflow: visible; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: rotate(-.5deg); }
.scene:not(.has-art)::before { content: none; }
.scene::after { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: rgba(250, 235, 180, .78); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transform: rotate(-2deg); }
.scene-img { position: relative; aspect-ratio: 16 / 9; max-height: 50vh; width: 100%; background-size: cover; background-position: center; display: grid; place-items: center; overflow: hidden; }
.scene.short .scene-img { aspect-ratio: 16 / 5; }
.scene-flag { position: static; font-size: clamp(4rem, 18vw, 9rem); }
.scene-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 6px 6px 2px; color: var(--ink); background: none; }
.scene-caption h2 { font: 600 clamp(1.7rem, 6vw, 2.5rem)/1.05 var(--hand); text-shadow: none; }
.scene-caption p { font: 400 .9rem var(--typed); color: var(--ink-soft); }
.scene-caption .kicker { font: 400 .8rem var(--typed); text-transform: uppercase; letter-spacing: .1em; background: none; color: #b3261e; border: 2px solid #b3261e; border-radius: 4px; padding: 1px 8px 0; margin: 0; }
.scene .rubber { top: 22px; right: 22px; font-size: 1.5rem; background: rgba(255, 255, 255, .75); mix-blend-mode: normal; }

body.case .trail { gap: 0; align-items: center; } body.case .dot { border-color: #f3e6cf; background: transparent; margin: 0 12px; position: relative; }
body.case .dot + .dot::before { content: ""; position: absolute; right: 100%; top: 50%; width: 24px; margin-right: 2px; border-top: 2px dashed rgba(243, 230, 207, .6); }
body.case .dot.done { background: #b3261e; border-color: #b3261e; } body.case .dot.here { background: var(--sun); }

/* Pip's notes */
body.case .bubble { background: #fffdf3; border: 0; border-radius: 3px 14px 14px 3px; border-left: 5px solid var(--sunset); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
body.case .avatar { border-color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }

/* locations: index cards pinned down */
body.case .places { gap: 18px 14px; padding-top: 8px; }
.place { position: relative; display: grid; gap: 2px; align-content: start; text-align: left; padding: 18px 16px 14px; border: 0; border-radius: 3px; background: var(--card) repeating-linear-gradient(transparent 0 25px, rgba(70, 110, 150, .16) 25px 26px); border-top: 3px solid #d8776a; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transition: transform .1s; }
.place:nth-child(1) { transform: rotate(-1.2deg); } .place:nth-child(2) { transform: rotate(.6deg); } .place:nth-child(3) { transform: rotate(-.4deg); }
.place:hover { transform: translateY(-4px) rotate(0); background-color: #fff; }
.place::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--pin); box-shadow: 0 3px 3px rgba(0, 0, 0, .4); }
.place b { font: 400 1.15rem/1.25 var(--typed); } .loc-no { font: 400 .72rem var(--typed); text-transform: uppercase; letter-spacing: .12em; color: #b3261e; }
.place small { font-size: .9rem; } .place.seen { background-color: #eef0e2; box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.searched { position: absolute; right: 10px; bottom: 8px; font: 400 .85rem var(--typed); text-transform: uppercase; letter-spacing: .1em; color: #2e7d4f; border: 3px double #2e7d4f; border-radius: 5px; padding: 1px 7px 0; transform: rotate(-8deg); opacity: .85; }

/* evidence: tagged exhibits */
.ev { position: relative; border: 0; border-radius: 3px 10px 10px 3px; background: #f1dfb4; padding: 9px 12px 9px 34px; box-shadow: 0 3px 7px rgba(0, 0, 0, .28); }
.ev::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #5f3b27; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .5), 0 0 0 3px #e0c88f; }
.ev b { font: 400 .74rem var(--typed); text-transform: uppercase; letter-spacing: .1em; color: #8a3324; }
.ev p { font-size: 1.02rem; line-height: 1.35; } .ev-talk { background: #fffdf3; } .ev-talk p { font: 600 1.3rem/1.2 var(--hand); } .ev-trace { background: #f6e3b0; }

/* the search result: a page from the detective's notebook */
.sheet { border: 0; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); background: var(--card); }
.sheet.notepad { background: var(--card) repeating-linear-gradient(transparent 0 29px, rgba(70, 110, 150, .14) 29px 30px); border-top: 16px solid #2f2a33; border-radius: 4px; }
.sheet.notepad .eyebrow { font: 400 .85rem var(--typed); text-transform: uppercase; letter-spacing: .12em; color: #6b5a50; }
.sheet.notepad .noted { font: 600 1.2rem var(--hand); color: #2e7d4f; } .sheet.notepad .found { font: 600 1.3rem var(--hand); }

/* the case board: cork, pins and suspect photos */
.sheet.cork { background: #b98758 radial-gradient(rgba(60, 35, 15, .28) 1px, transparent 1.6px) 0 0 / 9px 9px; border: 12px solid #6b4129; border-radius: 8px; padding: 18px; }
.sheet.cork h3 { display: inline-block; justify-self: start; background: #fffdf3; padding: 4px 14px; font: 400 1.25rem var(--typed); box-shadow: 0 3px 6px rgba(0, 0, 0, .3); transform: rotate(-1.5deg); }
.sheet.cork .eyebrow { justify-self: start; background: #2f2a33; color: #fff; font: 400 .78rem var(--typed); text-transform: uppercase; letter-spacing: .14em; padding: 4px 10px 2px; border-radius: 2px; margin-top: 14px; }
.sheet.cork .empty, .sheet.cork .small-note { background: #fffdf3; padding: 6px 10px; border-radius: 3px; color: var(--ink); box-shadow: 0 2px 5px rgba(0, 0, 0, .25); }
.sheet.cork .ev { margin: 8px 0; } .sheet.cork .ev::before { background: var(--pin); box-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
.suspect { border: 0; border-radius: 3px; background: #fff; padding: 9px 9px 10px; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); gap: 4px; }
.suspect:nth-child(odd) { transform: rotate(-1.4deg); } .suspect:nth-child(even) { transform: rotate(1.1deg); } .suspect:nth-child(3n) { transform: rotate(.3deg); }
.suspect:hover:not(.out) { transform: translateY(-4px) rotate(0); }
.suspect .portrait, .lineup.compact .portrait { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 0; }
.suspect b { font: 400 .95rem/1.2 var(--typed); } .traits span { border: 0; background: #f3ead3; border-radius: 3px; font-size: .74rem; }
.suspect.out { opacity: .62; filter: grayscale(.9); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.suspect.out::after { content: ""; background: linear-gradient(45deg, transparent 46%, #c0392b 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #c0392b 46% 54%, transparent 54%); opacity: .75; inset: 8%; }
.lineup.compact { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 10px; padding: 6px 0; }
body.case .lineup { gap: 18px 14px; }

/* following the trail: a folded map and boarding passes */
.map-panel { padding: 12px; background: #f3ecd6; border-radius: 3px; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: rotate(.4deg); position: relative; }
.map-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 33.1%, rgba(0, 0, 0, .09) 33.3%, transparent 33.7%, transparent 66.4%, rgba(0, 0, 0, .09) 66.6%, transparent 67%), linear-gradient(transparent 49.6%, rgba(0, 0, 0, .08) 50%, transparent 50.4%); }
.map { border: 1px solid #b9ab86; border-radius: 0; } .sea { fill: #cfe3df; } .land { fill: #e3d3a3; stroke: #9a8656; }
.pin circle { fill: #c0392b; stroke: #7d1f15; } .route { stroke: #b3261e; opacity: .55; }
body.case .leads { background: var(--card) repeating-linear-gradient(transparent 0 29px, rgba(70, 110, 150, .12) 29px 30px); border: 0; border-top: 14px solid #2f2a33; border-radius: 4px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); padding: 12px 16px 14px; }
body.case .dests { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.dest { display: grid; grid-template-columns: 1fr auto; gap: 0; padding: 0; border: 0; border-radius: 10px; background: #fdf6e3; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); overflow: hidden; }
.dest:hover { background: #fdf6e3; } .ticket-main { padding: 12px 14px; display: grid; gap: 1px; border-top: 8px solid var(--teal); }
.ticket-main b { font: 400 1.35rem/1.15 var(--typed); } .typed { font: 400 .7rem var(--typed); text-transform: uppercase; letter-spacing: .1em; }
.ticket-stub { display: grid; gap: 6px; justify-items: center; align-content: center; padding: 10px 12px; border-left: 3px dashed #c9b98f; border-top: 8px solid var(--sunset); background: #fbefd0; }
.ticket-stub .num { width: 30px; height: 30px; background: #c0392b; border: 0; font-size: .95rem; }

/* atlas: a page from a book */
.sheet.book { background: #fbf6e6; border-left: 14px solid #2f6f73; border-radius: 3px 8px 8px 3px; font-family: Georgia, "Times New Roman", serif; }
.sheet.book h3 { font: 900 1.7rem/1.1 "Playfair Display", Georgia, serif; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.sheet.book .eyebrow { font: 400 .78rem var(--typed); text-transform: uppercase; letter-spacing: .14em; }
.sheet.book .fact { background: none; border: 0; border-left: 3px solid var(--teal); border-radius: 0; padding: 2px 12px; margin-top: 8px; }

/* cold trail postcard, end sheet */
.postcard { position: relative; background: #fffdf3; padding: 14px 80px 14px 18px; border-radius: 3px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transform: rotate(.8deg); background-image: linear-gradient(90deg, transparent calc(100% - 70px), #d9c9a6 calc(100% - 70px), #d9c9a6 calc(100% - 69px), transparent calc(100% - 69px)); }
.postcard > span { position: absolute; right: 14px; top: 12px; font-size: 2.2rem; border: 2px dotted #b9ab86; padding: 0 4px; line-height: 1.25; } .postcard p:not(.typed-head) { font: 600 1.35rem/1.2 var(--hand); }
body.case .end { background: var(--card); border: 0; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); font-family: Georgia, serif; } body.case .end h2 { font-family: var(--typed); font-weight: 400; }
body.case .end-win { background: var(--card); } .end-portrait .portrait { border-radius: 0; border: 8px solid #fff; box-shadow: 0 5px 12px rgba(0, 0, 0, .35); transform: rotate(-2deg); }

@media (max-width: 560px) { .scene { padding: 7px 7px 2px; } .ticket-stub { grid-auto-flow: column; grid-column: 1 / -1; border-left: 0; border-top: 3px dashed #c9b98f; justify-content: start; } .dest { grid-template-columns: 1fr; } .postcard { padding-right: 70px; } }

.dest { align-items: stretch; }
body.case .btn.ghost { background: #fffdf3; }

/* ═════════════ the clock, the journey, the finds ═════════════ */
body.case .topbar { position: sticky; top: 6px; z-index: 6; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.case-tag { gap: 1px; } .case-tag b { font-size: .72rem; }
.case-tag .clock { display: inline-flex; align-items: baseline; gap: 5px; font-size: 1rem; color: var(--ink); }
.case-tag .clock small { display: inline; font: 400 .78rem var(--typed); color: #6b5a50; margin-right: 3px; }
.case-tag .clock strong { font: 400 1.75rem/1 var(--typed); min-width: 1.1em; text-align: right; background: #2f2a33; color: #ffe9a8; border-radius: 4px; padding: 4px 5px 1px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); }
.clock.tick strong { animation: tick .28s ease-out; } @keyframes tick { 0% { transform: translateY(-5px) scale(1.12); color: #fff; } }
.drain { display: block; width: min(320px, 100%); height: 7px; border-radius: 4px; background: rgba(47, 42, 51, .22); overflow: hidden; margin-top: 4px; }
.drain i { display: block; height: 100%; background: #2e7d4f; border-radius: 4px; transition: width .3s linear, background .3s; }
.topbar.amber .drain i { background: #e08a1e; } .topbar.amber .clock strong { color: #ffc46b; }
.topbar.red .drain i { background: #c0392b; } .topbar.red .clock strong { background: #b3261e; color: #fff; }
body.case .topbar.red { animation: alarm 1s ease-in-out infinite; } @keyframes alarm { 50% { box-shadow: 0 6px 14px rgba(0, 0, 0, .35), 0 0 0 4px rgba(192, 57, 43, .65); } }

/* searching a location */
.search-fx { position: absolute; inset: 0; display: grid; place-items: end center; background: rgba(40, 30, 25, .38); animation: fade-in .15s; }
.search-fx p { margin-bottom: 14px; font: 400 1.05rem var(--typed); color: #fff; background: rgba(47, 42, 51, .85); padding: 5px 14px 3px; border-radius: 4px; }
.lens { position: absolute; left: 0; top: 0; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 7px solid #caa35a; box-shadow: 0 0 0 2px #7a5a22, inset 0 0 0 200vmax rgba(255, 255, 255, .22), 0 8px 18px rgba(0, 0, 0, .45); backdrop-filter: brightness(1.35) contrast(1.1); animation: sweep 1.25s ease-in-out both; }
.lens::after { content: ""; position: absolute; right: -34%; bottom: -34%; width: 46%; height: 13%; background: #7a5a22; border-radius: 6px; transform: rotate(45deg); transform-origin: left center; }
@keyframes sweep { 0% { transform: translate(15%, 60%); } 35% { transform: translate(170%, 10%); } 70% { transform: translate(300%, 70%); } 100% { transform: translate(190%, 35%); } }
@keyframes fade-in { from { opacity: 0; } }

/* what you found: a portrait or an item photo with its note */
.find { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 16px; align-items: center; margin: 8px 0; animation: pop .25s ease-out both; }
.find + .find, .found + .find { animation-delay: .15s; }
.find-pic { margin: 0; background: #fff; padding: 8px 8px 4px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(-2.5deg); }
.find:nth-of-type(even) .find-pic { transform: rotate(2deg); }
.find-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; } .find-pic span { display: grid; place-items: center; aspect-ratio: 1; font-size: 4rem; background: #f3ead3; }
.find-pic figcaption { font: 600 1.1rem/1.15 var(--hand); text-align: center; padding: 4px 2px 2px; }
.find-text b { font: 400 .74rem var(--typed); text-transform: uppercase; letter-spacing: .12em; color: #8a3324; }
.find-text p { font-size: 1.15rem; line-height: 1.4; } .find-talk .find-text p { font: 600 1.55rem/1.2 var(--hand); }
.find-talk .find-text { position: relative; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.find-talk .find-text::before { content: ""; position: absolute; left: -11px; top: 40%; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.ev.has-pic { padding-left: 10px; } .ev.has-pic::before { content: none; }
.ev-pic { flex: none; width: 58px; height: 58px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transform: rotate(-3deg); }
.ev-talk .ev-pic { border-radius: 50%; }

/* the journey across the map */
.map-panel.journey { transform: none; padding: 10px; }
.travelled { fill: none; stroke: #b3261e; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.route-ahead { fill: none; stroke: #6b5a50; opacity: .7; } .route-done { fill: none; stroke: #b3261e; stroke-linecap: round; }
.dest-pin { fill: #c0392b; stroke: #fff; } .map-label { font-family: var(--typed); fill: #3b2f2a; text-anchor: middle; paint-order: stroke; stroke: #f3ecd6; stroke-width: .25em; }
#veh { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.journey-card { justify-self: center; text-align: center; background: var(--card); padding: 14px 26px 12px; border-radius: 4px; box-shadow: 0 10px 22px rgba(0, 0, 0, .4); display: grid; gap: 4px; justify-items: center; }
.journey-card h2 { font: 400 1.6rem var(--typed); } .hour-count { font: 400 1.05rem var(--typed); color: #b3261e; } .hour-count span { font-size: 1.5rem; }
.rubber.arrived { position: absolute; right: 22px; top: 22px; color: #1f5f8a; border-color: #1f5f8a; background: rgba(255, 255, 255, .78); mix-blend-mode: normal; font-size: 1.5rem; animation-delay: .15s; }

@media (max-width: 560px) {
  body.case .topbar { grid-template-columns: auto 1fr; padding: 6px 8px; } .top-actions { grid-column: 1 / -1; justify-content: space-between; }
  .case-tag .clock strong { font-size: 1.4rem; } .find { grid-template-columns: 96px 1fr; gap: 10px; } .find-talk .find-text p { font-size: 1.25rem; } .find-text p { font-size: 1rem; }
}

/* nothing inside the page may push it wider than the screen */
#app { grid-template-columns: minmax(0, 1fr); }
.lineup, .leads, .places, .dests { min-width: 0; } .ev > div, .find-text, .ticket-main { min-width: 0; }
html, body { overflow-x: clip; } /* stamps start oversized as they thump down */
.end .typed-head { padding-right: 150px; text-align: left; }
@media (max-width: 640px) { .end .typed-head { padding-right: 0; margin-top: 40px; } }

/* the arrest: files, comparison tables, hints */
.means { margin-top: 3px; font: 600 1.2rem var(--hand); color: #2e7d4f; } .ev .btn.small { margin-top: 5px; font-size: .8rem; box-shadow: 0 2px 0 var(--ink); }
.file-check { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 18px; align-items: center; } .file-check .portrait { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 0; display: block; }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.compare th { font: 400 .72rem var(--typed); text-transform: uppercase; letter-spacing: .08em; text-align: left; color: #6b5a50; background: #f3ead3; }
.compare th, .compare td { padding: 7px 10px; border-bottom: 1px solid #e6dcc3; text-align: left; vertical-align: top; } .compare td:first-child { white-space: nowrap; color: #6b5a50; }
.compare i { color: #a39685; } .compare .ok { color: #2e7d4f; font-weight: 800; } .compare .no { color: #b3261e; font-weight: 800; }
.compare.wide { max-width: 720px; margin: 4px auto; }
@media (max-width: 560px) { .file-check { grid-template-columns: 1fr; } .file-check .find-pic { max-width: 180px; justify-self: center; } .compare { font-size: .85rem; } .compare th, .compare td { padding: 5px 6px; } .compare td:first-child { white-space: normal; } }

/* scarf colours, and the last case */
.sw { display: inline-block; width: .85em; height: .85em; border-radius: 3px; border: 1.5px solid rgba(59, 47, 42, .55); vertical-align: -.08em; transform: rotate(-8deg); }
.last-case { display: grid; gap: 4px; text-align: left; padding: 20px 22px; border-radius: var(--r); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: #fff3d6;
  background: radial-gradient(circle at 88% 20%, rgba(255, 214, 120, .55), transparent 38%), linear-gradient(135deg, #23304a, #3a2d52 60%, #5a3550); transition: transform .1s; }
.last-case:hover { transform: translateY(-3px); } .last-case .typed-head { color: #ffd98a; } .last-case .level-name { font-size: 1.7rem; }
.letter.small { position: relative; font-size: .95rem; padding: 16px 16px 12px; width: min(290px, 100%); transform: rotate(2deg); gap: 3px; }
.end-finale { text-align: center; } .end-finale > p { max-width: 640px; }
.ending-art { margin: 6px 0; background: #fff; padding: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transform: rotate(-.6deg); max-width: 680px; } .ending-art img { display: block; width: 100%; }

/* ═════════════ profiles, phone, Juni on screen, the line-up ═════════════ */
.levels { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.level-legend { background: linear-gradient(135deg, #2b2440, #4a2f55); color: #fff3d6; } .level-legend .level-meta { color: #ffd98a; }

/* the detective's desk on the home screen */
.desk-of { display: grid; gap: 14px; } .desk-of .badge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.who-pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 4px; border-radius: 12px; }
.who-pick:hover { background: rgba(47, 111, 115, .08); } .who-pick small { display: block; } .who-pick > span:nth-child(2) { flex: 1; }
.who-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 1.4rem Fredoka, sans-serif; font-style: normal; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.switch { font: 400 .8rem var(--typed); color: var(--teal); }
.who-list { display: grid; gap: 6px; } .who { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 2px 6px; } .who.on { background: #e6f2d8; }
.who-form { display: grid; gap: 10px; justify-items: start; } .who-form input[name=name] { font: inherit; font-size: 1.15rem; padding: .55rem .8rem; width: min(320px, 100%); border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.swatches { display: flex; gap: 10px; } .swatches input { position: absolute; opacity: 0; } .swatches i { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; }
.swatches input:checked + i { outline: 3px solid var(--teal); outline-offset: 3px; } .swatches input:focus-visible + i { outline: 3px solid var(--sunset); outline-offset: 3px; }

/* the archive of case files */
.stat-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 .95rem var(--typed); } .stat-row b { font-size: 1.3rem; }
.files { display: grid; gap: 12px; } .file { position: relative; background: #fff; padding: 12px 14px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); border-left: 6px solid #2e7d4f; }
.file-lost { border-left-color: #a39685; } .file .rubber { font-size: .85rem; top: 8px; right: 8px; animation: none; }
.file-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; } .file-row .portrait { width: 62px; height: 62px; border-radius: 0; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); font-size: 1.6rem; flex: none; }
.file-trail { font-size: .88rem; color: var(--ink-soft); }
.id-card { display: flex; gap: 10px; align-items: center; background: #fdf6e3; border: 2px solid #2f6f73; border-radius: 10px; padding: 8px 12px; width: min(280px, 100%); box-shadow: 0 5px 12px rgba(0, 0, 0, .3); transform: rotate(-1.5deg); }
.id-card img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; border: 2px solid #2f6f73; } .id-card b { display: block; font: 400 1.2rem var(--typed); } .id-card small { font: 400 .68rem var(--typed); text-transform: uppercase; letter-spacing: .08em; }

/* Juni and Pip in the scene */
.scene-img { animation: drift-in 18s ease-out both; background-size: 106%; } @keyframes drift-in { from { background-size: 114%; } to { background-size: 106%; } }
.scene:not(:has(.scene-flag)) .scene-img { background-position: center; }
.cast { position: absolute; left: 3%; bottom: -1%; height: 62%; width: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); animation: hop-in .6s cubic-bezier(.2, 1.3, .4, 1) both, bob 3.2s ease-in-out .6s infinite; pointer-events: none; }
.scene.short .cast { height: 96%; left: auto; right: 4%; }
@keyframes hop-in { from { transform: translate(-60px, 20px); opacity: 0; } } @keyframes bob { 50% { transform: translateY(-5px); } }
.search-fx .cast { left: 50%; margin-left: -18%; height: 58%; animation: peer .6s ease-in-out infinite alternate; } @keyframes peer { to { transform: translateX(14px) rotate(-2deg); } }
.pip.juni { flex-direction: row-reverse; } .pip.juni .bubble { border-radius: 14px 3px 3px 14px; border-left: 0; border-right: 5px solid var(--teal); }
.dead-end { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; } .dead-end .cast { position: static; height: auto; width: 100%; animation: none; }
.journey-card { display: flex; gap: 16px; align-items: center; text-align: left; } .journey-card .cast { position: static; height: 96px; animation: dash .35s ease-in-out infinite alternate; }
@keyframes dash { to { transform: translate(6px, -3px) rotate(2deg); } } .journey-card > div { display: grid; gap: 4px; justify-items: start; }

/* the map: lines every geographer knows */
.grid-line { stroke: #6b8e9a; stroke-dasharray: 2 5; opacity: .55; } .grid-line.equator { stroke: #b3261e; stroke-dasharray: 6 4; opacity: .5; }
.grid-label { font-family: var(--typed); fill: #5d7a85; opacity: .85; }
.rose circle { fill: rgba(255, 253, 243, .85); stroke: #6b5a50; } .rose path { fill: #b3261e; } .rose .rose-ew { fill: #6b5a50; } .rose text { font: 400 13px var(--typed); text-anchor: middle; fill: #3b2f2a; }
.pin circle { animation: pulse-pin 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } @keyframes pulse-pin { 50% { transform: scale(1.12); } }

/* the phone */
#phone-toast { position: fixed; right: 14px; bottom: 14px; z-index: 8; max-width: min(380px, calc(100vw - 28px)); animation: buzz-in .45s cubic-bezier(.2, 1.3, .4, 1); }
#phone-toast[hidden] { display: none; } @keyframes buzz-in { 0% { transform: translateY(120%); } 70% { transform: translateY(-6px) rotate(-1deg); } 85% { transform: rotate(1deg); } }
.toast-card { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; background: #23212b; color: #f6ecd6; border: 0; border-radius: 18px; padding: 10px 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.toast-card b { display: block; font: 600 .85rem Nunito, sans-serif; color: #ffd98a; } .toast-text { font-size: .95rem; line-height: 1.35; }
.msg-pic { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #3a3644; display: grid; place-items: center; font-size: 1.2rem; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9c2d6; animation: dots 1s ease-in-out infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-5px); opacity: .5; } }
.phone-btn { position: relative; } .phone-btn .count { position: absolute; top: -6px; right: -6px; }
.sheet.phone-sheet { background: none; box-shadow: none; padding: 0; width: min(400px, 100%); } .sheet.phone-sheet .sheet-body > .btn { justify-self: center; }
.phone { background: #1c1a22; border-radius: 34px; padding: 12px 10px 16px; box-shadow: 0 0 0 3px #3a3644, 0 24px 50px rgba(0, 0, 0, .6); }
.phone-top { text-align: center; color: #f6ecd6; padding: 4px 0 10px; display: grid; gap: 1px; } .phone-top small { color: #9d97aa; } .notch { justify-self: center; width: 90px; height: 6px; border-radius: 4px; background: #3a3644; margin-bottom: 6px; }
.thread { background: #efe9dc; border-radius: 22px; padding: 12px; display: grid; gap: 10px; max-height: 56vh; overflow: auto; align-content: start; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; } .msg small { font-size: .7rem; } .msg p { background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: .97rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.msg.mine { justify-self: end; } .msg.mine p { background: #2f6f73; color: #fff; border-radius: 16px 16px 4px 16px; } .msg.mine small { text-align: right; }

/* the line-up, the showdown and the proof */
.lineup-count { font: 400 1rem var(--typed); } .suspect.flagged { outline: 4px solid #c0392b; outline-offset: 2px; animation: shake .5s ease-in-out 2; }
@keyframes shake { 25% { transform: translateX(-5px) rotate(-2deg); } 75% { transform: translateX(5px) rotate(2deg); } }
.suspect { transition: transform .25s, opacity .25s, filter .25s; }
.showdown { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; background: linear-gradient(160deg, #2b2440, #17131f); border-radius: 12px; padding: 18px; color: #f6ecd6; box-shadow: 0 12px 26px rgba(0, 0, 0, .5); overflow: hidden; }
.showdown .cast { position: static; height: 170px; animation: bob 3s ease-in-out infinite; } .showdown .typed-head { color: #ffd98a; }
.cloaked { position: relative; width: 150px; height: 150px; } .cloaked .portrait { width: 100%; height: 100%; border-radius: 0; border: 6px solid #fff; filter: brightness(.25) contrast(1.2); }
.cloak { position: absolute; inset: -6px; background: radial-gradient(circle at 50% 30%, transparent 22%, rgba(10, 8, 16, .92) 60%); animation: sway 2.4s ease-in-out infinite; } @keyframes sway { 50% { transform: skewX(-3deg); } }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.proof-card { display: grid; gap: 4px; justify-items: center; text-align: center; background: #fff; border: 0; padding: 9px 9px 12px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transition: transform .15s; }
.proof-card:nth-child(odd) { transform: rotate(-1.5deg); } .proof-card:nth-child(even) { transform: rotate(1.2deg); } .proof-card:hover { transform: translateY(-6px) scale(1.03); }
.proof-card img, .proof-card span { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; font-size: 3rem; background: #f3ead3; } .proof-card b { font: 400 .8rem var(--typed); text-transform: uppercase; letter-spacing: .06em; color: #8a3324; } .proof-card small { font-size: .85rem; }

/* the ending */
.end-cast { display: flex; align-items: flex-end; justify-content: center; gap: 18px; } .end-cast .cast { position: static; height: 150px; animation: bob 2.6s ease-in-out infinite; }
.end-portrait.reveal .portrait { animation: unmask 1.1s cubic-bezier(.3, 1.3, .5, 1) both; } @keyframes unmask { 0% { transform: rotateY(180deg) scale(.6); filter: brightness(0); } 60% { filter: brightness(.6); } 100% { transform: rotateY(0) rotate(-2deg); filter: none; } }
.feathers { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; } .feathers i { position: absolute; top: -40px; font-style: normal; font-size: 1.6rem; animation: fall linear 1 both; }
@keyframes fall { to { transform: translateY(110vh) rotate(420deg); opacity: .2; } }

@media (max-width: 640px) {
  .desk-of .badge-row { grid-template-columns: repeat(3, 1fr); } .badge-n { font-size: 1.4rem; } .cast { height: 54%; }
  .showdown { grid-template-columns: auto 1fr; } .showdown .cast { display: none; } .cloaked { width: 96px; height: 96px; }
  .dead-end { grid-template-columns: 84px 1fr; } .journey-card .cast { height: 64px; } .end-cast .cast { height: 100px; }
  body.case .topbar { grid-template-columns: auto 1fr; } .top-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ═════════════ the getaway and the warehouse ═════════════ */
.chase-head { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 4px; padding: 14px 18px; box-shadow: 0 10px 22px rgba(0, 0, 0, .4); }
.chase-head .cast { position: static; height: 110px; animation: dash .35s ease-in-out infinite alternate; flex: none; } .chase-head h2 { font: 400 1.5rem var(--typed); }
.chase-call { position: sticky; top: 84px; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; background: #23212b; color: #f6ecd6; border-radius: 12px; padding: 10px 16px; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.chase-call .typed-head { color: #ffd98a; } #call { font: 400 1.5rem var(--typed); } #chase-left { font: 400 .9rem var(--typed); color: #c9c2d6; }
.chase-timer { grid-column: 1 / -1; width: 100%; height: 10px; background: rgba(255, 255, 255, .15); } .chase-timer i { background: #6fcf8a; transition: width .1s linear; } .chase-timer.low i { background: #e2574c; }
.chase-map { transform: none; } .chase-pin { cursor: pointer; outline: none; } .chase-pin .hit { fill: transparent; }
.chase-pin .dot { fill: #23212b; stroke: #fff; stroke-width: 3; transition: r .1s; } .chase-pin:hover .dot, .chase-pin:focus-visible .dot { r: 14; fill: #b3261e; }
.chase-pin.done .dot { fill: #2e7d4f; } .chase-pin.missed .dot { fill: #e08a1e; r: 15; } .chase-pin.miss .dot { animation: nope .4s; } @keyframes nope { 30% { fill: #e2574c; r: 16; } }
.wh-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .wh-steps span { font: 400 .9rem var(--typed); padding: 4px 12px 2px; border-radius: 999px; background: rgba(255, 253, 243, .25); color: #f3e6cf; }
.wh-steps .next { background: var(--sun); color: var(--ink); } .wh-steps .got { background: #2e7d4f; color: #fff; } .wh-steps b { margin-left: auto; font: 400 1rem var(--typed); color: #f3e6cf; } .wh-steps b.low { color: #ffb4a8; }
.crates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.crate { display: grid; gap: 4px; justify-items: center; text-align: center; background: #fff; border: 0; padding: 8px 8px 10px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transition: transform .15s; }
.crate:nth-child(3n) { transform: rotate(-1.2deg); } .crate:nth-child(3n+1) { transform: rotate(1deg); } .crate:hover:not(:disabled) { transform: translateY(-5px); }
.crate-face { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #f3ead3; position: relative; overflow: hidden; } .crate-face img { width: 100%; height: 100%; object-fit: cover; }
.crate.open .crate-face { animation: lid .3s ease-out; } @keyframes lid { from { transform: rotateX(70deg); opacity: .3; } }
.crate-face b { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(35, 33, 43, .82); color: #ffd98a; font: 400 .8rem var(--typed); padding: 3px; }
.straw { font: 600 1.3rem var(--hand); color: #a08a55; } .big-emoji { font-size: 3rem; } .crate.kept { outline: 4px solid #2e7d4f; } .crate small { font-size: .82rem; line-height: 1.2; color: var(--ink); }
@media (max-width: 560px) { .chase-head .cast { height: 70px; } #call { font-size: 1.15rem; } .chase-call { top: 118px; } .crates { grid-template-columns: repeat(3, 1fr); gap: 8px; } .crate small { font-size: .7rem; } }

/* ───────────── fit to the window (see fit() in main.js) ─────────────
   html.fit: the page is scaled so a whole screen shows without scrolling.
   html.wide: landscape windows get side-by-side layouts. */
html.fit, html.fit body { height: 100%; overflow: hidden; }
html.fit.fit-scroll, html.fit.fit-scroll body { overflow: auto; height: auto; }
html.fit #app { max-width: none; width: var(--fit-w, 980px); zoom: var(--fit-z, 1); padding: 12px 18px 14px; gap: 12px; align-content: start; }
html.fit body.case .topbar { position: static; }
/* side-by-side halves: only real columns on wide windows, otherwise they vanish into the normal flow */
.cols, .col, .paper-next { display: contents; }
html.wide .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 22px; align-items: start; }
html.wide .cols.r31 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: center; }
html.wide .cols.r13 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
html.wide .cols.r23 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
html.wide .col { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
html.wide .scene-img { max-height: none; }
/* home */
html.wide .home-cols { align-items: stretch; } html.wide .home-cols .title { height: 100%; min-height: 470px; }
html.wide .home-cols .col + .col { align-content: center; } html.wide .levels { grid-template-columns: 1fr 1fr; }
/* newspaper: the paper on the left, Pip and the next step beside it */
html.wide #app:has(> .paper-next) { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); column-gap: 22px; align-items: center; }
html.wide .paper-next { display: grid; gap: 16px; align-content: center; }
html.wide .paper { max-width: none; } html.wide .paper-body { grid-template-columns: 1fr 2fr; }
html.wide .columns { display: block; column-count: 2; column-gap: 20px; } html.wide .columns p { margin-bottom: 7px; }
/* case file */
html.wide .folder { max-width: 1180px; }
/* travel */
html.wide body.case .dests { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* journey */
html.wide .journey-card { justify-self: stretch; flex-direction: column; text-align: center; }
/* getaway */
html.wide .chase-call { position: static; grid-template-columns: 1fr; } html.wide .chase-head { flex-direction: column; text-align: center; }
/* line-up and warehouse */
html.wide .lineup { grid-template-columns: repeat(5, minmax(0, 1fr)); } html.wide .crates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.fit #modal { padding: 12px; overflow: hidden; } html.fit .sheet { max-width: none; }
html.wide .home-cols .col:first-child { grid-template-rows: 1fr; }
/* big pop-ups spread sideways on wide windows */
html.wide .sheet.xl { width: 1400px; } html.wide .sheet .cols { margin-bottom: 12px; }
html.wide .sheet.cork .col > .eyebrow:first-child { margin-top: 0; }
html.wide .lineup.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html.wide .sheet.xl .stamps { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; } html.wide .sheet.xl .stamp { min-height: 64px; font-size: .78rem; } html.wide .pass-block .eyebrow { margin: .35rem 0 .2rem; }
html.wide .sheet.xl .files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
html.wide #phone-toast { right: auto; left: 14px; }
/* line-up: evidence in two columns beside the suspects */
html.wide .cols:has(> .col > .lineup) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
html.wide .cols:has(> .col > .lineup) .leads { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
html.wide .cols:has(> .col > .lineup) .leads > :not(.ev) { grid-column: 1 / -1; }
/* endings: the story on the left, the evidence table on the right */
html.wide .end .cols { width: 100%; align-items: center; } html.wide .end .col { justify-items: center; gap: 8px; }
html.wide #app:has(> .end) > .pip { justify-self: center; }

/* ───────────── the wanted-notice layer ───────────── */
.notice-case { background: linear-gradient(135deg, #7a2f24, #b3261e 60%, #c9562f); margin: 0; width: 100%; font: inherit; cursor: pointer; transition: transform .1s; }
.kind-hint { font: 400 .74rem var(--typed); text-transform: uppercase; letter-spacing: .08em; color: #6b5a50; margin-top: 2px; }
.note-slot { display: block; margin-top: 6px; padding: 3px 8px; border-radius: 4px; font: 400 .8rem var(--typed); letter-spacing: .04em; width: fit-content; }
.note-slot.wait { background: rgba(47, 42, 51, .08); color: #6b5a50; animation: pulse-wait 1.6s ease-in-out infinite; } @keyframes pulse-wait { 50% { opacity: .5; } }
.note-slot.ready { background: #2e7d4f; color: #fff; animation: buzz-in .45s cubic-bezier(.2, 1.3, .4, 1); }
.alibi { font: 400 .68rem/1.2 var(--typed); color: #6b5a50; } .alibi.ok { color: #2e7d4f; font-weight: 700; }
.notice-box { background: #fffdf3; border-left: 6px solid #b3261e; padding: 10px 12px; margin-top: 12px; border-radius: 3px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); display: grid; gap: 8px; justify-items: start; }
.notice-box.done { border-left-color: #2e7d4f; }
.poster { background: #f3e2b8; border: 3px double #3b2f2a; padding: 12px 18px 14px; text-align: center; display: grid; gap: 4px; justify-items: center; justify-self: center; max-width: 380px; transform: rotate(-1.2deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.poster h2 { font: 900 3rem/1 "Playfair Display", Georgia, serif; letter-spacing: .12em; color: #7a1c14; } .poster .portrait { width: 170px; height: 170px; border-radius: 0; border: 4px solid #3b2f2a; }
.poster b { font: 400 1.3rem var(--typed); } .poster p:not(.typed-head) { font-size: .9rem; }
.choices { display: grid; gap: 14px; } .choice { display: grid; gap: 4px; text-align: left; padding: 16px 18px; background: var(--card); border: 0; border-left: 8px solid #b3261e; border-radius: 4px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); transition: transform .12s; }
.choice + .choice { border-left-color: var(--teal); } .choice:hover { transform: translateY(-3px); background: #fff; } .choice b { font: 400 1.35rem var(--typed); }
.crate.marked::after { content: "✕"; position: absolute; top: 4px; right: 10px; font: 700 1.8rem var(--hand); color: #fff; text-shadow: 0 0 3px #3b2f2a, 0 0 6px #3b2f2a; transform: rotate(12deg); } .crate { position: relative; }
.proof { grid-template-columns: repeat(auto-fit, minmax(170px, 250px)); justify-content: center; }
