:root {
  --bg: #0e0f12;
  --panel: #171920;
  --panel2: #1f222b;
  --line: #2c303b;
  --text: #e9e4d8;
  --muted: #9a958a;
  --amber: #f0b44c;
  --neon: #ff5a4f;
  --green: #5fd38d;
  --paper: #f3ecda;
  --ink: #1e1b16;
  --red: #a3201c;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Courier Prime', 'Courier New', monospace; font-size: 16px; line-height: 1.5;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(255, 90, 79, .10), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(240, 180, 76, .06), transparent 50%);
  background-attachment: fixed; min-height: 100vh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--amber); }
.boot { padding: 40vh 20px; text-align: center; color: var(--muted); font-family: 'Oswald', sans-serif; letter-spacing: .12em; }
.osw { font-family: 'Oswald', 'Arial Narrow', sans-serif; }
.type { font-family: 'Special Elite', 'Courier New', monospace; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 15, 18, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; flex: 1; }
.brand .no { font-family: 'Oswald'; font-size: 11px; letter-spacing: .2em; color: var(--neon); }
.brand .ti { font-family: 'Oswald'; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 4px; }
.tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; font-family: 'Oswald'; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--muted); min-height: 40px; }
.tab.on { color: var(--text); border-color: var(--line); background: var(--panel); }
.tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); margin-left: 5px; vertical-align: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px calc(60px + var(--safe-b)); }
h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
.lead { color: var(--muted); margin: 6px 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); padding: 8px 0; font-family: 'Oswald'; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; min-height: 44px; }

/* code box */
.codebox { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.codebox label { font-family: 'Oswald'; letter-spacing: .14em; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.coderow { display: flex; gap: 10px; margin-top: 8px; }
.coderow input { flex: 1; min-width: 0; background: #0b0c0f; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: 'Special Elite', monospace; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.coderow input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.btn { background: var(--amber); color: #1b1408; border: 0; border-radius: 10px; padding: 12px 18px; font-family: 'Oswald'; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; min-height: 48px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.red { background: var(--neon); color: #fff; }
.msg { min-height: 24px; margin-top: 10px; font-size: 15px; }
.msg.err { color: #ff8a80; }
.msg.ok { color: var(--green); }
.msg.near { color: var(--amber); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* progress + set cards */
.progress { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.bar { flex: 1; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--neon)); transition: width .6s; }
.progress span { font-family: 'Oswald'; letter-spacing: .12em; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 128px; text-align: left; display: flex; flex-direction: column; overflow: hidden; }
.card .n { font-family: 'Oswald'; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.card .nm { font-family: 'Oswald'; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; line-height: 1.15; }
.card .st { margin-top: auto; padding-top: 10px; font-family: 'Oswald'; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.card.locked .st { color: var(--muted); }
.card.open { border-color: rgba(95, 211, 141, .45); background: linear-gradient(160deg, #1b2620, var(--panel)); }
.card.open .st { color: var(--green); }
.card.locked::after { content: 'SEALED'; position: absolute; right: -6px; top: 14px; transform: rotate(14deg); border: 2px solid rgba(255, 90, 79, .55); color: rgba(255, 90, 79, .65); font-family: 'Oswald'; font-weight: 700; letter-spacing: .18em; font-size: 12px; padding: 1px 8px; border-radius: 3px; }
.accuse-card { margin-top: 12px; width: 100%; background: linear-gradient(120deg, #2a1414, #1b1012); border: 1px solid rgba(255, 90, 79, .35); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
.accuse-card.dim { opacity: .55; }
.accuse-card .big { font-family: 'Oswald'; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.accuse-card .sm { color: var(--muted); font-size: 14px; }
.accuse-card .arrow { margin-left: auto; font-size: 26px; color: var(--neon); }

.info { margin-top: 22px; display: grid; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.panel h3 { font-size: 14px; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.small { font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px 0; font-size: 13px; min-height: 40px; }

/* evidence items */
.items { display: grid; gap: 16px; margin-top: 18px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item .hd { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.item .hd .t { font-family: 'Oswald'; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.item .hd .m { font-size: 13px; color: var(--muted); }
.item .bd { padding: 14px; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.player.audio { aspect-ratio: auto; min-height: 96px; background: linear-gradient(135deg, #111317, #1c1f26); padding: 18px; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player audio { width: 100%; }
.playbtn { background: rgba(240, 180, 76, .12); border: 1px solid var(--amber); color: var(--amber); border-radius: 999px; padding: 12px 22px; font-family: 'Oswald'; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; min-height: 48px; }
.wave { display: flex; gap: 3px; align-items: center; height: 40px; margin-right: 16px; }
.wave i { width: 3px; background: var(--amber); opacity: .5; border-radius: 2px; }
details.tr { border-top: 1px solid var(--line); }
details.tr summary { padding: 12px 14px; font-family: 'Oswald'; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 44px; }
details.tr .lines { padding: 0 14px 14px; font-family: 'Special Elite', monospace; font-size: 15px; }
details.tr .lines p { margin: 0 0 8px; }

/* paper documents */
.paper { background: url('noise.png'), var(--paper); color: var(--ink); border-radius: 4px; padding: 16px; font-family: 'Special Elite', monospace; font-size: 15px; line-height: 1.5; box-shadow: inset 0 0 40px rgba(120, 90, 40, .12); }
.paper .ph { font-family: 'Oswald'; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #6b5e48; border-bottom: 1.5px solid #2a2622; padding-bottom: 4px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.paper p { margin: 0 0 9px; }
.paper .sig { font-family: 'Caveat', cursive; font-size: 28px; color: #1b2f63; margin-top: 4px; }
.paper .note { margin-top: 10px; font-family: 'Caveat', cursive; font-size: 21px; line-height: 1.15; color: #1b2f63; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: 'Oswald'; font-weight: 400; letter-spacing: .08em; font-size: 11px; text-transform: uppercase; color: #5b5146; border-bottom: 1.5px solid #333; padding: 4px 6px; }
.tbl td { border-bottom: 1px solid #c9bd9f; padding: 6px; vertical-align: top; }
.tbl td.time { white-space: nowrap; font-weight: 700; }
.tbl tr.hl td { background: rgba(255, 220, 90, .35); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin-bottom: 10px; font-size: 14px; }
.fields b { font-family: 'Oswald'; font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5b5146; padding-top: 3px; }

/* phone texts */
.phone { background: #f2f2f6; border-radius: 22px; padding: 14px 12px; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #111; max-width: 420px; margin: 0 auto; }
.phone .who { text-align: center; font-size: 13px; color: #666; margin-bottom: 10px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 18px; margin: 4px 0; font-size: 15px; line-height: 1.3; }
.bub.me { margin-left: auto; background: #2f7cf6; color: #fff; border-bottom-right-radius: 5px; }
.bub.them { background: #e1e1e6; border-bottom-left-radius: 5px; }
.bt { font-size: 11px; color: #888; margin: 0 6px 6px; }
.bt.me { text-align: right; }

/* hints */
.hint { margin-top: 12px; }
.hint .hbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hint .hbtn { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-family: 'Oswald'; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; min-height: 44px; }
.hint .htext { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(240, 180, 76, .07); border-radius: 0 8px 8px 0; }

/* accuse */
.q { margin-top: 22px; }
.q h2 { display: flex; align-items: baseline; gap: 10px; }
.q h2 small { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.opt { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; min-height: 52px; display: flex; align-items: center; gap: 10px; width: 100%; }
.opt.sel { border-color: var(--amber); background: #262013; }
.opt .sil { width: 52px; height: 58px; flex: none; background: repeating-linear-gradient(#2e3238 0 9px, #3a3f46 9px 10px); border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.opt .sil svg { width: 86%; fill: #07080a; }
.opt .l { font-family: 'Oswald'; font-size: 16px; letter-spacing: .04em; line-height: 1.15; }
.opt .s { font-size: 12.5px; color: var(--muted); }
.opts { display: grid; gap: 10px; margin-top: 10px; }
.opts .opt { font-size: 15px; line-height: 1.35; }
.radio { width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; flex: none; position: relative; }
.opt.sel .radio { border-color: var(--amber); }
.opt.sel .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); }
.submitbar { position: sticky; bottom: 0; margin: 24px -16px 0; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); }
.submitbar .btn { width: 100%; }
.verdict { margin-top: 18px; }
.verdict .row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed #b8ab8c; }
.verdict .row:first-of-type { border-top: 0; }
.verdict .mk { font-family: 'Oswald'; font-weight: 700; width: 22px; flex: none; }
.verdict .mk.ok { color: #1f7a45; }
.verdict .mk.no { color: var(--red); }

/* reveal */
.closed { text-align: center; padding: 26px 10px 10px; overflow: hidden; }
.closed .stamp { display: inline-block; border: 4px solid var(--neon); color: var(--neon); font-family: 'Oswald'; font-weight: 700; font-size: 34px; letter-spacing: .16em; padding: 4px 18px; transform: rotate(-6deg); border-radius: 6px; animation: thump .5s cubic-bezier(.2, 1.6, .4, 1); }
.closed .stamp.viewed { border-color: var(--amber); color: var(--amber); font-size: 24px; }
@keyframes thump { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.sum { display: grid; gap: 12px; margin-top: 16px; }
.sum h3 { font-size: 13px; letter-spacing: .14em; color: var(--red); margin-bottom: 4px; }
.cert { margin-top: 18px; text-align: center; }
.cert input { background: transparent; border: 0; border-bottom: 1.5px solid #555; color: var(--ink); font-family: 'Caveat', cursive; font-size: 30px; text-align: center; width: 100%; max-width: 340px; padding: 2px 6px; }
.cert input:focus { outline: none; border-color: var(--red); }
.teaser { margin-top: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
.teaser .big { font-family: 'Oswald'; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }

.footer { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); background: #1c2a21; border: 1px solid var(--green); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 50; font-family: 'Oswald'; letter-spacing: .08em; max-width: 92vw; text-align: center; animation: tin .3s; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* bigger screens */
@media (min-width: 720px) {
  h1 { font-size: 32px; }
  .sets { grid-template-columns: repeat(4, 1fr); }
  .who { grid-template-columns: repeat(5, 1fr); }
  .who .opt { flex-direction: column; text-align: center; padding: 12px 8px; }
  .who .opt .sil { width: 100%; height: 110px; }
  .info { grid-template-columns: 1fr 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .submitbar { position: static; margin: 26px 0 0; padding: 0; background: none; }
  .submitbar .btn { width: auto; min-width: 280px; }
}
@media (min-width: 960px) {
  .items { grid-template-columns: 1fr 1fr; align-items: start; }
  .items .item.wide { grid-column: 1 / -1; }
  .sum { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .tab { padding: 8px 8px; font-size: 12px; letter-spacing: .06em; }
  .brand .ti { font-size: 15px; }
  .coderow { flex-direction: column; }
  .coderow .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 520px) { .tbl { font-size: 12.5px; } .tbl td, .tbl th { padding: 5px 4px; } .paper { padding: 13px; font-size: 14.5px; } }

.loadnote{margin-top:8px}


/* Case 02 additions */
.shot{margin:0}
.shot img{display:block;width:100%;height:auto;border-radius:6px;background:#111;filter:none}
.shot figcaption{font-size:14px;color:#cfc6b8;margin-top:8px;line-height:1.45}
.slips{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.slipwrap{text-align:center}
.slip{position:relative;background:#f7f5ee;color:#1b1b1b;padding:14px 16px 18px;width:268px;max-width:100%;box-shadow:0 2px 8px rgba(0,0,0,.45);text-align:left;clip-path:polygon(0 4px,4% 0,9% 4px,14% 0,19% 4px,24% 0,29% 4px,34% 0,39% 4px,44% 0,49% 4px,54% 0,59% 4px,64% 0,69% 4px,74% 0,79% 4px,84% 0,89% 4px,94% 0,100% 4px,100% 100%,0 100%)}
.slip pre{margin:0;font:13px/1.45 "Courier New",Consolas,monospace;white-space:pre-wrap;letter-spacing:.02em}
.slip .dead{position:absolute;top:0;bottom:0;left:33%;width:2px;background:#f7f5ee}
.phonenote{font-size:15px}
.cardnote{margin-top:12px}
.cardnote .hand{font-family:"Segoe Script","Segoe Print","Ink Free",cursive;font-size:20px;line-height:1.5;margin:6px 0 0;color:#1d2a55}
