:root {
  --paper: #fbf3e4;
  --paper2: #f3e6cc;
  --ink: #3b1f26;
  --ink2: #7a5a5f;
  --wine: #74303f;
  --wall: #f0dcc0;
  --wood: #a4643a;
  --wood2: #7d4526;
  --cloth: #fffaf1;
  --red: #d9483b;
  --green: #3e9b6a;
  --gold: #e2a73a;
  --r: 16px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #2b1c20; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
body.bare { background: var(--paper); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { display: block; width: 100%; height: 100%; }

/* ---------- mock chrome ---------- */
.chrome { color: #f3e6cc; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px 10px; max-width: 1100px; justify-content: center; align-items: center; font-size: 13px; }
.chrome h1 { font-size: 15px; margin: 0 8px 0 0; font-weight: 700; }
.seg { display: inline-flex; background: #ffffff14; border-radius: 10px; padding: 2px; }
.seg button { padding: 5px 10px; border-radius: 8px; color: #e9d7d9; }
.seg button.on { background: #f3e6cc; color: var(--ink); font-weight: 700; }
.chrome label { display: inline-flex; gap: 6px; align-items: center; }
.chrome select { font: inherit; border-radius: 8px; padding: 4px; }
.chrome .note { width: 100%; text-align: center; opacity: .75; font-size: 12.5px; max-width: 760px; line-height: 1.4; }
.chrome .note b { color: #fff; }
.stage { padding: 8px 0 40px; }
.device { position: relative; overflow: hidden; background: var(--paper); border-radius: 46px; box-shadow: 0 0 0 10px #111, 0 0 0 12px #444, 0 30px 80px #0008; container-type: inline-size; }
.device.iphone { width: 393px; height: 852px; }
.device.se { width: 375px; height: 667px; border-radius: 20px; }
.device.ipad { width: 1024px; height: 768px; border-radius: 24px; }
body.bare .chrome { display: none; }
body.bare .stage { padding: 0; width: 100%; height: 100%; }
body.bare .device { width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; }

/* ---------- app ---------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); }
.statusbar { height: 50px; flex: none; }
.device.se .statusbar { height: 22px; }
body.bare .statusbar { height: env(safe-area-inset-top, 0); }
.top { display: flex; align-items: center; gap: 8px; padding: 2px 14px 6px; flex: none; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); color: var(--wine); font-weight: 800; font-size: 17px; border: 2px solid #74303f22; }
.title { flex: 1; min-width: 0; }
.title .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-weight: 700; }
.title .t { font-family: ui-serif, "New York", Georgia, serif; font-weight: 700; font-size: 19px; color: var(--wine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.accuse { display: flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; height: 38px; border-radius: 19px; background: var(--paper2); color: #74303f88; font-weight: 800; font-size: 15px; border: 2px solid #74303f22; transition: all .2s; }
.accuse .lives { display: flex; gap: 3px; }
.accuse .lives i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.accuse .lives i.gone { opacity: .25; }
.accuse.ready { background: var(--wine); color: #fff4e4; border-color: var(--wine); box-shadow: 0 3px 0 #3b1f26; animation: nudge 2.4s infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: none } 90% { transform: rotate(-4deg) } 95% { transform: rotate(3deg) } }

.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.left { flex: none; }
.right { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- scene ---------- */
.scene { position: relative; margin: 0 12px; height: 178px; border-radius: 22px; overflow: hidden; border: 2.5px solid var(--ink); background: var(--wall); }
.scene .paper { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #0000 0 22px, #74303f10 22px 24px); }
.scene .lamp { position: absolute; top: -2px; width: 26px; height: 30px; }
.scene .lamp::before { content: ""; position: absolute; left: 12px; top: 0; width: 2px; height: 14px; background: var(--ink); }
.scene .lamp::after { content: ""; position: absolute; left: 3px; top: 13px; width: 20px; height: 11px; border-radius: 10px 10px 2px 2px; background: var(--gold); border: 2px solid var(--ink); box-shadow: 0 8px 22px 10px #ffd27a55; }
.seats { position: absolute; left: 4%; right: 4%; top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seat { position: relative; height: 112px; display: flex; justify-content: center; cursor: pointer; }
.chair { position: absolute; top: 8px; width: 70%; height: 100px; border-radius: 26px 26px 6px 6px; background: var(--wood); border: 2.5px solid var(--ink); }
.chair::after { content: ""; position: absolute; inset: 9px 9px 30px; border-radius: 16px 16px 4px 4px; background: #c5424a; border: 2px solid var(--ink); }
.seat .occ { position: absolute; top: 18px; width: 78px; height: 78px; z-index: 2; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.seat .occ svg { filter: drop-shadow(0 0 0 var(--ink)); }
.seat .occ .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); pointer-events: none; }
.seat.sel .chair { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--wine); }
.seat.hl .chair { box-shadow: 0 0 0 4px #ffe9a8, 0 0 18px 8px #ffd25c; }
.seat.drop .chair { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--green); }
.seat.bad .occ { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.tabletop { position: absolute; left: -2%; right: -2%; bottom: -8px; height: 66px; background: var(--cloth); border-top: 2.5px solid var(--ink); z-index: 3; }
.tabletop::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: repeating-linear-gradient(90deg, #c5424a 0 10px, #0000 10px 16px); opacity: .7; }
.mats { position: absolute; left: 4%; right: 4%; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 4; pointer-events: none; }
.mat { margin: 0 6px; height: 34px; border-radius: 10px; border: 2px solid #3b1f2633; display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 800; color: var(--ink2); font-size: 13px; background: #fff; }
.mat .n { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #fff; font-size: 11.5px; }
.mat.hl { border-color: var(--gold); background: #fff4cf; }
.mat.wrong { border-color: var(--red); background: #ffe1dc; }

/* ---------- guest tray ---------- */
.tray { display: flex; justify-content: space-between; gap: 4px; padding: 8px 16px 4px; }
.g { position: relative; width: 50px; text-align: center; cursor: grab; touch-action: none; }
.g .face { position: relative; width: 46px; height: 46px; margin: 0 auto; }
.g .face .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.g .nm { font-size: 11.5px; font-weight: 800; margin-top: 2px; color: var(--ink); }
.g.used .face { opacity: .3; filter: grayscale(.6); }
.g.used .nm { opacity: .45; }
.g .badge { position: absolute; top: -3px; right: -1px; width: 18px; height: 18px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.g.hl .face .ring { border-color: var(--gold); box-shadow: 0 0 0 3px #ffd25c; }
.g.pick .face { animation: bob .8s infinite alternate; }
@keyframes bob { to { transform: translateY(-4px) } }
.hint-line { text-align: center; font-size: 12px; color: var(--ink2); min-height: 16px; padding: 0 12px; }
.ghost { position: fixed; width: 64px; height: 64px; pointer-events: none; z-index: 999; transform: translate(-50%, -60%) scale(1.1) rotate(-6deg); filter: drop-shadow(0 8px 10px #0004); }
.ghost .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }

/* ---------- witnesses ---------- */
.wlabel { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 18px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-weight: 800; }
.wlabel span:last-child { text-transform: none; letter-spacing: 0; font-weight: 600; }
.wlist { flex: 1; overflow-y: auto; padding: 2px 12px 18px; display: flex; flex-direction: column; gap: 7px; }
.w { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: var(--r); background: #fff; border: 2px solid #3b1f2618; cursor: pointer; transition: border-color .15s, background .15s; }
.w .av { position: relative; flex: none; width: 44px; height: 44px; }
.w .av .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); }
.w .txt { flex: 1; font-size: 15.5px; line-height: 1.3; }
.w .who { font-size: 10.5px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.gn { font-weight: 800; white-space: nowrap; }
.gn i { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; border-radius: 50%; }
.w.focus { border-color: var(--wine); background: #fffaf2; }
.w.liar { background: #ffece8; border-color: var(--red); }
.w.trusted { background: #eef8f1; border-color: #3e9b6a77; }
.w .mark { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .04em; padding: 4px 8px; border-radius: 10px; }
.w.liar .mark { background: var(--red); color: #fff; }
.w.trusted .mark { background: var(--green); color: #fff; }
.w .check { position: absolute; left: 36px; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; border: 2px solid #fff; color: #fff; }
.check.t { background: var(--green); } .check.f { background: var(--red); } .check.u { background: #c9b9a7; }
.actions { display: flex; gap: 6px; padding: 0 0 2px 54px; }
.actions button { flex: 1; padding: 8px 0; border-radius: 12px; font-weight: 800; font-size: 14px; border: 2px solid; }
.actions .bl { border-color: var(--red); color: var(--red); }
.actions .bl.on { background: var(--red); color: #fff; }
.actions .bt { border-color: var(--green); color: var(--green); }
.actions .bt.on { background: var(--green); color: #fff; }
.wwrap { display: flex; flex-direction: column; gap: 6px; }
.liarbar { margin: 0 12px; }

/* concept B: carousel */
.carousel { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 6px 28px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.card { flex: none; width: calc(100% - 20px); scroll-snap-align: center; border-radius: 22px; background: #fff; border: 2.5px solid var(--ink); padding: 14px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; box-shadow: 0 4px 0 var(--ink); }
.card .big { width: 88px; height: 88px; position: relative; }
.card .big .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.card .who { font-weight: 800; color: var(--ink2); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.card .say { font-family: ui-serif, "New York", Georgia, serif; font-size: 21px; line-height: 1.3; }
.card .actions { padding: 0; width: 100%; margin-top: auto; }
.card.liar { background: #ffece8; border-color: var(--red); }
.card.trusted { background: #eef8f1; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 2px 0 10px; }
.dots button { width: 30px; height: 30px; border-radius: 50%; position: relative; opacity: .55; }
.dots button.on { opacity: 1; transform: scale(1.12); }
.dots button .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); }
.dots button.liar .ring { border-color: var(--red); border-width: 3px; }
.dots button.trusted .ring { border-color: var(--green); border-width: 3px; }

/* concept C: pictograms */
.pgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px 16px; align-content: start; }
.tile { position: relative; border-radius: 18px; background: #fff; border: 2px solid #3b1f2618; padding: 8px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.tile .head { display: flex; align-items: center; gap: 6px; width: 100%; }
.tile .head .av { width: 26px; height: 26px; position: relative; flex: none; }
.tile .head .av .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink); }
.tile .head .who { font-size: 10.5px; font-weight: 800; color: var(--ink2); text-transform: uppercase; flex: 1; letter-spacing: .04em; }
.tile.focus { border-color: var(--wine); }
.tile.liar { background: #ffece8; border-color: var(--red); }
.tile.trusted { background: #eef8f1; border-color: #3e9b6a77; }
.tile .mark { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 8px; }
.tile.liar .mark { background: var(--red); color: #fff; }
.tile.trusted .mark { background: var(--green); color: #fff; }
.pict { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; font-weight: 900; color: var(--wine); }
.pict .f { width: 38px; height: 38px; position: relative; }
.pict .f.s { width: 28px; height: 28px; }
.pict .f .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); }
.pict .op { font-size: 20px; }
.mini { display: flex; gap: 3px; padding: 4px; border-radius: 8px; background: var(--paper2); border: 2px solid var(--ink); }
.mini i { width: 12px; height: 16px; border-radius: 4px; background: #fff; border: 1.5px solid #3b1f2655; }
.mini i.on { background: var(--gold); border-color: var(--ink); }
.pict .home { font-size: 26px; }
.pict .cnt { font-size: 19px; padding: 2px 8px; border-radius: 10px; background: var(--wine); color: #fff; }
.focusbar { margin: 0 12px 4px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid var(--wine); }
.focusbar .say { font-size: 15.5px; line-height: 1.3; margin-bottom: 8px; }
.focusbar .actions { padding: 0; }

/* ---------- overlays ---------- */
.veil { position: absolute; inset: 0; z-index: 50; background: #3b1f2666; display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0 } }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; background: var(--paper); border-radius: 26px 26px 0 0; padding: 18px 20px 30px; animation: up .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(100%) } }
.sheet h2 { font-family: ui-serif, "New York", Georgia, serif; color: var(--wine); margin: 4px 0 8px; font-size: 24px; }
.sheet p { line-height: 1.45; margin: 6px 0; }
.btn { display: block; width: 100%; padding: 14px; border-radius: 16px; background: var(--wine); color: #fff4e4; font-weight: 800; font-size: 17px; margin-top: 12px; box-shadow: 0 3px 0 var(--ink); }
.btn.alt { background: var(--paper2); color: var(--wine); box-shadow: none; }
.lineup { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.lineup .f { width: 56px; height: 56px; position: relative; }
.lineup .f .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.lineup .f.liar .ring { border-color: var(--red); border-width: 3.5px; }
.toast { position: absolute; left: 14px; right: 14px; top: 104px; z-index: 40; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2.5px solid var(--red); box-shadow: 0 6px 20px #0003; animation: drop .3s cubic-bezier(.2, 1.4, .4, 1); font-size: 14.5px; line-height: 1.35; }
.toast b { color: var(--red); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0 } }

/* title card */
.titlecard { position: absolute; inset: 0; z-index: 60; background: var(--wine); color: #fff4e4; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; cursor: pointer; animation: fade .3s; }
.titlecard .k { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; opacity: .75; font-weight: 800; }
.titlecard h2 { font-family: ui-serif, "New York", Georgia, serif; font-size: 34px; margin: 10px 0 12px; }
.titlecard p { font-family: ui-serif, "New York", Georgia, serif; font-style: italic; font-size: 18px; opacity: .9; max-width: 300px; line-height: 1.4; }
.titlecard .tap { margin-top: 30px; font-size: 13px; opacity: .6; }
.titlecard .newclue { margin-top: 22px; background: #fff4e4; color: var(--ink); border-radius: 18px; padding: 12px 16px; max-width: 320px; }
.titlecard .newclue .k { color: var(--wine); opacity: 1; }
.titlecard .newclue .pict { margin: 6px 0; }
.titlecard .newclue div:last-child { font-size: 14.5px; }

/* result */
.result { position: absolute; inset: 0; z-index: 70; background: var(--paper); display: flex; flex-direction: column; align-items: center; padding: 60px 18px 24px; overflow-y: auto; animation: fade .3s; }
.result .stars { font-size: 34px; color: var(--gold); letter-spacing: 6px; margin: 4px 0; }
.result h2 { font-family: ui-serif, "New York", Georgia, serif; color: var(--wine); font-size: 28px; margin: 6px 0; }
.rlist { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rl { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: #fff; border: 2px solid #3b1f2618; opacity: 0; transform: translateY(8px); transition: all .3s; }
.rl.show { opacity: 1; transform: none; }
.rl .av { width: 40px; height: 40px; position: relative; flex: none; }
.rl .av .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); }
.rl .txt { flex: 1; font-size: 14px; }
.rl .v { font-weight: 900; font-size: 12px; padding: 3px 8px; border-radius: 9px; color: #fff; }
.rl .v.t { background: var(--green); } .rl .v.f { background: var(--red); }
.stamp { position: absolute; right: 50px; top: 50%; translate: 0 -50%; font-weight: 900; font-size: 26px; color: var(--red); border: 4px solid var(--red); border-radius: 8px; padding: 0 8px; rotate: -12deg; animation: stamp .35s cubic-bezier(.3, 1.8, .5, 1) both; background: #fff9; }
@keyframes stamp { from { transform: scale(2.6); opacity: 0 } }
.epi { font-family: ui-serif, "New York", Georgia, serif; font-style: italic; text-align: center; margin: 14px 6px 0; line-height: 1.45; color: var(--ink); opacity: 0; transition: opacity .5s; }
.epi.show { opacity: 1; }
.result .scene { width: 100%; margin: 6px 0 0; }

/* tutorial coach */
.coach-dim { position: absolute; z-index: 80; border-radius: 18px; box-shadow: 0 0 0 2000px #2a141acc; pointer-events: none; transition: all .35s cubic-bezier(.3, 1, .4, 1); }
.coach-dim.none { box-shadow: 0 0 0 2000px #2a141acc; width: 0; height: 0; left: 50%; top: 40%; }
.coach { position: absolute; z-index: 81; left: 14px; right: 14px; background: #fff; border-radius: 20px; padding: 12px 14px 12px; border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: flex; gap: 10px; animation: drop .3s cubic-bezier(.2, 1.4, .4, 1); }
.coach .av { width: 52px; height: 52px; flex: none; position: relative; }
.coach .av .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.coach .msg { flex: 1; font-size: 15.5px; line-height: 1.38; }
.coach .msg b { color: var(--wine); }
.coach .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.coach .row small { color: var(--ink2); font-weight: 700; }
.coach .next { padding: 7px 16px; border-radius: 12px; background: var(--wine); color: #fff; font-weight: 800; }
.coach .doit { color: var(--wine); font-weight: 800; font-size: 13.5px; }
.tut-block { position: absolute; inset: 0; z-index: 79; }

/* help sheet */
.rule { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.rule .pict { flex: none; width: 120px; justify-content: flex-start; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 20px; max-width: 1000px; }
.gcard { background: var(--paper); border-radius: 18px; padding: 12px; text-align: center; }
.gcard .faces { display: flex; gap: 4px; justify-content: center; }
.gcard .faces div { width: 52px; height: 52px; position: relative; }
.gcard .faces .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.gcard b { display: block; margin-top: 6px; }
.gcard small { color: var(--ink2); }

/* ---------- large screens ---------- */
@container (min-width: 700px) {
  .body { flex-direction: row; gap: 10px; padding: 0 10px 12px; }
  .left { flex: 1.1; display: flex; flex-direction: column; justify-content: center; }
  .right { flex: 1; background: #fff6; border-radius: 24px; padding-top: 4px; }
  .scene { height: 300px; }
  .seats { top: 40px; }
  .seat { height: 190px; }
  .chair { height: 180px; }
  .seat .occ { width: 130px; height: 130px; top: 30px; }
  .tabletop { height: 100px; }
  .mat { height: 46px; font-size: 16px; }
  .tray { justify-content: center; gap: 18px; padding-top: 18px; }
  .g { width: 64px; } .g .face { width: 60px; height: 60px; }
  .toast { left: auto; width: 400px; right: 20px; }
  .coach { left: auto; right: 20px; width: 420px; }
  .sheet { width: 520px; margin: 0 auto; border-radius: 26px; margin-bottom: 30px; }
  .veil { justify-content: center; }
  .result { padding-left: 25%; padding-right: 25%; }
}
.check.static { position: static; flex: none; }

/* ---------- round 3b: suspect / liar marks ---------- */
.mk { flex: none; width: 74px; height: 34px; border-radius: 12px; font-size: 11.5px; font-weight: 900; letter-spacing: .05em; border: 2px dashed #3b1f2655; color: #3b1f2688; background: #fff; transition: transform .12s; }
.mk:active { transform: scale(.92); }
.mk.suspect { border: 2px solid var(--gold); background: #fff3d1; color: #8a5a00; }
.mk.liar { border: 2px solid var(--red); background: var(--red); color: #fff; box-shadow: 0 2px 0 #8a2a22; rotate: -4deg; }
.w.suspect { background: #fffaf0; border-color: #e2a73a99; }
.w.liar { background: #ffece8; border-color: var(--red); }
.pict.sm { justify-content: flex-start; height: 30px; gap: 4px; margin: 2px 0 3px; }
.pict.sm .f { width: 26px; height: 26px; }
.pict.sm .f.s { width: 22px; height: 22px; }
.pict.sm .op { font-size: 15px; }
.pict.sm .mini i { width: 9px; height: 12px; }
.pict.sm .home { font-size: 19px; }
.pict.sm .cnt { font-size: 14px; padding: 1px 6px; }

/* ---------- round 3c: row variants ---------- */
.w { align-items: center; padding: 8px 8px 8px 6px; gap: 8px; }
.avcol { flex: none; width: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.avcol .av { position: relative; width: 42px; height: 42px; }
.avcol .av .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); }
.avcol .role { font-size: 9.5px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.w .check { left: 38px; }
.w .txt { font-size: 15.5px; }
.w .sub { font-size: 13px; color: var(--ink2); line-height: 1.25; }
.w .sub .gn { font-weight: 700; }
.pict.sm { height: 32px; margin: 0 0 2px; }
.iglyph { display: inline-block; vertical-align: -3px; margin-left: 2px; }
.iglyph .mini { padding: 2px 3px; gap: 2px; border-width: 1.5px; border-radius: 6px; }
.iglyph .mini i { width: 7px; height: 10px; border-radius: 2px; }
.iglyph.emo { font-size: 15px; vertical-align: -1px; }
.mk { width: 66px; }
.lineup { flex-wrap: wrap; }
.lineup .f { display: flex; flex-direction: column; align-items: center; }
.lineup .f .ring { height: 56px; }
.lineup .cap { font-size: 10px; font-weight: 800; color: var(--ink2); text-transform: uppercase; margin-top: 3px; }
.lineup.pickable .f { cursor: pointer; transition: transform .15s; }
.lineup.pickable .f.liar { transform: scale(1.15); }
.lineup .f.sus svg { animation: wobble 1.2s infinite; }
@keyframes wobble { 25% { transform: rotate(-5deg) } 75% { transform: rotate(5deg) } }
.btn.off { opacity: .35; pointer-events: none; }
.lineup { row-gap: 28px; margin-bottom: 26px; }

/* ---------- round 3d ---------- */
.avcol { width: 64px; }
.avcol .role { font-size: 10.5px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.w .check { left: 46px; }
.sglyph { display: inline-flex; gap: 2px; vertical-align: -4px; padding: 2px; border-radius: 7px; background: var(--paper2); border: 1.5px solid #3b1f2655; margin-left: 1px; }
.sglyph i { font-style: normal; width: 17px; height: 19px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #3b1f2677; background: #fff; }
.sglyph i.on { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lineup .f { width: 64px; } .lineup .f > svg, .lineup .f .ring { width: 56px; left: 4px; } .lineup .cap { white-space: nowrap; text-transform: none; font-size: 10.5px; }

/* ---------- round 3e ---------- */
.avcol.slim { width: 46px; }
.w .who { font-size: 10.5px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.w .sub { font-size: 15px; color: var(--ink); line-height: 1.28; }
.w .check { left: 30px; }
.seat .occ { width: 84px; height: 84px; top: 14px; }
/* split marker */
.mk2 { flex: none; display: flex; height: 34px; border-radius: 12px; overflow: hidden; border: 2px solid #3b1f2633; background: #fff; }
.mk2 .h { font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #3b1f2688; }
.mk2 .sus { width: 30px; border-right: 2px solid #3b1f2622; font-size: 14px; }
.mk2 .lie { width: 46px; }
.mk2 .sus.on { background: var(--gold); color: var(--ink); }
.mk2 .lie.on { background: var(--red); color: #fff; }
/* stamp */
.stampsrc { font-weight: 900; font-size: 12px; letter-spacing: .08em; color: var(--red); border: 2.5px solid var(--red); border-radius: 7px; padding: 3px 9px; rotate: -6deg; background: #fff; touch-action: none; cursor: grab; text-transform: none; box-shadow: 0 2px 0 #8a2a22; }
.stampsrc.armed { background: var(--red); color: #fff; animation: bob .6s infinite alternate; }
.stampsrc.used { opacity: .3; border-style: dashed; box-shadow: none; }
.stampghost { width: auto; height: auto; font-weight: 900; font-size: 18px; letter-spacing: .08em; color: var(--red); border: 3px solid var(--red); border-radius: 8px; padding: 2px 10px; background: #fffd; transform: translate(-50%, -50%) rotate(-10deg); }
.mk.stamped { border: 2.5px solid var(--red); background: #fff; color: var(--red); rotate: -8deg; box-shadow: none; font-size: 13px; letter-spacing: .08em; }
.wlist.armed .w { border-style: dashed; border-color: #d9483b88; }
.w.droplie { border-color: var(--red) !important; background: #ffece8; }
/* accuse lineup (rebuilt) */
.lineup { display: flex; flex-wrap: nowrap; gap: 0; justify-content: center; margin: 14px 0 6px; row-gap: 0; }
.lu { flex: 1 1 0; min-width: 0; max-width: 76px; display: flex; flex-direction: column; align-items: center; }
.lu .lf { position: relative; width: 48px; height: 48px; }
.lu .lf .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--ink); }
.lu.liar .lf { transform: scale(1.12); }
.lu.liar .lf .ring { border-color: var(--red); border-width: 3.5px; }
.lu .cap { font-size: 9.5px; font-weight: 700; color: var(--ink2); margin-top: 5px; white-space: nowrap; }
.lu.liar .cap { color: var(--red); font-weight: 900; }

/* bare (phone) mode: #root had no height, so the device collapsed to 0px */
body.bare #root { width: 100%; height: 100dvh; }
body.bare .stage { height: 100dvh; }
body.bare .device { height: 100dvh !important; }
body.bare .statusbar { height: max(env(safe-area-inset-top), 12px); }
body.bare .wlist { padding-bottom: max(env(safe-area-inset-bottom), 18px); }
