* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: dark;
  --void: #0a0a0f;
  --srf: #101016;
  --srf2: #16161d;
  --hair: #24242e;
  --hair2: #2b2b35;
  --silver: #d7d7df;
  --bone: #e7e3d9;
  --mut: #8a8a96;
  --violet: #8b7bff;   /* the cold of the seal — secrecy only: lock, "only you", verify */
  --ember: #ff6a2c;    /* heat & eruption — light through a seal, the flood when boxes open */
  --hot: #ff4a7e;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Chakra Petch", "JetBrains Mono", sans-serif;
}
html { min-height: 100%; background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--void);
  color: var(--silver);
  font-family: var(--mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.keyboard-open { overflow: hidden; }
button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(139, 123, 255, 0.3); }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130% 100% at 50% 30%, transparent 45%, #060608 100%); }
.sealed-terminal-button {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  z-index: 45;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 227, 217, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(12px);
  color: var(--mut);
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.sealed-terminal-button:hover,
.sealed-terminal-button:focus-visible {
  color: var(--bone);
  border-color: rgba(139, 123, 255, 0.58);
  box-shadow: 0 0 28px rgba(139, 123, 255, 0.20);
  transform: translateY(-1px);
}
.sealed-terminal-modal[hidden] { display: none; }
.sealed-terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}
.sealed-terminal-scrim { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }
.sealed-terminal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(74vh, 680px);
  overflow: auto;
  border: 1px solid var(--hair2);
  background: linear-gradient(180deg, rgba(16,16,22,.98), rgba(7,7,11,.98));
  box-shadow: 0 24px 90px rgba(0,0,0,.62), 0 0 42px rgba(139,123,255,.12);
  padding: 18px;
  text-align: left;
}
.sealed-terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.terminal-kicker { color: var(--violet); font-size: 10px; letter-spacing: .18em; }
.terminal-close { width: 32px; height: 32px; border: 1px solid var(--hair); background: var(--srf2); color: var(--mut); font-size: 20px; line-height: 1; cursor: pointer; }
.sealed-terminal-panel h2 { margin-top: 15px; color: var(--bone); font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1; text-transform: uppercase; }
.sealed-terminal-panel p { margin-top: 8px; color: var(--mut); font-size: 12px; }
.sealed-terminal-log { margin-top: 16px; border: 1px solid var(--hair); background: #07070b; font-size: 12px; line-height: 1.55; }
.terminal-line { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 11px 12px; border-bottom: 1px solid rgba(43,43,53,.72); }
.terminal-line:last-child { border-bottom: 0; }
.terminal-prompt { color: var(--violet); }
.terminal-main { min-width: 0; color: var(--silver); }
.terminal-meta { display: block; margin-top: 3px; color: var(--mut); font-size: 10px; letter-spacing: .06em; }
.terminal-redacted { color: #ff8ba8; }
.terminal-empty { padding: 16px; color: var(--mut); font-size: 12px; }

.sealed-terminal-compose {
  margin-top: 16px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}
.terminal-whisper-field {
  min-height: 100px;
  align-items: center;
}
.terminal-whisper-field textarea {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  overflow-y: auto;
  font-size: 13px;
}
.terminal-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.terminal-compose-status {
  min-width: 0;
  min-height: 34px;
  color: var(--mut);
  font-size: 11px;
  line-height: 1.45;
}
.terminal-send {
  min-height: 38px;
  padding: 0 12px;
  font-size: 11px;
}
.terminal-voice-button.listening {
  color: var(--hot);
  border-color: rgba(255, 74, 126, 0.72);
  background: rgba(255, 74, 126, 0.12);
  box-shadow: 0 0 28px rgba(255, 74, 126, 0.32);
  animation: voiceButtonPulse 1s ease-in-out infinite;
}
.voice-state[data-state="mic-allowed"] {
  color: var(--bone);
  border-color: rgba(139, 123, 255, 0.48);
  background: rgba(139, 123, 255, 0.08);
}
@media (max-width: 520px) {
  .terminal-compose-actions { align-items: stretch; flex-direction: column; }
  .terminal-send { width: 100%; }
}

.app-shell { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; }
.view { display: none; min-height: 100vh; min-height: 100svh; flex-direction: column; position: relative; }
.view.active { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .view.active .content { animation: rise 0.42s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 66px 14px 18px;
  border-bottom: 1px solid var(--hair);
  color: var(--mut);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.wm-sm {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #9a98a4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.wm-home { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 0.15s ease; }
.wm-home:hover { opacity: 0.78; }
.wm-home:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }
.st { display: inline-flex; align-items: center; min-width: 0; text-align: right; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 8px var(--silver); margin-right: 7px; flex: 0 0 auto; }
/* Topbar SEALED dot: violet + slow breath, consistent with the landing seal. */
.st .dot { background: var(--violet); box-shadow: 0 0 8px var(--violet); animation: sealedBreath 3.4s ease-in-out infinite; }
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 42px 22px calc(116px + env(safe-area-inset-bottom));
  text-align: center;
}
.landing-content { padding-top: calc(44px + env(safe-area-inset-top)); position: relative; z-index: 1; }
/* Mic-on landing field (three.js). Sits behind the content, fades in only when
   the mic wakes; non-interactive. */
.landing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.landing-bg.on { opacity: 1; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.hall-wrap { max-width: 640px; }
.hero-wm {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 18vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d6d4df 44%, #8d8b97 56%, #f3f2f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(176, 166, 206, 0.3));
}
/* Stacked emblem logo (miniapp landing) — the only loud object in the room. */
.hero-logo { background: none; }
.hero-logo img {
  display: block;
  width: clamp(150px, 50vw, 270px);
  height: auto;
  margin: 0 auto;
}
.sealed {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
  color: var(--mut);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.sealed .dot {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  animation: sealedBreath 3.4s ease-in-out infinite;
}
@keyframes sealedBreath {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 5px rgba(139, 123, 255, 0.45); }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(139, 123, 255, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .sealed .dot, .st .dot { animation: none; }
}
.sep { color: #54545e; }
.loop-strip {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 28px auto 0;
  text-align: left;
}
.loop-strip span {
  min-width: 0;
  border: 1px solid rgba(215, 215, 223, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  color: var(--mut);
  padding: 10px 11px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 13px; color: var(--mut); font-size: 11px; letter-spacing: 0.22em; }
.headline { color: var(--silver); font-size: clamp(1.4rem, 7vw, 2.05rem); line-height: 1.22; letter-spacing: 0.005em; }
.sub { margin-top: 15px; color: var(--mut); font-size: 13px; line-height: 1.7; }
/* Reserve the status line's tallest (initial) height so swapping the message on
   mic click can't shrink it and re-center the column — keeps the composer fixed. */
#whisper-status { min-height: 5.2em; }

/* Whisper intro as a living thread: one line types a sentence, erases it, and
   types the next, settling on the ask. JS (typeWhisperConvo) drives it; CSS
   provides the caret and the accent colours. The .convo reserves a fixed
   height so swapping lines never shifts the field below it. */
.convo {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* One consistent size for every thread line, so they all stay on a single row. */
#whisper-thread {
  margin: 0;
  font-size: clamp(0.8rem, 3.8vw, 1.25rem);
  line-height: 1.3;
  color: var(--silver);
  white-space: nowrap;
}
.c-blind { color: var(--violet); }   /* "provably blind" — the cold of the seal */
.c-confess { color: var(--ember); }  /* "confesses" — the heat */
.cline.typing::after {
  content: '▌';
  margin-left: 2px;
  color: var(--mut);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cline.typing::after { display: none; }
}
.tell { color: var(--violet); }
.whisper { width: 100%; margin-top: 28px; text-align: left; }
.whisper-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; /* top-align the prompt with the first line of the field */
  gap: 14px;
  min-height: 116px;
  border-bottom: 1px solid var(--hair2);
  padding: 12px 4px 14px;
}
.whisper-field .voice-button { align-self: center; } /* keep the mic centred */
.prompt { color: var(--violet); font-size: 16px; line-height: 1.45; }
textarea {
  width: 100%;
  min-width: 0;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--silver);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.45;
}
textarea::placeholder { color: #54545e; }
.voice-button {
  width: 72px;
  height: 72px;
  min-width: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(231,227,217,.22);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.10), rgba(255,255,255,.035) 62%, rgba(139,123,255,.08));
  color: var(--bone);
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 8px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.32);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.voice-button.listening { color: var(--hot); border-color: rgba(255,74,126,.78); background: rgba(255,74,126,.13); box-shadow: 0 0 0 10px rgba(255,74,126,.08), 0 0 34px rgba(255,74,126,.34), 0 14px 34px rgba(0,0,0,.36); }
.steps { width: 100%; margin-top: 26px; border-top: 1px solid var(--hair); text-align: left; }
.step { display: flex; gap: 16px; align-items: baseline; padding: 13px 2px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.step .n { min-width: 18px; color: var(--mut); font-size: 11px; }
.step .x { color: var(--silver); }
.hash { color: var(--mut); overflow-wrap: anywhere; }
.chips { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.chip {
  border: 1px solid var(--hair2);
  background: transparent;
  color: var(--mut);
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.chip.on { border-color: var(--silver); background: rgba(215, 215, 223, 0.07); color: var(--silver); }
.panel { width: 100%; margin-top: 26px; border: 1px solid var(--hair); background: var(--srf); text-align: left; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.prow:last-child { border-bottom: 0; }
.prow .k { color: var(--mut); font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; }
.prow .v { color: var(--silver); text-align: right; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin-top: 26px; }
.stat { border: 1px solid var(--hair); padding: 12px 8px; text-align: center; }
.stat .k { color: var(--mut); font-size: 10px; letter-spacing: 0.12em; }
.stat .v { margin-top: 5px; color: var(--silver); font-size: 18px; }
.wait-ledger {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 auto 16px;
}
.wait-metric {
  min-width: 0;
  border: 1px solid var(--hair);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 72%),
    var(--srf);
  padding: 10px 10px 9px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.wait-metric .k,
.wait-metric > span:first-child {
  display: block;
  color: var(--mut);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .14em;
}
.wait-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--bone);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.12rem, 6vw, 1.7rem);
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wait-metric > span:last-child {
  display: block;
  margin-top: 5px;
  color: var(--mut);
  font-size: 9px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.wait-metric.pnl strong { color: #9effc6; text-shadow: 0 0 18px rgba(80,255,166,.18); }
.wait-metric.pnl strong.loss { color: #ff8ba8; text-shadow: 0 0 18px rgba(255,74,126,.18); }
.status-ribbon {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  border: 1px solid rgba(139, 123, 255, 0.28);
  background: linear-gradient(90deg, rgba(139, 123, 255, 0.12), rgba(255, 255, 255, 0.018));
  color: var(--bone);
  padding: 9px 11px;
  text-align: left;
  font-size: 11px;
  line-height: 1.35;
}
.ribbon-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9effc6;
  box-shadow: 0 0 14px rgba(80, 255, 166, 0.55);
}
.wait-headline { margin-bottom: 0; }
.wait-panel { margin-top: 18px; }
.wait-sub { margin-top: 12px; }
.board { width: 100%; margin-top: 22px; text-align: left; }
.board + .board { margin-top: 26px; }
.board-title { margin-bottom: 9px; color: var(--violet); font-size: 10px; letter-spacing: .18em; }
.event-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.event-card,
.action-card,
.notification-stub {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.012)), var(--srf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.event-card {
  min-width: 0;
  padding: 13px;
  text-align: left;
}
.event-card.hot {
  border-color: rgba(158, 255, 198, 0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 24px rgba(80,255,166,.08);
}
.event-card .k,
.action-card .k,
.notification-stub .k {
  display: block;
  color: var(--mut);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
}
.event-card strong,
.action-card strong,
.notification-stub strong {
  display: block;
  min-width: 0;
  margin-top: 7px;
  color: var(--bone);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-card span:last-child,
.action-card span:last-child,
.notification-stub p {
  display: block;
  margin-top: 5px;
  color: var(--mut);
  font-size: 10px;
  line-height: 1.45;
}
.market-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  border: 1px solid rgba(158, 255, 198, 0.34);
  color: #9effc6;
  padding: 2px 5px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.brow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.brow.head { color: var(--mut); font-size: 10px; letter-spacing: 0.14em; border-bottom: 1px solid var(--hair2); }
.brow .rank { color: var(--mut); }
.brow .dn { color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.you .dn { color: var(--bone); }
.brow .pulse { color: var(--mut); text-align: right; white-space: nowrap; }
.brow .pct { color: var(--silver); }
.market-row { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(62px, auto) minmax(54px, auto); gap: 10px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--hair); font-size: 12px; }
.market-row.head { color: var(--mut); font-size: 10px; letter-spacing: .14em; border-bottom-color: var(--hair2); }
.market-row .rank { color: var(--mut); }
.market-q { color: var(--silver); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-size { color: var(--bone); text-align: right; white-space: nowrap; }
.market-trades { color: var(--mut); text-align: right; white-space: nowrap; }
.board-note { margin-top: 18px; color: var(--mut); font-size: 11px; line-height: 1.7; text-align: center; }
.notification-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  text-align: left;
}
.mini-toggle {
  min-width: 54px;
  min-height: 34px;
  border: 1px solid rgba(158, 255, 198, 0.36);
  background: rgba(158, 255, 198, 0.10);
  color: #9effc6;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mini-toggle[aria-pressed="false"] {
  border-color: var(--hair2);
  background: var(--srf2);
  color: var(--mut);
}
.cmdbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--hair);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(10px);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
}
.hint { min-width: 0; color: var(--mut); font-size: 12px; letter-spacing: 0.04em; }
.actions { display: flex; align-items: center; gap: 12px; }
.btn-primary, .btn-ghost {
  min-height: 48px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: var(--bone);
  color: var(--void);
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
}
.btn-primary:disabled { opacity: 0.42; }
.btn-ghost {
  border: 1px solid var(--hair2);
  background: var(--srf2);
  color: var(--silver);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.ret { font-size: 14px; opacity: 0.55; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .chip:focus-visible, .voice-button:focus-visible, .sealed-terminal-button:focus-visible, .terminal-close:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
body.keyboard-open .view.active .content { justify-content: flex-start; padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.keyboard-open .hero-wm { font-size: clamp(2.6rem, 15vw, 4rem); }
body.keyboard-open .cmdbar { position: fixed; }
@media (max-width: 560px) {
  .content { padding-left: 18px; padding-right: 18px; }
  .loop-strip,
  .event-strip,
  .after-card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cmdbar { flex-direction: column; align-items: stretch; padding-left: 18px; padding-right: 18px; }
  .hint { text-align: center; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; width: 100%; text-align: center; clip-path: none; }
  .prow { align-items: flex-start; flex-direction: column; gap: 4px; }
  .prow .v { text-align: left; }
  .event-card strong,
  .action-card strong,
  .notification-stub strong { white-space: normal; }
}
@media (max-width: 380px) {
  .topbar { padding-left: 14px; padding-right: 62px; font-size: 10px; }
  .content { padding-left: 14px; padding-right: 14px; }
  .headline { font-size: 1.32rem; }
  .chips { gap: 7px; }
  .chip { padding-left: 10px; padding-right: 10px; }
  .brow { gap: 8px; font-size: 12px; }
  .brow .pulse { font-size: 11px; }
  .market-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .market-row .market-trades { grid-column: 2 / 4; text-align: left; font-size: 10px; }
  .market-row.head .market-trades { display: none; }
}

/* Shader preview should never be wider than the viewport/debug panel. */
html.bestiary-html .daemon-preview,
html.bestiary-html .daemon-stage {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.bestiary-html .daemon-stage canvas {
  max-width: 100% !important;
}

/* Evaluation mode: make the selected daemon large enough to judge the effect. */
html.bestiary-html .daemon-preview {
  grid-template-columns: minmax(220px, 0.42fr) minmax(320px, 1.58fr) !important;
  min-height: min(94vh, 1040px) !important;
}

html.bestiary-html .daemon-stage {
  min-height: min(88vh, 960px) !important;
}

@media (max-width: 860px) {
  html.bestiary-html .daemon-preview {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  html.bestiary-html .daemon-stage {
    min-height: 86vh !important;
  }
}

/* Private daemon reveal — Three.js shader stage with static image fallback. */
.reveal-wrap { max-width: 520px; }
.daemon-reveal-panel {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--hair);
  background: var(--srf);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.daemon-reveal-stage {
  position: relative;
  width: 100%;
  min-height: min(54vh, 430px);
  background: #101016;
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.daemon-reveal-stage canvas,
.daemon-reveal-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.daemon-reveal-stage canvas { z-index: 2; }
.daemon-reveal-fallback {
  z-index: 1;
  object-fit: contain;
  padding: 18px;
  filter: contrast(1.08) brightness(0.86);
}
.daemon-reveal-stage.webgl-ready .daemon-reveal-fallback {
  opacity: 0.16;
  filter: contrast(1.18) brightness(0.62) saturate(0.7) blur(1px);
  mix-blend-mode: screen;
}
.daemon-reveal-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px),
    radial-gradient(70% 62% at 50% 42%, transparent 45%, rgba(0,0,0,.48) 100%);
  mix-blend-mode: screen;
  opacity: .38;
}
.daemon-reveal-copy {
  display: grid;
  gap: 4px;
  padding: 15px 18px 17px;
}
.daemon-reveal-copy .k {
  color: var(--mut);
  font-size: 10px;
  letter-spacing: .16em;
}
.daemon-reveal-copy strong {
  color: var(--bone);
  font-size: 22px;
  line-height: 1.05;
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
}
.daemon-reveal-copy span:last-child {
  color: var(--mut);
  font-size: 12px;
}
.daemon-wait-portrait {
  --wait-mic: 0;
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
  margin: 24px auto 22px;
  border: 1px solid var(--hair);
  background: #101016;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  isolation: isolate;
}
.daemon-wait-portrait img,
.daemon-wait-portrait video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101016;
  filter: contrast(1.08) brightness(1.08) saturate(1.12);
}
.daemon-wait-portrait video {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.daemon-wait-portrait video[hidden] {
  display: none;
}
.daemon-wait-portrait.daemon-wait-alive {
  animation: daemonWaitBreath 3.8s ease-in-out infinite;
}
.daemon-wait-portrait.daemon-wait-alive img,
.daemon-wait-portrait.daemon-wait-alive video {
  animation: daemonWaitPhotoPulse 3.8s ease-in-out infinite;
}
.daemon-wait-portrait.mic-reactive {
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.40),
    0 0 calc(16px + (30px * var(--wait-mic))) rgba(139, 123, 255, calc(0.18 + (0.18 * var(--wait-mic)))),
    0 0 calc(10px + (22px * var(--wait-mic))) rgba(255, 74, 126, calc(0.10 + (0.14 * var(--wait-mic))));
}
.daemon-wait-portrait.mic-reactive img {
  filter:
    contrast(calc(1.08 + (0.05 * var(--wait-mic))))
    brightness(calc(1.06 + (0.07 * var(--wait-mic))))
    saturate(calc(1.10 + (0.12 * var(--wait-mic))));
}
.daemon-wait-portrait.mic-reactive::before {
  opacity: calc(0.36 + (0.16 * var(--wait-mic)));
}
.daemon-wait-portrait.mic-reactive::after {
  opacity: calc(0.42 + (0.14 * var(--wait-mic)));
}
.daemon-wait-shader {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.58;
}
.daemon-wait-portrait::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 42%, rgba(146, 118, 255, 0.22) 58%, transparent 73%),
    conic-gradient(from 0deg at 50% 50%, rgba(255, 74, 126, 0.0), rgba(255, 74, 126, 0.16), rgba(93, 94, 255, 0.20), rgba(255, 74, 126, 0.0)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.026) 0 1px, transparent 1px 10px);
  opacity: 0.36;
  mix-blend-mode: screen;
  animation: daemonWaitScan 8s linear infinite, daemonWaitHalo 5.6s ease-in-out infinite;
}
.daemon-wait-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(231, 227, 217, 0.22);
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.10) 50%, transparent 64%);
  background-size: 260% 100%;
  box-shadow:
    inset 0 0 46px rgba(0, 0, 0, 0.28),
    inset 0 0 34px rgba(139, 123, 255, 0.14),
    0 0 20px rgba(255, 74, 126, 0.12);
  animation: daemonWaitAura 5.2s ease-in-out infinite, daemonWaitSweep 7.5s ease-in-out infinite;
}
@keyframes daemonWaitPhotoPulse {
  0%, 100% { filter: contrast(1.07) brightness(1.03) saturate(1.08); }
  50% { filter: contrast(1.10) brightness(1.11) saturate(1.16); }
}
@keyframes daemonWaitBreath {
  0%, 100% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30), 0 0 12px rgba(139, 123, 255, 0.08), 0 0 0 rgba(255, 74, 126, 0); }
  50% { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 30px rgba(139, 123, 255, 0.24), 0 0 18px rgba(255, 74, 126, 0.12); }
}
@keyframes daemonWaitAura {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.62; }
}
@keyframes daemonWaitHalo {
  0%, 100% { opacity: 0.28; transform: rotate(0deg) scale(1); }
  50% { opacity: 0.54; transform: rotate(4deg) scale(1.02); }
}
@keyframes daemonWaitScan {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 28px; }
}
@keyframes daemonWaitSweep {
  0%, 28% { background-position: 130% 0; opacity: 0.24; }
  54% { background-position: -90% 0; opacity: 0.48; }
  100% { background-position: -90% 0; opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  .daemon-wait-portrait.daemon-wait-alive,
  .daemon-wait-portrait.daemon-wait-alive img,
  .daemon-wait-portrait::before,
  .daemon-wait-portrait::after {
    animation: none;
  }
}
@media (max-width:560px) {
  .daemon-reveal-stage { min-height: 360px; }
  .daemon-reveal-fallback { padding: 12px; }
  .daemon-wait-portrait { width: min(100%, 320px); }
  .daemon-wait-shader { opacity: 0.42; }
  .daemon-wait-portrait::before { opacity: 0.30; }
  .daemon-wait-portrait::after { opacity: 0.36; }
}

/* Reveal screen polish: name first, smaller apparition. */
.reveal-wrap { max-width: 460px; }
.daemon-reveal-panel { margin-top: 18px; }
.daemon-reveal-copy-top {
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.075), rgba(255,255,255,0.018));
  text-align: center;
}
.daemon-reveal-copy-top strong {
  font-size: clamp(1.58rem, 7.2vw, 2.35rem);
  letter-spacing: 0.04em;
}
.daemon-reveal-stage {
  min-height: min(38vh, 300px);
  max-height: 320px;
}
.daemon-reveal-fallback { padding: 26px 34px; }
@media (max-width: 760px) {
  .reveal-wrap { max-width: 410px; }
  .daemon-reveal-panel { margin-top: 15px; }
  .daemon-reveal-stage { min-height: min(35vh, 270px); }
  .daemon-reveal-fallback { padding: 24px 32px; }
}

/* Wait-room refined layout */
.wait-wrap { max-width: 420px; }
.wait-ledger { margin-bottom: 10px; }
.wait-metric.balance strong {
  text-shadow: 0 0 18px rgba(139, 123, 255, 0.26);
}
.daemon-wait-card {
  width: 100%;
}
.wait-card-header {
  display: grid;
  gap: 3px;
  padding: 11px 16px 10px;
  border: 1px solid var(--hair);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.065), rgba(255, 255, 255, 0.012));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.wait-card-header .k {
  color: var(--mut);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.wait-card-header strong {
  color: var(--bone);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 6.5vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wait-card-status {
  color: var(--mut);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.wait-card-footer {
  padding: 7px 14px 8px;
  border: 1px solid var(--hair);
  border-top: 0;
  background: var(--srf);
  color: var(--mut);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daemon-wait-card .daemon-wait-portrait {
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 0;
  border-bottom: 0;
}
.after-card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.action-card {
  min-width: 0;
  padding: 12px;
  text-align: left;
}
.alert-card {
  border-color: rgba(139, 123, 255, 0.28);
}

/* Voice recording states — make tap/hold behavior unmistakable. */
.voice-state { display: none !important; }
.voice-button.arming {
  color: var(--bone);
  border-color: rgba(139, 123, 255, 0.62);
  background: rgba(139, 123, 255, 0.10);
  box-shadow: 0 0 24px rgba(139, 123, 255, 0.22);
}
.voice-button.listening {
  color: var(--hot);
  border-color: rgba(255, 74, 126, 0.72);
  background: rgba(255, 74, 126, 0.12);
  box-shadow: 0 0 28px rgba(255, 74, 126, 0.32);
  animation: voiceButtonPulse 1s ease-in-out infinite;
}
@keyframes voiceButtonPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes voiceStatePulse { 0%, 100% { transform: translateY(0); opacity: .82; } 50% { transform: translateY(-1px); opacity: 1; } }
@media (max-width: 520px) {
  .whisper-field { gap: 10px; min-height: 112px; padding-block: 10px 12px; }
  .voice-button { width: 76px; height: 76px; min-width: 76px; }
  .voice-button svg { width: 30px; height: 30px; }
}
@media (hover: none) and (pointer: coarse) {
  .view.active .content { animation-duration: 0.24s; }
  .daemon-wait-portrait.daemon-wait-alive,
  .daemon-wait-portrait.daemon-wait-alive img {
    animation-duration: 5.6s;
  }
  .daemon-wait-portrait::before,
  .daemon-wait-portrait::after {
    animation-duration: 10s, 9s;
  }
}
.action-card.fundable { cursor: pointer; }
.action-card.fundable:active { transform: scale(0.99); }


/* ENS subname chip — pinned to the top-right of the card, sharp corners to
   match the angular card styling. */
.daemon-reveal-copy-top,
.wait-card-header { position: relative; }
.ens-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: fit-content;
  max-width: 60%;
  padding: 3px 7px;
  border: 1px solid rgba(104, 211, 255, 0.28);
  border-radius: 0;
  background: rgba(60, 140, 255, 0.10);
  color: #9fdcff;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ─── Feed the daemon: returning-player deposit CTA + inline Blink modal ─────── */
.feed-cta[hidden] { display: none; }
.feed-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; max-width: 320px; min-height: 56px; margin: 24px auto 0; cursor: pointer;
  border: 0; background: var(--bone); color: var(--void); padding: 13px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  transition: transform .16s ease, box-shadow .16s ease;
}
.feed-cta:hover, .feed-cta:focus-visible { transform: translateY(-1px); box-shadow: 0 0 30px rgba(139,123,255,.28); }
.feed-cta:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.feed-cta-main { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.feed-cta-sub { font-size: 10px; font-weight: 500; letter-spacing: .04em; opacity: .62; }

body.feed-open { overflow: hidden; }
.feed-modal[hidden] { display: none; }
.feed-modal {
  position: fixed; inset: 0; z-index: 72; display: grid; place-items: end center;
  padding: 18px; background: rgba(0, 0, 0, 0.5);
}
.feed-scrim { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }
.feed-panel {
  position: relative; z-index: 1; width: min(640px, 100%); max-height: min(88vh, 860px);
  overflow: auto; border: 1px solid var(--hair2);
  background: linear-gradient(180deg, rgba(16,16,22,.99), rgba(7,7,11,.99));
  box-shadow: 0 24px 90px rgba(0,0,0,.66), 0 0 42px rgba(139,123,255,.14); padding: 18px; text-align: left;
}
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.feed-kicker { color: var(--violet); font-size: 10px; letter-spacing: .18em; }
.feed-close { width: 32px; height: 32px; border: 1px solid var(--hair); background: var(--srf2); color: var(--mut); font-size: 20px; line-height: 1; cursor: pointer; }
.feed-panel h2 { margin-top: 15px; color: var(--bone); font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.02; text-transform: uppercase; }
.feed-copy { margin-top: 8px; color: var(--mut); font-size: 12px; line-height: 1.6; }
.feed-copy em { color: var(--silver); font-style: normal; }
.feed-form { margin-top: 16px; display: grid; gap: 8px; }
.feed-label { color: var(--mut); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.feed-amount {
  width: 100%; border: 1px solid var(--hair2); background: #07070b; color: var(--bone);
  padding: 14px; font: inherit; font-size: 16px; outline: none;
}
.feed-amount:focus { border-color: rgba(139,123,255,.7); box-shadow: 0 0 0 3px rgba(139,123,255,.12); }
.feed-submit {
  margin-top: 4px; min-height: 50px; cursor: pointer; border: 0; background: var(--bone); color: var(--void);
  padding: 14px 22px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.feed-submit:disabled { opacity: .5; cursor: wait; }
.feed-status {
  margin-top: 14px; border: 1px solid var(--hair); background: #07070b; color: var(--silver);
  padding: 13px; font-size: 12px; line-height: 1.5;
}
.feed-status[data-tone="work"] { border-color: rgba(139,123,255,.45); color: #c7bfff; }
.feed-status[data-tone="error"] { border-color: rgba(255,139,168,.5); color: #ff8ba8; }
.feed-blink { margin-top: 14px; position: relative; }
.feed-blink:not(:empty) { min-height: 560px; overflow: hidden; border: 1px solid var(--hair2); background: #05030a; }
.feed-blink-blocker {
  position: absolute; left: 6%; right: 6%; top: 58.75%; height: 10.5%; z-index: 3;
  display: grid; place-items: center; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(8,6,12,.62); color: rgba(255,255,255,.8);
  font: 800 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  cursor: not-allowed; backdrop-filter: blur(2px);
}
@media (max-width: 520px) { .feed-blink:not(:empty) { min-height: 520px; } .feed-cta { max-width: none; } }

/* ── Whisper mic: unmistakable idle / recording / transcribing states ──────── */
/* Tidier resting button (the big 8px ring read as misaligned/bulky). */
.voice-button { box-shadow: 0 0 0 3px rgba(255,255,255,.02), 0 10px 26px rgba(0,0,0,.3); }
.whisper-field .voice-button { align-self: center; }

/* Recording: solid red, white stop-square, expanding ring. */
.voice-button.listening {
  color: #fff;
  border-color: #ff4a7e;
  background: radial-gradient(circle at 50% 40%, rgba(255,74,126,.96), rgba(214,40,90,.94));
  animation: recRing 1.25s ease-out infinite;
}
.voice-button.listening svg { display: none; }
.voice-button.listening::before {
  content: ""; width: 20px; height: 20px; border-radius: 5px; background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.55);
}
@keyframes recRing {
  0%   { box-shadow: 0 0 0 0 rgba(255,74,126,.55), 0 10px 26px rgba(0,0,0,.32); }
  70%  { box-shadow: 0 0 0 16px rgba(255,74,126,0), 0 10px 26px rgba(0,0,0,.32); }
  100% { box-shadow: 0 0 0 0 rgba(255,74,126,0), 0 10px 26px rgba(0,0,0,.32); }
}

/* Transcribing: violet spinner while STT runs (replaces the mic glyph). */
.voice-button.transcribing {
  color: var(--violet); border-color: rgba(139,123,255,.6);
  background: rgba(139,123,255,.12); animation: none;
}
.voice-button.transcribing svg { display: none; }
.voice-button.transcribing::before {
  content: ""; width: 26px; height: 26px; border-radius: 999px;
  border: 3px solid rgba(139,123,255,.22); border-top-color: var(--violet);
  animation: micSpin .8s linear infinite;
}
@keyframes micSpin { to { transform: rotate(360deg); } }

/* ── Pact page: the deal list ──────────────────────────────────────────────── */
.deal-list { width: 100%; margin: 24px 0 6px; padding: 0; list-style: none; display: grid; gap: 14px; text-align: left; }
.deal-list li { position: relative; padding-left: 22px; color: var(--silver); font-size: 14px; line-height: 1.5; }
.deal-list li::before { content: "›"; position: absolute; left: 4px; top: 0; color: var(--violet); font-weight: 700; }
.deal-list strong { color: var(--bone); font-weight: 600; }
.deal-list + .feed-cta { margin-top: 22px; }

/* Wait page: single remaining action card spans full width (Telegram-pings card removed). */
.after-card-grid-single { grid-template-columns: 1fr; }

/* ── Prominent floating mic (opens the whisper modal) ──────────────────────── */
.sealed-terminal-button {
  width: 34px; height: 34px;
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(20, 20, 28, 0.82);
  animation: micGlow 2.6s ease-in-out infinite;
}
@keyframes micGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 10px rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.38); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,.07), 0 0 18px rgba(255,255,255,.32), 0 8px 22px rgba(0,0,0,.38); }
}
.sealed-terminal-button svg { width: 16px; height: 16px; }

/* ── Whisper modal: full-page, dismissable via × ───────────────────────────── */
.sealed-terminal-modal { place-items: stretch; padding: 0; background: rgba(0,0,0,.62); }
.sealed-terminal-panel {
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  border: 0; border-radius: 0;
  padding: calc(16px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
}
.sealed-terminal-panel .terminal-close { width: 38px; height: 38px; font-size: 22px; }

/* New sealed whisper slides in at the top of the terminal log. */
@keyframes sealedSlideIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}
.terminal-line.is-new { animation: sealedSlideIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { .terminal-line.is-new { animation: none; } }

/* Animated daemon loop overlays the static portrait when it can play. */
.daemon-wait-portrait video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  background: #101016;
  filter: contrast(1.08) brightness(1.08) saturate(1.12);
}
.daemon-wait-portrait video[hidden] { display: none; }
.daemon-wait-portrait.daemon-wait-alive video { animation: daemonWaitPhotoPulse 3.8s ease-in-out infinite; }
