/* ───────────── Kinly Quest — shared styles ───────────── */
:root {
  --bg: #100d0b;
  --bg2: #1a1512;
  --ink: #efe6d2;
  --muted: #a89c86;
  --accent: #c9a24a;
  --accent-ink: #1a1307;
  --paper: #efe4cc;
  --paper-ink: #2a2118;
  --line: rgba(239, 230, 210, 0.14);
  --ok: #6fcf8e;
  --bad: #e5675a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-typed: 'Courier Prime', 'Courier New', monospace;
  --font-hand: 'Kalam', 'Bradley Hand', 'Segoe Print', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  /* vignette + faint grain for a tactile feel */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.7), transparent 60%);
}
#app { position: relative; z-index: 1; min-height: 100%; }
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; margin: 0 0 0.4em; line-height: 1.15; }
p { margin: 0 0 0.8em; }
em { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────────── buttons ───────────── */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 0.75em 1.2em;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background 0.2s, border-color 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  text-decoration: none;
  touch-action: manipulation;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .tile:focus-visible, .wheel button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, white 12%), var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { font-size: 1.15em; padding: 0.9em 1.6em; min-height: 58px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0.4em 0.9em; font-size: 0.85em; }
.iconbtn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

input[type='text'], select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8em 1em;
  min-height: 52px;
  font-size: 1.1em;
  outline: none;
}
input[type='text']:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9em; color: var(--muted); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1em 1.2em;
  box-shadow: var(--shadow);
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 0.2em 0.7em; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8em; font-weight: 600; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--ok); }
.dot.off { background: #666; }

/* ───────────── brand / home ───────────── */
.brand { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.95em; color: var(--accent); }
.brand svg { width: 1.8em; height: 1.8em; }
.home { max-width: 980px; margin: 0 auto; padding: 6vh 22px 60px; }
.home-hero { text-align: center; margin-bottom: 6vh; }
.home-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0.4em 0 0.2em; }
.home-hero p { color: var(--muted); font-size: 1.15em; max-width: 36em; margin: 0 auto; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.home-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; transition: transform 0.2s, border-color 0.2s; }
.home-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.home-card h3 { font-size: 1.4em; margin: 0; }
.home-card .ico { width: 54px; height: 54px; color: var(--accent); }
.home-join { display: flex; gap: 10px; margin-top: 4px; }
.home-join input { text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-weight: 700; }
.foot { margin-top: 6vh; text-align: center; color: var(--muted); font-size: 0.85em; }

/* ───────────── board blocks (shared by TV + phones) ───────────── */
.blocks { display: flex; flex-direction: column; gap: 0.9em; }
.blk-text { font-size: 1.05em; }
.blk-svg { margin: 0; text-align: center; }
.blk-svg svg { width: 100%; height: auto; max-height: 62vh; display: block; margin: 0 auto; border-radius: 10px; }
.blk-svg figcaption, .blk-cap { font-size: 0.85em; color: var(--muted); margin-top: 0.4em; text-align: center; font-style: italic; }
.note {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 4px;
  padding: 1.1em 1.3em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(120, 90, 40, 0.18);
  white-space: pre-line;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05em;
  line-height: 1.55;
  transform: rotate(-0.4deg);
}
.note em { color: #7a3b16; }
.note .note-title { font-family: var(--font-ui); font-size: 0.7em; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.6; margin-bottom: 0.5em; display: block; }
.note.hand { font-family: var(--font-hand); font-size: 1.25em; line-height: 1.5; }
.note.typed { font-family: var(--font-typed); background: #f3eee2; transform: rotate(0.3deg); }
.note.telegram { font-family: var(--font-typed); background: #e9dcb6; text-transform: uppercase; letter-spacing: 0.04em; border-top: 6px solid #b4462e; }
.note.screen { font-family: var(--font-typed); background: #07140f; color: #7cf2b0; box-shadow: inset 0 0 40px rgba(60, 255, 160, 0.12), 0 10px 30px rgba(0,0,0,.5); transform: none; text-shadow: 0 0 6px rgba(124, 242, 176, 0.5); }
.blk-grid { overflow-x: auto; text-align: center; }
.blk-grid table { margin: 0 auto; border-collapse: collapse; font-family: var(--font-typed); font-weight: 700; }
.blk-grid td { width: 1.9em; height: 1.9em; text-align: center; border: 1px solid var(--line); font-size: 1.15em; }
.blk-table { overflow-x: auto; }
.blk-table table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.blk-table th, .blk-table td { padding: 0.45em 0.6em; border-bottom: 1px solid var(--line); text-align: left; }
.blk-table th { color: var(--accent); font-weight: 600; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.06em; }
.blk-list { margin: 0; padding-left: 1.3em; }
.blk-list li { margin: 0.2em 0; }

/* ───────────── phone app ───────────── */
.phone { max-width: 620px; margin: 0 auto; padding: 0 16px 120px; min-height: 100vh; }
.phone-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; margin: 0 -16px 8px; padding-inline: 16px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.phone-top .title { font-family: var(--font-display); font-weight: 600; font-size: 1.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.04em; }
.timer.over { color: var(--bad); }
.timer.low { color: #f0b04a; }
.screen-center { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.big-code { font-family: var(--font-display); font-size: 3.2em; letter-spacing: 0.25em; font-weight: 700; color: var(--accent); text-align: center; }
.qr-box { background: #fff; padding: 12px; border-radius: 14px; width: min(240px, 70vw); margin: 0 auto; }
.qr-box svg, .qr-box img { width: 100%; height: auto; display: block; }

.plist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plist li { display: inline-flex; align-items: center; gap: 8px; padding: 0.35em 0.8em; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-weight: 600; }
.plist li .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: 1.1em; }
.swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.puzzle-list { display: flex; flex-direction: column; gap: 10px; }
.puzzle-item {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); cursor: pointer; min-height: 70px;
}
.puzzle-item .pi-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.3); color: var(--accent); }
.puzzle-item .pi-title { font-family: var(--font-display); font-size: 1.15em; font-weight: 600; }
.puzzle-item .pi-sub { font-size: 0.82em; color: var(--muted); }
.puzzle-item.locked { opacity: 0.45; cursor: default; }
.puzzle-item.solved { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.puzzle-item.solved .pi-ico { color: var(--ok); }
.puzzle-item.private-flag .pi-title::after { content: ' ✦'; color: var(--accent); font-size: 0.8em; }

.fragment {
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: var(--radius); padding: 14px; background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.fragment-h { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; font-weight: 700; }
.hintbox { border-left: 3px solid var(--accent); padding: 8px 12px; background: rgba(0,0,0,.25); border-radius: 0 10px 10px 0; margin: 6px 0; }
.hintbox b { color: var(--accent); font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; display: block; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.tabs-inner { display: flex; gap: 6px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 999px; padding: 5px; backdrop-filter: blur(8px); max-width: 620px; width: 100%; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 8px; border-radius: 999px; font-weight: 600; font-size: 0.9em; cursor: pointer; color: var(--muted); min-height: 44px; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); }
.tabs .badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 0.75em; margin-left: 4px; }

.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.inv-item { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.inv-item .inv-art { height: 60px; display: grid; place-items: center; margin-bottom: 6px; }
.inv-item .inv-art svg { max-height: 60px; width: auto; }
.inv-item b { display: block; font-family: var(--font-display); }
.inv-item span { font-size: 0.82em; color: var(--muted); }

/* ───────────── widgets ───────────── */
.widget { margin-top: 18px; }
.widget-prompt { font-weight: 600; margin-bottom: 10px; }
.lock { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px 10px; border-radius: 18px; background: linear-gradient(180deg, #2a241d, #17130f); border: 1px solid rgba(201,162,74,.35); box-shadow: inset 0 2px 12px rgba(0,0,0,.6); }
.wheel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wheel button { width: 54px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.07); cursor: pointer; font-size: 1.1em; color: var(--accent); touch-action: manipulation; }
.wheel button:active { background: rgba(255,255,255,.16); }
.wheel .face {
  width: 54px; height: 66px; display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(180deg, #0c0a08, #3a3128 18%, #4a3f33 50%, #3a3128 82%, #0c0a08);
  font-family: var(--font-display); font-size: 1.9em; font-weight: 700; color: #f6e7c2;
  text-shadow: 0 1px 0 #000; overflow: hidden; user-select: none; touch-action: none; cursor: ns-resize;
}
.wheel .face.sym { font-size: 1.6em; }
.wheel .face svg { width: 34px; height: 34px; }
.lock.many .wheel button, .lock.many .wheel .face { width: 42px; }
.lock.many .wheel .face { font-size: 1.5em; }

.textin { display: flex; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tile {
  border: 2px solid var(--line); background: rgba(255,255,255,.04); border-radius: 14px; padding: 12px;
  cursor: pointer; text-align: center; font-weight: 600; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background .15s, transform .1s; touch-action: manipulation;
}
.tile svg { width: 100%; max-height: 120px; }
.tile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tile:active { transform: scale(.97); }
.tile .ord { position: absolute; }
.seq-picked { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; min-height: 52px; padding: 10px; border-radius: 14px; border: 1px dashed var(--line); }
.seq-picked .tile { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 48px; }
.seq-picked .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .85em; flex: none; }
.seq-picked .tile svg { width: 64px; flex: none; }
.gridin { display: grid; gap: 6px; margin: 0 auto; max-width: 420px; }
.gridin button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; font-size: .8em; color: var(--muted); padding: 0; touch-action: manipulation; }
.gridin button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); border-color: transparent; }
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; position: relative; }
.connect .col { display: flex; flex-direction: column; gap: 10px; }
.connect .tile { min-height: 54px; position: relative; z-index: 1; }
.connect .tile.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.connect svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.submit-row { display: flex; gap: 10px; margin-top: 16px; }
.submit-row .btn.primary { flex: 1; }

.shake { animation: shake .45s; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.flash-ok { animation: flashok .9s; }
@keyframes flashok { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 142, .8); } 100% { box-shadow: 0 0 0 30px rgba(111, 207, 142, 0); } }

/* ───────────── toast + overlay ───────────── */
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: rgba(20, 16, 13, .96); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: toastin .25s ease-out; pointer-events: auto; text-align: center; }
.toast.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 90; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { max-width: 460px; width: 100%; }
@keyframes fade { from { opacity: 0; } }

/* ───────────── narration ───────────── */
.narration { max-width: 34em; margin: 0 auto; font-family: var(--font-display); font-size: 1.25em; line-height: 1.65; }
.narration p { opacity: 0; transform: translateY(8px); animation: rise .9s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.chapter { font-size: 0.8em; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-weight: 700; font-family: var(--font-ui); }

/* ───────────── TV board ───────────── */
.tv { height: 100vh; display: flex; flex-direction: column; font-size: calc(clamp(17px, 1.32vw, 36px) * var(--tv-scale, 1)); overflow: hidden; }
.tv-top { display: flex; align-items: center; gap: 1.2em; padding: 0.9em 1.6em; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.tv-top .room-title { font-family: var(--font-display); font-size: 1.5em; font-weight: 600; }
.tv-top .timer { font-size: 2em; }
.tv-main { flex: 1; display: flex; min-height: 0; }
.tv-stage { flex: 1; padding: 1.2em 1.6em; display: grid; gap: 1.2em; min-height: 0; overflow: hidden; }
.tv-stage.n1 { grid-template-columns: 1fr; }
.tv-stage.n2 { grid-template-columns: 1fr 1fr; }
.tv-stage.n3 { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; }
.tv-stage.n3 > :first-child { grid-row: span 2; }
.tv-stage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tv-stage.n5, .tv-stage.n6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ptile { position: relative; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); padding: 1em 1.2em; overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: .7em; scrollbar-width: thin; }
.ptile h3 { font-size: 1.35em; margin: 0; display: flex; align-items: center; gap: .5em; }
.ptile .who { display: flex; gap: .4em; flex-wrap: wrap; }
.ptile .who .pill { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: transparent; }
.private-pill { align-self: flex-start; font-size: .68em; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: -.4em; }
.ptile.overflowing::after { content: 'Click to expand ↓'; position: sticky; bottom: -1em; margin: auto -1.2em -1em; padding: 1.6em 1em .5em; text-align: center; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: linear-gradient(0deg, var(--bg2) 55%, transparent); pointer-events: none; }
.ptile .blocks { font-size: 1em; }
.ptile .blk-svg svg { max-height: none; }
.ptile.zoom { position: fixed; inset: 3vh 3vw; z-index: 80; background: var(--bg2); box-shadow: 0 0 0 100vmax rgba(0,0,0,.7); }
.tv-side { width: 21em; border-left: 1px solid var(--line); padding: 1.2em; display: flex; flex-direction: column; gap: 1em; overflow: auto; background: rgba(0,0,0,.18); }
.tv-side h4 { margin: 0; font-size: .75em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.strip { display: flex; flex-direction: column; gap: .5em; }
.strip-item { display: flex; align-items: center; gap: .6em; padding: .55em .75em; border-radius: 12px; border: 1px solid var(--line); font-size: .9em; }
.strip-item.solved { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.strip-item.locked { opacity: .5; }
.strip-item.open { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tv-side .inv { grid-template-columns: 1fr 1fr; }
.feed { font-size: .85em; color: var(--muted); display: flex; flex-direction: column; gap: .3em; }

.tv-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3vh 6vw; text-align: center; gap: 1.2em; overflow: auto; }
.tv-center .narration { text-align: left; font-size: 1.5em; }
.tv-center h1 { font-size: 3.2em; }

.lobby-tv { flex: 1; display: grid; grid-template-columns: minmax(18em, 26em) 1fr; gap: 2em; padding: 2em 2.4em; min-height: 0; }
.lobby-join { display: flex; flex-direction: column; gap: 1em; align-items: center; justify-content: center; text-align: center; }
.lobby-join .big-code { font-size: 4.4em; }
.lobby-join .qr-box { width: 15em; }
.lobby-join .url { font-size: 1.1em; color: var(--muted); }
.lobby-join .url b { color: var(--ink); }
.lobby-setup { display: flex; flex-direction: column; gap: 1.1em; min-height: 0; overflow: auto; padding-right: .4em; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 1em; }
.theme-card { position: relative; text-align: left; cursor: pointer; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: var(--tc-bg, #1a1512); color: var(--tc-ink, var(--ink)); padding: 0; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.theme-card:hover { transform: translateY(-2px); }
.theme-card.on { border-color: var(--tc-accent, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-accent, var(--accent)) 40%, transparent); }
.theme-card .tc-cover { aspect-ratio: 4 / 2.2; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--tc-accent) 35%, transparent), transparent 60%), var(--tc-bg); display: grid; place-items: center; overflow: hidden; }
.theme-card .tc-cover svg { width: 100%; height: 100%; object-fit: cover; }
.theme-card .tc-cover .tc-mono { font-family: var(--font-display); font-size: 3em; color: var(--tc-accent); opacity: .85; }
.theme-card .tc-body { padding: .8em 1em 1em; }
.theme-card .tc-title { font-family: var(--font-display); font-size: 1.2em; font-weight: 600; }
.theme-card .tc-tag { font-size: .85em; opacity: .75; }
.theme-card .tc-meta { font-size: .75em; margin-top: .5em; color: var(--tc-accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: .45em .95em; cursor: pointer; font-weight: 600; color: var(--muted); min-height: 38px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.setting { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.setting > span { min-width: 6em; color: var(--muted); font-size: .9em; }
.teams-tv { display: grid; grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); gap: 1em; }
.team-col { border-radius: 14px; border: 1px solid var(--line); padding: .8em; border-top: 4px solid var(--tcolor); }
.team-col h4 { margin: 0 0 .5em; color: var(--tcolor); font-family: var(--font-display); font-size: 1.15em; }

.score { flex: 1; padding: 2em 3em; display: grid; gap: 1.2em; align-content: center; }
.score-row { display: grid; grid-template-columns: 10em 1fr 8em; align-items: center; gap: 1.2em; font-size: 1.3em; }
.score-row .bar { height: 1.2em; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.score-row .bar i { position: absolute; inset: 0 auto 0 0; background: var(--tcolor); border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.score-row .tname { font-family: var(--font-display); color: var(--tcolor); font-weight: 700; }

.reveal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none; }
.reveal-card { pointer-events: auto; max-width: 40em; text-align: center; padding: 2em 2.6em; border-radius: 24px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 30%, var(--bg2)), var(--bg2) 70%); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 120px color-mix(in srgb, var(--accent) 25%, transparent); animation: revealin .6s cubic-bezier(.2,1.4,.4,1); }
.reveal-card .stamp { font-size: .8em; letter-spacing: .35em; color: var(--ok); font-weight: 800; text-transform: uppercase; }
.reveal-card h2 { font-size: 2em; margin: .3em 0; }
.reveal-card .art svg { max-height: 8em; width: auto; }
@keyframes revealin { from { opacity: 0; transform: scale(.85) translateY(20px); } }

.stars { font-size: 3em; letter-spacing: .15em; color: var(--accent); }
.stars .off { opacity: .2; }

.motes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.motes i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); opacity: 0; animation: mote linear infinite; filter: blur(.5px); }
@keyframes mote { 0% { transform: translateY(10vh); opacity: 0; } 15% { opacity: .35; } 85% { opacity: .25; } 100% { transform: translateY(-90vh) translateX(6vw); opacity: 0; } }

.paused-veil { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.72); display: grid; place-items: center; backdrop-filter: blur(6px); }
.paused-veil h1 { font-size: 3em; letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 900px) {
  .lobby-tv { grid-template-columns: 1fr; overflow: auto; }
  .tv { height: auto; min-height: 100vh; overflow: visible; }
  .tv-main { flex-direction: column; }
  .tv-side { width: auto; border-left: 0; border-top: 1px solid var(--line); }
  .tv-stage { grid-template-columns: 1fr !important; grid-template-rows: none !important; overflow: visible; }
  .tv-stage > * { grid-row: auto !important; }
  .score-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* icons */
.ico { display: inline-flex; width: 1.3em; height: 1.3em; flex: none; }
.ico svg { width: 100%; height: 100%; }
.home-card .ico { width: 54px; height: 54px; color: var(--accent); }
.iconbtn .ico { width: 22px; height: 22px; }
.pi-ico .ico { width: 24px; height: 24px; }
.strip-item .ico { width: 1.1em; height: 1.1em; }
.ptile.solved { opacity: .72; border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.ptile.solved h3 { color: var(--ok); }
.ptile.solved h3 .ico { width: 1em; height: 1em; }
.reveal { font-size: clamp(16px, 1.25vw, 30px); }
.zoom-hint { position: absolute; bottom: .6em; right: 1em; font-size: .7em; color: var(--muted); }
.note { white-space: normal; }
.note .ln { padding-left: 1.1em; text-indent: -1.1em; }
.note .ln.blank { height: .7em; }
@media (max-width: 520px) { .note.hand { font-size: 1.08em; } .note { padding: .9em 1em; } }
.reveal.escape { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,.55)), rgba(0,0,0,.85)); pointer-events: auto; backdrop-filter: blur(4px); animation: fade .4s; }
.reveal.escape .stamp { font-size: 1em; color: var(--accent); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 1em; width: min(44em, 92vw); text-align: left; }
.results-grid h4 { margin: 0 0 .5em; font-size: .75em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tv { position: relative; }
.tv > :not(.scene-bg) { position: relative; z-index: 1; }
.scene-bg { position: absolute; inset: 0; z-index: 0; opacity: .14; pointer-events: none; overflow: hidden; }
.scene-bg.intro { opacity: .32; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.scene-bg svg { width: 100%; height: 100%; object-fit: cover; }
.ptile { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); backdrop-filter: blur(2px); }
.phone .blk-svg { cursor: zoom-in; position: relative; }
.phone .blk-svg::after { content: 'Tap the picture to enlarge'; display: block; text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); opacity: .8; margin-top: 4px; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(5,4,3,.97); display: flex; flex-direction: column; animation: fade .2s; }
.lb-bar { display: flex; gap: 10px; align-items: center; padding: 10px 12px calc(10px); padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.lb-scroll { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: flex-start; padding: 12px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.lb-art { flex: none; margin: auto; }
.lb-art svg { width: 100%; height: auto; display: block; max-height: none; }
.lock.tight { gap: 4px; padding: 12px 6px; }
.lock.tight .wheel button, .lock.tight .wheel .face { width: 34px; }
.lock.tight .wheel .face { font-size: 1.25em; height: 56px; }
.lock.tight .wheel .face svg { width: 24px; height: 24px; }

.nearbox { margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); animation: toastin .25s ease-out; }
.nearbox b { display: block; color: var(--accent); font-size: .8em; text-transform: uppercase; letter-spacing: .12em; }

.start-row { position: sticky; bottom: 0; padding: .9em 0 .4em; background: linear-gradient(0deg, var(--bg) 70%, transparent); z-index: 2; }

/* TV lobby: compact case cards so all five fit above the start button at 1080p */
.lobby-tv .themes { grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr)); gap: .8em; }
.lobby-tv .theme-card .tc-cover { aspect-ratio: 16 / 7; }
.lobby-tv .theme-card .tc-body { padding: .55em .8em .7em; }
.lobby-tv .theme-card .tc-tag { font-size: .78em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reveal { font-size: calc(clamp(17px, 1.32vw, 34px) * var(--tv-scale, 1)); }
.credits table td { padding: .3em .5em; }
.howto { display: grid; gap: 10px; }
.howto .step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.howto .step b { display: block; font-family: var(--font-display); font-size: 1.05em; }
.howto .num { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.phone .blk-svg::after { font-size: 13px; }
@media (min-width: 1400px) {
  .lobby-tv .themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lobby-tv .theme-card .tc-cover { aspect-ratio: 16 / 9; }
  .lobby-tv .theme-card .tc-title { font-size: 1em; }
  .lobby-tv .theme-card .tc-meta { font-size: .65em; }
}

.linkish { background: none; border: 0; padding: 6px 0; color: var(--muted); font: inherit; font-size: .85em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
.linkish:hover { color: var(--accent); }

/* ───────────── mystery: case board ───────────── */
.cb { position: relative; display: flex; flex-direction: column; gap: 1.6em; padding: 1.2em; border-radius: 18px; min-height: 100%;
  background: radial-gradient(ellipse at 30% 20%, #6b4f33, #3f2c1b 70%), #4a3522;
  box-shadow: inset 0 0 0 10px #2a1d12, inset 0 0 60px rgba(0,0,0,.6); color: #2a2118; overflow: hidden; }
.cb::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: radial-gradient(rgba(0,0,0,.35) 1px, transparent 1.5px); background-size: 7px 7px; }
.cb-strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cb-line { fill: none; stroke-linecap: round; }
.cb-line.link { stroke: #c0392b; stroke-width: 2.5; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.cb-line.clear { stroke: #8fd19e; stroke-width: 2; stroke-dasharray: 6 5; opacity: .85; }
.cb-suspects { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)); gap: 1em; }
.cb-suspect { background: #efe4cc; border-radius: 4px; padding: .5em .5em .7em; text-align: center; box-shadow: 0 8px 18px rgba(0,0,0,.45); transform: rotate(-1deg); }
.cb-suspect:nth-child(even) { transform: rotate(1.2deg); }
.cb-photo { position: relative; background: #d9cdb2; border-radius: 2px; overflow: hidden; aspect-ratio: 5 / 6; display: grid; place-items: center; }
.cb-portrait, .cb-portrait svg { width: 100%; height: 100%; display: block; }
.cb-portrait--blank { font-family: var(--font-display); font-size: 3em; color: #7a6a52; display: grid; place-items: center; }
.cb-name { font-family: var(--font-display); font-weight: 700; font-size: 1em; margin-top: .4em; line-height: 1.15; }
.cb-role { font-size: .75em; color: #6b5c45; }
.cb-blurb { font-size: .72em; color: #4b3f30; margin-top: .3em; line-height: 1.35; }
.cb-suspect.cleared { filter: saturate(.25); opacity: .78; }
.cb-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); border: 3px solid #2e7d4f; color: #2e7d4f; background: rgba(239,228,204,.75);
  padding: .1em .5em; font-family: var(--font-typed); font-weight: 700; font-size: 1.1em; letter-spacing: .15em; text-transform: uppercase; border-radius: 4px; }
.cb-suspect.accused .cb-name { text-decoration: line-through; text-decoration-color: #c0392b; }
.cb-flag { font-size: .65em; color: #a8322a; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: .25em; }
.cb-evidence { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 1em 1.2em; justify-content: center; align-items: flex-start; }
.cb-note { position: relative; width: 12em; background: #fbf6e7; padding: 1em .8em .7em; border-radius: 2px; box-shadow: 0 8px 16px rgba(0,0,0,.45); transform: rotate(var(--tilt, 0deg));
  display: grid; gap: .25em; font-size: .85em; }
.cb-note.tag-motive { background: #fde2d4; }
.cb-note.tag-means { background: #e3ecfb; }
.cb-note.tag-opportunity { background: #fff3c4; }
.cb-note.tag-alibi { background: #dff2e3; }
.cb-pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7b6b, #a3201a); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.cb-tag { font-size: .7em; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: #8a5a2b; }
.cb-art { display: grid; place-items: center; height: 4em; }
.cb-art svg { max-height: 4em; width: auto; }
.cb-note b { font-family: var(--font-display); font-size: 1.05em; line-height: 1.2; }
.cb-text { font-size: .85em; color: #4b3f30; line-height: 1.35; }
.cb-clears { font-size: .75em; color: #2e7d4f; font-weight: 700; }
.cb-empty { color: #f3e6c8; font-style: italic; }
.cb--compact { padding: .8em; gap: 1em; font-size: 14px; }
.cb--compact .cb-suspects { grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); gap: .6em; }
.cb--compact .cb-note { width: calc(50% - .7em); font-size: .8em; }
.tv-stage.case { grid-template-columns: 1fr; overflow: auto; }
.cb-toggle .badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .75em; margin-left: 6px; }

/* ───────────── mystery: vote ───────────── */
.vote-banner { position: absolute; top: .8em; left: 50%; transform: translateX(-50%); z-index: 5; background: rgba(20,16,13,.94); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px; padding: .5em 1.2em; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.vr { display: grid; gap: 1.2em; }
.vr-ballots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }
.vr-ballot { width: 11em; background: #fbf6e7; color: #2a2118; border-radius: 6px; padding: .7em; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.5);
  opacity: 0; transform: rotateY(90deg); animation: flipin .5s forwards; }
@keyframes flipin { to { opacity: 1; transform: none; } }
.vr-who { display: grid; gap: .3em; justify-items: center; }
.vr-portrait, .vr-portrait svg { width: 5em; height: 6em; display: block; }
.vr-who b { font-family: var(--font-display); }
.vr-detail { font-size: .8em; line-height: 1.3; margin-top: .3em; }
.vr-voter { margin-top: .5em; font-size: .7em; text-transform: uppercase; letter-spacing: .12em; color: #8a5a2b; font-weight: 800; }
.vr-tally { display: grid; gap: .4em; max-width: 40em; margin: 0 auto; width: 100%; opacity: 0; animation: rise .6s forwards; }
.vr-line { display: grid; grid-template-columns: 4em 1fr auto; gap: 1em; align-items: center; padding: .5em .8em; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.vr-k { font-size: .75em; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 800; }
.vr-count { font-size: .8em; color: var(--muted); }
.vr-count.agreed { color: var(--ok); font-weight: 700; }
.vote-overlay { position: fixed; inset: 0; z-index: 86; background: rgba(5,4,3,.9); display: grid; place-items: center; padding: 3vh 4vw; overflow: auto; animation: fade .3s;
  font-size: calc(clamp(16px, 1.25vw, 32px) * var(--tv-scale, 1)); }
.vote-overlay h2 { text-align: center; font-size: 2em; margin-bottom: .6em; }

/* ───────────── mystery: accusation ───────────── */
.as { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 3vh 4vw; background: radial-gradient(circle at 50% 30%, #2a0805, #050302 75%); animation: fade .4s;
  font-size: calc(clamp(16px, 1.3vw, 34px) * var(--tv-scale, 1)); }
.as-card { max-width: 46em; width: 100%; text-align: center; display: grid; gap: 1em; justify-items: center; }
.as-kicker { letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 800; font-size: .85em; }
.as-suspect { display: grid; justify-items: center; gap: .4em; animation: revealin .7s cubic-bezier(.2,1.2,.4,1); }
.as-portrait, .as-portrait svg { width: 11em; height: 13em; display: block; border-radius: 6px; }
.as-portrait { box-shadow: 0 20px 60px rgba(0,0,0,.7); background: #d9cdb2; }
.as-suspect h2 { font-size: 2.4em; margin: 0; }
.as-claims { display: flex; gap: 1em; flex-wrap: wrap; justify-content: center; }
.as-claims > div { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: .5em 1em; max-width: 20em; }
.as-claims span { display: block; font-size: .7em; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.as-verdict { display: grid; gap: .5em; justify-items: center; opacity: 0; animation: rise .8s 2.2s forwards; }
.as-stamp { font-family: var(--font-typed); font-weight: 700; font-size: 2em; letter-spacing: .2em; text-transform: uppercase; padding: .1em .6em; border: 4px solid; border-radius: 6px; transform: rotate(-4deg); }
.as-verdict.right .as-stamp { color: var(--ok); }
.as-verdict.half .as-stamp { color: #f0b04a; }
.as-verdict.wrong .as-stamp { color: var(--bad); }
.as-line { font-family: var(--font-display); font-size: 1.25em; line-height: 1.5; max-width: 34em; margin: 0; }
.as-penalty { color: var(--bad); font-weight: 700; margin: 0; }
.as-close { margin-top: .8em; }

/* ───────────── mystery: solution & widget ───────────── */
.sol { text-align: left; width: min(46em, 92vw); }
.sol h4 { margin: 0 0 .6em; font-size: .75em; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.sol ol { margin: 0; padding-left: 1.4em; display: grid; gap: .7em; }
.sol li { opacity: 0; animation: rise .8s forwards; line-height: 1.5; }
.sol li b { display: block; font-family: var(--font-display); font-size: 1.1em; }
.mystery-badge { position: absolute; top: .5em; left: .5em; z-index: 2; background: #8e2a22; color: #fff; font-size: .62em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .25em .6em; border-radius: 4px; }
.accuse-step { margin: 14px 0 6px; font-size: .75em; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.tiles.who .tile { padding: 6px; gap: 2px; }
.tiles.who .tile svg { max-height: 110px; }
.tiles.who .tile small { font-weight: 500; color: var(--muted); font-size: .75em; }
.vote-card { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.accuse-result { border-left: 4px solid var(--bad); }
.accuse-result.half { border-left-color: #f0b04a; }
.cb-suspects { grid-template-columns: repeat(auto-fit, minmax(7.5em, 10em)); justify-content: center; }
.cb--compact .cb-suspects { grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); }
.tv-stage.case .cb { min-height: 0; }
.brand { white-space: nowrap; }
.tv-top { flex-wrap: nowrap; }
.tv-top .room-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18em; }
.host-menu { display: grid; gap: 10px; }
/* labelled grid cells (e.g. "Sunny / Tea tent") wrap cleanly on small phones */
.gridin button { line-height: 1.15; padding: 2px; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) { .gridin button { font-size: .7em; } }
.cb-blurb { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cb--many .cb-note { width: 10em; font-size: .78em; }
.cb--many .cb-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb--many .cb-art { height: 2.6em; } .cb--many .cb-art svg { max-height: 2.6em; }
.cb--many .cb-blurb { -webkit-line-clamp: 2; }
.cb--packed { gap: 1em; padding: .9em; }
.cb--packed .cb-suspects { grid-template-columns: repeat(auto-fit, minmax(6.5em, 8.5em)); gap: .8em; }
.cb--packed .cb-blurb { display: none; }
.cb--packed .cb-evidence { gap: .7em .8em; }
.cb--packed .cb-note { width: 8.6em; font-size: .7em; padding: .8em .6em .5em; }
.cb--packed .cb-text, .cb--packed .cb-clears { display: none; }
.cb--packed .cb-art { height: 2.2em; } .cb--packed .cb-art svg { max-height: 2.2em; }
