/* XEL subpages — the chronicle (history.html) and the manual (info.html).
   Glass cards, vertical timeline, CSS-art evolution chart. */

/* ---------- page scaffold ---------- */

.page-main {
  position: relative;
  z-index: var(--z-stage);
  width: min(94vw, 880px);
  margin: 0 auto;
  padding: 6.5rem 0 3rem;
}

/* slim in-flow no-js notice for the static subpages (index.html keeps the
   full-screen .noscript-box in base.css — it genuinely needs js) */
.noscript-banner {
  background: rgba(22, 13, 52, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-pill);
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 0.6rem 1.1rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.page-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--seafoam), var(--cyan) 40%, var(--violet) 75%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(125, 249, 224, 0.25));
}

.page-hero .hero-sub {
  margin: 0.7rem auto 0;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.page-hero .hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  background: rgba(22, 13, 52, 0.5);
}

/* ---------- glass cards & sections ---------- */

.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.6rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.section-title .st-emoji {
  filter: drop-shadow(0 0 10px rgba(125, 249, 224, 0.55));
  font-size: 1.35rem;
}

.glass-card p { margin: 0.55rem 0; color: var(--ink-dim); }
.glass-card p strong { color: var(--ink); }
.glass-card p em { color: var(--seafoam); font-style: normal; }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-boing);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- THE CHRONICLE: timeline ---------- */

.timeline {
  position: relative;
  padding-left: 2.1rem;
  margin: 0.5rem 0 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    rgba(125, 249, 224, 0.0),
    rgba(125, 249, 224, 0.45) 6%,
    rgba(157, 123, 255, 0.45) 45%,
    rgba(255, 106, 213, 0.45) 78%,
    rgba(255, 214, 107, 0.7) 96%,
    rgba(255, 214, 107, 0.0)
  );
}

.era-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 2.2rem 0 1rem;
}

.era-title:first-child { margin-top: 0.4rem; }

.era-title::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 50%;
  transform: translate(-50%, -50%) translateX(0.55rem);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--violet);
  box-shadow: var(--glow-violet);
}

.era-title .era-emoji { margin-right: 0.45rem; }

.era-sub {
  color: var(--ink-faint);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.1rem;
}

.tl-event {
  position: relative;
  margin: 0 0 1.05rem;
  background: rgba(22, 13, 52, 0.55);
  border: 1px solid rgba(157, 123, 255, 0.22);
  border-radius: var(--r-md);
  padding: 0.8rem 1.05rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-boing);
}

.tl-event:hover {
  border-color: rgba(125, 249, 224, 0.5);
  box-shadow: 0 6px 26px rgba(5, 2, 20, 0.55);
  transform: translateX(4px);
}

.tl-event::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 1.15rem;
  transform: translateX(calc(0.55rem - 50%));
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--seafoam);
  box-shadow: 0 0 10px rgba(125, 249, 224, 0.8);
}

.tl-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.18rem;
}

.tl-text { color: var(--ink-dim); font-size: 0.98rem; }
.tl-text strong { color: var(--ink); }

/* today: the pulsing gold dot */

.tl-event.today {
  border-color: rgba(255, 214, 107, 0.55);
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.1), rgba(22, 13, 52, 0.6));
  box-shadow: var(--glow-gold);
}

.tl-event.today::before {
  background: var(--gold);
  animation: today-pulse 1.8s infinite var(--ease-smooth);
}

.tl-event.today .tl-date { color: var(--gold); }
.tl-event.today .tl-text { color: var(--ink); }

.today-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: var(--r-pill);
  padding: 0.12rem 0.6rem;
  margin-left: 0.55rem;
  vertical-align: middle;
  animation: chip-breathe 1.8s infinite var(--ease-smooth);
}

@keyframes today-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 214, 107, 0.7), 0 0 10px rgba(255, 214, 107, 0.9); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 214, 107, 0), 0 0 10px rgba(255, 214, 107, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(255, 214, 107, 0), 0 0 10px rgba(255, 214, 107, 0.9); }
}

@keyframes chip-breathe {
  50% { transform: scale(1.07); }
}

/* ---------- THE FORECAST: prophecies ----------
   future events are ghosted and italic; their timeline dots are hollow,
   dashed, and flickering — they have not technically happened yet. */

.era-title.era-forecast { color: var(--ink-dim); }

.era-title.era-forecast::before {
  background: transparent;
  border: 2px dashed var(--violet);
  box-shadow: 0 0 14px rgba(157, 123, 255, 0.35);
  animation: prophecy-flicker 3.2s infinite var(--ease-smooth);
}

.tl-event.prophecy {
  border: 1px dashed rgba(157, 123, 255, 0.3);
  background: rgba(14, 8, 34, 0.4);
}

.tl-event.prophecy:hover { border-color: rgba(157, 123, 255, 0.6); }

.tl-event.prophecy .tl-text {
  color: var(--ink-faint);
  font-style: italic;
}

.tl-event.prophecy .tl-text strong { color: var(--ink-dim); }
.tl-event.prophecy .tl-date { color: rgba(157, 123, 255, 0.8); }

.tl-event.prophecy::before {
  background: transparent;
  border: 1.5px dashed rgba(157, 123, 255, 0.85);
  width: 9px;
  height: 9px;
  box-shadow: 0 0 10px rgba(157, 123, 255, 0.45);
  animation: prophecy-flicker 3.2s infinite var(--ease-smooth);
}

@keyframes prophecy-flicker {
  50% { opacity: 0.4; }
}

/* ---------- YOUR XEL: snapshot + personal timeline ---------- */

.snapshot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--seafoam), var(--cyan));
  border-radius: var(--r-pill);
  padding: 0.35rem 0.95rem;
  box-shadow: var(--glow-seafoam);
}

.born-chip, .count-chip {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-pill);
  padding: 0.32rem 0.85rem;
  background: rgba(22, 13, 52, 0.5);
}

.snap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin: 0.4rem 0 1.2rem;
}

.snap-stat {
  background: rgba(22, 13, 52, 0.55);
  border: 1px solid rgba(157, 123, 255, 0.22);
  border-radius: var(--r-md);
  padding: 0.6rem 0.8rem;
}

.snap-stat .ss-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.snap-stat .ss-value { color: var(--ink); }

.ss-bar {
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(7, 3, 18, 0.7);
  overflow: hidden;
}

.ss-fill {
  height: 100%;
  border-radius: var(--r-pill);
  width: 0;
  transition: width 0.9s var(--ease-boing);
}

.ss-hunger .ss-fill { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.ss-mood   .ss-fill { background: linear-gradient(90deg, var(--pink), var(--seafoam)); }
.ss-chaos  .ss-fill { background: linear-gradient(90deg, var(--violet), var(--red)); }
.ss-trust  .ss-fill { background: linear-gradient(90deg, var(--cyan), var(--green)); }

.personal-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
}

.personal-feed::-webkit-scrollbar { width: 8px; }
.personal-feed::-webkit-scrollbar-thumb { background: rgba(157, 123, 255, 0.35); border-radius: 4px; }

.pf-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px dashed rgba(157, 123, 255, 0.18);
}

.pf-item:last-child { border-bottom: none; }

.pf-icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 6px rgba(125, 249, 224, 0.4));
}

.pf-text { color: var(--ink-dim); font-size: 0.95rem; }
.pf-time {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.pf-item.pf-new { animation: pf-pop 0.5s var(--ease-boing); }

@keyframes pf-pop {
  0% { opacity: 0; transform: translateY(-10px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}

.empty-state {
  text-align: center;
  color: var(--ink-dim);
  padding: 1.6rem 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.empty-state .es-ghost {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  animation: chip-breathe 2.4s infinite var(--ease-smooth);
}

.empty-state a {
  color: var(--seafoam);
  border-bottom: 1px dotted var(--seafoam);
}

/* ---------- THE MANUAL: psa box ---------- */

.psa-box {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid rgba(125, 249, 224, 0.45);
  border-left: 4px solid var(--seafoam);
  border-radius: var(--r-md);
  background: rgba(125, 249, 224, 0.07);
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
}

.psa-box .psa-icon { font-size: 1.5rem; filter: drop-shadow(0 0 10px rgba(125, 249, 224, 0.7)); }
.psa-box .psa-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--seafoam);
  margin-bottom: 0.15rem;
}
.psa-box p { margin: 0; color: var(--ink-dim); }

/* ---------- interactions table ---------- */

.table-scroll { overflow-x: auto; margin-top: 0.6rem; }

.ix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.ix-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--panel-border);
}

.ix-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px dashed rgba(157, 123, 255, 0.18);
  color: var(--ink-dim);
  vertical-align: top;
}

.ix-table tr:last-child td { border-bottom: none; }
.ix-table tr { transition: background 0.2s; }
.ix-table tbody tr:hover { background: rgba(157, 123, 255, 0.08); }

.ix-action {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ix-action .ix-emoji { font-size: 1.25rem; margin-right: 0.45rem; vertical-align: -0.15em; }

.stat-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 0.1rem 0.55rem;
  margin: 0.12rem 0.18rem 0.12rem 0;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chip-up   { color: var(--green); border-color: rgba(125, 255, 165, 0.4); background: rgba(125, 255, 165, 0.08); }
.chip-down { color: var(--red);   border-color: rgba(255, 92, 122, 0.4);  background: rgba(255, 92, 122, 0.08); }
.chip-warn { color: var(--gold);  border-color: rgba(255, 214, 107, 0.4); background: rgba(255, 214, 107, 0.08); }
.chip-info { color: var(--cyan);  border-color: rgba(92, 225, 255, 0.4);  background: rgba(92, 225, 255, 0.08); }

/* ---------- evolution chart (CSS-art silhouettes) ---------- */

.evo-now {
  font-family: var(--font-display);
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.evo-now strong { color: var(--seafoam); }

.evo-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.evo-card {
  position: relative;
  background: rgba(22, 13, 52, 0.55);
  border: 1px solid rgba(157, 123, 255, 0.22);
  border-radius: var(--r-md);
  padding: 1rem 1rem 0.9rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-boing);
}

.evo-card:hover { transform: translateY(-4px); border-color: rgba(125, 249, 224, 0.5); box-shadow: var(--glow-seafoam); }

.evo-card.current {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.evo-here {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: var(--r-pill);
  padding: 0.14rem 0.6rem;
  white-space: nowrap;
}

.evo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-top: 0.55rem;
}

.evo-xp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-pill);
  padding: 0.1rem 0.55rem;
  margin-top: 0.35rem;
}

.evo-blurb { font-size: 0.83rem; color: var(--ink-faint); margin-top: 0.5rem; line-height: 1.45; }

.incident-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255, 92, 122, 0.5);
  background: rgba(255, 92, 122, 0.1);
  border-radius: var(--r-pill);
  padding: 0.12rem 0.55rem;
  margin-top: 0.4rem;
  animation: chip-breathe 2s infinite var(--ease-smooth);
}

/* the art box */

.stage-art {
  position: relative;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: visible;
}

/* 0 — the speck */
.art-speck .speck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--seafoam);
  box-shadow: 0 0 14px rgba(125, 249, 224, 0.9), 0 0 34px rgba(125, 249, 224, 0.4);
  animation: speck-beat 1.4s infinite var(--ease-smooth);
}

@keyframes speck-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.5); }
  24% { transform: scale(1); }
}

/* shared blob body */
.blob-body {
  position: relative;
  background: radial-gradient(circle at 32% 28%, #b9fff0, var(--seafoam) 45%, #3ec9ae 100%);
  border-radius: 48% 52% 55% 45% / 58% 52% 48% 42%;
  box-shadow: 0 6px 18px rgba(5, 2, 20, 0.5), inset 0 -8px 14px rgba(30, 90, 80, 0.35);
  animation: blob-wobble 3.2s infinite ease-in-out;
}

@keyframes blob-wobble {
  0%, 100% { border-radius: 48% 52% 55% 45% / 58% 52% 48% 42%; }
  50% { border-radius: 52% 48% 45% 55% / 50% 58% 42% 50%; }
}

.blob-eye {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff 0 28%, #0a0620 33%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

/* 1 — blob */
.art-blob .blob-body { width: 58px; height: 48px; }
.art-blob .eye-l { left: 10px; top: 13px; }
.art-blob .eye-r { right: 10px; top: 13px; }

/* 2 — blob with ambitions */
.art-ambitions .blob-body { width: 68px; height: 56px; }
.art-ambitions .eye-l { left: 13px; top: 17px; }
.art-ambitions .eye-r { right: 13px; top: 17px; }
.art-ambitions .blob-brow {
  position: absolute;
  width: 15px;
  height: 3px;
  border-radius: 3px;
  background: #0a0620;
}
.art-ambitions .brow-l { left: 12px; top: 10px; transform: rotate(14deg); }
.art-ambitions .brow-r { right: 12px; top: 10px; transform: rotate(-14deg); }
.art-ambitions .blob-mouth {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 18px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  background: #0a0620;
}

/* 3 — the legs incident */
.art-legs .blob-body { width: 68px; height: 54px; margin-bottom: 16px; }
.art-legs .eye-l { left: 13px; top: 15px; }
.art-legs .eye-r { right: 13px; top: 15px; }
.art-legs .blob-mouth {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: #0a0620;
}
.art-legs .blob-leg {
  position: absolute;
  bottom: -15px;
  width: 8px;
  height: 17px;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(180deg, #3ec9ae, var(--seafoam));
  transform-origin: top center;
}
.art-legs .leg-l { left: 18px; animation: leg-kick 1.1s infinite ease-in-out; }
.art-legs .leg-r { right: 18px; animation: leg-kick 1.1s infinite ease-in-out reverse; }

@keyframes leg-kick {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
}

/* 4 — shellform: iridescent spiral */
.shell-swirl {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 42%, rgba(7, 3, 18, 0.9) 0 4.5px, transparent 5.5px),
    repeating-radial-gradient(circle at 62% 42%, rgba(7, 3, 18, 0.5) 0 2.5px, rgba(7, 3, 18, 0) 2.5px 10px),
    conic-gradient(from 200deg at 62% 42%, var(--seafoam), var(--cyan) 30%, var(--violet) 58%, var(--pink) 80%, var(--seafoam));
  box-shadow: 0 0 20px rgba(125, 249, 224, 0.45), inset 0 -6px 12px rgba(7, 3, 18, 0.4);
}

.art-shellform .shell-swirl { animation: shell-shimmer 4s infinite ease-in-out; }

@keyframes shell-shimmer {
  50% { filter: hue-rotate(24deg) saturate(1.15); }
}

/* 5 — cosmic mollusk: floating shell + orbit ring */
.art-mollusk .mollusk-wrap {
  position: relative;
  display: block;
  animation: mollusk-float 3.4s infinite ease-in-out;
}

.art-mollusk .shell-swirl {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 26px rgba(125, 249, 224, 0.65), inset 0 -6px 12px rgba(7, 3, 18, 0.4);
}

.art-mollusk .orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 34px;
  margin: -17px 0 0 -44px;
  border: 1px solid rgba(157, 123, 255, 0.55);
  border-radius: 50%;
  animation: orbit-spin 5s linear infinite;
}

.art-mollusk .orbit-star {
  position: absolute;
  left: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 214, 107, 0.9);
}

@keyframes mollusk-float {
  50% { transform: translateY(-8px); }
}

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

/* 6 — pure jazz: golden waveform */
.art-jazz .jazz-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 60px;
}

.art-jazz .jazz-bar {
  width: 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--gold), var(--orange));
  box-shadow: 0 0 10px rgba(255, 214, 107, 0.6);
  animation: jazz-bounce 1s infinite ease-in-out;
  animation-delay: var(--d, 0s);
  height: 40%;
}

@keyframes jazz-bounce {
  0%, 100% { height: 28%; }
  50% { height: 92%; }
}

.art-jazz .jazz-note {
  position: absolute;
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 214, 107, 0.8);
  animation: note-drift 2.6s infinite ease-in-out;
  animation-delay: var(--d, 0s);
}

.art-jazz .note-1 { left: 14%; top: 8%; }
.art-jazz .note-2 { right: 12%; top: 16%; }

@keyframes note-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.6; }
  50% { transform: translateY(-8px) rotate(8deg); opacity: 1; }
}

/* ---------- arcade cards ---------- */

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.arcade-card {
  background: rgba(22, 13, 52, 0.55);
  border: 1px solid rgba(157, 123, 255, 0.22);
  border-radius: var(--r-md);
  padding: 1rem 1.05rem;
  transition: transform 0.25s var(--ease-boing), border-color 0.25s, box-shadow 0.25s;
}

.arcade-card:hover { transform: translateY(-4px); border-color: rgba(92, 225, 255, 0.5); box-shadow: 0 8px 30px rgba(5, 2, 20, 0.6); }

.arcade-card .ac-emoji { font-size: 1.9rem; display: block; margin-bottom: 0.4rem; filter: drop-shadow(0 0 12px rgba(92, 225, 255, 0.5)); }
.arcade-card .ac-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.arcade-card p { font-size: 0.88rem; color: var(--ink-faint); margin: 0; }

.rarity-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }

.rarity-chip {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 0.18rem 0.7rem;
  border: 1px solid;
}

.rarity-common   { color: var(--ink-dim); border-color: rgba(185, 176, 220, 0.4); }
.rarity-uncommon { color: var(--green);   border-color: rgba(125, 255, 165, 0.4); }
.rarity-rare     { color: var(--cyan);    border-color: rgba(92, 225, 255, 0.5); }
.rarity-mythic   { color: var(--gold);    border-color: rgba(255, 214, 107, 0.6); box-shadow: 0 0 12px rgba(255, 214, 107, 0.25); }

/* ---------- danger zone ---------- */

.danger-zone {
  border-color: rgba(255, 92, 122, 0.5);
  background: linear-gradient(160deg, rgba(255, 92, 122, 0.07), var(--panel-bg));
}

.danger-zone .section-title { color: var(--red); }

.btn-danger {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--red);
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: 0.65rem 1.3rem;
  margin-top: 0.7rem;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.55);
  transition: transform 0.18s var(--ease-boing), box-shadow 0.18s, background 0.2s;
}

.btn-danger:hover {
  transform: translateY(-2px);
  background: rgba(255, 92, 122, 0.2);
  box-shadow: 0 0 22px rgba(255, 92, 122, 0.4);
}

.btn-danger:active { transform: scale(0.95); }

.danger-fine-print {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- the wardrobe / daily rituals / secrets ---------- */

.wear-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.wear-chip {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-dim);
  border: 1px solid rgba(255, 214, 107, 0.35);
  background: rgba(255, 214, 107, 0.06);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-boing);
}

.wear-chip:hover {
  border-color: rgba(255, 214, 107, 0.7);
  box-shadow: 0 0 14px rgba(255, 214, 107, 0.25);
  transform: translateY(-2px);
}

.streak-now {
  font-family: var(--font-display);
  color: var(--ink-dim);
}

.streak-now strong { color: var(--gold); }

.secret-dots {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.15rem;
}

.secret-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(157, 123, 255, 0.55);
  opacity: 0.3;
  animation: secret-wink 4.4s infinite var(--ease-smooth);
}

.secret-dots span:nth-child(2) { animation-delay: 1.1s; }
.secret-dots span:nth-child(3) { animation-delay: 2.2s; }
.secret-dots span:nth-child(4) { animation-delay: 3.3s; }

@keyframes secret-wink {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.25); }
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid rgba(157, 123, 255, 0.22);
  border-radius: var(--r-md);
  background: rgba(22, 13, 52, 0.55);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] { border-color: rgba(125, 249, 224, 0.5); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  padding: 0.8rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(157, 123, 255, 0.08); }

.faq-item summary::before {
  content: '▸';
  color: var(--seafoam);
  transition: transform 0.3s var(--ease-boing);
}

.faq-item[open] summary::before { transform: rotate(90deg); }

.faq-item .faq-a {
  padding: 0 1.05rem 0.9rem 2.35rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- footer ---------- */

.page-footer {
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 2.2rem 1rem 1rem;
}

.page-footer p { margin: 0.25rem 0; }

.footer-fine {
  font-size: 0.72rem;
  color: rgba(141, 133, 184, 0.55);
}

/* the words "the void" are a door. barely-styled on purpose: it reads as
   plain text until someone curious hovers, taps, or tabs onto it. */
.void-link {
  color: inherit;
  border-radius: 4px;
  transition: color 0.4s, text-shadow 0.4s;
}

.void-link:hover,
.void-link:focus-visible {
  color: var(--ink-dim);
  text-shadow: 0 0 14px rgba(157, 123, 255, 0.7);
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .page-main { padding-top: 5.4rem; }
  .glass-card { padding: 1.15rem 1.05rem; }
  .timeline { padding-left: 1.7rem; }
  .era-title::before, .tl-event::before { left: -1.7rem; }
  .pf-time { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tl-event.today::before,
  .today-chip,
  .speck-dot,
  .blob-body,
  .blob-leg,
  .shell-swirl,
  .mollusk-wrap,
  .orbit-ring,
  .jazz-bar,
  .jazz-note,
  .incident-flag,
  .empty-state .es-ghost {
    animation: none !important;
  }
  .art-jazz .jazz-bar { height: 60%; }
  .tl-event:hover, .evo-card:hover, .arcade-card:hover { transform: none; }
}

/* ---------- THE VOID (void.html) ----------
   no nav, no canvas, no gradient. this page IS the void: near-black css,
   three faint stars, and text that arrives at its own pace. */

.void-body {
  background: #010102;
  min-height: 100svh;
}

.void-body ::selection { background: rgba(157, 123, 255, 0.4); color: var(--ink); }

.void-back {
  position: fixed;
  top: 1.1rem;
  left: 1.2rem;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(185, 176, 220, 0.38);
  transition: color 0.4s;
}

.void-back:hover,
.void-back:focus-visible { color: var(--ink-dim); }

.void-star {
  position: fixed;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(244, 241, 255, 0.55);
  animation: void-twinkle 7s infinite ease-in-out;
}

.void-star.star-1 { top: 17%; left: 13%; }
.void-star.star-2 { top: 63%; left: 85%; animation-delay: 2.4s; }
.void-star.star-3 { top: 84%; left: 24%; animation-delay: 4.6s; animation-duration: 9s; }

@keyframes void-twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.6; }
}

.void-main {
  position: relative;
  z-index: 1;
  width: min(90vw, 560px);
  margin: 0 auto;
  padding: 22vh 0 28vh;
}

.void-line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2.4s ease, transform 2.4s ease;
  color: rgba(185, 176, 220, 0.78);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 1.4rem 0;
}

.void-line.in { opacity: 1; transform: none; }

.void-line.void-hello {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: rgba(244, 241, 255, 0.85);
}

.void-line.void-sign {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(141, 133, 184, 0.55);
  margin-top: 3rem;
}

/* the confession, revealed by the dot */
.void-extra {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2.8s ease, transform 2.8s ease;
  color: rgba(125, 249, 224, 0.72);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
  margin: 2.2rem 0 0;
}

.void-extra.in { opacity: 1; transform: none; }

/* a single barely-visible dot. it is not a star. it knows things. */
.void-dot {
  position: fixed;
  right: 13vw;
  bottom: 16vh;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(244, 241, 255, 0.07);
  cursor: pointer;
  transition: background 0.6s, box-shadow 0.6s;
}

.void-dot:hover { background: rgba(244, 241, 255, 0.22); }

.void-dot.lit {
  background: rgba(125, 249, 224, 0.55);
  box-shadow: 0 0 18px rgba(125, 249, 224, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .void-line, .void-extra { transition: none; }
  .void-star,
  .secret-dots span,
  .wear-chip,
  .era-title.era-forecast::before,
  .tl-event.prophecy::before {
    animation: none !important;
  }
  .void-star { opacity: 0.35; }
  .secret-dots span { opacity: 0.55; }
  .wear-chip:hover { transform: none; }
}
