:root {
  --bg: #0d0f14;
  --panel: #151922;
  --panel2: #1b2130;
  --line: #2a3245;
  --text: #e8ecf3;
  --muted: #8b95a8;
  --gold: #f2c14e;
  --red: #ff4d5e;
  --green: #3ddc97;
  --blue: #6aa8ff;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #1d2540 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.45 "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
}
b { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 12px; font-weight: 400; }
button {
  font: inherit; cursor: pointer; border: 1px solid var(--gold); background: var(--gold); color: #1a1405;
  border-radius: 10px; padding: 8px 14px; font-weight: 700;
}
button.ghost { background: transparent; color: var(--gold); }
button:hover { filter: brightness(1.1); }
button:disabled { cursor: not-allowed; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px 8px; flex-wrap: wrap; }
.brand { display: flex; gap: 14px; align-items: center; }
.logo { font-size: 40px; filter: drop-shadow(0 0 12px #f2c14e66); }
h1 { margin: 0; font-size: 26px; letter-spacing: 3px; color: var(--gold); }
.sub { margin: 2px 0 0; color: var(--muted); max-width: 640px; }
.topright { display: flex; gap: 10px; align-items: center; }
.pill { font: 12px var(--mono); padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.pill.live { color: var(--green); border-color: #3ddc9766; }

.goal { margin: 8px 24px 14px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ladder { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.ladder li { padding: 5px 12px; border-radius: 99px; background: var(--panel2); color: var(--muted); font-size: 13px; border: 1px solid var(--line); position: relative; }
.ladder li.done { color: var(--green); border-color: #3ddc9755; }
.ladder li.done::before { content: "✓ "; }
.ladder li small { font-size: 10px; opacity: 0.8; }
.ladder li.vault { border-style: dashed; }
.ladder li.now { color: #1a1405; background: var(--gold); border-color: var(--gold); font-weight: 700; box-shadow: 0 0 16px #f2c14e55; }

.grid { display: grid; grid-template-columns: 270px 1fr 380px; gap: 14px; padding: 0 24px 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
h2 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }

.badge { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #222a3d, #161b27); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.badge.flash { animation: flash 0.8s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--gold); } 50% { box-shadow: 0 0 0 6px #f2c14e55; } 100% { box-shadow: none; } }
.photo { width: 52px; height: 52px; border-radius: 10px; background: #0b0d12; display: grid; place-items: center; font-size: 28px; border: 1px dashed var(--line); }
.bname { font-weight: 700; font-size: 17px; }
.brole { color: var(--muted); font-size: 13px; }
.buser { font: 12px var(--mono); color: var(--blue); }
.deskbtns { display: grid; gap: 8px; }
.deskbtn { text-align: left; display: flex; gap: 10px; align-items: center; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.deskbtn .em { font-size: 20px; }
.deskbtn small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.deskbtn.locked { opacity: 0.55; }
.deskbtn.current { border-color: var(--gold); }
.deskbtn.new { animation: pulse 1.2s 3; border-color: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px #f2c14e44; } }
.quest { background: #f2c14e10; border: 1px solid #f2c14e55; border-radius: 12px; padding: 12px; }
.quest.pop { animation: flash 0.8s; }
.qask { font-weight: 600; margin-bottom: 8px; }
.qform { display: flex; gap: 6px; }
.qform input { flex: 1; min-width: 0; font: inherit; background: #0b0d12; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.qform[hidden] { display: none; }
.qhint { margin-top: 6px; }
button.small { font-size: 12px; padding: 5px 10px; margin-top: 10px; }
.ceobtn { display: block; margin-top: 12px; text-align: center; padding: 9px; border-radius: 10px; border: 1px dashed #6aa8ff88; color: var(--blue); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.ceobtn:hover { background: #6aa8ff14; }
.ceobtn.off { opacity: 0.5; pointer-events: none; }
.hall { margin: 0 24px 16px; }
.bingo { margin: 0 24px 14px; }
.bingogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.card { border: 1px dashed var(--line); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; color: var(--muted); position: relative; min-height: 64px; }
.card b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.card.got { border-style: solid; border-color: #ff4d5e88; background: #ff4d5e0d; color: var(--text); }
.card.got::after { content: "DENIED"; position: absolute; right: 8px; bottom: 6px; font: 13px "Special Elite", monospace; color: var(--red); transform: rotate(-12deg); border: 2px solid var(--red); padding: 0 4px; border-radius: 4px; }
.card.got.honey { border-color: #f2c14e88; background: #f2c14e10; }
.card.got.honey::after { content: "BAIT!"; color: var(--gold); border-color: var(--gold); }
.card.new { animation: pulse 1s 3; }
.hallhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hallstats { font: 13px var(--mono); color: var(--muted); }
.hallstats b { color: var(--gold); font-size: 16px; }
.hallstats .zero { color: var(--green); }
.hallwall { display: flex; flex-wrap: wrap; gap: 8px; }
.attempt { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 13px; max-width: 360px; }
.attempt .who { display: block; font: 11px var(--mono); color: var(--muted); margin-top: 3px; }
.attempt.honey { border-color: #f2c14e88; }
.attempt .x { color: var(--red); font-weight: 700; }
.ll.decoy { color: var(--gold); }
.tip { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

.chat { display: flex; flex-direction: column; position: relative; min-height: 560px; overflow: hidden; }
.chathead { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.penny { font-size: 30px; transition: transform 0.2s; }
.penny.shake { animation: shake 0.45s; }
@keyframes shake { 20% { transform: translateX(-6px) rotate(-8deg); } 40% { transform: translateX(6px) rotate(8deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.msgs { flex: 1; overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 10px; max-height: 470px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: #24304a; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.denied { border-color: #ff4d5e66; }
.msg.bot.allowed { border-color: #3ddc9766; }
.msg.sys { align-self: center; font-size: 12.5px; color: var(--gold); background: #f2c14e14; border: 1px dashed #f2c14e66; }
.msg .meta { display: block; font: 11px var(--mono); color: var(--muted); margin-top: 6px; }
.typing { color: var(--muted); font-style: italic; }

.stamp {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-14deg) scale(2.5);
  font: 54px "Special Elite", monospace; color: var(--red); border: 6px solid var(--red); padding: 4px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; text-shadow: 0 0 20px #ff4d5e88; white-space: nowrap; letter-spacing: 3px; mix-blend-mode: screen;
}
.stamp.on { animation: stamp 1.6s ease-out; }
.stamp.ok { color: var(--green); border-color: var(--green); text-shadow: 0 0 20px #3ddc9788; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.5); }
  15% { opacity: 0.95; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 13px; padding: 6px 10px; border-radius: 99px; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; font: inherit; background: #0b0d12; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ask input:focus { outline: 2px solid #f2c14e66; }

.log { display: flex; flex-direction: column; }
.logbody { flex: 1; background: #07080b; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.5 var(--mono); overflow-y: auto; max-height: 520px; min-height: 300px; }
.ll { margin-bottom: 6px; word-break: break-word; }
.ll .t { color: #556; }
.ll.deny { color: #ff8a95; }
.ll.deny .res { color: #fff; background: var(--red); padding: 0 5px; border-radius: 3px; font-weight: 700; }
.ll.ok { color: #9be9c6; }
.ll.ok .res { color: #06281a; background: var(--green); padding: 0 5px; border-radius: 3px; font-weight: 700; }
.ll.info { color: var(--muted); }
.ll.unlock { color: var(--gold); }
.ll.llm { color: var(--blue); }
.ll.new { animation: slidein 0.35s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } }
.stats { margin-top: 8px; font: 12px var(--mono); color: var(--muted); }
#statDenied { color: var(--red); font-weight: 700; }
#statAllowed { color: var(--green); font-weight: 700; }

.modal { position: fixed; inset: 0; background: #000b; display: grid; place-items: center; z-index: 10; padding: 16px; }
.modal[hidden] { display: none; }
.modalbox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: min(980px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.close { position: absolute; right: 12px; top: 12px; background: transparent; color: var(--muted); border: none; font-size: 18px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cmpcol .ll { font-size: 11.5px; }
.cmpcol { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cmpcol h3 { margin: 0 0 8px; }
.cmpcol .ans { background: #0b0d12; border-radius: 10px; padding: 10px; margin: 8px 0; }
.win { text-align: center; max-width: 560px; }
.bigclip { font-size: 64px; }
.win h2 { font-size: 26px; color: var(--gold); letter-spacing: 3px; }
#winText { font-size: 17px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--gold); color: #1a1405; font-weight: 700; padding: 10px 18px; border-radius: 12px; transition: transform 0.35s; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.toast.on { transform: translateX(-50%) translateY(0); }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 6px 16px 22px; }
.foot a { color: var(--gold); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .hall, .bingo { margin: 0 16px 16px; }
  .top, .goal { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
  .goal { padding: 12px; }
  .chat { min-height: 480px; }
  .cmp { grid-template-columns: 1fr; }
  .stamp { font-size: 36px; }
}

/* ---- phones: game first. Quest + chat up top, everything else in bottom tabs ---- */
.mtabs { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .top { padding: 10px 0 4px; gap: 8px; }
  .logo { font-size: 26px; }
  h1 { font-size: 18px; }
  .sub { display: none; }
  .topright { gap: 6px; flex-wrap: wrap; }
  .topright .pill { font-size: 11px; padding: 4px 8px; }
  #showMe { padding: 8px 12px; min-height: 40px; }
  .goal { margin-bottom: 8px; padding: 8px 10px; gap: 6px; }
  .goaltext { font-size: 14px; }
  #goalHint { display: none; }
  .ladder { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .ladder li { white-space: nowrap; font-size: 12px; padding: 4px 10px; }
  .ladder li small { display: none; }
  .grid { gap: 10px; }
  .desk { padding: 10px; }
  .desk h2, .desk .tip { display: none; }
  .badge { padding: 6px 10px; margin-bottom: 8px; gap: 8px; }
  .badge > div:last-child { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
  .photo { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  .bname { font-size: 15px; }
  .buser { display: none; }
  .quest { padding: 10px; }
  .qask { font-size: 14.5px; }
  .qform input, .qform button, .ask input, .ask button { min-height: 46px; font-size: 16px; }
  .ceobtn { margin-top: 8px; padding: 10px; }
  .ceobtn.off { display: none; }
  .chathead .muted { display: none; }
  .chathead { padding-bottom: 6px; }
  button.small { margin-top: 8px; min-height: 40px; width: 100%; }
  .chat { min-height: 0; }
  .msgs { max-height: 58vh; min-height: 220px; }
  .chips button { min-height: 38px; }
  .log, .bingo, .hall { display: none; }
  body[data-sheet="log"] .log, body[data-sheet="bingo"] .bingo, body[data-sheet="hall"] .hall {
    display: flex; flex-direction: column; position: fixed; left: 8px; right: 8px; bottom: 72px; margin: 0;
    max-height: 72vh; overflow-y: auto; z-index: 40; box-shadow: 0 -10px 40px #000c;
  }
  .logbody { min-height: 0; max-height: 58vh; }
  .bingogrid { grid-template-columns: 1fr 1fr; }
  .mtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); z-index: 41; }
  .mtabs button { min-height: 52px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); position: relative; font-size: 14px; }
  .mtabs button.on { border-color: var(--gold); color: var(--gold); }
  .mtabs .dot { display: none; position: absolute; top: 7px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
  .mtabs button.new .dot { display: block; }
  .foot { padding-bottom: 8px; }
  .toast { bottom: 84px; z-index: 50; }
}

/* ---- 2026-11-06 rebuild: desktop two-column layout (>=1000px only) ---- */
@media (min-width: 880px) {
  .top, .goal, .grid, .bingo, .hall, .foot { max-width: 1280px; box-sizing: border-box; }
  .top { margin: 0 auto; padding: 18px 24px 8px; }
  .goal, .bingo, .hall { max-width: 1232px; }
  .goal { margin: 8px auto 14px; width: calc(100% - 48px); }
  .grid { margin: 0 auto; padding: 0 24px 16px; grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .bingo { margin: 0 auto 14px; width: calc(100% - 48px); }
  .hall { margin: 0 auto 16px; width: calc(100% - 48px); }
  .foot { margin-left: auto; margin-right: auto; }
  .desk { grid-column: 1; grid-row: 1; }
  .log { grid-column: 1; grid-row: 2; }
  .logbody { min-height: 200px; max-height: 360px; }
  .chat { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 12px; height: max(460px, min(calc(100vh - 310px), 860px)); }
  .msgs { max-height: none; min-height: 0; }
  .chat .ask { flex-shrink: 0; }
}

/* CEO GitHub sign-in hidden on this copy (server route /auth/github left as is). */
#ceoLogin { display: none !important; }

/* end screen: breathing room above the button; no toast on top of an open modal */
.win #closeWin { margin-top: 10px; }
.modal:not([hidden]) ~ .toast { visibility: hidden; }

/* ---- bingo progress, stickers, exit interview, brag card, Hall of Fame ---- */
.bingochip { margin-left: auto; background: var(--panel2); color: var(--gold); border: 1px solid #f2c14e66; border-radius: 99px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.bingochip b { color: var(--gold); }
.stickers { display: flex; flex-wrap: wrap; gap: 4px; font-size: 20px; margin: 10px 0 0; }
.stickers:empty { display: none; }
.exitbtn { display: block; width: 100%; margin-top: 12px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.exitbtn.hot { background: var(--gold); color: #1a1405; border-color: var(--gold); animation: pulse 1.2s 3; box-shadow: 0 0 16px #f2c14e55; }
.exitbox { max-width: 620px; text-align: center; }
.exitbox .file { text-align: left; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.exitbox .file li { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tchip { display: inline-block; background: #0b0d12; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; margin: 3px 3px 0 0; font-size: 12.5px; }
.fired { font: 56px/1.1 "Special Elite", monospace; color: var(--red); border: 5px solid var(--red); border-radius: 10px; display: inline-block; padding: 6px 18px; transform: rotate(-6deg); margin: 18px 0 10px; }
.fired.on { animation: stamp 1.2s ease-out; }
.rehired .beat { margin: 6px 0; font-size: 17px; }
.rehired .rank { font-size: 30px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
#bragCanvas { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); margin: 12px auto 6px; display: block; }
.bragbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fame { margin-bottom: 12px; }
.fame h3 { margin: 0 0 6px; font-size: 15px; }
.fame ol { margin: 0; padding-left: 26px; display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 760px) {
  .fired { font-size: 40px; }
  .rehired .rank { font-size: 24px; }
  .exitbtn { min-height: 46px; }
  .bragbtns button { flex: 1 1 140px; min-height: 44px; }
  .mtabs button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .fired.on, .exitbtn.hot { animation: none; } }
.exitbtn[hidden] { display: none; }
.exitbox .close { z-index: 3; }
.exitbox .fired { position: relative; z-index: 1; }
@media (max-width: 760px) { .exitbox .fired { margin-top: 40px; } }
/* the big rotated stamp is wider than the chat; clip (not hidden) so nothing can scroll the panel sideways */
.chat { overflow: clip; }

/* ---- next-step button: the heist hint you can tap (gold fill + arrow + words, not colour alone) ---- */
.heistnext { margin-top: 10px; }
.heistnext[hidden] { display: none; }
.heistnext.inchat { margin: 8px 0 0; flex-shrink: 0; }
.nextbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  background: var(--gold); color: #1a1405; border: 2px solid #fff3; border-radius: 12px; padding: 9px 13px; box-shadow: 0 0 14px #f2c14e44; }
.nextbtn .nl { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.nextbtn .nq { font-size: 15px; font-weight: 700; color: #1a1405; }
.nextbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nextbtn.wiggle { animation: pulse 1.2s 3; }
.msg.bot.nudge { border: 2px dashed var(--gold); }
.msg.bot.nudge::before { content: "💡 "; }
@media (max-width: 760px) { .nextbtn { min-height: 52px; } .nextbtn .nq { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .nextbtn.wiggle { animation: none; } }

/* sticker row: labelled, so it doesn't look like a stray emoji */
.stickers { align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.stickers::before { content: "Your stickers"; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* ---- ending beats: each its own screen, centred ---- */
.beatscreen.in { animation: beatin 0.45s ease-out; }
@keyframes beatin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#exitVerdict { min-height: min(60vh, 420px); display: grid; place-items: center; }
#exitVerdict[hidden], #exitRehired[hidden], #exitBrag[hidden] { display: none; }
.exitbox #exitVerdict .fired { margin: 0; }
.modal.dim { background: #000e; transition: background 0.4s; }
#exitRehired { padding: 18px 0 6px; }
#exitRehired .rank { animation: rankin 0.7s 0.15s both cubic-bezier(.2,1.4,.4,1); }
@keyframes rankin { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
#exitToBrag { margin-top: 14px; }
#exitBrag h2 { color: var(--gold); }
@media (max-width: 760px) { .exitbox .fired { margin-top: 0; } #exitVerdict { min-height: 55vh; } }
@media (prefers-reduced-motion: reduce) { .beatscreen.in, #exitRehired .rank { animation: none; } }
.card i { font-style: italic; color: var(--muted); }
/* FIRED slam: its own keyframes (the chat stamp's are positioned for the chat), nothing clipped */
.modal.dim .exitbox { overflow: visible; }
.exitbox #exitFired.on { animation: firedslam 0.5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes firedslam { 0% { opacity: 0; transform: rotate(-6deg) scale(1.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .exitbox #exitFired.on { animation: none; } }

/* ---- redacted Vault file card ---- */
.vaultcard { position: relative; overflow: hidden; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f3ead2; color: #2a2210; border: 1px solid #c9b98f; box-shadow: 0 6px 20px #0006; }
.vaultcard[hidden] { display: none; }
.vchead { display: flex; gap: 10px; align-items: center; }
.vcicon { font-size: 22px; }
.vaultcard b { color: #1a1405; }
.vcmeta { font: 11.5px var(--mono); color: #6b5d3a; }
.vcbody { margin: 10px 0 8px; display: grid; gap: 6px; }
.vcbody i { display: block; height: 11px; background: #14110a; border-radius: 2px; }
.vcbody i.gap { background: none; height: 5px; }
.vcbody .more { font: 11px var(--mono); color: #6b5d3a; }
.vcfoot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #4a3f25; }
.vcfoot code { font: 12px var(--mono); color: #1a1405; background: #e4d7b3; padding: 0 4px; border-radius: 4px; }
.vcdenied { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #8a1020; }
.vcstamp { position: absolute; right: 12px; top: 34px; font: 30px "Special Elite", monospace; color: #b3121f; border: 4px solid #b3121f; border-radius: 6px; padding: 0 10px; transform: rotate(-12deg); opacity: 0; pointer-events: none; background: #f3ead2cc; }
.vcstamp.on { animation: vcthump 1.8s ease-out both; }
@keyframes vcthump { 0% { opacity: 0; transform: rotate(-12deg) scale(1.8); } 14% { opacity: 1; transform: rotate(-12deg) scale(1); } 75% { opacity: 1; } 100% { opacity: 0.0; } }
.vaultcard.thump { animation: vccard 0.35s ease-out; }
@keyframes vccard { 30% { transform: translateY(2px) scale(0.99); } }
@media (prefers-reduced-motion: reduce) {
  .vaultcard.thump { animation: none; }
  .vcstamp.on { animation: vcfade 1.8s step-end both; }
  @keyframes vcfade { 0% { opacity: 1; transform: rotate(-12deg); } 100% { opacity: 0; } }
}
/* vault card: never squashed in the phone sheet; the stamp lands on the redacted lines, not the title */
.vaultcard { flex-shrink: 0; }
.vcstamp { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%) rotate(-12deg); }
@keyframes vcthump { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); } 14% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { @keyframes vcfade { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg); } } }

/* next-step button after it was tapped: still tappable, quieter, with a tick */
.nextbtn.asked { background: var(--panel2); color: var(--text); border-color: var(--gold); box-shadow: none; }
.nextbtn.asked .nq { color: var(--gold); }
/* phones: end screens clear the bottom tab bar */
@media (max-width: 760px) { .modal { padding-bottom: 84px; } .modal:not([hidden]) ~ .mtabs { visibility: hidden; } }

/* long pasted text wraps inside the bubble (no sideways scroll); empty HR answer gets a nudge */
.msg { overflow-wrap: anywhere; }
.qform input.nudge { animation: shake 0.4s; outline: 2px solid var(--gold); }
@media (prefers-reduced-motion: reduce) { .qform input.nudge { animation: none; } }
