:root {
  --ink: #0a0d1a;
  --veil: #121833;
  --bone: #e6e3da;
  --mist: #8d94ad;
  --lumen: #b7cdfa;
  --brass: #b59a64;
  --crimson: #e0142b;

  --font-display: "Forum", "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --font-cult: "Grenze Gotisch", "UnifrakturMaguntia", "Forum", serif;

  --spine: clamp(1.25rem, 6vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --chapter-pad: clamp(5.5rem, 13vw, 10rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 70% 55% at 78% 8%, rgba(70, 96, 170, 0.20), transparent 62%),
    radial-gradient(ellipse 55% 45% at 6% 72%, rgba(98, 70, 150, 0.12), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(183, 205, 250, 0.28); color: #fff; }

a { color: var(--lumen); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--lumen); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--bone);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--gutter) 1.4rem calc(var(--spine) + var(--gutter));
  background: linear-gradient(to bottom, rgba(10, 13, 26, 0.96) 0%, rgba(10, 13, 26, 0.86) 58%, rgba(10, 13, 26, 0) 100%);
  font-size: 0.95rem;
  transition: opacity 0.8s ease;
}
.topbar__mark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-decoration: none;
}
.topbar__right { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.topbar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }

.sound-ctl { position: relative; display: flex; align-items: center; }
.sound-ctl__btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(183, 205, 250, 0.3);
  border-radius: 50%;
  background: rgba(10, 13, 26, 0.5);
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.sound-ctl__btn:hover { color: var(--bone); border-color: var(--lumen); }
.sound-ctl__btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-ctl[data-level="off"] .sound-ctl__w1,
.sound-ctl[data-level="off"] .sound-ctl__w2,
.sound-ctl[data-level="low"] .sound-ctl__w2 { display: none; }
.sound-ctl:not([data-level="off"]) .sound-ctl__x { display: none; }
.sound-ctl__panel {
  position: absolute;
  top: 100%;
  right: -0.6rem;
  z-index: 3;
  padding-top: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.sound-ctl:hover .sound-ctl__panel,
.sound-ctl:focus-within .sound-ctl__panel,
.sound-ctl.is-open .sound-ctl__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.sound-ctl__box {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(183, 205, 250, 0.22);
  border-radius: 6px;
  background: rgba(10, 13, 26, 0.94);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}
.sound-ctl__range { display: block; width: 8rem; margin: 0; accent-color: var(--lumen); cursor: pointer; }
.topbar__nav a { color: var(--mist); text-decoration: none; }
.topbar__nav a:hover { color: var(--bone); }

.page {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 0 calc(var(--spine) + var(--gutter));
}
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--spine);
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(183, 205, 250, 0) 0%,
    rgba(183, 205, 250, 0.55) 6%,
    rgba(183, 205, 250, 0.28) 70%,
    rgba(183, 205, 250, 0) 100%
  );
  transform-origin: top;
  animation: thread-down 2.6s cubic-bezier(0.6, 0, 0.2, 1) both;
}
@keyframes thread-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
  max-width: 72rem;
}
.hero__title {
  font-size: clamp(4rem, 13.5vw, 12.5rem);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 0 48px rgba(183, 205, 250, 0.22);
}
.hero__line {
  display: block;
  animation: resolve 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__line--offset {
  padding-left: 0.9em;
  animation-delay: 0.35s;
}
@keyframes resolve {
  from { opacity: 0; letter-spacing: 0.16em; filter: blur(12px); }
  to   { opacity: 1; letter-spacing: 0.01em; filter: blur(0); }
}
.hero__lead,
.hero__text,
.hero__meta,
.hero__actions { animation: surface 1.4s ease both; animation-delay: 1.4s; }

.hero__lead {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--lumen);
}
.hero__text {
  margin-top: 1rem;
  max-width: 34em;
  font-size: 1.2rem;
  color: rgba(230, 227, 218, 0.86);
}
.hero__meta { margin-top: 1rem; font-size: 0.95rem; color: var(--mist); }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
@keyframes surface { from { opacity: 0; } to { opacity: 1; } }

.button {
  display: inline-block;
  padding: 0.8em 1.35em;
  border: 1px solid rgba(183, 205, 250, 0.38);
  border-radius: 2px;
  color: var(--bone);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.button:hover { background: rgba(183, 205, 250, 0.1); border-color: var(--lumen); color: #fff; }
.button--solid { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.button--solid:hover { background: #fff; border-color: #fff; color: var(--ink); }

.chapter {
  position: relative;
  max-width: 72rem;
  padding-top: var(--chapter-pad);
}
.chapter__node {
  position: absolute;
  top: calc(var(--chapter-pad) + 0.7rem);
  left: calc(-1 * var(--gutter) - 8px);
  width: 17px;
  height: 17px;
  background: var(--lumen);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.chapter__node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: inherit;
  transform: scale(0.45);
}
.chapter__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--bone);
}
.chapter__intro {
  margin-top: 0.9rem;
  max-width: 36em;
  color: var(--mist);
}

.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }

.world {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 36em) minmax(11rem, 15rem);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: start;
}
.facts {
  margin: 0.4rem 0 0;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(181, 154, 100, 0.4);
  display: grid;
  gap: 1.15rem;
}
.facts dt { font-size: 0.85rem; color: var(--mist); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }

.tone {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 64rem;
}
.tone__item h3 { font-size: 1.55rem; line-height: 1.15; color: var(--lumen); }
.tone__item p { margin-top: 0.75rem; color: rgba(230, 227, 218, 0.84); }

.tiers {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
}
.tier {
  --i: 0;
  display: grid;
  grid-template-columns: 5.5rem minmax(10rem, 13rem) minmax(0, 28em);
  gap: 0.4rem 2rem;
  align-items: baseline;
  margin-left: calc(var(--i) * clamp(0rem, 3.2vw, 3.25rem));
}
.tier:nth-child(2) { --i: 1; }
.tier:nth-child(3) { --i: 2; }
.tier:nth-child(4) { --i: 3; }
.tier__num {
  font-family: var(--font-display);
  color: var(--brass);
  line-height: 1;
  font-size: calc(2.1rem + var(--i) * 0.75rem);
}
.tier__head h3 { font-size: 1.6rem; line-height: 1.1; }
.tier__levels { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--mist); }
.tier p { color: rgba(230, 227, 218, 0.84); }

.cast { margin-top: 3.25rem; }
.cast + .cast { margin-top: 4.75rem; }
.cast__title { font-size: 1.75rem; line-height: 1.1; }
.cast__sub { margin-top: 0.35rem; color: var(--mist); font-size: 1rem; }

npc-card { display: none; }

.cards {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 14.5rem));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.card {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 8;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}
.card:focus-visible { outline-offset: 6px; border-radius: 12px; }

.card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.card[aria-pressed="true"] .card__inner { transform: rotateY(180deg); }

.card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.05rem 0.95rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(181, 154, 100, 0.5);
  background: radial-gradient(ellipse 90% 70% at 50% 32%, #1a2246, #0d1124 75%);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.card__face::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(181, 154, 100, 0.2);
  border-radius: 6px;
  pointer-events: none;
}
.card:hover .card__face { border-color: rgba(214, 186, 128, 0.85); }

.card__face--back {
  transform: rotateY(180deg);
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.35rem;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, #151b38, #0b0f21 80%);
}

.card__role {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.card__art {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0.65rem 0 0.8rem;
  border-radius: 4px;
  overflow: hidden;
  background: #080b18 center top / cover no-repeat;
}
.card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__art.has-image svg { display: none; }
.card__art.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8, 11, 24, 0.55));
}
.card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--bone);
}
.card__name small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-text);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}
.card__text {
  display: block;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(230, 227, 218, 0.88);
}
.card__group {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--brass);
}

.constellation .dust { fill: rgba(230, 227, 218, 0.35); }
.constellation .link { stroke: rgba(183, 205, 250, 0.42); stroke-width: 0.35; fill: none; }
.constellation .halo { fill: rgba(183, 205, 250, 0.14); }
.constellation .star { fill: #f2f0ea; }
.constellation .mono {
  fill: rgba(183, 205, 250, 0.07);
  font-family: var(--font-display);
  font-size: 104px;
}

.card--unknown .card__face {
  border-color: rgba(141, 148, 173, 0.32);
  background: radial-gradient(ellipse 90% 70% at 50% 40%, #0e1020, #05060c 80%);
}
.card--unknown .card__face::after { border-color: rgba(141, 148, 173, 0.14); }
.card--unknown:hover .card__face { border-color: rgba(141, 148, 173, 0.6); }
.card--unknown .card__role { color: var(--mist); }

.card__void {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  margin: 0.65rem 0 0.8rem;
}
.card__void svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.card__void path { fill: none; vector-effect: non-scaling-stroke; }
.card__glyph {
  position: relative;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(230, 227, 218, 0.16);
}
.card--unknown .card__name { letter-spacing: 0.2em; color: rgba(230, 227, 218, 0.7); }

.card--threads .card__void path { stroke: rgba(224, 20, 43, 0.5); stroke-width: 1; }
.card--threads .card__face--back .card__name { color: rgba(224, 20, 43, 0.85); }
.card--threads .card__face--back .card__text { color: #d8bcc0; }

.card--rift .card__void path {
  stroke: rgba(223, 232, 255, 0.75);
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(183, 205, 250, 0.8));
}

.session {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 36em) minmax(14rem, 21rem);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: start;
}
.quote {
  margin: 0.3rem 0 0;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(181, 154, 100, 0.4);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--lumen);
}
.countdown { margin-top: 2.5rem; padding-left: 1.4rem; }
.countdown__label { display: block; font-size: 0.9rem; color: var(--mist); }
.countdown__value {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.footer {
  max-width: 46em;
  margin-top: clamp(7rem, 14vw, 11rem);
  padding: 0 0 4rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mist);
}
.footer p + p { margin-top: 0.8rem; }
.footer__mark { font-family: var(--font-display); font-size: 1.3rem; color: var(--bone); }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--bone); }

.filters { position: absolute; width: 0; height: 0; overflow: hidden; }

html.is-veiled { overflow: hidden; }
html.is-veiled .page,
html.is-veiled .topbar { pointer-events: none; user-select: none; }
html.is-veiled .topbar { opacity: 0; }
.page::before { transition: opacity 1.8s ease; }
html.is-veiled .page::before { opacity: 0; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, #17040b 0%, #070208 62%, #020104 100%);
  opacity: 0;
  transition: opacity 1.3s ease;
}
.veil.is-open { opacity: 1; }
.veil__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.veil__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
  text-align: center;
  font-family: var(--font-cult);
  font-weight: 700;
  font-size: var(--veil-size, clamp(2.6rem, 8.5vw, 8rem));
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--crimson);
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.16);
  will-change: opacity, transform;
  transition:
    opacity 2.4s ease 0.8s,
    filter 2.4s ease 0.8s,
    transform 3.2s cubic-bezier(0.2, 0.7, 0.1, 1) 0.8s;
}
.veil__title > span { grid-area: 1 / 1; display: block; }
.veil__line { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
.veil__text { position: relative; z-index: 1; }
.veil__echo {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2em);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.4em;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: rgba(255, 238, 242, 0.92);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 26px rgba(224, 20, 43, 0.8), 0 0 60px rgba(224, 20, 43, 0.45);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 1.8s ease, filter 1.8s ease;
}
.veil__echo.is-below { bottom: auto; top: calc(100% + 0.3em); }
.veil__echo.is-on { opacity: 1; filter: none; }
.veil__text .is-marked {
  -webkit-text-stroke: 0.04em rgba(255, 236, 240, 0.95);
  paint-order: stroke fill;
}
.veil__text {
  text-shadow:
    0 0 14px rgba(224, 20, 43, 0.6),
    0 0 52px rgba(224, 20, 43, 0.38);
}
.veil__glow {
  color: transparent;
  text-shadow:
    0 0 24px rgba(255, 40, 60, 0.7),
    0 0 90px rgba(224, 20, 43, 0.5),
    0 0 180px rgba(150, 0, 22, 0.75);
  opacity: 0.35;
  will-change: opacity;
}
.veil.is-open .veil__title { opacity: 1; filter: none; transform: none; }
.veil.is-open .veil__glow { animation: veil-breathe 5s ease-in-out 4s infinite; }
@keyframes veil-breathe {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.veil__back {
  position: absolute;
  top: clamp(0.9rem, 2.5vw, 1.5rem);
  left: clamp(0.9rem, 2.5vw, 1.5rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(224, 20, 43, 0.55);
  border-radius: 50%;
  background: rgba(12, 2, 6, 0.6);
  color: #f2c9ce;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.7s ease 1.8s, transform 0.7s ease 1.8s, background-color 0.25s ease, border-color 0.25s ease;
}
.sound-ctl--veil {
  position: absolute;
  top: clamp(0.9rem, 2.5vw, 1.5rem);
  left: calc(clamp(0.9rem, 2.5vw, 1.5rem) + 3.6rem);
  z-index: 2;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.7s ease 2s, transform 0.7s ease 2s;
}
.sound-ctl--veil .sound-ctl__btn {
  width: 3rem;
  height: 3rem;
  border-color: rgba(224, 20, 43, 0.55);
  background: rgba(12, 2, 6, 0.6);
  color: #f2c9ce;
}
.sound-ctl--veil .sound-ctl__btn:hover { background: rgba(224, 20, 43, 0.18); border-color: var(--crimson); }
.sound-ctl--veil .sound-ctl__btn svg { width: 1.3rem; height: 1.3rem; }
.sound-ctl--veil .sound-ctl__panel {
  top: 50%;
  left: 100%;
  right: auto;
  padding: 0 0 0 0.55rem;
  transform: translate(-4px, -50%);
}
.sound-ctl--veil:hover .sound-ctl__panel,
.sound-ctl--veil:focus-within .sound-ctl__panel,
.sound-ctl--veil.is-open .sound-ctl__panel { transform: translate(0, -50%); }
.sound-ctl--veil .sound-ctl__box { border-color: rgba(224, 20, 43, 0.4); background: rgba(12, 2, 6, 0.9); }
.sound-ctl--veil .sound-ctl__range { accent-color: var(--crimson); }
.veil.is-open .veil__back,
.veil.is-open .sound-ctl--veil { opacity: 1; transform: none; }
.veil__back:hover { background: rgba(224, 20, 43, 0.18); border-color: var(--crimson); }
.veil__back:focus-visible,
.sound-ctl--veil .sound-ctl__btn:focus-visible { outline-color: #f2c9ce; }
.veil__back svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.veil__whispers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.veil__whisper {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: var(--font-text);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: 0.14em;
  color: rgba(255, 244, 246, 0.95);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5), 0 0 18px rgba(255, 255, 255, 0.25), 0 0 28px rgba(224, 20, 43, 0.75);
}
.veil__whisper > span {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  animation:
    veil-whisper-in 0.7s ease calc(var(--i) * 35ms) forwards,
    veil-whisper-out 1.1s ease-in calc(1.9s + var(--j) * 55ms) forwards;
}
.veil__whisper.is-quick > span {
  animation: veil-whisper-in 0.15s ease forwards;
}
@keyframes veil-whisper-in { to { opacity: 1; filter: blur(0); } }
@keyframes veil-whisper-out {
  from { opacity: 1; filter: blur(0); transform: none; }
  to { opacity: 0; filter: blur(5px); transform: translate(var(--dx), var(--dy)); }
}

.veil.is-closing { transition: opacity 0.9s ease; }
.veil.is-closing .veil__title { transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease; }
.veil.is-closing .veil__back,
.veil.is-closing .sound-ctl--veil { transition: opacity 0.3s ease; opacity: 0; }

@media (max-width: 960px) {
  .tone { grid-template-columns: 1fr; max-width: 36em; }
  .tier { grid-template-columns: 4rem minmax(0, 1fr); }
  .tier p { grid-column: 2; }
}

@media (max-width: 760px) {
  .world,
  .session { grid-template-columns: 1fr; }
  .topbar__nav { display: none; }
  .hero__line--offset { padding-left: 0.45em; }
  .tier { margin-left: calc(var(--i) * 0.6rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { aspect-ratio: 9 / 16; }
  .card__face { padding: 0.8rem 0.7rem 0.9rem; }
  .card__face--back { padding: 0.75rem 0.7rem; gap: 0.5rem; }
  .card__name { font-size: 1.1rem; }
  .card__text { font-size: 0.8rem; line-height: 1.4; }
  .card__group { font-size: 0.74rem; }
  .card__glyph { font-size: 4rem; }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: minmax(0, 15rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .veil__whisper > span,
  .veil__whisper.is-quick > span { animation: none; opacity: 1; filter: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
