:root {
  --bg-0: #05010d;
  --bg-1: #0d0618;
  --bg-2: #170d27;
  --bg-3: #231137;
  --panel: rgba(17, 10, 31, 0.8);
  --panel-strong: rgba(23, 14, 41, 0.92);
  --panel-soft: rgba(31, 18, 53, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7efff;
  --muted: #c9b8dc;
  --soft: #e8dff5;
  --pink: #ff4da3;
  --purple: #9f6bff;
  --purple-deep: #6b2ae6;
  --cyan: #71e9ff;
  --gold: #f5c26a;
  --gold-soft: #ffdca8;
  --danger: #ff6a85;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-body: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(159, 107, 255, 0.24), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(113, 233, 255, 0.1), transparent 16%),
    radial-gradient(circle at 70% 82%, rgba(255, 77, 163, 0.16), transparent 20%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1) 20%, var(--bg-2) 60%, var(--bg-3));
  overflow-x: hidden;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

body.world-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 40vw;
  height: 40vw;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.24;
  z-index: 0;
  pointer-events: none;
  animation: auraShift 18s ease-in-out infinite;
}

.ambient-left {
  top: -12vw;
  left: -8vw;
  background: rgba(159, 107, 255, 0.34);
}

.ambient-right {
  right: -10vw;
  bottom: -14vw;
  background: rgba(255, 77, 163, 0.22);
  animation-delay: -9s;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.78) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.panel,
.panel-subtle {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.panel {
  background: var(--panel);
}

.panel-subtle {
  background: var(--panel-soft);
}

.panel::before,
.panel-subtle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(159, 107, 255, 0.42), rgba(255, 77, 163, 0.18), rgba(113, 233, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 24px rgba(159, 107, 255, 0.25), 0 0 18px rgba(113, 233, 255, 0.14);
  color: var(--gold-soft);
  font-size: 1.2rem;
}

.brand strong,
.topnav a,
.topnav button,
.eyebrow,
.status-label,
.support-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 0.9rem;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a,
.topnav button,
.ghost-btn {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topnav a:hover,
.topnav button:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 233, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 18px 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  padding: 30px;
  margin-top: 20px;
}

.hero-copy,
.hero-side,
.discord-card,
.art-card,
.info-card,
.schedule-section,
.social-section,
.ritual-section,
.support-section,
.credit-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: clamp(500px, 68vh, 660px);
}

.hero-pocket {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-pocket-copy {
  display: grid;
  gap: 8px;
}

.hero-pocket-copy strong {
  font-size: 1.02rem;
}

.hero-pocket-copy p:last-child,
.radar-card p,
.radar-actions small {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-pocket-label {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sanctum-pocket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: stretch;
  min-height: 204px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 82% 26%, rgba(245, 194, 106, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(31, 17, 46, 0.98), rgba(16, 10, 28, 0.86));
}

.sanctum-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sanctum-mode-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 106, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sanctum-hint-line {
  min-height: 42px;
  margin: 0;
  color: var(--soft);
}

.sanctum-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sanctum-step-list span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sanctum-step-list span.is-active {
  color: var(--paper);
  border-color: rgba(113, 233, 255, 0.26);
  background: rgba(113, 233, 255, 0.1);
}

.sanctum-step-list span.is-complete {
  color: var(--paper);
  border-color: rgba(245, 194, 106, 0.24);
  background: rgba(245, 194, 106, 0.1);
}

.sanctum-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sanctum-memory {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 194, 106, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sanctum-memory img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.sanctum-memory strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sanctum-memory p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.sanctum-mini {
  padding: 9px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.sanctum-mini.is-active {
  color: var(--cyan);
  border-color: rgba(113, 233, 255, 0.3);
  background: rgba(113, 233, 255, 0.08);
}

.sanctum-mini.is-soft {
  border-color: rgba(245, 194, 106, 0.16);
}

.sanctum-scene {
  position: relative;
  min-height: 166px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 24%, rgba(245, 194, 106, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(50, 25, 77, 0.94), rgba(13, 8, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sanctum-scene.is-active {
  box-shadow: inset 0 0 0 1px rgba(245, 194, 106, 0.12), 0 0 22px rgba(245, 194, 106, 0.12);
}

.sanctum-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(5, 3, 12, 0.72));
}

.sanctum-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.46) 0.8px, transparent 0.8px),
    radial-gradient(rgba(255, 220, 168, 0.38) 0.7px, transparent 0.7px);
  background-position: 0 0, 18px 12px;
  background-size: 22px 22px, 28px 28px;
  opacity: 0.26;
  pointer-events: none;
}

.sanctum-moon {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 229, 0.98), rgba(255, 220, 168, 0.72));
  box-shadow: 0 0 18px rgba(255, 220, 168, 0.42);
}

.sanctum-object {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.sanctum-object span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 10, 28, 0.88);
  color: var(--paper);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sanctum-scene[data-active-clue="window"] .sanctum-window-mark span,
.sanctum-scene[data-active-clue="cauldron"] .sanctum-cauldron-mark span,
.sanctum-scene[data-active-clue="grimoire"] .sanctum-grimoire-mark span {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.sanctum-window-mark {
  left: 22px;
  top: 24px;
  width: 44px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.08) 52%, transparent 52%),
    linear-gradient(180deg, transparent 48%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.08) 52%, transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(113, 233, 255, 0.18), transparent 72%),
    rgba(18, 10, 30, 0.72);
  box-shadow: inset 0 0 18px rgba(113, 233, 255, 0.12);
}

.sanctum-cauldron-mark {
  left: 24px;
  bottom: 26px;
  width: 52px;
  height: 34px;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 77, 163, 0.42), transparent 68%),
    linear-gradient(180deg, rgba(82, 42, 112, 0.9), rgba(24, 14, 36, 0.96));
  box-shadow: inset 0 0 16px rgba(255, 77, 163, 0.12);
}

.sanctum-cauldron-mark::before,
.sanctum-cauldron-mark::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 12px;
  height: 10px;
  border: 2px solid rgba(255, 77, 163, 0.36);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.sanctum-cauldron-mark::before {
  left: 4px;
}

.sanctum-cauldron-mark::after {
  right: 4px;
}

.sanctum-grimoire-mark {
  left: 102px;
  bottom: 40px;
  width: 44px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 3px, transparent 3px 100%),
    linear-gradient(180deg, rgba(245, 194, 106, 0.28), rgba(42, 21, 58, 0.98));
  border: 1px solid rgba(245, 194, 106, 0.18);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.18);
  transform: rotate(-8deg);
}

.sanctum-tower {
  position: absolute;
  right: 30px;
  bottom: 18px;
  width: 88px;
  height: 78px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(23, 11, 37, 0.98), rgba(9, 6, 18, 0.98));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
  transition: transform 220ms ease, filter 220ms ease;
}

.sanctum-tower::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 54px;
  height: 34px;
  background: linear-gradient(180deg, rgba(37, 18, 58, 0.98), rgba(18, 10, 29, 0.98));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.sanctum-prison {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sanctum-sprite,
.sanctum-angel-sprite {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 100%;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    filter 220ms ease,
    left 220ms ease,
    right 220ms ease,
    top 220ms ease,
    bottom 220ms ease,
    width 220ms ease;
}

.sanctum-sprite {
  right: 22px;
  bottom: 20px;
  opacity: 0.94;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34));
}

.sanctum-angel-sprite {
  left: 14px;
  top: 16px;
  width: 60px;
  opacity: 0.88;
  filter: drop-shadow(0 12px 18px rgba(255, 220, 168, 0.22));
}

.sanctum-sprite[data-pose="captive"] {
  right: 18px;
  bottom: 18px;
  width: 76px;
  transform: translateY(2px) scale(0.96);
}

.sanctum-sprite[data-pose="release"] {
  right: 60px;
  top: 36px;
  bottom: auto;
  width: 66px;
  transform: rotate(-6deg);
}

.sanctum-sprite[data-pose="tower"] {
  right: 18px;
  bottom: 18px;
  width: 72px;
  transform: translateY(1px);
}

.sanctum-sprite[data-pose="window"] {
  left: 16px;
  top: 20px;
  right: auto;
  bottom: auto;
  width: 60px;
  transform: rotate(-4deg);
}

.sanctum-sprite[data-pose="cauldron"] {
  left: 32px;
  bottom: 44px;
  right: auto;
  top: auto;
  width: 68px;
  transform: rotate(-4deg);
}

.sanctum-sprite[data-pose="grimoire"] {
  left: 98px;
  bottom: 62px;
  right: auto;
  top: auto;
  width: 62px;
  transform: rotate(-8deg);
}

.sanctum-sprite[data-pose="secret"] {
  right: 68px;
  top: 20px;
  bottom: auto;
  width: 64px;
  transform: rotate(-3deg);
}

.sanctum-sprite[data-pose="duo"] {
  right: 84px;
  top: 20px;
  bottom: auto;
  width: 64px;
}

.sanctum-angel-sprite[data-pose="window"] {
  left: 12px;
  top: 12px;
}

.sanctum-angel-sprite[data-pose="clue"] {
  left: 70px;
  top: 12px;
  width: 56px;
}

.sanctum-angel-sprite[data-pose="grimoire"] {
  left: 116px;
  top: 14px;
  width: 56px;
}

.sanctum-angel-sprite[data-pose="tower"] {
  left: 72px;
  top: 22px;
  width: 58px;
}

.sanctum-angel-sprite[data-pose="duo"] {
  left: 78px;
  top: 16px;
  width: 60px;
}

.sanctum-chain {
  position: absolute;
  top: 52px;
  width: 62px;
  height: 62px;
  color: rgba(255, 238, 210, 0.78);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.sanctum-chain::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 18px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid currentColor;
  transform: rotate(-16deg);
  box-shadow: 22px 16px 0 -3px rgba(255, 238, 210, 0.74);
}

.sanctum-chain::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid currentColor;
  transform: rotate(18deg);
}

.sanctum-chain-left {
  right: 48px;
  transform: rotate(-26deg);
}

.sanctum-chain-right {
  right: 12px;
  transform: rotate(28deg);
}

.sanctum-lock,
.sanctum-key {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 106, 0.28);
  background: rgba(22, 14, 33, 0.92);
  box-shadow: 0 0 18px rgba(245, 194, 106, 0.18);
  color: rgba(255, 233, 188, 0.96);
}

.sanctum-lock::before,
.sanctum-key::before {
  content: "";
  position: absolute;
  background: currentColor;
}

.sanctum-lock {
  right: 58px;
  top: 64px;
  pointer-events: auto;
}

.sanctum-lock::before {
  left: 7px;
  right: 7px;
  bottom: 6px;
  height: 12px;
  border-radius: 4px;
}

.sanctum-lock::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 4px;
  height: 11px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.sanctum-key {
  left: 112px;
  top: 30px;
  pointer-events: auto;
  animation: floatIdle 2.8s ease-in-out infinite;
}

.sanctum-key::before {
  left: 6px;
  top: 11px;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  box-shadow:
    9px -4px 0 0 currentColor,
    12px 4px 0 0 currentColor;
}

.sanctum-key::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 3px solid currentColor;
}

.sanctum-sigil {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 14px rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.sanctum-sigil:hover {
  transform: scale(1.08);
}

.sigil-moon {
  top: 16px;
  left: 14px;
  background: radial-gradient(circle, rgba(113, 233, 255, 1), rgba(113, 233, 255, 0.36));
}

.sigil-ember {
  right: 16px;
  top: 30px;
  background: radial-gradient(circle, rgba(255, 77, 163, 1), rgba(255, 77, 163, 0.36));
}

.sigil-halo {
  left: 34px;
  bottom: 18px;
  background: radial-gradient(circle, rgba(245, 194, 106, 1), rgba(245, 194, 106, 0.38));
}

.sanctum-scene[data-hint-rune="moon"] .sigil-moon,
.sanctum-scene[data-hint-rune="ember"] .sigil-ember,
.sanctum-scene[data-hint-rune="halo"] .sigil-halo,
.sanctum-sigil.is-filled {
  transform: scale(1.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 0 18px rgba(255, 255, 255, 0.18), 0 0 28px currentColor;
}

.sanctum-door {
  position: absolute;
  left: 32px;
  bottom: 8px;
  width: 24px;
  height: 34px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, rgba(245, 194, 106, 0.3), rgba(48, 24, 66, 0.92));
  border: 1px solid rgba(245, 194, 106, 0.24);
  box-shadow: 0 0 18px rgba(245, 194, 106, 0.16);
}

.sanctum-door::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 194, 106, 0.84);
}

.sanctum-door.is-open {
  background: linear-gradient(180deg, rgba(255, 225, 171, 0.42), rgba(74, 35, 102, 0.94));
  box-shadow: 0 0 24px rgba(245, 194, 106, 0.3);
}

.sanctum-secret {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(245, 194, 106, 0.72), rgba(245, 194, 106, 0));
  box-shadow: 0 0 18px rgba(245, 194, 106, 0.46);
}

.sanctum-sequence {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sanctum-sequence span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sanctum-sequence span[data-rune="moon"] {
  background: rgba(113, 233, 255, 0.86);
  border-color: rgba(113, 233, 255, 0.76);
}

.sanctum-sequence span[data-rune="ember"] {
  background: rgba(255, 77, 163, 0.86);
  border-color: rgba(255, 77, 163, 0.72);
}

.sanctum-sequence span[data-rune="halo"] {
  background: rgba(245, 194, 106, 0.9);
  border-color: rgba(245, 194, 106, 0.74);
}

.sanctum-sequence span.is-active {
  transform: scale(1.12);
}

.sanctum-pocket.is-solved {
  box-shadow: 0 0 0 1px rgba(245, 194, 106, 0.16), 0 0 24px rgba(245, 194, 106, 0.18);
}

.sanctum-pocket.is-solved .sanctum-scene {
  background:
    radial-gradient(circle at 78% 24%, rgba(245, 194, 106, 0.26), transparent 18%),
    linear-gradient(180deg, rgba(63, 30, 89, 0.98), rgba(16, 10, 28, 0.98));
}

.sanctum-pocket.is-solved .sanctum-door {
  box-shadow: 0 0 22px rgba(245, 194, 106, 0.36);
}

.sanctum-pocket.is-captive .sanctum-scene {
  background:
    radial-gradient(circle at 78% 24%, rgba(113, 233, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(37, 21, 59, 0.96), rgba(11, 8, 21, 0.98));
}

.sanctum-pocket.is-captive .sanctum-chain {
  opacity: 1;
}

.sanctum-pocket.is-captive .sanctum-tower {
  filter: saturate(0.84);
}

.sanctum-pocket.is-captive .sanctum-lock {
  display: block;
}

.sanctum-pocket.is-captive .sanctum-door,
.sanctum-pocket.is-captive .sanctum-secret {
  display: none;
}

.sanctum-scene[data-active-clue="window"] .sanctum-window-mark,
.sanctum-scene[data-active-clue="cauldron"] .sanctum-cauldron-mark,
.sanctum-scene[data-active-clue="grimoire"] .sanctum-grimoire-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 20px rgba(245, 194, 106, 0.16);
}

.sanctum-pocket.is-captive .sanctum-key:not([hidden]) {
  display: block;
}

/* Refugio Arcano 2.0 */

.sanctum-pocket {
  --sanctum-cyan: rgba(113, 233, 255, 0.92);
  --sanctum-pink: rgba(255, 108, 175, 0.92);
  --sanctum-gold: rgba(245, 194, 106, 0.96);
  --sanctum-parallax-x: 0px;
  --sanctum-parallax-y: 0px;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 360px);
  gap: 18px;
  min-height: 430px;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(113, 233, 255, 0.1), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(245, 194, 106, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(25, 15, 40, 0.98), rgba(11, 7, 22, 0.98));
}

.sanctum-copy {
  display: grid;
  gap: 14px;
}

.sanctum-copy-head {
  align-items: flex-start;
}

.sanctum-copy-head strong,
.sanctum-panel-head strong {
  font-size: 1rem;
  line-height: 1.2;
}

.sanctum-mode-chip {
  min-width: 122px;
  text-align: center;
  backdrop-filter: blur(14px);
}

.sanctum-hint-line {
  min-height: 0;
  margin-top: -4px;
  color: rgba(233, 223, 246, 0.9);
}

.sanctum-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sanctum-step-card {
  padding: 12px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sanctum-step-card strong,
.sanctum-action-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.sanctum-step-card p,
.sanctum-action-copy small,
.sanctum-action-state,
#sanctumPrimaryHint {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sanctum-step-index,
.sanctum-panel-label,
.sanctum-sequence-label,
.sanctum-action-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sanctum-step-index {
  margin-bottom: 8px;
  color: rgba(245, 194, 106, 0.9);
}

.sanctum-step-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(113, 233, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(113, 233, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(113, 233, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(113, 233, 255, 0.14), transparent 50%);
}

.sanctum-step-card.is-complete {
  border-color: rgba(245, 194, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(245, 194, 106, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(245, 194, 106, 0.16), transparent 48%);
}

.sanctum-panel {
  position: relative;
  padding: 15px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sanctum-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sanctum-panel-label {
  margin: 0 0 5px;
  color: var(--gold-soft);
}

.sanctum-mini {
  min-height: 42px;
}

.sanctum-rune-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sanctum-rune-btn {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sanctum-rune-btn:hover {
  transform: translateY(-1px);
}

.sanctum-rune-btn strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1;
}

.sanctum-rune-btn small {
  color: var(--muted);
  font-size: 0.73rem;
}

.sanctum-rune-glyph {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(255, 255, 255, 0.14);
}

.sanctum-rune-btn.sigil-moon .sanctum-rune-glyph,
.sanctum-tower-orb.sigil-moon {
  background: radial-gradient(circle, rgba(161, 240, 255, 1), rgba(74, 198, 255, 0.3));
}

.sanctum-rune-btn.sigil-ember .sanctum-rune-glyph,
.sanctum-tower-orb.sigil-ember {
  background: radial-gradient(circle, rgba(255, 129, 186, 1), rgba(255, 68, 153, 0.34));
}

.sanctum-rune-btn.sigil-halo .sanctum-rune-glyph,
.sanctum-tower-orb.sigil-halo {
  background: radial-gradient(circle, rgba(255, 227, 166, 1), rgba(245, 194, 106, 0.34));
}

.sanctum-rune-btn.is-filled,
.sanctum-rune-btn.is-queued {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 24px rgba(245, 194, 106, 0.12);
}

.sanctum-rune-btn.is-filled.sigil-moon,
.sanctum-rune-btn.is-queued.sigil-moon {
  border-color: rgba(113, 233, 255, 0.26);
}

.sanctum-rune-btn.is-filled.sigil-ember,
.sanctum-rune-btn.is-queued.sigil-ember {
  border-color: rgba(255, 108, 175, 0.26);
}

.sanctum-rune-btn.is-filled.sigil-halo,
.sanctum-rune-btn.is-queued.sigil-halo {
  border-color: rgba(245, 194, 106, 0.28);
}

.sanctum-sequence-rack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.sanctum-sequence-label {
  color: var(--muted);
}

.sanctum-sequence {
  position: static;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.sanctum-sequence span {
  width: 14px;
  height: 14px;
}

.sanctum-actions-panel .sanctum-panel-head {
  align-items: center;
}

.sanctum-action-state {
  max-width: 180px;
  font-size: 0.8rem;
  text-align: right;
}

.sanctum-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sanctum-action-btn {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sanctum-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.sanctum-action-btn.is-active {
  border-color: rgba(113, 233, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(113, 233, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(113, 233, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sanctum-action-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.sanctum-action-copy {
  min-width: 0;
}

.sanctum-action-copy small {
  display: block;
  font-size: 0.76rem;
}

.sanctum-primary-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sanctum-primary-btn {
  width: 100%;
  min-height: 52px;
  justify-content: center;
}

.sanctum-primary-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sanctum-memory {
  margin-top: 0;
}

.sanctum-scene {
  position: relative;
  min-height: 100%;
  cursor: none;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 78% 14%, rgba(245, 194, 106, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(22, 14, 35, 0.98), rgba(10, 7, 19, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 34px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.sanctum-scene::before,
.sanctum-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sanctum-scene::before {
  background:
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.66), transparent 34%),
    radial-gradient(circle at 12% 14%, rgba(113, 233, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(245, 194, 106, 0.12), transparent 28%);
  mix-blend-mode: screen;
}

.sanctum-scene::after {
  background:
    linear-gradient(180deg, rgba(5, 3, 12, 0.04), rgba(5, 3, 12, 0.42) 72%, rgba(5, 3, 12, 0.84));
  z-index: 8;
}

.sanctum-fx-canvas,
.sanctum-cursor,
.sanctum-scene-texture,
.sanctum-scene-haze,
.sanctum-scene-floor,
.sanctum-light-column,
.sanctum-drape,
.sanctum-bars-overlay,
.sanctum-prison,
.sanctum-tower,
.sanctum-object,
.sanctum-ambient-creature {
  position: absolute;
}

.sanctum-fx-canvas,
.sanctum-cursor,
.sanctum-scene-texture,
.sanctum-scene-haze,
.sanctum-scene-floor,
.sanctum-light-column,
.sanctum-drape,
.sanctum-bars-overlay,
.sanctum-prison,
.sanctum-object,
.sanctum-tower,
.sanctum-ambient-creature {
  pointer-events: none;
}

.sanctum-fx-canvas,
.sanctum-scene-texture,
.sanctum-scene-haze,
.sanctum-bars-overlay {
  inset: 0;
}

.sanctum-fx-canvas {
  z-index: 2;
}

.sanctum-cursor {
  z-index: 15;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06) 56%, transparent 72%);
  box-shadow: 0 0 18px rgba(245, 194, 106, 0.18), 0 0 32px rgba(113, 233, 255, 0.14);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sanctum-scene.is-cursor-active .sanctum-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sanctum-scene-texture {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 20, 0.66), rgba(12, 8, 20, 0.68)),
    url("../img/sanctum/wall-plastered-stone.jpg") center/cover no-repeat;
  opacity: 0.58;
  filter: saturate(0.8) contrast(1.04) brightness(0.72);
  transform: translate3d(calc(var(--sanctum-parallax-x) * -0.14), calc(var(--sanctum-parallax-y) * -0.1), 0) scale(1.04);
}

.sanctum-scene-haze {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 76% 28%, rgba(255, 108, 175, 0.12), transparent 22%),
    radial-gradient(circle at 16% 18%, rgba(113, 233, 255, 0.1), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.74;
}

.sanctum-scene-floor {
  left: -6%;
  right: -6%;
  bottom: -6%;
  height: 30%;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(58, 33, 74, 0.3), rgba(10, 7, 18, 0.96));
  border-radius: 50% 50% 0 0;
  box-shadow: inset 0 18px 30px rgba(255, 255, 255, 0.03);
}

.sanctum-light-column {
  left: 7%;
  top: 7%;
  width: 40%;
  height: 52%;
  z-index: 3;
  background: linear-gradient(180deg, rgba(188, 236, 255, 0.18), transparent 80%);
  clip-path: polygon(12% 0, 78% 0, 100% 100%, 0 100%);
  filter: blur(10px);
  opacity: 0.42;
}

.sanctum-drape {
  top: -2%;
  width: 22%;
  height: 42%;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(63, 26, 73, 0.82), rgba(29, 12, 40, 0.96));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  opacity: 0.7;
  transform-origin: top center;
  animation: sanctumCloth 6.8s ease-in-out infinite;
}

.sanctum-drape-left {
  left: -4%;
}

.sanctum-drape-right {
  right: -3%;
  animation-delay: -2.4s;
}

.sanctum-bars-overlay {
  z-index: 11;
  opacity: 0;
  background:
    linear-gradient(90deg,
      transparent 0 4%,
      rgba(196, 213, 255, 0.14) 4% 6%,
      transparent 6% 18%,
      rgba(196, 213, 255, 0.12) 18% 20%,
      transparent 20% 32%,
      rgba(196, 213, 255, 0.12) 32% 34%,
      transparent 34% 46%,
      rgba(196, 213, 255, 0.14) 46% 48%,
      transparent 48% 100%);
  mix-blend-mode: screen;
  transition: opacity 240ms ease;
}

.sanctum-object {
  z-index: 6;
  border: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
  transform: translate3d(calc(var(--sanctum-parallax-x) * 0.26), calc(var(--sanctum-parallax-y) * 0.18), 0);
}

.sanctum-object::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sanctum-fill, linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55)));
  -webkit-mask: var(--sanctum-icon) center / contain no-repeat;
  mask: var(--sanctum-icon) center / contain no-repeat;
}

.sanctum-object span {
  bottom: -26px;
}

.sanctum-window-mark {
  left: 10%;
  top: 9%;
  width: 72px;
  height: 72px;
  --sanctum-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Crect%20x%3D%2718%27%20y%3D%2712%27%20width%3D%2760%27%20height%3D%2772%27%20rx%3D%2710%27%20fill%3D%27black%27%2F%3E%3Crect%20x%3D%2728%27%20y%3D%2722%27%20width%3D%278%27%20height%3D%2752%27%20rx%3D%272%27%20fill%3D%27white%27%2F%3E%3Crect%20x%3D%2744%27%20y%3D%2722%27%20width%3D%278%27%20height%3D%2752%27%20rx%3D%272%27%20fill%3D%27white%27%2F%3E%3Crect%20x%3D%2760%27%20y%3D%2722%27%20width%3D%278%27%20height%3D%2752%27%20rx%3D%272%27%20fill%3D%27white%27%2F%3E%3Crect%20x%3D%2728%27%20y%3D%2742%27%20width%3D%2740%27%20height%3D%278%27%20rx%3D%272%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E");
  --sanctum-fill: linear-gradient(180deg, rgba(191, 236, 255, 0.96), rgba(105, 197, 255, 0.46));
}

.sanctum-window-mark::before {
  background: var(--sanctum-fill);
  -webkit-mask: var(--sanctum-icon) center / contain no-repeat;
  mask: var(--sanctum-icon) center / contain no-repeat;
}

.sanctum-cauldron-mark {
  left: 8%;
  bottom: 10%;
  width: 104px;
  height: 94px;
  --sanctum-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M26%2034h44c0%2020-6%2034-22%2034S26%2054%2026%2034Z%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M34%2032c0-8%206-14%2014-14s14%206%2014%2014%27%20stroke%3D%27black%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M22%2040c-8%200-10%206-10%2010%27%20stroke%3D%27black%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M74%2040c8%200%2010%206%2010%2010%27%20stroke%3D%27black%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M36%2066l-6%2014M60%2066l6%2014%27%20stroke%3D%27black%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
  --sanctum-fill: linear-gradient(180deg, rgba(255, 146, 198, 0.96), rgba(162, 68, 139, 0.58));
}

.sanctum-cauldron-mark::before {
  background: var(--sanctum-fill);
  -webkit-mask: var(--sanctum-icon) center / contain no-repeat;
  mask: var(--sanctum-icon) center / contain no-repeat;
}

.sanctum-cauldron-mark::after {
  content: none;
}

.sanctum-cauldron-bubbles {
  position: absolute;
  left: 24%;
  top: -6%;
  width: 54%;
  height: 42%;
  background:
    radial-gradient(circle at 14% 80%, rgba(255, 199, 227, 0.84), transparent 20%),
    radial-gradient(circle at 50% 38%, rgba(255, 150, 209, 0.92), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(255, 241, 190, 0.88), transparent 18%);
  filter: blur(2px);
  animation: sanctumBubbleLift 3.4s ease-in-out infinite;
}

.sanctum-grimoire-mark {
  right: 14%;
  bottom: 18%;
  width: 86px;
  height: 76px;
  --sanctum-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M20%2018h48c8%200%2012%204%2012%2012v44c0%206-4%2010-10%2010H26c-4%200-6-2-6-6V18Z%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M34%2018v60%27%20stroke%3D%27white%27%20stroke-width%3D%276%27%2F%3E%3Cpath%20d%3D%27M44%2034h22M44%2048h18M44%2062h20%27%20stroke%3D%27white%27%20stroke-width%3D%276%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
  --sanctum-fill: linear-gradient(180deg, rgba(255, 225, 171, 0.98), rgba(137, 71, 38, 0.64));
}

.sanctum-grimoire-mark::before {
  background: var(--sanctum-fill);
  -webkit-mask: var(--sanctum-icon) center / contain no-repeat;
  mask: var(--sanctum-icon) center / contain no-repeat;
}

.sanctum-secret-door-mark {
  right: 28%;
  bottom: 11%;
  width: 72px;
  height: 84px;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
  --sanctum-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M22%2082V34l26-20%2026%2020v48H22Z%27%20fill%3D%27black%27%2F%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2752%27%20r%3D%274%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E");
  --sanctum-fill: linear-gradient(180deg, rgba(255, 219, 150, 0.96), rgba(117, 58, 33, 0.64));
}

.sanctum-secret-door-mark::before {
  background: var(--sanctum-fill);
  -webkit-mask: var(--sanctum-icon) center / contain no-repeat;
  mask: var(--sanctum-icon) center / contain no-repeat;
}

.sanctum-prison {
  inset: 0;
  z-index: 9;
}

.sanctum-chain {
  top: 16%;
  color: rgba(255, 238, 210, 0.66);
}

.sanctum-chain-left {
  right: 22%;
}

.sanctum-chain-right {
  right: 8%;
}

.sanctum-lock,
.sanctum-key,
.sanctum-door,
.sanctum-secret {
  z-index: 10;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.sanctum-lock::before,
.sanctum-key::before,
.sanctum-door::before,
.sanctum-secret::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 230, 179, 0.98), rgba(174, 112, 58, 0.66));
}

.sanctum-lock::after,
.sanctum-key::after,
.sanctum-door::after,
.sanctum-secret::after {
  content: none;
}

.sanctum-lock {
  right: 13%;
  top: 27%;
  filter: drop-shadow(0 0 22px rgba(245, 194, 106, 0.16));
}

.sanctum-lock::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Crect%20x%3D%2724%27%20y%3D%2742%27%20width%3D%2748%27%20height%3D%2738%27%20rx%3D%2710%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M34%2042V30c0-10%206-16%2014-16s14%206%2014%2016v12%27%20stroke%3D%27black%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2758%27%20r%3D%276%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Crect%20x%3D%2724%27%20y%3D%2742%27%20width%3D%2748%27%20height%3D%2738%27%20rx%3D%2710%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M34%2042V30c0-10%206-16%2014-16s14%206%2014%2016v12%27%20stroke%3D%27black%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2758%27%20r%3D%276%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.sanctum-key {
  left: 42%;
  top: 11%;
  filter: drop-shadow(0 0 20px rgba(245, 194, 106, 0.32));
  animation: floatIdle 2.8s ease-in-out infinite;
}

.sanctum-key::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Ccircle%20cx%3D%2728%27%20cy%3D%2748%27%20r%3D%2714%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M40%2048h30l6-8v16l-6-4-6%206-6-4-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Ccircle%20cx%3D%2728%27%20cy%3D%2748%27%20r%3D%2714%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M40%2048h30l6-8v16l-6-4-6%206-6-4-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%2710%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.sanctum-door {
  right: 31%;
  bottom: 14%;
  width: 62px;
  height: 62px;
  opacity: 0.78;
}

.sanctum-door::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M24%2080V34l24-18%2024%2018v46H24Z%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M32%2080V40l16-12%2016%2012v40%27%20stroke%3D%27white%27%20stroke-width%3D%276%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M24%2080V34l24-18%2024%2018v46H24Z%27%20fill%3D%27black%27%2F%3E%3Cpath%20d%3D%27M32%2080V40l16-12%2016%2012v40%27%20stroke%3D%27white%27%20stroke-width%3D%276%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.sanctum-door.is-open {
  filter: drop-shadow(0 0 26px rgba(245, 194, 106, 0.42));
}

.sanctum-secret {
  right: 34%;
  bottom: 27%;
  width: 46px;
  height: 46px;
}

.sanctum-secret::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 220, 168, 0.82), rgba(255, 220, 168, 0));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M48%2018c16%200%2028%2012%2028%2028S64%2074%2048%2074%2020%2062%2020%2046%2032%2018%2048%2018Zm0%2012c-10%200-16%206-16%2016s6%2016%2016%2016%2016-6%2016-16S58%2030%2048%2030Z%27%20fill%3D%27black%27%2F%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2746%27%20r%3D%276%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M48%2018c16%200%2028%2012%2028%2028S64%2074%2048%2074%2020%2062%2020%2046%2032%2018%2048%2018Zm0%2012c-10%200-16%206-16%2016s6%2016%2016%2016%2016-6%2016-16S58%2030%2048%2030Z%27%20fill%3D%27black%27%2F%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2746%27%20r%3D%276%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.sanctum-tower {
  right: 8%;
  bottom: 11%;
  width: 142px;
  height: 188px;
  z-index: 7;
  border-radius: 26px 26px 18px 18px;
  background:
    linear-gradient(180deg, rgba(18, 12, 30, 0.98), rgba(8, 6, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 32px rgba(0, 0, 0, 0.32);
  transform: translate3d(calc(var(--sanctum-parallax-x) * -0.2), calc(var(--sanctum-parallax-y) * -0.12), 0);
}

.sanctum-tower::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -44px;
  width: 86px;
  height: 58px;
  background: linear-gradient(180deg, rgba(40, 18, 57, 0.98), rgba(17, 10, 29, 0.98));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.sanctum-tower-core {
  position: absolute;
  inset: 16px 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(30, 18, 48, 0.96), rgba(12, 8, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sanctum-tower-orb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 18px rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.sanctum-tower-orb.sigil-moon {
  left: 18px;
  top: 36px;
}

.sanctum-tower-orb.sigil-ember {
  right: 18px;
  top: 64px;
}

.sanctum-tower-orb.sigil-halo {
  left: 46px;
  bottom: 28px;
}

.sanctum-tower-orb.is-active,
.sanctum-tower-orb.is-armed {
  transform: scale(1.15);
}

.sanctum-ambient-creature {
  z-index: 5;
  width: 28px;
  height: 18px;
  opacity: 0.16;
  background:
    radial-gradient(circle at 25% 50%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 75% 50%, rgba(255, 255, 255, 0.9), transparent 20%);
  filter: blur(0.5px);
  animation: sanctumCreature 14s linear infinite;
}

.sanctum-ambient-creature-a {
  top: 22%;
  right: 24%;
}

.sanctum-ambient-creature-b {
  top: 44%;
  left: 18%;
  animation-delay: -6.4s;
}

.sanctum-sprite,
.sanctum-angel-sprite {
  z-index: 12;
  transition-duration: 220ms;
}

.sanctum-sprite {
  right: 8%;
  bottom: 7%;
  width: 86px;
}

.sanctum-sprite[data-pose="captive"] {
  right: 10%;
  bottom: 10%;
  width: 88px;
  transform: translateY(3px) scale(0.94);
}

.sanctum-sprite[data-pose="release"] {
  right: 28%;
  top: 16%;
  bottom: auto;
  width: 76px;
  transform: rotate(-7deg);
}

.sanctum-sprite[data-pose="tower"] {
  right: 7%;
  bottom: 8%;
  width: 86px;
}

.sanctum-sprite[data-pose="window"] {
  left: 12%;
  top: 14%;
  right: auto;
  bottom: auto;
  width: 68px;
  transform: rotate(-5deg);
}

.sanctum-sprite[data-pose="cauldron"] {
  left: 13%;
  bottom: 17%;
  right: auto;
  top: auto;
  width: 76px;
  transform: rotate(-3deg);
}

.sanctum-sprite[data-pose="grimoire"] {
  right: 22%;
  bottom: 24%;
  left: auto;
  top: auto;
  width: 74px;
  transform: rotate(-7deg);
}

.sanctum-sprite[data-pose="secret"] {
  right: 32%;
  top: 16%;
  bottom: auto;
  width: 74px;
}

.sanctum-sprite[data-pose="duo"] {
  right: 28%;
  top: 18%;
  bottom: auto;
  width: 72px;
}

.sanctum-angel-sprite {
  left: 7%;
  top: 13%;
  width: 68px;
  filter: drop-shadow(0 14px 20px rgba(255, 225, 171, 0.24));
}

.sanctum-angel-sprite[data-pose="clue"] {
  left: 38%;
  top: 14%;
  width: 62px;
}

.sanctum-angel-sprite[data-pose="grimoire"] {
  right: 35%;
  left: auto;
  top: 12%;
  width: 62px;
}

.sanctum-angel-sprite[data-pose="tower"] {
  left: 36%;
  top: 21%;
  width: 64px;
}

.sanctum-angel-sprite[data-pose="duo"] {
  left: 40%;
  top: 17%;
  width: 66px;
}

.sanctum-pocket.is-captive .sanctum-scene {
  background:
    radial-gradient(circle at 78% 14%, rgba(113, 233, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(18, 12, 31, 0.98), rgba(8, 6, 15, 0.99));
}

.sanctum-pocket.is-captive .sanctum-scene-texture {
  filter: saturate(0.54) contrast(1.08) brightness(0.56);
}

.sanctum-pocket.is-captive .sanctum-scene-haze {
  opacity: 0.5;
}

.sanctum-pocket.is-captive .sanctum-light-column {
  opacity: 0.24;
}

.sanctum-pocket.is-captive .sanctum-bars-overlay {
  opacity: 0.72;
}

.sanctum-pocket.is-captive .sanctum-cauldron-mark {
  opacity: 0.72;
}

.sanctum-pocket.is-captive .sanctum-secret-door-mark,
.sanctum-pocket.is-captive .sanctum-door,
.sanctum-pocket.is-captive .sanctum-secret {
  opacity: 0;
}

.sanctum-pocket.is-solved .sanctum-secret-door-mark,
.sanctum-pocket.is-solved .sanctum-door:not([hidden]) {
  opacity: 1;
}

.sanctum-scene[data-phase="hideout"] .sanctum-secret-door-mark,
.sanctum-scene[data-phase="hideout"] .sanctum-secret:not([hidden]) {
  opacity: 1;
}

.sanctum-scene[data-phase="hideout"] .sanctum-bars-overlay {
  opacity: 0;
}

.sanctum-scene[data-phase="hideout"] .sanctum-light-column {
  opacity: 0.58;
}

.sanctum-scene[data-phase="hideout"] .sanctum-scene-haze {
  opacity: 0.86;
}

.sanctum-scene[data-active-clue="window"] .sanctum-window-mark,
.sanctum-scene[data-active-clue="cauldron"] .sanctum-cauldron-mark,
.sanctum-scene[data-active-clue="grimoire"] .sanctum-grimoire-mark {
  filter: drop-shadow(0 0 18px rgba(245, 194, 106, 0.22));
}

.sanctum-scene[data-active-clue="window"] .sanctum-window-mark span,
.sanctum-scene[data-active-clue="cauldron"] .sanctum-cauldron-mark span,
.sanctum-scene[data-active-clue="grimoire"] .sanctum-grimoire-mark span {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.sanctum-scene[data-hint-rune="moon"] .sanctum-tower-orb.sigil-moon,
.sanctum-scene[data-hint-rune="ember"] .sanctum-tower-orb.sigil-ember,
.sanctum-scene[data-hint-rune="halo"] .sanctum-tower-orb.sigil-halo {
  transform: scale(1.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 22px rgba(255, 255, 255, 0.16);
}

@keyframes sanctumCloth {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes sanctumBubbleLift {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-7px) scale(1.04);
    opacity: 1;
  }
}

@keyframes sanctumCreature {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12%,
  84% {
    opacity: 0.16;
  }
  100% {
    transform: translate3d(84px, -28px, 0);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .sanctum-pocket {
    grid-template-columns: 1fr;
  }

  .sanctum-scene {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .sanctum-step-list,
  .sanctum-action-grid,
  .sanctum-rune-board {
    grid-template-columns: 1fr;
  }

  .sanctum-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sanctum-action-state {
    max-width: none;
    text-align: left;
  }
}

.radar-pocket {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
  background:
    radial-gradient(circle at 84% 18%, rgba(113, 233, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(18, 12, 31, 0.98), rgba(14, 8, 25, 0.9));
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.radar-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.radar-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radar-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.radar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  color: var(--gold-soft);
  font-weight: 700;
}

.hero-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeMove 20s linear infinite;
}

.marquee-track span {
  font-family: var(--font-body);
  font-size: clamp(3.9rem, 9vw, 6.8rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff, #f4ddff 36%, #ff9ed1 70%, #91f6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(159, 107, 255, 0.24), 0 0 44px rgba(255, 77, 163, 0.12);
}

.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-status-grid,
.world-metrics,
.info-grid,
.schedule-grid,
.social-grid,
.ritual-grid,
.support-grid,
.control-grid,
.world-columns,
.reward-grid,
.achievement-list {
  display: grid;
  gap: 16px;
}

.hero-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
}

.status-pill,
.metric-card,
.schedule-card,
.relic-card,
.lore-card,
.control-card,
.support-card,
.social-card,
.achievement-item,
.notice-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill {
  padding: 18px;
}

.status-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
}

.status-pill strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta-primary {
  background: linear-gradient(90deg, var(--purple-deep), var(--pink));
  color: #fff;
  box-shadow: 0 0 26px rgba(159, 107, 255, 0.36), 0 0 42px rgba(255, 77, 163, 0.2);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(113, 233, 255, 0.28);
  color: var(--cyan);
}

.cta-ghost {
  background: rgba(245, 194, 106, 0.12);
  border: 1px solid rgba(245, 194, 106, 0.24);
  color: var(--gold-soft);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.art-card,
.discord-card {
  min-height: 310px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.art-card {
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(5, 1, 13, 0.3), rgba(5, 1, 13, 0.9) 74%),
    url("../img/hero/demonyza-anjinha-forest.jpg") center/cover no-repeat;
  opacity: 0.88;
  z-index: -2;
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 38%, rgba(245, 194, 106, 0.18), transparent 22%);
  z-index: -1;
}

.art-copy {
  width: min(54%, 360px);
}

.art-copy h1,
.section-head h2,
.credit-panel h2,
.world-header h2,
.angel-copy h3,
.info-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.15;
}

.art-copy p,
.section-lead,
.info-card p,
.credit-note,
.world-header p,
.lore-card p,
.support-card p,
.social-card p,
.notice-card p {
  color: var(--muted);
  line-height: 1.8;
}

.art-copy p {
  margin: 14px 0 0;
}

.art-portrait {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: min(48%, 380px);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.38));
}

.discord-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.discord-copy h2 {
  margin: 0;
  font-size: 1.5rem;
}

.discord-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.discord-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 23, 36, 0.78);
  min-height: 620px;
}

.discord-widget iframe {
  display: block;
  width: 100%;
  height: 620px;
  min-height: 620px;
  border: 0;
}

.inline-link {
  justify-self: start;
  color: var(--cyan);
  font-weight: 700;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  align-items: start;
}

.info-card,
.schedule-section,
.social-section,
.ritual-section,
.support-section,
.credit-panel {
  padding: 28px;
}

.info-card {
  min-height: 268px;
}

.info-card p {
  margin-bottom: 0;
}

.avatar-lore-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(245, 194, 106, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.avatar-lore-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 340px);
  gap: 24px;
  align-items: end;
  min-height: 310px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 108, 175, 0.12), transparent 30%),
    radial-gradient(circle at 78% 38%, rgba(245, 194, 106, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
}

.avatar-lore-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.avatar-lore-copy h3 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.7rem, 2vw, 2.45rem);
  line-height: 1.04;
}

.avatar-lore-copy p {
  margin: 0;
  max-width: 60ch;
  color: rgba(226, 217, 240, 0.84);
  line-height: 1.8;
}

.avatar-lore-figure {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(18, 12, 30, 0.54), rgba(10, 8, 18, 0.08));
}

.avatar-lore-figure::before {
  content: "";
  position: absolute;
  inset: auto 8% -18% 8%;
  height: 68%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 194, 106, 0.18), rgba(255, 108, 175, 0.08) 48%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.avatar-lore-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 292px);
  max-height: 360px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.32));
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-lead {
  margin: 0;
}

.page-relic {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(245, 194, 106, 0.34);
  background: radial-gradient(circle at 30% 30%, rgba(255, 240, 214, 0.3), rgba(245, 194, 106, 0.18) 45%, rgba(18, 11, 31, 0.9));
  box-shadow: 0 0 18px rgba(245, 194, 106, 0.28), 0 0 42px rgba(255, 77, 163, 0.1);
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 3;
}

.page-relic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28)) brightness(1.08) contrast(1.06);
}

.page-relic[data-relic-id="rose"] img {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.08)) brightness(1.3) contrast(1.12);
}

.page-relic:hover {
  transform: translateY(-2px) scale(1.03);
}

.page-relic.is-found {
  opacity: 0;
  pointer-events: none;
}

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

.schedule-card,
.support-card,
.social-card,
.relic-card,
.notice-card,
.metric-card,
.lore-card,
.control-card,
.achievement-item {
  padding: 20px;
}

.schedule-card span,
.support-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.schedule-card strong,
.support-card strong,
.social-card strong,
.metric-card strong {
  display: block;
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.schedule-card p,
.support-card p,
.social-card p,
.notice-card p,
.metric-card span,
.lore-card p,
.achievement-item p {
  margin: 0;
}

.notice-card {
  margin-top: 18px;
}

.ritual-bonus {
  margin: 0 0 18px;
}

.portal-emblem {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-icon {
  width: 84px;
  height: 84px;
  padding: 14px;
}

.notice-card h3,
.support-card strong,
.social-card h3,
.relic-card h3,
.lore-card h3,
.reward-copy h3,
.timeline-card h3,
.angel-copy h3 {
  margin: 0 0 8px;
}

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

.social-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 230px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.social-card:hover,
.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.icon-badge,
.relic-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
}

.icon-badge {
  width: 72px;
  height: 72px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.icon-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.relic-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(245, 194, 106, 0.14), transparent 35%);
}

.relic-icon {
  width: 96px;
  height: 96px;
  padding: 16px;
  background: radial-gradient(circle, rgba(255, 247, 236, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.relic-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.relic-state {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.relic-state.is-found {
  background: rgba(113, 233, 255, 0.12);
  color: var(--cyan);
}

.ritual-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ritual-footer p {
  margin: 0;
  color: var(--soft);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 24px;
}

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

.support-card {
  min-height: 220px;
}

.credit-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at bottom right, rgba(255, 77, 163, 0.14), transparent 32%);
}

.credit-panel strong {
  color: var(--soft);
}

.credit-note {
  margin-top: 12px;
}

.footer-bar {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 36px;
  padding: 0 18px;
}

.footer-bar p {
  margin: 0;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(231, 221, 242, 0.8);
}

.companion-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.companion,
.ash-mark,
.companion-bubble,
.toast {
  position: fixed;
}

.companion {
  left: 0;
  top: 0;
  width: 124px;
  height: 124px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, filter, opacity;
}

.companion::before {
  content: "";
  position: absolute;
  inset: 16px 14px 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--companion-aura-primary, rgba(255, 103, 173, 0.4)), rgba(255, 103, 173, 0) 64%),
    radial-gradient(circle at 70% 20%, var(--companion-aura-secondary, rgba(245, 194, 106, 0.36)), transparent 42%);
  filter: blur(12px);
  opacity: var(--companion-aura, 0.7);
  transform: scale(1.02);
  transition: opacity 180ms ease, transform 180ms ease;
}

.companion img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform:
    translate3d(var(--companion-look-x, 0px), calc(var(--companion-look-y, 0px) + var(--companion-bob, 0px)), 0)
    scaleX(var(--companion-face, 1))
    rotate(var(--companion-sprite-tilt, 0deg))
    scale(var(--companion-scale, 1));
  transform-origin: 50% 68%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 24px rgba(255, 77, 163, 0.24));
  transition: transform 120ms linear, filter 180ms ease, opacity 160ms ease;
}

.angel-companion {
  width: 132px;
  height: 132px;
  z-index: 59;
}

.angel-companion::before {
  background:
    radial-gradient(circle, rgba(255, 220, 168, 0.46), rgba(255, 220, 168, 0) 64%),
    radial-gradient(circle at 32% 20%, rgba(113, 233, 255, 0.3), transparent 42%);
}

.angel-companion img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 24px rgba(255, 220, 168, 0.28));
}

.companion.is-hit img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 32px rgba(245, 194, 106, 0.32)) brightness(1.08);
}

.companion.is-escaping::before {
  opacity: 1;
  transform: scale(1.14);
}

.companion.is-invulnerable {
  pointer-events: none;
}

.companion.is-invulnerable img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 28px rgba(113, 233, 255, 0.22)) saturate(1.08);
}

.companion-bubble {
  max-width: min(320px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 12, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  color: var(--soft);
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), 0) scale(0.96) translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.companion-bubble.is-visible {
  opacity: 1;
  transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), 0) scale(1) translateY(0);
}

.companion-bubble.is-hiding {
  opacity: 0;
  transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), 0) scale(0.98) translateY(6px);
}

.angel-bubble {
  background: rgba(26, 18, 39, 0.96);
  border-color: rgba(255, 220, 168, 0.18);
  color: #fff5ea;
}

.companion-mood-chip {
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--mood-bg, rgba(15, 9, 26, 0.94));
  border: 1px solid var(--mood-border, rgba(255, 255, 255, 0.1));
  box-shadow: var(--shadow-md), 0 0 22px var(--mood-glow, rgba(255, 255, 255, 0));
  color: var(--mood-text, var(--soft));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--mood-x, 0px), var(--mood-y, 0px), 0) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.companion-mood-chip.is-visible {
  opacity: 1;
  transform: translate3d(var(--mood-x, 0px), var(--mood-y, 0px), 0) scale(1);
}

.angel-cinematic {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 220, 168, 0.12), rgba(7, 4, 14, 0.72));
}

.angel-cinematic-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 220, 168, 0.24);
  background: rgba(19, 12, 31, 0.92);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36), 0 0 32px rgba(255, 220, 168, 0.14);
  text-align: center;
}

.angel-cinematic-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.angel-cinematic-card p:last-child {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.ash-mark {
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  gap: 6px;
  width: 90px;
  padding: 10px 10px 12px;
  border-radius: 24px;
  pointer-events: auto;
  background: rgba(15, 10, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  transform: translate3d(var(--ash-x, 0px), var(--ash-y, 0px), 0);
}

.ash-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.94;
}

.ash-mark span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ash-mark.is-ready {
  border-color: rgba(245, 194, 106, 0.34);
  box-shadow: 0 0 0 1px rgba(245, 194, 106, 0.16), 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 26px rgba(245, 194, 106, 0.24);
}

.toast {
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100vw - 36px));
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(16, 10, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  z-index: 80;
}

.toast strong {
  display: block;
  margin-bottom: 6px;
}

.toast p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.world-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.world-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 2, 12, 0.78);
}

.world-panel {
  position: relative;
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 28px;
  overflow: auto;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 7, 23, 0.98), rgba(19, 10, 34, 0.96)),
    radial-gradient(circle at top right, rgba(245, 194, 106, 0.12), transparent 26%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52);
}

.world-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.world-header h2 {
  margin-bottom: 10px;
}

.close-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.6rem;
  line-height: 1;
}

.world-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tab-btn {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.tab-btn.is-active {
  color: var(--cyan);
  border-color: rgba(113, 233, 255, 0.3);
  background: rgba(113, 233, 255, 0.08);
}

.world-content {
  margin-top: 24px;
}

.world-tab {
  display: none;
}

.world-tab.is-active {
  display: block;
}

.world-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.world-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.timeline-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.timeline-list article {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.reward-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.reward-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 220, 168, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.reward-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(8, 4, 16, 0), rgba(8, 4, 16, 0.62));
  pointer-events: none;
}

.reward-media {
  position: relative;
  min-height: 410px;
  display: grid;
  align-items: end;
  padding: 28px 22px 0;
}

.reward-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: filter 220ms ease, transform 220ms ease;
}

.reward-card.is-locked img {
  filter: blur(14px) saturate(0.72);
  transform: scale(1.04);
}

.reward-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 24, 0.72);
}

.reward-copy h3 {
  margin: 0;
}

.reward-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reward-lock {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 8, 24, 0.88);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reward-card:not(.is-locked) .reward-lock {
  color: var(--cyan);
}

.achievement-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.achievement-item strong {
  display: block;
  margin-bottom: 6px;
}

.achievement-item p {
  color: var(--muted);
  line-height: 1.65;
}

.achievement-item.is-empty {
  grid-column: 1 / -1;
}

.emotion-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 280px);
  gap: 18px;
  align-items: stretch;
}

.emotion-spotlight-copy,
.emotion-spotlight-preview,
.emotion-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.emotion-spotlight-copy {
  padding: 24px;
}

.emotion-spotlight-copy h3 {
  margin-bottom: 10px;
}

.emotion-spotlight-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.emotion-spotlight-preview {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 103, 173, 0.18), transparent 46%),
    radial-gradient(circle at 68% 20%, rgba(245, 194, 106, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.emotion-spotlight-preview img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.36));
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.emotion-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.emotion-card:hover {
  transform: translateY(-2px);
}

.emotion-card.is-active {
  border-color: rgba(245, 194, 106, 0.34);
  box-shadow: 0 0 0 1px rgba(245, 194, 106, 0.16), 0 16px 32px rgba(0, 0, 0, 0.24);
}

.emotion-card figure {
  display: grid;
  place-items: center;
  min-height: 148px;
  margin: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 103, 173, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.03);
}

.emotion-card img {
  width: min(100%, 136px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
}

.emotion-card h4,
.emotion-card p,
.emotion-card small {
  margin: 0;
}

.emotion-card p {
  color: var(--muted);
  line-height: 1.6;
}

.emotion-card small {
  color: rgba(231, 221, 242, 0.7);
  letter-spacing: 0.04em;
}

.emotion-card.is-locked figure {
  background: rgba(255, 255, 255, 0.02);
}

.emotion-card.is-locked img {
  opacity: 0.18;
  filter: grayscale(1) blur(2px);
  transform: scale(0.94);
}

.emotion-badge {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.relic-detail {
  display: flex;
  align-items: center;
  gap: 18px;
}

.relic-detail strong {
  margin-left: auto;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice-card.compact {
  margin-top: 18px;
}

.angel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: stretch;
}

.angel-preview {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 220, 168, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.angel-preview img {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.28));
}

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

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.switch-card input {
  width: 24px;
  height: 24px;
  accent-color: var(--pink);
}

.control-card p {
  margin: 8px 0 14px;
}

.control-card.danger {
  background: rgba(255, 106, 133, 0.07);
}

.ghost-btn-danger {
  border-color: rgba(255, 106, 133, 0.22);
  color: #ffd3dc;
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes auraShift {
  50% {
    transform: translate(20px, 24px) scale(1.07);
  }
}

@keyframes floatGentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseBurst {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1140px) {
  .hero,
  .support-layout,
  .angel-panel,
  .emotion-spotlight {
    grid-template-columns: 1fr;
  }

  .sanctum-pocket {
    grid-template-columns: 1fr;
  }

  .sanctum-copy-head {
    flex-wrap: wrap;
  }

  .art-copy {
    width: min(60%, 380px);
  }

  .world-columns,
  .achievement-list,
  .emotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    top: 0;
    margin-top: 0;
    border-radius: 0 0 22px 22px;
  }

  .hero,
  .info-grid,
  .schedule-grid,
  .social-grid,
  .ritual-grid,
  .support-grid,
  .world-metrics,
  .world-columns,
  .reward-grid,
  .control-grid,
  .achievement-list,
  .emotion-grid,
  .emotion-spotlight {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-status-grid {
    grid-template-columns: 1fr;
  }

  .radar-grid {
    grid-template-columns: 1fr;
  }

  .radar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .art-card {
    min-height: 520px;
    padding-bottom: 220px;
  }

  .reward-media {
    min-height: 360px;
    padding-inline: 18px;
  }

  .art-copy {
    width: 100%;
  }

  .art-portrait {
    width: min(72%, 320px);
    right: 50%;
    transform: translateX(50%);
  }

  .world-panel {
    padding: 22px 18px;
    width: calc(100vw - 12px);
    margin: 6px;
  }

  .page-relic,
  .companion,
  .ash-mark {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 12px;
  }

  .avatar-lore-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .avatar-lore-copy h3 {
    max-width: 14ch;
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .avatar-lore-figure {
    min-height: 250px;
  }

  .avatar-lore-figure img {
    max-height: 300px;
  }

  .discord-widget {
    min-height: 540px;
  }

  .discord-widget iframe {
    height: 540px;
    min-height: 540px;
  }

  .hero,
  .info-card,
  .schedule-section,
  .social-section,
  .ritual-section,
  .support-section,
  .credit-panel {
    padding: 22px 18px;
  }

  .hero-actions,
  .ritual-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    justify-content: flex-start;
  }

  .portal-emblem {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Refugio Arcano 2.2 */

.sanctum-pocket {
  grid-template-columns: 1fr;
  gap: 16px;
  min-height: 0;
  padding: 18px;
}

.sanctum-scene {
  order: -1;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 1.88 / 1;
  cursor: default;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 14%, rgba(245, 194, 106, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(22, 14, 35, 0.98), rgba(10, 7, 19, 0.99));
}

.sanctum-copy {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.sanctum-copy-head,
#sanctumTitle,
#sanctumStatus,
#sanctumHintLine,
.sanctum-step-list,
.sanctum-memory {
  grid-column: 1 / -1;
}

#sanctumStatus,
#sanctumHintLine {
  max-width: 64ch;
}

.sanctum-objective-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(113, 233, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(113, 233, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 108, 175, 0.08), transparent 48%);
}

.sanctum-objective-copy {
  display: grid;
  gap: 6px;
}

.sanctum-objective-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.sanctum-objective-copy p {
  margin: 0;
  max-width: 56ch;
  color: rgba(226, 217, 240, 0.84);
  font-size: 0.84rem;
  line-height: 1.5;
}

.sanctum-progress-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sanctum-progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 10, 24, 0.72);
  color: rgba(255, 247, 228, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sanctum-step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sanctum-step-card {
  appearance: none;
  min-height: 0;
  width: 100%;
  padding: 11px 12px 12px;
  text-align: left;
  cursor: pointer;
}

.sanctum-step-card strong {
  font-size: 0.86rem;
}

.sanctum-step-card p {
  margin: 6px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.sanctum-step-index {
  margin-bottom: 6px;
}

.sanctum-step-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 8, 18, 0.56);
  color: rgba(226, 217, 240, 0.86);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sanctum-step-card.is-current .sanctum-step-state {
  border-color: rgba(113, 233, 255, 0.3);
  background: rgba(113, 233, 255, 0.12);
  color: rgba(210, 248, 255, 0.96);
}

.sanctum-step-card.is-complete .sanctum-step-state {
  border-color: rgba(245, 194, 106, 0.28);
  background: rgba(245, 194, 106, 0.12);
  color: rgba(255, 244, 219, 0.96);
}

.sanctum-step-card.is-locked {
  opacity: 0.54;
  background:
    linear-gradient(180deg, rgba(23, 16, 37, 0.92), rgba(10, 8, 17, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sanctum-ritual-panel {
  grid-column: 1 / span 5;
  border-color: rgba(113, 233, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(113, 233, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(113, 233, 255, 0.08), transparent 44%);
}

.sanctum-actions-panel {
  grid-column: 6 / -1;
  border-color: rgba(245, 194, 106, 0.16);
  background:
    linear-gradient(180deg, rgba(245, 194, 106, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(245, 194, 106, 0.08), transparent 44%);
}

.sanctum-panel {
  padding: 14px 15px 15px;
}

.sanctum-panel-head {
  margin-bottom: 10px;
}

.sanctum-panel-note {
  margin: 0 0 12px;
  color: rgba(226, 217, 240, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sanctum-rune-board {
  gap: 8px;
}

.sanctum-rune-btn {
  min-height: 88px;
}

.sanctum-rune-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sanctum-sequence-rack {
  margin-top: 12px;
}

.sanctum-actions-panel .sanctum-panel-head {
  align-items: flex-start;
}

.sanctum-action-state {
  max-width: 220px;
  font-size: 0.78rem;
  text-align: right;
}

.sanctum-action-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.sanctum-action-btn {
  min-height: 68px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 11px 12px;
}

.sanctum-action-btn.is-complete {
  border-color: rgba(245, 194, 106, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 194, 106, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sanctum-action-btn.is-complete .sanctum-action-number {
  border-color: rgba(245, 194, 106, 0.34);
  background: rgba(245, 194, 106, 0.16);
  color: rgba(255, 247, 228, 0.96);
}

.sanctum-primary-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 108, 175, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 108, 175, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 108, 175, 0.08), transparent 44%);
}

.sanctum-primary-label {
  margin: 0;
}

.sanctum-primary-btn {
  width: 100%;
  justify-content: center;
}

#sanctumPrimaryHint {
  margin: 0;
  color: rgba(226, 217, 240, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sanctum-bars-overlay {
  background:
    linear-gradient(90deg,
      transparent 0 12%,
      rgba(196, 213, 255, 0.12) 12% 13.2%,
      transparent 13.2% 28%,
      rgba(196, 213, 255, 0.1) 28% 29.2%,
      transparent 29.2% 44%,
      rgba(196, 213, 255, 0.12) 44% 45.4%,
      transparent 45.4% 60%,
      rgba(196, 213, 255, 0.08) 60% 61.2%,
      transparent 61.2% 100%);
}

.sanctum-chain {
  pointer-events: none;
}

.sanctum-object,
.sanctum-lock,
.sanctum-key,
.sanctum-door,
.sanctum-secret {
  pointer-events: auto;
}

.sanctum-object {
  z-index: 11;
  display: grid;
  place-items: center;
  align-items: end;
  padding: 10px 10px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(28, 20, 44, 0.52), rgba(10, 8, 20, 0.62)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 52%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 24px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.sanctum-object::before {
  width: 68%;
  height: 68%;
}

.sanctum-object span {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  width: calc(100% - 12px);
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 11, 22, 0.86);
  color: rgba(255, 245, 224, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 28px;
  text-align: center;
  text-transform: uppercase;
}

.sanctum-object:hover,
.sanctum-object:focus-visible,
.sanctum-object.is-active {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(245, 194, 106, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 30px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(245, 194, 106, 0.14);
}

.sanctum-object.is-complete:not(.is-active) {
  border-color: rgba(113, 233, 255, 0.18);
}

.sanctum-object.is-muted {
  opacity: 0.36;
  cursor: default;
}

.sanctum-chain {
  top: 8%;
  width: 4px;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.74), rgba(132, 104, 70, 0.28));
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 247, 223, 0.12);
}

.sanctum-chain-left {
  left: 42%;
  right: auto;
}

.sanctum-chain-right {
  left: 49%;
  right: auto;
}

.sanctum-prison::before,
.sanctum-prison::after {
  content: "";
  position: absolute;
  left: 45.5%;
  top: 10.5%;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.sanctum-prison::before {
  width: 228px;
  height: 228px;
  background:
    radial-gradient(circle, rgba(113, 233, 255, 0.16), rgba(113, 233, 255, 0.04) 42%, transparent 68%),
    radial-gradient(circle, rgba(255, 108, 175, 0.12), transparent 58%);
  box-shadow:
    0 0 34px rgba(113, 233, 255, 0.12),
    inset 0 0 26px rgba(255, 255, 255, 0.04);
  filter: blur(0.4px);
  opacity: 0.9;
  animation: sanctumSealPulse 3.8s ease-in-out infinite;
}

.sanctum-prison::after {
  width: 186px;
  height: 186px;
  border: 1px solid rgba(196, 213, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(196, 213, 255, 0.08);
  opacity: 0.72;
  animation: sanctumSealRing 7.4s linear infinite;
}

.sanctum-lock {
  left: 44.5%;
  top: 28%;
  right: auto;
  opacity: 0.94;
}

.sanctum-key {
  left: 46%;
  top: 8%;
  opacity: 0.98;
}

.sanctum-window-mark {
  left: 7%;
  top: 10%;
  width: 82px;
  height: 82px;
}

.sanctum-cauldron-mark {
  left: 7%;
  bottom: 8%;
  width: 114px;
  height: 102px;
}

.sanctum-grimoire-mark {
  right: 20%;
  bottom: 14%;
  width: 94px;
  height: 82px;
}

.sanctum-secret-door-mark {
  right: 29%;
  bottom: 13%;
  width: 76px;
  height: 88px;
}

.sanctum-tower {
  right: 8%;
  bottom: 8%;
  width: 174px;
  height: 220px;
}

.sanctum-tower::before {
  top: -50px;
  width: 96px;
  height: 66px;
}

.sanctum-tower-core {
  inset: 18px 20px 22px;
}

.sanctum-tower-orb {
  width: 24px;
  height: 24px;
}

.sanctum-tower-orb.sigil-moon {
  left: 20px;
  top: 40px;
}

.sanctum-tower-orb.sigil-ember {
  right: 20px;
  top: 74px;
}

.sanctum-tower-orb.sigil-halo {
  left: 52px;
  bottom: 34px;
}

.sanctum-door {
  right: 30%;
  bottom: 13%;
}

.sanctum-secret {
  right: 33%;
  bottom: 28%;
}

.sanctum-lock:hover,
.sanctum-lock:focus-visible,
.sanctum-key:hover,
.sanctum-key:focus-visible,
.sanctum-door:hover,
.sanctum-door:focus-visible,
.sanctum-secret:hover,
.sanctum-secret:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 0 18px rgba(245, 194, 106, 0.22));
}

.sanctum-sprite {
  right: 10%;
  bottom: 9%;
  width: 90px;
  pointer-events: none;
}

.sanctum-sprite[data-pose="captive"] {
  left: 45.5%;
  top: 8.5%;
  right: auto;
  bottom: auto;
  width: 184px;
  transform: translateX(-50%) rotate(-1.8deg) scale(1);
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(187, 126, 255, 0.12));
  animation: sanctumCaptiveFloat 4.8s ease-in-out infinite;
}

.sanctum-sprite[data-pose="release"] {
  left: 45.5%;
  top: 7%;
  right: auto;
  bottom: auto;
  width: 168px;
}

@keyframes sanctumCaptiveFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-1.8deg) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-7px) rotate(1.4deg) scale(1.015);
  }
}

@keyframes sanctumSealPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: translateX(-50%) scale(0.97);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03);
  }
}

@keyframes sanctumSealRing {
  0% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1.02) rotate(180deg);
  }
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.9) rotate(360deg);
  }
}

.sanctum-sprite[data-pose="window"] {
  left: 11%;
  top: 15%;
  width: 74px;
}

.sanctum-sprite[data-pose="cauldron"] {
  left: 16%;
  bottom: 14%;
  width: 82px;
}

.sanctum-sprite[data-pose="grimoire"] {
  right: 24%;
  bottom: 20%;
  width: 76px;
}

.sanctum-sprite[data-pose="secret"] {
  right: 34%;
  top: 15%;
  width: 76px;
}

.sanctum-sprite[data-pose="duo"] {
  right: 27%;
  top: 16%;
  width: 76px;
}

.sanctum-angel-sprite {
  left: 10%;
  top: 14%;
  width: 70px;
}

.sanctum-angel-sprite[data-pose="clue"] {
  left: 32%;
  top: 14%;
  width: 64px;
}

.sanctum-angel-sprite[data-pose="grimoire"] {
  right: 36%;
  top: 12%;
  width: 64px;
}

.sanctum-angel-sprite[data-pose="tower"] {
  left: 34%;
  top: 18%;
  width: 66px;
}

.sanctum-angel-sprite[data-pose="duo"] {
  left: 38%;
  top: 16%;
  width: 68px;
}

.sanctum-pocket.is-captive .sanctum-scene {
  background:
    radial-gradient(circle at 18% 14%, rgba(113, 233, 255, 0.18), transparent 22%),
    radial-gradient(circle at 72% 18%, rgba(255, 230, 170, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(26, 31, 47, 0.18), rgba(13, 10, 24, 0.02)),
    linear-gradient(180deg, rgba(18, 12, 31, 0.99), rgba(7, 5, 14, 0.99));
}

.sanctum-pocket.is-captive .sanctum-scene-texture {
  opacity: 0.66;
  filter: saturate(0.48) contrast(1.1) brightness(0.52);
}

.sanctum-pocket.is-captive .sanctum-scene-haze {
  opacity: 0.44;
}

.sanctum-pocket.is-captive .sanctum-light-column {
  opacity: 0.26;
}

.sanctum-pocket.is-captive .sanctum-drape {
  opacity: 0.3;
  filter: saturate(0.62) brightness(0.74);
}

.sanctum-pocket.is-captive .sanctum-bars-overlay {
  opacity: 0.62;
}

.sanctum-pocket.is-captive .sanctum-cauldron-mark,
.sanctum-pocket.is-captive .sanctum-grimoire-mark {
  opacity: 0.66;
}

.sanctum-scene[data-phase="release"] .sanctum-key {
  filter: drop-shadow(0 0 26px rgba(245, 194, 106, 0.42));
}

.sanctum-scene[data-phase="tower"],
.sanctum-scene[data-phase="tower-solved"],
.sanctum-scene[data-phase="open"],
.sanctum-scene[data-phase="hideout"] {
  background:
    radial-gradient(circle at 78% 12%, rgba(245, 194, 106, 0.22), transparent 20%),
    radial-gradient(circle at 16% 24%, rgba(113, 233, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 174, 216, 0.06), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(26, 16, 41, 0.98), rgba(9, 7, 18, 0.99));
}

.sanctum-scene[data-phase="tower"] .sanctum-bars-overlay,
.sanctum-scene[data-phase="tower-solved"] .sanctum-bars-overlay,
.sanctum-scene[data-phase="open"] .sanctum-bars-overlay,
.sanctum-scene[data-phase="hideout"] .sanctum-bars-overlay {
  opacity: 0;
}

.sanctum-scene[data-phase="tower"] .sanctum-drape,
.sanctum-scene[data-phase="tower-solved"] .sanctum-drape,
.sanctum-scene[data-phase="open"] .sanctum-drape,
.sanctum-scene[data-phase="hideout"] .sanctum-drape {
  opacity: 0.82;
}

.sanctum-scene[data-phase="tower"] .sanctum-scene-texture,
.sanctum-scene[data-phase="tower-solved"] .sanctum-scene-texture,
.sanctum-scene[data-phase="open"] .sanctum-scene-texture,
.sanctum-scene[data-phase="hideout"] .sanctum-scene-texture {
  opacity: 0.62;
  filter: saturate(0.94) contrast(1.06) brightness(0.8);
}

.sanctum-scene[data-phase="hideout"] .sanctum-scene-haze,
.sanctum-scene[data-phase="open"] .sanctum-scene-haze {
  opacity: 0.92;
}

.sanctum-scene[data-phase="hideout"] .sanctum-scene-floor,
.sanctum-scene[data-phase="open"] .sanctum-scene-floor {
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 108, 175, 0.1), transparent 26%),
    radial-gradient(circle at 70% 12%, rgba(113, 233, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(78, 36, 94, 0.34), rgba(10, 7, 18, 0.96));
}

.sanctum-scene[data-phase="hideout"] .sanctum-light-column,
.sanctum-scene[data-phase="open"] .sanctum-light-column {
  opacity: 0.62;
}

.sanctum-scene[data-phase="hideout"] .sanctum-window-mark::before,
.sanctum-scene[data-phase="open"] .sanctum-window-mark::before {
  filter: drop-shadow(0 0 18px rgba(113, 233, 255, 0.18));
}

.sanctum-scene[data-phase="hideout"] .sanctum-cauldron-bubbles,
.sanctum-scene[data-phase="open"] .sanctum-cauldron-bubbles {
  filter: blur(2px) drop-shadow(0 0 10px rgba(255, 150, 209, 0.18));
}

.sanctum-scene[data-phase="hideout"] .sanctum-tower,
.sanctum-scene[data-phase="open"] .sanctum-tower,
.sanctum-scene[data-phase="tower-solved"] .sanctum-tower {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 32px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 108, 175, 0.08);
}

@media (max-width: 1200px) {
  .sanctum-objective-bar {
    flex-direction: column;
  }

  .sanctum-progress-cluster {
    justify-content: flex-start;
  }

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

  .sanctum-ritual-panel,
  .sanctum-actions-panel {
    grid-column: 1 / -1;
  }

  .sanctum-scene {
    min-height: 284px;
  }
}

@media (max-width: 720px) {
  .sanctum-pocket {
    padding: 16px;
  }

  .sanctum-step-list {
    grid-template-columns: 1fr;
  }

  .sanctum-copy {
    grid-template-columns: 1fr;
  }

  .sanctum-action-state {
    max-width: none;
    text-align: left;
  }

  .sanctum-scene {
    min-height: 260px;
    aspect-ratio: auto;
  }
}
