:root {
  --bg: #100d0c;
  --bg2: #171311;
  --panel: #1d1916;
  --panel2: #26211d;
  --line: #3a322b;
  --text: #efe6d6;
  --muted: #a5978330;
  --soft: #b4a690;
  --accent: #b3263c;
  --accent2: #d4495e;
  --amber: #e3ac4f;
  --green: #6fa06a;
  --paper: #f3ead8;
  --paper2: #e9dcc2;
  --ink: #2b231d;
  --ink-soft: #6b5d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --display: "Fraunces", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% -10%, #2a1418 0%, transparent 55%), radial-gradient(ellipse at 110% 20%, #1e1710 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--amber); }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--soft); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; text-decoration: none; transition: transform .12s, background .2s, opacity .2s; min-height: 46px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(179,38,60,.35); }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--soft); }
.btn-amber { background: var(--amber); color: #1d1408; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(16,13,12,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .14em; }
.logo-mark { width: 30px; height: 30px; border: 2px solid var(--accent); color: var(--accent); border-radius: 6px; display: grid; place-items: center; font-size: 15px; letter-spacing: 0; transform: rotate(-6deg); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-m { display: none; } }

/* ---------- home ---------- */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-family: var(--type); color: var(--amber); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 10px 0 16px; }
.hero h1 em { color: var(--accent2); font-style: italic; }
.hero p.lead { font-size: 19px; color: var(--soft); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; aspect-ratio: 3/4; max-width: 420px; justify-self: center; width: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-art .tag { position: absolute; left: -14px; bottom: 30px; background: var(--paper); color: var(--ink); font-family: var(--type); padding: 10px 14px; border-radius: 4px; transform: rotate(-4deg); box-shadow: var(--shadow); font-size: 14px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .hero-art { max-width: 300px; order: -1; } }

.section { padding: 48px 0; }
.section h2 { font-size: clamp(26px, 4vw, 38px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step b { display: block; font-family: var(--display); font-size: 18px; margin: 8px 0 4px; }
.step .n { font-family: var(--type); color: var(--amber); }
.step p { margin: 0; color: var(--soft); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.case-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.case-card:hover { transform: translateY(-3px); border-color: #5a4c40; }
.case-card .cover { aspect-ratio: 4/3; background: #000; overflow: hidden; }
.case-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.case-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case-card .num { font-family: var(--type); color: var(--amber); font-size: 13px; }
.case-card h3 { font-size: 24px; margin: 0; }
.case-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-size: 22px; font-weight: 700; }
.case-card.soon { opacity: .6; }
.case-card.soon .cover { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #1a1614 0 12px, #1f1a17 12px 24px); font-family: var(--type); color: var(--soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); color: var(--soft); border: 1px solid var(--line); }
.pill.ok { color: #a6d4a2; border-color: #3b5b38; background: #1b2619; }

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--soft); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--soft); font-size: 14px; margin-top: 40px; }

/* ---------- página do caso ---------- */
.case-page { display: grid; grid-template-columns: 380px 1fr; gap: 36px; padding: 36px 0; }
.case-page .cover { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.case-page .cover img { width: 100%; height: 100%; object-fit: cover; }
.case-page h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.inside div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; }
.inside b { display: block; font-family: var(--display); font-size: 28px; color: var(--amber); }
.inside span { font-size: 13px; color: var(--soft); }
.buybox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 22px; }
.buybox .price { font-size: 36px; }
.buybox ul { padding-left: 18px; color: var(--soft); margin: 12px 0 18px; }
.suspect-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.suspect-chip { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 14px; }
@media (max-width: 820px) { .case-page { grid-template-columns: 1fr; } .case-page .cover { max-width: 280px; } .inside { grid-template-columns: 1fr 1fr; } }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 14px; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- formulários / modais ---------- */
.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: 14px; color: var(--soft); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; }
.field input:focus, textarea:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.err { color: #ff9aa8; font-size: 14px; min-height: 1.2em; margin: 6px 0; }
.auth-box { max-width: 420px; margin: 48px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,4,3,.72); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; position: relative; box-shadow: var(--shadow); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--panel2); display: grid; place-items: center; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

.pix-qr { background: #fff; border-radius: 12px; padding: 12px; width: 240px; margin: 14px auto; }
.pix-qr svg { display: block; width: 100%; height: auto; }
.copybox { display: flex; gap: 8px; margin: 10px 0; }
.copybox input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); color: var(--soft); border-radius: 10px; padding: 10px; font-size: 13px; }
.waiting { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--soft); font-size: 15px; margin: 12px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
.code-big { font-family: var(--type); font-size: 34px; letter-spacing: .12em; text-align: center; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 16px; margin: 14px 0; user-select: all; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 86px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: up .25s; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.toast.new { background: var(--amber); color: #1d1408; }

/* ---------- jogo ---------- */
.game { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 62px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 62px; height: calc(100vh - 62px); display: flex; flex-direction: column; gap: 4px; }
.tab { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 12px 14px; border-radius: 12px; color: var(--soft); text-align: left; font-weight: 500; position: relative; }
.tab:hover { background: var(--panel); color: var(--text); }
.tab.on { background: var(--panel2); color: var(--text); }
.tab.on .icon { color: var(--amber); }
.tab .badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.side .case-mini { padding: 4px 14px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .case-mini b { font-family: var(--display); font-size: 18px; display: block; }
.progressbar { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progressbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 99px; transition: width .4s; }
.side .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.main { padding: 26px 28px 110px; min-width: 0; }
.main > h2 { font-size: 30px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.view-head h2 { margin: 0; font-size: 30px; }
.bottombar { display: none; }
.hint-fab { position: fixed; right: 16px; bottom: 86px; z-index: 40; display: none; }

@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 120px; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(23,19,17,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar .tab { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 11px; justify-content: center; align-items: center; text-align: center; }
  .bottombar .tab .badge { position: absolute; top: 2px; right: 18%; margin: 0; }
  .hint-fab { display: inline-flex; }
}

/* início */
.letter { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; font-family: var(--type); font-size: 15.5px; line-height: 1.7; max-width: 760px; }
.letter::before { content: ""; position: absolute; top: -10px; left: 40px; width: 90px; height: 24px; background: rgba(230,215,170,.75); transform: rotate(-3deg); }
.letter .from { color: var(--ink-soft); font-size: 13px; border-bottom: 1px dashed #c9b998; padding-bottom: 10px; margin-bottom: 14px; }
.letter p { margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; max-width: 760px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; }
.stat span { color: var(--soft); font-size: 13px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } .letter { padding: 22px 18px; font-size: 15px; } }
.tips { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tips li { margin: 6px 0; color: var(--soft); }

/* provas */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--soft); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ev { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 8px; position: relative; min-height: 150px; transition: transform .15s, border-color .15s; animation: up .3s both; }
.ev:hover { transform: translateY(-2px); border-color: #5a4c40; }
.ev .kind { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.ev .kind .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); }
.ev b { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.ev small { color: var(--soft); }
.ev .new { position: absolute; top: 12px; right: 12px; background: var(--amber); color: #1d1408; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .05em; }
.ev.k-doc .ic { color: #e9d7b0; } .ev.k-photo .ic { color: #9cc3e6; } .ev.k-chat .ic { color: #9fd49a; } .ev.k-audio .ic { color: #f0a0ae; }
.ev.locked { border-style: dashed; background: transparent; color: var(--soft); align-items: center; justify-content: center; text-align: center; cursor: default; }
.ev.locked:hover { transform: none; }

/* suspeitos */
.sus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sus { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: left; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.sus::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.sus .top { display: flex; gap: 12px; align-items: center; }
.sus h3 { margin: 0; font-size: 20px; }
.mark { font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 700; letter-spacing: .03em; }
.mark.suspeito { background: #4a1820; color: #ffb3bf; }
.mark.inocente { background: #1d3320; color: #b2e3ad; }
.profile { max-width: 820px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-head h2 { margin: 0; font-size: 30px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--soft); }
.seg button.on { background: var(--panel2); color: var(--text); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
.box h3 { font-size: 19px; }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.q { text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); }
.q:hover { border-color: var(--soft); }
.q.done { color: var(--soft); }
.say { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; animation: up .3s; }
.say .bubble { background: var(--panel2); border-radius: 4px 16px 16px 16px; padding: 11px 14px; line-height: 1.5; }
.say.me { flex-direction: row-reverse; }
.say.me .bubble { background: #3a2a1c; border-radius: 16px 4px 16px 16px; }
.say .note { display: block; margin-top: 8px; font-size: 13px; color: var(--amber); }
.say.key .bubble { box-shadow: inset 0 0 0 1px rgba(227,172,79,.4); }
.typing::after { content: "▍"; animation: pulse .8s infinite; color: var(--amber); }

/* caderno */
.notes { width: 100%; min-height: 280px; background: var(--paper); color: var(--ink); border: 0; border-radius: 6px; padding: 18px 18px 18px 52px; font-family: var(--type); font-size: 16px; line-height: 28px; resize: vertical; background-image: linear-gradient(90deg, transparent 38px, #d98b8b 38px, #d98b8b 40px, transparent 40px), repeating-linear-gradient(transparent 0 27px, #cbbd9f 27px 28px); background-attachment: local; }
.saved { font-size: 13px; color: var(--soft); }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.events time { font-family: var(--type); color: var(--amber); font-size: 13px; flex: none; width: 48px; }

/* acusação */
.acc-q { margin: 22px 0; }
.acc-q > b { display: block; font-family: var(--display); font-size: 21px; margin-bottom: 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.opt { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; gap: 10px; align-items: center; color: var(--text); }
.opt.on { border-color: var(--amber); background: #2d2216; box-shadow: inset 0 0 0 1px var(--amber); }
.result { text-align: center; padding: 26px 18px; }
.stamp { display: inline-block; font-family: var(--type); color: var(--accent2); border: 3px solid var(--accent2); padding: 6px 16px; border-radius: 6px; transform: rotate(-5deg); font-size: 22px; letter-spacing: .12em; margin: 10px 0 18px; }
.stamp.ok { color: #8fd18a; border-color: #8fd18a; }
.stars { font-size: 34px; letter-spacing: 6px; color: var(--amber); }
.solution { text-align: left; max-width: 760px; margin: 0 auto; }
.solution ol li { margin: 10px 0; }
.danger-zone { margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--line); }

/* ---------- visualizador de provas ---------- */
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(8,6,5,.94); display: flex; flex-direction: column; animation: fade .2s; }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.viewer-top b { font-family: var(--display); font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-body { flex: 1; overflow: auto; padding: 22px 16px 40px; -webkit-overflow-scrolling: touch; }
.viewer-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.paper { background: var(--paper); color: var(--ink); max-width: 760px; margin: 0 auto; border-radius: 3px; padding: 30px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.6); font-family: var(--type); font-size: 15px; line-height: 1.65; position: relative; background-image: radial-gradient(circle at 80% 10%, rgba(255,255,255,.4), transparent 40%); }
.paper .hdr { font-size: 11.5px; letter-spacing: .08em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.paper h4 { font-family: var(--ui); font-size: 20px; margin: 0 0 16px; font-weight: 800; }
.paper h5 { font-family: var(--ui); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin: 22px 0 8px; color: var(--ink-soft); }
.paper p { margin: 0 0 12px; }
.paper .kv { display: grid; grid-template-columns: minmax(110px, 32%) 1fr; gap: 6px 14px; margin: 0 0 12px; }
.paper .kv dt { color: var(--ink-soft); }
.paper .kv dd { margin: 0; font-weight: bold; }
.paper table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.paper td, .paper th { border-bottom: 1px solid #c9b998; padding: 7px 6px; text-align: left; vertical-align: top; }
.paper th { font-family: var(--ui); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.paper .hl { background: rgba(255,214,90,.55); padding: 10px 12px; border-left: 4px solid #c9962c; margin: 10px 0; }
.paper .pstamp { position: absolute; right: 22px; top: 70px; border: 3px solid rgba(179,38,60,.7); color: rgba(179,38,60,.75); padding: 4px 12px; transform: rotate(12deg); font-size: 18px; letter-spacing: .15em; }
.paper .tl { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ink); }
.paper .tl li { position: relative; padding: 4px 0 10px 18px; }
.paper .tl li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.paper .tl time { font-weight: bold; margin-right: 8px; }
.paper.nota { max-width: 440px; font-size: 14px; background: #fbf8f1; }
.paper.nota .hdr { text-align: center; border-bottom: 1px dashed var(--ink); }
.paper.timeline { background: #efe3c9; }
@media (max-width: 600px) { .paper { padding: 22px 16px; font-size: 14px; } .paper .kv { grid-template-columns: 1fr; gap: 0 0; } .paper .kv dd { margin-bottom: 8px; } .paper .pstamp { top: auto; bottom: 16px; } }

.photo { max-width: 880px; margin: 0 auto; }
.photo .frame { background: #f7f2e8; padding: 10px 10px 40px; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: rotate(-.6deg); cursor: zoom-in; overflow: hidden; }
.photo .frame img { display: block; width: 100%; transition: transform .25s; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.photo .frame.zoom { cursor: zoom-out; }
.photo .frame.zoom img { transform: scale(2.2); }
.photo .cap { color: var(--ink); font-family: var(--type); font-size: 14px; margin-top: 10px; }
.photo .pnotes { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 20px; }
.photo .pnotes li { margin: 6px 0; }

.phone { max-width: 400px; margin: 0 auto; background: #0b141a; border-radius: 34px; border: 8px solid #222; box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; display: flex; flex-direction: column; height: min(720px, calc(100vh - 190px)); min-height: 420px; }
.phone-top { background: #1f2c34; padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: #e9edef; font-size: 15px; min-height: 58px; }
.phone-top button { background: none; border: 0; color: #e9edef; padding: 4px; display: grid; place-items: center; }
.phone-top small { display: block; color: #8696a0; font-size: 12px; }
.threads { overflow: auto; flex: 1; }
.thread-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid #1f2c34; background: none; width: 100%; text-align: left; color: #e9edef; }
.thread-row:hover { background: #111d24; }
.thread-row .t { flex: 1; min-width: 0; }
.thread-row .t b { display: block; font-weight: 600; font-size: 15px; }
.thread-row .t span { display: block; color: #8696a0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row time { color: #8696a0; font-size: 12px; }
.msgs { flex: 1; overflow: auto; padding: 12px 10px; background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); background-size: 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 9px; font-size: 14.5px; line-height: 1.4; color: #e9edef; position: relative; word-wrap: break-word; }
.msg.them { background: #202c33; align-self: flex-start; border-top-left-radius: 2px; }
.msg.me { background: #005c4b; align-self: flex-end; border-top-right-radius: 2px; }
.msg time { display: block; text-align: right; font-size: 11px; color: rgba(233,237,239,.6); margin-top: 2px; }
.daysep { align-self: center; background: #182229; color: #8696a0; font-size: 12px; padding: 4px 10px; border-radius: 7px; margin: 8px 0; }

.tape { max-width: 640px; margin: 0 auto; }
.recorder { background: linear-gradient(180deg, #2b2621, #1b1714); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.recorder .who { display: flex; gap: 12px; align-items: center; }
.recorder .who b { font-family: var(--display); font-size: 20px; display: block; }
.reels { display: flex; justify-content: center; gap: 70px; margin: 22px 0 14px; }
.reel { width: 74px; height: 74px; border-radius: 50%; border: 6px solid #3d352d; background: radial-gradient(circle, #1a1613 18%, #5a4c3e 19%, #5a4c3e 24%, #241e1a 25%); position: relative; }
.reel::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 3px dashed #6d5d4c; }
.playing .reel::after { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; justify-content: center; margin-bottom: 12px; }
.wave i { width: 4px; height: 6px; background: var(--amber); border-radius: 2px; opacity: .5; }
.playing .wave i { animation: wave 1s ease-in-out infinite; opacity: 1; }
@keyframes wave { 50% { height: 30px; } }
.controls { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(179,38,60,.4); }
.play .icon { width: 28px; height: 28px; }
.transcript { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.tline { padding: 10px 14px; border-radius: 12px; color: var(--soft); transition: background .2s, color .2s; }
.tline b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 2px; }
.tline.del b { color: #9cc3e6; }
.tline.dep b { color: var(--amber); }
.tline.now { background: var(--panel2); color: var(--text); }
.tline.future { filter: blur(5px); user-select: none; }
.tts-warn { font-size: 13px; color: var(--soft); text-align: center; margin-top: 10px; }

.sheet-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; margin-top: 10px; }
.sheet-item { display: flex; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; text-align: left; color: var(--text); }
.sheet-item:hover { border-color: var(--soft); }
.sheet-item small { display: block; color: var(--soft); }

.hint-card { background: var(--paper); color: var(--ink); font-family: var(--type); border-radius: 6px; padding: 14px 16px; margin: 10px 0; }
.hint-card b { font-family: var(--ui); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

.loading { display: grid; place-items: center; min-height: 50vh; color: var(--soft); font-family: var(--type); }
.empty { text-align: center; color: var(--soft); padding: 40px 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== v2: abertura, ligações, deduções, conquistas, votação ===== */
.hud { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 12px; }
.hud-m { display: none; }
.turn { display: inline-flex; align-items: center; gap: 6px; background: #2d2216; color: var(--amber); border: 1px solid #5a4422; border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.turn .icon { width: 16px; height: 16px; }
.chip-s { display: inline-flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13px; color: var(--soft); }
@media (max-width: 860px) {
  .hud-m { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
}

.setup { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 24px 16px 60px; position: relative; isolation: isolate; }
.setup::before { content: ""; position: absolute; inset: 0; background: var(--cover) center 30%/cover no-repeat; opacity: .28; filter: blur(2px); z-index: -2; }
.setup::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,12,.55), var(--bg) 85%); z-index: -1; }
.setup-card { width: 100%; max-width: 520px; background: rgba(29,25,22,.92); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); animation: up .4s; }
.setup-card h1 { font-size: clamp(34px, 7vw, 48px); margin: 6px 0 8px; }
.seg-big { display: flex; width: 100%; }
.seg-big button { flex: 1; padding: 12px 8px; font-size: 15px; font-weight: 600; }

.call { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, #2a1a1e, #0a0807 70%); animation: fade .3s; }
.call-card { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); }
.call-top { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.call-avatar { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, #3d4f63, #22303d); display: grid; place-items: center; font-family: var(--display); font-size: 40px; font-weight: 700; margin: 18px 0 8px; box-shadow: 0 0 0 0 rgba(227,172,79,.5); animation: ringpulse 1.4s infinite; }
.call.live .call-avatar { animation: none; box-shadow: 0 0 0 3px rgba(111,160,106,.5); width: 84px; height: 84px; font-size: 30px; margin-top: 4px; }
@keyframes ringpulse { 0% { box-shadow: 0 0 0 0 rgba(227,172,79,.45); } 100% { box-shadow: 0 0 0 28px rgba(227,172,79,0); } }
.call-name { font-family: var(--display); font-size: 26px; }
.call-status { color: var(--soft); font-size: 15px; }
.call-sub { width: 100%; max-height: 38vh; overflow: auto; text-align: left; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.55; margin-top: 10px; min-height: 80px; }
.call-actions { display: flex; gap: 70px; margin-top: 30px; }
.call-btn { width: 70px; height: 70px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; }
.call-btn .icon { width: 30px; height: 30px; }
.call-btn.accept { background: #2f9e55; animation: bob 1s ease-in-out infinite; }
.call-btn.decline { background: #d23b3b; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.call-hint { font-size: 14px; margin-top: 8px; }

.missed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 760px; background: #2d2216; border: 1px solid #5a4422; color: var(--amber); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.missed span { flex: 1; color: var(--text); }

.interrogation { border-color: #4a3a2c; background: linear-gradient(180deg, #221c18, var(--panel)); }
.interrogation h3 { display: flex; align-items: center; gap: 8px; }
.bubble { position: relative; }
.replay { float: left; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; margin: -2px 10px 4px 0; }
.replay .icon { width: 14px; height: 14px; }
.replay.playing { background: var(--amber); color: #1d1408; animation: pulse 1s infinite; }
[data-replay].btn.playing { border-color: var(--amber); color: var(--amber); }

.tape-progress { height: 4px; background: #3d352d; border-radius: 9px; overflow: hidden; margin: 0 0 14px; }
.tape-progress i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .3s; }

.deds { display: flex; flex-direction: column; gap: 12px; }
.ded { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ded > b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 10px; }
.ded.locked { display: flex; gap: 10px; align-items: center; color: var(--soft); border-style: dashed; background: transparent; font-size: 14px; }
.ded.solved { border-color: #3b5b38; background: #161f15; }
.ded .opt[disabled] { cursor: default; opacity: .65; }
.ded .opt.on[disabled] { opacity: 1; border-color: #6fa06a; box-shadow: inset 0 0 0 1px #6fa06a; background: #1d2b1c; }
.opt.wrong { border-color: #c4485a !important; background: #3a1820 !important; }
.ded-ok { color: #a6d4a2; margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.ded-msg { color: #ff9aa8; margin: 8px 0 0; min-height: 1em; font-size: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pop { animation: popin .4s; }
@keyframes popin { 50% { transform: scale(1.02); } }

.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ach { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; color: var(--soft); opacity: .6; }
.ach b { display: block; color: var(--text); }
.ach small { font-size: 13px; }
.ach.on { opacity: 1; border-style: solid; border-color: #6d5422; background: #2a2014; }
.ach.on b::before { content: "🏅 "; }

.vote-cta { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; background: var(--panel); border: 1px solid #5a4422; border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; max-width: 760px; }
.vote-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.vote-name { width: 120px; font-size: 14px; }
.vote-bar { flex: 1; height: 12px; background: var(--bg2); border-radius: 9px; overflow: hidden; }
.vote-bar i { display: block; height: 100%; border-radius: 9px; transition: width .6s; }
.vote-verdict { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.reveal-anim .stamp { animation: stampin .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes stampin { from { transform: rotate(-5deg) scale(2.2); opacity: 0; } }
.saved { display: block; margin: -6px 0 8px; }
.seg-big button { white-space: nowrap; }
@media (max-width: 420px) { .seg-big button { font-size: 13.5px; padding: 11px 4px; } .call-actions { gap: 50px; } }

/* Retratos dos personagens */
.avatar { overflow: hidden; }
.avatar.has-photo img, .call-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.has-photo { box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.avatar.lg.has-photo { width: 72px; height: 72px; }
.call-avatar { overflow: hidden; }
.call-avatar:has(img) { box-shadow: 0 0 0 3px rgba(227,172,79,.35); }
.victim { float: right; margin: -8px -6px 10px 16px; width: 120px; background: #fff; padding: 6px 6px 4px; transform: rotate(3deg); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.victim img { width: 100%; display: block; filter: grayscale(.35) sepia(.2); }
.victim figcaption { font-size: 11px; text-align: center; color: #444; margin-top: 4px; line-height: 1.2; }
@media (max-width: 520px) { .victim { width: 92px; } }
