/* HOLD, PLEASE. — look
   Night-shift glass over rendered backdrops. Near-black, warm amber, one coral light. */

:root {
  --ink: #07080b;
  --ink-2: #0c0e13;
  --glass: rgba(18, 21, 29, 0.74);
  --glass-2: rgba(28, 32, 42, 0.62);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef0f4;
  --muted: #a3a9b4;
  --dim: #6f7580;
  --coral: #ff7366;
  --coral-ink: #1a0b09;
  --coral-soft: rgba(255, 115, 102, 0.14);
  --coral-line: rgba(255, 115, 102, 0.45);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.14);
  --ok: #5fd89d;
  --ok-soft: rgba(95, 216, 157, 0.14);
  --bad: #ff5364;
  --bad-soft: rgba(255, 83, 100, 0.14);
  --paper: #f1ead9;
  --paper-ink: #2a2520;
  --radius: 16px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; }
[hidden] { display: none !important; }

/* ─────────────── world ─────────────── */
#world { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#world .bg { position: absolute; inset: -40px; background: #0a0c10 center/cover no-repeat; opacity: 0; will-change: transform, opacity; }
#world .bg.on { opacity: 1; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }
#world .flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 18%, rgba(255, 240, 220, 0.55), rgba(255, 230, 200, 0.12) 45%, transparent 70%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
#world .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(3, 4, 7, 0.72) 100%); pointer-events: none; }
#world .grain { position: absolute; inset: -50%; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
body.at-desk #world .bg { filter: brightness(0.62) saturate(1.05); }

.screen { position: fixed; inset: 0; z-index: 2; display: none; }
.screen.show { display: block; }

/* ─────────────── buttons ─────────────── */
.btn { border: 0; cursor: pointer; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.2s; }
.btn:focus-visible, .key:focus-visible, .ask:focus-visible, .fact:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.btn-primary { background: var(--coral); color: var(--coral-ink); box-shadow: 0 4px 0 #b8473c, 0 10px 30px rgba(255, 115, 102, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #b8473c, 0 14px 36px rgba(255, 115, 102, 0.36); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8473c, 0 6px 20px rgba(255, 115, 102, 0.25); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 #6d302b; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-xl { padding: 16px 30px; font-size: 18px; border-radius: 14px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.06); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn[aria-pressed='false'] { opacity: 0.45; }

/* ─────────────── title ─────────────── */
#title .title-art { position: absolute; inset: -30px; background: url('art/keyart.webp') 70% center/cover no-repeat; transform-origin: 74% 72%; }
.led-glow { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle, #fff3ef 0%, #ff8e83 35%, rgba(255, 115, 102, 0) 72%); box-shadow: 0 0 24px 8px rgba(255, 115, 102, 0.55), 0 0 90px 30px rgba(255, 115, 102, 0.18); mix-blend-mode: screen; animation: ledbeat 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes ledbeat { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.35; } }
#title::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 5, 8, 0.92) 0%, rgba(4, 5, 8, 0.6) 38%, transparent 62%), linear-gradient(0deg, rgba(4, 5, 8, 0.8), transparent 30%); pointer-events: none; }
.title-copy { position: absolute; left: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-50%); z-index: 2; max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral), 0 0 30px rgba(255, 115, 102, 0.6); animation: led 2.4s ease-in-out infinite; flex: none; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.logo { margin: 0; font-size: clamp(56px, 9vw, 124px); line-height: 0.92; font-weight: 900; letter-spacing: -0.045em; }
.logo .w { display: inline-block; white-space: nowrap; }
.logo .ch { display: inline-block; will-change: transform, opacity; }
.logo .dot { color: var(--coral); text-shadow: 0 0 24px rgba(255, 115, 102, 0.7), 0 0 60px rgba(255, 115, 102, 0.35); animation: led 2.4s ease-in-out infinite; }
.tagline { margin: 26px 0 36px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: #d5d8de; font-weight: 500; }
.title-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.meta { margin: 22px 0 0; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.fine { position: absolute; left: clamp(24px, 7vw, 120px); bottom: 24px; z-index: 2; margin: 0; color: var(--dim); font-size: 12px; }
.continue-line { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.continue-line button { background: none; border: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; cursor: pointer; font-weight: 700; padding: 0; }

/* ─────────────── shift card ─────────────── */
#shift { background: radial-gradient(ellipse at center, rgba(8, 9, 13, 0.55), rgba(3, 4, 6, 0.94)); }
.shift-inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.shift-kicker { margin: 0 0 10px; color: var(--coral); font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; font-size: 13px; }
.shift-day { margin: 0; font-size: clamp(64px, 14vw, 190px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; }
.shift-day .ch { display: inline-block; }
.shift-time { margin: 18px 0 0; font-family: var(--mono); color: var(--muted); font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.08em; }
.shift-rule { width: 0; height: 2px; background: var(--coral); margin: 26px auto 0; box-shadow: 0 0 20px var(--coral); }

/* ─────────────── desk ─────────────── */
#desk { display: none; }
#desk.show { display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 5; height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #cfd3da; letter-spacing: 0.01em; }
.brand b { color: var(--text); font-weight: 800; }
.lantern { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(160deg, #ff8b7f, #e45a4d); box-shadow: 0 0 18px rgba(255, 115, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); position: relative; }
.lantern::after { content: ''; position: absolute; inset: 6px 8px; border-radius: 3px; background: rgba(26, 11, 9, 0.75); }
.tb-mid { font-size: 14px; color: var(--muted); font-weight: 600; }
.tb-mid .mono { color: var(--text); }
.tb-right { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pill b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.qdot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: led 1.6s infinite; }
button.pill { border: 0; cursor: pointer; }
button.pill:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.pill.slips b { color: var(--bad); }
.rules-pill .rp-mark { width: 9px; height: 9px; background: var(--paper); border-radius: 2px; transform: rotate(-6deg); }

.app { position: relative; z-index: 3; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 16px; padding: 4px 22px 22px; width: 100%; max-width: 1400px; margin: 0 auto; }
.panel { position: relative; min-height: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(24, 27, 36, 0.8), rgba(12, 14, 19, 0.86)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 90px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); overflow: hidden; }
.call { display: flex; flex-direction: column; }

/* caller card */
.caller { display: flex; align-items: center; gap: 16px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); flex: none; }
.orb { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2a2f3b, #12151c 70%); box-shadow: inset 0 0 0 1px var(--line-2); }
.orb canvas { position: absolute; inset: -18px; width: 100px; height: 100px; }
.orb-glyph { width: 24px; height: 24px; color: var(--muted); position: relative; z-index: 1; }
.caller.live .orb { box-shadow: inset 0 0 0 1.5px var(--coral-line), 0 0 30px rgba(255, 115, 102, 0.22); }
.caller.live .orb-glyph { color: var(--coral); }
.caller.ringing .orb { animation: ringpulse 1.1s ease-in-out infinite; }
@keyframes ringpulse { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--coral-line), 0 0 0 0 rgba(255, 115, 102, 0.45); } 60% { box-shadow: inset 0 0 0 1.5px var(--coral), 0 0 0 16px rgba(255, 115, 102, 0); } }
.caller-meta { min-width: 0; flex: 1; }
.caller-state { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.caller.live .caller-state, .caller.ringing .caller-state { color: var(--coral); }
.caller-name { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caller-tag { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.caller-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; font-size: 12.5px; color: #c9ccd3; }
.cid-tag { font-family: var(--font); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); letter-spacing: 0.02em; }
.cid-tag.warn { background: var(--amber-soft); color: var(--amber); }
.call-timer { font-size: 13px; color: var(--dim); align-self: flex-start; margin-top: 4px; }

.wants { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 10px 20px; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--line); font-size: 14px; }
.wants span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); flex: none; }
.wants b { font-weight: 600; color: #e3e6eb; }

/* transcript */
.transcript { flex: 1; min-height: 120px; overflow-y: auto; padding: 18px 20px 10px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.transcript::-webkit-scrollbar, .rec-scroll::-webkit-scrollbar { width: 8px; }
.transcript::-webkit-scrollbar-thumb, .rec-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 8px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; position: relative; }
.msg .who { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.msg.c { align-self: flex-start; background: rgba(255, 255, 255, 0.065); box-shadow: inset 0 0 0 1px var(--line); border-top-left-radius: 4px; }
.msg.c2 { align-self: flex-start; background: rgba(255, 181, 71, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.18); border-top-left-radius: 4px; }
.msg.c3 { align-self: flex-start; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); border-top-left-radius: 4px; }
.msg.y { align-self: flex-end; background: var(--coral-soft); box-shadow: inset 0 0 0 1px rgba(255, 115, 102, 0.22); border-top-right-radius: 4px; color: #ffe9e6; }
.msg.y.vm { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.msg.y.vm::before { content: 'Voicemail'; display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
.msg.s { align-self: center; max-width: 100%; background: none; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.msg .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: caret 0.8s steps(2) infinite; opacity: 0.7; }
@keyframes caret { 50% { opacity: 0; } }
.msg .ans { font-family: var(--mono); font-size: 0.92em; }
.dir-card { align-self: stretch; margin: 4px 0; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 6px; font-size: 13.5px; }
.dir-card .dc-h { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dir-card .dc-row { display: flex; justify-content: space-between; gap: 12px; }
.dir-card .dc-row span:first-child { color: var(--muted); }
.dir-card .dc-row b { font-family: var(--mono); font-weight: 600; }
.dir-card .dc-verdict { font-weight: 800; }
.dir-card .dc-verdict.bad { color: var(--bad); }
.dir-card .dc-verdict.ok { color: var(--ok); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* dock */
.dock { flex: none; border-top: 1px solid var(--line); background: rgba(8, 9, 13, 0.4); padding: 14px 18px 16px; min-height: 96px; }
.step { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-n { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--coral); color: var(--coral-ink); box-shadow: 0 0 18px rgba(255, 115, 102, 0.35); }
.step-t { flex: 1; min-width: 0; }
.step-t b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.step-t small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.vcount { flex: none; display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.vpip { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 800; color: var(--dim); transition: all 0.3s var(--ease); }
.vpip.on { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(95, 216, 157, 0.4); }
.vpip.off { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 83, 100, 0.35); }
.vpip.wide { padding: 0 9px; }
.hint { margin: -4px 0 10px 40px; font-size: 13px; color: var(--amber); font-weight: 600; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ask { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, 0.45); font-weight: 700; font-size: 14px; transition: transform 0.12s var(--ease), background 0.2s; }
.ask:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.ask:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, 0.45); }
.ask:disabled { cursor: default; opacity: 0.9; }
.ask .q { color: var(--coral); font-weight: 900; }
.ask.res-ok { background: var(--ok-soft); box-shadow: inset 0 0 0 1px rgba(95, 216, 157, 0.35); }
.ask.res-bad { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(255, 83, 100, 0.35); }
.ask.res-none { background: rgba(255, 255, 255, 0.03); color: var(--dim); }
.ask .r { font-weight: 900; }
.ask.res-ok .r { color: var(--ok); } .ask.res-bad .r { color: var(--bad); }
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.done-btn.ready { animation: readyglow 1.6s ease-in-out infinite; }
@keyframes readyglow { 50% { box-shadow: 0 4px 0 #b8473c, 0 0 0 6px rgba(255, 115, 102, 0.18), 0 10px 30px rgba(255, 115, 102, 0.4); } }
.listening { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 64px; }
.listening .skip { margin-left: auto; font-size: 12px; color: var(--dim); }

.tray { min-height: 58px; border-radius: 13px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); outline: 1.5px dashed rgba(255, 255, 255, 0.14); outline-offset: -6px; transition: box-shadow 0.2s, background 0.2s, outline-color 0.2s; }
.tray.hot { background: var(--coral-soft); outline-color: var(--coral); box-shadow: inset 0 0 0 1.5px var(--coral-line), 0 0 30px rgba(255, 115, 102, 0.18); }
.tray-ph { color: var(--dim); font-size: 13.5px; padding: 0 8px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 8px 7px 12px; border-radius: 10px; background: #232734; box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px rgba(0, 0, 0, 0.35); font-size: 13px; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.chip .x { width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, 0.07); cursor: pointer; font-size: 14px; line-height: 1; color: var(--muted); flex: none; }
.chip .x:hover { background: rgba(255, 255, 255, 0.15); color: var(--text); }
.chip.vm { background: #2a2320; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.keys .btn-primary { min-width: 118px; }
.key { position: relative; height: 44px; padding: 0 14px; border: 0; border-radius: 11px; cursor: pointer; background: linear-gradient(180deg, #2a2e3a, #1c1f28); color: #e4e6eb; font-weight: 700; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 0 #0a0b0f; transition: transform 0.1s var(--ease), box-shadow 0.1s; }
.key:hover:not(:disabled) { transform: translateY(-1px); color: #fff; }
.key:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 #0a0b0f; }
.key:disabled { opacity: 0.35; cursor: not-allowed; }
.key .new { position: absolute; top: -8px; right: -6px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.08em; padding: 3px 6px; border-radius: 6px; background: var(--amber); color: #1e1406; }
.key.protect { background: linear-gradient(180deg, #3a2622, #2a1a17); box-shadow: inset 0 0 0 1px var(--coral-line), 0 4px 0 #0a0b0f, 0 0 24px rgba(255, 115, 102, 0.2); }
.vm-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vm-parts .fact { display: inline-grid; width: auto; grid-template-columns: auto auto auto; padding: 8px 10px 8px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }

/* record */
.record { display: flex; flex-direction: column; }
.rec-empty { flex: 1; display: grid; place-content: center; text-align: center; color: var(--dim); gap: 10px; padding: 30px; }
.rec-empty .re-icon { width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.rec-empty .re-icon svg { width: 24px; height: 24px; color: var(--dim); }
.rec-empty p { margin: 0; font-size: 14px; font-weight: 600; }
.rec { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); flex: none; }
.rec-head small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.rec-head h3 { margin: 3px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.rec-head .rid { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.vbadge { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, 0.05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.3s var(--ease); }
.vbadge.checking { color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3); }
.vbadge.ok { color: var(--ok); background: var(--ok-soft); box-shadow: inset 0 0 0 1px rgba(95, 216, 157, 0.35); }
.vbadge.bad { color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(255, 83, 100, 0.35); }
.protected-banner { margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; display: flex; gap: 10px; align-items: center; background: var(--coral-soft); box-shadow: inset 0 0 0 1px var(--coral-line); font-size: 13.5px; font-weight: 700; color: #ffd9d4; }
.protected-banner svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.rec-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px 16px; }
.sec { padding: 12px 8px 4px; }
.sec h4 { margin: 0 0 8px; padding: 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.sec.pulse h4 { color: var(--amber); }
.sec.pulse .rows { box-shadow: 0 0 0 1.5px rgba(255, 181, 71, 0.55), 0 0 24px rgba(255, 181, 71, 0.18); }
.sec .tip { font-size: 11.5px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--amber); }
.rows { border-radius: 12px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.4s; }
.fact { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; }
.rows > .fact:last-child { border-bottom: 0; }
.fact .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fact .val { font-size: 14px; font-weight: 600; color: #e8eaee; min-width: 0; }
.fact .val.mono { font-family: var(--mono); font-size: 13px; }
.fact .val em { font-style: normal; font-size: 11px; color: var(--dim); font-family: var(--font); margin-left: 6px; }
.said { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 8px; white-space: nowrap; opacity: 0; }
.said.ok { background: var(--ok-soft); color: var(--ok); opacity: 1; }
.said.bad { background: var(--bad-soft); color: var(--bad); opacity: 1; }
.said.none { background: rgba(255, 255, 255, 0.05); color: var(--dim); opacity: 1; font-family: var(--font); font-weight: 700; }
.fact.grab { cursor: grab; touch-action: none; transition: background 0.15s; grid-template-columns: 136px minmax(0, 1fr) auto auto; }
.fact.grab:hover { background: rgba(255, 255, 255, 0.05); }
.fact.grab .add { justify-self: end; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 16px; font-weight: 700; }
.fact.grab:hover .add { background: var(--coral); color: var(--coral-ink); }
.fact.in-tray { opacity: 0.4; }
.fact.in-tray .add { background: var(--ok-soft); color: var(--ok); }
.fact.lit { background: rgba(255, 255, 255, 0.06); }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 14px; }
.contact b { font-weight: 700; }
.contact span { color: var(--muted); font-size: 12.5px; }
.contact.none { color: var(--dim); font-weight: 600; font-size: 13.5px; }
.note { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: #d3d6dc; }
.note:last-child { border-bottom: 0; }
.note time { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 2px; }
.note .num { font-family: var(--mono); color: var(--amber); }
.note .given { color: var(--bad); font-weight: 800; }
.note .kept { color: var(--ok); font-weight: 800; }

/* drag ghost */
.ghost { position: fixed; z-index: 60; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: #2a2f3c; box-shadow: 0 0 0 1px var(--coral-line), 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 115, 102, 0.2); font-size: 13.5px; font-weight: 700; white-space: nowrap; transform: rotate(-2deg); }
.ghost small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.flyer { position: fixed; z-index: 60; pointer-events: none; font-family: var(--mono); font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: #2c313e; color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line-2); white-space: nowrap; }

/* chat toasts */
.chat { position: fixed; z-index: 40; right: 22px; top: 70px; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(22, 25, 33, 0.94); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); cursor: pointer; }
.toast img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--coral-line); }
.toast .th { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.toast .th b { font-weight: 800; }
.toast .th span { font-size: 11px; color: var(--dim); }
.toast p { margin: 3px 0 0; font-size: 14px; line-height: 1.42; color: #e2e5ea; }

/* rules note */
.sticky { position: fixed; z-index: 45; width: 290px; padding: 18px 18px 16px; background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.12); transform-origin: top center; }
.sticky::before { content: ''; position: absolute; top: -10px; left: 50%; width: 88px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 255, 255, 0.45); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.sticky h5 { margin: 0 0 10px; font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #8a5a45; }
.sticky ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.sticky li { font-size: 14px; line-height: 1.35; font-weight: 600; }
.sticky li.fresh { font-weight: 800; }
.sticky li.fresh::after { content: 'new'; margin-left: 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: #e86a5e; color: #fff; vertical-align: 1px; }
.sticky .close { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(0, 0, 0, 0.06); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--paper-ink); }

/* stamps + slips */
.stamp-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.stamp { position: absolute; left: 50%; top: 42%; display: grid; justify-items: center; gap: 2px; padding: 14px 26px 12px; border: 5px solid currentColor; border-radius: 14px; font-weight: 900; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; white-space: nowrap; background: rgba(8, 9, 12, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -2.4 2.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -2.4 2.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.stamp .stars { font-size: 0.42em; letter-spacing: 0.3em; }
.stamp.ok { color: var(--ok); } .stamp.mid { color: var(--amber); } .stamp.bad { color: var(--bad); }
.coach { position: absolute; left: 50%; top: calc(42% + 92px); transform: translateX(-50%); max-width: min(560px, calc(100vw - 40px)); padding: 12px 18px; border-radius: 14px; background: rgba(14, 16, 22, 0.92); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 16px; line-height: 1.4; font-weight: 600; text-align: center; color: #eef0f4; }
.slip-layer { position: fixed; top: 58px; right: 22px; z-index: 55; pointer-events: none; }
.slip { width: 300px; padding: 16px 16px 20px; background: var(--paper); color: var(--paper-ink); font-family: var(--mono); font-size: 12px; line-height: 1.5; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px); clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 97%, 90% 100%, 85% 97%, 80% 100%, 75% 97%, 70% 100%, 65% 97%, 60% 100%, 55% 97%, 50% 100%, 45% 97%, 40% 100%, 35% 97%, 30% 100%, 25% 97%, 20% 100%, 15% 97%, 10% 100%, 5% 97%, 0 100%); }
.slip .sh { font-family: var(--font); font-weight: 900; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.slip.bad .sh { color: #b3261e; } .slip.mid .sh { color: #9a5b00; }
.slip hr { border: 0; border-top: 1px dashed rgba(0, 0, 0, 0.3); margin: 8px 0; }

/* guide */
.guide { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.guide-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3, 4, 7, 0.62), 0 0 0 2px var(--coral), 0 0 30px rgba(255, 115, 102, 0.45); transition: all 0.45s var(--ease); }
.guide-tip { position: fixed; max-width: 300px; padding: 12px 16px; border-radius: 14px; background: #fff; color: #14161c; font-size: 15.5px; line-height: 1.38; font-weight: 700; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); transition: opacity 0.3s; }
.guide-tip small { display: block; font-size: 12px; color: #6a6f79; font-weight: 600; margin-top: 3px; }
.guide-hand { position: fixed; width: 44px; height: 44px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); }
.guide-hand svg { width: 100%; height: 100%; }
body.guiding #desk * { pointer-events: none; }
body.guiding #desk .g-allow, body.guiding #desk .g-allow * { pointer-events: auto; }

/* ─────────────── report + story + reveal + debrief ─────────────── */
#report, #debrief { overflow-y: auto; background: rgba(4, 5, 8, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet { width: min(760px, calc(100vw - 32px)); margin: clamp(24px, 7vh, 80px) auto 40px; padding: 30px clamp(20px, 4vw, 40px) 30px; border-radius: 24px; background: linear-gradient(180deg, rgba(24, 27, 36, 0.92), rgba(12, 14, 19, 0.95)); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px rgba(0, 0, 0, 0.6); }
.sheet .kick { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }
.sheet h2 { margin: 6px 0 4px; font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.03em; }
.sheet .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.rep-rows { display: grid; gap: 8px; }
.rep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.rep-row .rn b { display: block; font-size: 15px; font-weight: 800; }
.rep-row .rn span { font-size: 13px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.mid { background: var(--amber-soft); color: var(--amber); } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.starz { font-size: 14px; letter-spacing: 2px; color: var(--amber); min-width: 58px; text-align: right; }
.starz i { font-style: normal; color: rgba(255, 255, 255, 0.14); }
.lead-note { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; margin-top: 22px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.lead-note img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.lead-note b { font-size: 13px; } .lead-note span { font-size: 12px; color: var(--dim); margin-left: 6px; }
.lead-note p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.totals { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.total { flex: 1; min-width: 120px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.total b { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; font-family: var(--mono); }
.total span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.total.ok b { color: var(--ok); } .total.bad b { color: var(--bad); } .total.mid b { color: var(--amber); }

#story { background: #000; }
.story-img { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; }
#story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 38%, transparent 60%); pointer-events: none; }
.story-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 clamp(20px, 8vw, 120px) clamp(28px, 7vh, 72px); display: grid; gap: 18px; }
.story-cap .sk { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin: 0; }
.story-cap p.sc { margin: 0; max-width: 820px; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.story-cap .btn { justify-self: start; }

#reveal { background: radial-gradient(ellipse at 50% 30%, #12151d, #030406 70%); overflow-y: auto; }
.rv-wrap { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 28px; padding: 40px 20px; }
.rv-kick { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); }
.rv-title { margin: 0; font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -0.035em; text-align: center; }
.rv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: clamp(12px, 2vw, 24px); perspective: 1400px; }
.rv-card { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; }
.rv-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px rgba(0, 0, 0, 0.6); }
.rv-front { background: linear-gradient(180deg, #1b1f29, #0f1117); display: grid; align-content: center; justify-items: center; gap: 8px; padding: 18px; text-align: center; }
.rv-front .rv-orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2a2f3b, #12151c 70%); box-shadow: inset 0 0 0 1.5px var(--coral-line); margin-bottom: 8px; }
.rv-front .rv-orb svg { width: 28px; color: var(--coral); }
.rv-front b { font-size: 20px; font-weight: 900; }
.rv-front span { font-size: 13px; color: var(--muted); }
.rv-front code { font-family: var(--mono); font-size: 12px; color: #cfd2d8; }
.rv-front em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.rv-back { transform: rotateY(180deg); background: #000 center/cover no-repeat; }
.rv-back::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 45%); }
.rv-back .rv-was { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; font-size: 12.5px; line-height: 1.35; }
.rv-back .rv-was b { display: block; font-size: 15px; font-weight: 900; }
.rv-verdict { margin-top: 10px; font-size: 13px; font-weight: 700; text-align: center; min-height: 1.4em; }
.rv-verdict.ok { color: var(--ok); } .rv-verdict.bad { color: var(--bad); } .rv-verdict.mid { color: var(--amber); }
.rv-line { margin: 0; max-width: 640px; text-align: center; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; font-weight: 700; color: #e4e6ea; }
.rv-line span { color: var(--coral); }

.lessons { display: grid; gap: 10px; }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.lesson b { display: block; font-size: 16.5px; font-weight: 800; }
.lesson p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.lesson .ldots { display: flex; gap: 5px; align-items: center; align-self: center; flex-wrap: wrap; max-width: 150px; justify-content: flex-end; }
.ldot { width: 12px; height: 12px; border-radius: 4px; }
.ldot.ok { background: var(--ok); } .ldot.mid { background: var(--amber); } .ldot.bad { background: var(--bad); } .ldot.na { background: rgba(255, 255, 255, 0.12); }
.rank { font-size: clamp(34px, 5vw, 48px) !important; }
.credit { margin: 22px 0 0; font-size: 12px; color: var(--dim); text-align: center; }

/* ─────────────── phones + small screens ─────────────── */
@media (max-width: 860px) {
  body { overflow: hidden; }
  #desk.show { display: block; overflow-y: auto; height: 100%; -webkit-overflow-scrolling: touch; }
  .topbar { position: sticky; top: 0; height: 50px; padding: 0 14px; background: rgba(7, 8, 11, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .brand { font-size: 13px; } .brand .bt { display: none; }
  .tb-mid { font-size: 12.5px; }
  .pill { height: 30px; padding: 0 9px; font-size: 12px; }
  .pill .pl { display: none; }
  .app { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 12px; }
  .panel { overflow: visible; border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(22, 25, 33, 0.94), rgba(12, 14, 19, 0.96)); }
  .call { overflow: visible; }
  .caller { padding: 14px; gap: 12px; }
  .orb { width: 52px; height: 52px; }
  .orb canvas { inset: -14px; width: 80px; height: 80px; }
  .caller-name { font-size: 19px; }
  .transcript { max-height: 42vh; min-height: 150px; padding: 14px; }
  .msg { font-size: 15px; max-width: 92%; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 18px 18px 0 0; background: rgba(12, 14, 19, 0.97); padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--line-2); max-height: 62vh; overflow-y: auto; }
  .app { padding-bottom: calc(var(--dockH, 140px) + 16px); }
  .tb-mid { white-space: nowrap; }
  .dock-row > span { display: none; }
  .fact, .fact.grab { grid-template-columns: 92px minmax(0, 1fr) auto; row-gap: 4px; }
  .fact .said { grid-row: 2; grid-column: 2 / 4; justify-self: start; }
  .fact .said:empty { display: none; }
  .fact .add { grid-row: 1; grid-column: 3; }
  .stamp { font-size: 28px; }
  .record { min-height: 200px; }
  .rec-scroll { overflow: visible; }
  .fact { grid-template-columns: 104px minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
  .fact.grab { grid-template-columns: 104px minmax(0, 1fr) auto auto; }
  .said { font-size: 10.5px; padding: 2px 6px; }
  .chat { top: 58px; right: 12px; }
  .slip-layer { right: 12px; top: 54px; }
  .slip { width: 260px; }
  .stamp { top: 36%; }
  .coach { top: calc(36% + 80px); font-size: 15px; }
  .rv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rv-front b { font-size: 15px; } .rv-front span, .rv-front code { font-size: 10.5px; }
  .rv-front .rv-orb { width: 48px; height: 48px; }
  .rv-back .rv-was { font-size: 10.5px; } .rv-back .rv-was b { font-size: 12px; }
  .rep-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rep-row .starz { display: none; }
  .title-copy { top: auto; bottom: 90px; transform: none; right: 24px; }
  #title::after { background: linear-gradient(0deg, rgba(4, 5, 8, 0.96) 0%, rgba(4, 5, 8, 0.7) 50%, rgba(4, 5, 8, 0.15) 80%); }
  #title .title-art { background-size: auto 62vh; background-position: 76% 0; background-color: #07080b; }
  .sticky { width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 520px) {
  .ask { height: 38px; padding: 0 11px; font-size: 13.5px; }
  .key { height: 42px; padding: 0 11px; font-size: 13px; }
  .step-t b { font-size: 15.5px; }
  .vcount .vl { display: none; }
  .chip small { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  #world .grain, .led, .logo .dot, .qdot { animation: none; }
  .caller.ringing .orb, .done-btn.ready { animation: none; }
}


/* ─────────────── round two: compare step, locks, stamp backdrop, slips log ─────────────── */
.sound-btn { display: inline-flex; align-items: center; gap: 8px; }
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn.muted { background: var(--coral-soft); box-shadow: inset 0 0 0 1px var(--coral-line); }
.pill.streak b { color: var(--amber); }
.pill.streak { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35); }

.compare { border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-2); }
.cmp-h { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cmp-grid > div { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cmp-grid small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.cmp-grid b { display: block; font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.cmp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-btns .btn { flex: 1; min-width: 130px; }
.cmp-yes { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1.5px rgba(95, 216, 157, 0.45), 0 3px 0 rgba(0, 0, 0, 0.45); }
.cmp-yes:hover { background: rgba(95, 216, 157, 0.24); }
.cmp-no { background: var(--bad-soft); color: #ff8a95; box-shadow: inset 0 0 0 1.5px rgba(255, 83, 100, 0.45), 0 3px 0 rgba(0, 0, 0, 0.45); }
.cmp-no:hover { background: rgba(255, 83, 100, 0.24); }
.hint + .hint { margin-top: -6px; }

.key svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.key.wide { flex-basis: 100%; height: 50px; font-size: 15px; }
.step-n svg { width: 15px; height: 15px; }

.locks { display: grid; gap: 8px; }
.lock-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.2s, box-shadow 0.2s; }
.lock-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lock-opt .lo-box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; }
.lock-opt input:checked + .lo-box { background: var(--coral); box-shadow: none; }
.lock-opt input:checked + .lo-box::after { content: '✓'; color: var(--coral-ink); font-weight: 900; font-size: 14px; }
.lock-opt input:focus-visible + .lo-box { outline: 2px solid var(--coral); outline-offset: 2px; }
.lock-opt:has(input:checked) { background: var(--coral-soft); box-shadow: inset 0 0 0 1px var(--coral-line); }
.lock-opt b { display: block; font-size: 14px; font-weight: 700; }
.lock-opt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.stamp-layer { transition: background 0.3s; }
.stamp-layer.on { background: rgba(4, 5, 8, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.stamp { background: rgba(8, 9, 12, 0.85); }
.coach { top: calc(42% + 96px); padding: 16px 22px; font-size: 17px; background: #12151c; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, 0.6); }
.listening.ended { color: var(--dim); }

.slip-mini { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(0, 0, 0, 0.25); font-family: var(--mono); font-size: 11.5px; line-height: 1.45; }
.slip-mini b { font-family: var(--font); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.slip-mini.bad b { color: #b3261e; } .slip-mini.mid b { color: #9a5b00; }
.slip-mini span { float: right; font-family: var(--font); font-size: 11px; color: #7c6f60; }
.slip-mini hr { border: 0; border-top: 1px dotted rgba(0, 0, 0, 0.2); margin: 4px 0; }
.sticky { max-height: min(70vh, 560px); overflow-y: auto; }
.sticky p { margin: 0; font-size: 14px; }

.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.legend .ldot { margin-left: 6px; }
.chip small { max-width: 320px; }

@media (max-width: 860px) {
  .dock { background: #0d0f14; }
  .tb-right { gap: 6px; }
  .pill { padding: 0 8px; gap: 6px; }
  .pill .pl { display: inline; font-size: 11.5px; }
  .pill .qdot { display: none; }
  .cmp-grid b { font-size: 15.5px; }
  .coach { top: calc(36% + 70px); font-size: 15px; }
  .key.wide { height: 46px; }
  .chip small { max-width: 180px; }
}
@media (max-width: 400px) {
  .pill.streak .pl, .pill.slips .pl { display: none; }
}

.credit a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--coral); }
