/* Tokens do Design System Impostor (impostor.lib.pen) */
:root {
  --bg: #120E24;
  --surface: #1D1738;
  --raised: #2A2250;
  --border: #3B3170;
  --text: #F4F0FF;
  --muted: #A79FCC;
  --on-light: #5B5390;
  --placeholder: #6E66A0;
  --clue: #FFC93C;
  --clue-shade: #C98A00;
  --clue-tint: #FFC93C1F;
  --imp: #FF3355;
  --imp-shade: #A8102F;
  --imp-tint: #FF33551F;
  --safe: #2EE6A6;
  --safe-shade: #0F9469;
  --safe-tint: #2EE6A61F;
  --ice: #3CC8FF;
  --ice-shade: #1478A8;
  --ice-tint: #3CC8FF1F;
  --dead: #57516F;
  --display: 'Lilita One', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }

.screen {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto;
  padding: calc(48px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.grow { flex: 1 1 0; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; text-align: center; }
.end { justify-content: flex-end; }
.full { width: 100%; }

/* Tipografia */
.h1 { font-family: var(--display); font-weight: 400; font-size: 32px; }
.sub { color: var(--muted); font-size: 15px; font-weight: 600; }
.small { color: var(--muted); font-size: 13px; font-weight: 600; }
.status { color: var(--muted); font-size: 13px; font-weight: 700; }
.label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.label.wide { letter-spacing: 1.6px; }
.mono { font-family: var(--mono); color: var(--muted); font-size: 13px; }

/* Botões */
.btn {
  --drop: 6px; --shade: var(--bg);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 23px 10px; /* padding do Pen menos a borda (no Pen o contorno fica por dentro) */
  border: 3px solid var(--bg); border-radius: 14px;
  font-family: var(--display); font-size: 20px; letter-spacing: .4px; line-height: 1.2;
  box-shadow: 0 var(--drop) 0 var(--shade);
  transition: transform .06s, box-shadow .06s;
}
.btn.lg { --drop: 8px; padding: 15px 33px 13px; font-size: 26px; }
.btn:active:not(:disabled) { transform: translateY(var(--drop)); box-shadow: 0 0 0 var(--shade); }
.btn.primary { background: var(--clue); color: var(--bg); --shade: var(--clue-shade); }
.btn.info { background: var(--ice); color: var(--bg); --shade: var(--ice-shade); }
.btn.confirm { background: var(--safe); color: var(--bg); --shade: var(--safe-shade); }
.btn.danger { background: var(--imp); color: var(--text); --shade: var(--imp-shade); }
.btn.ghost { background: var(--raised); border-color: var(--border); color: var(--text); }
.btn:disabled, .btn.off { background: var(--raised); border-color: var(--border); color: var(--muted); box-shadow: none; }
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--raised); border: 3px solid var(--border); box-shadow: 0 6px 0 var(--bg);
}
.icon-btn:active { transform: translateY(6px); box-shadow: none; }

/* Badges */
.badge {
  --c: var(--muted); --t: var(--raised);
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 8px; border-radius: 999px; border: 2px solid var(--c); background: var(--t);
  color: var(--c); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c)); }
.badge.clue { --c: var(--clue); --t: var(--clue-tint); }
.badge.ice { --c: var(--ice); --t: var(--ice-tint); }
.badge.safe { --c: var(--safe); --t: var(--safe-tint); }
.badge.imp { --c: var(--imp); --t: var(--imp-tint); }
.badges { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badges > div { display: flex; gap: 6px; }

/* Avatar: face (cor + formato) + rosto + chapéu (avatar.js). Tudo em em: o font-size do .av define o tamanho (1em = 1px em 56) */
.av { position: relative; flex: none; width: 56em; height: 56em; font-size: 1px; }
.av i, .av svg { position: absolute; display: block; box-sizing: border-box; overflow: visible; }
.av .face { inset: 0; background: var(--c); border: 3em solid var(--bg); box-shadow: inset -5em -6em 0 #0000002E, inset 4em 4em 0 #FFFFFF40; }
.av .part { left: 0; top: 0; width: 56em; height: 56em; }
.av .part i { transform-origin: top left; }
.av .hat { top: -22em; height: 32em; }
.av.wait .face { background: var(--border); box-shadow: none; }
.av.wait b { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(.08em); font-family: var(--display); font-weight: 400; font-size: 24em; color: var(--muted); }
.stack { display: flex; }
.stack .av + .av { margin-left: -20px; }

/* 01 Início */
.home { padding: calc(56px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom)); gap: 0; align-items: center; }
.hero { gap: 20px; justify-content: center; align-items: center; }
.hero .avs { display: flex; align-items: center; }
.hero .avs .av { margin: 0 -7px; }
.logo { font-family: var(--display); font-weight: 400; font-size: 64px; letter-spacing: 1px; line-height: 1.1; }
.slogan { color: var(--muted); font-size: 17px; font-weight: 700; }
.actions { gap: 14px; padding-bottom: 8px; }

/* Cabeçalho com voltar */
.head { gap: 14px; }
.head .h1 { font-size: 30px; }
.head .sub { font-size: 14px; }

/* 02 Opções */
.sect { gap: 10px; padding: 14px; border-radius: 22px; background: var(--surface); }
.sect .label { display: flex; align-items: center; gap: 8px; }
.sect .label .val { flex: 1; text-align: right; font-family: var(--mono); color: var(--text); font-weight: 400; letter-spacing: 0; text-transform: none; }
.opts { display: flex; gap: 8px; padding-bottom: 4px; }
.opt {
  flex: 1 1 0; height: 46px; border-radius: 14px; background: var(--raised); box-shadow: 0 4px 0 var(--bg);
  font-family: var(--display); font-size: 18px;
}
.opt.inf { font-family: var(--body); font-size: 24px; font-weight: 900; }
.opt.on { background: var(--clue); color: var(--bg); box-shadow: 0 4px 0 var(--clue-shade); }
.mode {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left;
  border-radius: 14px; background: var(--raised); border: 2px solid var(--border); color: var(--muted);
}
.mode.on { background: var(--clue-tint); border: 3px solid var(--clue); color: var(--clue); padding: 9px; }
.mode .t { font-family: var(--display); font-size: 20px; color: var(--text); }
.mode.on .t { color: var(--clue); }
.mode .ck { color: var(--border); }
.mode.on .ck { color: var(--clue); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); }
.seg button {
  flex: 1 1 0; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--display); font-size: 16px; color: var(--muted);
}
.seg button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.seg button.on { background: var(--c); color: var(--bg); }
.seg button.on::before { background: var(--bg); }

/* Campos */
.field { display: flex; flex-direction: column; gap: 8px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 14px; border: 3px solid var(--border); background: var(--bg);
  box-shadow: inset 0 4px 0 #00000059; color: var(--text); font: 800 18px var(--body); outline: none;
}
.field input::placeholder { color: var(--placeholder); }
.field input:focus { border-color: var(--clue); }
.field input.code { padding: 7px 13px; font: 400 30px var(--display); letter-spacing: 12px; text-transform: uppercase; }
.field.error input { border-color: var(--imp); }
.field.error .small { color: var(--imp); }

/* 03 Sala de espera */
.codebox { gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--surface); border: 2px solid var(--border); }
.codebox .code { font: 700 34px var(--mono); letter-spacing: 8px; color: var(--clue); }
.players { display: flex; flex-direction: column; gap: 6px; }
.player {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 11px 7px 7px; text-align: left;
  border-radius: 14px; border: 3px solid var(--border); background: var(--bg);
}
.player .name { font-size: 18px; font-weight: 900; }
.player .detail { color: var(--muted); font-size: 13px; font-weight: 600; }
.player.sel { background: var(--raised); border-color: var(--clue); box-shadow: 0 0 10px #FFC93C55; }
.player.out { opacity: .6; }
.player.wait .name { color: var(--muted); }
.dots { display: flex; }
.dots i { width: 16px; height: 16px; border-radius: 50%; outline: 2px solid var(--bg); outline-offset: -1px; }
.dots i + i { margin-left: -5px; }

/* Aviso / Dica de jogo */
.tip {
  display: flex; align-items: center; gap: 14px; padding: 9px 13px 9px 9px;
  border-radius: 14px; background: var(--raised); border: 3px solid var(--bg); box-shadow: 0 5px 0 var(--bg);
}
.tip::before { content: ''; flex: none; width: 6px; height: 44px; border-radius: 3px; background: var(--c, var(--clue)); }
.tip .t { font-family: var(--display); font-size: 18px; }
.tip .m { color: var(--muted); font-size: 14px; font-weight: 600; }

/* 04/05 Cartas */
.glow { background: radial-gradient(ellipse 70% 40% at 50% 45%, #FFC93C26, #120E2400); }
.glow.imp { background: radial-gradient(ellipse 70% 40% at 50% 45%, #FF335533, #120E2400); }
.stage { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.card {
  width: 264px; height: 352px; padding: 21px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 22px; border: 3px solid var(--bg); box-shadow: 0 8px 0 var(--bg); text-align: center;
}
.card .lbl { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.card.word { background: var(--text); color: var(--bg); transform: rotate(-2deg); }
.card.word .lbl, .card.word .note { color: var(--on-light); }
.card .big { max-width: 100%; font-family: var(--display); font-weight: 400; line-height: 1.05; overflow-wrap: normal; hyphens: none; }
.card .note { font-size: 13px; font-weight: 600; }
.card.imp { background: var(--imp); color: var(--text); transform: rotate(2deg); }
.card.imp .big { font-size: 40px; filter: drop-shadow(0 4px 0 var(--imp-shade)); }
.card.imp .hintbox { padding: 10px 16px; border-radius: 14px; background: var(--bg); border: 2px solid var(--clue); color: var(--clue); font-size: 18px; font-weight: 900; }
.card.back {
  background: repeating-linear-gradient(-37deg, var(--raised) 0 16px, var(--surface) 16px 32px);
  border-color: var(--border); transform: rotate(2deg); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.card.back .q { font: 400 88px/1 var(--display); color: var(--border); filter: drop-shadow(0 4px 0 var(--bg)); }
.card.back .lbl { color: var(--muted); }
.card.small { zoom: .76; }
.tap { touch-action: none; }

/* Barras */
.bar { position: relative; height: 18px; border-radius: 999px; border: 3px solid var(--border); background: var(--bg); }
.bar i { position: absolute; left: -3px; top: -3px; bottom: -3px; border-radius: 999px; background: var(--c, var(--clue)); transition: width .3s; }

/* 06 Votação */
.vhead { gap: 16px; align-items: center; }
.vhead .h1 { font-size: 34px; line-height: 36px; }
.timer { position: relative; width: 84px; height: 89px; }
.timer .track { position: absolute; inset: 0 0 5px; border-radius: 50%; background: var(--raised); border: 3px solid var(--bg); box-shadow: 0 5px 0 var(--bg); }
.timer .prog { position: absolute; left: 3px; top: 3px; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--c) var(--p), transparent 0); }
.timer .core { position: absolute; left: 12px; top: 12px; width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 400 26px var(--display); }
.timer .core.inf { font: 900 26px var(--body); }
.timer + .label { font-size: 11px; }

/* 07 Resultado */
.result { justify-content: space-between; align-items: center; padding-top: calc(52px + env(safe-area-inset-top)); gap: 16px; }
.spot { position: relative; width: 260px; height: 260px; flex: none; }
.spot > span { position: absolute; border-radius: 50%; }
.spot .r1 { inset: 0; border: 3px solid var(--raised); }
.spot .r2 { inset: 30px; background: var(--surface); border: 3px solid var(--border); }
.spot .r3 { inset: 60px; background: var(--imp-tint); border: 3px solid var(--imp); }
.spot .av { position: absolute; left: 82px; top: 82px; }
.spot .chip { position: absolute; left: 50%; top: 206px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--bg); border: 2px solid var(--border); font: 700 12px var(--mono); white-space: nowrap; }
.spot .chip .dots i { width: 14px; height: 14px; }
.reveal-title { font-family: var(--display); font-size: 36px; line-height: 38px; }
.msg { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 22px; }
.panel { gap: 12px; padding: 11px 13px; border-radius: 22px; background: var(--surface); border: 3px solid var(--border); }

/* 08/09 Fim */
.win { gap: 14px; }
.win > * { position: relative; }
.confetti i { position: absolute; width: 10px; height: 16px; border-radius: 3px; transform-origin: top left; }
.blob { position: absolute; left: -80px; top: -140px; width: 550px; height: 420px; border-radius: 50%; background: var(--imp-tint); }
.headline { font-family: var(--display); font-weight: 400; text-align: center; }
.box { border-radius: 22px; background: var(--surface); border: 3px solid var(--border); box-shadow: 0 6px 0 var(--bg); }
.box .who { gap: 16px; padding: 13px; }
.box .who .nm { font-family: var(--display); font-size: 30px; }
.box hr { border: 0; height: 3px; background: var(--border); }
.box .wordrow { gap: 12px; padding: 11px 13px; justify-content: space-between; }
.minicard { padding: 5px 11px; border-radius: 8px; border: 3px solid var(--bg); background: var(--clue); color: var(--bg); box-shadow: 0 4px 0 var(--clue-shade); font: 400 22px var(--display); transform: rotate(3deg); text-align: center; }
.stat { --c: var(--safe); gap: 14px; padding: 15px 15px 13px; border-radius: 22px; background: color-mix(in srgb, var(--c) 12%, transparent); border: 3px solid var(--c); }
.stat.imp { --c: var(--imp); }
.stat .phrase { font-size: 16px; font-weight: 800; }
.stat .n { font: 400 56px/56px var(--display); color: var(--c); }
.stat .u { font: 400 28px var(--display); color: var(--c); padding-bottom: 8px; }
.stat hr { border: 0; height: 2px; background: var(--c); opacity: .35; }
/* 08B/09B: tom triste e frio */
.win.lose { background: linear-gradient(180deg, #3CC8FF1A 0%, #120E2400 45%); }
.stat.sad { --c: var(--ice); background: var(--surface); border-color: var(--border); }
.stat.sad .phrase { color: var(--muted); }
.stat.sad hr { background: var(--border); }
.minicard.sad { background: var(--raised); border-color: var(--border); color: var(--text); }
.minicard { flex: none; }
.stat .mini { display: flex; gap: 8px; }
.stat .mini div { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.stat .mini b { font: 700 20px var(--mono); }
.stat .mini span { color: var(--muted); font-size: 12px; font-weight: 700; }

/* Toast e diálogo */
#toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); z-index: 10; width: min(390px, calc(100% - 32px)); transform: translate(-50%, -150%); transition: transform .25s; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); }
#dialog { margin: auto; width: min(390px, calc(100% - 32px)); max-height: 85dvh; padding: 24px 20px 20px; border-radius: 22px; border: 3px solid var(--border); background: var(--surface); color: var(--text); }
#dialog::backdrop { background: #120E24CC; }
#dialog h2 { font: 400 26px var(--display); margin-bottom: 12px; }
#dialog p, #dialog li { color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.45; }
#dialog ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
#dialog strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Telas novas (Jogo Impostor.pen: 00–00H, 01, 01B, 02, 02B–02D) ===== */
.auth { gap: 24px; align-items: center; padding-top: calc(64px + env(safe-area-inset-top)); padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.avs { display: flex; align-items: center; }
.avs .av { margin: 0 -7px; }
.btn.social { gap: 12px; }
.divider { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.divider i { flex: 1; height: 2px; border-radius: 1px; background: var(--border); }
.input-row { position: relative; display: block; }
.input-row .eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
.input-row:has(.eye) input { padding-right: 48px; }
.input-row .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--placeholder); font: 800 18px var(--body); }
.input-row:has(.prefix) input { padding-left: 34px; }
.input-row > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.field.okay input { border-color: var(--safe); }
.field.okay .small { color: var(--safe); }
.field .small .link { font-size: 13px; }
.link { color: var(--clue); font: 900 15px var(--body); }
.link.ice { color: var(--ice); font-weight: 800; font-size: 14px; }
.foot { gap: 6px; color: var(--muted); font-size: 15px; font-weight: 700; justify-content: center; flex-wrap: wrap; }
.badge.clue-dark { --c: var(--clue); --t: var(--raised); }
.mailcard { gap: 10px; padding: 8px 0; }
.mailicon { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--clue); border: 3px solid var(--bg); box-shadow: 0 6px 0 var(--clue-shade); }
.reqs { list-style: none; padding: 0; margin: -6px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.reqs li { display: flex; align-items: center; gap: 8px; }
.reqs li.ok { color: var(--safe); }
.waitcard { gap: 14px; width: 100%; padding: 16px; border-radius: 22px; background: var(--surface); border: 3px dashed var(--border); }
.waitcard .t { font: 400 18px var(--display); }
.chosen { gap: 12px; padding: 24px 16px 20px; border-radius: 22px; background: var(--surface); border: 3px solid var(--border); }
.chosen .nm { font: 400 28px var(--display); letter-spacing: .4px; overflow-wrap: anywhere; text-align: center; }
.swatches { display: flex; justify-content: space-between; }
.swatch { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; }
.swatch i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background: var(--c); }
.swatch.on { border: 3px solid var(--text); }
.swatch.on i { width: 26px; height: 26px; }
.chipbtn { padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--text); font: 800 14px var(--body); }

/* 01 Início: parede da linha de suspeitos */
.home2 { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); gap: 0; }
.topo { padding: calc(52px + env(safe-area-inset-top)) 24px 4px; align-items: center; }
.wall { position: relative; height: 440px; width: 100%; overflow: hidden; cursor: pointer; }
.wall .spot { position: absolute; left: calc(50% - 160px); top: 76px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(ellipse 50% 50% at 50% 50%, #FFC93C30 0%, #FFC93C00 100%); }
.ruler { position: absolute; left: 0; right: 0; height: 2px; background: #3B317088; }
.ruler.strong { height: 3px; background: var(--border); }
.height { position: absolute; left: 16px; font: 700 11px var(--mono); color: var(--placeholder); }
.wall-slogan { position: absolute; top: 8px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 16px; font-weight: 800; }
.ghost-suspect { position: absolute; top: 252px; opacity: .5; transform-origin: top left; }
.wall .floor { position: absolute; left: 0; right: 0; top: 386px; height: 54px; background: var(--surface); border-top: 3px solid var(--border); }
.wall .shadow { position: absolute; left: calc(50% - 75px); top: 370px; width: 150px; height: 20px; border-radius: 50%; background: #00000066; }
.hero-suspect { position: absolute; left: calc(50% - 85px); top: 178px; }
.plate { position: absolute; left: 50%; top: 334px; transform: translateX(-50%) rotate(-3deg); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px 10px; border-radius: 8px; background: #0B0818; border: 3px solid var(--muted); box-shadow: 0 6px 0 #00000080; }
.plate .no { font: 700 11px var(--mono); letter-spacing: 1.5px; color: var(--clue); }
.plate .nick { font: 700 28px var(--mono); letter-spacing: 3px; color: var(--text); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 14px 24px 0; }
.custom-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--surface); border: 3px solid var(--border); filter: drop-shadow(0 4px 0 var(--bg)); text-align: left; }
.custom-btn .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--clue); border: 3px solid var(--bg); flex: none; }
.custom-btn .t { font: 400 19px var(--display); letter-spacing: .4px; }
.custom-btn .s { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }

/* 01B Ficha do suspeito */
.idwall { position: relative; height: 232px; border-radius: 22px; background: var(--surface); border: 3px solid var(--border); box-shadow: 0 6px 0 #00000066; overflow: hidden; }
.idwall .ruler { background: #3B317080; height: 1px; }
.idwall .ruler.strong { background: var(--border); height: 2px; }
.idwall .height { left: 12px; font-size: 10px; letter-spacing: .5px; }
.idwall .reg { position: absolute; left: 12px; top: 12px; font: 700 10px var(--mono); letter-spacing: 1px; color: var(--muted); }
.idwall .floor { position: absolute; left: 0; right: 0; top: 204px; height: 28px; background: #0000003D; }
.idsuspect { position: absolute; left: calc(50% - 60px); top: 50px; }
.plate.light { top: 96px; background: var(--text); border-color: var(--bg); box-shadow: 0 4px 0 #00000080; padding: 6px 10px; transform: translateX(-50%) rotate(-2deg); }
.plate.light .no { color: var(--on-light); font-size: 10px; letter-spacing: 1.2px; }
.plate.light .nick { color: var(--bg); font-size: 26px; max-width: 220px; }
.dossier { padding: 10px 12px 12px; border-radius: 22px; background: var(--surface); border: 3px solid var(--border); box-shadow: 0 6px 0 #00000066; }
.dhead { padding: 0 2px 6px; }
.dhead .t { font: 400 16px var(--display); letter-spacing: .6px; }
.stamp { font: 700 10px var(--mono); letter-spacing: 1.5px; color: var(--imp); }
.tabs { display: flex; align-items: flex-end; gap: 4px; }
.tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border-radius: 10px 10px 0 0; background: var(--raised); color: var(--muted); font: 900 13px var(--body); }
.tab.on { height: 38px; background: var(--clue); color: var(--bg); }
.sheet-body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 3px solid var(--clue); margin-top: -1.5px; }
.reg2 { padding: 0 2px; font: 700 10px var(--mono); letter-spacing: 1.2px; color: var(--muted); }
.reg2 span:last-child { color: var(--placeholder); }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 14px; background: var(--surface); border: 3px solid var(--border); }
.pick.on { background: var(--raised); border-color: var(--clue); filter: drop-shadow(0 4px 0 var(--clue-shade)); }
.pick .look { display: grid; place-items: center; width: 56px; height: 56px; }
.pick .nm { font: 900 12px var(--body); color: var(--muted); text-align: center; }
.pick.on .nm { color: var(--clue); }
.pick .check { position: absolute; left: 5px; top: 5px; z-index: 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--clue); border: 2px solid var(--bg); }
.only-hat .face, .only-hat .part:not(.hat) { display: none !important; }
.only-hat .hat { top: 12em !important; }
.lockbox { gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); }
.lockbox .lk { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 16px; background: var(--imp-tint); border: 2px solid var(--imp); }
.lockbox b { font-size: 13px; font-weight: 900; }
.lockbox span span { color: var(--muted); font-size: 11px; font-weight: 600; }

/* 02 Criar sala: nome, visibilidade, categoria */
.vis { flex: 1 1 0; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--raised); border: 2px solid var(--border); color: var(--muted); text-align: left; }
.vis .t { font: 400 18px var(--display); color: var(--text); }
.vis.on { background: var(--clue-tint); border: 3px solid var(--clue); color: var(--clue); padding: 9px; }
.vis.on .t { color: var(--clue); }
.cats { gap: 6px; }
.cat { flex: 1 1 0; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; background: var(--raised); box-shadow: 0 4px 0 var(--bg); font: 900 12px var(--body); color: var(--text); }
.cat.on { background: var(--clue); color: var(--bg); box-shadow: 0 4px 0 var(--clue-shade); }
.sticky-cta { position: sticky; bottom: 0; margin: 0 -20px -32px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(#120E2400, var(--bg) 30%); z-index: 3; }

/* 02B Procurar sala */
.codecard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 22px; background: var(--surface); border: 2px solid var(--ice); text-align: left; }
.codecard .ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ice); box-shadow: 0 4px 0 var(--ice-shade); }
.codecard .t { font: 400 20px var(--display); }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--raised); color: var(--text); font: 800 14px var(--body); }
.fchip .mono { font-size: 12px; font-weight: 700; color: var(--muted); }
.fchip.on { background: var(--clue); color: var(--bg); box-shadow: 0 3px 0 var(--clue-shade); }
.fchip.on .mono { color: var(--bg); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--safe); }
.roomcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); text-align: left; }
.roomcard.private { border-color: var(--clue); }
.roomcard .nm { font: 900 17px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomcard .rules { font-size: 11px; }
.roomcard .count .mono { font-size: 14px; font-weight: 700; color: var(--text); }
.roomcard .go { padding: 5px 10px; border-radius: 999px; background: var(--safe); color: var(--bg); font: 900 11px var(--body); letter-spacing: 1px; }
.roomcard .go.code { background: var(--clue); }
.empty { color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; padding: 24px 8px; }

/* 02D Folha de código da sala privada */
.scrim { position: fixed; inset: 0; z-index: 20; background: #0A0718C7; }
.bsheet { position: fixed; z-index: 21; left: 50%; bottom: 0; transform: translateX(-50%); width: min(430px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--surface); border-top: 3px solid var(--border); box-shadow: 0 -8px 24px #00000080; }
.bsheet .handle { width: 44px; height: 5px; border-radius: 3px; background: var(--border); }
.bsheet .player { width: 100%; }
.bsheet .field { width: 100%; }
.lockbig { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--clue); border: 3px solid var(--bg); box-shadow: 0 4px 0 var(--clue-shade); }
.codefield input { text-align: center; font: 400 36px var(--display); letter-spacing: 20px; padding: 9px 13px 7px 33px; text-transform: uppercase; }
.codefield.big input { font-size: 44px; letter-spacing: 22px; padding: 13px 13px 9px 35px; }
.codefield input:focus { box-shadow: inset 0 4px 0 #00000059, 0 0 12px #FFC93C40; }
.keyic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--clue-tint); border: 2px solid var(--clue); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen:has(.sticky-cta) { overflow: visible; } /* o botão fixo do rodapé precisa que a tela não corte o conteúdo */
