@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --ink: #eef7fb;
  --muted: #9bafba;
  --muted-2: #627784;
  --night: #01040a;
  --panel: rgba(3, 9, 17, 0.92);
  --panel-solid: #030b14;
  --line: rgba(150, 205, 230, 0.2);
  --cyan: #9adfff;
  --cyan-strong: #59b8e7;
  --gold: #bda56b;
  --red: #a84a55;
  --violet: #705b98;
  --alliance-blue: #4A7BA7;
  --alliance-blue-light: #7FA9D1;
  --alliance-gold: #D4AF6A;
  --alliance-gold-light: #F5E4B8;
  --ease-out: cubic-bezier(.18, .8, .22, 1);
  --font-ui: "HarmonyOS Sans SC", "HarmonyOS Sans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Microsoft YaHei", "Microsoft YaHei UI", "HarmonyOS Sans SC", sans-serif;
  --viewport-width: 100vw;
  --viewport-height: 100dvh;
  --viewport-offset-top: 0px;
  --viewport-offset-left: 0px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-ui);
}

.specular-cursor {
  --cursor-angle: 2.4rad;
  --cursor-intensity: .22;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity .18s ease;
}

.specular-cursor.is-visible {
  opacity: .92;
}

.specular-cursor__glow,
.specular-cursor__rim,
.specular-cursor__dot {
  position: absolute;
  pointer-events: none;
}

.specular-cursor__glow {
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 224, 255, .18), rgba(77, 170, 220, .07) 42%, transparent 70%);
  filter: blur(3px);
  opacity: var(--cursor-intensity);
  transition: transform .18s var(--ease-out);
}

.specular-cursor__rim {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--cursor-angle), transparent 0 205deg, rgba(117, 204, 239, .08) 235deg, rgba(190, 238, 255, .78) 286deg, #fff 310deg, rgba(190, 238, 255, .22) 338deg, transparent 360deg);
  filter: drop-shadow(0 0 5px rgba(113, 211, 247, .48));
  opacity: var(--cursor-intensity);
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 2px), #000 calc(100% - 1.1px));
  mask: radial-gradient(circle, transparent calc(100% - 2px), #000 calc(100% - 1.1px));
  transition: transform .18s var(--ease-out);
}

.specular-cursor__dot {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e9faff;
  box-shadow: 0 0 7px #75cdf1;
  transform: translate(-50%, -50%);
}

.specular-cursor.is-interactive .specular-cursor__glow,
.specular-cursor.is-interactive .specular-cursor__rim {
  transform: scale(1.28);
}

.specular-cursor.is-pressed .specular-cursor__glow,
.specular-cursor.is-pressed .specular-cursor__rim {
  transform: scale(.76);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app,
.atlas,
.intro,
.graph-stage {
  position: relative;
  width: 100%;
  height: var(--viewport-height, 100%);
  min-height: 100%;
}

.intro,
.atlas {
  position: absolute;
  inset: 0;
}

.global-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 49% 44%, rgba(39, 104, 144, .18), transparent 34%),
    radial-gradient(circle at 14% 76%, rgba(27, 62, 92, .13), transparent 30%),
    linear-gradient(145deg, #010309 0%, #06101c 48%, #01040a 100%);
}

.global-bg__image {
  position: absolute;
  inset: -4%;
  background-image: url("../assets/backgrounds/azeroth-star-chart.png");
  background-size: cover;
  background-position: center;
  opacity: .5;
  filter: saturate(.58) contrast(1.12) brightness(.48) hue-rotate(-4deg);
  transform: scale(1.04);
  transition: opacity 1.5s ease, filter 1.5s ease, transform 2s var(--ease-out);
}

.global-bg__nebula {
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  filter: blur(95px);
  mix-blend-mode: screen;
  opacity: .18;
  animation: nebula-drift 18s ease-in-out infinite alternate;
}

.global-bg__nebula--one {
  top: -34vw;
  left: 8vw;
  background: radial-gradient(circle, rgba(38, 155, 193, .48), transparent 66%);
}

.global-bg__nebula--two {
  right: -34vw;
  bottom: -37vw;
  background: radial-gradient(circle, rgba(42, 91, 132, .36), transparent 68%);
  animation-delay: -6s;
}

.global-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 3, 7, .72), transparent 24%, transparent 68%, rgba(0, 3, 7, .82)),
    radial-gradient(ellipse at center, transparent 28%, rgba(0, 3, 7, .58) 82%, rgba(0, 2, 5, .9) 100%);
}

.global-bg__noise {
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

.global-bg__texture {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' seed='2'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 0.8 0 0 0 0 0 0.4 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)' opacity='0.8'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 190px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(159, 228, 248, .54);
  background: linear-gradient(112deg, rgba(17, 70, 91, .88), rgba(9, 28, 43, .76));
  box-shadow: inset 0 0 24px rgba(82, 204, 239, .09), 0 8px 48px rgba(0, 0, 0, .35);
  color: #ecfbff;
  cursor: pointer;
  letter-spacing: .14em;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s, background .35s;
}

.primary-button::before,
.primary-button::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  transition: width .35s var(--ease-out), height .35s var(--ease-out);
}

.primary-button::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.primary-button::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.primary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 228, 248, .86);
  background: linear-gradient(112deg, rgba(22, 91, 116, .94), rgba(10, 38, 56, .86));
  box-shadow: inset 0 0 32px rgba(82, 204, 239, .16), 0 12px 50px rgba(0, 0, 0, .45), 0 0 28px rgba(67, 198, 235, .09);
}

.primary-button:hover::before,
.primary-button:hover::after {
  width: 15px;
  height: 15px;
}

/* Intro */
.intro {
  z-index: 20;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease .55s, visibility 0s linear 1.5s;
}

.intro::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    repeating-radial-gradient(circle at center, transparent 0 132px, rgba(104, 192, 215, .055) 133px, transparent 134px 184px),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(138, 221, 241, .08) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(138, 221, 241, .06) 50%, transparent calc(50% + .5px));
  mask-image: radial-gradient(circle at center, #000, transparent 66%);
}

.intro__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.intro__content {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(720px, 90vw);
  align-items: center;
  flex-direction: column;
  padding-top: 8px;
  text-align: center;
  animation: intro-rise 1.6s var(--ease-out) both;
}

.intro__eyebrow {
  margin-bottom: 18px;
  color: rgba(166, 222, 235, .74);
}

.intro__rule {
  display: flex;
  width: 215px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(216, 184, 108, .75);
}

.intro__rule i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 108, .6));
}

.intro__rule i:last-child {
  transform: scaleX(-1);
}

.intro__rule span {
  font-size: 14px;
}

.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.18;
  text-indent: .22em;
  text-shadow: 0 0 34px rgba(102, 211, 239, .18), 0 3px 18px rgba(0, 0, 0, .8);
}

.intro__subtitle {
  margin: 14px 0 0;
  color: #d7be83;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.35vw, 22px);
  letter-spacing: .32em;
  text-indent: .32em;
}

.intro__lead {
  margin: 28px 0 32px;
  color: rgba(210, 224, 229, .64);
  font-size: 13px;
  letter-spacing: .16em;
}

.intro__button {
  min-width: 226px;
  height: 58px;
}

.intro__button i {
  color: var(--cyan);
  font-style: normal;
  font-size: 21px;
}

.intro__hint {
  margin: 20px 0 0;
  color: rgba(171, 188, 194, .42);
  font-size: 10px;
  letter-spacing: .15em;
}

.intro__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border: 1px solid rgba(130, 209, 230, .11);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(-16deg);
}

.intro__orbit::after {
  position: absolute;
  top: -3px;
  left: 31%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 4px rgba(93, 218, 249, .5);
  content: "";
}

.intro__orbit--outer {
  width: min(82vw, 1160px);
  height: min(48vw, 620px);
  animation: orbit-turn 36s linear infinite;
}

.intro__orbit--middle {
  width: min(62vw, 850px);
  height: min(36vw, 460px);
  border-color: rgba(217, 184, 108, .1);
  transform: translate(-50%, -50%) rotateX(65deg) rotateZ(21deg);
  animation: orbit-turn-reverse 29s linear infinite;
}

.intro__orbit--inner {
  width: min(38vw, 530px);
  height: min(24vw, 320px);
  animation: orbit-turn 24s linear infinite;
}

.intro__map-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(31vw, 410px);
  height: min(31vw, 410px);
  opacity: .29;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 24px rgba(86, 198, 225, .15));
}

.intro__map-mark svg {
  width: 100%;
  height: 100%;
}

.map-stroke {
  fill: rgba(40, 91, 108, .16);
  stroke: rgba(139, 222, 243, .48);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}

.map-stroke--thin {
  fill: none;
  stroke-width: .7;
  stroke-opacity: .5;
  stroke-dasharray: 2 7;
}

.intro__corner {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: .38;
}

.intro__corner--tl { top: 32px; left: 32px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.intro__corner--tr { top: 32px; right: 32px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.intro__corner--bl { bottom: 32px; left: 32px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.intro__corner--br { right: 32px; bottom: 32px; border-right: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); }

.app.is-entering .intro__content {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity .48s ease, transform 1.3s var(--ease-out);
}

.app.is-entering .intro__orbit {
  border-color: rgba(126, 226, 251, .5);
  box-shadow: 0 0 44px rgba(72, 184, 216, .18), inset 0 0 44px rgba(72, 184, 216, .12);
  transition: border-color .6s, box-shadow .6s, transform 1.6s var(--ease-out);
}

.app.is-entering .intro__map-mark {
  opacity: .85;
  transform: translate(-50%, -50%) scale(2.4);
  filter: blur(2px) drop-shadow(0 0 55px rgba(90, 218, 250, .54));
  transition: opacity .55s, transform 1.7s var(--ease-out), filter 1.2s;
}

.app.is-atlas .intro {
  opacity: 0;
  visibility: hidden;
}

.app.is-atlas .global-bg__image {
  opacity: .58;
  filter: saturate(.6) contrast(1.14) brightness(.45) hue-rotate(-4deg);
  transform: scale(1);
}

/* Atlas shell */
.atlas {
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity 1s ease, visibility 0s linear 1s, transform 1.6s var(--ease-out);
}

.app.is-atlas .atlas {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: .2s, 0s, .1s;
}

.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid rgba(151, 211, 228, .1);
  background: linear-gradient(to bottom, rgba(2, 7, 12, .82), rgba(2, 7, 12, .2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand__sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(218, 185, 109, .38);
  background: rgba(14, 22, 27, .45);
  color: var(--gold);
  font-family: serif;
  font-size: 20px;
  transform: rotate(45deg);
}

.brand__sigil::first-letter {
  transform: rotate(-45deg);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .16em;
}

.brand__copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .22em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search {
  position: relative;
  display: flex;
  width: 226px;
  height: 38px;
  align-items: center;
  border: 1px solid rgba(147, 203, 221, .16);
  background: rgba(4, 13, 20, .58);
  transition: width .35s var(--ease-out), border-color .3s, background .3s;
}

.search:focus-within {
  width: 280px;
  border-color: rgba(129, 218, 242, .5);
  background: rgba(4, 16, 24, .9);
}

.search__icon {
  position: relative;
  width: 13px;
  height: 13px;
  margin-left: 14px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.search input {
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef8fb;
  font-size: 12px;
}

.search input::placeholder {
  color: rgba(157, 176, 183, .48);
}

.search kbd {
  margin-right: 10px;
  padding: 2px 6px;
  border: 1px solid rgba(150, 183, 193, .16);
  color: rgba(175, 196, 204, .5);
  font-size: 10px;
  font-family: inherit;
}

.control-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(147, 203, 221, .16);
  background: rgba(4, 13, 20, .58);
  color: #cbd9de;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .08em;
  transition: border-color .25s, color .25s, background .25s;
}

.control-button:hover {
  border-color: rgba(143, 220, 241, .44);
  background: rgba(11, 35, 48, .8);
  color: #fff;
}

.control-button--accent {
  border-color: rgba(211, 180, 105, .32);
  color: #e3c984;
}

.music-toggle__icon {
  display: inline-grid;
  width: 18px;
  place-items: center;
  color: #8edfff;
  text-shadow: 0 0 9px rgba(92, 203, 244, .62);
}

.music-toggle.is-muted {
  border-color: rgba(147, 173, 184, .13);
  color: #7d9099;
}

.music-toggle.is-muted .music-toggle__icon {
  color: #72858d;
  text-shadow: none;
}

.music-toggle:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.graph-stage {
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.graph-stage.is-dragging {
  cursor: grabbing;
}

.webgl-container,
.graph-overlay,
.labels-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.webgl-container {
  z-index: 1;
  opacity: .82;
  pointer-events: none;
}

.webgl-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.graph-overlay {
  z-index: 10;
  overflow: visible;
  pointer-events: none;
}

.relation-line {
  fill: none;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: opacity .25s, stroke-width .25s;
}

.relation-line.is-active {
  stroke-width: 2.15;
  filter: drop-shadow(0 0 5px currentColor);
}

.relation-line.is-dimmed {
  opacity: .035 !important;
}

.event-line {
  fill: none;
  stroke: rgba(154, 216, 232, .18);
  stroke-width: .75;
  stroke-dasharray: 2 8;
  vector-effect: non-scaling-stroke;
  transition: opacity .25s;
}

.labels-layer {
  z-index: 20;
  pointer-events: none;
  transform-origin: 0 0;
}

.node {
  --node-size: 52px;
  --node-color: #8ee8ff;
  --faction-color: #6f8795;
  position: absolute;
  display: flex;
  width: var(--node-size);
  height: var(--node-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity .35s, filter .35s;
}

.node::before {
  position: absolute;
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--faction-color) 58%, transparent);
  border-radius: 50%;
  content: "";
  opacity: .35;
  box-shadow: 0 0 18px color-mix(in srgb, var(--faction-color) 18%, transparent);
  transform: scale(.72);
  transition: opacity .3s, transform .38s var(--ease-out), border-color .3s;
}

.node::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--node-color) 24%, transparent), transparent 68%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--node-color) 20%, transparent);
  content: "";
  opacity: .58;
  transform: scale(1.85);
  transition: opacity .3s, transform .38s var(--ease-out);
}

.node__core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-color) 68%, #fff 12%);
  border-radius: 50%;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--node-color) 25%, #061018), rgba(3, 8, 13, .96) 70%),
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), transparent 25%);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, .05), 0 0 12px rgba(0,0,0,.6);
  color: color-mix(in srgb, var(--node-color) 72%, white 28%);
  font-family: var(--font-display);
  font-size: calc(var(--node-size) * .32);
  text-shadow: 0 0 8px currentColor;
  transition: transform .38s var(--ease-out), box-shadow .3s, border-color .3s;
}

.node__core img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.86) hue-rotate(-3deg);
  transform: scale(1.035);
  transition: filter .35s, transform .45s var(--ease-out);
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.node__core::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(139, 214, 246, .08), transparent 43%, rgba(0, 6, 14, .2));
  box-shadow: inset 0 0 14px rgba(116, 200, 236, .12);
  content: "";
  pointer-events: none;
}

.node__name {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  width: max-content;
  max-width: 150px;
  color: rgba(224, 237, 241, .86);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 8px #000, 0 0 6px #000;
  transform: translateX(-50%);
  transition: color .3s, transform .3s var(--ease-out), opacity .3s;
}

.node__title {
  display: block;
  margin-top: 3px;
  color: rgba(150, 171, 179, .58);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .09em;
}

.node:hover,
.node.is-selected,
.node.is-related {
  z-index: 12;
  filter: brightness(1.18);
}

.node:hover::before,
.node.is-selected::before {
  opacity: .9;
  border-width: 2px;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--faction-color) 18%, transparent),
    0 0 30px color-mix(in srgb, var(--faction-color) 30%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--faction-color) 20%, transparent);
  transform: scale(1);
}

.node:hover::after,
.node.is-selected::after {
  opacity: .95;
  transform: scale(2.35);
}

.node:hover .node__core,
.node.is-selected .node__core {
  border-color: color-mix(in srgb, var(--node-color) 84%, white 16%);
  border-width: 2px;
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, .08),
    inset 0 0 0 3px color-mix(in srgb, var(--alliance-gold) 30%, transparent),
    0 0 20px color-mix(in srgb, var(--node-color) 36%, transparent),
    0 0 35px color-mix(in srgb, var(--node-color) 25%, transparent);
  transform: scale(1.16);
}

.node:hover .node__core img,
.node.is-selected .node__core img {
  filter: saturate(.84) contrast(1.12) brightness(1.02) hue-rotate(-3deg);
  transform: scale(1.12);
}

.node:hover .node__name,
.node.is-selected .node__name {
  color: #fff;
  transform: translateX(-50%) translateY(3px);
}

.node.is-central {
  --node-size: 88px;
}

.node.is-central::before {
  inset: -16px;
  border-style: double;
  opacity: .7;
  animation: central-pulse 3.2s ease-in-out infinite;
}

.node.is-central::after {
  transform: scale(2.4);
}

.node.is-central .node__name {
  top: calc(100% + 16px);
  color: #e9fbff;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .14em;
}

.node.is-central .node__title {
  margin-top: 5px;
  color: rgba(149, 219, 238, .74);
  font-family: var(--font-ui);
  font-size: 9px;
}

.node.is-dimmed {
  opacity: .12;
  filter: grayscale(.55);
}

.node.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.event-node {
  --event-color: #d9b86c;
  position: absolute;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity .3s, filter .3s;
}

.event-node__mark {
  position: relative;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(216, 184, 108, .62);
  background: rgba(14, 25, 30, .88);
  box-shadow: 0 0 18px rgba(216, 184, 108, .12);
  color: var(--gold);
  font-family: serif;
  font-size: 8px;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}

.event-node__mark span {
  transform: rotate(-45deg);
}

.event-node__label {
  position: absolute;
  top: 43px;
  left: 50%;
  width: max-content;
  padding: 4px 8px;
  border-top: 1px solid rgba(216, 184, 108, .25);
  color: rgba(225, 205, 156, .74);
  font-size: 9px;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px #000;
  transform: translateX(-50%);
}

.event-node:hover .event-node__mark,
.event-node.is-selected .event-node__mark {
  box-shadow: 0 0 25px rgba(216, 184, 108, .4);
  transform: rotate(135deg) scale(1.22);
}

.event-node:hover .event-node__mark span,
.event-node.is-selected .event-node__mark span {
  transform: rotate(-135deg);
}

.event-node.is-dimmed {
  opacity: .1;
}

.node-tooltip {
  position: fixed;
  z-index: 130;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(140, 213, 233, .24);
  background: rgba(3, 10, 16, .94);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .42);
  pointer-events: none;
  color: #e8f4f7;
  font-size: 11px;
  line-height: 1.6;
}

.node-tooltip strong {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .08em;
}

.node-tooltip span {
  color: var(--muted);
  font-size: 9px;
}

.search-results {
  position: absolute;
  top: 67px;
  right: 228px;
  z-index: 160;
  width: 280px;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid rgba(133, 206, 226, .2);
  background: rgba(4, 11, 17, .97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .54);
}

.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(132, 187, 201, .09);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:hover {
  background: rgba(62, 157, 184, .1);
}

.search-result__glyph {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--result-color, #8ee8ff);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--faction-color) 26%, transparent);
  color: var(--result-color, #8ee8ff);
  font-family: var(--font-display);
  font-size: 11px;
}

.search-result__glyph img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.88) hue-rotate(-3deg);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  font-size: 12px;
  font-weight: 500;
}

.search-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.search-results__empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.map-caption {
  position: absolute;
  top: 112px;
  left: 44px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(151, 196, 208, .33);
  pointer-events: none;
}

.map-caption span {
  font-family: serif;
  font-size: 11px;
  letter-spacing: .34em;
}

.map-caption i {
  width: 46px;
  height: 1px;
  background: rgba(144, 207, 224, .18);
}

.map-caption small {
  font-size: 8px;
  letter-spacing: .14em;
}

.legend {
  position: absolute;
  bottom: 48px;
  left: 42px;
  z-index: 70;
  width: 190px;
  padding: 16px 16px 13px;
  border: 2px solid var(--alliance-gold);
  background: linear-gradient(145deg, rgba(5, 15, 23, .88), rgba(3, 9, 14, .7));
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 4px rgba(74, 123, 167, 0.25),
    inset 0 0 0 5px rgba(212, 175, 106, 0.15),
    inset 0 1px 0 rgba(245, 228, 184, 0.3),
    0 0 40px rgba(74, 123, 167, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.6);
  transition: height .3s, transform .3s;
}

.legend-wrapper {
  position: relative;
}

.legend__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.legend__header small,
.legend__header strong {
  display: block;
}

.legend__header small {
  margin-bottom: 3px;
  color: rgba(131, 197, 214, .45);
  font-size: 7px;
  letter-spacing: .18em;
}

.legend__header strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
}

.legend__header button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.legend__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 7px;
  max-height: 130px;
  overflow: hidden;
  transition: max-height .3s, opacity .25s;
}

.legend-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 3px;
  border: 0;
  background: transparent;
  color: rgba(205, 219, 224, .72);
  cursor: pointer;
  font-size: 9px;
  text-align: left;
  transition: opacity .25s, color .25s;
}

.legend-filter i {
  width: 17px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--filter-color);
  box-shadow: 0 0 5px color-mix(in srgb, var(--filter-color) 55%, transparent);
}

.legend-filter.is-off {
  opacity: .27;
}

.legend-filter.is-off i {
  background: var(--muted-2);
  box-shadow: none;
}

.legend__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(130, 188, 204, .09);
  color: rgba(156, 176, 183, .48);
  font-size: 8px;
}

.legend__note span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(216, 184, 108, .68);
  transform: rotate(45deg);
}

.legend.is-collapsed .legend__items,
.legend.is-collapsed .legend__note {
  max-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.legend.is-collapsed .legend__header {
  margin-bottom: 0;
}

.stage-stats {
  position: absolute;
  right: 42px;
  bottom: 34px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(155, 176, 183, .42);
  pointer-events: none;
  font-size: 9px;
  letter-spacing: .08em;
}

.stage-stats strong {
  margin-right: 3px;
  color: rgba(166, 220, 233, .68);
  font-family: serif;
  font-size: 15px;
  font-weight: 400;
}

.stage-stats i {
  width: 1px;
  height: 13px;
  background: rgba(135, 190, 205, .16);
}

.stage-help {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 45;
  display: flex;
  gap: 8px;
  color: rgba(151, 170, 177, .25);
  pointer-events: none;
  font-size: 8px;
  letter-spacing: .16em;
  transform: translateX(-50%);
}

/* Onboarding */
.choice-panel {
  position: absolute;
  top: 50%;
  right: 7.5vw;
  z-index: 110;
  width: min(390px, calc(100vw - 40px));
  padding: 32px 34px 30px;
  border: 1px solid rgba(141, 211, 230, .24);
  background:
    linear-gradient(135deg, rgba(7, 20, 33, .985), rgba(1, 5, 11, .99)),
    radial-gradient(circle at top right, rgba(68, 145, 188, .14), transparent 42%);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .52), inset 0 0 50px rgba(75, 167, 194, .03);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-44%) translateX(28px);
  transition: opacity .5s ease, transform .65s var(--ease-out);
}

.choice-panel::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
}

.choice-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.choice-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.choice-panel h2 {
  margin: 11px 0 15px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .08em;
}

.choice-panel > p:not(.eyebrow) {
  margin: 0;
  color: #9aaab0;
  font-size: 12px;
  line-height: 1.9;
}

.choice-panel__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.choice-panel .primary-button {
  min-width: 174px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 11px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #a7b8be;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
}

.text-button span {
  margin-left: 5px;
  color: var(--cyan);
  transition: margin-left .25s;
}

.text-button:hover span {
  margin-left: 9px;
}

/* Details */
.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(410px, 36vw);
  border-left: 3px solid var(--alliance-gold);
  background:
    linear-gradient(160deg, rgba(5, 16, 28, .99), rgba(1, 5, 11, .985) 58%),
    radial-gradient(circle at 40% 0, rgba(74, 123, 167, .2), transparent 34%);
  box-shadow:
    -24px 0 70px rgba(0, 0, 0, .42),
    inset 3px 0 0 rgba(127, 169, 209, 0.3),
    inset 8px 0 0 rgba(212, 175, 106, 0.15),
    0 0 40px rgba(74, 123, 167, 0.2),
    inset 0 1px 0 rgba(245, 228, 184, 0.1);
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .55s var(--ease-out), visibility 0s linear .55s;
}

.detail-panel.is-open {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.detail-panel__close {
  position: absolute;
  top: 21px;
  right: 22px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 202, 218, .15);
  background: rgba(4, 11, 16, .36);
  color: #899aa0;
  cursor: pointer;
  font-size: 23px;
  font-weight: 200;
  line-height: 1;
}

.detail-panel__content {
  height: 100%;
  overflow-y: auto;
  scrollbar-color: rgba(93, 178, 202, .35) transparent;
  scrollbar-width: thin;
}

.detail-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, .84fr);
  gap: 22px;
  align-items: end;
  min-height: 245px;
  padding: 56px 34px 30px;
  overflow: hidden;
  border-bottom: 1px solid rgba(135, 199, 216, .11);
}

.detail-hero::before {
  position: absolute;
  top: -85px;
  right: -76px;
  width: 280px;
  height: 280px;
  border: 1px solid color-mix(in srgb, var(--faction-color) 34%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 80px color-mix(in srgb, var(--detail-color) 7%, transparent), 0 0 60px color-mix(in srgb, var(--faction-color) 8%, transparent);
  content: "";
  z-index: 1;
}

.detail-hero__watermark {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 0;
  width: 72%;
  height: 84%;
  overflow: hidden;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 94% 94% at 74% 25%, #000 0 44%, rgba(0, 0, 0, .86) 57%, transparent 84%);
  mask-image: radial-gradient(ellipse 94% 94% at 74% 25%, #000 0 44%, rgba(0, 0, 0, .86) 57%, transparent 84%);
}

.detail-hero__watermark::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, .72), transparent 48%),
    linear-gradient(0deg, rgba(2, 8, 14, .76), transparent 52%),
    radial-gradient(circle at 72% 24%, color-mix(in srgb, var(--detail-color) 18%, transparent), transparent 58%);
  content: "";
}

.detail-hero__watermark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(.68) contrast(1.18) brightness(.9);
  mix-blend-mode: screen;
  transform: scale(1.055);
}

.detail-hero__identity {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.detail-portrait {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--detail-color) 70%, white 10%);
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--detail-color) 24%, #071018), #03080d 72%);
  box-shadow: 0 0 45px color-mix(in srgb, var(--detail-color) 18%, transparent), inset 0 0 20px rgba(255,255,255,.04);
  color: color-mix(in srgb, var(--detail-color) 72%, white 28%);
  font-family: var(--font-display);
  font-size: 28px;
  text-shadow: 0 0 13px currentColor;
}

.detail-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.1) brightness(.88) hue-rotate(-3deg);
  transform: scale(1.025);
}

.detail-portrait::after {
  position: absolute;
  inset: -9px;
  border: 1px solid color-mix(in srgb, var(--faction-color) 50%, transparent);
  border-radius: 50%;
  content: "";
}

.detail-hero__kicker {
  margin-bottom: 7px;
  color: var(--faction-color);
  font-size: 9px;
  letter-spacing: .18em;
}

.detail-hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--detail-name-fitted-size, var(--detail-name-size, 30px));
  font-weight: 500;
  line-height: var(--detail-name-line-height, 1.12);
  letter-spacing: var(--detail-name-letter-spacing, .1em);
}

.detail-hero__name-slot,
.detail-hero__name {
  min-width: 0;
  max-width: 100%;
}

.detail-hero__title {
  margin: 7px 0 0;
  color: #9fb0b6;
  font-size: 11px;
  letter-spacing: .1em;
}

.detail-voice-replay {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  max-width: 100%;
  margin-top: 15px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--detail-color) 28%, transparent);
  background: color-mix(in srgb, var(--detail-color) 6%, rgba(2, 9, 15, .72));
  color: #b7d5df;
  cursor: pointer;
  text-align: left;
  transition: border-color .22s ease, background .22s ease, color .22s ease;
}

.detail-voice-replay:hover,
.detail-voice-replay.is-playing {
  border-color: color-mix(in srgb, var(--detail-color) 58%, transparent);
  background: color-mix(in srgb, var(--detail-color) 12%, rgba(2, 9, 15, .78));
  color: #ebfaff;
}

.detail-voice-replay__icon {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--detail-color) 42%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--detail-color) 72%, white 28%);
  font-size: 12px;
}

.detail-voice-replay__icon::before,
.detail-voice-replay__icon::after {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--detail-color) 58%, transparent);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(.64);
}

.detail-voice-replay__icon::after {
  inset: -8px;
  border-color: color-mix(in srgb, var(--faction-color) 48%, transparent);
}

.detail-voice-replay__glyph {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 1;
  transform: rotate(180deg);
}

.detail-voice-replay__bars {
  position: absolute;
  inset: 3px 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  opacity: .34;
  pointer-events: none;
}

.detail-voice-replay__bars i {
  display: block;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--detail-color) 74%, white 26%);
  transform: scaleY(.34);
  transform-origin: center;
}

.detail-voice-replay__bars i:nth-child(1) { height: 9px; }
.detail-voice-replay__bars i:nth-child(2) { height: 14px; }
.detail-voice-replay__bars i:nth-child(3) { height: 17px; }
.detail-voice-replay__bars i:nth-child(4) { height: 12px; }
.detail-voice-replay__bars i:nth-child(5) { height: 8px; }

.detail-voice-replay[data-voice-state="loading"] .detail-voice-replay__bars,
.detail-voice-replay[data-voice-state="playing"] .detail-voice-replay__bars {
  opacity: .88;
}

.detail-voice-replay.is-playing .detail-voice-replay__icon::before {
  animation: voice-ripple 1.45s ease-out infinite;
}

.detail-voice-replay.is-playing .detail-voice-replay__icon::after {
  animation: voice-ripple 1.45s .48s ease-out infinite;
}

.detail-voice-replay.is-playing .detail-voice-replay__bars i {
  animation: voice-wave .78s ease-in-out infinite alternate;
}

.detail-voice-replay.is-playing .detail-voice-replay__bars i:nth-child(1) { animation-delay: -.24s; }
.detail-voice-replay.is-playing .detail-voice-replay__bars i:nth-child(2) { animation-delay: -.12s; }
.detail-voice-replay.is-playing .detail-voice-replay__bars i:nth-child(3) { animation-delay: 0s; }
.detail-voice-replay.is-playing .detail-voice-replay__bars i:nth-child(4) { animation-delay: -.16s; }
.detail-voice-replay.is-playing .detail-voice-replay__bars i:nth-child(5) { animation-delay: -.3s; }

.detail-voice-replay.is-error .detail-voice-replay__bars {
  opacity: .22;
}

.detail-voice-replay.is-playing .detail-voice-replay__icon {
  animation: voice-pulse 1.1s ease-in-out infinite;
}

.detail-voice-replay strong,
.detail-voice-replay small,
.detail-voice-replay em {
  display: block;
  font-style: normal;
}

.detail-voice-replay strong {
  font-size: 10px;
  letter-spacing: .08em;
}

.detail-voice-replay small {
  margin-top: 2px;
  color: #6f8f9b;
  font-size: 8px;
}

.detail-voice-replay__status {
  color: color-mix(in srgb, var(--detail-color) 64%, #8096a0);
  font-size: 8px;
  white-space: nowrap;
}

.detail-video-spotlight {
  position: relative;
  z-index: 2;
  --splash-x: 50%;
  --splash-y: 50%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px 13px 13px 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--faction-color) 52%, var(--cyan) 20%);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--detail-color) 15%, rgba(4, 15, 25, .95)), rgba(3, 10, 18, .94) 68%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(141, 214, 237, .035) 11px 12px);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--faction-color) 68%, var(--gold) 18%), 0 12px 34px rgba(0, 0, 0, .28), 0 0 24px color-mix(in srgb, var(--detail-color) 10%, transparent);
  color: #dff5fb;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.detail-video-spotlight::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle 94px at var(--splash-x) var(--splash-y), color-mix(in srgb, var(--detail-color) 22%, transparent), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.detail-video-spotlight.is-splash-active::before {
  opacity: 1;
}

.detail-video-spotlight__splash,
.detail-video-spotlight__specular {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.detail-video-spotlight__splash {
  z-index: 1;
  opacity: .92;
  mix-blend-mode: screen;
}

.detail-video-spotlight__specular {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(circle 112px at var(--splash-x) var(--splash-y), rgba(229, 250, 255, .92), color-mix(in srgb, var(--faction-color) 40%, transparent) 32%, transparent 68%);
  clip-path: inherit;
  opacity: .2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity .25s ease;
}

.detail-video-spotlight.is-splash-active .detail-video-spotlight__specular {
  opacity: .95;
}

.detail-video-spotlight > :not(.detail-video-spotlight__splash, .detail-video-spotlight__specular) {
  position: relative;
  z-index: 3;
}

.detail-video-spotlight::after {
  position: absolute;
  right: -35%;
  bottom: -70%;
  width: 130px;
  height: 130px;
  border: 1px solid color-mix(in srgb, var(--faction-color) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 34px color-mix(in srgb, var(--detail-color) 10%, transparent);
  content: "";
  z-index: 0;
}

.detail-video-spotlight:not(.is-placeholder):hover {
  border-color: color-mix(in srgb, var(--faction-color) 72%, var(--cyan) 28%);
  box-shadow: inset 3px 0 0 var(--gold), 0 16px 42px rgba(0, 0, 0, .34), 0 0 30px color-mix(in srgb, var(--detail-color) 18%, transparent);
  transform: translateY(-2px);
}

.detail-video-spotlight__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--faction-color) 54%, var(--cyan) 20%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--detail-color) 14%, rgba(0, 5, 10, .75));
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--detail-color) 14%, transparent);
  color: color-mix(in srgb, var(--detail-color) 62%, white 38%);
  font-size: 14px;
  text-indent: 2px;
}

.detail-video-spotlight__copy,
.detail-video-spotlight__copy small,
.detail-video-spotlight__copy strong,
.detail-video-spotlight__copy em {
  display: block;
  min-width: 0;
  font-style: normal;
}

.detail-video-spotlight__copy small {
  color: color-mix(in srgb, var(--faction-color) 64%, #9fb4ba);
  font-size: 12px;
  letter-spacing: .08em;
}

.detail-video-spotlight__copy .detail-video-spotlight__source {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  line-height: 1;
}

.detail-video-spotlight__source img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--detail-color) 24%, transparent);
}

.detail-video-spotlight__copy strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.detail-video-spotlight__copy em {
  margin-top: 4px;
  color: #78939d;
  font-size: 8px;
  letter-spacing: .08em;
}

.detail-video-spotlight__arrow {
  align-self: start;
  color: color-mix(in srgb, var(--faction-color) 55%, #6f8790);
  font-size: 12px;
}

.detail-video-spotlight.is-placeholder {
  cursor: default;
}

.detail-video-spotlight.is-placeholder .detail-video-spotlight__copy em {
  color: color-mix(in srgb, var(--gold) 62%, #758690);
}

.detail-body {
  padding: 26px 34px 42px;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 24px;
}

.detail-meta div {
  padding: 10px 11px;
  border: 1px solid rgba(135, 192, 208, .11);
  background: rgba(15, 29, 38, .35);
}

.detail-meta div:first-child {
  border-color: color-mix(in srgb, var(--faction-color) 30%, transparent);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--faction-color) 58%, transparent);
}

.detail-meta div:last-child {
  border-color: color-mix(in srgb, var(--detail-color) 30%, transparent);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--detail-color) 58%, transparent);
}

.detail-meta small,
.detail-meta strong {
  display: block;
}

.detail-meta small {
  margin-bottom: 4px;
  color: #61717a;
  font-size: 8px;
  letter-spacing: .12em;
}

.detail-meta strong {
  color: #c7d4d8;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-meta__item--faction {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding-right: 76px !important;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(15, 29, 38, .52) 0 48%, transparent 82%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--faction-color) 16%, transparent), transparent 58%) !important;
}

.detail-meta__item--faction::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--faction-color) 8%, transparent));
  content: "";
  pointer-events: none;
}

.detail-meta__copy {
  position: relative;
  z-index: 2;
  display: block;
}

.detail-meta__faction-icon {
  position: absolute;
  top: -9px;
  right: -6px;
  z-index: 1;
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: .92;
  filter: saturate(.88) contrast(1.06) drop-shadow(0 0 8px color-mix(in srgb, var(--faction-color) 34%, transparent));
  pointer-events: none;
  user-select: none;
}

.detail-summary {
  margin: 0 0 26px;
  color: #abb8bd;
  font-size: 12px;
  line-height: 2;
}

.detail-section {
  margin-top: 27px;
}

.detail-section__title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  color: #d9e4e7;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
}

.detail-section__title::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(143, 205, 222, .2), transparent);
  content: "";
}

.detail-relation {
  --relation-surface: color-mix(in srgb, var(--relation-color) 8%, rgba(3, 9, 16, .92));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--relation-color) 24%, rgba(115, 151, 167, .08));
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--relation-color) 8%, transparent), transparent 47%),
    linear-gradient(145deg, rgba(10, 20, 29, .84), rgba(3, 8, 14, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018), 0 8px 24px rgba(0, 0, 0, .11);
  cursor: pointer;
  text-align: left;
  transition: border-color .28s, background .28s, box-shadow .28s, transform .28s var(--ease-out);
}

.detail-relation::before {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 0;
  width: 34px;
  height: 12px;
  border-top: 1px solid color-mix(in srgb, var(--relation-color) 72%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--relation-color) 72%, transparent);
  content: "";
  pointer-events: none;
}

.detail-relation:hover {
  border-color: color-mix(in srgb, var(--relation-color) 58%, rgba(170, 210, 224, .12));
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--relation-color) 14%, transparent), transparent 52%),
    linear-gradient(145deg, rgba(12, 25, 36, .92), rgba(3, 9, 16, .96));
  box-shadow: inset 0 0 26px color-mix(in srgb, var(--relation-color) 5%, transparent), 0 10px 28px rgba(0, 0, 0, .2);
  transform: translateX(3px);
}

.detail-relation__line {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: start center;
  padding-top: 14px;
  border-right: 1px solid color-mix(in srgb, var(--relation-color) 28%, transparent);
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--relation-color) 35%, rgba(255, 255, 255, 0.15)),
      color-mix(in srgb, var(--relation-color) 20%, transparent) 50%,
      color-mix(in srgb, var(--relation-color) 8%, transparent) 100%);
  box-shadow:
    inset 5px 0 0 color-mix(in srgb, var(--relation-color) 82%, transparent),
    inset 2px 4px 8px color-mix(in srgb, var(--relation-color) 25%, rgba(0, 0, 0, 0.4)),
    inset -1px 0 4px rgba(0, 0, 0, 0.5);
}

.detail-relation__line i {
  color: color-mix(in srgb, var(--relation-color) 78%, white 22%);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  text-shadow: 0 0 9px color-mix(in srgb, var(--relation-color) 70%, transparent);
}

.detail-relation__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 12px 12px 13px 0;
}

.detail-relation__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.detail-relation__head strong {
  min-width: 0;
  padding-top: 2px;
  color: #e4edef;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-relation__head small {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 10px;
  background: color-mix(in srgb, var(--relation-color) 15%, rgba(3, 9, 15, .9));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--relation-color) 48%, transparent);
  color: var(--relation-color);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
}

.detail-relation__head small i {
  font-style: normal;
  font-size: 1.05em;
  text-shadow: 0 0 7px currentColor;
}

.detail-relation p {
  margin: 8px 0 0;
  color: #9aaab1;
  font-size: 9px;
  line-height: 1.72;
}

.detail-relation__history {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--relation-color) 17%, rgba(135, 174, 188, .06));
  color: rgba(145, 168, 177, .62);
  font-size: 8px;
  line-height: 1.7;
}

.detail-relation[data-relation-type="family"] {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--relation-color) 13%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(20, 18, 12, .68), rgba(4, 8, 13, .94));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--relation-color) 5%, transparent), 0 8px 24px rgba(0, 0, 0, .11);
}

.detail-relation[data-relation-type="mentor"] {
  border-top-style: double;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--relation-color) 8%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(6, 18, 27, .86), rgba(3, 8, 14, .94));
}

.detail-relation[data-relation-type="affection"] {
  border-radius: 0 9px 0 9px;
  background:
    radial-gradient(circle at 88% 0, color-mix(in srgb, var(--relation-color) 15%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(19, 10, 18, .72), rgba(4, 8, 14, .95));
}

.detail-relation[data-relation-type="allegiance"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--relation-color) 10%, transparent), 0 8px 24px rgba(0, 0, 0, .11);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--relation-color) 11%, transparent), transparent 56%),
    linear-gradient(145deg, rgba(5, 20, 21, .78), rgba(3, 8, 14, .95));
}

.detail-relation[data-relation-type="enemy"] {
  border-color: color-mix(in srgb, var(--relation-color) 35%, rgba(100, 124, 136, .1));
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, var(--relation-color) 4%, transparent) 14px 15px),
    linear-gradient(145deg, rgba(24, 8, 13, .76), rgba(4, 7, 12, .96));
}

.detail-relation[data-relation-type="enemy"] .detail-relation__head small {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 4px 50%);
}

.detail-relation[data-relation-type="corruption"] {
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--relation-color) 19%, transparent), transparent 33%),
    linear-gradient(145deg, rgba(14, 9, 25, .84), rgba(3, 7, 13, .96));
}

.detail-relation[data-relation-type="corruption"] .detail-relation__line {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--relation-color) 24%, transparent), transparent 76%);
}

.detail-events {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-event {
  padding: 7px 9px;
  border: 1px solid rgba(216, 184, 108, .18);
  background: rgba(216, 184, 108, .04);
  color: #bba873;
  cursor: pointer;
  font-size: 9px;
}

/* Tour */
.tour-panel {
  position: absolute;
  top: 50%;
  left: 54px;
  z-index: 115;
  width: 355px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-30px, -50%);
  transition: opacity .4s, transform .55s var(--ease-out);
}

.tour-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.tour-panel__book {
  position: relative;
  width: 100%;
  perspective: 1400px;
}

.tour-panel__sheet {
  position: relative;
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .78s cubic-bezier(.2, .72, .18, 1);
  will-change: transform;
}

.tour-panel.is-flipped .tour-panel__sheet {
  transform: rotateY(-180deg);
}

.tour-panel__sheet::after {
  position: absolute;
  top: 7px;
  right: -1px;
  bottom: 7px;
  z-index: 5;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(236, 244, 237, .13) 58%, rgba(0, 0, 0, .26));
  content: "";
  opacity: .38;
  pointer-events: none;
  transform: translateZ(2px);
  transition: opacity .32s ease;
}

.tour-panel.is-flipped .tour-panel__sheet::after {
  opacity: .55;
}

.tour-panel__face {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  padding: 29px 30px 25px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(100deg, rgba(3, 10, 19, .985), rgba(2, 7, 14, .94));
  box-shadow: 20px 20px 70px rgba(0, 0, 0, .35);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.tour-panel__face::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035), transparent 16%, transparent 72%, rgba(160, 211, 224, .07));
  content: "";
  pointer-events: none;
}
/* Desktop drag-to-turn enhancement. The original two-face layout remains the fallback. */
.tour-panel.is-pageflip-ready .tour-panel__sheet {
  max-width: none;
  transform: none;
  transition: none;
  will-change: auto;
  touch-action: pan-y;
}

.tour-panel.is-pageflip-ready .tour-panel__sheet::after {
  display: none;
}

.tour-panel.is-pageflip-ready .stf__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.tour-panel.is-pageflip-ready .stf__block {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.tour-panel.is-pageflip-ready.is-pageflip-dragging .stf__block,
.tour-panel.is-pageflip-ready.is-pageflip-animating .stf__block {
  cursor: grabbing;
}

.tour-panel.is-pageflip-ready .tour-panel__face {
  overflow-x: hidden;
  overflow-y: hidden;
  border-left-color: rgba(157, 197, 210, .3);
  background:
    linear-gradient(90deg, rgba(228, 244, 248, .035), transparent 17%, transparent 72%, rgba(123, 191, 213, .045)),
    radial-gradient(circle at 72% 22%, rgba(48, 93, 116, .13), transparent 40%),
    linear-gradient(105deg, #091722 0%, #06111c 58%, #030a12 100%);
  box-shadow: 14px 18px 48px rgba(0, 0, 0, .38);
  overscroll-behavior: none;
}

.tour-panel.is-pageflip-ready .tour-panel__face.--right {
  border-left-color: rgba(127, 168, 181, .24);
  box-shadow:
    inset 24px 0 34px -30px rgba(0, 0, 0, .98),
    inset 2px 0 0 rgba(180, 221, 232, .055),
    14px 18px 48px rgba(0, 0, 0, .38);
}

.tour-panel.is-pageflip-ready .tour-panel__face.--left {
  border-right: 1px solid rgba(127, 168, 181, .18);
  border-left-color: rgba(216, 184, 108, .2);
  box-shadow:
    inset -26px 0 36px -31px rgba(0, 0, 0, .98),
    inset -2px 0 0 rgba(180, 221, 232, .05),
    -14px 18px 48px rgba(0, 0, 0, .34);
}

.tour-panel.is-pageflip-ready .tour-panel__face[data-pageflip-clone="true"] {
  pointer-events: none !important;
}

.tour-panel.is-pageflip-ready .stf__outerShadow,
.tour-panel.is-pageflip-ready .stf__innerShadow {
  filter: contrast(1.2);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tour-panel.is-pageflip-ready.is-pageflip-dragging .stf__wrapper,
.tour-panel.is-pageflip-ready.is-pageflip-animating .stf__wrapper,
.tour-panel.is-pageflip-ready.is-pageflip-corner .stf__wrapper {
  overflow: hidden;
}

.tour-panel.is-pageflip-ready.is-pageflip-dragging .tour-panel__face,
.tour-panel.is-pageflip-ready.is-pageflip-animating .tour-panel__face,
.tour-panel.is-pageflip-ready.is-pageflip-corner .tour-panel__face {
  overflow: hidden;
  border-left-color: rgba(128, 169, 183, .18);
  box-shadow: 6px 12px 30px rgba(0, 0, 0, .22);
}

.tour-panel.is-pageflip-ready .tour-panel__face.--simple {
  transform: none;
}

.tour-panel.is-pageflip-ready .tour-panel__face::after {
  position: absolute;
  top: 50%;
  z-index: 7;
  padding: 11px 6px;
  border: 1px solid rgba(151, 224, 244, .32);
  background: linear-gradient(180deg, rgba(21, 61, 81, .82), rgba(2, 11, 20, .92));
  box-shadow: 0 0 22px rgba(78, 174, 205, .18), inset 0 0 12px rgba(126, 219, 244, .06);
  color: rgba(218, 244, 250, .88);
  content: attr(data-drag-hint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.25;
  opacity: 1;
  pointer-events: none;
  text-shadow: 0 1px 8px #000, 0 0 10px rgba(115, 216, 244, .28);
  transform: translateY(-50%);
  transition: opacity .2s ease;
  writing-mode: vertical-rl;
}

.tour-panel.is-pageflip-ready .tour-panel__face--front::after {
  right: 7px;
}

.tour-panel.is-pageflip-ready .tour-panel__face--back::after {
  left: 7px;
}

.tour-panel.is-pageflip-dragging .tour-panel__face::after,
.tour-panel.is-pageflip-animating .tour-panel__face::after,
.tour-panel.is-pageflip-corner .tour-panel__face::after {
  opacity: 0;
}

.tour-panel__face > * {
  position: relative;
  z-index: 1;
}

.tour-panel__face--front { transform: rotateY(0deg); }
.tour-panel__face--back { transform: rotateY(180deg); }
.tour-panel__face[aria-hidden="true"] { pointer-events: none; }

.tour-panel__open-drama {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 15px;
  padding: 9px 14px;
  border: 1px solid rgba(229, 198, 116, .38);
  background: linear-gradient(110deg, rgba(216, 184, 108, .13), rgba(67, 135, 158, .05));
  box-shadow: inset 0 0 16px rgba(232, 205, 129, .04);
  color: #e1c77f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
}

.tour-panel__open-drama:hover {
  border-color: rgba(216, 184, 108, .5);
  color: #f0d892;
}

.tour-panel__drama-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tour-panel__drama-header .eyebrow { margin: 0; }
.tour-panel__drama-header h2 { margin: 7px 0 0; font-size: 24px; }

.tour-panel__drama-header > span {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 5px 8px;
  border: 1px solid rgba(137, 201, 219, .16);
  color: #829aa2;
  font-size: 8px;
  letter-spacing: .08em;
}

.tour-panel__drama-actions {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin-top: 18px;
}

.tour-panel__close-drama,
.tour-panel__next-drama {
  display: inline-flex;
  min-height: 40px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(137, 201, 219, .16);
  background: rgba(25, 65, 80, .07);
  color: #91a7ae;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .07em;
}

.tour-panel__close-drama:hover {
  border-color: rgba(137, 201, 219, .38);
  color: var(--cyan);
}

.tour-panel__next-drama {
  border-color: rgba(216, 184, 108, .3);
  background: linear-gradient(110deg, rgba(216, 184, 108, .12), rgba(38, 101, 122, .06));
  color: #ddc477;
}

.tour-panel__next-drama:not(:disabled):hover {
  border-color: rgba(233, 207, 139, .56);
  box-shadow: 0 0 18px rgba(216, 184, 108, .1);
  color: #f4dfa2;
}

.tour-panel__next-drama:disabled {
  border-color: rgba(130, 151, 158, .1);
  background: rgba(22, 35, 42, .08);
  color: #5c6b70;
  cursor: default;
  opacity: .72;
}

.tour-panel__face--preview {
  border-left-color: rgba(216, 184, 108, .38);
}

.tour-panel.is-pageflip-ready .tour-panel__face--preview::after {
  display: none;
}

.tour-panel__preview-label {
  margin: 0 0 24px;
  color: #8fcfe1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.tour-panel__preview-related {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tour-panel__preview-related span {
  padding: 7px 10px;
  border: 1px solid rgba(137, 201, 219, .18);
  color: #a8bdc4;
  font-size: 13px;
}

.tour-panel__preview-foot {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 184, 108, .16);
  color: #a89461;
  font-size: 12px;
  letter-spacing: .1em;
  text-align: right;
}

.tour-panel__a11y-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tour-panel__index {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #6d7d84;
  font-family: serif;
  font-size: 11px;
}

.tour-panel__index span:first-child {
  color: var(--gold);
  font-size: 24px;
}

.tour-panel__index i {
  width: 40px;
  height: 1px;
  background: rgba(216, 184, 108, .25);
}

.tour-panel h2 {
  margin: 9px 0 13px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .08em;
}

.tour-panel__copy {
  margin: 0;
  color: #a5b2b7;
  font-size: 12px;
  line-height: 1.9;
}

.tour-panel__drama {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 0;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid rgba(140, 203, 220, .2);
  background: linear-gradient(145deg, rgba(9, 25, 36, .94), rgba(2, 8, 15, .98));
  box-shadow: inset 0 0 32px rgba(84, 175, 204, .05), 0 14px 36px rgba(0, 0, 0, .3);
  color: #dbeef3;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.tour-panel__drama::after {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 12%, transparent);
  content: "";
  pointer-events: none;
}

.tour-panel__drama:not(.is-placeholder):hover {
  border-color: color-mix(in srgb, var(--gold) 48%, var(--cyan) 28%);
  box-shadow: inset 0 0 32px rgba(84, 175, 204, .08), 0 18px 42px rgba(0, 0, 0, .38), 0 0 24px rgba(216, 184, 108, .08);
  transform: translateY(-2px);
}

.tour-panel__drama-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 60% 35%, rgba(79, 160, 189, .18), transparent 38%),
    #030a11;
}

.tour-panel__drama-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(1, 7, 13, .86)),
    linear-gradient(90deg, rgba(2, 9, 16, .25), transparent 48%);
  content: "";
}

.tour-panel__drama-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.68) contrast(1.12) brightness(.72);
  transform: scale(1.035);
  transition: filter .3s ease, transform .45s var(--ease-out);
}

.tour-panel__drama:not(.is-placeholder):hover .tour-panel__drama-media img {
  filter: saturate(.88) contrast(1.12) brightness(.88);
  transform: scale(1.075);
}

.tour-panel__drama-media i {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(218, 238, 244, .42);
  border-radius: 50%;
  background: rgba(2, 9, 16, .55);
  box-shadow: 0 0 22px rgba(73, 167, 199, .18);
  color: rgba(236, 249, 252, .88);
  font-size: 10px;
  font-style: normal;
  text-indent: 2px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(3px);
}

.tour-panel__drama-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: block;
  padding: 20px 10px 7px;
  background: linear-gradient(180deg, transparent, rgba(1, 7, 13, .96));
}

.tour-panel__drama-copy small,
.tour-panel__drama-copy strong,
.tour-panel__drama-copy em {
  display: block;
  min-width: 0;
  font-style: normal;
}

.tour-panel__drama-copy small {
  display: block;
  color: #778f98;
  font-size: 9px;
  letter-spacing: .12em;
}

.tour-panel__drama-copy strong {
  overflow: hidden;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-panel__drama-copy em {
  margin-top: 2px;
  color: #8c7b54;
  font-size: 9px;
}

.tour-panel__drama.is-placeholder {
  cursor: default;
}

.tour-panel__drama.is-image-missing img {
  display: none;
}

.tour-panel__related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.tour-panel__related button {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(137, 201, 219, .2);
  background: rgba(31, 77, 91, .11);
  color: #afc3ca;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.tour-panel__related button:hover {
  color: var(--cyan);
}

.tour-panel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(139, 196, 211, .1);
}

.tour-panel__autoplay {
  min-height: 36px;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 184, 108, .24);
  background: rgba(216, 184, 108, .065);
  color: #c4aa68;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.tour-panel__autoplay:hover {
  border-color: rgba(216, 184, 108, .38);
  color: #d8bd78;
}

.tour-panel__controls > button {
  width: 32px;
  height: 30px;
  border: 1px solid rgba(144, 200, 215, .15);
  background: transparent;
  color: #9aaab0;
  cursor: pointer;
}

.tour-panel__controls > button:disabled {
  opacity: .2;
  cursor: default;
}

.tour-panel__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tour-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 1px solid rgba(216, 184, 108, .4);
  background: transparent;
  cursor: pointer;
  transform: rotate(45deg);
}

.tour-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(216, 184, 108, .5);
}

.tour-panel__exit {
  position: relative;
  display: flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 9px 17px;
  overflow: hidden;
  border: 1px solid rgba(139, 218, 241, .35);
  background:
    linear-gradient(120deg, rgba(26, 78, 101, .4), rgba(3, 13, 23, .9)),
    #06111b;
  box-shadow: inset 0 0 20px rgba(113, 214, 242, .07), 0 0 18px rgba(73, 169, 199, .08);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  color: #b8d2da;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  transform: none;
  transition: border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}

.tour-panel__exit::before {
  position: absolute;
  inset: 2px;
  background: linear-gradient(105deg, transparent 15%, rgba(170, 236, 252, .12) 44%, transparent 67%);
  content: "";
  opacity: .7;
  pointer-events: none;
  transform: translateX(-65%);
  transition: transform .35s ease;
}

.tour-panel__exit span {
  color: #8be2f7;
  font-size: 17px;
  text-shadow: 0 0 12px rgba(117, 224, 249, .72);
}

.tour-panel__exit strong {
  font: inherit;
}

.tour-panel__exit:hover,
.tour-panel__exit:focus-visible {
  border-color: rgba(181, 239, 253, .72);
  box-shadow: inset 0 0 24px rgba(113, 214, 242, .12), 0 0 24px rgba(73, 169, 199, .2);
  color: #edfaff;
  transform: translateY(-1px);
}

.tour-panel__exit:hover::before,
.tour-panel__exit:focus-visible::before {
  transform: translateX(65%);
}

.tour-panel__exit:focus-visible {
  outline: 2px solid rgba(152, 226, 246, .55);
  outline-offset: 3px;
}

.tour-panel.is-exiting {
  pointer-events: none;
}

.tour-panel.is-exiting .tour-panel__book {
  animation: tour-book-crystallize 1000ms cubic-bezier(.2, .7, .2, 1) both;
}

.tour-exit-fx {
  position: absolute;
  inset: 0;
  z-index: 180;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.tour-exit-fx.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.tour-exit-fx__crystal {
  position: absolute;
  top: var(--crystal-top, 50%);
  left: var(--crystal-left, 50%);
  width: var(--crystal-width, 360px);
  height: var(--crystal-height, 520px);
  border: 1px solid rgba(184, 241, 255, .58);
  background:
    linear-gradient(24deg, transparent 0 31%, rgba(204, 247, 255, .62) 31.3% 31.8%, transparent 32.2%),
    linear-gradient(146deg, transparent 0 44%, rgba(135, 220, 244, .54) 44.3% 44.8%, transparent 45.1%),
    linear-gradient(72deg, transparent 0 58%, rgba(220, 251, 255, .46) 58.3% 58.8%, transparent 59.1%),
    radial-gradient(circle at 50% 52%, rgba(190, 240, 252, .3), rgba(44, 132, 163, .08) 42%, transparent 73%);
  box-shadow: inset 0 0 56px rgba(133, 224, 249, .18), 0 0 44px rgba(74, 182, 216, .2);
  clip-path: polygon(2% 3%, 94% 0, 100% 8%, 98% 92%, 91% 100%, 5% 97%, 0 89%, 1% 8%);
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
}

.tour-exit-fx__flash {
  position: absolute;
  top: var(--crystal-y, 50%);
  left: var(--crystal-x, 50%);
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 252, 255, .82), rgba(110, 219, 247, .24) 12%, rgba(58, 143, 177, .08) 34%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.12);
}

.tour-exit-fx__shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tour-exit-fx__shard {
  position: absolute;
  top: var(--shard-y);
  left: var(--shard-x);
  width: var(--shard-w);
  height: var(--shard-h);
  background:
    linear-gradient(135deg, hsla(var(--shard-tone), 92%, 94%, .94), hsla(var(--shard-tone), 78%, 58%, .34) 48%, hsla(var(--shard-tone), 88%, 24%, .08));
  box-shadow: inset 0 0 8px rgba(236, 253, 255, .46), 0 0 12px rgba(94, 211, 242, .2);
  clip-path: polygon(50% 0, 100% 72%, 67% 100%, 0 77%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.16) rotate(0);
  transform-origin: 50% 64%;
}

.tour-exit-fx.is-active .tour-exit-fx__crystal {
  animation: tour-crystal-shell 1000ms cubic-bezier(.2, .72, .18, 1) both;
}

.tour-exit-fx.is-active .tour-exit-fx__flash {
  animation: tour-crystal-flash 920ms ease-out both;
}

.tour-exit-fx.is-active .tour-exit-fx__shard {
  animation: tour-crystal-shard 910ms cubic-bezier(.16, .72, .22, 1) var(--shard-delay) both;
}

.tour-exit-fx.is-reduced .tour-exit-fx__crystal,
.tour-exit-fx.is-reduced .tour-exit-fx__flash,
.tour-exit-fx.is-reduced .tour-exit-fx__shards {
  display: none;
}

@keyframes tour-book-crystallize {
  0% { filter: brightness(1) saturate(1); opacity: 1; }
  24% { filter: brightness(1.52) saturate(.58) drop-shadow(0 0 12px rgba(142, 230, 251, .45)); opacity: 1; }
  56% { filter: brightness(1.12) saturate(.42); opacity: .72; transform: scale(.992); }
  100% { filter: brightness(.8) saturate(.2); opacity: 0; transform: scale(.965); }
}

@keyframes tour-crystal-shell {
  0% { opacity: 0; transform: scale(.965); }
  14% { opacity: .92; transform: scale(1); }
  38% { opacity: .76; filter: brightness(1.5); }
  62% { opacity: .32; transform: scale(1.012); }
  100% { opacity: 0; transform: scale(.96); }
}

@keyframes tour-crystal-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.08); }
  16% { opacity: .8; }
  43% { opacity: .3; transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes tour-crystal-shard {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.12) rotate(0); }
  15% { opacity: .96; transform: translate(-50%, -50%) scale(1) rotate(0); }
  36% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--shard-tx)), calc(-50% + var(--shard-ty))) scale(.68) rotate(var(--shard-r)); }
}

.mobile-bar {
  display: none;
}

.fallback {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  padding: 30px;
  background: #050a0e;
  text-align: center;
}

.fallback h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .1em;
}

.fallback p {
  color: var(--muted);
  font-size: 12px;
}

noscript {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #050a0e;
  color: white;
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nebula-drift {
  to { transform: translate3d(4vw, 3vw, 0) scale(1.1); }
}

@keyframes orbit-turn {
  to { transform: translate(-50%, -50%) rotateX(67deg) rotateZ(344deg); }
}

@keyframes orbit-turn-reverse {
  to { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(-339deg); }
}

@keyframes central-pulse {
  0%, 100% { opacity: .45; transform: scale(.86); }
  50% { opacity: .88; transform: scale(1.04); }
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--detail-color) 0%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--detail-color) 13%, transparent); }
}

@keyframes voice-wave {
  0% { transform: scaleY(.28); opacity: .54; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes voice-ripple {
  0% { opacity: .58; transform: scale(.64); }
  72%, 100% { opacity: 0; transform: scale(1.42); }
}

.intro__title,
.intro__subtitle,
.brand__copy strong,
.node__name,
.choice-panel h2,
.detail-hero h2,
.detail-section__title,
.tour-panel h2,
.fallback h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* PC readability pass: the original concept used editorial micro-type that was too small at 1× scale. */
@media (min-width: 769px) {
  .eyebrow { font-size: 15px; }
  .primary-button { min-height: 60px; font-size: 16px; }

  .intro__content { width: min(860px, 92vw); }
  .intro__title { font-size: clamp(58px, 5.8vw, 88px); }
  .intro__subtitle { font-size: clamp(22px, 1.8vw, 30px); }
  .intro__lead { font-size: 18px; }
  .intro__hint { font-size: 14px; }

  .topbar { height: 98px; }
  .brand__sigil { width: 48px; height: 48px; font-size: 24px; }
  .brand__copy strong { font-size: 24px; }
  .brand__copy small { font-size: 13px; }
  .search { width: 280px; height: 46px; }
  .search:focus-within { width: 340px; }
  .search input { font-size: 17px; }
  .search kbd { font-size: 13px; }
  .control-button { height: 46px; padding: 0 18px; font-size: 15px; }

  .node { --node-size: 62px; }
  .node__name { top: calc(100% + 13px); max-width: 210px; font-size: 16px; }
  .node__title { margin-top: 5px; font-size: 12px; }
  .node.is-central { --node-size: 104px; }
  .node.is-central .node__name { top: calc(100% + 18px); font-size: 24px; }
  .node.is-central .node__title { font-size: 13px; }

  .event-node { width: 44px; height: 44px; }
  .event-node__mark { width: 29px; height: 29px; font-size: 11px; }
  .event-node__label { top: 51px; font-size: 13px; }
  .node-tooltip { max-width: 290px; padding: 14px 16px; font-size: 15px; }
  .node-tooltip strong { font-size: 17px; }
  .node-tooltip span { font-size: 13px; }

  .search-results { top: 80px; right: 262px; width: 360px; max-height: 470px; }
  .search-result { gap: 14px; padding: 14px 16px; }
  .search-result__glyph { width: 44px; height: 44px; font-size: 16px; }
  .search-result strong { font-size: 17px; font-weight: 700; }
  .search-result small { font-size: 13px; }
  .search-results__empty { font-size: 15px; }

  .map-caption { top: 125px; }
  .map-caption span { font-size: 15px; }
  .map-caption small { font-size: 12px; }
  .legend { width: 255px; padding: 20px 20px 17px; }
  .legend__header small { font-size: 11px; }
  .legend__header strong { font-size: 20px; font-weight: 700; }
  .legend__items { gap: 8px 10px; max-height: 195px; }
  .legend-filter { gap: 9px; padding: 7px 3px; font-size: 14px; }
  .legend-filter i { width: 22px; }
  .legend__note { font-size: 12px; }
  .stage-stats { font-size: 13px; }
  .stage-stats strong { font-size: 22px; }
  .stage-help { font-size: 12px; }

  .choice-panel { width: min(510px, calc(100vw - 56px)); padding: 42px 44px 38px; }
  .choice-panel__close { width: 36px; height: 36px; font-size: 26px; }
  .choice-panel h2 { margin: 14px 0 19px; font-size: 40px; }
  .choice-panel > p:not(.eyebrow) { font-size: 17px; line-height: 1.9; }
  .choice-panel__actions { margin-top: 32px; }
  .choice-panel .primary-button { min-width: 225px; min-height: 58px; font-size: 16px; }
  .text-button { font-size: 15px; }

  .detail-panel { width: min(560px, 45vw); }
  .detail-panel__close { width: 42px; height: 42px; font-size: 29px; }
  .detail-hero { grid-template-columns: minmax(0, 1fr) 218px; gap: 28px; min-height: 330px; padding: 66px 42px 38px; }
  .detail-portrait { width: 112px; height: 112px; margin-bottom: 26px; font-size: 36px; }
  .detail-hero__kicker { font-size: 13px; }
  .detail-hero__name-slot { display: flex; min-height: 48px; align-items: flex-end; }
  .detail-hero__name { text-wrap: balance; }
  .detail-hero__name--short { --detail-name-size: 40px; --detail-name-letter-spacing: .1em; white-space: nowrap; }
  .detail-hero__name--medium { --detail-name-size: 34px; --detail-name-letter-spacing: .055em; white-space: nowrap; }
  .detail-hero__name--long { --detail-name-size: 29px; --detail-name-letter-spacing: .025em; white-space: nowrap; }
  .detail-hero__name--extended { --detail-name-size: 26px; --detail-name-line-height: 1.1; --detail-name-letter-spacing: .01em; overflow-wrap: anywhere; }
  .detail-hero__name-slot:has(.detail-hero__name--extended) { min-height: 60px; }
  .detail-hero__name.is-balanced-wrap { white-space: normal; overflow-wrap: anywhere; }
  .detail-hero__title { font-size: 16px; }
  .detail-voice-replay { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; margin-top: 18px; padding: 9px 11px; }
  .detail-voice-replay__icon { width: 30px; height: 30px; font-size: 15px; }
  .detail-voice-replay strong { font-size: 13px; }
  .detail-voice-replay small, .detail-voice-replay__status { font-size: 10px; }
  .detail-video-spotlight { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 86px; padding: 15px; }
  .detail-video-spotlight__icon { width: 48px; height: 48px; font-size: 16px; }
  .detail-video-spotlight__copy small { font-size: 14px; }
  .detail-video-spotlight__source img { width: 21px; height: 21px; }
  .detail-video-spotlight__copy strong { font-size: 15px; }
  .detail-video-spotlight__copy em { font-size: 10px; }
  .detail-body { padding: 32px 42px 52px; }
  .detail-meta { gap: 12px; }
  .detail-meta div { padding: 14px 15px; }
  .detail-meta__item--faction { min-height: 80px; padding-right: 104px !important; }
  .detail-meta__faction-icon { top: -13px; right: -5px; width: 116px; height: 116px; }
  .detail-meta small { font-size: 12px; }
  .detail-meta strong { font-size: 15px; }
  .detail-summary { font-size: 17px; line-height: 1.85; }
  .detail-section__title { font-size: 20px; }
  .detail-relation { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; margin-bottom: 12px; padding: 0; }
  .detail-relation__line { padding-top: 20px; }
  .detail-relation__line i { font-size: 18px; }
  .detail-relation__content { padding: 18px 16px 18px 0; }
  .detail-relation__head strong { font-size: 16px; font-weight: 700; }
  .detail-relation__head small { font-size: 12px; }
  .detail-relation p { font-size: 14px; line-height: 1.7; }
  .detail-relation__history { font-size: 12px; }
  .detail-event { padding: 9px 12px; font-size: 13px; }
  .tour-panel { width: 470px; }
  .tour-panel__face { padding: 38px 40px 33px; }
  .tour-panel__face--front,
  .tour-panel__face--preview { padding: 18px 40px 24px; }
  .tour-panel__index { margin-bottom: 12px; font-size: 16px; }
  .tour-panel__index span:first-child { font-size: 32px; }
  .tour-panel h2 { max-width: none; font-size: 40px; }
  .tour-panel__drama-header h2 { font-size: 30px; }
  .tour-panel__copy { font-size: 14px; line-height: 1.7; }
  .tour-panel__drama-media i { width: 44px; height: 44px; font-size: 13px; }
  .tour-panel__drama-copy { padding: 54px 18px 14px; }
  .tour-panel__drama-copy small { font-size: 11px; }
  .tour-panel__drama-copy em { font-size: 11px; }
  .tour-panel__drama-copy strong { font-size: 20px; }
  .tour-panel.is-pageflip-ready .tour-panel__face::after { font-size: 12px; }
  .tour-panel__open-drama, .tour-panel__close-drama, .tour-panel__next-drama { padding: 10px 14px; font-size: 16px; }
  .tour-panel__drama-header > span { padding: 6px 9px; font-size: 10px; }
  .tour-panel__related button { min-height: 38px; padding: 8px 12px; font-size: 14px; }
  .tour-panel__autoplay { min-height: 40px; padding: 9px 13px; font-size: 14px; }
  .tour-panel__controls > button { width: 42px; height: 38px; font-size: 16px; }
  .tour-dot { width: 7px; height: 7px; }
  .tour-panel__exit { min-height: 44px; padding: 10px 19px; font-size: 15px; }
  .fallback h2 { font-size: 40px; }
  .fallback p { font-size: 17px; }
}

@media (max-width: 1100px) {
  .topbar { padding: 0 24px; }
  .map-caption { left: 25px; }
  .legend { left: 24px; }
  .stage-stats { right: 24px; }
  .choice-panel { right: 4vw; }
  .detail-panel { width: 460px; max-width: 48vw; }
  .detail-hero { grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; padding-right: 30px; padding-left: 30px; }
  .detail-meta__item--faction { min-height: 70px; padding-right: 78px !important; }
  .detail-meta__faction-icon { top: -9px; width: 92px; height: 92px; }
}

@media (max-width: 768px), (pointer: coarse) and (orientation: landscape) {
  body {
    min-height: var(--viewport-height, 100dvh);
    overscroll-behavior: none;
  }

  #app::before, #app::after { display: none; }

  .global-bg__image {
    inset: -10%;
    background-position: center;
    opacity: .38;
  }

  .global-bg__nebula { filter: blur(70px); }

  .intro__content { width: calc(100vw - 40px); padding: 0 8px; }
  .intro__title { font-size: clamp(37px, 11vw, 52px); letter-spacing: .15em; text-indent: .15em; }
  .intro__subtitle { margin-top: 12px; font-size: 14px; letter-spacing: .22em; text-indent: .22em; }
  .intro__lead { max-width: 260px; margin: 24px 0 29px; line-height: 1.8; }
  .intro__button { min-width: 210px; height: 54px; }
  .intro__map-mark { width: 75vw; height: 75vw; }
  .intro__orbit--outer { width: 125vw; height: 78vw; }
  .intro__orbit--middle { width: 100vw; height: 62vw; }
  .intro__orbit--inner { width: 70vw; height: 45vw; }
  .intro__corner { width: 28px; height: 28px; }
  .intro__corner--tl { top: 18px; left: 18px; }
  .intro__corner--tr { top: 18px; right: 18px; }
  .intro__corner--bl { bottom: 18px; left: 18px; }
  .intro__corner--br { right: 18px; bottom: 18px; }

  .topbar {
    height: calc(65px + var(--safe-area-top));
    padding: var(--safe-area-top) calc(15px + var(--safe-area-right)) 0 calc(15px + var(--safe-area-left));
  }

  .brand__sigil { width: 34px; height: 34px; font-size: 16px; }
  .brand__copy strong { font-size: 14px; }
  .brand__copy small { display: none; }
  .topbar__actions { flex: 1; justify-content: flex-end; }
  .search { width: min(48vw, 190px); height: 36px; }
  .search:focus-within {
    position: absolute;
    right: calc(15px + var(--safe-area-right));
    width: calc(var(--viewport-width, 100vw) - 30px - var(--safe-area-left) - var(--safe-area-right));
    background: #071019;
  }
  .search kbd { display: none; }
  .control-button { display: none; }
  .control-button.music-toggle {
    display: inline-flex;
    width: 36px;
    flex: 0 0 36px;
    justify-content: center;
    padding: 0;
  }
  .music-toggle .control-button__text { display: none; }

  .map-caption,
  .stage-stats,
  .stage-help { display: none; }

  .legend {
    bottom: calc(68px + var(--safe-area-bottom));
    left: calc(14px + var(--safe-area-left));
    width: calc(var(--viewport-width, 100vw) - 28px - var(--safe-area-left) - var(--safe-area-right));
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity .3s, transform .3s;
  }

  .legend.is-mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .legend__items { grid-template-columns: repeat(3, 1fr); }

  .node { --node-size: 43px; }
  .node.is-central { --node-size: 69px; }
  .node__name { top: calc(100% + 8px); max-width: 95px; font-size: 9px; }
  .node__title { display: none; }
  .node.is-central .node__name { top: calc(100% + 11px); font-size: 13px; }
  .event-node__label { display: none; }

  .choice-panel {
    top: auto;
    right: calc(14px + var(--safe-area-right));
    bottom: calc(78px + var(--safe-area-bottom));
    left: calc(14px + var(--safe-area-left));
    width: auto;
    padding: 27px 25px 24px;
    transform: translateY(30px);
  }

  .choice-panel.is-visible { transform: translateY(0); }
  .choice-panel h2 { font-size: 24px; }
  .choice-panel__actions { gap: 15px; }
  .choice-panel .primary-button { min-width: 160px; }

  .detail-panel {
    top: auto;
    width: 100%;
    max-width: none;
    height: min(76dvh, 690px);
    max-height: calc(var(--viewport-height, 100dvh) - 65px - var(--safe-area-top));
    border-top: 1px solid rgba(140, 207, 226, .2);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(103%);
  }

  .detail-panel.is-open { transform: translateY(0); }
  .detail-panel::before {
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 5;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: rgba(163, 199, 209, .26);
    content: "";
    transform: translateX(-50%);
  }
  .detail-panel__close { top: 20px; }
  .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 205px; padding: 45px 25px 24px; }
  .detail-hero__watermark { top: -8px; right: -10px; width: 66%; height: 70%; opacity: .13; }
  .detail-portrait { width: 70px; height: 70px; margin-bottom: 17px; font-size: 23px; }
  .detail-hero h2 { font-size: 25px; }
  .detail-voice-replay { margin-top: 12px; }
  .detail-video-spotlight { width: 100%; min-height: 68px; }
  .detail-body { padding: 22px 25px calc(90px + var(--safe-area-bottom)); }
  .detail-meta__item--faction { min-height: 64px; padding-right: 72px !important; }
  .detail-meta__faction-icon { top: -8px; right: -5px; width: 84px; height: 84px; }

  .tour-panel {
    top: auto;
    right: calc(14px + var(--safe-area-right));
    bottom: calc(76px + var(--safe-area-bottom));
    left: calc(14px + var(--safe-area-left));
    width: auto;
    transform: translateY(30px);
  }

  .tour-panel.is-active { transform: translateY(0); }
  .tour-panel__face {
    max-height: calc(var(--viewport-height, 100dvh) - 154px - var(--safe-area-top) - var(--safe-area-bottom));
    padding: 23px 23px 19px;
    overflow-y: hidden;
    border-left-width: 1px;
    overscroll-behavior: none;
  }
  .tour-panel__face--front,
  .tour-panel__face--preview { padding: 15px 23px 13px; }
  .tour-panel__index { margin-bottom: 8px; }
  .tour-panel h2 { margin: 7px 0 9px; font-size: 24px; }
  .tour-panel__copy { font-size: 10.5px; line-height: 1.65; }
  .tour-panel__drama { width: 100%; margin-top: 13px; }
  .tour-panel__drama-media i { width: 30px; height: 30px; }
  .tour-panel__drama-copy { padding: 36px 12px 10px; }
  .tour-panel__drama-copy small { display: block; }
  .tour-panel__drama-copy strong { font-size: 14px; }
  .tour-panel__drama-copy em { margin-top: 3px; }
  .tour-panel__related { max-height: none; overflow: visible; }
  .tour-panel__open-drama { min-height: 42px; margin-top: 12px; font-size: 14px; }
  .tour-panel__related button { min-height: 38px; font-size: 13px; }
  .tour-panel__autoplay { min-height: 40px; font-size: 13px; }
  .tour-panel__drama-actions { gap: 7px; margin-top: 14px; }
  .tour-panel__close-drama, .tour-panel__next-drama { min-height: 42px; padding: 9px 8px; font-size: 13px; }
  .tour-panel__drama-header h2 { font-size: 22px; }
  .tour-panel__drama-header > span { font-size: 10px; }
  .tour-panel__controls { margin-top: 16px; padding-top: 13px; }
  .tour-panel__exit { min-height: 42px; margin-top: 12px; font-size: 14px; }
  .tour-panel__preview-related span { font-size: 12px; }

  .mobile-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    height: calc(58px + var(--safe-area-bottom));
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: var(--safe-area-bottom);
    border-top: 1px solid rgba(141, 202, 219, .13);
    background: rgba(3, 9, 14, .94);
    backdrop-filter: blur(12px);
  }

  .mobile-bar button {
    border: 0;
    border-right: 1px solid rgba(141, 202, 219, .08);
    background: transparent;
    color: #8fa1a7;
    font-size: 10px;
    letter-spacing: .08em;
  }

  .mobile-bar button span { margin-right: 4px; color: var(--cyan); }
  .search-results {
    top: calc(65px + var(--safe-area-top));
    right: calc(15px + var(--safe-area-right));
    width: calc(var(--viewport-width, 100vw) - 30px - var(--safe-area-left) - var(--safe-area-right));
  }
}

@media (max-width: 768px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .tour-panel__sheet.stf__parent {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
  }
  .tour-panel__sheet .stf__wrapper,
  .tour-panel__sheet .stf__block {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    perspective: none !important;
  }
  .tour-panel__sheet .tour-panel__face.stf__item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  .tour-panel__sheet .tour-panel__face--front {
    display: block !important;
  }
  .tour-panel__sheet .tour-panel__face--back,
  .tour-panel.is-flipped .tour-panel__sheet .tour-panel__face--front {
    display: none !important;
  }
  .tour-panel.is-flipped .tour-panel__sheet .tour-panel__face--back {
    display: block !important;
  }
  .tour-panel__book { perspective: none; }
  .tour-panel__sheet { display: block; transform: none !important; transition: none; }
  .tour-panel__sheet::after { display: none; }
  .tour-panel__face {
    grid-area: auto;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none !important;
  }
  .tour-panel__face--back { display: none; }
  .tour-panel.is-flipped .tour-panel__face--front { display: none; }
  .tour-panel.is-flipped .tour-panel__face--back { display: block; }
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .specular-cursor,
  .detail-video-spotlight__splash,
  .detail-video-spotlight__specular {
    display: none !important;
  }
}

/* Narrow landscape touch screens (for example 844x390 phones). Keep each
   chapter face on one static page: no inner scrolling, with actions in a
   stable bottom rail and the drama card beside its controls. */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
  .tour-panel {
    top: auto;
    right: calc(14px + var(--safe-area-right));
    bottom: calc(76px + var(--safe-area-bottom));
    left: calc(14px + var(--safe-area-left));
    width: auto;
  }

  .tour-panel__face {
    box-sizing: border-box;
    height: min(236px, calc(var(--viewport-height, 100dvh) - 126px - var(--safe-area-top) - var(--safe-area-bottom))) !important;
    max-height: min(236px, calc(var(--viewport-height, 100dvh) - 126px - var(--safe-area-top) - var(--safe-area-bottom))) !important;
    min-height: 0;
    padding: 12px 16px 10px;
    overflow: hidden;
  }

  .tour-panel:not(.is-flipped) .tour-panel__face--front {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) 35px;
    column-gap: 18px;
    align-content: stretch;
  }

  .tour-panel__face--front > .tour-panel__index {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .tour-panel__face--front > .tour-panel__index span:first-child {
    font-size: 20px;
  }

  .tour-panel__face--front > #tour-kicker {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin: 0;
    font-size: 9px;
  }

  .tour-panel__face--front > #tour-title {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    min-width: 0;
    margin: 2px 0 0;
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.2;
  }

  .tour-panel__face--front > #tour-copy {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
    min-height: 0;
    margin: 5px 0 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .tour-panel__face--front > #tour-open-drama {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    font-size: 12px;
  }

  .tour-panel__face--front > #tour-related {
    grid-column: 2;
    grid-row: 2 / 5;
    align-content: start;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    margin: 7px 0 0;
    gap: 4px;
    overflow: hidden;
  }

  .tour-panel__face--front > #tour-related button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .tour-panel__face--front > #tour-autoplay {
    grid-column: 2;
    grid-row: 5;
    align-self: end;
    justify-self: start;
    min-height: 32px;
    margin: 0;
    padding: 6px 9px;
    font-size: 11px;
  }

  .tour-panel__face--front > .tour-panel__controls {
    grid-column: 1;
    grid-row: 5;
    align-self: end;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding-top: 6px;
  }

  .tour-panel__face--front > .tour-panel__controls > button {
    width: 32px;
    height: 30px;
  }

  .tour-panel__face--front > #tour-exit {
    position: absolute;
    right: 16px;
    bottom: 10px;
    z-index: 2;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    font-size: 11px;
  }

  .tour-panel__face--front > #tour-exit span {
    font-size: 14px;
  }

  .tour-panel.is-flipped .tour-panel__sheet .tour-panel__face--back {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-content: stretch;
  }

  .tour-panel__face--back > .tour-panel__drama-header {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    gap: 10px;
  }

  .tour-panel__face--back .tour-panel__drama-header h2 {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.2;
  }

  .tour-panel__face--back .tour-panel__drama-header > span {
    margin-top: 0;
    padding: 4px 6px;
    font-size: 9px;
    white-space: nowrap;
  }

  .tour-panel__face--back > .tour-panel__drama {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 230px);
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: 16 / 9;
    justify-self: start;
  }

  .tour-panel__face--back .tour-panel__drama-copy {
    padding: 26px 10px 7px;
  }

  .tour-panel__face--back .tour-panel__drama-copy strong {
    font-size: 13px;
  }

  .tour-panel__face--back > .tour-panel__drama-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    min-width: 0;
    margin: 0;
    gap: 8px;
    flex-direction: column;
  }

  .tour-panel__face--back .tour-panel__close-drama,
  .tour-panel__face--back .tour-panel__next-drama {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .brand__copy strong { font-size: 12px; letter-spacing: .1em; }
  .search { width: 44vw; }
  .choice-panel__actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .choice-panel .primary-button { width: 100%; }
  .text-button { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .specular-cursor,
  .detail-video-spotlight__splash,
  .detail-video-spotlight__specular { display: none !important; }

  .detail-voice-replay__icon,
  .detail-voice-replay__bars i,
  .detail-voice-replay__icon::before,
  .detail-voice-replay__icon::after {
    animation: none !important;
  }

  .detail-voice-replay.is-playing .detail-voice-replay__bars { opacity: .8; }
  .detail-voice-replay.is-playing .detail-voice-replay__icon::before {
    opacity: .34;
    transform: scale(.9);
  }
}

/* ============================================
   符文装饰系统 - 17处联盟风格光效
   ============================================ */

/* 1. 详情面板顶部金色装饰条 */
.detail-panel.is-open::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--alliance-gold) 20%,
    var(--alliance-light-gold) 50%,
    var(--alliance-gold) 80%,
    transparent);
  box-shadow: 0 0 12px var(--alliance-gold), 0 2px 8px rgba(212, 175, 106, 0.4);
  pointer-events: none;
  z-index: 10;
}

/* 3-6. 图例面板四角L型边框 */
.legend::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--alliance-gold);
  border-left: 2px solid var(--alliance-gold);
  box-shadow: 0 0 8px var(--alliance-gold);
  pointer-events: none;
}

.legend::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--alliance-gold);
  border-right: 2px solid var(--alliance-gold);
  box-shadow: 0 0 8px var(--alliance-gold);
  pointer-events: none;
}

.legend-wrapper::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--alliance-gold);
  border-left: 2px solid var(--alliance-gold);
  box-shadow: 0 0 8px var(--alliance-gold);
  pointer-events: none;
}

.legend-wrapper::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--alliance-gold);
  border-right: 2px solid var(--alliance-gold);
  box-shadow: 0 0 8px var(--alliance-gold);
  pointer-events: none;
}

/* 7-12. 前6个关系卡片底部小圆点装饰 */
.detail-relation:nth-child(1)::after,
.detail-relation:nth-child(3)::after,
.detail-relation:nth-child(5)::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--alliance-gold);
  box-shadow: 0 0 8px var(--alliance-gold), 0 0 12px rgba(212, 175, 106, 0.5);
  pointer-events: none;
}

.detail-relation:nth-child(2)::after,
.detail-relation:nth-child(4)::after,
.detail-relation:nth-child(6)::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--alliance-blue);
  box-shadow: 0 0 8px var(--alliance-blue), 0 0 12px rgba(74, 123, 167, 0.5);
  pointer-events: none;
}

/* 13. 关系筛选器顶部装饰线 */
.detail-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--alliance-blue) 30%,
    var(--alliance-gold) 50%,
    var(--alliance-blue) 70%,
    transparent);
  box-shadow: 0 0 6px rgba(74, 123, 167, 0.5);
  pointer-events: none;
}

/* 14. 详情面板底部微光 */
.detail-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--alliance-light-gold) 50%,
    transparent);
  box-shadow: 0 0 8px var(--alliance-light-gold);
  pointer-events: none;
  opacity: 0.4;
}

/* 15. intro标题下方光晕 */
.intro__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--alliance-blue) 50%,
    transparent);
  box-shadow: 0 0 10px var(--alliance-blue);
  pointer-events: none;
}

/* 16-17. 画布左上角和右上角渐变装饰 */
#app::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--alliance-blue), transparent 70%);
  opacity: 0.15;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

#app::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 60px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--alliance-gold), transparent 70%);
  opacity: 0.12;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}
