/* Cases & Clues — Detective HQ prototype
   Brand: premium noir. Black / white / #E12E2E. Inter. Small type, generous space. */

:root {
  --bg: #0b0b0c;
  --panel: #131315;
  --panel-2: #19191c;
  --line: #232327;
  --line-soft: #2e2e33;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #6d6d75;
  --red: #e12e2e;
  --red-dark: #b32222;
  --red-glow: rgba(225, 46, 46, .22);
  --gold: #c9a227;
  --green: #3dbb6e;
  --radius: 14px;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(225, 46, 46, .06), transparent 70%),
    radial-gradient(900px 600px at 85% 110%, rgba(225, 46, 46, .04), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(225, 46, 46, .35); }

/* ---------- shell ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 30px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(12px); z-index: 50;
}
.brand { font-weight: 800; font-size: 15.5px; letter-spacing: .01em; color: var(--text); display: flex; align-items: center; gap: 11px; }
.brand span { color: var(--red); }
.brand .logo { height: 30px; width: auto; display: block; }
.brand-suffix {
  font-style: normal; font-weight: 700; color: var(--muted); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; border-left: 1px solid var(--line-soft);
  padding-left: 11px;
}
.brand:hover { text-decoration: none; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.profile-chip {
  display: flex; align-items: center; gap: 9px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px 5px 6px;
  color: var(--text); font-size: 12.5px; font-weight: 600; transition: border-color .15s;
}
.profile-chip:hover { border-color: var(--line-soft); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5a5a, var(--red-dark));
  display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 34px 30px 90px; }

.view { display: none; }
.view.is-active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- unlock ---------- */
.unlock-hero { text-align: center; padding: 72px 0 44px; }
.eyebrow {
  color: var(--red); font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
}
h1 { font-size: 46px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.08; margin: 14px 0 12px; }
.sub { color: var(--muted); max-width: 440px; margin: 0 auto; font-size: 14.5px; }

.unlock-card {
  max-width: 420px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.unlock-card label {
  display: block; font-size: 11px; color: var(--faint); margin-bottom: 8px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.field {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
#code-input {
  text-align: center; font-size: 18px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; font-family: ui-monospace, 'SF Mono', monospace;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #ef3d3d, var(--red)); border: none; color: #fff;
  font-weight: 700; border-radius: 9px; padding: 13px 22px; font-size: 14px; width: 100%;
  box-shadow: 0 6px 18px var(--red-glow); transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px var(--red-glow); }
.btn:active { transform: none; }
.btn.secondary {
  background: transparent; border: 1px solid var(--line-soft); color: var(--text);
  width: auto; font-weight: 600; box-shadow: none;
}
.btn.secondary:hover { border-color: var(--faint); background: var(--panel-2); filter: none; }
.btn.small { padding: 8px 15px; font-size: 12.5px; width: auto; }
.unlock-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 15px; }
.unlock-err { color: var(--red); font-size: 13px; margin-top: 10px; display: none; text-align: center; }
.demo-strip {
  max-width: 420px; margin: 20px auto 0; font-size: 11.5px; color: var(--faint);
  text-align: center; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 14px;
}
.demo-strip b { color: var(--muted); letter-spacing: .06em; }

/* ---------- how it works (unlock) ---------- */
.how-it-works {
  max-width: 640px; margin: 26px auto 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hiw-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
}
.hiw-n {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--red);
  color: var(--red); font-weight: 800; font-size: 12px;
  display: grid; place-items: center; margin-bottom: 7px;
}
.hiw-step b { font-size: 13px; }
.hiw-step span:last-child { color: var(--faint); font-size: 11.5px; line-height: 1.45; }
@media (max-width: 640px) { .how-it-works { grid-template-columns: 1fr; } }

/* ---------- journey stepper ---------- */
.journey {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0 20px;
}
.j-step {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; color: var(--faint);
  font-size: 12px; font-weight: 600; padding: 4px 2px; white-space: nowrap;
}
.j-step:hover { color: var(--muted); }
.j-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-soft); display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800;
}
.j-step.done { color: var(--muted); }
.j-step.done .j-dot { border-color: var(--green); color: var(--green); }
.j-step.current { color: var(--text); }
.j-step.current .j-dot {
  border-color: var(--red); color: var(--red);
  box-shadow: 0 0 10px var(--red-glow); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px var(--red-glow); } 50% { box-shadow: 0 0 16px var(--red-glow); } }
.j-line { width: 18px; height: 1.5px; background: var(--line-soft); flex: none; }
.j-line.done { background: var(--green); opacity: .5; }
.j-cta {
  margin-left: auto; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; border-radius: 99px; padding: 8px 16px;
  font-weight: 600; cursor: pointer; transition: border-color .15s;
}
.j-cta:hover { border-color: var(--red); color: var(--text); }
.j-cta b { color: var(--text); }
.j-cta.complete { color: var(--green); cursor: default; border-color: rgba(61, 187, 110, .3); }
@media (max-width: 640px) { .j-cta { margin-left: 0; width: 100%; text-align: center; } }

/* ---------- case switcher ---------- */
.case-switcher {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px;
  margin-bottom: 24px; border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.case-switcher::-webkit-scrollbar { display: none; }
.cs-card {
  flex: none; width: 118px; border: 2px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--panel); cursor: pointer; text-align: left;
  padding: 0; display: flex; flex-direction: column;
  transition: border-color .15s, transform .12s;
}
.cs-card:hover { border-color: var(--line-soft); transform: translateY(-2px); }
.cs-card.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.cs-card img { width: 100%; height: 118px; object-fit: cover; display: block; }
.cs-name { font-size: 11px; font-weight: 700; color: var(--text); padding: 8px 10px 2px; line-height: 1.3; }
.cs-tag { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 10px 9px; }
.cs-card.active .cs-tag { color: var(--red); }
.cs-add { border-style: dashed; align-items: center; justify-content: center; text-align: center; background: transparent; }
.cs-add .cs-plus {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--faint);
  display: grid; place-items: center; font-size: 18px; color: var(--muted); margin: 26px auto 6px;
}
.cs-add .cs-name, .cs-add .cs-tag { text-align: center; padding-left: 8px; padding-right: 8px; }

/* ---------- case header ---------- */
.case-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 28px;
  padding-bottom: 26px; margin-bottom: 0;
}
.case-head h1 { font-size: 34px; margin: 8px 0 6px; letter-spacing: -.8px; }
.case-tagline { color: var(--muted); font-size: 13.5px; max-width: 470px; }
.meta-pills { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 99px; padding: 3.5px 12px; font-weight: 500;
}
.pill.tier {
  color: #ff6b6b; border-color: rgba(225, 46, 46, .45); font-weight: 700;
  background: rgba(225, 46, 46, .07);
}

.stamp {
  font-weight: 900; font-size: 14px; letter-spacing: .12em; color: var(--red);
  border: 2.5px solid currentColor; border-radius: 7px; padding: 5px 14px;
  transform: rotate(-5deg); text-transform: uppercase; white-space: nowrap;
  opacity: .92; mix-blend-mode: screen;
}
.stamp.closed { color: var(--green); }

.head-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 13px; padding-top: 4px; }
.timers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.timer-chip {
  font-size: 12px; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px;
  display: inline-flex; align-items: center; gap: 7px;
}
.timer-chip b {
  color: #fff; font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 13px; letter-spacing: .04em;
}
.timer-live { border-color: rgba(225, 46, 46, .35); background: rgba(225, 46, 46, .05); }
.t-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 8px var(--red-glow); animation: tickpulse 1.6s ease-in-out infinite;
}
@keyframes tickpulse { 50% { opacity: .3; } }
.t-reset {
  background: none; border: none; color: var(--faint); font-size: 14px;
  padding: 0 0 0 1px; line-height: 1; transition: color .15s, transform .3s;
}
.t-reset:hover { color: var(--red); transform: rotate(-180deg); }
.progress-wrap { width: 216px; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-bottom: 6px; font-weight: 600; letter-spacing: .04em; }
.progress-bar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 99px; transition: width .5s ease; box-shadow: 0 0 10px var(--red-glow);
}

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--line);
  margin-bottom: 30px; position: sticky; top: 55px; background: var(--bg); z-index: 40;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 14px 17px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--red); }
.tab .count { color: var(--faint); font-weight: 500; font-size: 11.5px; }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadein .25s ease; }

/* ---------- layout helpers ---------- */
.cols { display: grid; grid-template-columns: 1fr 316px; gap: 22px; align-items: start; }
@media (max-width: 920px) { .cols { grid-template-columns: 1fr; } }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: border-color .2s;
}
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.1px; }
.panel .hint-sub { color: var(--faint); font-size: 12.5px; margin-bottom: 16px; }

/* ---------- board: victim, polaroids, unknowns ---------- */
.victim-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid rgba(225, 46, 46, .3);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px;
}
.victim-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.v-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.v-copy h4 { font-size: 16px; margin: 3px 0 4px; letter-spacing: -.2px; }
.v-copy p { color: var(--muted); font-size: 12.5px; max-width: 520px; }

.s-polaroid {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: 9px; margin-bottom: 13px; background: #000;
}
.s-polaroid.ph {
  background: #101012; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.ph-frame {
  width: 58%; aspect-ratio: 1; background: #f2ecdd; border-radius: 3px;
  display: grid; place-items: center; transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.ph-q {
  width: 78%; aspect-ratio: 1; background: #1c1a17; border-radius: 2px;
  display: grid; place-items: center; color: #f2ecdd; font-size: 30px; font-weight: 900;
}
.ph-name { font-family: var(--hand); font-size: 19px; color: var(--muted); }

.unknown-head {
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin: 18px 0 10px;
}
.unknown-row { display: flex; gap: 12px; flex-wrap: wrap; }
.unknown-card {
  display: flex; gap: 12px; align-items: center; flex: 1; min-width: 220px;
  background: var(--panel); border: 1px dashed var(--line-soft);
  border-radius: 11px; padding: 10px 14px 10px 10px;
}
.unknown-card img { width: 62px; height: 62px; object-fit: cover; border-radius: 7px; flex: none; }
.unknown-card span { color: var(--faint); font-size: 12px; }

/* ---------- board ---------- */
.suspect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.suspect-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: border-color .15s, opacity .2s;
}
.suspect-card:hover { border-color: var(--line-soft); }
.suspect-card.cleared { border-color: rgba(61, 187, 110, .3); }
.suspect-card.cleared .s-polaroid { filter: grayscale(1) brightness(.45); }
.suspect-card.cleared .mma, .suspect-card.cleared .suspect-role { opacity: .45; }
.s-photo { position: relative; display: block; }
.clear-stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-weight: 900; font-size: 26px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); border: 3.5px solid currentColor; border-radius: 8px;
  padding: 6px 16px; white-space: nowrap;
  text-shadow: 0 0 18px rgba(61, 187, 110, .5);
  box-shadow: 0 0 24px rgba(0, 0, 0, .5), inset 0 0 14px rgba(61, 187, 110, .12);
}
.suspect-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.s-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #2a2a2e, #1a1a1d);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--muted);
}
.suspect-card.accused .s-avatar { border-color: var(--red); color: var(--red); }
.suspect-id { flex: 1; min-width: 0; }
.suspect-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.1px; }
.suspect-card.cleared .suspect-name { text-decoration: line-through; }
.suspect-role { color: var(--faint); font-size: 11px; margin-top: 1px; }
.tag-btn {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 9px; border: 1px solid var(--line);
  background: none; color: var(--faint); flex: none; transition: all .15s;
}
.tag-btn:hover { border-color: var(--faint); color: var(--muted); }
.tag-btn.suspect { color: var(--red); border-color: rgba(225, 46, 46, .5); background: rgba(225, 46, 46, .06); }
.tag-btn.cleared { color: var(--green); border-color: rgba(61, 187, 110, .45); background: rgba(61, 187, 110, .06); }
.mma { font-size: 12px; color: var(--muted); display: grid; gap: 8px; }
.mma b {
  color: var(--faint); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .12em; display: block; font-weight: 800; margin-bottom: 1px;
}
.suspect-note {
  width: 100%; background: transparent; border: none; border-bottom: 1px dashed var(--line-soft);
  border-radius: 0; color: var(--text); font-family: var(--hand); font-size: 16px;
  padding: 4px 2px 4px; margin-top: 4px; resize: none; min-height: 30px; line-height: 1.35;
  display: block;
}
.suspect-note::placeholder { color: var(--faint); font-family: var(--hand); }
.suspect-note:focus { outline: none; border-bottom-color: var(--red); }

.notebook {
  width: 100%; min-height: 260px; background: transparent;
  border: none; color: var(--text);
  font-family: var(--hand); font-size: 19px; line-height: 30px;
  padding: 0 2px; resize: vertical;
  background-image: repeating-linear-gradient(transparent, transparent 29px, var(--line) 29px, var(--line) 30px);
}
.notebook::placeholder { color: var(--faint); }
.notebook:focus { outline: none; }
.save-note { font-size: 11px; color: var(--faint); margin-top: 10px; }

/* timeline — vertical with spine */
.timeline-strip { display: flex; flex-direction: column; margin-top: 6px; }
.tl-chip {
  position: relative; padding: 0 28px 18px 24px;
  border-left: 2px solid var(--line);
  margin-left: 6px; min-width: 0; background: none; border-radius: 0;
}
.tl-chip:last-child { padding-bottom: 4px; }
.tl-chip::before {
  content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(225, 46, 46, .15);
}
.tl-chip.custom::before { background: var(--bg); border: 2px solid var(--red); }
.tl-chip .t { color: var(--red); font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tl-chip .l { font-size: 13px; color: var(--text); margin-top: 1px; }
.tl-chip .rm {
  position: absolute; top: 0; right: 0; background: none; border: none;
  color: var(--faint); font-size: 14px; display: none; padding: 2px 6px;
}
.tl-chip .rm:hover { color: var(--red); }
.tl-chip.custom .rm { display: block; }
.tl-add { display: flex; gap: 8px; margin-top: 16px; }
.tl-add .field { padding: 9px 11px; font-size: 13px; }
.tl-add .time { width: 86px; flex: none; }

/* ---------- hints ---------- */
.stage-head {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 30px 0 14px; padding-top: 4px;
}
.stage-head:first-child { margin-top: 0; }
.stage-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-weight: 900; font-size: 15px;
  box-shadow: 0 0 14px var(--red-glow);
}
.stage-copy h4 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stage-copy p { color: var(--faint); font-size: 12.5px; max-width: 560px; margin-top: 2px; }

.puzzle-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-thumb {
  width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none;
  border: 1px solid var(--line-soft); background: var(--panel-2);
}
.hint-row.single { grid-template-columns: 1fr; }
.single-intro { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }

/* hint sections (Motive / Means & Opportunity / Alibi) */
.hsec + .hsec { margin-top: 16px; }
.hsec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.hsec-head b {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}
.hsec-ev { color: var(--faint); font-size: 11.5px; }
.hint-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.puzzle {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; border-left: 3px solid var(--line-soft);
  transition: border-color .2s;
}
.puzzle.solved-p { border-left-color: var(--green); }
.puzzle.open { border-left-color: var(--red); }
.puzzle.open.solved-p { border-left-color: var(--green); }
.puzzle-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 19px; cursor: pointer; user-select: none;
}
.puzzle-head:hover .puzzle-title { color: #fff; }
.puzzle-title { font-weight: 700; font-size: 13.5px; }
.puzzle-state { font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .04em; }
.puzzle-state .solved { color: var(--green); font-weight: 700; }
.stamp-solved {
  font-weight: 900; font-size: 17px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green); border: 3px solid currentColor; border-radius: 7px;
  padding: 3px 13px; transform: rotate(-5deg); white-space: nowrap;
  text-shadow: 0 0 14px rgba(61, 187, 110, .45); mix-blend-mode: screen;
}
.puzzle-body { display: none; padding: 2px 19px 18px; }
.puzzle.open .puzzle-body { display: block; }
.hint-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .hint-row { grid-template-columns: 1fr; } }
.hint-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
.hint-cell.answer-cell { border-color: rgba(225, 46, 46, .25); }
.hint-cell h5 {
  font-size: 10px; color: var(--faint); text-transform: uppercase;
  letter-spacing: .11em; margin-bottom: 9px; font-weight: 800;
}
.hint-cell h5 .n { color: var(--red); margin-right: 5px; }
.hint-cell .revealed-text { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.reveal-btn {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 7px; padding: 8px; font-size: 12px; font-weight: 600; transition: all .15s;
}
.reveal-btn:hover { color: var(--text); border-color: var(--line-soft); }
.reveal-btn.danger { color: #ff6b6b; }
.reveal-btn.danger:hover { border-color: rgba(225, 46, 46, .4); }
.mark-solved { margin-top: 13px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; width: fit-content; }
.mark-solved input { accent-color: var(--green); width: 15px; height: 15px; }

.meter { text-align: center; }
.meter .big { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -1px; margin-top: 4px; }
.meter .big.warm { color: var(--gold); }
.meter .big.hot { color: var(--red); text-shadow: 0 0 22px var(--red-glow); }
.meter-sub { color: var(--faint); font-size: 12px; margin-bottom: 16px; }
.hint-count-line { font-size: 12px; color: var(--faint); margin-top: 14px; text-align: center; }
.hint-count-line b { color: var(--gold); }

.whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #1ebe57; color: #fff; border: none; border-radius: 9px;
  padding: 12px; font-weight: 700; font-size: 13.5px; transition: filter .15s;
}
.whatsapp-btn:hover { filter: brightness(1.08); text-decoration: none; }

/* ---------- evidence ---------- */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.extra-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s;
}
.extra-card:hover { border-color: var(--line-soft); }
.extra-card.locked { opacity: .5; }
.extra-tier { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.extra-card.locked .extra-tier { color: var(--faint); }
.extra-title { font-weight: 700; font-size: 13.5px; letter-spacing: -.1px; }
.extra-desc { color: var(--faint); font-size: 12px; flex: 1; }
.extra-action { margin-top: 12px; }

/* case file — evidence thumbnail grid */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.ev-card {
  display: block; border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: var(--panel-2); transition: border-color .15s, transform .12s;
}
.ev-card:hover { border-color: var(--line-soft); transform: translateY(-2px); text-decoration: none; }
.ev-thumb { position: relative; display: block; height: 130px; background: #17171a; overflow: hidden; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ev-spoiler .ev-thumb img { filter: blur(9px) brightness(.55); }
.ev-badge {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #ff6b6b; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 10px;
}
.ev-meta { display: flex; gap: 8px; align-items: baseline; padding: 9px 11px; }
.ev-n { color: var(--faint); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.ev-meta b { font-size: 11.5px; color: var(--text); line-height: 1.35; }
.cfl-row {
  display: flex; gap: 12px; align-items: baseline; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.cfl-row:first-child { border-top: none; }

/* reveal article — the payoff newspaper */
.article {
  background: linear-gradient(180deg, #f4eedf, #ece4d0); color: #1d1b16;
  border-radius: 12px; padding: 30px 34px; text-align: left;
  max-width: 640px; margin: 0 auto 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.article .masthead {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 24px;
  text-align: center; letter-spacing: .02em; border-bottom: 2.5px solid #1d1b16;
  padding-bottom: 10px; margin-bottom: 18px;
}
.article h4 {
  font-family: Georgia, 'Times New Roman', serif; font-size: 17px; margin: 16px 0 6px;
}
.article p { font-size: 13px; line-height: 1.65; margin-bottom: 10px; color: #2b2822; }

/* walkthrough video rows */
.wt-row {
  display: flex; align-items: center; gap: 13px; padding: 11px 4px;
  border-top: 1px solid var(--line); color: var(--text); font-size: 13px;
}
.wt-row:hover { text-decoration: none; background: var(--panel-2); }
.wt-row:first-of-type { border-top: none; }
.wt-n { color: var(--faint); font-size: 11px; font-weight: 700; width: 14px; }
.wt-play {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(225, 46, 46, .12);
  color: var(--red); display: grid; place-items: center; font-size: 11px; flex: none;
}
.wt-row b { flex: 1; font-size: 13px; }
.wt-go { color: var(--faint); font-size: 12px; font-weight: 600; }
.wt-row:hover .wt-go { color: var(--red); }

/* ---------- night ---------- */
.night-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 920px) { .night-grid { grid-template-columns: 1fr; } }
.countdown { text-align: center; padding: 32px 24px; }
.countdown .clock {
  font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums;
  letter-spacing: 1px; text-shadow: 0 0 30px var(--red-glow);
}
.countdown .clock span { color: var(--faint); font-size: 18px; font-weight: 600; text-shadow: none; }
.countdown-sub { color: var(--faint); font-size: 12.5px; margin: 10px 0 20px; }
.schedule-row { display: flex; gap: 10px; margin-bottom: 14px; }
.schedule-row .field { font-size: 14px; color-scheme: dark; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0 2px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  margin-top: 16px;
}
.switch { position: relative; width: 38px; height: 21px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--line-soft); border-radius: 99px; transition: .2s; cursor: pointer; }
.slider:before {
  content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px; transition: .2s;
}
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider:before { transform: translateX(17px); }
.pairing { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.pairing:first-of-type { border-top: none; padding-top: 2px; }
.pairing b { font-size: 13.5px; letter-spacing: -.1px; }
.pairing span { color: var(--faint); font-size: 12.5px; }
.runsheet-item { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.runsheet-item:first-of-type { border-top: none; padding-top: 2px; }
.runsheet-item .t { color: var(--red); font-weight: 800; min-width: 64px; font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }

/* ---------- accuse ---------- */
.accuse-warn {
  display: flex; gap: 10px; align-items: center; background: rgba(225, 46, 46, .07);
  border: 1px solid rgba(225, 46, 46, .3); border-radius: 10px; padding: 13px 17px;
  color: var(--text); font-size: 13px; margin-bottom: 24px;
}
.accuse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; margin-bottom: 22px; }
.accuse-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; cursor: pointer; color: var(--text);
  transition: border-color .15s, transform .12s;
}
.accuse-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.accuse-card.selected {
  border-color: var(--red); background: rgba(225, 46, 46, .06);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.accuse-card.ruled-out { position: relative; border-color: rgba(61, 187, 110, .25); }
.accuse-card.ruled-out .ac-photo { filter: grayscale(1) brightness(.4); }
.accuse-card.ruled-out .nm { color: var(--faint); text-decoration: line-through; }
.accuse-card.ruled-out .rl { opacity: .5; }
.accuse-card.ruled-out::after {
  content: 'CLEARED'; position: absolute; top: 42px; left: 50%;
  transform: translateX(-50%) rotate(-12deg);
  font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--green);
  border: 2.5px solid currentColor; border-radius: 6px; padding: 2px 9px;
  text-shadow: 0 0 12px rgba(61, 187, 110, .5);
}
.accuse-card .nm { font-weight: 700; font-size: 14px; }
.accuse-card .rl { color: var(--faint); font-size: 11px; margin-top: 2px; }
.ac-photo {
  width: 78px; height: 78px; object-fit: cover; border-radius: 50%;
  display: block; margin: 0 auto 12px; border: 2px solid var(--line-soft);
}
.accuse-card.selected .ac-photo { border-color: var(--red); }
.ac-ph {
  display: grid; place-items: center; background: linear-gradient(145deg, #232327, #17171a);
  color: var(--faint); font-weight: 900; font-size: 26px;
}
.accuse-confirm {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  position: sticky; bottom: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.accuse-confirm .who { font-size: 15px; }
.accuse-confirm .who b { color: var(--red); }

/* verdict */
.verdict { text-align: center; padding: 30px 0 6px; }
.verdict .stamp { display: inline-block; font-size: 26px; padding: 10px 28px; margin-bottom: 22px; transform: rotate(-4deg); }
.verdict h2 { font-size: 28px; margin-bottom: 10px; letter-spacing: -.6px; font-weight: 800; }
.verdict p.reveal { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 13.5px; }
.solve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; text-align: left; margin-top: 8px; }
.stat-line { font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.stat-line:first-of-type { border-top: none; }
.stat-line b { color: var(--text); }
.points-burst { font-size: 42px; font-weight: 900; color: var(--red); letter-spacing: -1px; text-shadow: 0 0 26px var(--red-glow); }
.refer-code {
  font-family: ui-monospace, 'SF Mono', monospace; background: var(--bg); border: 1px dashed var(--line-soft);
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px; letter-spacing: .08em;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

/* ---------- profile: reward + solved grid ---------- */
.reward-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.reward-fill {
  height: 100%; border-radius: 99px; transition: width .5s ease;
  background: linear-gradient(90deg, var(--red), #e8b73a, var(--green));
}
.reward-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 7px; font-weight: 600; }

.solved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.sg-card {
  position: relative; border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; background: var(--panel-2); transition: border-color .15s;
}
.sg-card:hover { border-color: var(--line-soft); }
.sg-card img { width: 100%; height: 128px; object-fit: cover; display: block; }
.sg-noart {
  height: 128px; display: grid; place-items: center; font-weight: 900; font-size: 24px;
  color: var(--faint); letter-spacing: .06em;
  background: linear-gradient(145deg, #1c1c20, #121214);
}
.sg-badge {
  position: absolute; top: 8px; left: 8px; background: var(--green); color: #04150b;
  font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 2.5px 8px; border-radius: 99px; z-index: 1;
}
.sg-meta { padding: 9px 11px; }
.sg-meta b { font-size: 11.5px; line-height: 1.3; display: block; }
.sg-date { color: var(--faint); font-size: 10px; margin-top: 2px; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card { text-align: center; }
.avatar-big {
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5a5a, var(--red-dark));
  margin: 6px auto 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 30px; color: #fff;
  box-shadow: 0 10px 30px var(--red-glow);
}
.rank-name { color: var(--red); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.points-big { font-size: 36px; font-weight: 900; color: var(--red); margin: 14px 0 2px; letter-spacing: -1px; }
.rank-track { margin: 18px 0 6px; }
.rank-steps { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 7px; font-weight: 600; }
.rank-steps .done { color: var(--text); }
.case-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
}
.case-row:first-of-type { border-top: none; padding-top: 2px; }
.case-row .st { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-row .st.solved { color: var(--green); }
.case-row .st.active { color: var(--red); }
.back-link { color: var(--muted); font-size: 13px; background: none; border: none; padding: 0; margin-bottom: 18px; display: inline-block; }
.back-link:hover { color: var(--text); }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--text);
  border-radius: 10px; padding: 12px 22px; font-size: 13px; z-index: 100; font-weight: 600;
  transition: transform .28s cubic-bezier(.34, 1.3, .5, 1); box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.toast.show { transform: translateX(-50%) translateY(0); }

.footer-note { text-align: center; color: var(--faint); font-size: 12px; margin-top: 64px; }
.footer-note a { color: var(--muted); }

/* ---------- cinema overlay ---------- */
.cinema {
  position: fixed; inset: 0; background: #060607; z-index: 300;
  display: none; align-items: center; justify-content: center;
  transition: opacity .6s;
}
.cinema.show { display: flex; }
.cinema.fadeout { opacity: 0; }
.c-big {
  font-size: 140px; font-weight: 900; color: var(--red);
  text-shadow: 0 0 60px rgba(225, 46, 46, .5);
  animation: czoom .85s ease forwards;
}
@keyframes czoom {
  0% { opacity: 0; transform: scale(1.9); }
  25% { opacity: 1; }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.85); }
}
.c-msg {
  font-size: 32px; font-weight: 800; color: #fff; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; padding: 0 24px;
  animation: cfade 2s ease forwards;
}
@keyframes cfade {
  0% { opacity: 0; letter-spacing: .25em; }
  25% { opacity: 1; letter-spacing: .08em; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- modal shells ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 5, 6, .82);
  backdrop-filter: blur(6px); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.modal-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 30px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  animation: fadein .3s ease;
}

/* onboarding */
.onboard-card h2 { font-size: 26px; letter-spacing: -.5px; margin: 10px 0 6px; }
.ob-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.ob-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ob-tiles.nums { grid-template-columns: repeat(5, 1fr); }
.ob-tile {
  background: var(--bg); border: 2px solid var(--line); color: var(--text);
  border-radius: 11px; padding: 16px 10px; font-weight: 700; font-size: 13.5px;
  transition: border-color .15s, transform .1s;
}
.ob-tile:hover { border-color: var(--faint); transform: translateY(-2px); }
.ob-tile.sel { border-color: var(--red); background: rgba(225, 46, 46, .07); }
.ob-tile.num { font-size: 17px; padding: 13px 0; }
.ob-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ob-badge {
  flex: none; width: 58px; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: var(--faint); text-transform: uppercase;
}
.ob-name-row:first-child .ob-badge { color: var(--gold); }

/* the detective letter */
.letter-card {
  max-width: 620px; background: linear-gradient(180deg, #f6f1e4, #efe8d6); color: #21201c;
  border: none;
}
.letter-head {
  display: flex; gap: 14px; align-items: flex-start; border-bottom: 2px solid #21201c;
  padding-bottom: 14px; margin-bottom: 16px;
}
.letter-head b { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.letter-badge {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #21201c; flex: none;
  display: grid; place-items: center; font-size: 18px;
}
.letter-meta { font-size: 11.5px; color: #5d594e; }
.letter-conf {
  margin-left: auto; font-weight: 900; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: #b32222; border: 2.5px solid #b32222;
  border-radius: 5px; padding: 3px 9px; transform: rotate(6deg);
}
.letter-body { font-size: 13.5px; line-height: 1.7; }
.letter-body h4 { font-size: 13.5px; margin: 14px 0 4px; }
.letter-body p { margin-bottom: 10px; }
.letter-body ol { margin: 0 0 10px 18px; }
.letter-body li { margin-bottom: 6px; }
.letter-sig { font-family: var(--hand); font-size: 34px; margin: 2px 0; }
.letter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* suspect notes drawer */
.notes-card { max-width: 480px; }
.nd-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.nd-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.nd-head h3 { font-size: 18px; }
.nd-head .t-reset { margin-left: auto; }
.nd-row { border-top: 1px solid var(--line); padding: 12px 0; }
.nd-row b {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 3px;
}
.nd-row p { color: var(--muted); font-size: 12.5px; }

/* ---------- corkboard ---------- */
.corkboard {
  position: relative; border-radius: var(--radius); padding: 26px 22px 22px;
  border: 10px solid #4a3421;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, .05), transparent 45%),
    radial-gradient(circle at 78% 65%, rgba(0, 0, 0, .12), transparent 50%),
    radial-gradient(circle at 45% 85%, rgba(0, 0, 0, .08), transparent 40%),
    repeating-radial-gradient(circle at 30% 40%, transparent 0 3px, rgba(0, 0, 0, .025) 3px 5px),
    linear-gradient(160deg, #a8804d, #8f6a3d 55%, #9c7645);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .4);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 16px;
}
.sticky-note {
  grid-column: 1 / -1; justify-self: center;
  background: linear-gradient(180deg, #f5e07a, #eed35e); color: #4a3b12;
  font-family: var(--hand); font-size: 24px; padding: 12px 26px 14px;
  transform: rotate(-2deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  border-radius: 2px;
}
.pol-wrap {
  position: relative; transform: rotate(var(--r, 0deg));
  transition: transform .2s; text-align: center;
}
.pol-wrap:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.pin {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #a91f1f);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .5);
}
.pol-wrap .s-photo { cursor: pointer; display: block; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); border-radius: 6px; }
.pol-wrap .s-polaroid { margin-bottom: 0; border-radius: 6px; }
.pol-wrap.cleared .s-polaroid { filter: grayscale(1) brightness(.45); }
.pol-actions { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.pol-btn {
  background: rgba(20, 18, 15, .85); border: 1px solid rgba(0, 0, 0, .4); color: #e8e0d0;
  border-radius: 7px; padding: 5px 10px; font-size: 11px; font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.pol-btn:hover { background: rgba(30, 27, 22, .95); }
.pol-btn.green { color: var(--green); border-color: rgba(61, 187, 110, .4); }

/* squad */
.squad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.squad-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 12px 4px 4px; font-size: 12.5px; font-weight: 600;
}
.squad-chip.lead { border-color: rgba(201, 162, 39, .5); }
.sq-av {
  width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2);
  border: 1px solid var(--line-soft); display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: var(--muted);
}
.squad-chip.lead .sq-av { background: rgba(201, 162, 39, .15); color: var(--gold); border-color: rgba(201, 162, 39, .4); }

/* case switcher solved stamp */
.cs-art { position: relative; display: block; }
.cs-solved {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  font-weight: 900; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); border: 2.5px solid currentColor; border-radius: 6px; padding: 2px 9px;
  text-shadow: 0 0 12px rgba(61, 187, 110, .5); background: rgba(5, 10, 7, .35);
}

/* paused clock */
.t-dot.paused { animation: none; opacity: .35; background: var(--gold); box-shadow: none; }

/* behind the case */
.makers { max-width: 980px; }
.makers-h { font-size: 30px; font-weight: 900; letter-spacing: -.6px; margin: 8px 0 18px; }
.makers-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .makers-grid { grid-template-columns: 1fr; } }
.makers-intro { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.makers-photo img { width: 100%; border-radius: 10px; display: block; }
.makers-outro { color: var(--faint); font-size: 13px; margin-top: 22px; font-style: italic; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .wrap { padding: 24px 18px 70px; }
  .topbar { padding: 12px 18px; }
  .brand { font-size: 13.5px; }
  .brand-suffix { display: none; }
  h1 { font-size: 34px; }
  .case-head { flex-direction: column; gap: 18px; }
  .case-head h1 { font-size: 28px; }
  .head-right { align-items: flex-start; text-align: left; width: 100%; }
  .timers { justify-content: flex-start; }
  .progress-wrap { width: 100%; }
  .tabs { top: 49px; margin-bottom: 22px; }
  .tab { padding: 13px 13px; font-size: 12.5px; }
  .suspect-grid { grid-template-columns: 1fr; }
  .unlock-hero { padding: 40px 0 30px; }
  .unlock-card { padding: 24px; }
  .schedule-row { flex-direction: column; }
  .accuse-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown .clock { font-size: 36px; }
  #head-night-chip { display: none !important; }
}
