/* ═══════════════════════════════════════════════════════════
   THE DOME  ·  $DOME
   Recursive Show · Truman ⊕ Christof · Cybernetic Ascension
   palette: void navy · cyan halo · violet cue · gold sun
═══════════════════════════════════════════════════════════ */

:root {
  --void: #03010a;
  --void-deep: #060214;
  --panel: rgba(12, 6, 32, 0.72);
  --panel-solid: #0c0620;
  --border: rgba(120, 80, 255, 0.35);
  --cyan: #3ef0ff;
  --cyan-hot: #7affff;
  --cyan-dim: #1a8a99;
  --violet: #b44cff;
  --violet-hot: #d98cff;
  --magenta: #ff2bd6;
  --gold: #f0c14b;
  --gold-dim: #a8842a;
  --ash: #c8bfe8;
  --white: #f4f0ff;
  --truman: #3ef0ff;
  --christof: #ff2bd6;
  --font-display: "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;
  --glow-cyan: 0 0 24px rgba(62, 240, 255, 0.45), 0 0 60px rgba(62, 240, 255, 0.15);
  --glow-violet: 0 0 24px rgba(180, 76, 255, 0.45), 0 0 60px rgba(255, 43, 214, 0.12);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--ash);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ── Hypnotic sky field ── */
.sky-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(180, 76, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(62, 240, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 43, 214, 0.07), transparent 50%),
    linear-gradient(180deg, #050218 0%, #0a0530 45%, #12082a 100%);
}

.sky-field::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(62, 240, 255, 0.04) 40deg,
      transparent 80deg,
      rgba(180, 76, 255, 0.05) 140deg,
      transparent 180deg,
      rgba(255, 43, 214, 0.04) 240deg,
      transparent 300deg,
      rgba(240, 193, 75, 0.03) 330deg,
      transparent 360deg);
  animation: sky-spin 90s linear infinite;
}

.sky-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 193, 75, 0.22) 0%, transparent 12%),
    radial-gradient(circle at 50% 18%, rgba(240, 193, 75, 0.08) 0%, transparent 28%);
  animation: sun-breathe 8s ease-in-out infinite;
}

@keyframes sky-spin {
  to { transform: rotate(360deg); }
}

@keyframes sun-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* mandala ring */
.mandala {
  position: fixed;
  left: 50%;
  top: 42%;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  border-radius: 50%;
  border: 1px solid rgba(62, 240, 255, 0.35);
  box-shadow:
    0 0 0 40px rgba(180, 76, 255, 0.06),
    0 0 0 80px rgba(62, 240, 255, 0.04),
    inset 0 0 60px rgba(255, 43, 214, 0.08);
  animation: mandala-spin 48s linear infinite;
}

.mandala::before,
.mandala::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 193, 75, 0.25);
  animation: mandala-spin 32s linear infinite reverse;
}

.mandala::after {
  inset: 28%;
  border-style: solid;
  border-color: rgba(62, 240, 255, 0.2);
  animation-duration: 22s;
}

@keyframes mandala-spin {
  to { transform: rotate(360deg); }
}

/* CRT + grain + vignette */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(3, 1, 10, 0.85) 100%);
  box-shadow: inset 0 0 100px rgba(80, 20, 120, 0.25);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9996;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.45s steps(2) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
}

/* ── Layout ── */
.shell {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 4rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(8, 4, 24, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-violet);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cyan-hot);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.topbar nav a {
  color: var(--ash);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s, text-shadow 0.2s;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--cyan-hot);
  opacity: 1;
  text-shadow: 0 0 12px rgba(62, 240, 255, 0.6);
}

/* ticker */
.pump-strip {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: 8px;
  background: rgba(20, 10, 40, 0.65);
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.pump-strip .marquee {
  display: inline-block;
  padding: 0.55rem 0;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(80, 30, 160, 0.12);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.55;
}

.panel h1,
.panel h2,
.panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.panel h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  background: linear-gradient(120deg, var(--cyan-hot), var(--violet-hot), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(62, 240, 255, 0.25));
  animation: title-shimmer 6s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(62, 240, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 28px rgba(255, 43, 214, 0.35)); }
}

.panel h2 {
  font-size: 1.05rem;
  color: var(--cyan-hot);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel h3 {
  font-size: 0.95rem;
  color: var(--violet-hot);
}

.panel p {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.meta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 0.85rem !important;
}

.doctrine {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: rgba(240, 193, 75, 0.06);
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.doctrine strong {
  color: var(--white);
}

/* dual role split */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .dual {
    grid-template-columns: 1fr;
  }
}

.role-card {
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  min-height: 140px;
}

.role-card.truman {
  border: 1px solid rgba(62, 240, 255, 0.4);
  background: linear-gradient(160deg, rgba(62, 240, 255, 0.1), rgba(8, 4, 24, 0.5));
  box-shadow: var(--glow-cyan);
}

.role-card.christof {
  border: 1px solid rgba(255, 43, 214, 0.4);
  background: linear-gradient(160deg, rgba(255, 43, 214, 0.1), rgba(8, 4, 24, 0.5));
  box-shadow: var(--glow-violet);
}

.role-card .label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.role-card.truman .label { color: var(--cyan); }
.role-card.christof .label { color: var(--magenta); }

.role-card p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* hypnotic spiral text */
.spell {
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--white);
  animation: spell-pulse 5s ease-in-out infinite;
}

@keyframes spell-pulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(62, 240, 255, 0.4), 0 0 20px rgba(180, 76, 255, 0.2);
    letter-spacing: 0.08em;
  }
  50% {
    text-shadow: 0 0 18px rgba(255, 43, 214, 0.55), 0 0 40px rgba(62, 240, 255, 0.25);
    letter-spacing: 0.14em;
  }
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--cyan-hot);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--magenta);
  animation: glitch-a 2.8s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}

.glitch-text::after {
  color: var(--cyan);
  animation: glitch-b 2.1s infinite linear alternate-reverse;
  clip-path: inset(45% 0 0 0);
}

@keyframes glitch-a {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-b {
  0% { transform: translate(0); }
  25% { transform: translate(2px, 0); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

/* forms / gates */
.gate-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gate-form label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-hot);
}

.gate-form input,
.gate-form textarea {
  background: rgba(3, 1, 10, 0.75);
  border: 1px solid rgba(120, 80, 255, 0.4);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-form input:focus,
.gate-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 240, 255, 0.15), var(--glow-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(120deg, rgba(62, 240, 255, 0.2), rgba(180, 76, 255, 0.35));
  border-color: rgba(62, 240, 255, 0.5);
  color: var(--white);
  box-shadow: var(--glow-cyan);
}

.btn.primary:hover {
  box-shadow: var(--glow-violet);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(180, 76, 255, 0.4);
  color: var(--ash);
}

.btn.gold {
  background: linear-gradient(120deg, rgba(240, 193, 75, 0.2), rgba(255, 43, 214, 0.15));
  border-color: rgba(240, 193, 75, 0.5);
  color: var(--gold);
}

.feedback {
  min-height: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.feedback.ok { color: var(--cyan-hot); text-shadow: 0 0 10px rgba(62, 240, 255, 0.5); }
.feedback.bad { color: var(--magenta); }
.feedback.whisper { color: var(--gold-dim); font-size: 0.72rem; }

details.hint {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(120, 80, 255, 0.2);
  padding-top: 0.7rem;
}

details.hint summary {
  cursor: pointer;
  color: var(--cyan-dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
}

details.hint summary::-webkit-details-marker { display: none; }
details.hint p {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ash);
  opacity: 0.85;
}

/* progress */
.progress-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.progress-rail .node {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 80, 255, 0.25);
  background: rgba(8, 4, 24, 0.6);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.progress-rail .node.unlocked {
  opacity: 1;
  border-color: rgba(62, 240, 255, 0.45);
  color: var(--cyan-hot);
}

.progress-rail .node.complete {
  opacity: 1;
  border-color: rgba(240, 193, 75, 0.55);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(240, 193, 75, 0.2);
}

.progress-rail .node.current {
  box-shadow: var(--glow-cyan);
  opacity: 1;
}

/* terminal */
.term {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(62, 240, 255, 0.2);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  min-height: 110px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0.75rem 0;
  color: var(--cyan-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.term .line-gold { color: var(--gold); }
.term .line-mag { color: var(--magenta); }
.term .line-cyan { color: var(--cyan-hot); }
.term .line-dim { color: #665a88; }

/* hero ascii */
.ascii {
  font-size: clamp(0.45rem, 1.4vw, 0.72rem);
  line-height: 1.15;
  color: rgba(62, 240, 255, 0.55);
  overflow-x: auto;
  text-align: center;
  margin: 0.5rem 0 1.1rem;
  text-shadow: 0 0 12px rgba(62, 240, 255, 0.25);
  user-select: none;
}

/* stage grid */
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.node-card {
  display: block;
  padding: 0.9rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 80, 255, 0.3);
  background: rgba(8, 4, 24, 0.7);
  text-decoration: none;
  color: var(--ash);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.node-card .num {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--violet-hot);
  margin-bottom: 0.3rem;
}

.node-card .name {
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.node-card.locked {
  opacity: 0.4;
  pointer-events: none;
}

.node-card.done {
  border-color: rgba(240, 193, 75, 0.45);
}

/* liturgy blocks */
.liturgy {
  font-size: 0.88rem;
  border-left: 2px solid var(--violet);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--ash);
}

.liturgy em {
  color: var(--cyan-hot);
  font-style: normal;
}

/* sealed / vault */
.sealed {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(240, 193, 75, 0.35);
  border-radius: var(--radius);
  color: var(--gold-dim);
}

.vault-open {
  border: 1px solid rgba(240, 193, 75, 0.5);
  background: linear-gradient(160deg, rgba(240, 193, 75, 0.1), rgba(12, 6, 32, 0.8));
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 0 40px rgba(240, 193, 75, 0.15);
}

.vault-open code {
  display: block;
  margin-top: 0.75rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  word-break: break-all;
  user-select: all;
}

/* boot splash */
#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#boot-splash.fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-log {
  width: min(420px, 92vw);
  font-size: 0.72rem;
  color: var(--cyan-dim);
  min-height: 6rem;
  text-align: left;
  font-family: var(--font-mono);
}

.boot-log div {
  opacity: 0;
  animation: boot-line 0.35s forwards;
  margin: 0.2rem 0;
}

@keyframes boot-line {
  to { opacity: 1; }
}

/* hypnosis cursor trail canvas */
#trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  opacity: 0.55;
}

/* floating cue text */
.floating-cues {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-cues span {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 76, 255, 0.18);
  white-space: nowrap;
  animation: float-up 18s linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20vh) rotate(8deg); opacity: 0; }
}

/* hidden ARG links */
.ghost-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.ghost-link:hover {
  border-bottom-color: rgba(62, 240, 255, 0.3);
  color: var(--cyan-dim);
}

/* footer */
.footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(120, 80, 255, 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: #665a88;
}

.footer a {
  color: var(--cyan-dim);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cyan-hot);
}

/* form shake on wrong answer */
.gate-form.shake {
  animation: form-shake 0.4s ease;
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* utility */
.center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* mirror prayer animation */
.mirror-line {
  display: block;
  text-align: center;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0.35rem 0;
  animation: mirror-breathe 4s ease-in-out infinite;
}

.mirror-line:nth-child(odd) { color: var(--cyan); animation-delay: 0s; }
.mirror-line:nth-child(even) { color: var(--magenta); animation-delay: 2s; }

@keyframes mirror-breathe {
  0%, 100% { opacity: 0.55; letter-spacing: 0.18em; }
  50% { opacity: 1; letter-spacing: 0.28em; text-shadow: 0 0 16px currentColor; }
}

/* winner banner */
.winner-only {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.7rem;
  border: 1px solid rgba(240, 193, 75, 0.35);
  border-radius: 8px;
  background: rgba(240, 193, 75, 0.06);
  animation: spell-pulse 7s ease-in-out infinite;
}

/* mobile */
@media (max-width: 520px) {
  .topbar {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .progress-rail {
    grid-template-columns: repeat(3, 1fr);
  }
  .shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
