/* styles.css - Tony HUD: blue and white aesthetic. */

:root {
  --c-bg: #020611;
  --c-bg-2: #071a33;
  --c-accent: #3d8bff;
  --c-core: #ffffff;
  --c-accent-dim: #2053a0;
  --c-warn: #ffb454;
  --c-bad: #ff5c6c;
  --c-good: #41ffb0;
  --c-text: #f1f6ff;
  --c-text-dim: #91a9c9;

  --font-display: "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;

  --glass: rgba(8, 24, 52, 0.52);
  --glass-edge: rgba(61, 139, 255, 0.3);

  --amp: 0; /* 0..1 audio amplitude, driven by JS */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(120% 90% at 50% 8%, var(--c-bg-2), var(--c-bg) 70%);
  color: var(--c-text);
  font-family: var(--font-mono);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- ambient layers --- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(61, 139, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 139, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
#brain-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}
body.hud-flat #brain-canvas { display: none; }
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: repeating-linear-gradient(
    to bottom, transparent 0 3px, rgba(0, 0, 0, 0.16) 3px 4px);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.5;
}

/* --- top bar (pinned; content scrolls beneath it) --- */
.hud-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--glass-edge);
  background: rgba(3, 7, 13, 0.62);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { color: var(--c-accent); filter: drop-shadow(0 0 8px var(--c-accent)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.42em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(61, 139, 255, 0.65);
}
.brand-sub { color: var(--c-text-dim); font-size: 0.72rem; letter-spacing: 0.18em; }

.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.2em;
  padding: 6px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-warn);
  box-shadow: 0 0 10px currentColor;
}
.status-pill.live .dot { background: var(--c-good); }
.status-pill.dead .dot { background: var(--c-bad); }

/* --- persistent core: fixed/anchored, never scrolls, sits above the deck at rest --- */
.core-stage {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  /* Explicit width is REQUIRED: a position:fixed element with no width shrink-wraps to its
     content, and the reactor's percentage width would then resolve against ~0px and collapse
     the core to nothing. Sizing it here gives the SVG a real box to fill. */
  width: min(46vh, 88vw);
}

/* --- scroll deck: each section is a full-viewport "room" the core stays fixed inside --- */
.deck {
  position: relative;
  z-index: 3;
  padding: 96px 6vw 130px;
}
.deck-panel {
  min-height: 94vh;
  display: flex;
  align-items: center;
  perspective: 1100px;
}
.deck-panel--left { justify-content: flex-start; }
.deck-panel--right { justify-content: flex-end; }
.deck-panel .panel { width: min(30vw, 380px); }

/* z-index rises above the core only while a section is the active/focused one — this is
   what sells "moving through a holographic room" instead of panels just sitting flat */
.deck-panel.is-active .panel { z-index: 6; }
.deck-panel .panel { z-index: 2; }

.panel {
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 30px rgba(25, 211, 255, 0.06);
  pointer-events: none;
}
.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: var(--c-accent);
}

/* --- HUD targeting-reticle corners (no extra DOM: 8 gradients = 4 glowing L-brackets) --- */
.corner-frame {
  background-image:
    linear-gradient(var(--c-accent), var(--c-accent)), linear-gradient(var(--c-accent), var(--c-accent)),
    linear-gradient(var(--c-accent), var(--c-accent)), linear-gradient(var(--c-accent), var(--c-accent)),
    linear-gradient(var(--c-accent), var(--c-accent)), linear-gradient(var(--c-accent), var(--c-accent)),
    linear-gradient(var(--c-accent), var(--c-accent)), linear-gradient(var(--c-accent), var(--c-accent)),
    var(--glass);
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, auto;
  background-position:
    -1px -1px, -1px -1px,
    calc(100% + 1px) -1px, calc(100% + 1px) -1px,
    -1px calc(100% + 1px), -1px calc(100% + 1px),
    calc(100% + 1px) calc(100% + 1px), calc(100% + 1px) calc(100% + 1px),
    0 0;
  opacity: 0.9;
}

/* --- link metrics panel --- */
.metrics-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.metric {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 10px;
  border: 1px solid rgba(25, 211, 255, 0.12);
  border-radius: 8px;
  background: rgba(6, 18, 26, 0.5);
}
.metric dt { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--c-text-dim); }
.metric dd { margin: 0; font-family: var(--font-display); font-size: 0.82rem; color: var(--c-accent); }
.metrics-note { margin: 0; font-size: 0.7rem; line-height: 1.5; color: var(--c-text-dim); }
.metrics-note code { color: var(--c-text); }

/* systems list */
.sys-list, .activity-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; flex: 1;
}
.sys-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(25, 211, 255, 0.12);
  border-radius: 8px;
  background: rgba(6, 18, 26, 0.5);
}
.sys-item .led {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-text-dim); box-shadow: 0 0 8px currentColor;
}
.sys-item.up .led { background: var(--c-good); }
.sys-item.degraded .led { background: var(--c-warn); }
.sys-item.down .led { background: var(--c-bad); }
.sys-item .name { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
.sys-item .meta { font-size: 0.68rem; color: var(--c-text-dim); }
.sys-empty, .act-empty { color: var(--c-text-dim); font-size: 0.78rem; }

.activity-list .act {
  font-size: 0.74rem;
  padding: 7px 10px;
  border-left: 2px solid var(--c-accent-dim);
  background: rgba(6, 18, 26, 0.4);
  animation: slideIn 0.3s var(--ease-out-expo);
}
.activity-list .act .tool { color: var(--c-accent); }
.activity-list .act .res { color: var(--c-text-dim); display: block; margin-top: 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(10px); } }

.ghost-btn {
  font-family: var(--font-mono);
  background: transparent;
  color: var(--c-text-dim);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  letter-spacing: 0.16em;
  transition: color var(--ease-out-expo) 200ms, border-color 200ms;
}
.ghost-btn:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* --- reactor --- */
.reactor-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reactor {
  width: 100%;  /* fills .core-stage, which now has an explicit width */
  aspect-ratio: 1;
  overflow: visible;
  filter: drop-shadow(0 0 calc(14px + var(--amp) * 40px) rgba(25, 211, 255, 0.5));
}
.ring-track { fill: none; stroke: rgba(25, 211, 255, 0.12); stroke-width: 1.5; }
.ring-seg {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 200px 200px;
}
.seg-a { stroke-dasharray: 120 1010; opacity: 0.9; }
.seg-b { stroke-dasharray: 60 50 30 790; opacity: 0.7; }
.seg-c { stroke-dasharray: 40 26; stroke-width: 2; opacity: 0.5; }
.tick-ring {
  fill: none;
  stroke: rgba(25, 211, 255, 0.4);
  stroke-width: 14;
  stroke-dasharray: 1 9;
}

.ring-outer { animation: spin 18s linear infinite; transform-origin: 200px 200px; }
.ring-mid { animation: spin 11s linear infinite reverse; transform-origin: 200px 200px; }
.ring-inner { animation: spin 7s linear infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }

.core-halo {
  transform-origin: 200px 200px;
  transform: scale(calc(0.82 + var(--amp) * 0.5));
  opacity: calc(0.55 + var(--amp) * 0.45);
  transition: transform 80ms linear, opacity 80ms linear;
}
.core {
  fill: var(--c-core);
  transform-origin: 200px 200px;
  transform: scale(calc(0.9 + var(--amp) * 0.35));
  filter: drop-shadow(0 0 18px var(--c-accent));
  transition: transform 80ms linear;
  animation: breathe 4s ease-in-out infinite;
}
.core-edge { fill: none; stroke: #ffffff; stroke-width: 1.5; opacity: 0.72; }
@keyframes breathe { 50% { opacity: 0.82; } }

.state-label {
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  font-size: 0.92rem;
  color: var(--c-accent);
  margin: 0;
  text-shadow: 0 0 14px rgba(25, 211, 255, 0.5);
}

/* state-driven core tints */
body[data-state="listening"] { --c-accent: #41ffb0; --c-accent-dim: #1c8c63; }
body[data-state="processing"] { --c-accent: #ffd24a; --c-accent-dim: #8c7022; }
body[data-state="speaking"] { --c-accent: #5ca3ff; }
body[data-state="processing"] .ring-inner { animation-duration: 2.5s; }

/* --- console: pinned bottom, always reachable regardless of scroll position --- */
.console {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  border-top: 1px solid var(--glass-edge);
  padding: 14px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(to top, rgba(3, 7, 13, 0.92) 40%, rgba(3, 7, 13, 0.4));
  backdrop-filter: blur(8px);
}
.transcript {
  list-style: none; margin: 0; padding: 0;
  max-height: 46vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.9rem;
}
.line { display: flex; gap: 10px; line-height: 1.5; animation: slideIn 0.25s var(--ease-out-expo); }
.line .who {
  flex-shrink: 0; width: 58px;
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.18em;
  padding-top: 3px;
}
.line.you .who { color: var(--c-text-dim); }
.line.tony .who { color: var(--c-accent); }
.line .what { color: var(--c-text); }
.line.tony .what { color: #ffffff; }

.input-bar { display: flex; gap: 12px; align-items: center; }
.text-input {
  flex: 1;
  background: rgba(6, 18, 26, 0.6);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 200ms var(--ease-out-expo), box-shadow 200ms;
}
.text-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), 0 0 22px rgba(25, 211, 255, 0.2);
}
.text-input::placeholder { color: var(--c-text-dim); }

.mic-btn, .file-btn, .send-btn {
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--glass-edge);
  background: rgba(10, 28, 38, 0.6);
  color: var(--c-text);
  transition: transform 160ms var(--ease-out-expo), border-color 200ms, color 200ms, box-shadow 200ms;
}
.mic-btn, .file-btn {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  color: var(--c-accent);
}
.mic-btn:hover, .file-btn:hover { border-color: var(--c-accent); box-shadow: 0 0 18px rgba(25, 211, 255, 0.3); }
.mic-btn:active, .file-btn:active { transform: scale(0.94); }
.mic-btn.recording {
  color: #03070d; background: var(--c-bad); border-color: var(--c-bad);
  box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.6);
  animation: pulseRec 1.1s infinite;
}
@keyframes pulseRec {
  70% { box-shadow: 0 0 0 14px rgba(255, 92, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 108, 0); }
}
.send-btn { padding: 0 20px; height: 50px; letter-spacing: 0.16em; font-size: 0.78rem; }
.send-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* hands-free "Hey Tony" toggle */
.wake-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 16px;
  font-family: var(--font-display);
  font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--c-text-dim);
  background: rgba(10, 28, 38, 0.6);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  cursor: pointer;
  transition: color 200ms var(--ease-out-expo), border-color 200ms, box-shadow 200ms;
}
.wake-btn:hover { color: var(--c-accent); border-color: var(--c-accent); }
.wake-ring {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0.5;
}
.wake-btn.armed {
  color: var(--c-good);
  border-color: var(--c-good);
  box-shadow: 0 0 18px rgba(65, 255, 176, 0.25);
}
.wake-btn.armed .wake-ring {
  opacity: 1;
  background: var(--c-good);
  box-shadow: 0 0 0 0 rgba(65, 255, 176, 0.6);
  animation: wakePulse 1.6s ease-out infinite;
}
.wake-btn.unsupported { opacity: 0.4; cursor: not-allowed; }
@keyframes wakePulse {
  70% { box-shadow: 0 0 0 10px rgba(65, 255, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(65, 255, 176, 0); }
}
@media (prefers-reduced-motion: reduce) { .wake-btn.armed .wake-ring { animation: none; } }

/* --- OUTPUT button (opens Window B) — reuses .wake-btn shape, cyan instead of green --- */
.output-btn.armed { color: var(--c-accent); border-color: var(--c-accent);
  box-shadow: 0 0 18px rgba(25, 211, 255, 0.25); }
.output-btn.armed .wake-ring { opacity: 1; background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent); animation: none; }

/* --- Window B (artifact.html): the output surface -------------------------------------- */
.artifact-body { display: block; }
.artifact-stage {
  position: relative;
  z-index: 3;
  padding: 92px 5vw 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.artifact-panel {
  width: 100%;
  flex: 1;
  backdrop-filter: blur(6px);
}
.artifact-empty {
  margin: auto;
  text-align: center;
  color: var(--c-text-dim);
  max-width: 460px;
}
.artifact-empty-mark { font-size: 3rem; color: var(--c-accent);
  filter: drop-shadow(0 0 14px var(--c-accent)); margin: 0 0 8px; }
.artifact-empty-sub { font-size: 0.78rem; line-height: 1.6; margin-top: 10px; }

.artifact-code {
  margin: 0; flex: 1; overflow: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(25, 211, 255, 0.14); border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.6;
  color: #dff6ff; white-space: pre; tab-size: 2;
}
.artifact-code code { color: inherit; }
.artifact-page-text {
  margin: 0; flex: 1; overflow: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(25, 211, 255, 0.14); border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.6;
  color: var(--c-text); white-space: pre-wrap; word-break: break-word;
}
.artifact-image { max-width: 100%; border-radius: 10px; border: 1px solid var(--glass-edge); }
.artifact-audio { width: 100%; margin: 8px 0; }
.artifact-video { max-width: 100%; border-radius: 10px; border: 1px solid var(--glass-edge); background: #000; }
.artifact-caption { color: var(--c-text); font-size: 0.9rem; line-height: 1.55; margin: 4px 0 0; }

/* Export bar under the artifact — pinned below whatever kind is on screen. */
.artifact-export {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line, rgba(120, 200, 255, 0.25));
}
.artifact-export-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.65;
}
.artifact-export .ghost-btn { text-decoration: none; }
.artifact-export .ghost-btn[disabled] { opacity: 0.5; cursor: progress; }

/* Printing the OUTPUT window (the PDF path for non-iframe kinds): drop the HUD chrome
   and the export bar itself, keep the artifact on white. An iframe artifact prints its
   own document instead, so these rules never apply to it. */
@media print {
  .grid-bg, .scanlines, .hud-top, .artifact-export { display: none !important; }
  body, .artifact-body { background: #fff !important; color: #000 !important; }
  .artifact-panel, .panel { border: none !important; box-shadow: none !important; }
  .artifact-code, .artifact-page-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: #000 !important;
  }
}
.artifact-note { color: var(--c-text-dim); font-size: 0.74rem; line-height: 1.5; margin: 4px 0 0; }
.artifact-url { color: var(--c-accent); font-size: 0.82rem; word-break: break-all; text-decoration: none; }
.artifact-url:hover { text-decoration: underline; }
.artifact-iframe { flex: 1; width: 100%; min-height: 60vh; border: 1px solid var(--glass-edge);
  border-radius: 10px; background: #fff; }

/* gated-action confirmation modal */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s var(--ease-out-expo);
}
@keyframes fadeIn { from { opacity: 0; } }
.confirm-card {
  width: min(92vw, 680px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(160deg, rgba(12, 30, 40, 0.96), rgba(6, 16, 24, 0.96));
  border: 1px solid var(--c-warn);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255, 180, 84, 0.25);
  animation: popIn 0.25s var(--ease-out-expo);
  overflow-y: auto;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
.confirm-tag {
  margin: 0 0 6px; font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.24em; color: var(--c-warn);
}
.confirm-card h3 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.1em; color: #eafcff;
}
.confirm-summary { margin: 0 0 12px; color: var(--c-text); font-size: 0.9rem; }
.confirm-args {
  margin: 0 0 18px; padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-edge); border-radius: 8px;
  color: var(--c-text-dim); font-size: 0.78rem; white-space: pre-wrap; word-break: break-word;
  max-height: 30vh; overflow: auto;
}
.confirm-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  position: sticky; bottom: -24px; /* stay reachable while the card body scrolls */
  margin: 0 -24px -24px; padding: 14px 24px;
  background: linear-gradient(rgba(6, 16, 24, 0), rgba(6, 16, 24, 0.96) 30%);
}
.confirm-actions button {
  font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.14em;
  padding: 11px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--glass-edge); background: transparent; color: var(--c-text);
  transition: transform 150ms var(--ease-out-expo), border-color 200ms, color 200ms, box-shadow 200ms;
}
.confirm-actions button:active { transform: scale(0.96); }
.confirm-no:hover { border-color: var(--c-bad); color: var(--c-bad); }
.confirm-yes {
  background: var(--c-good); color: #03070d; border-color: var(--c-good);
}
.confirm-yes:hover { box-shadow: 0 0 20px rgba(65, 255, 176, 0.4); }

/* --- flat fallback (hud-scroll.js applies this when WebGL/GSAP/motion isn't available):
   no 3D transforms at all, panels just fade up in normal document order --- */
body.hud-flat .deck-panel .panel {
  opacity: 0; transform: none; z-index: 2;
  transition: opacity 0.5s var(--ease-out-expo);
}
body.hud-flat .deck-panel.in-view .panel { opacity: 1; }
body.hud-flat #brain-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}
body.hud-flat #brain-canvas { display: none; }
#particle-canvas { display: none; }

/* --- holographic "materialize" flicker, once, as a section becomes active --- */
@keyframes hologramIn {
  0% { filter: brightness(2.2) saturate(0); }
  10% { filter: brightness(0.6) saturate(0.3); }
  22% { filter: brightness(1.7) saturate(0.7); }
  100% { filter: brightness(1) saturate(1); }
}
body.hud-3d .deck-panel.is-active .panel { animation: hologramIn 0.55s linear 1; }

@media (prefers-reduced-motion: reduce) {
  .ring-outer, .ring-mid, .ring-inner, .core, .mic-btn.recording { animation: none; }
  .confirm-overlay, .confirm-card { animation: none; }
  .deck-panel .panel { animation: none !important; }
}

@media (max-width: 880px) {
  .core-stage {
    top: 118px;
    transform: translate(-50%, 0) scale(0.5);
    opacity: 0.85;
  }
  .deck { padding-top: 210px; }
  .deck-panel { justify-content: center !important; min-height: auto; padding: 20px 0 60px; }
  .deck-panel .panel { width: min(92vw, 460px); }
  .console { padding: 12px 14px 18px; }
}
