:root {
  --desktop-scale: 0.68;

  --bg: #030003;
  --pink: #ff2f9c;
  --pink-soft: rgba(255, 47, 156, 0.42);
  --pink-faint: rgba(255, 47, 156, 0.22);
  --white: #f7edf4;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}

/* PRELOAD STATE */

body.is-preloading {
  overflow: hidden;
}

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

body.is-loaded .site {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* SITE LOADER */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 47, 156, 0.18), transparent 34%),
    radial-gradient(circle at 50% 55%, rgba(255, 47, 156, 0.10), transparent 50%),
    linear-gradient(180deg, #080005 0%, #000000 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease;
}

.site-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 0, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 150, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.site-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background:
    repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px);
  mix-blend-mode: screen;
}

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

.loader-frame {
  position: relative;
  z-index: 3;
  width: min(520px, calc(100vw - 44px));
  padding: 46px 42px 38px;
  border: 1px solid rgba(255, 47, 156, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.07), rgba(0, 0, 0, 0.34)),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    0 0 32px rgba(255, 47, 156, 0.14),
    inset 0 0 34px rgba(255, 47, 156, 0.05);
  text-align: center;
  overflow: hidden;
}

.loader-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 47, 156, 0.16);
  pointer-events: none;
}

.loader-frame::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(255, 47, 156, 0.15),
      transparent);
  animation: loaderFrameScan 2.8s linear infinite;
}

.loader-symbols {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 28px;
  color: var(--pink);
  font-size: 24px;
  opacity: 0.88;
}

.loader-moon {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 48px;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(255, 47, 156, 0.42),
    0 0 28px rgba(255, 47, 156, 0.16);
  animation: loaderMoonPulse 1.6s steps(2, end) infinite;
}

.loader-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(360px, 84%);
  margin: 0 auto 22px;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 28px rgba(255, 47, 156, 0.34));
}

.loader-kicker {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
  color: var(--pink);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 4px;
}

.loader-terminal {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background: rgba(0, 0, 0, 0.35);
  text-align: left;
  color: rgba(247, 237, 244, 0.72);
  font-size: 12px;
  line-height: 1.85;
}

.loader-terminal p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loader-terminal p::before {
  content: ">";
  margin-right: 7px;
  color: var(--pink);
  opacity: 0.85;
}

.loader-terminal span {
  color: var(--pink);
}

.loader-bar {
  position: relative;
  z-index: 2;
  height: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 47, 156, 0.48);
  background: rgba(255, 47, 156, 0.06);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg,
      rgba(255, 47, 156, 0.48),
      rgba(255, 237, 248, 0.82),
      rgba(255, 47, 156, 0.58));
  box-shadow: 0 0 18px rgba(255, 47, 156, 0.38);
  transition: width 0.28s ease;
}

.loader-status {
  position: relative;
  z-index: 2;
  color: rgba(255, 237, 248, 0.62);
  font-size: 11px;
  letter-spacing: 3px;
}

.loader-status::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loaderFrameScan {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(440%);
  }
}

@keyframes loaderMoonPulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* DESKTOP INTERNAL SCALE */

@media (min-width: 901px) {

  html,
  body {
    overflow: hidden;
  }

  .site {
    width: calc(100vw / var(--desktop-scale));
    height: calc(100svh / var(--desktop-scale));
    transform: scale(var(--desktop-scale));
    transform-origin: top left;
  }
}

/* GLOBAL FX */

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  opacity: 0.07;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px);
}

/* MOBILE HEADER FADE LAYER */

.mobile-header-fade {
  display: none;
}

/* MAIN SITE */

.site {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 0, 135, 0.30), transparent 31%),
    radial-gradient(circle at 52% 50%, rgba(255, 30, 150, 0.15), transparent 45%),
    linear-gradient(180deg, #090006 0%, #000000 100%);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.site::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 0, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 150, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* TOP BAR */

.topbar {
  position: absolute;
  top: 46px;
  left: 58px;
  right: 70px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain {
  color: var(--pink);
  font-size: 15px;
  letter-spacing: 6px;
}

.top-symbols {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--pink);
  font-size: 40px;
}

/* TOP SOCIAL LINKS */

.top-symbol-main {
  display: inline-block;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.22s ease;
}

.top-social-links a:hover {
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 47, 156, 0.75),
    0 0 18px rgba(255, 47, 156, 0.28);
  transform: translateY(-1px);
}

.top-social-links a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  text-shadow: none;
  transform: none;
}

.top-social-links i {
  display: block;
}

/* MATRIX BINARY RAIN */

.binary-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 1;
}

.matrix-column {
  position: absolute;
  top: -45%;
  color: rgba(255, 47, 156, 0.50);
  font-size: 16px;
  line-height: 1.08;
  letter-spacing: 1px;
  white-space: pre;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 47, 156, 0.24);
  animation-name: matrixFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.matrix-column .head {
  color: rgba(255, 47, 156, 0.95);
  text-shadow:
    0 0 8px rgba(255, 47, 156, 0.58),
    0 0 16px rgba(255, 47, 156, 0.28);
}

@keyframes matrixFall {
  0% {
    transform: translateY(-130%);
    opacity: 0;
  }

  8% {
    opacity: 0.20;
  }

  50% {
    opacity: 0.42;
  }

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

/* LEFT PANEL */

.left-panel {
  position: absolute;
  z-index: 10;
  left: 70px;
  top: 160px;
  width: 410px;
}

.title-area {
  margin-bottom: 60px;
}

.moon-mark {
  color: var(--pink);
  font-size: 54px;
  margin-bottom: 30px;
}

.alchemy-air-mark {
  color: var(--pink);
  line-height: 1;
}

.alchemy-air-mark svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
  filter:
    drop-shadow(0 0 8px rgba(255, 47, 156, 0.42)) drop-shadow(0 0 18px rgba(255, 47, 156, 0.18));
}

.alchemy-air-mark path,
.alchemy-air-mark line {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moon-mark.alchemy-air-mark svg {
  width: 54px;
  height: 54px;
}

.main-logo {
  width: min(100%, 680px);
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 28px rgba(255, 47, 156, 0.42));
}

.title-area p {
  margin-top: 28px;
  color: var(--pink);
  font-size: 14px;
  letter-spacing: 9px;
}

/* CENTER ALCHEMY AIR SYMBOL ON LOADING SCREEN ONLY */

.loader-moon.alchemy-air-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.loader-moon.alchemy-air-mark svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* MENU */

.menu-panel {
  width: 100%;
  border: 1px solid var(--pink-soft);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.menu-panel button {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 26px;
  align-items: center;
  padding: 26px 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 47, 156, 0.25);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
}

.menu-panel button:last-child {
  border-bottom: 0;
}

.menu-panel button:hover {
  background: rgba(255, 47, 156, 0.11);
}

.menu-panel button:hover .name {
  color: var(--pink);
}


.menu-panel .number {
  color: var(--pink);
  font-size: 34px;
}

.menu-text {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.menu-panel .name {
  font-size: 22px;
  letter-spacing: 5px;
}


.menu-panel .glyph {
  color: var(--pink);
  justify-self: end;
  opacity: 0.8;
}

/* ECHO PANEL */

.echo-panel {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  margin-top: 42px;
  padding: 26px;
  border: 1px solid rgba(255, 47, 156, 0.28);
  background: rgba(0, 0, 0, 0.26);
}

.small-sigil.relic-sigil {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 156, 0.48);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 47, 156, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(255, 47, 156, 0.06), rgba(0, 0, 0, 0.18)),
    #090008;
  box-shadow:
    inset 0 0 18px rgba(255, 47, 156, 0.08),
    0 0 14px rgba(255, 47, 156, 0.10);
  isolation: isolate;
}

.relic-sigil .sigil-grid,
.relic-sigil .sigil-noise,
.relic-sigil .sigil-frame,
.relic-sigil .sigil-ring,
.relic-sigil .sigil-diamond,
.relic-sigil .anime-girl,
.relic-sigil .anime-girl span,
.relic-sigil .sigil-symbol {
  position: absolute;
}

.relic-sigil .sigil-grid {
  inset: 0;
  background-image:
    repeating-linear-gradient(to right,
      rgba(255, 47, 156, 0.10) 0 1px,
      transparent 1px 8px),
    repeating-linear-gradient(to bottom,
      rgba(255, 47, 156, 0.07) 0 1px,
      transparent 1px 8px);
  opacity: 0.18;
}

.relic-sigil .sigil-noise {
  inset: 0;
  background:
    repeating-linear-gradient(to bottom,
      transparent 0 4px,
      rgba(255, 47, 156, 0.035) 4px 5px);
  opacity: 0.4;
  animation: sigilNoiseShift 6s linear infinite;
}

.relic-sigil .sigil-frame {
  inset: 9px;
  border: 1px solid rgba(255, 47, 156, 0.18);
}

.relic-sigil .sigil-ring.outer {
  inset: 18%;
  border: 1px solid rgba(255, 47, 156, 0.30);
  border-radius: 50%;
}

.relic-sigil .sigil-ring.inner {
  inset: 30%;
  border: 1px solid rgba(255, 47, 156, 0.18);
  border-radius: 50%;
}

.relic-sigil .sigil-diamond {
  left: 50%;
  top: 24%;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 47, 156, 0.72);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 47, 156, 0.18);
}

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

.relic-sigil .anime-girl {
  left: 50%;
  bottom: 9px;
  width: 62px;
  height: 74px;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(255, 47, 156, 0.18));
  animation: girlGlitchFloat 5s ease-in-out infinite;
}

.relic-sigil .girl-head {
  left: 50%;
  top: 8px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 47, 156, 0.82);
  box-shadow: 0 0 10px rgba(255, 47, 156, 0.20);
}

.relic-sigil .girl-hair.back {
  left: 50%;
  top: 4px;
  width: 36px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 48% 48% 44% 44%;
  background: rgba(255, 47, 156, 0.22);
  filter: blur(1px);
}

.relic-sigil .girl-hair.front {
  left: 50%;
  top: 8px;
  width: 30px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 45% 45% 60% 60%;
  border-top: 2px solid rgba(255, 47, 156, 0.72);
  border-left: 1px solid rgba(255, 47, 156, 0.28);
  border-right: 1px solid rgba(255, 47, 156, 0.28);
  clip-path: polygon(0 0, 100% 0, 82% 70%, 58% 100%, 45% 62%, 22% 100%, 0 68%);
}

.relic-sigil .girl-body {
  left: 50%;
  top: 27px;
  width: 34px;
  height: 38px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
      rgba(255, 47, 156, 0.82),
      rgba(255, 47, 156, 0.58));
  clip-path: polygon(50% 0%, 72% 12%, 88% 42%, 100% 100%, 0% 100%, 12% 42%, 28% 12%);
  box-shadow: 0 0 12px rgba(255, 47, 156, 0.08);
}

.relic-sigil .girl-eye {
  top: 18px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(10, 0, 8, 0.95);
  box-shadow: 0 0 4px rgba(255, 47, 156, 0.55);
}

.relic-sigil .girl-eye.left {
  left: calc(50% - 6px);
}

.relic-sigil .girl-eye.right {
  left: calc(50% + 3px);
}

/* ECHO LOADING */

.relic-sigil.is-loading {
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 47, 156, 0.12) 0 1px,
      transparent 1px 7px),
    radial-gradient(circle at center, rgba(255, 47, 156, 0.18), transparent 58%),
    #090007;
}

.relic-sigil.is-loading .anime-girl {
  opacity: 0.5;
  animation:
    girlGlitchFloat 1.2s ease-in-out infinite,
    sigilLoadingPulse 1.1s steps(2, end) infinite;
}

.relic-sigil.is-loading .sigil-ring.outer {
  animation: sigilLoadingRotate 3.6s linear infinite;
}

.relic-sigil.is-loading .sigil-ring.inner {
  animation: sigilLoadingRotate 2.4s linear reverse infinite;
}

.echo-copy.is-loading h2 {
  animation: echoLoadingBlink 1.1s steps(2, end) infinite;
}

.echo-copy.is-loading p::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

/* RELIC MOOD VARIATIONS */

.relic-sigil[data-mood="pride"] {
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.22), transparent 56%),
    radial-gradient(circle at 50% 28%, rgba(255, 47, 156, 0.20), transparent 42%),
    #090008;
}

.relic-sigil[data-mood="pride"] .sigil-diamond {
  top: 17%;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 47, 156, 0.95);
}

.relic-sigil[data-mood="wrath"] {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 47, 156, 0.16) 0 2px,
      transparent 2px 10px),
    radial-gradient(circle at 50% 50%, rgba(255, 47, 156, 0.13), transparent 56%),
    #090007;
}

.relic-sigil[data-mood="wrath"] .sigil-ring.outer {
  border-radius: 0;
  transform: rotate(45deg);
  inset: 20%;
}

.relic-sigil[data-mood="envy"] {
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 47, 156, 0.20) 45% 47%, transparent 48%),
    linear-gradient(45deg, transparent 0 44%, rgba(255, 47, 156, 0.12) 45% 47%, transparent 48%),
    radial-gradient(circle at 50% 45%, rgba(255, 47, 156, 0.10), transparent 58%),
    #080007;
}

.relic-sigil[data-mood="envy"] .sigil-ring.outer {
  inset: 13%;
  border-radius: 4px;
  transform: rotate(45deg);
}

.relic-sigil[data-mood="sloth"] {
  background:
    radial-gradient(circle at 42% 44%, rgba(255, 47, 156, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(255, 47, 156, 0.05), transparent),
    #090008;
}

.relic-sigil[data-mood="sloth"] .anime-girl {
  transform: translateX(-50%) scale(0.92);
  opacity: 0.88;
}

.relic-sigil[data-mood="greed"] {
  background:
    repeating-radial-gradient(circle at center,
      rgba(255, 47, 156, 0.15) 0 1px,
      transparent 1px 10px),
    radial-gradient(circle at 50% 42%, rgba(255, 47, 156, 0.12), transparent 60%),
    #090008;
}

.relic-sigil[data-mood="lust"] {
  background:
    conic-gradient(from 45deg,
      transparent,
      rgba(255, 47, 156, 0.24),
      transparent,
      rgba(255, 47, 156, 0.10),
      transparent),
    radial-gradient(circle at 50% 42%, rgba(255, 47, 156, 0.13), transparent 60%),
    #090008;
}

.relic-sigil[data-mood="gluttony"] {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0 21%, rgba(255, 47, 156, 0.26) 22%, transparent 34%),
    repeating-linear-gradient(to right,
      rgba(255, 47, 156, 0.10) 0 1px,
      transparent 1px 7px),
    #040004;
}

.relic-sigil[data-mood="gluttony"] .anime-girl {
  transform: translateX(-50%) scale(0.86);
  opacity: 0.72;
  filter:
    drop-shadow(0 0 12px rgba(255, 47, 156, 0.22)) blur(0.2px);
}

.relic-sigil[data-mood="loading"] .anime-girl {
  opacity: 0.42;
}

/* ECHO COPY */

.echo-panel h2 {
  color: var(--pink);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.echo-panel p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(247, 237, 244, 0.72);
}

/* SIGNAL */

.signal-panel {
  margin-top: 32px;
  color: var(--pink);
  font-size: 13px;
  letter-spacing: 2px;
}

.bars {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.bars span {
  display: block;
  width: 8px;
  height: 22px;
  background: var(--pink);
  opacity: 0.18;
  transition:
    opacity 0.35s ease,
    height 0.35s ease,
    box-shadow 0.35s ease;
}

.bars span:nth-child(2n) {
  height: 16px;
  opacity: 0.55;
}

.connection-label {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 237, 244, 0.45);
}

.bars span.active {
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 47, 156, 0.65);
}

.bars span.partial {
  opacity: 0.55;
}

/* CENTER PANEL */

.center-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 820px;
  height: 920px;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.glyph-bg {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 3;
  opacity: 0.22;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 14px rgba(255, 47, 156, 0.32)) drop-shadow(0 0 42px rgba(255, 47, 156, 0.16));
  pointer-events: none;
}

.inner-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 47, 156, 0.25);
  border-radius: 50%;
}

.inner-ring.second {
  inset: 25%;
  opacity: 0.75;
}

.character-image {
  position: absolute;
  left: 50%;
  bottom: -1450px;
  height: 2700px;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
  z-index: 7;
  filter:
    drop-shadow(0 0 18px rgba(255, 47, 156, 0.34)) drop-shadow(0 0 42px rgba(255, 47, 156, 0.18));
  pointer-events: none;
}

.center-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 2000px;
  height: 1350px;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.10) 18%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0.68) 72%,
      rgba(0, 0, 0, 0.96) 100%);
  filter: blur(8px);
}

.center-coordinates {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  width: 100%;
  color: var(--pink);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 3px;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

#crystagella-coordinates,
#crystagella-location,
#crystagella-sub-location {
  display: inline-block;
}

#crystagella-sub-location {
  margin-top: 2px;
  color: rgba(255, 237, 244, 0.58);
  font-size: 11px;
  letter-spacing: 3px;
}

.copyright {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 237, 244, 0.45);
}

/* RIGHT PANEL */

.right-panel {
  position: absolute;
  z-index: 10;
  right: 100px;
  top: 138px;
  width: 400px;
}

.latest-panel,
.system-panel,
.loop-panel {
  border: 1px solid rgba(255, 47, 156, 0.36);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(3px);
  contain: paint;
}

.latest-panel {
  padding: 30px;
  margin-bottom: 38px;
}

.latest-panel h2,
.system-panel h2 {
  color: var(--pink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 26px;
}

.cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 47, 156, 0.45);
  background: #050005;
  margin-bottom: 26px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.cover-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.cover-image:not([src]) {
  display: none;
}

.cover-box::after {
  content: "NO COVER SIGNAL";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 47, 156, 0.65);
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
}

.release-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 20px;
}

.release-title span {
  font-size: 48px;
  letter-spacing: 10px;
}

.release-title small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 24px;
}

.latest-panel p {
  color: rgba(247, 237, 244, 0.78);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 26px;
}

.listen-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 47, 156, 0.6);
  color: var(--pink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 1;
}

.listen-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 47, 156, 0.22),
      transparent);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.listen-button:hover {
  background: rgba(255, 47, 156, 0.12);
  color: #fff;
  border-color: rgba(255, 47, 156, 0.95);
  box-shadow:
    0 0 18px rgba(255, 47, 156, 0.28),
    inset 0 0 18px rgba(255, 47, 156, 0.08);
}

.listen-button:hover::before {
  transform: translateX(120%);
}

.listen-button span {
  position: relative;
  z-index: 2;
}

.listen-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

/* LATEST TRANSMISSION LOADING */

.latest-panel.is-loading .cover-box {
  position: relative;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 47, 156, 0.16) 0 1px,
      transparent 1px 8px),
    radial-gradient(circle at center, rgba(255, 47, 156, 0.16), transparent 60%),
    #080006;
}

.latest-panel.is-loading .cover-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(255, 47, 156, 0.22),
      transparent);
  transform: translateX(-120%);
  animation: latestCoverScan 1.3s linear infinite;
}

.latest-panel.is-loading .cover-box::after {
  content: "LOADING TRANSMISSION";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  color: var(--pink);
  font-size: 10px;
  letter-spacing: 2px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0.78;
}

.latest-panel.is-loading .cover-image {
  opacity: 0;
}

.latest-panel.is-loading .release-title,
.latest-panel.is-loading #latest-description,
.latest-panel.is-loading .listen-button {
  animation: latestTextBlink 1s steps(2, end) infinite;
}

@keyframes latestCoverScan {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes latestTextBlink {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* SYSTEM */

.system-panel {
  padding: 26px;
  margin-bottom: 32px;
}

.system-panel p {
  font-size: 13px;
  line-height: 2;
  color: rgba(247, 237, 244, 0.72);
}

.system-panel a {
  color: rgba(255, 47, 156, 0.6);
  text-decoration: none;
}

.system-panel a:hover {
  color: var(--pink);
}

.icon-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(247, 237, 244, 0.65);
  font-size: 22px;
}

/* RUANG BAWAH FREQUENCY TERMINAL */

.frequency-terminal {
  height: 112px;
  overflow: hidden;
  padding: 2px 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(247, 237, 244, 0.76);
}

.terminal-line {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: terminalLineIn 0.28s steps(2, end);
}

.terminal-line::before {
  content: ">";
  color: var(--pink);
  margin-right: 6px;
  opacity: 0.85;
}

.terminal-line a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
}

.terminal-line a:hover {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 47, 156, 0.85),
    0 0 14px rgba(255, 47, 156, 0.35);
}

.terminal-code {
  color: rgba(247, 237, 244, 0.86);
}

.terminal-cursor::after {
  content: "_";
  color: var(--pink);
  animation: terminalCursorBlink 0.8s steps(2, end) infinite;
}

@keyframes terminalLineIn {
  0% {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes terminalCursorBlink {

  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

/* LOOP */

.loop-panel {
  padding: 24px;
  color: var(--pink);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.barcode {
  margin-top: 12px;
  height: 28px;
  background: repeating-linear-gradient(90deg,
      var(--pink) 0 2px,
      transparent 2px 6px,
      var(--pink) 6px 7px,
      transparent 7px 12px);
  opacity: 0.8;
}

/* FOOTER */

.footerline {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 34px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  color: var(--pink);
  font-size: 13px;
  letter-spacing: 3px;
}

/* GLITCH SYSTEM */

.glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 47, 156, 0.18) 12%,
      transparent 13%,
      transparent 38%,
      rgba(255, 255, 255, 0.08) 39%,
      transparent 41%,
      transparent 68%,
      rgba(255, 47, 156, 0.12) 69%,
      transparent 70%);
  mix-blend-mode: screen;
}

body.is-glitching .glitch-overlay {
  animation: screenGlitch 0.18s steps(2, end);
}

body.is-glitching .glitch-logo {
  animation: logoGlitch 0.1s steps(2, end);
}

body.is-glitching .glitch-character {
  animation: characterGlitch 0.12s steps(2, end);
}

body.is-glitching .latest-panel,
body.is-glitching .system-panel,
body.is-glitching .menu-panel,
body.is-glitching .loop-panel {
  animation: panelGlitch 0.12s steps(2, end);
}

@keyframes screenGlitch {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  30% {
    opacity: 0.28;
    transform: translate(-2px, 1px);
  }

  60% {
    opacity: 0.18;
    transform: translate(2px, -1px);
  }

  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes logoGlitch {
  0% {
    transform: translate(0, 0);
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 5px rgba(255, 47, 156, 0.42));
  }

  35% {
    transform: translate(-2px, 2px);
    filter:
      drop-shadow(6px 0 0 rgba(255, 47, 156, 0.65)) drop-shadow(-6px 0 0 rgba(124, 247, 255, 0.35));
  }

  70% {
    transform: translate(1px, -2px);
    filter:
      drop-shadow(-5px 0 0 rgba(255, 47, 156, 0.55)) drop-shadow(5px 0 0 rgba(124, 247, 255, 0.3));
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes characterGlitch {
  0% {
    transform: translateX(-50%);
    filter:
      drop-shadow(0 0 24px rgba(255, 47, 156, 0.45)) drop-shadow(0 0 70px rgba(255, 47, 156, 0.25));
  }

  45% {
    transform: translateX(calc(-50% - 2px));
    filter:
      drop-shadow(3px 0 0 rgba(255, 47, 156, 0.18)) drop-shadow(-3px 0 0 rgba(124, 247, 255, 0.12)) drop-shadow(0 0 55px rgba(255, 47, 156, 0.2));
  }

  100% {
    transform: translateX(-50%);
    filter:
      drop-shadow(0 0 24px rgba(255, 47, 156, 0.45)) drop-shadow(0 0 70px rgba(255, 47, 156, 0.25));
  }
}

@keyframes panelGlitch {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  35% {
    transform: translate(2px, -2px);
    opacity: 0.82;
  }

  70% {
    transform: translate(-1px, 2px);
    opacity: 1;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes sigilNoiseShift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(12px);
  }
}

@keyframes girlGlitchFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-2px);
  }
}

@keyframes sigilLoadingPulse {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.75;
  }
}

@keyframes sigilLoadingRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes echoLoadingBlink {

  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}

@keyframes loadingDots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

/* ARCHIVE WINDOW / MODAL */

.archive-window-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 47, 156, 0.10), transparent 42%),
    rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.archive-window-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.archive-window {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(880px, calc(100vw - 52px));
  max-height: min(780px, calc(100svh - 70px));
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

.archive-window.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.archive-window-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 156, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.08), rgba(0, 0, 0, 0.46)),
    rgba(3, 0, 3, 0.92);
  box-shadow:
    0 0 34px rgba(255, 47, 156, 0.20),
    inset 0 0 34px rgba(255, 47, 156, 0.05);
}

.archive-window-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 47, 156, 0.14);
  pointer-events: none;
}

.archive-window-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px 26px;
  border-bottom: 1px solid rgba(255, 47, 156, 0.24);
}

.archive-window-kicker {
  margin-bottom: 10px;
  color: rgba(255, 237, 244, 0.52);
  font-size: 14px;
  letter-spacing: 3px;
}

.archive-window-header h2 {
  color: var(--pink);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 6px;
}

.archive-window-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 47, 156, 0.48);
  background: rgba(0, 0, 0, 0.22);
  color: var(--pink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.archive-window-close:hover {
  background: rgba(255, 47, 156, 0.14);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 47, 156, 0.28);
}

.archive-window-body {
  position: relative;
  z-index: 2;
  max-height: 540px;
  overflow-y: auto;
  padding: 32px 38px 38px;
  color: rgba(247, 237, 244, 0.78);
  font-size: 17px;
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 47, 156, 0.75) rgba(255, 47, 156, 0.08);
}

.archive-window-body::-webkit-scrollbar {
  width: 8px;
}

.archive-window-body::-webkit-scrollbar-track {
  background: rgba(255, 47, 156, 0.08);
  border-left: 1px solid rgba(255, 47, 156, 0.18);
}

.archive-window-body::-webkit-scrollbar-thumb {
  background: rgba(255, 47, 156, 0.72);
  border: 1px solid rgba(255, 237, 244, 0.18);
  box-shadow: 0 0 10px rgba(255, 47, 156, 0.35);
}

.archive-window-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 47, 156, 0.95);
}

.archive-window-body h3 {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 3px;
}

.archive-window-body p {
  margin-bottom: 18px;
}

.archive-window-body ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  list-style: none;
}

.archive-window-body li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 47, 156, 0.18);
  background: rgba(255, 47, 156, 0.045);
}

.archive-window-body a {
  color: var(--pink);
  text-decoration: none;
}

.archive-window-body a:hover {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 47, 156, 0.8),
    0 0 18px rgba(255, 47, 156, 0.3);
}

.archive-window-footer {
  position: relative;
  z-index: 2;
  padding: 18px 32px;
  border-top: 1px solid rgba(255, 47, 156, 0.20);
  color: rgba(255, 47, 156, 0.78);
  font-size: 14px;
  letter-spacing: 2px;
}

body.has-archive-window .left-panel,
body.has-archive-window .center-panel,
body.has-archive-window .right-panel {
  filter: blur(1.5px) brightness(0.72);
}

/* DATABASE WINDOW CONTENT */

.window-loading,
.window-empty {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 18px;
  color: rgba(247, 237, 244, 0.74);
}

.window-loading p::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

.window-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 47, 156, 0.35);
  color: var(--pink);
  background: rgba(255, 47, 156, 0.055);
  font-size: 12px;
  letter-spacing: 3px;
  line-height: 1;
}

.window-subtitle {
  margin: -4px 0 8px;
  color: rgba(255, 237, 244, 0.64);
  font-size: 13px;
  letter-spacing: 2px;
}

.window-meta {
  display: block;
  margin: 4px 0 0;
  color: rgba(255, 237, 244, 0.46);
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.window-muted {
  color: rgba(247, 237, 244, 0.54);
}

.manifest-bio p {
  max-width: 680px;
  color: rgba(247, 237, 244, 0.78);
}

.manifest-bio .manifest-lead,
.manifest-bio p:first-of-type {
  color: rgba(255, 237, 244, 0.92);
  font-size: 18px;
}

.window-release-card,
.window-stem-card,
.window-list-item {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 47, 156, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.045), rgba(0, 0, 0, 0.10)),
    rgba(255, 47, 156, 0.025);
}

.window-release-card+.window-release-card,
.window-stem-card+.window-stem-card,
.window-list-item+.window-list-item {
  margin-top: 18px;
}


.window-release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 270px);
  gap: 24px;
  align-items: start;
}

.window-release-copy {
  min-width: 0;
}

.window-release-copy .window-link-row {
  margin-top: 18px;
}

.window-release-cover-column {
  min-width: 0;
}

.window-release-cover-column .window-release-image-wrap {
  margin: 0;
}

.window-release-cover-column .window-release-image {
  width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.window-release-header,
.window-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.window-release-image-wrap,
.window-stem-image-wrap,
.window-relic-image-wrap {
  margin: 18px 0;
  border: 1px solid rgba(255, 47, 156, 0.24);
  background: #050005;
  overflow: hidden;
}

.window-release-image,
.window-stem-image,
.window-relic-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.window-release-image-wrap,
.window-stem-image-wrap {
  display: grid;
  place-items: center;
}

.window-release-image,
.window-stem-image {
  aspect-ratio: 1 / 1;
}

.archive-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 20px;
  border: 1px solid rgba(255, 47, 156, 0.35);
  background: #050005;
  overflow: hidden;
}

.archive-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.window-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.window-pill-link,
.window-pill,
.window-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 47, 156, 0.42);
  color: var(--pink);
  background: rgba(0, 0, 0, 0.18);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.window-pill-link:hover,
.window-back-button:hover {
  background: rgba(255, 47, 156, 0.13);
  color: #fff;
  border-color: rgba(255, 47, 156, 0.85);
  box-shadow: 0 0 14px rgba(255, 47, 156, 0.22);
}

.window-pill {
  color: rgba(255, 237, 244, 0.68);
  border-color: rgba(255, 47, 156, 0.22);
}

.window-back-button {
  margin-bottom: 20px;
  cursor: pointer;
}

.window-file-list,
.relic-certificate-list,
.relic-custody-list {
  margin-top: 18px;
}

.window-file-list li,
.relic-certificate-list li,
.relic-custody-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.window-file-list p,
.relic-certificate-list p,
.relic-custody-list p {
  margin: 8px 0 0;
}

.window-owner-link {
  color: var(--pink);
}

/* RELIC REGISTRY */

.relic-card-list {
  display: grid;
  gap: 14px;
}

.window-relic-button {
  width: 100%;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.055), rgba(0, 0, 0, 0.16)),
    rgba(255, 47, 156, 0.025);
  color: rgba(247, 237, 244, 0.78);
  font-family: "IBM Plex Mono", monospace;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.window-relic-button:hover {
  background: rgba(255, 47, 156, 0.10);
  border-color: rgba(255, 47, 156, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 47, 156, 0.16);
}

.window-relic-thumb {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background: #050005;
  color: rgba(255, 47, 156, 0.46);
  font-size: 10px;
  letter-spacing: 2px;
  overflow: hidden;
}

.window-relic-thumb img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.window-relic-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.window-relic-copy strong {
  color: var(--pink);
  font-size: 18px;
  letter-spacing: 3px;
}

.window-relic-copy em {
  color: rgba(255, 237, 244, 0.64);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 2px;
}

.window-relic-copy small {
  color: rgba(255, 237, 244, 0.46);
  font-size: 10px;
  letter-spacing: 2px;
}

.window-relic-copy span {
  color: rgba(247, 237, 244, 0.70);
  font-size: 13px;
  line-height: 1.6;
}

.relic-detail h3:not(:first-of-type) {
  margin-top: 28px;
}

.relic-certificate-list strong,
.relic-custody-list strong,
.window-file-list strong {
  color: rgba(255, 237, 244, 0.90);
}

/* DESKTOP SIDE PANEL SCROLL */

@media (min-width: 901px) {

  html,
  body {
    overflow: hidden;
  }

  .left-panel,
  .right-panel {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .left-panel {
    max-height: calc((100svh / var(--desktop-scale)) - 210px);
    padding-left: 0;
    padding-right: 30px;
  }

  .right-panel {
    max-height: calc((100svh / var(--desktop-scale)) - 190px);
    direction: rtl;
    padding-left: 30px;
    padding-right: 0;
  }

  .right-panel>* {
    direction: ltr;
  }

  .left-panel.is-scrolling,
  .right-panel.is-scrolling {
    scrollbar-color: rgba(255, 47, 156, 0.60) rgba(255, 47, 156, 0.03);
  }

  .left-panel::-webkit-scrollbar,
  .right-panel::-webkit-scrollbar {
    width: 4px;
  }

  .left-panel::-webkit-scrollbar-track,
  .right-panel::-webkit-scrollbar-track,
  .left-panel::-webkit-scrollbar-thumb,
  .right-panel::-webkit-scrollbar-thumb {
    background: transparent;
  }

  .left-panel.is-scrolling::-webkit-scrollbar-track,
  .right-panel.is-scrolling::-webkit-scrollbar-track {
    background: rgba(255, 47, 156, 0.03);
  }

  .left-panel.is-scrolling::-webkit-scrollbar-thumb,
  .right-panel.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 47, 156, 0.60);
  }
}

/* TABLET BOTTOM BLACK FADE */

@media (min-width: 901px) and (max-width: 1200px) {
  .site::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    z-index: 9;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.42) 24%,
        rgba(0, 0, 0, 0.82) 58%,
        rgba(0, 0, 0, 1) 100%);
  }

  .left-panel,
  .right-panel,
  .topbar,
  .footerline {
    z-index: 20;
  }

  .center-coordinates {
    z-index: 21;
  }
}

/* MOBILE */

@media (max-width: 900px) {

  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      radial-gradient(circle at 50% 28%, rgba(255, 0, 135, 0.24), transparent 34%),
      radial-gradient(circle at 50% 62%, rgba(255, 30, 150, 0.10), transparent 46%),
      linear-gradient(180deg, #090006 0%, #000000 100%);
  }

  body.is-preloading {
    overflow: hidden;
  }

  .site {
    width: 100vw;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    padding: 84px 22px 42px;
    transform: none;
    background:
      radial-gradient(circle at 50% 28%, rgba(255, 0, 135, 0.24), transparent 34%),
      radial-gradient(circle at 50% 62%, rgba(255, 30, 150, 0.10), transparent 46%),
      linear-gradient(180deg, #090006 0%, #000000 100%);
  }

  .mobile-header-fade {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 92px;
    z-index: 100;
    pointer-events: none;
    opacity: 1;
    background: linear-gradient(to bottom,
        rgba(3, 0, 3, 0.98) 0%,
        rgba(3, 0, 3, 0.86) 42%,
        rgba(3, 0, 3, 0.42) 72%,
        rgba(3, 0, 3, 0) 100%);
  }

  .site-loader {
    padding: 22px;
  }

  .loader-frame {
    padding: 36px 24px 30px;
  }

  .loader-symbols {
    gap: 22px;
    font-size: 22px;
    margin-bottom: 22px;
  }

  .loader-moon {
    font-size: 38px;
  }

  .loader-logo {
    width: min(320px, 90%);
  }

  .loader-kicker {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .loader-terminal {
    font-size: 10px;
  }

  .loader-status {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .topbar {
    position: fixed;
    top: 18px;
    left: 22px;
    right: 22px;
    z-index: 120;
  }

  .domain {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .top-symbols {
    gap: 16px;
    font-size: 22px;
  }

  .top-social-links {
    gap: 10px;
  }

  .top-social-links a {
    font-size: 13px;
    padding: 0;
    min-width: auto;
    height: auto;
  }

  .binary-field {
    opacity: 0.72;
  }

  .matrix-column {
    font-size: 16px;
    line-height: 1.08;
  }

  .left-panel,
  .center-panel,
  .right-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .left-panel {
    display: contents;
  }

  .title-area {
    position: relative;
    z-index: 8;
    text-align: center;
    margin: 0 0 28px;
    order: 2;
  }

  .moon-mark.alchemy-air-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .moon-mark.alchemy-air-mark svg {
    width: 44px;
    height: 44px;
    margin: 0 auto;
  }

  .main-logo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .moon-mark {
    font-size: 34px;
    margin-bottom: 12px;
  }

  .title-area p {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .center-panel {
    height: 58vh;
    min-height: 480px;
    margin-bottom: 24px;
  }

  .glyph-bg {
    width: 130vw;
    height: 130vw;
    top: 48%;
    opacity: 0.18;
  }

  .character-image {
    left: 50%;
    bottom: -10%;
    height: 115%;
    width: auto;
    transform: translateX(-50%);
  }

  .center-panel::after {
    width: 120vw;
    height: 260px;
    bottom: -6%;
  }

  .center-coordinates {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 1%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 12px;
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: 1.6px;
    opacity: 0.92;
  }

  #crystagella-sub-location {
    font-size: 8px;
    letter-spacing: 1.8px;
    color: rgba(255, 237, 244, 0.52);
  }

  .center-coordinates .copyright {
    display: inline-block;
    margin-top: 8px;
    font-size: 7px;
    line-height: 1.6;
    letter-spacing: 1px;
    color: rgba(255, 237, 244, 0.42);
  }

  .menu-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-bottom: 24px;
  }

  .menu-panel button {
    padding: 18px;
    grid-template-columns: 50px 1fr 24px;
  }

  .menu-panel .number {
    font-size: 24px;
  }

  .menu-panel .name {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .menu-text {
    gap: 10px;
  }

  .signal-panel {
    display: none;
  }

  .right-panel {
    z-index: 10;
  }

  .latest-panel,
  .system-panel,
  .loop-panel {
    margin-bottom: 20px;
  }

  .release-title span {
    font-size: 34px;
    letter-spacing: 6px;
  }

  .release-title small {
    font-size: 18px;
  }

  .frequency-terminal {
    font-size: 12px;
  }

  .archive-window {
    width: min(100vw - 28px, 880px);
    max-height: calc(100svh - 42px);
  }

  .archive-window-header {
    padding: 24px 22px 18px;
  }

  .archive-window-kicker {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .archive-window-header h2 {
    font-size: 28px;
    letter-spacing: 5px;
  }

  .archive-window-close {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .archive-window-body {
    max-height: calc(100svh - 190px);
    padding: 24px 22px 28px;
    font-size: 14px;
    line-height: 1.75;
  }

  .archive-window-body h3,
  .window-tag {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .archive-window-footer {
    padding: 16px 22px;
    font-size: 11px;
  }

  .manifest-bio p {
    font-size: 14px;
    line-height: 1.75;
  }

  .manifest-bio .manifest-lead,
  .manifest-bio p:first-of-type {
    font-size: 16px;
  }

  .window-release-header,
  .window-list-item,
  .window-file-list li,
  .relic-certificate-list li,
  .relic-custody-list li {
    grid-template-columns: 1fr;
  }


  .window-release-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .window-release-cover-column {
    order: 2;
  }

  .window-relic-button {
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .window-relic-thumb {
    min-height: 82px;
  }

  .window-relic-thumb img {
    min-height: 82px;
  }

  .window-relic-copy strong {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .window-link-row {
    gap: 8px;
  }

  .window-pill-link,
  .window-pill,
  .window-back-button {
    min-height: 32px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .footerline {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
  .site {
    padding-left: 18px;
    padding-right: 18px;
  }

  .latest-panel,
  .system-panel,
  .loop-panel {
    padding: 22px;
  }

  .release-title {
    flex-wrap: wrap;
    gap: 8px;
  }

  .release-title span {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .release-title small {
    font-size: 16px;
  }

  .listen-button {
    padding: 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .center-coordinates {
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  #crystagella-sub-location {
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .menu-panel button {
    padding: 16px;
    grid-template-columns: 44px 1fr 20px;
  }

  .menu-panel .number {
    font-size: 22px;
  }

  .menu-panel .name {
    font-size: 14px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .matrix-column,
  .sigil-noise,
  .anime-girl,
  .terminal-line,
  .glitch-logo,
  .glitch-character,
  .loader-frame::after,
  .loader-moon,
  .latest-panel.is-loading .cover-box::before,
  .latest-panel.is-loading .release-title,
  .latest-panel.is-loading #latest-description,
  .latest-panel.is-loading .listen-button,
  .window-loading p::after {
    animation: none !important;
  }

  .binary-field {
    opacity: 0.35;
  }
}

/* =========================================
   DESKTOP WINDOW SCALE UP ONLY
   - bigger modal/window
   - increase text size by 2px
   - mobile unchanged
========================================= */

@media (min-width: 901px) {
  .archive-window {
    width: min(1140px, calc(100vw - 64px));
    max-height: min(860px, calc(100svh - 56px));
  }

  .archive-window-header {
    padding: 36px 40px 26px;
  }

  .archive-window-kicker {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .archive-window-header h2 {
    font-size: 30px;
    letter-spacing: 6px;
  }

  .archive-window-close {
    width: 46px;
    height: 46px;
    font-size: 32px;
  }

  .archive-window-body {
    max-height: 620px;
    padding: 34px 40px 38px;
    font-size: 16px;
    line-height: 1.8;
  }

  .archive-window-body h3,
  .window-tag {
    font-size: 17px;
    letter-spacing: 3px;
  }

  .archive-window-body p,
  .manifest-bio p,
  .contact-card p,
  .stem-card p,
  .relic-card p,
  .certificate-card p,
  .custody-log-item p,
  .archive-release-card p {
    font-size: 16px;
    line-height: 1.85;
  }

  .archive-window-footer {
    padding: 20px 40px;
    font-size: 13px;
    letter-spacing: 2px;
  }
}

/* =========================================
   DESKTOP ARCHIVE COVER SMALLER
========================================= */

@media (min-width: 901px) {
  .archive-release-cover,
  .archive-release-image,
  .archive-release-thumb,
  .archive-window .cover-box {
    width: min(220px, 100%);
    max-width: 220px;
    margin-bottom: 18px;
  }

  .archive-release-card {
    gap: 20px;
  }

  .archive-release-media {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

/* =========================================
   RELIC BACK BUTTON BOTTOM
========================================= */

.window-back-button-bottom {
  margin-top: 26px;
}

/* =========================================
   DESKTOP WINDOW SMALL TEXT + STATUS BADGE UP 2PX
   Relic status: SEALED / CLAIMED / DORMANT
   Contact labels/value also +2px
========================================= */

@media (min-width: 901px) {
  /* RELIC STATUS BADGE: SEALED / CLAIMED / DORMANT */
  .relic-status,
  .relic-status-badge,
  .certificate-status,
  .certificate-badge,
  .status-badge,
  .holder-status,
  .relic-certificate-status {
    font-size: 13px;
    letter-spacing: 3px;
  }

  /* RELIC CERTIFICATE META TEXT */
  .certificate-card small,
  .certificate-card .certificate-meta,
  .certificate-card .certificate-code,
  .certificate-card .verification-code,
  .certificate-card .acquired-date,
  .relic-certificate small,
  .relic-certificate .certificate-meta,
  .relic-certificate .certificate-code,
  .relic-certificate .verification-code,
  .relic-certificate .acquired-date {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 2.4px;
  }

  /* RELIC EDITION TITLE: 1 / 3 — Masdika */
  .certificate-card h4,
  .relic-certificate h4,
  .certificate-owner,
  .relic-owner {
    font-size: 18px;
    line-height: 1.5;
  }

  /* CONTACT WINDOW LABELS */
  .contact-card h3,
  .contact-card h4,
  .contact-label,
  .contact-type {
    font-size: 17px;
    letter-spacing: 3px;
  }

  /* CONTACT VALUE: email, @instagram, etc */
  .contact-card p,
  .contact-card a,
  .contact-value,
  .contact-copy-text,
  .contact-description {
    font-size: 16px;
    line-height: 1.85;
  }

  /* CONTACT META / SMALL TEXT */
  .contact-card small,
  .contact-meta {
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 2px;
  }
}

@media (min-width: 901px) {
  .archive-window-body [class*="status"],
  .archive-window-body [class*="badge"] {
    font-size: 13px;
  }
}

/* =========================================
   RELIC DETAIL HERO LAYOUT
   image left, title/description right
========================================= */

.relic-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.relic-hero {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.045), rgba(0, 0, 0, 0.12)),
    rgba(255, 47, 156, 0.025);
}

.relic-hero-media .window-relic-image-wrap {
  margin: 0;
}

.relic-hero-media .window-relic-image {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.relic-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.relic-hero-copy .window-tag {
  margin-bottom: 20px;
}

.relic-hero-copy h3 {
  margin: 0 0 12px;
}

.relic-hero-copy .window-subtitle {
  margin: 0 0 14px;
}

.relic-type-line {
  margin-bottom: 28px;
}

.relic-description,
.relic-lore {
  max-width: 560px;
}

.relic-description {
  color: rgba(255, 237, 244, 0.84);
}

.relic-lore {
  color: rgba(247, 237, 244, 0.72);
}

.relic-image-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: rgba(255, 47, 156, 0.54);
  letter-spacing: 3px;
}

/* desktop only side-by-side */
@media (min-width: 901px) {
  .relic-hero {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 34px;
    align-items: center;
  }

  .relic-hero-copy h3 {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .relic-hero-copy .window-subtitle {
    font-size: 17px;
    letter-spacing: 3px;
  }

  .relic-type-line {
    font-size: 13px;
    letter-spacing: 2.5px;
  }

  .relic-description,
  .relic-lore {
    font-size: 16px;
    line-height: 1.85;
  }
}

/* mobile stays stacked */
@media (max-width: 900px) {
  .relic-hero {
    display: block;
    padding: 16px;
  }

  .relic-hero-media {
    margin-bottom: 20px;
  }
}

/* =========================================
   RELIC CARD IMAGE - NO EXTRA BLACK FRAME
========================================= */

.relic-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.relic-hero-media .window-relic-image-wrap,
.window-relic-image-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.relic-hero-media .window-relic-image,
.window-relic-image {
  display: block;
  width: auto;
  max-width: 340px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* =========================================
   RELIC STATUS SYNTAX COLORS
   CLAIMED / SEALED / DORMANT / ETC
========================================= */

.status-badge,
.certificate-status,
.holder-status,
.relic-status,
.relic-certificate-status {
  border: 1px solid currentColor;
  color: rgba(255, 47, 156, 0.88);
  background: rgba(255, 47, 156, 0.045);
  text-shadow: 0 0 8px currentColor;
}

/* Green / ownership active */
.status-badge[data-status="claimed"],
.certificate-status[data-status="claimed"],
.holder-status[data-status="claimed"] {
  color: #52ff9a;
  background: rgba(82, 255, 154, 0.06);
}

/* Purple / locked sacred */
.status-badge[data-status="sealed"],
.certificate-status[data-status="sealed"],
.holder-status[data-status="sealed"] {
  color: #c77dff;
  background: rgba(199, 125, 255, 0.07);
}

/* Gray / not yet claimed */
.status-badge[data-status="dormant"],
.certificate-status[data-status="dormant"],
.holder-status[data-status="dormant"] {
  color: #8f8f9a;
  background: rgba(180, 180, 200, 0.055);
  text-shadow: none;
}

/* Blue / moved ownership */
.status-badge[data-status="transferred"],
.certificate-status[data-status="transferred"],
.holder-status[data-status="transferred"] {
  color: #4dd8ff;
  background: rgba(77, 216, 255, 0.06);
}

/* Amber / warning */
.status-badge[data-status="lost"],
.certificate-status[data-status="lost"],
.holder-status[data-status="lost"] {
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.07);
}

/* Cyan-green / restored */
.status-badge[data-status="found"],
.certificate-status[data-status="found"],
.holder-status[data-status="found"] {
  color: #5dffe8;
  background: rgba(93, 255, 232, 0.06);
}

/* Red / invalidated */
.status-badge[data-status="voided"],
.certificate-status[data-status="voided"],
.holder-status[data-status="voided"] {
  color: #ff4f6d;
  background: rgba(255, 79, 109, 0.075);
}

/* Pink / stored permanently */
.status-badge[data-status="archived"],
.certificate-status[data-status="archived"],
.holder-status[data-status="archived"] {
  color: #ff2f9c;
  background: rgba(255, 47, 156, 0.07);
}

.status-badge::before,
.certificate-status::before,
.holder-status::before {
  content: ":: ";
  opacity: 0.65;
}

.status-badge::after,
.certificate-status::after,
.holder-status::after {
  content: " //";
  opacity: 0.45;
}

.seo-readable-copy {
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(247, 237, 244, 0.58);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 1px;
}


/* =========================
   MOBILE RELIC CARD SIZE FIX
========================= */

@media (max-width: 900px) {
  .relic-hero {
    padding: 14px;
    overflow: hidden;
  }

  .relic-hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    overflow: hidden;
  }

  .relic-hero-media .window-relic-image-wrap,
  .window-relic-image-wrap {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .relic-hero-media .window-relic-image,
  .window-relic-image {
    width: auto;
    max-width: 92%;
    max-height: 68svh;
    object-fit: contain;
  }

  .relic-card,
  .relic-detail {
    overflow: hidden;
  }
}

/* =========================
   MOBILE SEO COPY SIZE FIX
========================= */

@media (max-width: 900px) {
  .seo-readable-copy {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 8;

    width: calc(100% - 42px);
    margin: 34px auto 24px;
    padding: 18px 18px 20px;

    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 1.2px;
    text-align: left;

    color: rgba(247, 237, 244, 0.42);
    border: 1px solid rgba(255, 47, 156, 0.2);
    background: rgba(0, 0, 0, 0.22);
  }

  .seo-readable-copy h1 {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 2px;
    color: rgba(247, 237, 244, 0.82);
  }

  .seo-readable-copy p {
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 1.1px;
  }
}

/* =========================
   MOBILE WINDOW LOWER POSITION
========================= */

@media (max-width: 900px) {
  .archive-window {
    top: calc(env(safe-area-inset-top) + 75px) !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
  }
}

/* ================================
   RESPONSIVE DISPLAY MASTER FIX
   CRYSTAGELLA.XYZ
   ================================ */

@media (min-width: 901px) {
  html,
  body {
    min-height: 100%;
    background: var(--bg);
  }

  .site {
    min-height: calc(100svh / var(--desktop-scale));
    max-height: none;
  }

  .center-coordinates {
    z-index: 30;
    text-shadow:
      0 0 8px rgba(0, 0, 0, 0.92),
      0 0 14px rgba(255, 47, 156, 0.22);
  }
}

/* Nest Hub / 1024 × 600 / short landscape */
@media (min-width: 901px) and (max-width: 1200px) and (max-height: 700px) {
  :root {
    --desktop-scale: 0.58;
  }

  .site {
    min-height: calc(100svh / var(--desktop-scale));
  }

  .topbar {
    top: 36px;
    left: 56px;
    right: 72px;
  }

  .domain {
    font-size: 13px;
    letter-spacing: 5px;
  }

  .top-symbols {
    gap: 26px;
    font-size: 30px;
  }

  .top-social-links {
    gap: 22px;
  }

  .top-social-links a {
    font-size: 24px;
  }

  .left-panel {
    top: 130px;
    left: 66px;
    width: 350px;
  }

  .right-panel {
    top: 118px;
    right: 82px;
    width: 330px;
  }

  .title-area {
    margin-bottom: 34px;
  }

  .moon-mark {
    margin-bottom: 20px;
  }

  .moon-mark.alchemy-air-mark svg {
    width: 42px;
    height: 42px;
  }

  .main-logo {
    width: min(100%, 520px);
  }

  .title-area p {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 6px;
  }

  .menu-panel button {
    grid-template-columns: 50px 1fr 20px;
    padding: 17px 22px;
  }

  .menu-panel .number {
    font-size: 27px;
  }

  .menu-panel .name {
    font-size: 17px;
    letter-spacing: 4px;
  }

  .menu-panel .glyph {
    font-size: 13px;
  }

  .echo-panel {
    grid-template-columns: 84px 1fr;
    gap: 18px;
    margin-top: 26px;
    padding: 18px;
  }

  .echo-panel h2 {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .echo-panel p {
    font-size: 10px;
    line-height: 1.48;
  }

  .signal-panel {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .connection-label {
    font-size: 8px;
  }

  .bars {
    gap: 3px;
    margin-top: 8px;
  }

  .bars span {
    width: 6px;
    height: 16px;
  }

  .bars span:nth-child(2n) {
    height: 12px;
  }

  .latest-panel {
    padding: 22px;
    margin-bottom: 24px;
  }

  .latest-panel h2,
  .system-panel h2 {
    font-size: 11px;
    letter-spacing: 2.4px;
    margin-bottom: 16px;
  }

  .cover-box {
    width: 78%;
    margin: 16px auto 20px;
  }

  .release-title {
    font-size: 32px;
    letter-spacing: 5px;
  }

  .release-copy {
    font-size: 10px;
    line-height: 1.65;
  }

  .release-links {
    margin-top: 18px;
  }

  .window-link,
  .release-links a {
    padding: 13px 16px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .system-panel {
    padding: 20px;
    margin-bottom: 20px;
  }

  .frequency-terminal {
    font-size: 9px;
    line-height: 1.62;
  }

  .loop-panel {
    padding: 16px;
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .center-panel {
    width: 720px;
    height: 720px;
    transform: translate(-50%, -45%);
  }

  .glyph-bg {
    width: 680px;
    height: 680px;
    top: 42%;
  }

  .character-image {
    height: 1720px;
    bottom: -875px;
  }

  .center-panel::after {
    bottom: -18%;
    width: 1450px;
    height: 880px;
  }

  .center-coordinates {
    bottom: 8.5%;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 2.2px;
    color: rgba(255, 47, 156, 0.92);
    z-index: 40;
  }

  #crystagella-sub-location {
    font-size: 9px;
    letter-spacing: 2.3px;
    color: rgba(255, 237, 244, 0.68);
  }

  .copyright {
    display: inline-block;
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: rgba(247, 237, 244, 0.62);
  }

  .footerline {
    left: 66px;
    bottom: 34px;
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .archive-window {
    width: min(860px, calc(100vw - 48px));
    max-height: calc(100svh - 44px);
  }
}

/* 1280 × 720 and similar */
@media (min-width: 1201px) and (max-width: 1599px) {
  :root {
    --desktop-scale: 0.68;
  }

  .glyph-bg {
    width: 820px;
    height: 820px;
    top: 44%;
  }

  .character-image {
    height: 2260px;
    bottom: -1190px;
  }

  .center-panel::after {
    bottom: -24%;
    width: 1900px;
    height: 1280px;
  }

  .center-coordinates {
    bottom: 4.5%;
  }
}

/* Full HD / 1920 × 1080 */
@media (min-width: 1600px) and (max-width: 2199px) {
  :root {
    --desktop-scale: 0.78;
  }

  .glyph-bg {
    width: 920px;
    height: 920px;
    top: 43.5%;
  }

  .character-image {
    height: 2500px;
    bottom: -1340px;
  }

  .center-panel::after {
    bottom: -33%;
    width: 2200px;
    height: 1400px;
  }

  .center-coordinates {
    bottom: 3.5%;
  }
}

/* 2K / 2560 × 1440 */
@media (min-width: 2200px) and (max-width: 2999px) {
  :root {
    --desktop-scale: 0.95;
  }

  .left-panel {
    left: 84px;
    width: 455px;
  }

  .right-panel {
    right: 112px;
    width: 435px;
  }

  .topbar {
    left: 84px;
    right: 112px;
  }

  .menu-panel button {
    padding: 30px 32px;
  }

  .menu-panel .number {
    font-size: 38px;
  }

  .menu-panel .name {
    font-size: 24px;
  }

  .glyph-bg {
    width: 1060px;
    height: 1060px;
  }

  .character-image {
    height: 2800px;
    bottom: -1510px;
  }
}

/* 4K / 3840 × 2160 */
@media (min-width: 3000px) {
  :root {
    --desktop-scale: 1.22;
  }

  .topbar {
    top: 60px;
    left: 96px;
    right: 126px;
  }

  .domain {
    font-size: 17px;
    letter-spacing: 7px;
  }

  .top-symbols {
    gap: 46px;
    font-size: 46px;
  }

  .top-social-links {
    gap: 34px;
  }

  .top-social-links a {
    font-size: 34px;
  }

  .left-panel {
    top: 172px;
    left: 96px;
    width: 500px;
  }

  .right-panel {
    top: 148px;
    right: 128px;
    width: 480px;
  }

  .moon-mark.alchemy-air-mark svg {
    width: 62px;
    height: 62px;
  }

  .title-area {
    margin-bottom: 66px;
  }

  .title-area p {
    font-size: 16px;
    letter-spacing: 10px;
  }

  .menu-panel button {
    grid-template-columns: 78px 1fr 34px;
    padding: 34px 36px;
  }

  .menu-panel .number {
    font-size: 42px;
  }

  .menu-panel .name {
    font-size: 26px;
    letter-spacing: 6px;
  }

  .echo-panel {
    grid-template-columns: 138px 1fr;
    gap: 34px;
    margin-top: 48px;
    padding: 34px;
  }

  .echo-panel h2 {
    font-size: 16px;
  }

  .echo-panel p {
    font-size: 15px;
    line-height: 1.72;
  }

  .signal-panel {
    margin-top: 38px;
    font-size: 15px;
  }

  .latest-panel {
    padding: 38px;
    margin-bottom: 48px;
  }

  .latest-panel h2,
  .system-panel h2 {
    font-size: 17px;
    letter-spacing: 3.5px;
  }

  .latest-panel p,
  .release-meta,
  .release-links,
  .system-panel p,
  .frequency-terminal,
  .loop-panel {
    font-size: 15px;
  }

  .cover-box {
    margin: 26px 0;
  }

  .system-panel {
    padding: 34px;
  }

  .loop-panel {
    padding: 30px;
  }

  .center-panel {
    width: 960px;
    height: 1080px;
  }

  .glyph-bg {
    width: 1160px;
    height: 1160px;
    top: 43%;
  }

  .character-image {
    height: 2920px;
    bottom: -1580px;
  }

  .center-panel::after {
    bottom: -38%;
    width: 2600px;
    height: 1620px;
  }

  .center-coordinates {
    bottom: 2.4%;
    font-size: 16px;
    letter-spacing: 3.5px;
  }

  #crystagella-sub-location,
  .copyright {
    font-size: 13px;
  }

  .archive-window {
    width: min(1040px, 72vw);
  }

  .window-header {
    padding: 20px 24px;
  }

  .window-title {
    font-size: 15px;
    letter-spacing: 3.8px;
  }

  .window-body {
    padding: 34px;
    font-size: 15px;
  }

  .loader-frame {
    width: min(680px, calc(100vw - 80px));
    padding: 58px 54px 48px;
  }

  .loader-logo {
    width: min(440px, 86%);
  }

  .loader-terminal {
    font-size: 14px;
  }
}

/* Extra 4K refinement */
@media (min-width: 3600px) {
  :root {
    --desktop-scale: 1.30;
  }

  .left-panel {
    left: 104px;
    width: 520px;
  }

  .right-panel {
    right: 138px;
    width: 500px;
  }

  .topbar {
    left: 104px;
    right: 138px;
  }

  .glyph-bg {
    width: 1220px;
    height: 1220px;
  }

  .character-image {
    height: 3040px;
    bottom: -1640px;
  }

  .center-panel::after {
    width: 2800px;
    height: 1720px;
  }
}

/* END RESPONSIVE DISPLAY MASTER FIX */

/* ================================
   2560X1440 BOTTOM GRADIENT FIX
   Khusus 2K / 2560 × 1440:
   lower black gradient diturunkan dan dipanjangkan
   supaya fade tidak berhenti terlalu tinggi.
   ================================ */

@media (min-width: 2200px) and (max-width: 2999px) {
  .center-panel::after {
    bottom: -52%;
    width: 2600px;
    height: 1850px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.12) 18%,
      rgba(0, 0, 0, 0.55) 44%,
      rgba(0, 0, 0, 0.90) 70%,
      rgba(0, 0, 0, 1) 100%
    );
  }

  .site::after {
    height: 34%;
  }

  .center-coordinates {
    bottom: 5.2%;
  }
}

/* END 2560X1440 BOTTOM GRADIENT FIX */


/* =========================================
   STEMS DSP LICENSE REQUEST BUTTON
========================================= */

.stem-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.stem-action-stack .window-pill-link,
.stem-action-stack .window-pill {
  width: max-content;
  min-width: 112px;
}

.window-pill-link.stem-dsp-link {
  border-color: rgba(255, 47, 156, 0.28);
  color: rgba(255, 237, 244, 0.68);
  font-size: 10px;
  letter-spacing: 1.8px;
}

.window-pill-link.stem-dsp-link:hover {
  color: var(--pink);
  border-color: rgba(255, 47, 156, 0.75);
}

@media (max-width: 640px) {
  .window-file-list li {
    grid-template-columns: 1fr;
  }

  .stem-action-stack {
    align-items: flex-start;
    margin-top: 14px;
  }

  .stem-action-stack .window-pill-link,
  .stem-action-stack .window-pill {
    width: 100%;
  }
}

/* =========================
   ECHOES / ORACLE WINDOW
   Clean consolidated block
========================= */

/* Homepage ECHO panel interaction */
.echo-panel {
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.echo-panel:hover,
.echo-panel:focus-visible {
  border-color: rgba(255, 47, 156, 0.62);
  background: rgba(255, 47, 156, 0.075);
  box-shadow:
    0 0 18px rgba(255, 47, 156, 0.16),
    inset 0 0 22px rgba(255, 47, 156, 0.045);
  transform: translateY(-1px);
}

.echo-panel:focus-visible {
  outline: 1px solid rgba(255, 47, 156, 0.76);
  outline-offset: 4px;
}

.echo-panel:hover .small-sigil.relic-sigil,
.echo-panel:focus-visible .small-sigil.relic-sigil {
  border-color: rgba(255, 47, 156, 0.78);
  box-shadow:
    inset 0 0 22px rgba(255, 47, 156, 0.12),
    0 0 18px rgba(255, 47, 156, 0.18);
}

.echo-panel:hover .echo-copy h2,
.echo-panel:focus-visible .echo-copy h2 {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 47, 156, 0.75),
    0 0 18px rgba(255, 47, 156, 0.30);
}

/* ECHOES content */
.echoes-window {
  display: grid;
  gap: 22px;
}

.echoes-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 47, 156, 0.13), transparent 42%),
    rgba(255, 47, 156, 0.025);
}

.echoes-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 47, 156, 0.44);
  color: var(--pink);
  background: rgba(0, 0, 0, 0.28);
  font-size: 34px;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 47, 156, 0.42),
    0 0 22px rgba(255, 47, 156, 0.16);
}

.echoes-head h3 {
  margin-top: 6px;
  color: var(--pink);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 4px;
}

.echoes-panel {
  border: 1px solid rgba(255, 47, 156, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 47, 156, 0.045), rgba(0, 0, 0, 0.10)),
    rgba(255, 47, 156, 0.025);
  padding: 20px;
}

.echoes-panel-label {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(255, 237, 244, 0.50);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.echoes-panel h3 {
  color: var(--pink);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.25;
}

.echoes-aphorism {
  margin-top: 18px;
  color: rgba(255, 237, 244, 0.88);
  font-family: "Cinzel", serif;
  font-size: 22px;
  line-height: 1.55;
}

/* Oracle / Loaded card duo */
.echoes-card-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  justify-content: center;
  justify-items: center;
  gap: 42px;
  align-items: start;
}

.echoes-card-slot {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.echoes-card-slot h3 {
  margin-top: 16px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1.35;
}

.echoes-card-description {
  margin-top: 14px;
  color: rgba(255, 237, 244, 0.66);
  font-size: 12px;
  line-height: 1.7;
}

/* Relic card ratio: original 700x1200 = 7:12 */
.echoes-card-frame,
.echoes-load-card-button {
  width: min(100%, 300px);
  aspect-ratio: 7 / 12;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 47, 156, 0.38);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 47, 156, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 47, 156, 0.06), rgba(0, 0, 0, 0.18)),
    #050005;
  text-align: center;
  justify-self: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 22px rgba(255, 47, 156, 0.06),
    0 0 14px rgba(255, 47, 156, 0.10);
}

.echoes-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.echoes-card-empty {
  color: rgba(255, 47, 156, 0.45);
  font-size: 11px;
  letter-spacing: 3px;
}

.echoes-load-card-button {
  cursor: not-allowed;
  color: var(--pink);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 3px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 47, 156, 0.08) 0 1px,
      transparent 1px 10px
    ),
    radial-gradient(circle at center, rgba(255, 47, 156, 0.14), transparent 56%),
    #050005;
}

.echoes-load-card-button span {
  display: block;
  font-size: 13px;
}

.echoes-load-card-button small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 237, 244, 0.44);
  font-size: 9px;
  letter-spacing: 2px;
}

.echoes-loaded-slot h3 {
  color: rgba(255, 237, 244, 0.42);
}

/* Ontological reflection */
.echoes-ontology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.echoes-ontology-item {
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(255, 47, 156, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.echoes-ontology-item span,
.echoes-core-question span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 237, 244, 0.46);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.echoes-ontology-item strong {
  display: block;
  color: rgba(255, 237, 244, 0.88);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.echoes-core-question {
  margin-top: 16px;
  padding: 18px;
  border-left: 1px solid rgba(255, 47, 156, 0.64);
  background:
    linear-gradient(90deg, rgba(255, 47, 156, 0.075), transparent),
    rgba(0, 0, 0, 0.16);
}

.echoes-core-question p {
  color: rgba(255, 237, 244, 0.94);
  font-family: "Cinzel", serif;
  font-size: 22px;
  line-height: 1.55;
}

.echoes-draw-note {
  color: rgba(247, 237, 244, 0.44);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 2px;
}

/* Mobile ECHO + ECHOES */
@media (max-width: 900px) {
  .echo-panel {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(255, 47, 156, 0.34);
    background: rgba(0, 0, 0, 0.30);
    overflow: visible;
  }

  .echo-panel .small-sigil.relic-sigil {
    width: 86px;
    min-width: 86px;
    height: 86px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .echo-panel .small-sigil.relic-sigil .anime-girl {
    bottom: 7px !important;
    transform: translateX(-50%) scale(0.72) !important;
    transform-origin: bottom center;
  }

  .echo-panel .small-sigil.relic-sigil .sigil-diamond {
    top: 18%;
    width: 13px;
    height: 13px;
  }

  .echo-panel h2 {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .echo-panel p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.55;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .echo-panel::after {
    content: "TAP TO OPEN ECHOES";
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 47, 156, 0.18);
    color: rgba(255, 47, 156, 0.72);
    font-size: 9px;
    letter-spacing: 2px;
  }

  .signal-panel {
    display: none;
  }

  .echoes-card-duo,
  .echoes-ontology-grid {
    grid-template-columns: 1fr;
  }

  .echoes-card-duo {
    justify-content: center;
    justify-items: center;
    gap: 28px;
  }

  .echoes-card-slot {
    text-align: center;
  }

  .echoes-head {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 14px;
  }

  .echoes-symbol {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .echoes-head h3 {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .echoes-panel {
    padding: 16px;
  }

  .echoes-aphorism,
  .echoes-core-question p {
    font-size: 18px;
  }

  .echoes-card-frame,
  .echoes-load-card-button {
    width: min(100%, 260px);
    aspect-ratio: 7 / 12;
    margin: 0 auto;
  }
}

/* =========================
   ECHOES WINDOW: USE DEFAULT MODAL SIZE
========================= */

.archive-window[data-window-key="echoes"] .archive-window-body {
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .archive-window[data-window-key="echoes"] .echoes-card-duo {
    grid-template-columns: repeat(2, minmax(240px, 300px));
    justify-content: center;
    justify-items: center;
    gap: 40px;
  }

  .archive-window[data-window-key="echoes"] .echoes-card-frame,
  .archive-window[data-window-key="echoes"] .echoes-load-card-button {
    width: min(100%, 280px);
    aspect-ratio: 7 / 12;
  }
}

/* =========================
   ECHOES: MINDAR SCANNER + TEST CHAMBER + DIANA READER
========================= */

.echoes-loaded-slot.is-loaded {
  border-color: rgba(255, 47, 156, 0.55);
  box-shadow:
    0 0 24px rgba(255, 47, 156, 0.12),
    inset 0 0 22px rgba(255, 47, 156, 0.06);
}

.echoes-load-choice {
  display: grid;
  gap: 14px;
  width: min(100%, 280px);
  margin: 0 auto 18px;
}

.echoes-load-choice .echoes-load-card-button {
  width: 100%;
  min-height: 132px;
  aspect-ratio: auto;
  padding: 20px 16px;
}

.echoes-test-button {
  border-style: dashed;
  opacity: 0.88;
}

.echoes-test-button:hover {
  opacity: 1;
}

.echoes-mini-link {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 47, 156, 0.82);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.relic-scanner-panel,
.test-chamber-panel,
.diana-reader-panel {
  margin-top: 28px;
}

.relic-scanner-panel h3,
.test-chamber-panel h3,
.diana-reader-panel h3 {
  color: var(--pink);
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.relic-mindar-shell {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  margin: 22px auto 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 156, 0.48);
  background:
    radial-gradient(circle at center, rgba(255, 47, 156, 0.11), transparent 62%),
    #020002;
  box-shadow:
    0 0 28px rgba(255, 47, 156, 0.16),
    inset 0 0 30px rgba(255, 47, 156, 0.05);
}

.relic-mindar-scene {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.relic-mindar-scene canvas,
.relic-mindar-scene video,
.relic-mindar-shell canvas,
.relic-mindar-shell video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.relic-scanner-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 237, 244, 0.72);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 3px;
  text-align: center;
}

.relic-scanner-frame {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  border: 1px solid rgba(255, 47, 156, 0.14);
}

.relic-scanner-frame::before,
.relic-scanner-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 47, 156, 0.12);
  transform: translateX(-50%);
}

.relic-scanner-frame::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.relic-scanner-frame span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--pink);
  border-style: solid;
  opacity: 0.82;
  filter: drop-shadow(0 0 8px rgba(255, 47, 156, 0.35));
}

.relic-scanner-frame span:nth-child(1) {
  left: 0;
  top: 0;
  border-width: 1px 0 0 1px;
}

.relic-scanner-frame span:nth-child(2) {
  right: 0;
  top: 0;
  border-width: 1px 1px 0 0;
}

.relic-scanner-frame span:nth-child(3) {
  left: 0;
  bottom: 0;
  border-width: 0 0 1px 1px;
}

.relic-scanner-frame span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.scanner-detected-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 24px;
  align-items: center;
}

.scanner-detected-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 7 / 12;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 156, 0.42);
  background: rgba(0, 0, 0, 0.28);
}

.scanner-detected-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-empty {
  color: rgba(255, 47, 156, 0.72);
  font-size: 11px;
  letter-spacing: 3px;
}

.scanner-candidate-name {
  color: rgba(255, 237, 244, 0.94);
  font-family: "Cinzel", serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 4px;
}

.scanner-action-row {
  margin-top: 18px;
}

.scanner-action-row button,
.diana-reader-button {
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
}

.window-pill-link.is-secondary {
  opacity: 0.72;
}

.window-pill-link[disabled],
.diana-reader-button[disabled] {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.35);
}

.test-chamber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.test-chamber-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 47, 156, 0.24);
  background: rgba(0, 0, 0, 0.24);
  color: var(--white);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  text-align: left;
}

.test-chamber-card:hover {
  border-color: rgba(255, 47, 156, 0.62);
  background: rgba(255, 47, 156, 0.08);
}

.test-chamber-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 7 / 12;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 156, 0.22);
  background: rgba(255, 47, 156, 0.05);
  color: var(--pink);
}

.test-chamber-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-chamber-card strong {
  display: block;
  color: var(--pink);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 2px;
}

.test-chamber-card small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 237, 244, 0.52);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 1.5px;
}

.diana-reader-panel {
  border-color: rgba(255, 47, 156, 0.36);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 47, 156, 0.08), transparent 54%),
    rgba(0, 0, 0, 0.24);
}

.diana-reader-panel.is-open {
  border-color: rgba(255, 47, 156, 0.58);
}

.diana-reader-panel.is-loading h3::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

.diana-reader-button {
  display: inline-flex;
  margin-top: 18px;
}

.diana-error {
  color: rgba(255, 127, 188, 0.95);
}

.diana-reading-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 47, 156, 0.18);
}

.diana-reading-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 10px;
  letter-spacing: 3px;
}

@media (max-width: 900px) {
  .echoes-load-choice {
    width: min(100%, 260px);
  }

  .echoes-load-choice .echoes-load-card-button {
    min-height: 112px;
    padding: 16px 12px;
  }

  .relic-scanner-panel h3,
  .test-chamber-panel h3,
  .diana-reader-panel h3 {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .relic-mindar-shell {
    width: min(100%, 320px);
  }

  .scanner-detected-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .scanner-detected-image {
    width: min(100%, 210px);
  }

  .scanner-candidate-name {
    font-size: 22px;
  }

  .test-chamber-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   SEO READABLE COPY: HIDDEN ON ALL VIEWPORTS
========================= */

.seo-readable-copy,
.seo-readable-copy * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================
   MINDAR CAMERA PREVIEW BLACK SCREEN FIX
   Keeps MindAR camera video visible behind the transparent A-Frame canvas.
========================= */

.relic-mindar-shell {
  isolation: isolate;
}

.relic-mindar-shell.has-mindar-camera-video {
  background: #000;
}

.relic-mindar-camera-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  background: #000 !important;
  transform: none !important;
}

.relic-mindar-scene,
.relic-mindar-scene.a-scene,
.relic-mindar-scene canvas,
.relic-mindar-shell canvas {
  background: transparent !important;
}

.relic-mindar-scene {
  z-index: 2 !important;
  pointer-events: none !important;
}

.relic-mindar-scene canvas,
.relic-mindar-shell canvas {
  z-index: 2 !important;
  opacity: 1 !important;
}

.relic-scanner-frame,
.relic-scanner-loading {
  z-index: 5 !important;
}

.relic-mindar-shell > video:not(.relic-mindar-camera-video) {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* =========================
   ECHOES SCANNER UX PATCH — FOUR USER NOTES
   1. Compact half-card mode buttons beside Oracle Card.
   2. Hover cursor is pointer, not forbidden.
   3. Scanner/Test Chamber replace the ECHOES state, not append below.
   4. Mobile scanner/test chamber remains usable.
========================= */

/* 1 + 2: Right-side Load Card mode selector */
.archive-window[data-window-key="echoes"] .echoes-load-choice {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: min(100%, 280px);
  aspect-ratio: 7 / 12;
  margin: 0 auto 18px;
}

.archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 18px 16px;
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button:hover {
  border-color: rgba(255, 47, 156, 0.72);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 47, 156, 0.12) 0 1px,
      transparent 1px 10px
    ),
    radial-gradient(circle at center, rgba(255, 47, 156, 0.20), transparent 58%),
    #070006;
  box-shadow:
    inset 0 0 24px rgba(255, 47, 156, 0.08),
    0 0 22px rgba(255, 47, 156, 0.16);
  transform: translateY(-1px);
}

.archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button span {
  font-size: 12px;
  line-height: 1.65;
}

.archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button small {
  margin-top: 10px;
}

.archive-window[data-window-key="echoes"] button:not([disabled]),
.archive-window[data-window-key="echoes"] [data-action]:not([disabled]),
.archive-window[data-window-key="echoes"] [data-test-card-id]:not([disabled]) {
  cursor: pointer;
}

.archive-window[data-window-key="echoes"] button[disabled],
.archive-window[data-window-key="echoes"] [aria-disabled="true"] {
  cursor: not-allowed;
}

/* 3: Dedicated state screens for Scanner / Test Chamber */
.echoes-window-screen .echoes-head {
  margin-bottom: 18px;
}

.echoes-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 47, 156, 0.32);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 47, 156, 0.88);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 2px;
}

.echoes-back-button:hover {
  border-color: rgba(255, 47, 156, 0.68);
  background: rgba(255, 47, 156, 0.08);
}

.echoes-window-screen .relic-scanner-panel,
.echoes-window-screen .test-chamber-panel {
  margin-top: 0;
}

.echoes-window-screen .relic-mindar-shell {
  width: min(100%, 460px);
}

/* 4: Mobile usability for camera/test mode */
@media (max-width: 900px) {
  .archive-window[data-window-key="echoes"] .echoes-load-choice {
    width: min(100%, 260px);
    aspect-ratio: 7 / 12;
    grid-template-rows: 1fr 1fr;
  }

  .archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button {
    min-height: 0;
    padding: 14px 12px;
  }

  .archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button span {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .archive-window[data-window-key="echoes"] .echoes-load-choice .echoes-load-card-button small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .echoes-window-screen .echoes-head {
    margin-bottom: 14px;
  }

  .echoes-back-button {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
  }

  .echoes-window-screen .relic-scanner-panel,
  .echoes-window-screen .test-chamber-panel {
    padding: 14px;
  }

  .echoes-window-screen .relic-mindar-shell {
    width: min(100%, 340px);
    max-height: 62svh;
    margin: 18px auto 14px;
  }

  .echoes-window-screen .scanner-action-row,
  .echoes-window-screen .window-link-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .echoes-window-screen .scanner-action-row .window-pill-link,
  .echoes-window-screen .window-link-row .window-pill-link {
    width: 100%;
    justify-content: center;
  }

  .echoes-window-screen .test-chamber-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   TEST CHAMBER DESKTOP 4 COLUMNS
   Desktop only. Mobile remains one column.
========================= */

@media (min-width: 901px) {
  .archive-window[data-window-key="echoes"] .test-chamber-panel .test-chamber-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .archive-window[data-window-key="echoes"] .test-chamber-panel .test-chamber-card {
    min-width: 0;
  }
}

/* =========================
   TEST CHAMBER RANDOM DRAW SLOT
========================= */

.echoes-loaded-slot.is-drawing .echoes-draw-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 47, 156, 0.12) 0 1px,
      transparent 1px 8px
    ),
    radial-gradient(circle at center, rgba(255, 47, 156, 0.18), transparent 58%),
    #070006;
}

.echoes-loaded-slot.is-drawing .echoes-draw-frame::before,
.echoes-loaded-slot.is-drawing .echoes-draw-frame::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 47, 156, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.echoes-loaded-slot.is-drawing .echoes-draw-frame::before {
  animation: relicDrawSpin 2.4s linear infinite;
}

.echoes-loaded-slot.is-drawing .echoes-draw-frame::after {
  inset: 30%;
  opacity: 0.65;
  animation: relicDrawSpin 1.8s linear reverse infinite;
}

.echoes-draw-orb {
  position: absolute;
  width: 28%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 47, 156, 0.82);
  transform: rotate(45deg);
  box-shadow:
    0 0 14px rgba(255, 47, 156, 0.28),
    inset 0 0 18px rgba(255, 47, 156, 0.12);
  animation: relicDrawPulse 1.1s steps(2, end) infinite;
}

.echoes-draw-text {
  position: relative;
  z-index: 2;
  color: rgba(255, 47, 156, 0.88);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 3px;
}

.echoes-draw-text::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes relicDrawSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes relicDrawPulse {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}
