:root {
  --bg: #070605;
  --ink: #f6f1e8;
  --muted: #c4b6a8;
  --faint: #8b7d72;
  --gold: #f0d2a4;
  --ember: #ff7a32;
  --ember-deep: #ff5a1f;
  --line: rgba(240, 210, 164, 0.18);
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --ui: "Oxanium", "Segoe UI", sans-serif;
  --body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 122, 50, 0.35);
  color: #fff;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.world {
  --mx: 50%;
  --my: 34%;
  min-height: 100dvh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(255, 122, 48, 0.16), transparent 58%),
    radial-gradient(980px 520px at 50% 108%, rgba(255, 78, 18, 0.22), transparent 58%),
    radial-gradient(640px 380px at 82% 12%, rgba(36, 92, 110, 0.18), transparent 62%),
    radial-gradient(520px 320px at 12% 18%, rgba(92, 42, 18, 0.22), transparent 60%),
    linear-gradient(180deg, #09070a 0%, #100b0c 42%, #190d09 100%);
}

/* Starfield */
.stars-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.starfield {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stars-faint circle {
  fill: #efe6d5;
  opacity: 0.35;
}

.stars-bright circle {
  fill: #fff7ee;
  filter: drop-shadow(0 0 3px rgba(255, 235, 205, 0.85));
}

.twinkle-1 { animation: star-twinkle 3.8s ease-in-out infinite; }
.twinkle-2 { animation: star-twinkle 3.1s ease-in-out infinite 1.2s; }
.twinkle-3 { animation: star-twinkle 4.7s ease-in-out infinite 2.3s; }

/* Aurora / Sky Ion Clouds */
.aurora-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(36px);
}

.aurora-band {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.aurora-band--green {
  background: radial-gradient(45% 65% at 20% 18%, rgba(46, 213, 115, 0.2), transparent 70%);
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

.aurora-band--amber {
  background: radial-gradient(50% 55% at 50% 12%, rgba(255, 122, 48, 0.18), transparent 75%);
  animation: aurora-drift 18s ease-in-out infinite alternate -4s;
}

.aurora-band--blue {
  background: radial-gradient(45% 65% at 80% 20%, rgba(56, 142, 255, 0.22), transparent 70%);
  animation: aurora-drift 16s ease-in-out infinite alternate -8s;
}

/* Distant / Guardian Obelisks */
.spire-group {
  position: absolute;
  bottom: 14%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spire-group--red {
  left: 6.5%;
  width: 16px;
  opacity: 0.55;
}

.spire-group--green {
  left: 14.5%;
  width: 52px;
}

.spire-group--blue {
  right: 15.5%;
  width: 52px;
}

.spire-body--red {
  width: 14px;
  height: 20vh;
  clip-path: polygon(50% 0, 78% 14%, 66% 100%, 34% 100%, 22% 14%);
  background: linear-gradient(to top, rgba(255, 60, 40, 0.05), rgba(255, 90, 60, 0.85) 34%, rgba(255, 230, 210, 0.4));
  filter: drop-shadow(0 0 12px rgba(255, 70, 40, 0.4));
  animation: core-pulse 5.6s ease-in-out infinite -3s;
}

/* Vertical Sky Beams */
.sky-beam {
  position: absolute;
  bottom: 80%;
  width: 3px;
  height: 100vh;
  pointer-events: none;
  transform-origin: center bottom;
}

.sky-beam--green {
  background: linear-gradient(to top, rgba(94, 255, 168, 0.95) 0%, rgba(94, 255, 168, 0.45) 45%, rgba(94, 255, 168, 0.05) 85%, transparent 100%);
  box-shadow: 0 0 18px rgba(94, 255, 168, 0.7), 0 0 45px rgba(94, 255, 168, 0.3);
}

.sky-beam--blue {
  background: linear-gradient(to top, rgba(112, 181, 255, 0.95) 0%, rgba(112, 181, 255, 0.48) 45%, rgba(112, 181, 255, 0.05) 85%, transparent 100%);
  box-shadow: 0 0 18px rgba(112, 181, 255, 0.7), 0 0 45px rgba(112, 181, 255, 0.3);
}

.sky-beam--red {
  background: linear-gradient(to top, rgba(255, 78, 60, 0.85) 0%, rgba(255, 78, 60, 0.3) 40%, transparent 80%);
  box-shadow: 0 0 12px rgba(255, 78, 60, 0.55);
}

.beam-core {
  position: absolute;
  inset: 0 -1px;
  background: #ffffff;
  opacity: 0.8;
}

.beam-pulse {
  position: absolute;
  left: -14px;
  right: -14px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 70%);
  animation: beam-pulse-up 4.5s linear infinite;
}

.beam-pulse--2 {
  animation-delay: 2.25s;
}

.obelisk-structure {
  width: 100%;
  height: auto;
  display: block;
}

.obelisk-structure--green {
  height: 33vh;
  filter: drop-shadow(0 0 20px rgba(94, 255, 168, 0.38));
  animation: obelisk-float 7s ease-in-out infinite alternate;
}

.obelisk-structure--blue {
  height: 39vh;
  filter: drop-shadow(0 0 20px rgba(112, 181, 255, 0.42));
  animation: obelisk-float 8s ease-in-out infinite alternate -3.5s;
}

.ground-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 220px;
  height: 80px;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.65;
}

.ground-glow--green {
  background: rgba(94, 255, 168, 0.35);
  animation: core-pulse 4.2s ease-in-out infinite;
}

.ground-glow--blue {
  background: rgba(112, 181, 255, 0.38);
  animation: core-pulse 4.8s ease-in-out infinite -2.2s;
}

.ground-glow--red {
  background: rgba(255, 78, 60, 0.28);
  animation: core-pulse 5.2s ease-in-out infinite -1s;
}

.obelisk-slot {
  position: absolute;
  left: 50%;
  bottom: -4%;
  z-index: 2;
  transform: translateX(-50%);
}

/* Center Ascended Hero Obelisk & Sky Beam */
.hero-beam {
  position: absolute;
  left: 50%;
  bottom: 580px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.hero-beam__pillar {
  width: 6px;
  height: 95vh;
  margin: 0 auto;
  background: linear-gradient(to top, rgba(255, 250, 240, 0.98) 0%, rgba(255, 150, 60, 0.65) 35%, rgba(255, 110, 30, 0.12) 80%, transparent 100%);
  box-shadow: 0 0 24px rgba(255, 140, 50, 0.85), 0 0 65px rgba(255, 100, 30, 0.4);
}

.hero-beam__flare {
  position: absolute;
  top: 98%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(255, 140, 50, 0.55) 45%, transparent 72%);
  filter: blur(5px);
  animation: core-pulse 3.2s ease-in-out infinite;
}

.hero-beam__ring {
  position: absolute;
  left: 50%;
  width: 58px;
  height: 15px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255, 220, 150, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 140, 50, 0.6);
  animation: hero-ring-float 6s ease-in-out infinite alternate;
}

.hero-beam__ring--1 {
  bottom: 90px;
}

.hero-beam__ring--2 {
  bottom: 230px;
  width: 44px;
  height: 12px;
  animation-delay: -3s;
}

.hero-obelisk {
  display: block;
  height: min(84vh, 920px);
  width: auto;
  opacity: 0.96;
  filter: drop-shadow(0 0 36px rgba(255, 110, 36, 0.36));
  animation: obelisk-in 1.7s var(--ease) both;
}

.hero-obelisk .core {
  animation: core-pulse 3.8s ease-in-out infinite;
}

.core-spark {
  animation: core-pulse 2.6s ease-in-out infinite;
}

.tek-shard {
  animation: tek-shard-hover 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 120, 40, 0.35));
}

.tek-shard--left {
  animation-delay: -1.2s;
}

.tek-shard--right {
  animation-delay: -3.5s;
}

.tek-shard--upper-left {
  animation-delay: -0.7s;
}

.tek-shard--upper-right {
  animation-delay: -2.8s;
}

.core-pulse-fast {
  animation: core-pulse 2.2s ease-in-out infinite;
}

.horizon {
  position: absolute;
  right: 0;
  bottom: 19%;
  left: 0;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 150, 0.75), transparent);
  box-shadow: 0 0 32px 8px rgba(255, 120, 45, 0.26);
}

.ridge {
  position: absolute;
  right: -4%;
  left: -4%;
}

.ridge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ridge--far {
  bottom: 11vh;
  z-index: 2;
  height: 32vh;
  opacity: 0.88;
}

.ridge--mid {
  bottom: 4vh;
  z-index: 3;
  height: 28vh;
  opacity: 0.96;
}

.ridge--front {
  bottom: -2px;
  z-index: 4;
  height: 24vh;
}

.fog--upper {
  position: absolute;
  bottom: 23%;
  left: -20%;
  right: -20%;
  height: 24vh;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 130, 60, 0.09), rgba(40, 70, 100, 0.08) 50%, transparent 75%);
  filter: blur(16px);
  animation: fog-drift 26s ease-in-out infinite alternate;
}

.fog--lower {
  position: absolute;
  bottom: 7%;
  left: -25%;
  right: -25%;
  height: 25vh;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 140, 70, 0.13), rgba(10, 8, 7, 0.55) 65%, transparent 80%);
  filter: blur(14px);
  animation: fog-drift 18s ease-in-out infinite alternate -6s;
}

#embers {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(to top, rgba(7, 6, 5, 0.94), rgba(7, 6, 5, 0.15) 24%, transparent 46%),
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.58) 100%);
}

.hud {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  animation: fade-up 1s 0.05s var(--ease) both;
}

.hud__corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px 28px;
}

.hud__tl { top: 0; left: 0; }
.hud__tr { top: 0; right: 0; align-items: flex-end; text-align: right; }
.hud__bl { bottom: 0; left: 0; }
.hud__br { bottom: 0; right: 0; align-items: flex-end; text-align: right; }

.hud__corner::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(240, 210, 164, 0.5);
  border-style: solid;
}

.hud__tl::before { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.hud__tr::before { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.hud__bl::before { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.hud__br::before { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; }

.hud__label {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.hud__corner strong {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9ffe9;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 12px #3dff9a;
  animation: core-pulse 1.8s ease-in-out infinite;
}

.domain {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.stage {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 100dvh;
  padding: 88px 24px 18vh;
  place-items: center;
}

.menu {
  position: relative;
  width: min(480px, 100%);
  text-align: center;
}

.menu::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -90px -40px;
  background: radial-gradient(closest-side, rgba(7, 6, 5, 0.9), rgba(7, 6, 5, 0.55) 60%, transparent 80%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  animation: fade-up 0.8s 0.12s var(--ease) both;
}

.kicker__mark {
  width: 6px;
  height: 6px;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
  transform: rotate(45deg);
  animation: core-pulse 2.4s ease-in-out infinite;
}

.kicker__text {
  margin-right: -0.46em;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--gold);
}

.title {
  margin: 0;
  animation: fade-up 0.95s 0.24s var(--ease) both;
}

.title__ark {
  display: block;
  width: max-content;
  margin: 0 auto;
  padding-left: 0.14em;
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 132px);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 0.82;
  color: #fff8f1;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(7, 6, 5, 0.9);
}

.title__reborn {
  display: block;
  width: max-content;
  margin: 12px auto 0;
  padding-left: 0.68em;
  font-family: var(--ui);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: 0.68em;
  line-height: 1;
  color: #ffe3c4;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title__reborn {
    background-image: linear-gradient(100deg, #ffb15a 0%, #fff6e8 36%, #ff7a32 58%, #fff6e8 78%, #ffb15a 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 7.5s linear infinite;
  }
}

.lockline {
  width: 148px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 140, 0.9), transparent);
  transform: scaleX(0);
  animation: grow 0.9s 0.7s var(--ease) forwards;
}

.lede,
.fine {
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.lede {
  max-width: 38ch;
  margin-top: 18px;
  margin-bottom: 28px;
  animation: fade-up 0.9s 0.42s var(--ease) both;
}

.fine {
  max-width: 42ch;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 12.5px;
  animation: fade-up 0.9s 0.78s var(--ease) both;
}

.flash {
  width: min(440px, 100%);
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 150, 120, 0.38);
  background: rgba(72, 22, 14, 0.72);
  color: #ffe0d6;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  backdrop-filter: blur(10px);
}

.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(440px, 100%);
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 210, 164, 0.28);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: rgba(18, 12, 10, 0.55);
}

.resume span {
  color: var(--muted);
  font-size: 13px;
}

.resume strong {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  animation: fade-up 0.95s 0.58s var(--ease) both;
}

.provider {
  --accent: var(--gold);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, 100%);
  min-height: 74px;
  padding: 12px 16px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 210, 164, 0.16);
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 236, 214, 0.08), rgba(255, 255, 255, 0) 46%),
    #14110f;
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.provider--steam { --accent: #8ecfff; }
.provider--discord { --accent: #9aa8ff; }

.provider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.16), transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}

.provider:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.provider.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.provider__icon {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.provider__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.provider__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.provider__copy strong {
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.provider__copy small {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.provider__go {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.4;
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .provider:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 46%),
      rgba(22, 14, 11, 0.9);
    box-shadow:
      inset 3px 0 0 var(--accent),
      0 18px 40px rgba(0, 0, 0, 0.38),
      0 0 28px color-mix(in srgb, var(--accent) 24%, transparent);
    transform: translateY(-3px);
  }

  .provider:hover::after {
    animation: shine 0.85s var(--ease);
  }

  .provider:hover .provider__go {
    opacity: 1;
    transform: translateX(4px) rotate(45deg);
  }

  .provider:active {
    transform: translateY(0) scale(0.992);
  }

  .resume:hover {
    border-color: rgba(240, 210, 164, 0.55);
  }

  .text-btn:hover {
    border-color: var(--gold);
    color: var(--ink);
  }
}

.panel {
  width: min(420px, 100%);
  margin: 0 auto;
  animation: fade-up 0.9s 0.2s var(--ease) both;
}

.welcome {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
}

.avatar,
.monogram {
  width: 76px;
  height: 76px;
  margin: 8px auto 14px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(240, 210, 164, 0.35),
    0 0 28px rgba(255, 122, 50, 0.28);
}

.avatar {
  display: block;
  object-fit: cover;
}

.monogram {
  display: grid;
  place-items: center;
  background: #1a120f;
  font-family: var(--ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}

.identity {
  margin: 0;
  font-family: var(--ui);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-btn {
  margin-top: 22px;
  padding: 12px 22px;
  border: 1px solid rgba(240, 210, 164, 0.2);
  background: transparent;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.text-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes obelisk-in {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 0.95; transform: translateY(0); }
}

@keyframes core-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes sheen {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes grow {
  to { transform: scaleX(1); }
}

@keyframes fog-drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes aurora-drift {
  from { transform: translateY(-4%) scaleY(0.96); opacity: 0.55; }
  to { transform: translateY(4%) scaleY(1.06); opacity: 0.85; }
}

@keyframes beam-pulse-up {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.95; }
  75% { opacity: 0.5; }
  100% { transform: translateY(-75vh) scale(1.5); opacity: 0; }
}

@keyframes hero-ring-float {
  0% { transform: translateX(-50%) translateY(0) rotateX(65deg); opacity: 0.45; }
  100% { transform: translateX(-50%) translateY(-26px) rotateX(65deg); opacity: 0.85; }
}

@keyframes obelisk-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes tek-shard-hover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-9px); }
}

@media (max-width: 720px) {
  .hud__label { display: none; }
  .hud__corner { padding: 18px 16px; }
  .hud__corner strong,
  .status,
  .domain { font-size: 11px; letter-spacing: 0.12em; }
  .spire-group--red { display: none; }
  .spire-group--green { left: 1%; width: 30px; opacity: 0.38; }
  .spire-group--blue { right: 1%; width: 30px; opacity: 0.38; }
  .sky-beam { opacity: 0.55; }
  .obelisk-structure--green { height: 22vh; }
  .obelisk-structure--blue { height: 24vh; }
  .stage { padding: 78px 18px 14vh; }
  .domain { letter-spacing: 0.06em; font-size: 10px; }
  .menu::before { inset: -48px -20px; }
  .title__ark { letter-spacing: 0.1em; padding-left: 0.1em; }
  .title__reborn { letter-spacing: 0.42em; padding-left: 0.42em; }
  .hero-beam__pillar { opacity: 0.65; }
  .hero-beam__ring { display: none; }
}

@media (max-height: 740px) {
  .hero-obelisk { height: 70vh; }
  .lede { margin-bottom: 18px; }
  .stage { padding-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.stage--board {
  align-items: start;
  justify-items: center;
  padding: 108px 28px 56px;
}

.overview {
  width: min(980px, 100%);
}

.overview__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.overview__title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.92;
}

.overview .text-btn {
  margin-top: 0;
  flex: none;
}

.board {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.survivor,
.stat {
  border: 1px solid rgba(240, 210, 164, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 236, 214, 0.07), rgba(255, 255, 255, 0) 38%),
    rgba(10, 8, 7, 0.8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.survivor {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  box-shadow:
    inset 3px 0 0 var(--ember),
    0 18px 44px rgba(0, 0, 0, 0.32);
}

.survivor__avatar,
.survivor__fallback {
  width: 132px;
  height: 132px;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(240, 210, 164, 0.45),
    0 0 0 8px rgba(255, 122, 50, 0.08),
    0 0 36px rgba(255, 122, 50, 0.32);
}

.survivor__avatar {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #1a120f;
}

.survivor__fallback {
  display: grid;
  place-items: center;
  background: #1a120f;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 48px;
  font-weight: 700;
}

.survivor__kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.survivor__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.survivor__id,
.survivor__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.survivor__id {
  margin-top: 12px;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.survivor__note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 14px;
}

.side {
  display: grid;
  gap: 14px;
}

.stat {
  padding: 18px 18px 16px;
  box-shadow:
    inset 3px 0 0 rgba(240, 210, 164, 0.4),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.stat__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat__label {
  color: var(--faint);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--ui);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 10px #3dff9a;
}

.mark--wait {
  background: #ffb15a;
  box-shadow: 0 0 10px #ffb15a;
}

@media (max-width: 800px) {
  .stage--board {
    padding: 92px 16px 40px;
  }

  .overview__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .survivor {
    min-height: 0;
  }
}
