:root {
  --bg: #06070b;
  --bg-deep: #04050a;
  --text: #f4eee1;
  --muted: rgba(244, 238, 225, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d7b178;
  --acid: #98cf52;
  --rose: #ff7e91;
  --cyan: #55c5ff;
  --content: min(78rem, calc(100% - 2rem));
  --audio-module-size: 28rem;
  --video-module-size: 54rem;
  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Press Start 2P", cursive;
  --font-headline: "Jacquard 24", serif;
  --font-fantasy: "Pirata One", serif;
  --font-accent: "Averia Libre", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(116, 54, 18, 0.28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(25, 107, 128, 0.22), transparent 22%),
    linear-gradient(180deg, #090b10 0%, #04050a 48%, #090b10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  opacity: 0.38;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
a,
input,
audio,
video {
  -webkit-tap-highlight-color: transparent;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(122, 242, 211, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.97), rgba(4, 6, 10, 0.92));
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__panel {
  width: min(30rem, 100%);
  padding: 1.8rem 1.8rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(23, 18, 14, 0.68), rgba(8, 12, 18, 0.84)),
    rgba(8, 12, 18, 0.8);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.site-loader__eyebrow,
.section-heading__eyebrow,
.player-shell__label {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
}

.site-loader__title,
.player-shell h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: 0;
}

.site-loader__title {
  margin-top: 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.08;
}

.site-loader__d20 {
  --loader-progress: 0%;
  position: relative;
  width: min(11rem, 52vw);
  margin: 1.35rem auto 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.site-loader__d20::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 177, 120, 0.16), rgba(215, 177, 120, 0) 70%);
  opacity: calc(0.25 + (var(--loader-progress-number, 0) / 140));
  filter: blur(10px);
}

.site-loader__d20 svg {
  width: 100%;
  height: 100%;
  fill: rgba(244, 238, 225, 0.9);
  filter:
    drop-shadow(0 0 1rem rgba(215, 177, 120, 0.18))
    drop-shadow(0 0 2.4rem rgba(215, 177, 120, 0.1));
  opacity: calc(0.58 + (var(--loader-progress-number, 0) / 220));
}

.site-loader__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #f0dfbf;
  text-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.7);
}

.site-loader__meta {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.topbar {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  z-index: 20;
  width: var(--content);
  transform: translateX(-50%);
  pointer-events: auto;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.topbar::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: min(100vw, 110rem);
  height: 7rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.76), rgba(5, 7, 11, 0.18) 70%, transparent);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: -0.9rem 0 auto;
  height: 1.4rem;
}

.topbar__toggle {
  display: none;
}

.topbar__nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.topbar__link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(244, 238, 225, 0.34);
  background: transparent;
  color: rgba(244, 238, 225, 0.96);
  padding: 0.45rem 0;
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(238, 220, 185, 0.72);
  color: #f4ead7;
  text-shadow:
    0 1px 16px rgba(0, 0, 0, 0.72),
    0 0 0.38rem rgba(238, 220, 185, 0.12);
  outline: none;
}

.topbar__link.is-active {
  transform: translateY(-1px);
  border-color: rgba(194, 150, 92, 0.82);
  color: #f0dfbf;
  text-shadow:
    0 1px 16px rgba(0, 0, 0, 0.76),
    0 0 0.45rem rgba(194, 150, 92, 0.18);
  outline: none;
}

.topbar.is-hidden-on-scroll {
  transform: translate(-50%, calc(-100% + 1rem));
  opacity: 0.18;
}

.topbar.is-hidden-on-scroll:hover,
.topbar.is-hidden-on-scroll:focus-within {
  transform: translateX(-50%);
  opacity: 1;
}

.info-modal[hidden] {
  display: none;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(10px);
}

.info-modal__dialog {
  position: relative;
  width: min(38rem, calc(100% - 2rem));
  margin: min(18vh, 8rem) auto 0;
  padding: 2rem 2rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(85, 197, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(22, 18, 16, 0.95), rgba(8, 12, 18, 0.97));
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
}

.info-modal__dialog h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-family: var(--font-headline);
  line-height: 0.94;
  letter-spacing: 0.01em;
  max-width: 100%;
  color: #f4ead7;
  text-wrap: pretty;
}

.info-modal__dialog p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.info-modal__eyebrow {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  color: rgba(244, 238, 225, 0.74);
}

.info-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.84);
  backdrop-filter: blur(14px);
}

.gallery-modal__dialog {
  position: relative;
  width: min(86rem, calc(100% - 2rem));
  height: min(90vh, 58rem);
  margin: min(4vh, 2rem) auto 0;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(215, 177, 120, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.gallery-modal__topbar,
.gallery-modal__viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-modal__eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 1rem;
}

.gallery-modal__topbar h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-headline);
  font-size: clamp(2.45rem, 4.8vw, 3.8rem);
  line-height: 0.96;
  color: #f4ead7;
}

.gallery-modal__close,
.gallery-modal__back,
.gallery-modal__nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.gallery-modal__close,
.gallery-modal__back {
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-modal__grid-view,
.gallery-modal__viewer {
  height: calc(100% - 5.1rem);
  margin-top: 0.85rem;
}

.gallery-modal__grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  padding-right: 0.65rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 177, 120, 0.52) rgba(255, 255, 255, 0.04);
  align-content: start;
}

.gallery-modal__grid::-webkit-scrollbar {
  width: 6px;
}

.gallery-modal__grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.gallery-modal__grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(228, 196, 144, 0.72), rgba(215, 177, 120, 0.34));
  border-radius: 999px;
}

.gallery-modal__thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-modal__thumb:hover,
.gallery-modal__thumb:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(215, 177, 120, 0.52);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.18);
  outline: none;
}

.gallery-modal__thumb img,
.gallery-modal__figure img {
  display: block;
}

.gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal__figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
}

.gallery-modal__counter {
  margin: 0;
  color: rgba(244, 238, 225, 0.72);
}

.gallery-modal__viewer-topbar {
  margin-bottom: 0.85rem;
}

.gallery-modal__stage {
  height: calc(100% - 3.2rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
}

.gallery-modal__figure {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-modal__nav {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 2rem;
  line-height: 1;
}

.hero-scene {
  position: relative;
  height: 420vh;
}

.hero-scene__anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hero-scene__anchor--cyber {
  top: calc(100% - 100vh);
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
  isolation: isolate;
  background: #05070a;
}

.hero-stage__canvas {
  position: absolute;
  inset: 0;
}

.hero-stage__canvas {
  width: 100%;
  height: 100%;
}
.hero-hotspots {
  position: relative;
  z-index: 1;
}

.hero-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot-group {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hotspot-group.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hotspot {
  position: absolute;
  right: 1rem;
  width: auto;
  max-width: min(31rem, calc(100% - 3rem));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 0.15rem 0;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition: transform 0.25s ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  transform: translateX(-0.45rem);
  outline: none;
}

.hotspot--inactive {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
}

.hotspot img {
  order: 2;
  width: 3.3rem;
  height: 3.3rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 13, 19, 0.5);
  backdrop-filter: blur(12px);
  filter: drop-shadow(0 0.35rem 0.7rem rgba(0, 0, 0, 0.32));
}

.hotspot-group[data-hotspot-group="one"] .hotspot img {
  width: 6.6rem;
  height: 6.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  filter: drop-shadow(0 0.55rem 0.95rem rgba(0, 0, 0, 0.34));
}

.hotspot-group[data-hotspot-group="two"] .hotspot img {
  width: 6.6rem;
  height: 6.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  filter: drop-shadow(0 0.55rem 0.95rem rgba(0, 0, 0, 0.34));
}

.hotspot span {
  order: 1;
  width: 0;
  flex: 0 0 auto;
  overflow: hidden;
  white-space: normal;
  opacity: 0;
  transform: translateX(0.35rem);
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.18;
  text-transform: uppercase;
  text-shadow: 0 0.18rem 0.65rem rgba(0, 0, 0, 0.52);
  transition: width 0.34s steps(32, end), opacity 0.15s ease, transform 0.2s ease;
}

.hotspot:hover span,
.hotspot:focus-visible span {
  width: min(31ch, 100%);
  opacity: 1;
  transform: translateX(0);
}

.hotspot--left {
  top: 31%;
}

.hotspot--right {
  top: 50%;
}

.hotspot--center {
  top: 55%;
}

.hotspot-group[data-hotspot-group="one"] .hotspot--left,
.hotspot-group[data-hotspot-group="one"] .hotspot--right {
  right: 1rem;
  transform: translateY(-50%);
}

.hotspot-group[data-hotspot-group="one"] .hotspot--left {
  top: calc(50% - 6.9rem);
}

.hotspot-group[data-hotspot-group="one"] .hotspot--right {
  top: calc(50% + 5.1rem);
}

.hotspot-group[data-hotspot-group="one"] .hotspot--left:hover,
.hotspot-group[data-hotspot-group="one"] .hotspot--left:focus-visible,
.hotspot-group[data-hotspot-group="one"] .hotspot--right:hover,
.hotspot-group[data-hotspot-group="one"] .hotspot--right:focus-visible {
  transform: translateY(-50%) translateX(-0.45rem);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--left,
.hotspot-group[data-hotspot-group="two"] .hotspot--center,
.hotspot-group[data-hotspot-group="two"] .hotspot--right {
  right: 1rem;
}

.hotspot-group[data-hotspot-group="two"] .hotspot--left {
  top: calc(50% - 14rem);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--center {
  top: 50%;
  transform: translateY(-50%);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--right {
  top: calc(50% + 6.9rem);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--left:hover,
.hotspot-group[data-hotspot-group="two"] .hotspot--left:focus-visible {
  transform: translateX(-0.45rem);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--center:hover,
.hotspot-group[data-hotspot-group="two"] .hotspot--center:focus-visible {
  transform: translateY(-50%) translateX(-0.45rem);
}

.hotspot-group[data-hotspot-group="two"] .hotspot--right:hover,
.hotspot-group[data-hotspot-group="two"] .hotspot--right:focus-visible {
  transform: translateX(-0.45rem);
}

.hero-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 1;
  transform: translateX(-50%);
  display: inline-grid;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0;
  color: rgba(244, 238, 225, 0.88);
  font-family: var(--font-accent);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0.18rem 0.7rem rgba(0, 0, 0, 0.56);
}

.hero-scrollhint__label {
  display: block;
}

.hero-scrollhint__mouse {
  position: relative;
  justify-self: center;
  width: 1.1rem;
  height: 1.8rem;
  border: 1px solid rgba(244, 238, 225, 0.8);
  border-radius: 999px;
}

.hero-scrollhint__wheel {
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 0.16rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(244, 238, 225, 0.92);
  transform: translateX(-50%);
  animation: scroll-wheel 1.35s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  25% {
    opacity: 1;
  }

  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0.45rem);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0.58rem);
  }
}

.character-section,
.media-section {
  width: var(--content);
  margin: 0 auto;
}

.section-heading h2 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-headline);
  font-size: clamp(4.7rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

.section-heading__title--archive {
  font-family: var(--font-headline);
}

.section-heading p:last-child {
  max-width: 42rem;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.character-section {
  padding: 4rem 0 6rem;
}

.section-heading {
  text-align: center;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.8rem 1.8rem;
  margin-top: 2.3rem;
}

.character-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.character-card:hover,
.character-card:focus-within,
.character-card.is-cyber {
  transform: translateY(-6px);
}

.character-card__orb {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 243, 222, 0.85), rgba(255, 243, 222, 0.05) 32%, transparent 34%),
    radial-gradient(circle at 60% 70%, rgba(122, 242, 211, 0.3), transparent 35%),
    rgba(12, 15, 22, 0.9);
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.2);
  transition:
    border-radius 0.28s ease,
    box-shadow 0.28s ease;
}

.character-card__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  box-sizing: border-box;
  pointer-events: none;
  border: 2px solid rgba(244, 238, 225, 0.48);
  border-radius: inherit;
  transition: border-radius 0.28s ease, border-color 0.28s ease;
}

.character-card__scanlines,
.character-card__glitch-band {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.character-card__scanlines {
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  transition: opacity 0.2s ease;
}

.character-card__glitch-band {
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 36%,
      rgba(152, 207, 82, 0.14) 43%,
      rgba(196, 255, 122, 0.24) 47%,
      rgba(105, 160, 58, 0.18) 50%,
      transparent 57%,
      transparent 100%
    );
  transform: translateY(-20%);
}

.character-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.character-card__image--fantasy {
  object-position: var(--fantasy-pos, 50% 10%);
}

.character-card__image--cyber {
  object-position: var(--cyber-pos, 50% 12%);
  opacity: 0;
  transform: scale(1.08) skewX(1deg);
  filter: saturate(1.4) hue-rotate(-18deg) contrast(1.06);
}

.character-card:hover .character-card__image--cyber,
.character-card:focus-within .character-card__image--cyber,
.character-card.is-cyber .character-card__image--cyber {
  opacity: 1;
  transform: scale(1) skewX(0);
}

.character-card:hover .character-card__image--fantasy,
.character-card:focus-within .character-card__image--fantasy,
.character-card.is-cyber .character-card__image--fantasy {
  opacity: 0;
  transform: scale(0.97) translateX(-0.4rem);
  filter: blur(1.8px);
}

.character-card:hover .character-card__orb,
.character-card:focus-within .character-card__orb,
.character-card.is-cyber .character-card__orb {
  border-radius: 0;
  box-shadow:
    0 0.85rem 1.6rem rgba(0, 0, 0, 0.28),
    0 0 1.3rem rgba(152, 207, 82, 0.18);
}

.character-card:hover .character-card__orb::after,
.character-card:focus-within .character-card__orb::after,
.character-card.is-cyber .character-card__orb::after {
  border-radius: 0;
  border-color: rgba(152, 207, 82, 0.96);
}

.character-card:hover .character-card__scanlines,
.character-card:focus-within .character-card__scanlines,
.character-card.is-cyber .character-card__scanlines {
  opacity: 0.78;
}

.character-card:hover .character-card__glitch-band,
.character-card:focus-within .character-card__glitch-band,
.character-card.is-cyber .character-card__glitch-band {
  opacity: 0;
  animation: glitch-scan 0.46s ease-out 1 forwards;
}

.character-card__names {
  margin-top: 0.74rem;
  position: relative;
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.character-card__name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0 0.45rem;
  text-align: center;
}

.character-card__name--fantasy {
  font-family: var(--font-fantasy);
  font-size: 1.7rem;
  line-height: 1.04;
  width: fit-content;
  max-width: min(100%, 14ch);
  justify-self: center;
  text-wrap: balance;
  transition: opacity 0.2s ease, transform 0.28s ease, filter 0.28s ease;
}

.character-card--compact-name .character-card__names {
  min-height: 5.1rem;
}

.character-card--compact-name .character-card__name--fantasy {
  font-size: 1.28rem;
  line-height: 1.06;
  max-width: min(100%, 24ch);
}

.character-card__name--cyber {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 0.96;
  text-align: center;
  text-transform: uppercase;
  width: fit-content;
  max-width: min(calc(100% - 1rem), 18ch);
  justify-self: center;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: scale(0.985);
  filter: blur(5px);
  text-shadow:
    -0.03em 0 rgba(198, 255, 122, 0.7),
    0.03em 0 rgba(105, 160, 58, 0.7),
    0 0 18px rgba(152, 207, 82, 0.26);
  transition: opacity 0.18s ease, transform 0.25s ease, filter 0.22s ease;
}

.character-card:hover .character-card__name--cyber,
.character-card:focus-within .character-card__name--cyber,
.character-card.is-cyber .character-card__name--cyber {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  animation: cyber-glitch 0.2s steps(2, end) 2;
}

.character-card:hover .character-card__name--fantasy,
.character-card:focus-within .character-card__name--fantasy,
.character-card.is-cyber .character-card__name--fantasy {
  opacity: 0;
  transform: translateY(-0.2rem) skewX(-8deg);
  filter: blur(3px);
}

.character-card__role {
  margin: 0.04rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

@keyframes glitch-scan {
  0% {
    opacity: 0;
    transform: translateY(-20%);
  }

  18% {
    opacity: 1;
  }

  74% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateY(18%);
  }
}

@keyframes cyber-glitch {
  0% {
    clip-path: inset(0 0 62% 0);
    transform: scale(0.985);
  }

  50% {
    clip-path: inset(38% 0 18% 0);
    transform: translate(-0.08rem, -0.08rem) scale(1);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

.media-section {
  padding: 0 0 6rem;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
  align-items: start;
}

.media-layout--audio {
  grid-template-columns: minmax(15rem, 18rem) minmax(20rem, 28rem);
  justify-content: center;
  gap: 0.8rem;
  align-items: stretch;
}

.media-layout--video {
  grid-template-columns: minmax(15rem, 18rem) minmax(30rem, var(--video-module-size));
  justify-content: center;
  gap: 1rem;
  align-items: start;
}

.playlist {
  display: grid;
  gap: 0.8rem;
  align-self: start;
  text-align: center;
}

.media-layout--audio .playlist {
  justify-self: end;
  width: min(100%, 18rem);
  max-height: calc(var(--audio-module-size) + 4rem);
  padding-right: 0.45rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 177, 120, 0.58) rgba(255, 255, 255, 0.03);
}

.media-layout--audio .playlist::-webkit-scrollbar {
  width: 5px;
}

.media-layout--audio .playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.media-layout--audio .playlist::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(228, 196, 144, 0.82), rgba(215, 177, 120, 0.52));
  border-radius: 999px;
}

.media-layout--video .playlist {
  justify-self: end;
  width: min(100%, 18rem);
}

.playlist__item {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.playlist__item:hover,
.playlist__item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(238, 220, 185, 0.44);
  color: #f4ead7;
  outline: none;
}

.playlist__item.is-active {
  border-color: rgba(168, 88, 66, 0.7);
  color: #f0dfbf;
}

.playlist__item strong {
  display: block;
  font-size: 1.16rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.playlist__item.is-active strong {
  color: #d7b178;
  text-shadow: 0 0 0.35rem rgba(168, 88, 66, 0.12);
}

.playlist__item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.playlist__item.is-active span {
  color: rgba(244, 238, 225, 0.82);
}

.player-shell {
  min-height: 100%;
  padding: 0;
  text-align: center;
}

.player-shell--audio {
  display: grid;
  gap: 0;
  align-content: start;
  justify-items: center;
  width: min(100%, var(--audio-module-size));
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.player-shell--video {
  --video-aspect-ratio: 16 / 9;
  display: grid;
  gap: 0;
  align-content: start;
  width: min(100%, var(--video-module-size));
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.player-shell--audio audio {
  display: none;
}

.player-shell--video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--video-aspect-ratio);
  object-fit: contain;
  background: #04050a;
  border: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-aspect-ratio);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #04050a;
}

.player-shell--video:fullscreen,
.player-shell--video:-webkit-full-screen,
.player-shell--video:-moz-full-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  display: block;
  justify-self: stretch;
  border: 0;
  background: #04050a;
}

.player-shell--video:fullscreen .video-frame,
.player-shell--video:-webkit-full-screen .video-frame,
.player-shell--video:-moz-full-screen .video-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
}

.player-shell--video:fullscreen video,
.player-shell--video:-webkit-full-screen video,
.player-shell--video:-moz-full-screen video {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.player-shell--video:fullscreen .video-controls,
.player-shell--video:-webkit-full-screen .video-controls,
.player-shell--video:-moz-full-screen .video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0), rgba(6, 8, 12, 0.72) 24%, rgba(6, 8, 12, 0.95) 100%);
}

.player-shell--video:fullscreen .audio-controls__timeline,
.player-shell--video:-webkit-full-screen .audio-controls__timeline,
.player-shell--video:-moz-full-screen .audio-controls__timeline,
.player-shell--video:fullscreen .audio-controls__volume,
.player-shell--video:-webkit-full-screen .audio-controls__volume,
.player-shell--video:-moz-full-screen .audio-controls__volume {
  min-width: 0;
  width: 100%;
}

.player-shell--video:fullscreen .audio-controls__timeline,
.player-shell--video:-webkit-full-screen .audio-controls__timeline,
.player-shell--video:-moz-full-screen .audio-controls__timeline {
  flex: 1 1 auto;
}

.player-shell--video:fullscreen .audio-controls__time,
.player-shell--video:-webkit-full-screen .audio-controls__time,
.player-shell--video:-moz-full-screen .audio-controls__time {
  min-width: 8rem;
  flex: 0 0 auto;
}

.player-shell--video:fullscreen .audio-controls__volume,
.player-shell--video:-webkit-full-screen .audio-controls__volume,
.player-shell--video:-moz-full-screen .audio-controls__volume {
  flex: 0 0 8rem;
}

.player-shell--video:fullscreen .audio-controls__range,
.player-shell--video:-webkit-full-screen .audio-controls__range,
.player-shell--video:-moz-full-screen .audio-controls__range {
  width: 100%;
}

.player-shell--video:fullscreen.is-chrome-hidden,
.player-shell--video:-webkit-full-screen.is-chrome-hidden,
.player-shell--video:-moz-full-screen.is-chrome-hidden {
  cursor: none;
}

.player-shell--video:fullscreen.is-chrome-hidden .video-controls,
.player-shell--video:-webkit-full-screen.is-chrome-hidden .video-controls,
.player-shell--video:-moz-full-screen.is-chrome-hidden .video-controls {
  opacity: 0;
  transform: translateY(1.25rem);
  pointer-events: none;
}

.player-shell--video:fullscreen .video-controls,
.player-shell--video:-webkit-full-screen .video-controls,
.player-shell--video:-moz-full-screen .video-controls {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.video-frame__overlay-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 4.9rem;
  height: 4.9rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 238, 225, 0.22);
  border-radius: 50%;
  background: rgba(6, 8, 12, 0.5);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.video-frame__overlay-play .audio-controls__play-icon {
  border-top-width: 0.72rem;
  border-bottom-width: 0.72rem;
  border-left-width: 1.12rem;
  margin-left: 0.18rem;
}

.player-shell--video.is-playing .video-frame__overlay-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.video-frame__overlay-play:hover,
.video-frame__overlay-play:focus-visible {
  border-color: rgba(215, 177, 120, 0.42);
  transform: translate(-50%, -50%) scale(1.03);
  outline: none;
}

.video-frame__loader {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-frame__loader svg {
  width: 100%;
  height: 100%;
  fill: rgba(240, 223, 191, 0.92);
  filter: drop-shadow(0 0 0.6rem rgba(215, 177, 120, 0.18));
  animation: loader-spin 1.3s linear infinite;
}

.player-shell--video.is-buffering .video-frame__loader {
  opacity: 1;
}

.player-shell__cover {
  margin: 0;
  justify-self: stretch;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
}

.player-shell__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(4.5rem, 5.4rem);
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03)),
    rgba(8, 10, 14, 0.92);
}

.video-controls {
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(4.5rem, 5.4rem) auto;
}

.audio-controls.is-disabled {
  opacity: 0.5;
}

.audio-controls__play,
.audio-controls__mute,
.audio-controls__fullscreen {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.audio-controls__play:disabled,
.audio-controls__mute:disabled,
.audio-controls__fullscreen:disabled,
.audio-controls__range:disabled {
  cursor: default;
}

.audio-controls__play {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
}

.audio-controls__play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 0.48rem solid transparent;
  border-bottom: 0.48rem solid transparent;
  border-left: 0.8rem solid #f0dfbf;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.audio-controls__play.is-playing .audio-controls__play-icon {
  width: 0.8rem;
  height: 0.92rem;
  border: 0;
  background:
    linear-gradient(
      90deg,
      #f0dfbf 0 36%,
      transparent 36% 64%,
      #f0dfbf 64% 100%
    );
}

.audio-controls__play:hover .audio-controls__play-icon,
.audio-controls__play:focus-visible .audio-controls__play-icon,
.audio-controls__mute:hover .audio-controls__speaker,
.audio-controls__mute:focus-visible .audio-controls__speaker,
.audio-controls__fullscreen:hover .audio-controls__fullscreen-icon,
.audio-controls__fullscreen:focus-visible .audio-controls__fullscreen-icon {
  filter: drop-shadow(0 0 0.35rem rgba(215, 177, 120, 0.28));
  transform: scale(1.06);
}

.audio-controls__timeline,
.audio-controls__volume {
  display: flex;
  align-items: center;
}

.audio-controls__range {
  --range-progress: 0%;
  appearance: none;
  width: 100%;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.audio-controls__range:focus-visible {
  outline: none;
}

.audio-controls__range::-webkit-slider-runnable-track {
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(215, 177, 120, 0.92) 0 var(--range-progress),
      rgba(244, 238, 225, 0.18) var(--range-progress) 100%
    );
}

.audio-controls__range::-moz-range-track {
  height: 1px;
  background: rgba(244, 238, 225, 0.18);
}

.audio-controls__range::-moz-range-progress {
  height: 1px;
  background: rgba(215, 177, 120, 0.92);
}

.audio-controls__range::-webkit-slider-thumb {
  appearance: none;
  width: 0.98rem;
  height: 0.98rem;
  margin-top: -0.47rem;
  border: 1px solid rgba(244, 238, 225, 0.72);
  border-radius: 50%;
  background: #f4eee1;
  box-shadow: 0 0 0 0.18rem rgba(8, 10, 14, 0.96);
}

.audio-controls__range::-moz-range-thumb {
  width: 0.98rem;
  height: 0.98rem;
  border: 1px solid rgba(244, 238, 225, 0.72);
  border-radius: 50%;
  background: #f4eee1;
  box-shadow: 0 0 0 0.18rem rgba(8, 10, 14, 0.96);
}

.audio-controls__time {
  min-width: 5.7rem;
  color: rgba(244, 238, 225, 0.92);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.audio-controls__mute {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
}

.audio-controls__fullscreen {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
}

.audio-controls__speaker {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: #f0dfbf;
}

.audio-controls__mute.is-muted::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1px;
  background: rgba(168, 88, 66, 0.92);
  transform: rotate(-35deg);
}

.audio-controls__fullscreen-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.audio-controls__fullscreen-icon::before,
.audio-controls__fullscreen-icon::after {
  content: "";
  position: absolute;
  inset: 0;
}

.audio-controls__fullscreen-icon::before {
  border:
    1px solid rgba(240, 223, 191, 0.92);
}

.audio-controls__fullscreen-icon::after {
  inset: 0.18rem;
  border-top: 1px solid rgba(240, 223, 191, 0.92);
  border-right: 1px solid rgba(240, 223, 191, 0.92);
}

.audio-controls__fullscreen.is-active .audio-controls__fullscreen-icon::after {
  inset: 0.28rem;
  border-top-color: rgba(215, 177, 120, 0.92);
  border-right-color: rgba(215, 177, 120, 0.92);
}

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

.media-section--video {
  padding-bottom: 8rem;
}

code {
  font-family: inherit;
  color: var(--acid);
}

@media (max-width: 1100px) {
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotspot--left {
    top: 18%;
  }

  .hotspot--right {
    top: 31%;
  }

  .hotspot--center {
    top: 44%;
  }
}

@media (max-width: 680px) {
  .topbar {
    top: 0.55rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0.3rem;
  }

  .topbar::before {
    display: none;
  }

  .topbar::after {
    display: none;
  }

  .topbar__toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    pointer-events: auto;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(244, 238, 225, 0.24);
    background: rgba(8, 10, 14, 0.72);
    color: var(--text);
    backdrop-filter: blur(12px);
  }

  .topbar__toggle span {
    display: block;
    width: 1.1rem;
    height: 1px;
    background: currentColor;
  }

  .topbar__nav {
    position: absolute;
    top: 0;
    right: 0.3rem;
    min-width: 14rem;
    display: grid;
    justify-items: end;
    gap: 0.8rem;
    padding: 4rem 1rem 1rem;
    border: 1px solid rgba(244, 238, 225, 0.14);
    background: rgba(7, 10, 15, 0.88);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.4rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .topbar.is-open .topbar__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .topbar__link {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-hotspots {
    right: 0;
  }

  .hotspot {
    right: 0.8rem;
    max-width: calc(100vw - 1.6rem);
    gap: 0.5rem;
  }

  .hotspot img {
    width: 3rem;
    height: 3rem;
    padding: 0.48rem;
  }

  .hotspot-group[data-hotspot-group="one"] .hotspot img {
    width: 4.8rem;
    height: 4.8rem;
    padding: 0;
  }

  .hotspot-group[data-hotspot-group="two"] .hotspot img {
    width: 3.9rem;
    height: 3.9rem;
    padding: 0;
  }

  .hotspot-group[data-hotspot-group="two"] .hotspot--left {
    top: calc(50% - 8.6rem);
  }

  .hotspot-group[data-hotspot-group="two"] .hotspot--center {
    top: 50%;
  }

  .hotspot-group[data-hotspot-group="two"] .hotspot--right {
    top: calc(50% + 4.3rem);
  }

  .hotspot span {
    width: auto;
    max-width: min(18ch, calc(100vw - 5.8rem));
    opacity: 1;
    transform: translateX(0);
    padding: 0.34rem 0.55rem 0.34rem 0.7rem;
    border: 1px solid rgba(244, 238, 225, 0.18);
    background: rgba(8, 10, 14, 0.66);
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: right;
    white-space: normal;
    overflow: visible;
    transition: none;
  }

  .hero-scrollhint {
    bottom: 0.9rem;
  }

  .section-heading h2 {
    max-width: 18ch;
    font-size: clamp(3.4rem, 12vw, 5.8rem);
    line-height: 1.1;
  }
}

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

  .topbar__nav {
    min-width: calc(100vw - 1.2rem);
  }
}
