/* Extended Ryon Universe: a timeline through space. Only extended-ryon-universe/index.html loads this.
   Each entry sets --u-glow and --u-deep, its universe's colors. */

@property --neb-a { syntax: "<color>"; inherits: true; initial-value: #6b3cff; }
@property --neb-b { syntax: "<color>"; inherits: true; initial-value: #ff3f8e; }

main:has(.eru-sky) { max-width: 74rem; padding-bottom: 7rem; }

/* ---- the sky ---- */

.eru-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% 110%, #1b1150, transparent 70%), #060818;
}
.eru-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.eru-nebula {
  position: absolute;
  inset: -12% -10%;
  background:
    radial-gradient(38% 30% at 16% 26%, color-mix(in srgb, var(--neb-a) 34%, transparent), transparent 72%),
    radial-gradient(34% 28% at 86% 58%, color-mix(in srgb, var(--neb-b) 28%, transparent), transparent 72%),
    radial-gradient(46% 34% at 42% 96%, rgb(39 198 255 / 0.16), transparent 72%),
    radial-gradient(26% 20% at 64% 14%, color-mix(in srgb, var(--neb-b) 14%, transparent), transparent 72%);
  transition: --neb-a 1.6s ease, --neb-b 1.6s ease;
  will-change: transform;
}

/* ---- intro ---- */

.eru-intro { max-width: 44rem; margin: 0 auto; padding: 2.5rem 0 3.5rem; text-align: center; }
.eru-kicker, .eru-tag, .eru-panel-kicker {
  margin: 0;
  font: 600 0.74rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eru-kicker { color: #9fe8ff; }
.eru-intro h1 {
  margin: 0.6rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 10vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 20%, #cdbfff 65%, #ff9ccc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgb(150 115 255 / 0.5));
}
.eru-dek { margin: 0 auto; max-width: 36rem; font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: #ddd7f7; }
.eru-note { margin: 0.9rem auto 0; max-width: 32rem; font-size: 0.88rem; color: #a9a2d0; }
.eru-index ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.eru-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(10 9 32 / 0.6);
  color: #ece8ff;
  font-size: 0.88rem;
  text-decoration: none;
}
.eru-index a::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--u-glow); box-shadow: 0 0 8px var(--u-glow); }
.eru-index a:hover, .eru-index a:focus-visible { border-color: var(--u-glow); }

.eru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid #6d5cd6;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a1f6e, #15123a);
  color: #f1edff;
  font: 600 0.92rem/1.2 var(--sans);
  cursor: pointer;
  box-shadow: 0 0 18px rgb(120 90 255 / 0.35);
}
.eru-btn:hover { border-color: #b3a0ff; }
.eru-btn:focus-visible, .eru-hud:focus-visible, .eru-seg button:focus-visible, .eru-pf-close:focus-visible, .eru-index a:focus-visible { outline: 2px solid #9fe8ff; outline-offset: 3px; }
.eru-btn--intro { margin-top: 1.4rem; }
.eru-btn-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #41e2ff; box-shadow: 0 0 8px #41e2ff; }
:root:not(.eru-js) .eru-btn, :root:not(.eru-js) .eru-panel, :root:not(.eru-js) .eru-hud { display: none; }

/* ---- the timeline ---- */

.eru-wrap { display: grid; gap: 2rem; }
.eru-line { --thread-x: 1.25rem; --orb: 2.5rem; --eru-p: 1; position: relative; min-width: 0; padding: 0.5rem 0 1rem; }
.eru-js .eru-line { --eru-p: 0; }
.eru-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--thread-x);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 0.16) 3%, rgb(255 255 255 / 0.16) 97%, transparent);
}
.eru-thread-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(var(--eru-p));
  /* roughly one stop per universe, in order down the page */
  background: linear-gradient(to bottom, #9a6bff, #6dffc1 3%, #8fd0ff 7%, #ff8a5c 12%, #ff7aa8 17%, #d8c08a 25%, #ffb03b 30%, #ff6a3c 35%, #ffd36b 39%, #ff5a6e 45%, #9be36a 52%, #7ef0ff 59%, #ff3fb4 65%, #5aa9ff 71%, #b07bff 78%, #d9ff5c 85%, #ff4d3d 93%, #fff3c4);
  box-shadow: 0 0 8px 1px rgb(150 120 255 / 0.8), 0 0 22px 3px rgb(65 226 255 / 0.3);
}
.eru-thread-head {
  position: absolute;
  left: 50%;
  top: calc(var(--eru-p) * 100%);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 4px #b9a6ff, 0 0 26px 8px rgb(65 226 255 / 0.5);
}
.eru-list { margin: 0; padding: 0; list-style: none; }
.eru-list > li { position: relative; }
.eru-list > li + li { margin-top: 2rem; }
.eru-list > .eru-major + li, .eru-list > li + .eru-major { margin-top: 3.25rem; }

/* Orbs: each universe is a small glowing planet on the thread. How they look is in eru-orbs.css. */
.eru-list .eru-orb {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: calc(var(--thread-x) - var(--orb) / 2);
}

/* Major stories: big placecards. */
.eru-major { padding-left: calc(var(--thread-x) + var(--orb) / 2 + 0.75rem); }
.eru-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--u-glow) 40%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--u-glow) 16%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--u-deep) 45%, #0a0920), #0a0920 55%);
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--u-glow) 55%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.eru-major::before {
  content: "";
  position: absolute;
  top: calc(1rem + var(--orb) / 2);
  left: calc(var(--thread-x) + var(--orb) / 2);
  width: 0.75rem;
  height: 1px;
  background: var(--u-glow);
  box-shadow: 0 0 6px var(--u-glow);
}
.eru-watermark {
  position: absolute;
  top: -0.6rem;
  right: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--u-glow) 35%, transparent);
  pointer-events: none;
}
.eru-tag { position: relative; color: var(--u-glow); }
.eru-card h2 {
  position: relative;
  margin: 0.45rem 0 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 0 24px color-mix(in srgb, var(--u-glow) 45%, transparent);
}
.eru-story p { margin: 0 0 0.85rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; color: #e6e1f8; }
.eru-gains {
  margin: 1.1rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--u-glow) 9%, rgb(0 0 0 / 0.3));
  border: 1px solid color-mix(in srgb, var(--u-glow) 22%, transparent);
}
.eru-gains-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: 0 0 0.5rem; font: 700 0.78rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--u-glow); }
.eru-gains-head span { color: #f1edff; font-variant-numeric: tabular-nums; }
.eru-gains ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: #d6d0f2; }
.eru-gains b { display: block; color: #fff; }
.eru-credit { margin: 1rem 0 0; font-size: 0.85rem; color: #a9a2d0; }
.eru-credit cite { color: #ece8ff; }
/* links into Ryon's Journey, the Ryon Rising mode that plays each story */
.eru-play { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--u-glow, #b3a0ff); color: #ece8ff; background: rgba(20, 14, 48, 0.7); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.eru-play::before { content: ""; width: 0; height: 0; border-left: 0.5rem solid var(--u-glow, #41e2ff); border-top: 0.32rem solid transparent; border-bottom: 0.32rem solid transparent; }
.eru-play:hover { background: rgba(40, 28, 90, 0.85); }
.eru-play:focus-visible { outline: 2px solid #9fe8ff; outline-offset: 3px; }
.eru-play-row { margin: 0.9rem 0 0; }
.eru-play-intro { margin: 1rem 0 0; }
.eru-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eru-card--forming { border-style: dashed; background: #0a0920; box-shadow: none; }
.eru-forming { margin: 0.4rem 0 0; font-family: var(--serif); font-size: 1.15rem; color: #cfc8ef; }

/* Side events: a short branch off the thread to a small card. */
.eru-event { padding-left: calc(var(--thread-x) + 1.75rem); }
.eru-dot {
  position: absolute;
  z-index: 1;
  top: 1.05rem;
  left: calc(var(--thread-x) - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b0a24;
  border: 2px solid var(--u-glow);
  box-shadow: 0 0 8px var(--u-glow);
}
.eru-event::before {
  content: "";
  position: absolute;
  top: calc(1.05rem + 5px);
  left: var(--thread-x);
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(to right, var(--u-glow), color-mix(in srgb, var(--u-glow) 30%, transparent));
}
.eru-ecard {
  max-width: 22rem;
  padding: 0.75rem 0.9rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-left: 2px solid var(--u-glow);
  border-radius: 10px;
  background: #0a0920;
}
.eru-ecard .eru-tag { font-size: 0.68rem; }
.eru-ecard h3 { margin: 0.2rem 0 0.3rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; color: #fff; }
.eru-ecard p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: #d6d0f2; }
.eru-ecard .eru-tag { color: var(--u-glow); }
.eru-ecard .eru-egain { margin-top: 0.45rem; font-size: 0.84rem; color: var(--u-glow); }
.eru-egain b { color: #fff; }
/* Side quests: a dashed card, and a tick when it's done. */
.eru-ecard--quest { border-style: dashed; border-left-style: solid; background: linear-gradient(160deg, color-mix(in srgb, var(--u-glow) 7%, #0a0920), #0a0920 70%); }
.eru-ecard .eru-quest { margin-top: 0.5rem; font-size: 0.82rem; color: var(--u-glow); }
.eru-quest b { color: #fff; font-weight: 600; }
.eru-quest-check {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.35em;
  vertical-align: -0.08em;
  border-radius: 50%;
  background: var(--u-glow);
  clip-path: polygon(14% 52%, 28% 38%, 42% 54%, 74% 18%, 88% 32%, 42% 80%);
}

/* Reveal as they scroll in. Without the script, everything is simply shown. */
.eru-js .eru-card, .eru-js .eru-ecard { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.eru-js .eru-orb, .eru-js .eru-dot { opacity: 0.25; transform: scale(0.5); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.eru-js .is-in .eru-card, .eru-js .is-in .eru-ecard { opacity: 1; transform: none; }
.eru-js .is-in .eru-orb, .eru-js .is-in .eru-dot { opacity: 1; transform: none; }
.is-current .eru-orb { animation: eru-pulse 3s ease-in-out infinite; }
@keyframes eru-pulse {
  50% { box-shadow: 0 0 22px 5px color-mix(in srgb, var(--u-glow) 80%, transparent), 0 0 60px 18px color-mix(in srgb, var(--u-glow) 30%, transparent); }
}

/* ---- power level, shared by the panel, the HUD and the profile card ---- */

.eru-pl { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.3rem 0.75rem; }
.eru-pl-label { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9a2d0; }
.eru-pl-num { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; font-size: min(2rem, calc(26rem / var(--pl-len, 9))); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; text-shadow: 0 0 16px rgb(150 115 255 / 0.6); }
.eru-meter { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.eru-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9a6bff, #41e2ff, #6dffc1, #ffd36b, #ff5fa8); background-size: 18rem 100%; box-shadow: 0 0 10px rgb(65 226 255 / 0.6); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.eru-pl-tier { grid-column: 1 / -1; font-size: 0.85rem; color: #cfc8ef; }

/* ---- the running panel (wide screens) ---- */

.eru-panel {
  display: none;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgb(179 160 255 / 0.3);
  border-radius: 16px;
  background: rgb(10 9 32 / 0.82);
  box-shadow: 0 20px 50px -24px rgb(120 90 255 / 0.6);
}
.eru-panel-kicker { color: #9fe8ff; }
.eru-panel-rt { margin: 0.25rem 0 0.9rem; font-size: 0.92rem; color: #e6e1f8; }
.eru-panel-sub { margin: 1rem 0 0.4rem; font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9a2d0; }
.eru-powers { display: grid; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; overflow: auto; overscroll-behavior: contain; }
.eru-powers li { padding: 0.45rem 0.6rem; border-radius: 8px; background: rgb(255 255 255 / 0.04); border-left: 2px solid var(--p-glow, #b3a0ff); font-size: 0.84rem; line-height: 1.35; color: #cfc8ef; }
.eru-powers b { display: block; color: #fff; font-size: 0.9rem; }
.eru-powers .is-new { animation: eru-new 1.6s ease-out; }
@keyframes eru-new { 0% { background: color-mix(in srgb, var(--p-glow, #b3a0ff) 45%, transparent); transform: translateX(-6px); } 100% { background: rgb(255 255 255 / 0.04); transform: none; } }
.eru-panel .eru-btn { width: 100%; }

/* ---- the floating HUD (phones and mid widths) ---- */

.eru-hud {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.65rem;
  width: min(22rem, calc(100% - 32px));
  padding: 0.5rem 1rem 0.65rem 0.55rem;
  border: 1px solid rgb(179 160 255 / 0.45);
  border-radius: 999px;
  background: rgb(12 10 38 / 0.92);
  color: #f1edff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5), 0 0 18px rgb(120 90 255 / 0.35);
}
.eru-hud-face { grid-row: span 2; display: block; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid #41e2ff; background: #120638; object-fit: cover; box-shadow: 0 0 8px rgb(65 226 255 / 0.5); }
/* Wraps the power level onto its own line once it gets too long to share one. */
.eru-hud-text { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 0.5rem; min-width: 0; }
.eru-hud-top { font-size: 0.78rem; color: #cfc8ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eru-hud-pl { font-family: var(--display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eru-hud-pl [data-eru="level"] { font-size: min(1em, calc(19rem / var(--pl-len, 9))); }
.eru-hud-meter { display: block; height: 4px; margin-top: 0.3rem; border-radius: 999px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.eru-hud-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #9a6bff, #41e2ff, #ffd36b); transition: width 0.6s ease; }

.eru-toast {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--t-glow, #b3a0ff);
  background: rgb(12 10 38 / 0.95);
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 0 0 20px color-mix(in srgb, var(--t-glow, #b3a0ff) 50%, transparent);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.eru-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.eru-toast:empty { display: none; }

/* ---- the profile card ---- */

.eru-profile {
  width: min(30rem, calc(100% - 32px));
  max-height: min(46rem, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid rgb(179 160 255 / 0.45);
  border-radius: 20px;
  background: radial-gradient(120% 50% at 0% 0%, rgb(65 226 255 / 0.12), transparent 70%), linear-gradient(170deg, #1a1450, #0a0920 60%);
  color: #f1edff;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.6), 0 0 40px rgb(120 90 255 / 0.35);
}
.eru-profile::backdrop { background: rgb(3 4 14 / 0.72); }
.eru-profile[open] { animation: eru-pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes eru-pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
.eru-pf { position: relative; padding: 1.25rem 1.2rem 1.4rem; }
.eru-pf-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  color: #f1edff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.eru-pf-head { display: flex; align-items: center; gap: 0.9rem; padding-right: 2.5rem; }
.eru-pf-face { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 2px solid #41e2ff; background: #120638; object-fit: cover; box-shadow: 0 0 14px rgb(65 226 255 / 0.45); }
.eru-pf-head h2 { margin: 0.15rem 0 0.1rem; font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.eru-pf-role { margin: 0; font-size: 0.88rem; color: #cfc8ef; }
.eru-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 1.2rem 0 0.6rem; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / 0.35); border: 1px solid rgb(255 255 255 / 0.1); }
.eru-seg button { padding: 0.45rem 0.5rem; border: 0; border-radius: 999px; background: none; color: #cfc8ef; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.eru-seg button[aria-pressed="true"] { background: linear-gradient(135deg, #5b3cc4, #2a5bd7); color: #fff; box-shadow: 0 0 12px rgb(91 60 196 / 0.6); }
.eru-pf-asof { margin: 0 0 0.9rem; font-size: 0.88rem; color: #a9a2d0; text-align: center; }
.eru-pl--big .eru-pl-num { font-size: min(clamp(2.2rem, 10vw, 3rem), calc(42rem / var(--pl-len, 9)), calc((100vw - 5rem) * 1.7 / var(--pl-len, 9))); }
.eru-pl--big .eru-meter { height: 10px; }
.eru-pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1rem 0 0; }
.eru-pf-stats div { padding: 0.5rem; border-radius: 10px; background: rgb(255 255 255 / 0.05); text-align: center; }
.eru-pf-stats dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a9a2d0; }
.eru-pf-stats dd { margin: 0.1rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.eru-pf-h { margin: 1.2rem 0 0.5rem; font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #9fe8ff; }
.eru-pf-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.eru-pf-list li { padding: 0.55rem 0.7rem; border-radius: 10px; background: rgb(255 255 255 / 0.05); border-left: 3px solid var(--p-glow, #b3a0ff); font-size: 0.9rem; line-height: 1.4; color: #d6d0f2; }
.eru-pf-list b { display: block; color: #fff; font-size: 0.98rem; }
.eru-pf-from { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: #a9a2d0; }
.eru-pf-from a { color: var(--p-glow, #b3a0ff); }
.eru-pf-more { margin: 0.8rem 0 0; font-size: 0.85rem; color: #a9a2d0; text-align: center; }
.eru-pf-more:empty { display: none; }

/* ---- wider screens ---- */

@media (min-width: 760px) {
  .eru-line { --thread-x: 50%; --orb: 3.5rem; padding-top: 1.5rem; }
  .eru-list > .eru-major + li, .eru-list > li + .eru-major { margin-top: 4rem; }
  /* Majors sit on the thread like stations, the orb on the top edge. */
  .eru-major { padding: calc(var(--orb) / 2) 0 0; }
  .eru-major::before { display: none; }
  .eru-major .eru-orb { top: 0; }
  .eru-card { max-width: 42rem; margin: 0 auto; padding: calc(var(--orb) / 2 + 1rem) 2rem 1.6rem; }
  .eru-major .eru-tag, .eru-card h2 { text-align: center; }
  .eru-watermark { font-size: 8rem; }
  .eru-major--forming .eru-card { max-width: 22rem; text-align: center; }
  /* Events branch left or right. */
  .eru-event { padding: 0; }
  .eru-event::before { width: 2.5rem; }
  .eru-ecard { width: min(20rem, calc(50% - 2.5rem)); }
  .eru-event--right .eru-ecard { margin-left: calc(50% + 2.5rem); }
  .eru-event--left .eru-ecard { margin-left: auto; margin-right: calc(50% + 2.5rem); border-left-width: 1px; border-right: 2px solid var(--u-glow); text-align: right; }
  .eru-event--left .eru-ecard--quest { border-left-style: dashed; }
  .eru-event--left::before { left: auto; right: 50%; background: linear-gradient(to left, var(--u-glow), color-mix(in srgb, var(--u-glow) 30%, transparent)); }
}

@media (min-width: 1100px) {
  .eru-wrap { grid-template-columns: minmax(0, 1fr) 17.5rem; align-items: start; }
  .eru-panel { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem); max-height: calc(100dvh - 2.5rem); overflow: hidden; display: flex; flex-direction: column; }
  .eru-powers { flex: 1 1 auto; min-height: 0; }
  .eru-panel .eru-btn { flex: none; }
  .eru-hud { display: none; }
  .eru-toast { display: none; }
  main:has(.eru-sky) { padding-bottom: 4rem; }
}

@media (max-width: 380px) {
  .eru-card { padding: 1.05rem 0.9rem 1rem; }
  .eru-story p { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .eru-js .eru-card, .eru-js .eru-ecard, .eru-js .eru-orb, .eru-js .eru-dot { opacity: 1; transform: none; }
  .is-current .eru-orb, .eru-powers .is-new, .eru-profile[open] { animation: none; }
  .eru-nebula { will-change: auto; }
}

/* Ryon's silhouette in the top left of the header, on this page only (_layouts/default.html) */
.eru-badge { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; }
.eru-badge img { display: block; width: 30px; height: 30px; filter: drop-shadow(0 0 5px rgb(65 226 255 / 0.6)); }
.eru-badge:focus-visible { outline: 2px solid #41e2ff; outline-offset: 3px; }
