/* Traitors at the Manor: candlelit study. Ink, parchment, brass, oxblood. */
:root {
  --ink: #15100f;
  --panel: #211916;
  --panel-2: #2b211d;
  --line: #43342d;
  --parchment: #ecdfc4;
  --muted: #ad9c80;
  --brass: #d0a24f;
  --brass-ink: #1c130a;
  --oxblood: #b4343f;
  --sage: #7fae92;
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --body: "Spectral", "Iowan Old Style", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  background-image: radial-gradient(120% 60% at 50% -10%, #2a1d17 0%, rgba(21, 16, 15, 0) 70%);
  background-repeat: no-repeat;
}

main { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: 1.9rem; line-height: 1.1; }
h2 { font-size: 1.5rem; line-height: 1.15; }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.top { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 0; text-align: center; }
.top h1 { font-size: 1.3rem; }
.top .who { color: var(--muted); font-size: 0.8rem; display: flex; gap: 12px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.top .linkbtn { text-decoration: none; opacity: 0.8; padding: 3px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; padding: 0; cursor: pointer; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kicker { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.clock { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-family: var(--display); color: var(--brass); }

/* buttons and inputs */
.btn, button.btn {
  font: inherit; cursor: pointer; border-radius: 4px; padding: 12px 16px; min-height: 46px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--parchment);
}
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .hold:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }
.btn.danger { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  font: inherit; width: 100%; padding: 12px; border-radius: 4px; border: 1px solid var(--line);
  background: #120d0c; color: var(--parchment);
}
input.code { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; font-family: var(--display); }
textarea { min-height: 80px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.error { color: #f0a0a6; font-size: 0.95rem; }
.notice { color: var(--brass); font-size: 0.95rem; }

/* role seal */
.role .face { visibility: hidden; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 10px 0 4px; min-height: 112px; justify-content: center; }
.role .face.show { visibility: visible; }
.rolename { font-family: var(--display); font-size: 2.4rem; letter-spacing: 0.06em; }
.rolename.traitor { color: var(--oxblood); }
.rolename.faithful { color: var(--sage); }
.mates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mates li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 0.95rem; }
.mates li.gone { text-decoration: line-through; color: var(--muted); }
.hold {
  font: inherit; cursor: pointer; padding: 14px; border-radius: 4px; min-height: 54px;
  border: 1px dashed var(--brass); background: transparent; color: var(--brass);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.hold.active { background: rgba(208, 162, 79, 0.12); }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2);
  font: inherit; color: inherit; text-align: left; width: 100%;
}
button.row { cursor: pointer; min-height: 46px; }
button.row.selected { border-color: var(--brass); background: rgba(208, 162, 79, 0.14); }
button.row:disabled { opacity: 0.5; cursor: not-allowed; }
.row .nm { overflow-wrap: anywhere; }
.badge { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--brass); color: var(--brass); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.badge.red { border-color: var(--oxblood); color: #f0a0a6; }
.badge.green { border-color: var(--sage); color: var(--sage); }
.row.fallen .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed .item { border-left: 2px solid var(--brass); padding-left: 12px; }
.feed time { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

.winner { text-align: center; padding: 22px 16px; }
.winner h2 { font-size: 2rem; }

.tally { display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.tally div { display: flex; justify-content: space-between; gap: 10px; }

/* host */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--parchment); font-size: 1rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brass); flex: none; }
.stat { display: flex; gap: 14px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.stat b { color: var(--brass); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .row { transition: background-color 0.15s, border-color 0.15s; }
}

/* The letter. Paper, wax and fire are drawn in letter.js. */
body.letter-open { overflow: hidden; }
.letter {
  --w: min(84vw, 340px);
  --h: calc(var(--w) * 0.68);
  --hand: "Homemade Apple", "Snell Roundhand", cursive;
  --paper-ink: #2b1a13;
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s ease;
}
.letter.closing { opacity: 0; }
.letter canvas { display: block; width: 100%; height: 100%; }
.letter-bg, .letter-glow, .letter-fx { position: absolute; inset: 0; }
.letter-bg { background: radial-gradient(85% 55% at 46% 42%, #33221a 0%, #1a1311 52%, #0d0a09 100%); }
.letter-glow { opacity: 0; pointer-events: none; background: radial-gradient(60% 42% at 50% 50%, rgba(255, 138, 46, 0.34), rgba(255, 110, 30, 0) 72%); mix-blend-mode: screen; }
.letter canvas.letter-fx { position: absolute; z-index: 10; pointer-events: none; }

.envelope {
  position: relative; width: var(--w); height: var(--h); cursor: pointer; opacity: 0; rotate: -1.2deg;
}
.letter.ready .envelope { animation: env-arrive 0.9s cubic-bezier(.2,.8,.25,1) forwards; }
.env-part { transition: translate 0.85s cubic-bezier(.55,0,.8,.4) 1.8s, opacity 0.5s ease 2s; }
.env-back, .env-front { position: absolute; inset: 0; }
.env-back { z-index: 1; overflow: hidden; border-radius: 2px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.62), 0 3px 6px rgba(0, 0, 0, 0.5); }
.env-front { z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 14px 6%; filter: drop-shadow(0 -1px 2px rgba(30, 18, 8, 0.4)); }
.env-front canvas { position: absolute; inset: 0; clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env-to { position: relative; font-family: var(--hand); font-size: 1rem; line-height: 1.6; color: var(--paper-ink); opacity: 0.86; rotate: -1.5deg; text-align: center; mix-blend-mode: multiply; }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 54%; z-index: 4;
  filter: drop-shadow(0 2px 2.5px rgba(30, 18, 8, 0.5));
  transform-origin: top; transform: perspective(900px) rotateX(0deg);
  transition: transform 0.75s ease-in-out 0.35s, z-index 0s linear 0.72s, translate 0.85s cubic-bezier(.55,0,.8,.4) 1.8s, opacity 0.5s ease 2s;
}
.env-flap-face { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.seal { position: absolute; left: 50%; top: 53%; z-index: 5; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.seal:focus-visible { outline: 2px solid var(--brass); outline-offset: -6px; border-radius: 50%; }
.seal span { position: absolute; inset: 0; transition: transform 0.55s cubic-bezier(.3,.6,.6,1), opacity 0.4s ease 0.2s; }
.seal-a { clip-path: polygon(0 0, 54% 0, 47% 24%, 56% 42%, 45% 61%, 54% 80%, 49% 100%, 0 100%); }
.seal-b { clip-path: polygon(54% 0, 100% 0, 100% 100%, 49% 100%, 54% 80%, 45% 61%, 56% 42%, 47% 24%); }

.sheet { position: absolute; left: 4%; right: 4%; top: 6%; height: 88%; z-index: 2; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55)); transition: translate 0.75s cubic-bezier(.6,0,.8,.4), opacity 0.45s ease 0.2s; }
.sheet canvas { position: absolute; inset: 0; }
.sheet-text { position: relative; padding: 0 9%; font-family: var(--hand); font-size: 1.12rem; line-height: 2; text-align: center; color: var(--paper-ink); opacity: 0.9; rotate: -0.8deg; mix-blend-mode: multiply; }

.note { position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: min(82vw, 322px); height: min(66vh, 372px); opacity: 0; visibility: hidden; }
.letter canvas.note-paper { position: absolute; inset: 0; }
.note-cover { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 1; transform-origin: bottom; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

.letter-controls { position: absolute; left: 0; right: 0; bottom: max(5vh, 22px); z-index: 5; display: flex; justify-content: center; }
.letter-controls > * { display: none; }
.letter-hint, .letter-btn { color: #c4b090; font-family: var(--body); font-style: italic; font-size: 1.02rem; }
.letter-btn { background: none; border: 0; border-bottom: 1px solid rgba(196, 176, 144, 0.5); padding: 8px 4px; min-height: 46px; cursor: pointer; }
.letter-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.letter[data-stage="sealed"].ready [data-show="sealed"],
.letter[data-stage="opened"] [data-show="opened"],
.letter[data-stage="note"] [data-show="note"] { display: block; animation: control-in 0.7s ease both; }
.letter[data-stage="opened"] [data-show="opened"] { animation-delay: 2.9s; }
.letter[data-stage="note"] [data-show="note"] { animation-delay: 1.9s; }

/* breaking the seal and drawing out the letter */
.letter:not([data-stage="sealed"]) .envelope { cursor: default; opacity: 1; animation: none; rotate: 0deg; }
.letter:not([data-stage="sealed"]) .seal { pointer-events: none; }
.letter:not([data-stage="sealed"]) .seal-a { transform: translate(-20px, 34px) rotate(-22deg); opacity: 0; }
.letter:not([data-stage="sealed"]) .seal-b { transform: translate(17px, 46px) rotate(17deg); opacity: 0; }
.letter:not([data-stage="sealed"]) .env-flap { transform: perspective(900px) rotateX(180deg); z-index: 1; }
.letter:not([data-stage="sealed"]) .env-part { translate: 0 120vh; opacity: 0; }
.letter:not([data-stage="sealed"]) .sheet { animation: sheet-out 2s ease-in-out 0.9s forwards; }

/* from the letter to the note */
.letter[data-stage="note"] .sheet, .letter[data-stage="burning"] .sheet { translate: 0 -120vh; opacity: 0; }
.letter[data-stage="note"] .note, .letter[data-stage="burning"] .note { visibility: visible; animation: note-unfold 1.2s ease-in-out 0.6s both; }
.letter[data-stage="note"] .note-cover, .letter[data-stage="burning"] .note-cover { animation: cover-open 1.2s ease-in-out 0.6s both; }

@keyframes env-arrive { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes control-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-out {
  0% { transform: translateY(0); z-index: 2; }
  45% { transform: translateY(-70%); z-index: 2; }
  100% { transform: translateY(0) scale(1.14); z-index: 6; }
}
@keyframes note-unfold {
  0% { opacity: 0; translate: -50% -25%; clip-path: inset(0 0 50% 0); }
  15%, 45% { opacity: 1; translate: -50% -25%; clip-path: inset(0 0 50% 0); }
  100% { opacity: 1; translate: -50% -50%; clip-path: inset(0 0 0 0); }
}
@keyframes cover-open {
  0%, 15% { transform: perspective(900px) rotateX(0deg); }
  100% { transform: perspective(900px) rotateX(-180deg); }
}

/* the home page once the note is ash */
.no-return { padding: 16px 12px 0; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.no-return h2 { font-size: 1.05rem; font-style: italic; color: var(--muted); }
.no-return p { font-size: 0.86rem; line-height: 1.36; }
.now-card { padding: 10px 2px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.now-card h2 { font-size: 1.85rem; line-height: 1.1; }
.now-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.now-line .clock { font-family: inherit; font-size: inherit; color: inherit; }
.now-line .clock::before { content: "\00b7"; margin-right: 10px; }

.drawer .role { display: flex; flex-direction: column; gap: 12px; }
.drawer .hold { width: 100%; }

/* the journey down the home page */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 22px; }
.steps li { position: relative; width: 6px; height: 6px; rotate: 45deg; background: var(--line); }
.steps li + li::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: var(--line); rotate: -45deg; translate: -19px 8px; transform-origin: center; }
.steps li.done { background: rgba(208, 162, 79, 0.5); }
.steps li.now { background: var(--brass); box-shadow: 0 0 8px rgba(226, 178, 92, 0.75); }

/* the clock: an aged face painted in dial.js, wax seals on it, and hands that turn */
main:has(.dial) { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); }
.dial { position: relative; flex: 1 1 auto; min-height: 386px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; user-select: none; -webkit-user-select: none;
  background: radial-gradient(52% 40% at 50% 40%, rgba(226, 170, 92, 0.13), rgba(226, 170, 92, 0) 100%); }
.timepiece { position: relative; flex: none; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; touch-action: none; cursor: grab; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.62), 0 3px 8px rgba(0, 0, 0, 0.5); }
.timepiece:active { cursor: grabbing; }
.timepiece-paint { position: absolute; inset: 0; border-radius: 50%; background: var(--clock-face, none) center / 100% 100% no-repeat, radial-gradient(circle, #dccba0 0 80%, #8a6a35 90%, #4f3b1d 100%); }
.timepiece-glass { position: absolute; inset: 4.5%; border-radius: 50%; pointer-events: none; background: radial-gradient(70% 46% at 32% 20%, rgba(255, 250, 235, 0.2), rgba(255, 250, 235, 0) 70%), radial-gradient(90% 90% at 50% 50%, rgba(0, 0, 0, 0) 74%, rgba(24, 12, 4, 0.2) 100%); }
.hand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; fill: #17100d; }
.hand-shadow { fill: rgba(44, 26, 12, 0.3); }
.timepiece-hub { position: absolute; left: 50%; top: 50%; width: 7.4%; height: 7.4%; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 30; background: radial-gradient(circle at 35% 30%, #f3d691 0, #bc8e41 42%, #5c3f18 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55); }
.stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.stop { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: transform 0.6s var(--ease); }
.stop-btn { position: absolute; left: calc(var(--seal, 64px) / -2); top: calc(var(--seal, 64px) / -2); width: var(--seal, 64px); height: var(--seal, 64px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; }
.stop-btn:focus-visible { outline: none; }
.stop-btn:focus-visible .stop-seal { outline: 2px solid #5c3f18; outline-offset: 1px; border-radius: 50%; }
.stop-seal { position: absolute; inset: 0; display: block; will-change: transform; filter: drop-shadow(0 2px 2.5px rgba(40, 20, 8, 0.6)); transition: filter 0.3s var(--ease); }
.stop-seal img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.stop.active .stop-seal { filter: drop-shadow(0 0 6px rgba(226, 92, 30, 0.95)) drop-shadow(0 2px 2.5px rgba(40, 20, 8, 0.6)); }
.stop.locked .stop-seal img { filter: saturate(0.5) brightness(0.8); }
.stop-lock { position: absolute; right: 2%; bottom: 2%; width: 34%; height: 34%; color: #2a1d17; filter: drop-shadow(0 0 1px rgba(255, 245, 220, 0.8)); }
.plaque { position: relative; flex: none; width: 100%; height: 100px; touch-action: pan-y; }
.plaque-item { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 18px; border: 0; background: none; color: var(--parchment); font: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.stop-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.14; }
.stop-title .badge { font-family: var(--body); font-size: 0.62rem; margin-left: 3px; vertical-align: 3px; }
.stop-sub { color: var(--muted); font-size: 0.92rem; line-height: 1.32; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.plaque-item.locked .stop-title { color: var(--muted); }
.dial-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; color: var(--muted); font-style: italic; font-size: 0.82rem; pointer-events: none; transition: opacity 0.3s var(--ease); }

/* motion: one easing, short durations, immediate response to touch */
:root { --ease: cubic-bezier(0.2, 0, 0.2, 1); }
main { transition: transform 0.42s var(--ease), filter 0.36s var(--ease); }
body.drawer-open main { transform: scale(0.94); filter: brightness(0.5) blur(2.5px); }
button.row { transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.stop-btn:active .stop-seal img { transform: scale(0.95); }
.stop-seal img { transition: transform 0.15s var(--ease), filter 0.3s var(--ease); }
button.row:not(:disabled):active { transform: scale(0.985); }
.steps li { transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
@media (hover: hover) {
  button.row:not(:disabled):hover { border-color: rgba(208, 162, 79, 0.6); }
}

/* pop-ups: a sheet that rises from the bottom of the phone */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
.drawer-back { position: absolute; inset: 0; background: rgba(8, 6, 5, 0.42); animation: control-in 0.3s var(--ease) both; }
.drawer-panel { position: relative; width: 100%; max-width: 560px; max-height: 84vh; max-height: 84dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid rgba(var(--tint), 0.65); border-radius: 22px; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6); --tint: 208, 162, 79; }
.drawer-notes { --tint: 198, 146, 52; } .drawer-quiz { --tint: 136, 124, 112; } .drawer-action { --tint: 176, 44, 58; } .drawer-role { --tint: 112, 74, 168; } .drawer-guests { --tint: 78, 118, 178; } .drawer-record { --tint: 192, 110, 46; }
.drawer-top { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 18px 14px; background: linear-gradient(180deg, rgba(var(--tint), 0.5), rgba(var(--tint), 0.08)); touch-action: none; cursor: grab; flex: none; }
.drawer-grab { position: absolute; left: 50%; top: 9px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(236, 223, 196, 0.42); }
.drawer-top .linkbtn { min-height: 32px; flex: none; }
.drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  main, button.row { transition: none; }
  body.drawer-open main { transform: none; filter: brightness(0.5); }
  .letter *, .letter, .drawer * { animation-duration: 0.01s !important; animation-delay: 0s !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
}

@media (max-height: 640px) {
  .no-return p { display: none; }
  .no-return { padding-top: 8px; }
}

/* guest prompts */
.status-strip { display: flex; gap: 10px; justify-content: center; margin: 6px 0 0; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.shield-mark { color: var(--brass); }
.no-return.ghost h2 { color: #f0a0a6; }
.prompt { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
.prompt h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.locked-in { margin: 0; color: var(--brass); }
.inline-form { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.inline-form input { flex: 1 1 140px; width: auto; }
.whisper-big { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; margin: 4px 0; color: var(--parchment); }
.sentence { margin: 0; padding: 10px 14px; border-left: 2px solid var(--brass); font-style: italic; font-size: 1.1rem; }
.mission { border: 1px solid var(--oxblood); border-radius: 4px; padding: 10px 12px; color: #f3c9cc; background: rgba(116, 20, 30, 0.18); }
.prompt.cone { text-align: center; }
.pot { font-size: 1.2rem; }
.small { font-size: 0.85rem; }
.drawer-panel.drawer-round { --tint: 176, 44, 58; }

/* game master console */
.chips, .stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 0.8rem; color: var(--muted); }
.chip.now { border-color: var(--brass); color: var(--brass); }
.chip.off { text-decoration: line-through; }
.stepper .btn { flex: 1 1 auto; }
.roster { display: flex; flex-direction: column; gap: 8px; }
.roster-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); }
.roster-row.fallen .roster-name input { text-decoration: line-through; color: var(--muted); }
.roster-name { flex: 1 1 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.roster-name input { flex: 1 1 140px; width: auto; padding: 8px; }
.tick { flex-direction: row; align-items: center; gap: 6px; font-size: 0.85rem; }
.tick select { width: auto; padding: 6px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.two { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.result { border-left: 2px solid var(--brass); padding: 2px 0 2px 12px; }
.result p { margin: 4px 0; }
.override { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-top: 6px; }
.dash hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 6px 0; }
.dash h3 { margin: 4px 0 0; }
.chain { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 3px; }
.qblock summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.bar { display: block; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--oxblood); }
.bar span.held { background: var(--sage); }
.qedit { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary h2 { display: inline; }
.events { margin: 0; padding-left: 18px; font-size: 0.85rem; max-height: 300px; overflow: auto; }
.actas { border-color: var(--brass); }
