:root {
  color-scheme: dark;
  --ink: #f9fbff;
  --muted: #aeb8d4;
  --panel: rgba(10, 14, 26, 0.84);
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #48e3ff;
  --lime: #90f95c;
  --pink: #ff4fa3;
  --amber: #ffcb45;
  --red: #ff5a5f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(72, 227, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 79, 163, 0.14), transparent 24%),
    linear-gradient(145deg, #080a12 0%, #121827 48%, #081316 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.game-hub {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.97), rgba(10, 18, 28, 0.98)),
    #080a12;
}

.game-hub.hidden {
  display: none;
}

.hub-inner {
  width: min(1040px, 100%);
}

.hub-header {
  margin-bottom: 18px;
}

.hub-header h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 142px);
  gap: 14px;
  align-items: start;
}

.game-card {
  display: grid;
  grid-template-rows: auto 92px;
  gap: 8px;
  width: 100%;
  min-height: 134px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.game-card:hover,
.game-card:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.92);
  background: rgba(72, 227, 255, 0.13);
  transform: translateY(-2px);
}

.game-card.bump {
  border-color: rgba(255, 203, 69, 0.95);
  background: rgba(255, 203, 69, 0.14);
}

.card-title {
  min-height: 24px;
  font-weight: 800;
  line-height: 1.2;
  font-size: 0.82rem;
}

.card-art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #101f2b;
}

.mini-sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(72, 227, 255, 0.16) 0 2px, transparent 2px 48px),
    linear-gradient(180deg, #14152c, #071015);
}

.mini-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 11px;
  background: #182032;
  border-top: 3px solid var(--cyan);
}

.mini-cube {
  position: absolute;
  left: 22px;
  bottom: 25px;
  width: 24px;
  height: 24px;
  background: var(--lime);
  border: 2px solid #06120b;
  transform: rotate(12deg);
}

.mini-spike {
  position: absolute;
  bottom: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 27px solid var(--red);
}

.spike-one {
  left: 63px;
}

.spike-two {
  left: 86px;
}

.mini-block {
  position: absolute;
  right: 13px;
  bottom: 25px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--cyan), #236dff);
  border: 2px solid #082b66;
}

.bow-art {
  background:
    linear-gradient(120deg, rgba(255, 203, 69, 0.12) 0 2px, transparent 2px 34px),
    linear-gradient(180deg, #182033, #071015);
}

.bow-curve {
  position: absolute;
  left: 10px;
  top: 16px;
  width: 38px;
  height: 58px;
  border: 5px solid #b985ff;
  border-left-color: transparent;
  border-radius: 50%;
}

.bow-string {
  position: absolute;
  left: 29px;
  top: 20px;
  width: 2px;
  height: 50px;
  background: rgba(249, 251, 255, 0.86);
  transform: rotate(-3deg);
}

.arrow-shaft {
  position: absolute;
  left: 30px;
  top: 44px;
  width: 61px;
  height: 4px;
  background: var(--amber);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.arrow-head {
  position: absolute;
  left: 87px;
  top: 38px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 16px solid var(--red);
  transform: rotate(-3deg);
}

.arrow-feather {
  position: absolute;
  left: 31px;
  width: 13px;
  height: 7px;
  background: var(--cyan);
}

.feather-one {
  top: 37px;
  transform: skewX(-22deg) rotate(-3deg);
}

.feather-two {
  top: 48px;
  transform: skewX(22deg) rotate(-3deg);
}

.glass-bottle {
  position: absolute;
  right: 8px;
  bottom: 17px;
  width: 22px;
  height: 48px;
  border: 2px solid rgba(72, 227, 255, 0.9);
  border-radius: 7px 7px 5px 5px;
  background: rgba(72, 227, 255, 0.18);
}

.glass-bottle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -14px;
  width: 8px;
  height: 14px;
  border: 2px solid rgba(72, 227, 255, 0.9);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: rgba(72, 227, 255, 0.14);
}

.glass-shine {
  position: absolute;
  right: 23px;
  bottom: 36px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.word-art {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  background:
    linear-gradient(120deg, rgba(144, 249, 92, 0.11) 0 2px, transparent 2px 34px),
    linear-gradient(180deg, #172138, #071015);
}

.word-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(72, 227, 255, 0.16);
  color: var(--ink);
  font-weight: 900;
}

.tile-one {
  grid-column: 1;
  grid-row: 1;
}

.tile-two {
  grid-column: 3;
  grid-row: 1;
  background: rgba(255, 203, 69, 0.18);
}

.tile-three {
  grid-column: 2;
  grid-row: 2;
  background: rgba(255, 79, 163, 0.18);
}

.word-arrow {
  grid-column: 2;
  grid-row: 1;
  color: var(--lime);
  font-weight: 900;
}

.arrow-two {
  grid-column: 3;
  grid-row: 2;
  transform: rotate(35deg);
}

.music-art {
  background:
    linear-gradient(120deg, rgba(255, 203, 69, 0.12) 0 2px, transparent 2px 31px),
    linear-gradient(180deg, #1b1633, #071015);
}

.singer-head {
  position: absolute;
  left: 21px;
  top: 19px;
  width: 27px;
  height: 27px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: var(--amber);
}

.singer-body {
  position: absolute;
  left: 17px;
  top: 49px;
  width: 36px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(135deg, var(--pink), #7d4dff);
}

.microphone {
  position: absolute;
  left: 63px;
  top: 25px;
  width: 10px;
  height: 38px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 39px 0 -3px rgba(249, 251, 255, 0.74);
  transform: rotate(-18deg);
}

.music-note {
  position: absolute;
  color: var(--lime);
  font-weight: 900;
  line-height: 1;
}

.note-one {
  right: 22px;
  top: 17px;
  font-size: 24px;
}

.note-two {
  right: 10px;
  top: 46px;
  color: var(--pink);
  font-size: 27px;
}

.music-wave {
  position: absolute;
  left: 78px;
  width: 34px;
  height: 20px;
  border: 3px solid rgba(72, 227, 255, 0.78);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 999px 0 0;
}

.wave-one {
  top: 30px;
}

.wave-two {
  top: 51px;
  width: 24px;
  border-color: rgba(255, 203, 69, 0.82);
}

.catch-art {
  background:
    linear-gradient(120deg, rgba(72, 227, 255, 0.13) 0 2px, transparent 2px 38px),
    linear-gradient(180deg, #17192f, #071015);
}

.catch-star {
  position: absolute;
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 14px currentColor;
}

.star-a {
  left: 24px;
  top: 14px;
}

.star-b {
  right: 24px;
  top: 31px;
  color: var(--cyan);
}

.star-c {
  left: 58px;
  top: 52px;
  color: var(--lime);
}

.catch-basket {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 13px;
  height: 24px;
  border: 4px solid var(--amber);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 203, 69, 0.16);
}

.souls-art {
  background:
    linear-gradient(120deg, rgba(185, 133, 255, 0.16) 0 2px, transparent 2px 34px),
    linear-gradient(180deg, #181632, #071015);
}

.souls-card-aura {
  position: absolute;
  left: 32px;
  top: 14px;
  width: 66px;
  height: 66px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(72, 227, 255, 0.72);
}

.souls-card-person {
  position: absolute;
  left: 53px;
  top: 29px;
  width: 23px;
  height: 42px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, var(--amber) 0 30%, #6d4cff 30% 100%);
}

.souls-card-person::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
}

.souls-card-spark {
  position: absolute;
  width: 11px;
  height: 11px;
  background: currentColor;
  transform: rotate(45deg);
}

.spark-one {
  left: 18px;
  top: 24px;
  color: var(--lime);
}

.spark-two {
  right: 21px;
  top: 36px;
  color: var(--pink);
}

.spark-three {
  left: 94px;
  top: 67px;
  color: var(--amber);
}

.hub-notice {
  min-height: 28px;
  margin-top: 14px;
  color: var(--amber);
  font-weight: 800;
}

.shell {
  width: min(1500px, 100vw);
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
}

.hidden {
  display: none !important;
}

.hud {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

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

.mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 46%),
    conic-gradient(from 45deg, var(--cyan), var(--lime), var(--amber), var(--pink), var(--cyan));
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  box-shadow: 0 0 28px rgba(72, 227, 255, 0.36);
}

.bow-mark {
  border-radius: 50%;
  transform: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 45%),
    conic-gradient(from 90deg, var(--amber), var(--pink), #b985ff, var(--amber));
}

.word-mark {
  border-radius: 8px;
  transform: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 48%),
    conic-gradient(from 20deg, var(--lime), var(--cyan), var(--pink), var(--amber), var(--lime));
}

.souls-mark {
  border-radius: 50%;
  transform: none;
  background:
    radial-gradient(circle, rgba(249, 251, 255, 0.92) 0 18%, transparent 19%),
    conic-gradient(from 0deg, #b985ff, var(--cyan), var(--amber), var(--pink), #b985ff);
}

h1 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 8px;
}

.stats div {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.word-shell .stats {
  grid-template-columns: repeat(5, 72px);
}

.word-shell .stats div {
  padding-inline: 8px;
}

.word-shell .stats strong {
  font-size: 1.18rem;
}

.souls-shell .stats {
  grid-template-columns: 78px 86px 128px 128px;
}

.souls-shell .stats strong {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.icon-button span {
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.9);
  background: rgba(72, 227, 255, 0.18);
}

.icon-button.active {
  border-color: rgba(144, 249, 92, 0.95);
  background: rgba(144, 249, 92, 0.18);
  box-shadow: inset 0 -3px 0 var(--lime);
}

.icon-button::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 180px;
  transform: translateX(-50%);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.icon-button:hover::after,
.icon-button:focus-visible::after {
  opacity: 1;
}

.stage-wrap {
  position: relative;
  min-height: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #080b13;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.bow-stage {
  background: #071015;
}

.word-stage {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(144, 249, 92, 0.09) 0 2px, transparent 2px 58px),
    linear-gradient(180deg, #111827, #071015);
}

.word-board {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
}

.word-letter-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.word-letter-wrap span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.word-letter-wrap strong {
  display: grid;
  place-items: center;
  width: clamp(118px, 20vw, 178px);
  aspect-ratio: 1;
  border: 2px solid rgba(72, 227, 255, 0.78);
  border-radius: 8px;
  background: rgba(72, 227, 255, 0.13);
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 1;
}

.word-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.word-form input,
.word-form button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 8, 18, 0.78);
  color: var(--ink);
  font: inherit;
}

.word-form input {
  padding: 0 16px;
  font-size: 1.2rem;
}

.word-form input:disabled {
  opacity: 0.58;
}

.word-form button {
  cursor: pointer;
  font-weight: 900;
  background: rgba(144, 249, 92, 0.16);
  border-color: rgba(144, 249, 92, 0.74);
}

.word-feedback {
  min-height: 28px;
  color: var(--amber);
  font-weight: 800;
  text-align: center;
}

.word-opponent {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(72, 227, 255, 0.24);
  border-radius: 7px;
  background: rgba(72, 227, 255, 0.08);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.word-chain {
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.word-chip {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.word-chip.player {
  border-color: rgba(144, 249, 92, 0.42);
}

.word-chip.ai {
  border-color: rgba(255, 79, 163, 0.5);
  background: rgba(255, 79, 163, 0.11);
}

.music-stage {
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(255, 203, 69, 0.1) 0 2px, transparent 2px 52px),
    linear-gradient(180deg, #16142a, #071015);
  overflow: auto;
}

.song-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  align-content: start;
}

.song-category {
  display: grid;
  gap: 10px;
}

.song-category h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.song-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 14px;
}

.song-card {
  min-height: 168px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.song-card:hover,
.song-card:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.92);
  background: rgba(72, 227, 255, 0.13);
}

.song-card.active {
  border-color: rgba(144, 249, 92, 0.95);
  background: rgba(144, 249, 92, 0.15);
}

.song-visual {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(72, 227, 255, 0.16), rgba(255, 79, 163, 0.13));
}

.song-bar {
  position: absolute;
  bottom: 12px;
  width: 11px;
  border-radius: 999px 999px 2px 2px;
  background: currentColor;
}

.song-card.active .song-bar {
  animation: bounce-bars 0.65s ease-in-out infinite alternate;
}

.song-title {
  font-weight: 900;
  line-height: 1.15;
}

.song-style {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes bounce-bars {
  from {
    transform: scaleY(0.68);
  }
  to {
    transform: scaleY(1.12);
  }
}

.catch-stage {
  background: #071015;
}

.souls-stage {
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(185, 133, 255, 0.11) 0 2px, transparent 2px 56px),
    radial-gradient(circle at 70% 30%, rgba(72, 227, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #15172d, #071015);
}

.souls-inventory,
.souls-sell,
.souls-testing {
  position: absolute;
  top: 14px;
  z-index: 2;
  width: min(286px, calc(100% - 28px));
  max-height: 220px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.82);
}

.souls-equipment {
  position: absolute;
  left: 14px;
  bottom: 64px;
  z-index: 2;
  width: min(286px, calc(100% - 28px));
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 203, 69, 0.28);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.84);
}

.souls-admin {
  position: absolute;
  right: 14px;
  bottom: 64px;
  z-index: 2;
  width: min(286px, calc(100% - 28px));
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 79, 163, 0.36);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.86);
}

.souls-inventory {
  left: 14px;
}

.souls-sell {
  right: 14px;
}

.souls-testing {
  right: 14px;
  top: 248px;
  width: min(230px, calc(100% - 28px));
  max-height: 152px;
  border-color: rgba(72, 227, 255, 0.32);
}

.souls-inventory h2,
.souls-sell h2,
.souls-testing h2,
.souls-equipment h2,
.souls-admin h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.souls-inventory-list {
  display: grid;
  gap: 8px;
  max-height: 166px;
  overflow: auto;
  padding-right: 2px;
}

.souls-testing-panel {
  display: grid;
  gap: 8px;
}

.testing-entry {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 46px;
  padding: 8px;
  border: 1px solid rgba(72, 227, 255, 0.55);
  border-radius: 7px;
  background: rgba(72, 227, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.testing-entry:hover,
.testing-entry:focus-visible,
.testing-code button:hover,
.testing-code button:focus-visible,
.testing-luck button:hover,
.testing-luck button:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.95);
  background: rgba(72, 227, 255, 0.16);
}

.testing-entry strong {
  font-size: 0.84rem;
}

.testing-entry span,
.testing-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.testing-code,
.testing-luck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.testing-luck span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.testing-code input,
.testing-luck input {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 8, 18, 0.82);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-weight: 900;
}

.testing-code button,
.testing-luck button {
  min-height: 34px;
  border: 1px solid rgba(72, 227, 255, 0.48);
  border-radius: 7px;
  background: rgba(72, 227, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.testing-aura-list {
  display: grid;
  gap: 6px;
  max-height: 88px;
  overflow: auto;
}

.testing-aura-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.testing-aura-item:hover,
.testing-aura-item:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.95) !important;
  background: rgba(72, 227, 255, 0.13);
}

.testing-aura-item.selected {
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.78);
}

.testing-aura-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.testing-aura-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.testing-aura-item b {
  color: var(--yellow);
  font-size: 0.68rem;
}

.testing-equipment-list {
  display: grid;
  gap: 6px;
  max-height: 88px;
  overflow: auto;
}

.testing-equipment-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.testing-equipment-item .equipment-icon {
  grid-row: auto;
  width: 18px;
  height: 24px;
  border-radius: 7px 7px 9px 9px;
}

.testing-equipment-item:hover,
.testing-equipment-item:focus-visible {
  outline: none;
  border-color: rgba(255, 203, 69, 0.95) !important;
  background: rgba(255, 203, 69, 0.13);
}

.testing-equipment-item.selected {
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.78);
}

.testing-equipment-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.testing-equipment-item b {
  color: var(--yellow);
  font-size: 0.68rem;
}

.souls-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.souls-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.souls-item:hover,
.souls-item:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.95) !important;
  background: rgba(72, 227, 255, 0.13);
}

.souls-item.equipped {
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.85);
}

.souls-item.favorite {
  box-shadow:
    inset 0 0 0 1px rgba(255, 203, 69, 0.28),
    inset 0 -3px 0 rgba(255, 203, 69, 0.58);
}

.souls-item.sell-item {
  border-color: rgba(255, 203, 69, 0.5);
  background: rgba(255, 203, 69, 0.09);
}

.souls-item.sell-item:hover,
.souls-item.sell-item:focus-visible {
  border-color: rgba(255, 203, 69, 0.95) !important;
  background: rgba(255, 203, 69, 0.16);
}

.souls-item.sell-all-item {
  border-color: rgba(255, 96, 112, 0.72);
  background: rgba(255, 96, 112, 0.13);
  box-shadow: inset 0 -3px 0 rgba(255, 96, 112, 0.78);
}

.souls-item.sell-all-item:hover,
.souls-item.sell-all-item:focus-visible {
  border-color: rgba(255, 96, 112, 0.98) !important;
  background: rgba(255, 96, 112, 0.2);
}

.souls-item.sell-all-item:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.aura-favorite {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 203, 69, 0.44);
  border-radius: 50%;
  background: rgba(3, 8, 18, 0.78);
  color: rgba(249, 251, 255, 0.55);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
}

.aura-favorite::before {
  content: "★";
  display: block;
  font-size: 0.82rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

.aura-favorite:hover,
.aura-favorite:focus-visible,
.aura-favorite.active {
  outline: none;
  border-color: rgba(255, 203, 69, 0.96);
  background: rgba(255, 203, 69, 0.18);
  color: var(--yellow);
  box-shadow:
    0 0 12px rgba(255, 203, 69, 0.42),
    inset 0 -2px 0 rgba(255, 203, 69, 0.5);
}

.aura-favorite + strong {
  padding-left: 24px;
}

.souls-item strong {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.souls-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.souls-item b {
  font-size: 0.8rem;
}

.souls-equipment-list {
  display: grid;
  gap: 8px;
}

.equipment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 3px 8px;
  width: 100%;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.equipment-item:hover,
.equipment-item:focus-visible {
  outline: none;
  border-color: rgba(255, 203, 69, 0.95) !important;
  background: rgba(255, 203, 69, 0.14);
}

.equipment-item.locked {
  opacity: 0.64;
}

.equipment-item.equipped {
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.85);
}

.equipment-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 9px 9px 13px 13px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 35%),
    currentColor;
  box-shadow: 0 0 18px currentColor;
}

.equipment-icon-gravity {
  color: #90f95c;
}

.equipment-icon-cosmic {
  color: #48e3ff;
}

.equipment-icon-supernova {
  color: #ff7bd5;
}

.equipment-icon-lunar {
  color: #b985ff;
}

.equipment-icon-nebula {
  color: #7df9ff;
}

.equipment-icon-eclipse {
  color: #ffcb45;
}

.equipment-icon-infinity {
  color: #f9fbff;
}

.equipment-icon-admincore {
  color: #ff4fa3;
}

.equipment-icon-omniverse {
  color: #d9ff6a;
}

.equipment-icon-embercap,
.equipment-icon-moonhood,
.equipment-icon-stormcrown,
.equipment-icon-voidhelm,
.equipment-icon-originhalo {
  height: 28px;
  border-radius: 14px 14px 8px 8px;
}

.equipment-icon-embercap {
  color: #ff8f45;
}

.equipment-icon-moonhood {
  color: #b985ff;
}

.equipment-icon-stormcrown {
  color: #48e3ff;
  clip-path: polygon(0 100%, 0 38%, 18% 58%, 34% 16%, 50% 58%, 66% 16%, 82% 58%, 100% 38%, 100% 100%);
}

.equipment-icon-voidhelm {
  color: #7df9ff;
  border-radius: 16px 16px 9px 9px;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(3, 8, 18, 0.9) 35% 65%, transparent 66%),
    currentColor;
}

.equipment-icon-originhalo {
  height: 16px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 5px currentColor,
    0 0 26px currentColor;
}

.equipment-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.equipment-item span:not(.equipment-icon) {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.equipment-item b {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.78rem;
}

.souls-admin-panel {
  display: grid;
  gap: 8px;
}

.admin-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  width: 100%;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255, 79, 163, 0.55);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.14), rgba(72, 227, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.admin-buy:hover,
.admin-buy:focus-visible {
  outline: none;
  border-color: rgba(255, 79, 163, 0.95);
  background: rgba(255, 79, 163, 0.16);
}

.admin-buy.locked {
  opacity: 0.68;
}

.admin-buy strong,
.admin-buy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-buy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-buy b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.8rem;
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.admin-tab {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.admin-tab:hover,
.admin-tab:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.92);
  background: rgba(72, 227, 255, 0.14);
}

.admin-tab.active {
  border-color: rgba(255, 79, 163, 0.95);
  background: rgba(255, 79, 163, 0.18);
  box-shadow: inset 0 -3px 0 var(--pink);
}

.admin-actions {
  display: grid;
  gap: 7px;
}

.admin-action {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 7px;
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.admin-action:hover,
.admin-action:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.95);
  background: rgba(72, 227, 255, 0.13);
}

.admin-action.active {
  border-color: rgba(144, 249, 92, 0.9);
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.78);
}

.admin-action-dot {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.admin-action strong,
.admin-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-action strong {
  grid-column: 2;
  font-size: 0.78rem;
}

.admin-action span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-action b {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--yellow);
  font-size: 0.72rem;
}

.admin-aura-list {
  display: grid;
  gap: 7px;
  max-height: 150px;
  overflow: auto;
}

.admin-aura-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.admin-aura-item:hover,
.admin-aura-item:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.95) !important;
  background: rgba(72, 227, 255, 0.13);
}

.admin-aura-item.equipped {
  background: rgba(144, 249, 92, 0.13);
  box-shadow: inset 0 -3px 0 rgba(144, 249, 92, 0.85);
}

.admin-aura-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.admin-aura-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.admin-aura-item b {
  font-size: 0.74rem;
}

.admin-luck {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(72, 227, 255, 0.28);
  border-radius: 7px;
  background: rgba(72, 227, 255, 0.08);
}

.admin-luck span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-luck input {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 8, 18, 0.82);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-weight: 900;
}

.admin-luck input:focus {
  outline: none;
  border-color: rgba(255, 79, 163, 0.95);
}

.souls-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(520px, 100%);
  min-height: 420px;
}

.souls-merge-device {
  position: absolute;
  left: 50%;
  top: -72px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  width: min(320px, calc(100% - 24px));
  padding: 7px;
  border: 1px solid rgba(185, 133, 255, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(185, 133, 255, 0.18), transparent 58%),
    rgba(3, 8, 18, 0.82);
  box-shadow: 0 0 22px rgba(185, 133, 255, 0.2);
  transform: translateX(-50%);
}

.souls-merge-device strong {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.merge-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.merge-selects select {
  min-width: 0;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 8, 18, 0.9);
  color: var(--ink);
  padding: 0 6px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.souls-merge-device button {
  min-height: 28px;
  border: 1px solid rgba(185, 133, 255, 0.55);
  border-radius: 7px;
  background: rgba(185, 133, 255, 0.13);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.souls-merge-device button:hover,
.souls-merge-device button:focus-visible {
  outline: none;
  border-color: rgba(185, 133, 255, 0.96);
  background: rgba(185, 133, 255, 0.2);
}

.souls-merge-device button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.souls-merge-device span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.souls-aura {
  position: absolute;
  width: clamp(230px, 36vw, 350px);
  aspect-ratio: 1;
  border: 4px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.78;
  box-shadow: 0 0 42px rgba(72, 227, 255, 0.62);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.14s ease;
}

.souls-aura::before,
.souls-aura::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed currentColor;
  opacity: 0.3;
}

.souls-aura::after {
  inset: 24%;
  border-style: solid;
}

.aura-ring {
  position: absolute;
  inset: 6%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.36;
  box-shadow:
    inset 0 0 18px currentColor,
    0 0 18px currentColor;
}

.ring-two {
  inset: 18%;
  border-style: dashed;
  animation: souls-spin 3.8s linear infinite reverse;
}

.ring-three {
  inset: 31%;
  border-width: 2px;
  opacity: 0.22;
  animation: souls-spin 5.4s linear infinite;
}

.aura-bit {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.aura-rune {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 900;
  text-shadow: 0 0 12px currentColor;
  box-shadow: 0 0 14px currentColor;
  opacity: 0.78;
}

.aura-flame {
  position: absolute;
  width: 30px;
  height: 42px;
  border-radius: 55% 55% 55% 12%;
  background:
    radial-gradient(circle at 58% 68%, rgba(255, 255, 255, 0.8), transparent 16%),
    linear-gradient(180deg, rgba(255, 203, 69, 0.95), rgba(255, 90, 95, 0.78));
  box-shadow: 0 0 24px rgba(255, 143, 69, 0.75);
  opacity: 0.85;
  transform: rotate(-45deg);
}

.bit-one {
  left: 13%;
  top: 25%;
}

.bit-two {
  right: 14%;
  top: 18%;
}

.bit-three {
  left: 19%;
  bottom: 15%;
}

.bit-four {
  right: 23%;
  bottom: 12%;
}

.bit-five {
  left: 47%;
  top: 5%;
}

.bit-six {
  right: 43%;
  bottom: 3%;
}

.bit-seven {
  left: 5%;
  top: 54%;
}

.bit-eight {
  right: 5%;
  top: 53%;
}

.flame-one {
  left: 30%;
  bottom: 5%;
}

.flame-two {
  right: 29%;
  bottom: 7%;
  animation-delay: 0.14s;
}

.flame-three {
  left: 47%;
  top: 6%;
  width: 23px;
  height: 34px;
  animation-delay: 0.27s;
}

.flame-four {
  right: 7%;
  top: 42%;
  width: 24px;
  height: 36px;
  animation-delay: 0.41s;
}

.rune-one {
  left: 13%;
  top: 9%;
}

.rune-two {
  right: 10%;
  top: 35%;
}

.rune-three {
  left: 16%;
  bottom: 22%;
}

.rune-four {
  right: 19%;
  bottom: 18%;
}

.souls-character {
  --soul-color: #48e3ff;
  --skin-color: #d49a70;
  --hat-color: transparent;
  position: relative;
  width: 150px;
  height: 264px;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.42));
}

.souls-shadow {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(5px);
}

.souls-head,
.souls-hat,
.souls-hair,
.souls-eye,
.souls-neck,
.souls-body,
.souls-jacket,
.souls-belt,
.souls-arm,
.souls-hand,
.souls-fingers,
.souls-glove,
.souls-leg,
.souls-foot {
  position: absolute;
  display: block;
}

.souls-head {
  z-index: 5;
  left: 51px;
  top: 8px;
  width: 52px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-radius: 45% 45% 48% 48%;
  background:
    radial-gradient(circle at 63% 70%, rgba(255, 255, 255, 0.22) 0 7%, transparent 8%),
    linear-gradient(180deg, #ffd1aa, var(--skin-color));
}

.souls-hair {
  z-index: 6;
  left: 47px;
  top: 0;
  width: 60px;
  height: 31px;
  border-radius: 28px 28px 10px 10px;
  background: #2b1c17;
  box-shadow:
    8px 18px 0 -8px #2b1c17,
    -8px 18px 0 -8px #2b1c17;
}

.souls-hat {
  z-index: 10;
  left: 41px;
  top: -18px;
  width: 72px;
  height: 34px;
  opacity: 0;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.souls-eye {
  z-index: 7;
  top: 35px;
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: #10131f;
}

.eye-left {
  left: 65px;
}

.eye-right {
  left: 84px;
}

.souls-neck {
  z-index: 3;
  left: 67px;
  top: 61px;
  width: 20px;
  height: 22px;
  border-radius: 0 0 8px 8px;
  background: var(--skin-color);
}

.souls-body {
  z-index: 4;
  left: 40px;
  top: 76px;
  width: 74px;
  height: 108px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 21px 21px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18% 82%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, var(--soul-color), #252c54 70%, #171b35);
}

.souls-jacket {
  z-index: 5;
  left: 48px;
  top: 85px;
  width: 58px;
  height: 88px;
  border-radius: 14px 14px 7px 7px;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, 0.28) 46% 50%, transparent 51%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 45%);
}

.souls-belt {
  z-index: 6;
  left: 43px;
  top: 162px;
  width: 68px;
  height: 10px;
  border-radius: 999px;
  background: #131828;
  box-shadow: 28px 0 0 -3px rgba(255, 203, 69, 0.9);
}

.souls-arm {
  z-index: 3;
  top: 86px;
  width: 24px;
  height: 86px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--soul-color) 0 58%, var(--skin-color) 59% 100%);
}

.arm-left {
  left: 22px;
  transform: rotate(12deg);
}

.arm-right {
  right: 22px;
  transform: rotate(-12deg);
  transform-origin: top center;
}

.souls-hand {
  z-index: 4;
  top: 158px;
  width: 26px;
  height: 24px;
  border-radius: 46% 46% 50% 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(180deg, #ffd1aa, var(--skin-color));
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.15);
}

.hand-left {
  left: 18px;
}

.hand-right {
  right: 18px;
  transform-origin: 50% -58px;
}

.souls-hand::before,
.souls-hand::after {
  content: "";
  position: absolute;
  display: block;
}

.souls-hand::before {
  left: 5px;
  top: -3px;
  width: 4px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe1c6, var(--skin-color));
  box-shadow:
    5px -1px 0 #f0b486,
    10px 0 0 #e7a878,
    15px 2px 0 #dc9d70;
}

.souls-hand::after {
  top: 8px;
  width: 9px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd8b7, var(--skin-color));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.hand-left::after {
  left: -5px;
  transform: rotate(-28deg);
}

.hand-right::after {
  right: -5px;
  transform: rotate(28deg);
}

.souls-fingers {
  z-index: 8;
  top: 157px;
  width: 29px;
  height: 18px;
  pointer-events: none;
}

.fingers-left {
  left: 17px;
}

.fingers-right {
  right: 17px;
}

.souls-fingers::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 2px;
  height: 11px;
  border-radius: 999px;
  background: rgba(91, 52, 38, 0.22);
  box-shadow:
    5px -1px 0 rgba(91, 52, 38, 0.22),
    10px 0 0 rgba(91, 52, 38, 0.22),
    15px 2px 0 rgba(91, 52, 38, 0.18);
}

.souls-fingers::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(249, 251, 255, 0.45);
  box-shadow:
    5px 0 0 rgba(249, 251, 255, 0.4),
    10px 0 0 rgba(249, 251, 255, 0.34),
    15px 1px 0 rgba(249, 251, 255, 0.3);
}

.souls-glove {
  z-index: 7;
  top: 156px;
  width: 30px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 13px 13px 15px 15px;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.72), transparent 11%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    var(--glove-color, #10131f);
  box-shadow:
    0 0 16px var(--glove-color, #10131f),
    inset 0 -5px 0 rgba(0, 0, 0, 0.22);
}

.glove-left {
  left: 17px;
  transform: rotate(10deg);
}

.glove-right {
  right: 17px;
  transform: rotate(-10deg);
  transform-origin: 50% -54px;
}

.souls-character.waving .arm-right {
  animation: souls-wave-arm 0.9s ease-in-out both;
}

.souls-character.waving .hand-right,
.souls-character.waving .glove-right {
  animation: souls-wave-hand 0.9s ease-in-out both;
}

.souls-character.glove-charging .arm-right {
  animation: glove-equip-arm 2.08s cubic-bezier(0.2, 0.88, 0.18, 1) both;
}

.souls-character.glove-charging .hand-right,
.souls-character.glove-charging .fingers-right {
  animation: glove-equip-hand 2.08s cubic-bezier(0.2, 0.88, 0.18, 1) both;
}

.souls-character.glove-charging .glove-right {
  z-index: 12;
  animation: glove-equip-orbit 2.08s cubic-bezier(0.16, 0.92, 0.14, 1) both;
}

.souls-character.glove-charging .glove-left {
  z-index: 11;
  animation: glove-equip-left-snap 2.08s cubic-bezier(0.16, 0.92, 0.14, 1) both;
}

.souls-character.hat-charging .souls-hat {
  animation: hat-equip-drop 1.38s cubic-bezier(0.18, 0.88, 0.16, 1) both;
}

.glove-gravity .souls-glove {
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(255, 255, 255, 0.56) 37% 44%, transparent 45%),
    radial-gradient(circle at 66% 28%, rgba(217, 255, 106, 0.95), transparent 14%),
    linear-gradient(135deg, #90f95c, #163c31);
}

.glove-cosmic .souls-glove {
  border-radius: 9px 17px 12px 17px;
  background:
    radial-gradient(circle at 30% 28%, rgba(249, 251, 255, 0.92), transparent 7%),
    radial-gradient(circle at 70% 63%, rgba(185, 133, 255, 0.86), transparent 10%),
    linear-gradient(135deg, #48e3ff, #251b62);
}

.glove-supernova .souls-glove {
  border-color: rgba(255, 203, 69, 0.82);
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 203, 69, 0.95) 0 12deg, rgba(255, 123, 213, 0.9) 12deg 24deg, rgba(72, 227, 255, 0.8) 24deg 36deg),
    #ff7bd5;
  animation: solar-shine 0.85s ease-in-out infinite alternate;
}

.glove-lunar .souls-glove {
  border-color: rgba(249, 251, 255, 0.6);
  background:
    radial-gradient(circle at 28% 28%, rgba(249, 251, 255, 0.9), transparent 11%),
    radial-gradient(circle at 67% 66%, rgba(72, 227, 255, 0.5), transparent 13%),
    linear-gradient(135deg, #b985ff, #1a183e);
}

.glove-nebula .souls-glove {
  border-radius: 16px 7px 16px 7px;
  background:
    radial-gradient(circle at 25% 30%, rgba(249, 251, 255, 0.8), transparent 8%),
    radial-gradient(circle at 70% 24%, rgba(255, 123, 213, 0.75), transparent 10%),
    radial-gradient(circle at 56% 70%, rgba(144, 249, 92, 0.65), transparent 12%),
    linear-gradient(135deg, #7df9ff, #21194d);
}

.glove-eclipse .souls-glove {
  border-color: rgba(255, 203, 69, 0.78);
  background:
    radial-gradient(circle at 55% 47%, #071015 0 22%, transparent 23%),
    conic-gradient(from 30deg, #ffcb45, #ff5a5f, #322040, #ffcb45);
}

.glove-infinity .souls-glove {
  border-color: rgba(249, 251, 255, 0.86);
  background:
    radial-gradient(ellipse at 34% 48%, transparent 0 21%, rgba(249, 251, 255, 0.88) 22% 31%, transparent 32%),
    radial-gradient(ellipse at 68% 48%, transparent 0 21%, rgba(72, 227, 255, 0.86) 22% 31%, transparent 32%),
    linear-gradient(135deg, #f9fbff, #3650a8);
  box-shadow:
    0 0 20px rgba(249, 251, 255, 0.86),
    inset 0 -5px 0 rgba(0, 0, 0, 0.22);
}

.glove-admincore .souls-glove {
  border-color: rgba(255, 79, 163, 0.95);
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(249, 251, 255, 0.84) 21% 27%, transparent 28% 72%, rgba(249, 251, 255, 0.84) 73% 79%, transparent 80%),
    repeating-linear-gradient(135deg, rgba(255, 79, 163, 0.95) 0 7px, rgba(72, 227, 255, 0.88) 7px 14px),
    #ff4fa3;
  animation: flicker-zap 0.72s steps(2, end) infinite;
}

.glove-omniverse .souls-glove {
  border-color: rgba(217, 255, 106, 0.95);
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 251, 255, 0.96), transparent 13%),
    conic-gradient(from 0deg, #d9ff6a, #90f95c, #48e3ff, #ff7bd5, #ffcb45, #d9ff6a);
  box-shadow:
    0 0 28px rgba(217, 255, 106, 0.9),
    0 0 52px rgba(72, 227, 255, 0.5),
    inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  animation: souls-spin 1.8s linear infinite;
}

.hat-embercap .souls-hat {
  top: -7px;
  opacity: 1;
  height: 25px;
  border-radius: 18px 18px 9px 9px;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(249, 251, 255, 0.24) 59% 66%, transparent 67%),
    linear-gradient(180deg, #ffcb45, var(--hat-color));
  box-shadow:
    0 7px 0 -2px #5a241c,
    0 0 20px rgba(255, 143, 69, 0.72);
}

.hat-embercap .souls-hair,
.hat-moonhood .souls-hair,
.hat-stormcrown .souls-hair,
.hat-voidhelm .souls-hair {
  opacity: 0;
}

.hat-embercap .souls-hat::before,
.hat-embercap .souls-hat::after,
.hat-moonhood .souls-hat::before,
.hat-moonhood .souls-hat::after,
.hat-stormcrown .souls-hat::before,
.hat-stormcrown .souls-hat::after,
.hat-voidhelm .souls-hat::before,
.hat-voidhelm .souls-hat::after,
.hat-originhalo .souls-hat::before,
.hat-originhalo .souls-hat::after {
  content: "";
  position: absolute;
  display: block;
}

.hat-embercap .souls-hat::before {
  left: 4px;
  bottom: -6px;
  width: 45px;
  height: 10px;
  border-radius: 999px;
  background: #ff8f45;
  box-shadow: 0 0 12px rgba(255, 143, 69, 0.6);
}

.hat-moonhood .souls-hat {
  top: -9px;
  left: 38px;
  width: 78px;
  height: 49px;
  opacity: 1;
  border-radius: 35px 35px 16px 16px;
  background:
    radial-gradient(circle at 50% 70%, rgba(3, 8, 18, 0.92) 0 37%, transparent 38%),
    radial-gradient(circle at 30% 24%, rgba(249, 251, 255, 0.45), transparent 9%),
    linear-gradient(135deg, var(--hat-color), #31215d);
  box-shadow: 0 0 24px rgba(185, 133, 255, 0.76);
}

.hat-moonhood .souls-hat::before {
  left: 17px;
  bottom: 2px;
  width: 44px;
  height: 7px;
  border-radius: 999px;
  background: rgba(249, 251, 255, 0.26);
}

.hat-stormcrown .souls-hat {
  top: -12px;
  left: 43px;
  width: 68px;
  height: 40px;
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(249, 251, 255, 0.65), transparent 18%),
    linear-gradient(180deg, #48e3ff, #155c76);
  clip-path: polygon(0 100%, 0 43%, 17% 62%, 31% 7%, 50% 61%, 69% 7%, 83% 62%, 100% 43%, 100% 100%);
  filter: drop-shadow(0 0 14px rgba(72, 227, 255, 0.82));
}

.hat-stormcrown .souls-hat::before {
  left: 14px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f9fbff;
  box-shadow:
    20px -11px 0 #f9fbff,
    40px 0 0 #f9fbff;
}

.hat-voidhelm .souls-hat {
  top: -8px;
  left: 39px;
  width: 76px;
  height: 48px;
  opacity: 1;
  border-radius: 26px 26px 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(3, 8, 18, 0.9) 32% 68%, transparent 69%),
    radial-gradient(circle at 50% 35%, rgba(125, 249, 255, 0.9), transparent 11%),
    linear-gradient(135deg, #10131f, var(--hat-color));
  box-shadow:
    0 0 24px rgba(125, 249, 255, 0.78),
    inset 0 -8px 0 rgba(0, 0, 0, 0.35);
}

.hat-voidhelm .souls-hat::before {
  left: 12px;
  top: 23px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(249, 251, 255, 0.56);
  box-shadow: 0 0 12px rgba(125, 249, 255, 0.85);
}

.hat-originhalo .souls-hat {
  top: -26px;
  left: 45px;
  width: 64px;
  height: 22px;
  opacity: 1;
  border: 5px solid var(--hat-color);
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 22px rgba(217, 255, 106, 0.95),
    inset 0 0 18px rgba(217, 255, 106, 0.52);
}

.hat-originhalo .souls-hat::before {
  left: 8px;
  top: 3px;
  width: 39px;
  height: 7px;
  border-radius: 50%;
  background: rgba(249, 251, 255, 0.7);
  filter: blur(3px);
}

.souls-leg {
  z-index: 2;
  top: 178px;
  width: 31px;
  height: 72px;
  border-radius: 13px 13px 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 42%),
    #252a42;
}

.leg-left {
  left: 43px;
}

.leg-right {
  right: 43px;
}

.souls-foot {
  z-index: 3;
  bottom: 1px;
  width: 42px;
  height: 18px;
  border-radius: 12px 12px 7px 7px;
  background: #10131f;
}

.foot-left {
  left: 34px;
}

.foot-right {
  right: 34px;
}

.souls-reveal {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(390px, calc(100% - 20px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.82);
  color: var(--ink);
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 900;
  text-align: center;
}

.souls-roll-button {
  min-width: 148px;
  border-color: rgba(255, 203, 69, 0.72);
  background: rgba(255, 203, 69, 0.16);
  font-weight: 900;
}

.souls-roll-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.souls-mini-scene {
  --mini-color: #48e3ff;
  --mini-duration: 900ms;
  --mini-tilt: 0deg;
  --mini-drift-x: 0px;
  --mini-drift-y: 0px;
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 251, 255, 0.12), transparent 26%),
    rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
}

.souls-mini-scene.show {
  animation: mini-scene var(--mini-duration) ease-in-out both;
}

.mini-orb {
  position: absolute;
  width: clamp(54px, 8vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(249, 251, 255, 0.95), transparent 14%),
    radial-gradient(circle, var(--mini-color), rgba(3, 8, 18, 0.85) 74%);
  box-shadow:
    0 0 24px var(--mini-color),
    0 0 62px var(--mini-color);
  opacity: 0;
}

.souls-mini-scene.show .mini-orb {
  animation: mini-orb var(--mini-duration) ease-out both;
}

.mini-ring {
  position: absolute;
  width: clamp(112px, 16vw, 220px);
  aspect-ratio: 1;
  border: 2px solid var(--mini-color);
  border-radius: 50%;
  box-shadow:
    inset 0 0 16px var(--mini-color),
    0 0 18px var(--mini-color);
  opacity: 0;
}

.mini-ring-two {
  width: clamp(170px, 24vw, 320px);
  border-style: dashed;
}

.souls-mini-scene.show .mini-ring-one {
  animation: mini-ring var(--mini-duration) ease-out both;
}

.souls-mini-scene.show .mini-ring-two {
  animation: mini-ring var(--mini-duration) ease-out 0.08s both;
}

.mini-spark {
  --spark-angle: 0deg;
  position: absolute;
  width: 6px;
  height: clamp(56px, 8vw, 96px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--mini-color), transparent);
  box-shadow: 0 0 14px var(--mini-color);
  opacity: 0;
  transform: rotate(var(--spark-angle));
}

.mini-spark-one {
  --spark-angle: 0deg;
}

.mini-spark-two {
  --spark-angle: 64deg;
}

.mini-spark-three {
  --spark-angle: 128deg;
}

.souls-mini-scene.show .mini-spark {
  animation: mini-spark var(--mini-duration) ease-out both;
}

.mini-wave,
.mini-shard,
.mini-rune {
  position: absolute;
  opacity: 0;
}

.mini-wave {
  width: clamp(130px, 18vw, 270px);
  aspect-ratio: 1;
  border: 2px solid var(--mini-color);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--mini-color);
}

.mini-wave-two {
  width: clamp(210px, 30vw, 420px);
}

.mini-shard {
  width: 26px;
  height: 36px;
  background: linear-gradient(135deg, rgba(249, 251, 255, 0.92), var(--mini-color));
  clip-path: polygon(50% 0, 100% 76%, 22% 100%, 0 32%);
  box-shadow: 0 0 16px var(--mini-color);
}

.mini-shard-one {
  left: calc(50% - 72px);
  top: calc(50% - 20px);
}

.mini-shard-two {
  left: calc(50% + 46px);
  top: calc(50% + 16px);
}

.mini-rune {
  color: var(--mini-color);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 900;
  text-shadow:
    0 0 18px var(--mini-color),
    0 0 34px var(--mini-color);
}

.mini-rune-one {
  left: calc(50% - 138px);
  top: calc(50% - 112px);
}

.mini-rune-two {
  right: calc(50% - 148px);
  bottom: calc(50% - 120px);
}

.souls-mini-scene[data-effect="ember"] {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 143, 69, 0.24), transparent 28%),
    rgba(0, 0, 0, 0.68);
}

.souls-mini-scene[data-effect="ember"] .mini-orb {
  border-radius: 48% 52% 46% 54%;
  clip-path: polygon(50% 0, 76% 34%, 68% 100%, 50% 78%, 28% 100%, 22% 36%);
}

.souls-mini-scene.show[data-effect="ember"] .mini-orb {
  animation: mini-ember var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="ember"] .mini-spark {
  animation: mini-flame-spark var(--mini-duration) ease-out both;
}

.souls-mini-scene[data-effect="flicker"] {
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(72, 227, 255, 0.18) 43% 47%, transparent 48%),
    rgba(0, 0, 0, 0.66);
}

.souls-mini-scene.show[data-effect="flicker"] .mini-orb {
  animation: mini-flicker var(--mini-duration) steps(4, end) both;
}

.souls-mini-scene.show[data-effect="flicker"] .mini-spark {
  animation: mini-zap var(--mini-duration) steps(3, end) both;
}

.souls-mini-scene.show[data-effect="pulse"] .mini-wave {
  animation: mini-pulse-wave var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="pulse"] .mini-wave-two {
  animation-delay: 0.12s;
}

.souls-mini-scene.show[data-effect="spark"] .mini-shard {
  animation: mini-shard-burst var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="spark"] .mini-spark {
  animation: mini-spark-cross var(--mini-duration) ease-out both;
}

.souls-mini-scene[data-effect="moon"] .mini-orb {
  background:
    radial-gradient(circle at 70% 46%, rgba(3, 8, 18, 0.92) 0 33%, transparent 34%),
    radial-gradient(circle, var(--mini-color), #f9fbff 72%);
}

.souls-mini-scene.show[data-effect="moon"] .mini-orb {
  animation: mini-moon-rise var(--mini-duration) ease-in-out both;
}

.souls-mini-scene.show[data-effect="moon"] .mini-ring {
  animation: mini-moon-orbit var(--mini-duration) ease-out both;
}

.souls-mini-scene[data-effect="solar"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 203, 69, 0.26), transparent 31%),
    rgba(0, 0, 0, 0.66);
}

.souls-mini-scene.show[data-effect="solar"] .mini-orb {
  animation: mini-solar-pop var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="solar"] .mini-spark {
  animation: mini-solar-ray var(--mini-duration) ease-out both;
}

.souls-mini-scene[data-effect="void"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 249, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.72) 45%, #000 70%);
}

.souls-mini-scene[data-effect="void"] .mini-orb {
  background:
    radial-gradient(circle, rgba(3, 8, 18, 0.98) 0 42%, var(--mini-color) 44% 58%, transparent 60%);
}

.souls-mini-scene.show[data-effect="void"] .mini-orb {
  animation: mini-void-hole var(--mini-duration) ease-in-out both;
}

.souls-mini-scene.show[data-effect="void"] .mini-ring {
  animation: mini-void-ring var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="secret"] .mini-rune {
  animation: mini-rune-pop var(--mini-duration) ease-out both;
}

.souls-mini-scene.show[data-effect="secret"] .mini-orb {
  animation: mini-secret-star var(--mini-duration) ease-out both;
}

.mini-text {
  position: absolute;
  left: 50%;
  bottom: 21%;
  width: min(540px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 16px var(--mini-color),
    0 0 30px var(--mini-color);
  opacity: 0;
}

.souls-mini-scene.show .mini-text {
  animation: mini-text var(--mini-duration) ease-out both;
}

.souls-rare-scene {
  --rare-color: #ff7bd5;
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.souls-rare-scene.show {
  animation: rare-scene 3.3s ease-in-out both;
}

.souls-rare-scene[data-effect="ember"] {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 143, 69, 0.28), transparent 35%),
    #000;
}

.souls-rare-scene[data-effect="flicker"] {
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(72, 227, 255, 0.18) 39% 43%, transparent 44% 62%, rgba(249, 251, 255, 0.1) 63% 66%, transparent 67%),
    #000;
}

.souls-rare-scene[data-effect="moon"] {
  background:
    radial-gradient(circle at 65% 28%, rgba(249, 251, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(185, 133, 255, 0.16), transparent 34%),
    #000;
}

.souls-rare-scene[data-effect="solar"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 203, 69, 0.26), transparent 38%),
    #090501;
}

.souls-rare-scene[data-effect="void"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.95) 0 18%, rgba(125, 249, 255, 0.18) 19% 35%, transparent 36%),
    #000;
}

.souls-rare-scene[data-effect="secret"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 251, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #000, #080a18);
}

.rare-star {
  position: absolute;
  width: clamp(84px, 12vw, 140px);
  aspect-ratio: 1;
  background: var(--rare-color);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  filter:
    drop-shadow(0 0 24px var(--rare-color))
    drop-shadow(0 0 58px var(--rare-color));
  opacity: 0;
}

.souls-rare-scene.show .rare-star {
  animation: rare-star 3.05s ease-in-out both;
}

.souls-rare-scene.show[data-effect="ember"] .rare-star {
  animation-name: rare-ember-star;
}

.souls-rare-scene.show[data-effect="flicker"] .rare-star {
  animation-name: rare-flicker-star;
}

.souls-rare-scene[data-effect="moon"] .rare-star {
  border-radius: 50%;
  clip-path: none;
  background:
    radial-gradient(circle at 70% 48%, #000 0 33%, transparent 34%),
    var(--rare-color);
}

.souls-rare-scene.show[data-effect="moon"] .rare-star {
  animation-name: rare-moon-star;
}

.souls-rare-scene.show[data-effect="solar"] .rare-star {
  animation-name: rare-solar-star;
}

.souls-rare-scene[data-effect="void"] .rare-star {
  border-radius: 50%;
  clip-path: none;
  background: radial-gradient(circle, #000 0 34%, var(--rare-color) 36% 52%, transparent 54%);
}

.souls-rare-scene.show[data-effect="void"] .rare-star {
  animation-name: rare-void-star;
}

.souls-rare-scene.show[data-effect="secret"] .rare-star {
  animation-name: rare-secret-star;
}

.rare-ring {
  position: absolute;
  width: clamp(170px, 24vw, 310px);
  aspect-ratio: 1;
  border: 2px solid var(--rare-color);
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    inset 0 0 22px var(--rare-color),
    0 0 32px var(--rare-color);
}

.rare-ring-two {
  width: clamp(260px, 36vw, 460px);
  border-style: dashed;
}

.souls-rare-scene.show .rare-ring-one {
  animation: rare-ring-pulse 1.1s ease-out 0.35s 3;
}

.souls-rare-scene.show .rare-ring-two {
  animation: rare-ring-pulse 1.35s ease-out 0.55s 2;
}

.rare-beam {
  position: absolute;
  width: 4px;
  height: 150%;
  background: linear-gradient(180deg, transparent, var(--rare-color), transparent);
  opacity: 0;
  box-shadow: 0 0 24px var(--rare-color);
}

.beam-one {
  --beam-rotate: 0deg;
  transform: rotate(var(--beam-rotate));
}

.beam-two {
  --beam-rotate: 60deg;
  transform: rotate(var(--beam-rotate));
}

.beam-three {
  --beam-rotate: 120deg;
  transform: rotate(var(--beam-rotate));
}

.souls-rare-scene.show .rare-beam {
  animation: rare-beam 1.25s ease-out 1.1s both;
}

.rare-crack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 42%;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(249, 251, 255, 0));
  opacity: 0;
  transform-origin: top center;
  box-shadow: 0 0 16px rgba(249, 251, 255, 0.8);
}

.crack-one {
  transform: rotate(24deg);
}

.crack-two {
  transform: rotate(105deg);
}

.crack-three {
  transform: rotate(205deg);
}

.crack-four {
  transform: rotate(294deg);
}

.souls-rare-scene.show .rare-crack {
  animation: rare-crack 1.45s cubic-bezier(0.2, 0.8, 0.2, 1) 1.42s both;
}

.rare-shard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 38px;
  background: linear-gradient(135deg, rgba(249, 251, 255, 0.88), var(--rare-color));
  clip-path: polygon(50% 0, 100% 80%, 22% 100%, 0 35%);
  opacity: 0;
  box-shadow: 0 0 18px var(--rare-color);
}

.shard-one {
  --shard-x: -230px;
  --shard-y: -120px;
}

.shard-two {
  --shard-x: 250px;
  --shard-y: -80px;
}

.shard-three {
  --shard-x: -190px;
  --shard-y: 150px;
}

.shard-four {
  --shard-x: 220px;
  --shard-y: 145px;
}

.souls-rare-scene.show .rare-shard {
  animation: rare-shard 1.2s ease-out 1.45s both;
}

.rare-text {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 18px var(--rare-color),
    0 0 34px var(--rare-color);
  opacity: 0;
}

.souls-rare-scene.show .rare-text {
  animation: rare-text 1.25s ease-out 1.65s both;
}

.souls-royal-scene {
  --royal-color: #ff5a5f;
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 90, 95, 0.22), transparent 32%),
    #000;
  opacity: 0;
  pointer-events: none;
}

.souls-royal-scene.show {
  animation: royal-scene 4.6s ease-in-out both;
}

.royal-red-core {
  position: absolute;
  width: clamp(92px, 13vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(249, 251, 255, 0.95), transparent 14%),
    radial-gradient(circle, var(--royal-color), #7e1018 58%, #1b0508 72%);
  box-shadow:
    0 0 28px var(--royal-color),
    0 0 84px rgba(255, 90, 95, 0.92);
  opacity: 0;
}

.souls-royal-scene.show .royal-red-core {
  animation: royal-core 2.25s cubic-bezier(0.2, 0.9, 0.1, 1) both;
}

.royal-swirl {
  position: absolute;
  width: clamp(190px, 28vw, 380px);
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-top-color: var(--royal-color);
  border-right-color: rgba(255, 90, 95, 0.42);
  border-radius: 50%;
  filter: drop-shadow(0 0 18px var(--royal-color));
  opacity: 0;
}

.swirl-two {
  width: clamp(250px, 36vw, 500px);
  transform: rotate(70deg);
}

.swirl-three {
  width: clamp(310px, 44vw, 610px);
  transform: rotate(140deg);
}

.souls-royal-scene.show .royal-swirl {
  animation: royal-swirl 1.85s cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.royal-fragment {
  --fragment-x: 0px;
  --fragment-y: 0px;
  --fragment-rotate: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 42px;
  background: linear-gradient(135deg, #ffe8e8, var(--royal-color) 55%, #641018);
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 18% 86%, 0 26%);
  box-shadow: 0 0 18px var(--royal-color);
  opacity: 0;
}

.fragment-one {
  --fragment-x: -86px;
  --fragment-y: -58px;
  --fragment-rotate: -42deg;
}

.fragment-two {
  --fragment-x: 72px;
  --fragment-y: -74px;
  --fragment-rotate: 38deg;
}

.fragment-three {
  --fragment-x: 112px;
  --fragment-y: 8px;
  --fragment-rotate: 104deg;
}

.fragment-four {
  --fragment-x: 42px;
  --fragment-y: 82px;
  --fragment-rotate: 162deg;
}

.fragment-five {
  --fragment-x: -66px;
  --fragment-y: 76px;
  --fragment-rotate: 228deg;
}

.fragment-six {
  --fragment-x: -118px;
  --fragment-y: -2px;
  --fragment-rotate: 292deg;
}

.souls-royal-scene.show .royal-fragment {
  animation: royal-fragment 2.35s ease-in-out 1.12s both;
}

.royal-moon {
  position: absolute;
  width: clamp(118px, 16vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(249, 251, 255, 0.9), transparent 8%),
    radial-gradient(circle at 64% 62%, rgba(112, 121, 150, 0.38), transparent 9%),
    radial-gradient(circle at 42% 72%, rgba(112, 121, 150, 0.28), transparent 7%),
    linear-gradient(135deg, #f9fbff, #aeb8dc 62%, #727ea8);
  box-shadow:
    0 0 30px rgba(249, 251, 255, 0.94),
    0 0 90px rgba(185, 133, 255, 0.42);
  opacity: 0;
}

.royal-moon::after {
  content: "";
  position: absolute;
  inset: 8% -14% 8% 40%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(2px);
}

.souls-royal-scene.show .royal-moon {
  animation: royal-moon 2.1s ease-out 2.14s both;
}

.royal-text {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.28rem, 3.8vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 20px var(--royal-color),
    0 0 42px rgba(249, 251, 255, 0.8);
  opacity: 0;
}

.souls-royal-scene.show .royal-text {
  animation: royal-text 1.65s ease-out 2.7s both;
}

.souls-eclipse-scene {
  --eclipse-color: #ff5a5f;
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(249, 251, 255, 0.16), transparent 10%),
    radial-gradient(circle at 50% 44%, rgba(255, 203, 69, 0.17), transparent 26%),
    radial-gradient(circle at 50% 62%, rgba(72, 227, 255, 0.1), transparent 32%),
    #000;
  opacity: 0;
  pointer-events: none;
}

.souls-eclipse-scene.show {
  animation: eclipse-scene 7.2s ease-in-out both;
}

.eclipse-star {
  position: absolute;
  top: 31%;
  width: clamp(74px, 10vw, 126px);
  aspect-ratio: 1;
  background: var(--eclipse-color);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  filter:
    drop-shadow(0 0 24px var(--eclipse-color))
    drop-shadow(0 0 62px rgba(255, 203, 69, 0.78));
  opacity: 0;
  will-change: transform, opacity, filter;
}

.star-left {
  left: 17%;
}

.star-right {
  right: 17%;
}

.souls-eclipse-scene.show .star-left {
  animation: eclipse-star-left 3.05s cubic-bezier(0.18, 0.72, 0.13, 1) 0.35s both;
}

.souls-eclipse-scene.show .star-right {
  animation: eclipse-star-right 3.05s cubic-bezier(0.18, 0.72, 0.13, 1) 0.35s both;
}

.eclipse-star-core,
.eclipse-wave {
  position: absolute;
  left: 50%;
  top: 36%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.eclipse-star-core {
  width: clamp(54px, 8vw, 118px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #f9fbff 0 18%, var(--eclipse-color) 21% 45%, rgba(255, 203, 69, 0.78) 49% 66%, transparent 70%);
  box-shadow:
    0 0 38px var(--eclipse-color),
    0 0 95px rgba(255, 203, 69, 0.78);
}

.souls-eclipse-scene.show .eclipse-star-core {
  animation: eclipse-star-core 4s ease-in-out 1.55s both;
}

.eclipse-wave {
  width: clamp(145px, 23vw, 340px);
  aspect-ratio: 1;
  border: 2px solid var(--eclipse-color);
  box-shadow:
    inset 0 0 18px rgba(249, 251, 255, 0.42),
    0 0 28px var(--eclipse-color);
}

.wave-two {
  width: clamp(210px, 31vw, 470px);
  border-color: rgba(255, 203, 69, 0.84);
}

.wave-three {
  width: clamp(280px, 42vw, 640px);
  border-style: dashed;
}

.souls-eclipse-scene.show .wave-one {
  animation: eclipse-wave 2.8s ease-out 2.55s both;
}

.souls-eclipse-scene.show .wave-two {
  animation: eclipse-wave 3s ease-out 2.8s both;
}

.souls-eclipse-scene.show .wave-three {
  animation: eclipse-wave 3.2s ease-out 3.05s both;
}

.eclipse-impact {
  position: absolute;
  left: 50%;
  top: 36%;
  width: clamp(110px, 18vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f9fbff 0 14%, var(--eclipse-color) 16% 34%, rgba(255, 203, 69, 0.78) 36% 48%, transparent 52%);
  box-shadow:
    0 0 36px var(--eclipse-color),
    0 0 120px rgba(255, 203, 69, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.souls-eclipse-scene.show .eclipse-impact {
  animation: eclipse-impact 3.1s cubic-bezier(0.12, 0.78, 0.16, 1) 2.15s both;
}

.eclipse-spark {
  --spark-x: 0px;
  --spark-y: 0px;
  position: absolute;
  top: 36%;
  left: 50%;
  width: 12px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff, var(--eclipse-color), transparent);
  box-shadow: 0 0 18px var(--eclipse-color);
  opacity: 0;
}

.spark-one {
  --spark-x: -250px;
  --spark-y: -80px;
  --spark-x-a: -45px;
  --spark-y-a: -14px;
  --spark-x-b: -105px;
  --spark-y-b: -34px;
  --spark-x-c: -180px;
  --spark-y-c: -58px;
  transform: rotate(-62deg);
}

.spark-two {
  --spark-x: 240px;
  --spark-y: -70px;
  --spark-x-a: 43px;
  --spark-y-a: -13px;
  --spark-x-b: 101px;
  --spark-y-b: -29px;
  --spark-x-c: 173px;
  --spark-y-c: -50px;
  transform: rotate(58deg);
}

.spark-three {
  --spark-x: -170px;
  --spark-y: 130px;
  --spark-x-a: -31px;
  --spark-y-a: 23px;
  --spark-x-b: -72px;
  --spark-y-b: 55px;
  --spark-x-c: -122px;
  --spark-y-c: 94px;
  transform: rotate(-128deg);
}

.spark-four {
  --spark-x: 190px;
  --spark-y: 120px;
  --spark-x-a: 34px;
  --spark-y-a: 22px;
  --spark-x-b: 80px;
  --spark-y-b: 50px;
  --spark-x-c: 137px;
  --spark-y-c: 86px;
  transform: rotate(124deg);
}

.souls-eclipse-scene.show .eclipse-spark {
  animation: eclipse-spark 2.45s ease-out 2.55s both;
}

.eclipse-dust {
  --dust-x: 0px;
  --dust-y: 0px;
  --dust-rotate: 0deg;
  position: absolute;
  left: 50%;
  top: 36%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #f9fbff, var(--eclipse-color) 45%, transparent 72%);
  box-shadow: 0 0 18px var(--eclipse-color);
  opacity: 0;
}

.dust-one {
  --dust-x: -260px;
  --dust-y: -118px;
  --dust-x-a: -31px;
  --dust-y-a: -14px;
  --dust-x-b: -73px;
  --dust-y-b: -33px;
  --dust-x-c: -135px;
  --dust-y-c: -61px;
  --dust-x-d: -203px;
  --dust-y-d: -92px;
  --dust-rotate: -145deg;
  --dust-rotate-a: -29deg;
  --dust-rotate-b: -65deg;
  --dust-rotate-c: -102deg;
  --dust-rotate-d: -131deg;
}

.dust-two {
  --dust-x: 276px;
  --dust-y: -98px;
  --dust-x-a: 33px;
  --dust-y-a: -12px;
  --dust-x-b: 77px;
  --dust-y-b: -27px;
  --dust-x-c: 144px;
  --dust-y-c: -51px;
  --dust-x-d: 215px;
  --dust-y-d: -76px;
  --dust-rotate: 132deg;
  --dust-rotate-a: 26deg;
  --dust-rotate-b: 59deg;
  --dust-rotate-c: 92deg;
  --dust-rotate-d: 119deg;
}

.dust-three {
  --dust-x: -220px;
  --dust-y: 132px;
  --dust-x-a: -26px;
  --dust-y-a: 16px;
  --dust-x-b: -62px;
  --dust-y-b: 37px;
  --dust-x-c: -114px;
  --dust-y-c: 69px;
  --dust-x-d: -172px;
  --dust-y-d: 103px;
  --dust-rotate: -52deg;
  --dust-rotate-a: -10deg;
  --dust-rotate-b: -23deg;
  --dust-rotate-c: -36deg;
  --dust-rotate-d: -47deg;
}

.dust-four {
  --dust-x: 228px;
  --dust-y: 142px;
  --dust-x-a: 27px;
  --dust-y-a: 17px;
  --dust-x-b: 64px;
  --dust-y-b: 40px;
  --dust-x-c: 119px;
  --dust-y-c: 74px;
  --dust-x-d: 178px;
  --dust-y-d: 111px;
  --dust-rotate: 48deg;
  --dust-rotate-a: 10deg;
  --dust-rotate-b: 22deg;
  --dust-rotate-c: 34deg;
  --dust-rotate-d: 43deg;
}

.dust-five {
  --dust-x: -42px;
  --dust-y: -210px;
  --dust-x-a: -5px;
  --dust-y-a: -25px;
  --dust-x-b: -12px;
  --dust-y-b: -59px;
  --dust-x-c: -22px;
  --dust-y-c: -109px;
  --dust-x-d: -33px;
  --dust-y-d: -164px;
  --dust-rotate: 184deg;
  --dust-rotate-a: 37deg;
  --dust-rotate-b: 83deg;
  --dust-rotate-c: 129deg;
  --dust-rotate-d: 166deg;
}

.dust-six {
  --dust-x: 64px;
  --dust-y: 216px;
  --dust-x-a: 8px;
  --dust-y-a: 26px;
  --dust-x-b: 18px;
  --dust-y-b: 60px;
  --dust-x-c: 33px;
  --dust-y-c: 112px;
  --dust-x-d: 50px;
  --dust-y-d: 168px;
  --dust-rotate: 4deg;
  --dust-rotate-a: 1deg;
  --dust-rotate-b: 2deg;
  --dust-rotate-c: 3deg;
  --dust-rotate-d: 4deg;
}

.souls-eclipse-scene.show .eclipse-dust {
  animation: eclipse-dust 3s ease-out 3.1s both;
}

.souls-eclipse-scene.show .dust-two,
.souls-eclipse-scene.show .dust-four,
.souls-eclipse-scene.show .dust-six {
  animation-delay: 3.2s;
}

.eclipse-text {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.28rem, 3.8vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 20px var(--eclipse-color),
    0 0 44px rgba(72, 227, 255, 0.82);
  opacity: 0;
}

.souls-eclipse-scene.show .eclipse-text {
  animation: eclipse-text 2.25s ease-out 4.75s both;
}

.souls-hero-scene {
  --hero-color: #f9fbff;
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(249, 251, 255, 0.22), transparent 18%),
    linear-gradient(180deg, #061024, #102341 56%, #071015);
  opacity: 0;
  pointer-events: none;
}

.souls-hero-scene.show {
  animation: hero-scene 4.8s ease-in-out both;
}

.hero-snow {
  --snow-x: 0px;
  --snow-delay: 0s;
  position: absolute;
  top: -24px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f9fbff;
  box-shadow: 0 0 12px rgba(249, 251, 255, 0.9);
  opacity: 0;
}

.snow-one {
  --snow-x: -330px;
  --snow-delay: 0s;
}

.snow-two {
  --snow-x: -190px;
  --snow-delay: 0.18s;
}

.snow-three {
  --snow-x: -40px;
  --snow-delay: 0.05s;
}

.snow-four {
  --snow-x: 112px;
  --snow-delay: 0.28s;
}

.snow-five {
  --snow-x: 248px;
  --snow-delay: 0.12s;
}

.snow-six {
  --snow-x: 360px;
  --snow-delay: 0.34s;
}

.souls-hero-scene.show .hero-snow {
  animation: hero-snow 1.1s linear var(--snow-delay) 4 both;
}

.hero-moon-target {
  position: absolute;
  right: 13%;
  top: 14%;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(249, 251, 255, 0.95), transparent 8%),
    radial-gradient(circle at 62% 58%, rgba(112, 121, 150, 0.35), transparent 10%),
    linear-gradient(135deg, #f9fbff, #aeb8dc 62%, #727ea8);
  box-shadow:
    0 0 26px rgba(249, 251, 255, 0.9),
    0 0 74px rgba(72, 227, 255, 0.38);
  opacity: 0;
}

.souls-hero-scene.show .hero-moon-target {
  animation: hero-moon 4.1s ease-in-out 0.35s both;
}

.hero-fighter {
  position: absolute;
  left: 34%;
  top: 22%;
  width: 76px;
  height: 122px;
  opacity: 0;
  filter: drop-shadow(0 0 24px var(--hero-color));
}

.hero-cape {
  position: absolute;
  left: 8px;
  top: 34px;
  width: 54px;
  height: 78px;
  border-radius: 18px 18px 30px 30px;
  background: linear-gradient(180deg, var(--hero-color), rgba(72, 227, 255, 0.45));
  transform: skewX(-10deg);
}

.hero-head,
.hero-body,
.hero-arm,
.hero-leg {
  position: absolute;
  background: #f9fbff;
  box-shadow: 0 0 12px var(--hero-color);
}

.hero-head {
  left: 27px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.hero-body {
  left: 22px;
  top: 28px;
  width: 34px;
  height: 52px;
  border-radius: 13px 13px 9px 9px;
}

.hero-arm {
  top: 36px;
  width: 14px;
  height: 52px;
  border-radius: 999px;
}

.hero-arm-left {
  left: 8px;
  transform: rotate(28deg);
}

.hero-arm-right {
  right: 6px;
  transform: rotate(-38deg);
}

.hero-leg {
  top: 76px;
  width: 15px;
  height: 48px;
  border-radius: 999px;
}

.hero-leg-left {
  left: 23px;
  transform: rotate(22deg);
}

.hero-leg-right {
  right: 18px;
  transform: rotate(-28deg);
}

.souls-hero-scene.show .hero-fighter {
  animation: hero-fighter 2.35s cubic-bezier(0.18, 0.9, 0.15, 1) 0.5s both;
}

.hero-monster {
  position: absolute;
  left: 54%;
  top: 57%;
  width: 92px;
  height: 82px;
  border-radius: 38% 38% 44% 44%;
  background: linear-gradient(180deg, #6847a8, #1d2444);
  box-shadow:
    inset 0 -12px 0 rgba(0, 0, 0, 0.18),
    0 0 24px rgba(185, 133, 255, 0.58);
  opacity: 0;
}

.monster-horn,
.monster-eye {
  position: absolute;
}

.monster-horn {
  top: -18px;
  width: 22px;
  height: 34px;
  background: #f9fbff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.horn-left {
  left: 12px;
  transform: rotate(-22deg);
}

.horn-right {
  right: 12px;
  transform: rotate(22deg);
}

.monster-eye {
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: 0 0 12px #ff5a5f;
}

.monster-eye.eye-left {
  left: 25px;
}

.monster-eye.eye-right {
  right: 25px;
}

.souls-hero-scene.show .hero-monster {
  animation: hero-monster 3.6s cubic-bezier(0.18, 0.9, 0.15, 1) 0.35s both;
}

.hero-impact-burst {
  position: absolute;
  left: 55%;
  top: 56%;
  width: 110px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f9fbff 0 12%, var(--hero-color) 16% 32%, transparent 58%);
  box-shadow: 0 0 48px var(--hero-color);
  opacity: 0;
}

.souls-hero-scene.show .hero-impact-burst {
  animation: hero-impact 0.9s ease-out 1.45s both;
}

.monster-trail {
  position: absolute;
  left: 58%;
  top: 47%;
  width: 220px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249, 251, 255, 0.8), rgba(72, 227, 255, 0));
  box-shadow: 0 0 18px rgba(249, 251, 255, 0.72);
  opacity: 0;
  transform: rotate(-31deg);
}

.souls-hero-scene.show .monster-trail {
  animation: hero-trail 1.2s ease-out 1.72s both;
}

.hero-text {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.28rem, 3.8vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 20px var(--hero-color),
    0 0 44px rgba(72, 227, 255, 0.82);
  opacity: 0;
}

.souls-hero-scene.show .hero-text {
  animation: hero-text 1.7s ease-out 2.45s both;
}

.souls-toji-scene,
.souls-honored-scene {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.souls-toji-scene {
  --toji-color: #90f95c;
  background:
    radial-gradient(circle at 42% 46%, rgba(144, 249, 92, 0.14), transparent 24%),
    linear-gradient(110deg, #03050a, #0d1513 56%, #000);
}

.souls-toji-scene.show {
  animation: toji-scene 9.8s ease-in-out both;
}

.toji-speed {
  --speed-y: 0px;
  position: absolute;
  left: -18%;
  top: 50%;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--toji-color), transparent);
  box-shadow: 0 0 14px var(--toji-color);
  opacity: 0;
  transform: translateY(var(--speed-y)) rotate(-7deg);
}

.speed-one {
  --speed-y: -104px;
}

.speed-two {
  --speed-y: -38px;
}

.speed-three {
  --speed-y: 28px;
}

.speed-four {
  --speed-y: 92px;
}

.souls-toji-scene.show .toji-speed {
  animation: toji-speed 1.55s cubic-bezier(0.18, 0.8, 0.16, 1) 1.05s 3 both;
}

.toji-attacker,
.toji-target {
  position: absolute;
  width: 92px;
  height: 132px;
  opacity: 0;
  filter: drop-shadow(0 0 22px var(--toji-color));
}

.toji-attacker {
  left: 19%;
  top: 39%;
}

.toji-attacker::before,
.toji-attacker::after {
  content: "";
  position: absolute;
  inset: 8px 4px 0;
  border-radius: 38px 38px 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(249, 251, 255, 0.24) 43% 55%, transparent 56%),
    linear-gradient(180deg, rgba(144, 249, 92, 0.36), transparent 62%);
  opacity: 0;
  filter: blur(3px);
}

.souls-toji-scene.show .toji-attacker::before {
  animation: toji-afterimage 3.45s ease-out 1.1s both;
}

.souls-toji-scene.show .toji-attacker::after {
  animation: toji-afterimage 3.45s ease-out 1.28s both reverse;
}

.toji-target {
  right: 22%;
  top: 39%;
  filter: drop-shadow(0 0 18px rgba(249, 251, 255, 0.58));
}

.toji-head,
.toji-target-head {
  position: absolute;
  left: 31px;
  top: 0;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(249, 251, 255, 0.7);
  border-radius: 50%;
  background: #10131f;
}

.toji-body,
.toji-target-body {
  position: absolute;
  left: 36px;
  top: 30px;
  width: 20px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff, #283037);
}

.toji-arm,
.toji-leg,
.toji-blade {
  position: absolute;
  border-radius: 999px;
  transform-origin: top center;
}

.arm-blade {
  left: 50px;
  top: 40px;
  width: 10px;
  height: 58px;
  background: #f9fbff;
  transform: rotate(78deg);
}

.arm-back {
  left: 26px;
  top: 38px;
  width: 9px;
  height: 48px;
  background: #f9fbff;
  transform: rotate(-42deg);
}

.leg-front {
  left: 47px;
  top: 88px;
  width: 10px;
  height: 54px;
  background: #151a22;
  transform: rotate(-52deg);
}

.leg-back {
  left: 28px;
  top: 88px;
  width: 10px;
  height: 52px;
  background: #151a22;
  transform: rotate(38deg);
}

.toji-blade {
  left: 73px;
  top: 54px;
  width: 82px;
  height: 5px;
  background: linear-gradient(90deg, #f9fbff, var(--toji-color), transparent);
  box-shadow: 0 0 14px var(--toji-color);
  transform: rotate(2deg);
}

.toji-target-head {
  background: #242936;
}

.toji-target-body {
  background: linear-gradient(180deg, #dbe4ff, #353b4d);
}

.toji-impact,
.toji-slash {
  position: absolute;
  left: 50%;
  top: 49%;
  opacity: 0;
}

.toji-impact {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f9fbff 0 8%, var(--toji-color) 10% 24%, transparent 34%);
  box-shadow: 0 0 52px var(--toji-color);
}

.toji-slash {
  width: min(580px, 60vw);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f9fbff, var(--toji-color), transparent);
  box-shadow: 0 0 28px var(--toji-color);
  transform: translate(-50%, -50%) rotate(-16deg);
}

.souls-toji-scene.show .toji-attacker {
  animation: toji-attacker 7.3s cubic-bezier(0.16, 0.84, 0.12, 1) 0.8s both;
}

.souls-toji-scene.show .toji-target {
  animation: toji-target 7.3s ease-in-out 0.8s both;
}

.souls-toji-scene.show .toji-impact {
  animation: toji-impact 2.65s cubic-bezier(0.12, 0.82, 0.16, 1) 4.22s both;
}

.souls-toji-scene.show .toji-slash {
  animation: toji-slash 2.55s cubic-bezier(0.12, 0.82, 0.16, 1) 4.05s both;
}

.toji-text,
.honored-text {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.3rem, 3.8vw, 2.85rem);
  font-weight: 900;
  text-align: center;
  opacity: 0;
}

.toji-text {
  text-shadow:
    0 0 20px var(--toji-color),
    0 0 48px rgba(144, 249, 92, 0.82);
}

.souls-toji-scene.show .toji-text {
  animation: toji-text 2.7s ease-out 6.8s both;
}

.souls-honored-scene {
  --honored-color: #7df9ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(125, 249, 255, 0.14), transparent 22%),
    #000;
}

.souls-honored-scene.show {
  animation: honored-scene 10.4s ease-in-out both;
}

.honored-moon {
  position: absolute;
  top: 13%;
  right: 15%;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(249, 251, 255, 0.95), transparent 10%),
    linear-gradient(135deg, #f9fbff, #aeb8dc 62%, #687495);
  box-shadow: 0 0 70px rgba(249, 251, 255, 0.42);
  opacity: 0;
}

.souls-honored-scene.show .honored-moon {
  animation: honored-moon 9.2s ease-in-out 0.45s both;
}

.honored-person {
  position: absolute;
  left: 46%;
  top: 57%;
  width: 88px;
  height: 138px;
  opacity: 0;
  transform-origin: 50% 52%;
  filter:
    drop-shadow(0 0 24px var(--honored-color))
    drop-shadow(0 0 58px rgba(125, 249, 255, 0.62));
}

.honored-head,
.honored-body,
.honored-arm,
.honored-leg {
  position: absolute;
  background: #f9fbff;
}

.honored-head {
  left: 30px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.honored-body {
  left: 34px;
  top: 32px;
  width: 23px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff, var(--honored-color));
}

.souls-honored-scene.show .honored-body {
  animation: honored-body-glow 10.4s ease-in-out 0.45s both;
}

.honored-arm,
.honored-leg {
  width: 9px;
  border-radius: 999px;
  transform-origin: top center;
}

.honored-arm {
  top: 42px;
  height: 54px;
}

.honored-arm-left {
  left: 27px;
  transform: rotate(-24deg);
}

.honored-arm-right {
  left: 52px;
  transform: rotate(24deg);
}

.souls-honored-scene.show .honored-arm-left {
  animation: honored-arm-left 10.4s cubic-bezier(0.16, 0.86, 0.12, 1) 0.45s both;
}

.souls-honored-scene.show .honored-arm-right {
  animation: honored-arm-right 10.4s cubic-bezier(0.16, 0.86, 0.12, 1) 0.45s both;
}

.honored-leg {
  top: 88px;
  height: 56px;
}

.honored-leg-left {
  left: 34px;
  transform: rotate(34deg);
}

.honored-leg-right {
  left: 49px;
  transform: rotate(-34deg);
}

.honored-ring {
  position: absolute;
  left: 50%;
  top: 45%;
  width: clamp(170px, 26vw, 360px);
  aspect-ratio: 1;
  border: 2px solid var(--honored-color);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px var(--honored-color),
    0 0 30px var(--honored-color);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.ring-b {
  width: clamp(245px, 36vw, 520px);
  border-style: dashed;
}

.souls-honored-scene.show .ring-a {
  animation: honored-ring 2.8s ease-out 3.85s 2 both;
}

.souls-honored-scene.show .ring-b {
  animation: honored-ring 3s ease-out 4.1s 2 both;
}

.honored-spark {
  --spark-x: 0px;
  --spark-y: 0px;
  --spark-rotate: 0deg;
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--honored-color), #f9fbff, transparent);
  box-shadow: 0 0 18px var(--honored-color);
  opacity: 0;
}

.spark-a {
  --spark-x: -220px;
  --spark-y: -92px;
  --spark-rotate: -52deg;
  transform: rotate(var(--spark-rotate));
}

.spark-b {
  --spark-x: 210px;
  --spark-y: -88px;
  --spark-rotate: 48deg;
  transform: rotate(var(--spark-rotate));
}

.spark-c {
  --spark-x: -170px;
  --spark-y: 118px;
  --spark-rotate: -126deg;
  transform: rotate(var(--spark-rotate));
}

.spark-d {
  --spark-x: 180px;
  --spark-y: 124px;
  --spark-rotate: 128deg;
  transform: rotate(var(--spark-rotate));
}

.souls-honored-scene.show .honored-spark {
  animation: honored-spark 3.2s ease-out 4.55s both;
}

.honored-flash {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(360px, 44vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 251, 255, 0.95) 0 10%, var(--honored-color) 12% 32%, transparent 52%);
  box-shadow: 0 0 88px var(--honored-color);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.souls-honored-scene.show .honored-person {
  animation: honored-person 8.7s cubic-bezier(0.16, 0.86, 0.12, 1) 0.55s both;
}

.souls-honored-scene.show .honored-flash {
  animation: honored-flash 2.65s ease-out 4.75s both;
}

.honored-text {
  text-shadow:
    0 0 20px var(--honored-color),
    0 0 52px rgba(125, 249, 255, 0.9);
}

.souls-honored-scene.show .honored-text {
  animation: honored-text 2.85s ease-out 7.15s both;
}

.souls-singularity-scene {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 50%, rgba(255, 90, 95, 0.18), transparent 26%),
    radial-gradient(circle at 62% 50%, rgba(72, 227, 255, 0.18), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(185, 133, 255, 0.18), transparent 38%),
    #000;
  opacity: 0;
  pointer-events: none;
}

.souls-singularity-scene.show {
  animation: singularity-scene 6.8s ease-in-out both;
}

.singularity-orbit {
  position: absolute;
  width: clamp(210px, 30vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
}

.souls-singularity-scene.show .singularity-orbit {
  animation: singularity-orbit 3.4s cubic-bezier(0.18, 0.9, 0.15, 1) both;
}

.singularity-ball {
  position: absolute;
  top: 50%;
  width: clamp(58px, 8vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
}

.red-ball {
  left: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(249, 251, 255, 0.94), transparent 12%),
    radial-gradient(circle, #ff5a5f, #7d1118 74%);
  box-shadow:
    0 0 32px #ff5a5f,
    0 0 82px rgba(255, 90, 95, 0.82);
}

.blue-ball {
  right: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(249, 251, 255, 0.94), transparent 12%),
    radial-gradient(circle, #48e3ff, #123f99 74%);
  box-shadow:
    0 0 32px #48e3ff,
    0 0 82px rgba(72, 227, 255, 0.82);
}

.souls-singularity-scene.show .red-ball {
  animation: singularity-red-ball 3.4s cubic-bezier(0.18, 0.9, 0.15, 1) both;
}

.souls-singularity-scene.show .blue-ball {
  animation: singularity-blue-ball 3.4s cubic-bezier(0.18, 0.9, 0.15, 1) both;
}

.singularity-trail {
  position: absolute;
  width: clamp(250px, 36vw, 520px);
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 50%;
  opacity: 0;
}

.red-trail {
  border-top-color: #ff5a5f;
  border-left-color: rgba(255, 90, 95, 0.38);
  box-shadow: 0 0 28px rgba(255, 90, 95, 0.74);
}

.blue-trail {
  border-bottom-color: #48e3ff;
  border-right-color: rgba(72, 227, 255, 0.38);
  box-shadow: 0 0 28px rgba(72, 227, 255, 0.74);
}

.souls-singularity-scene.show .red-trail {
  animation: singularity-trail-red 3.1s ease-in-out 0.2s both;
}

.souls-singularity-scene.show .blue-trail {
  animation: singularity-trail-blue 3.1s ease-in-out 0.2s both;
}

.singularity-purple-ball {
  position: absolute;
  width: clamp(150px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(249, 251, 255, 0.96), transparent 10%),
    radial-gradient(circle at 38% 52%, rgba(255, 90, 95, 0.84), transparent 26%),
    radial-gradient(circle at 62% 52%, rgba(72, 227, 255, 0.82), transparent 28%),
    radial-gradient(circle, #b985ff, #5c28b8 68%, #170825 82%);
  box-shadow:
    0 0 44px #b985ff,
    0 0 110px rgba(185, 133, 255, 0.92),
    inset 0 0 48px rgba(249, 251, 255, 0.18);
  opacity: 0;
}

.souls-singularity-scene.show .singularity-purple-ball {
  animation: singularity-purple-ball 3.4s ease-out 2.8s both;
}

.singularity-flash {
  position: absolute;
  width: clamp(130px, 20vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f9fbff 0 12%, #b985ff 18% 36%, transparent 62%);
  box-shadow:
    0 0 62px #f9fbff,
    0 0 140px #b985ff;
  opacity: 0;
}

.souls-singularity-scene.show .singularity-flash {
  animation: singularity-flash 1.2s ease-out 2.62s both;
}

.singularity-text {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: min(700px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 24px #b985ff,
    0 0 54px #48e3ff,
    0 0 72px #ff5a5f;
  opacity: 0;
}

.souls-singularity-scene.show .singularity-text {
  animation: singularity-text 2.2s ease-out 3.65s both;
}

.souls-genesis-scene {
  --genesis-color: #90f95c;
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.souls-genesis-scene.show {
  animation: genesis-scene 6.4s ease-in-out both;
}

.genesis-sky-star,
.orbit-star,
.genesis-main-star {
  position: absolute;
  background: var(--genesis-color);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 18px var(--genesis-color));
}

.genesis-sky-star {
  width: 18px;
  aspect-ratio: 1;
  opacity: 0;
}

.sky-star-one {
  left: 14%;
  top: 16%;
}

.sky-star-two {
  left: 28%;
  top: 32%;
}

.sky-star-three {
  right: 22%;
  top: 18%;
}

.sky-star-four {
  right: 13%;
  top: 42%;
}

.sky-star-five {
  left: 46%;
  top: 11%;
}

.sky-star-six {
  left: 62%;
  top: 33%;
}

.souls-genesis-scene.show .genesis-sky-star {
  animation: genesis-twinkle 2.1s ease-in-out 0.2s 2;
}

.genesis-main-star {
  left: 50%;
  top: 41%;
  width: clamp(96px, 15vw, 170px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter:
    drop-shadow(0 0 26px var(--genesis-color))
    drop-shadow(0 0 72px var(--genesis-color));
}

.souls-genesis-scene.show .genesis-main-star {
  animation: genesis-main-star 6.1s ease-in-out both;
}

.genesis-orbit {
  position: absolute;
  left: 50%;
  top: 41%;
  width: clamp(210px, 28vw, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.orbit-star {
  width: 38px;
  aspect-ratio: 1;
}

.orbit-one {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.orbit-two {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-three {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.orbit-four {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.souls-genesis-scene.show .genesis-orbit {
  animation: genesis-orbit 2.25s ease-in-out 0.45s both;
}

.souls-genesis-scene.show .orbit-star {
  animation: genesis-orbit-star 2.25s ease-in-out 0.45s both;
}

.genesis-firework {
  position: absolute;
  left: 50%;
  top: 41%;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--genesis-color);
  opacity: 0;
  box-shadow:
    0 -90px 0 8px #ffcb45,
    78px -42px 0 7px #ff7bd5,
    78px 42px 0 7px #48e3ff,
    0 90px 0 8px #90f95c,
    -78px 42px 0 7px #f9fbff,
    -78px -42px 0 7px #b985ff;
}

.firework-two {
  left: 28%;
  top: 35%;
  transform: scale(0.72);
}

.firework-three {
  left: 72%;
  top: 35%;
  transform: scale(0.72);
}

.souls-genesis-scene.show .genesis-firework {
  animation: genesis-firework 1.45s ease-out 2.28s both;
}

.genesis-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background:
    repeating-linear-gradient(90deg, rgba(217, 255, 106, 0.45) 0 4px, transparent 4px 10px),
    linear-gradient(180deg, #90f95c, #246b37);
  box-shadow: 0 -18px 40px rgba(144, 249, 92, 0.38);
}

.souls-genesis-scene.show .genesis-grass {
  animation: genesis-grass 1.25s ease-out 3.35s both;
}

.genesis-tree {
  position: absolute;
  bottom: 14%;
  width: 22px;
  height: 0;
  border-radius: 8px;
  background: #825f40;
  opacity: 0;
}

.genesis-tree::before,
.genesis-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #d9ff6a, #2fb85b 70%);
  transform: translateX(-50%);
  box-shadow: 0 0 28px rgba(144, 249, 92, 0.55);
}

.genesis-tree::before {
  top: -70px;
}

.genesis-tree::after {
  top: -100px;
  width: 58px;
}

.tree-one {
  left: 18%;
}

.tree-two {
  left: 47%;
  transform: scale(1.2);
}

.tree-three {
  right: 18%;
}

.souls-genesis-scene.show .genesis-tree {
  animation: genesis-tree-grow 1.25s ease-out 3.8s both;
}

.genesis-bunny {
  position: absolute;
  bottom: 10%;
  width: 34px;
  height: 22px;
  border-radius: 50% 50% 45% 45%;
  background: #f9fbff;
  opacity: 0;
  box-shadow: 0 0 12px rgba(249, 251, 255, 0.6);
}

.genesis-bunny::before,
.genesis-bunny::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 9px;
  height: 24px;
  border-radius: 999px;
  background: #f9fbff;
}

.genesis-bunny::before {
  left: 9px;
  transform: rotate(-12deg);
}

.genesis-bunny::after {
  right: 8px;
  transform: rotate(14deg);
}

.bunny-one {
  left: 31%;
}

.bunny-two {
  left: 56%;
  transform: scale(0.86);
}

.bunny-three {
  right: 26%;
  transform: scale(0.72);
}

.souls-genesis-scene.show .genesis-bunny {
  animation: genesis-bunny-hop 1.25s ease-in-out 4.7s 2 both;
}

.genesis-text {
  position: absolute;
  left: 50%;
  top: 11%;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(1.3rem, 4vw, 3.4rem);
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 0 20px var(--genesis-color),
    0 0 44px var(--genesis-color);
  opacity: 0;
}

.souls-genesis-scene.show .genesis-text {
  animation: genesis-text 2.2s ease-out 2.35s both;
}

.souls-shell.rolling .souls-aura {
  animation: souls-spin 0.52s linear infinite;
}

.souls-shell.rolling .souls-character {
  animation: souls-bob 0.24s ease-in-out infinite alternate;
}

.souls-shell.revealed .souls-aura {
  transform: scale(1.12);
}

.souls-shell[class*="soul-effect-"] .souls-aura {
  color: var(--soul-color);
}

.souls-shell:not(.soul-effect-ember):not(.soul-effect-solar) .aura-flame {
  opacity: 0.32;
  filter: hue-rotate(80deg);
}

.soul-effect-ember .souls-aura {
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 143, 69, 0.42), transparent 31%),
    repeating-conic-gradient(from 20deg, rgba(255, 90, 95, 0.42) 0 10deg, transparent 10deg 24deg, rgba(255, 203, 69, 0.34) 24deg 34deg, transparent 34deg 52deg);
}

.soul-effect-ember .aura-bit,
.soul-effect-ember .aura-flame {
  border-radius: 50% 50% 50% 0;
  animation: ember-rise 1.05s ease-in-out infinite alternate;
}

.soul-effect-ember .aura-ring {
  border-style: dotted;
  animation: souls-spin 2.4s linear infinite;
}

.soul-effect-ember .aura-rune {
  background: rgba(255, 90, 95, 0.16);
  animation: ember-rise 1.45s ease-in-out infinite alternate;
}

.soul-effect-flicker .souls-aura {
  background: radial-gradient(circle, rgba(72, 227, 255, 0.2), transparent 56%);
}

.soul-effect-flicker .aura-bit {
  height: 34px;
  border-radius: 999px;
  animation: flicker-zap 0.58s steps(2, end) infinite;
}

.soul-effect-flicker .aura-flame {
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.95), rgba(72, 227, 255, 0.55));
  animation: flicker-zap 0.48s steps(2, end) infinite;
}

.soul-effect-flicker .aura-ring {
  border-radius: 46% 54% 42% 58%;
  animation: flicker-zap 0.65s steps(2, end) infinite;
}

.soul-effect-flicker .aura-rune {
  border-radius: 2px;
  animation: flicker-zap 0.52s steps(2, end) infinite;
}

.soul-effect-pulse .souls-aura::before,
.soul-effect-pulse .souls-aura::after {
  border-style: solid;
  animation: pulse-ring 1.15s ease-out infinite;
}

.soul-effect-pulse .aura-bit {
  border-radius: 4px 12px;
  animation: leaf-float 1.6s ease-in-out infinite alternate;
}

.soul-effect-pulse .aura-flame {
  background: linear-gradient(180deg, rgba(217, 255, 106, 0.9), rgba(144, 249, 92, 0.5));
  animation: leaf-float 1.45s ease-in-out infinite alternate;
}

.soul-effect-pulse .aura-ring {
  animation: pulse-ring 1.6s ease-out infinite;
}

.soul-effect-pulse .aura-rune {
  border-radius: 2px 12px;
  animation: leaf-float 1.8s ease-in-out infinite alternate;
}

.soul-effect-spark .aura-bit {
  width: 8px;
  height: 28px;
  border-radius: 999px;
  animation: drum-spark 0.35s linear infinite alternate;
}

.soul-effect-spark .aura-flame {
  width: 12px;
  height: 44px;
  border-radius: 999px;
  animation: drum-spark 0.28s linear infinite alternate;
}

.soul-effect-spark .aura-ring {
  box-shadow:
    inset 0 0 10px currentColor,
    0 0 10px currentColor,
    0 0 24px rgba(255, 203, 69, 0.42);
  animation: drum-spark 0.5s linear infinite alternate;
}

.soul-effect-spark .aura-rune {
  animation: drum-spark 0.44s linear infinite alternate;
}

.soul-effect-moon .souls-aura {
  background:
    radial-gradient(circle at 36% 38%, rgba(249, 251, 255, 0.34), transparent 8%),
    radial-gradient(circle, rgba(185, 133, 255, 0.2), transparent 58%);
}

.soul-effect-moon .aura-bit {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 4px solid currentColor;
  border-left-color: transparent;
  animation: moon-orbit 1.4s linear infinite;
}

.soul-effect-moon .aura-flame {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.85), rgba(185, 133, 255, 0.48));
  animation: moon-orbit 2.6s linear infinite;
}

.soul-effect-moon .aura-ring {
  border-left-color: transparent;
  border-bottom-color: rgba(249, 251, 255, 0.7);
  animation: moon-orbit 4.2s linear infinite;
}

.soul-effect-moon .aura-rune {
  background: rgba(185, 133, 255, 0.12);
  animation: moon-orbit 3.4s linear infinite;
}

.soul-effect-solar .souls-aura {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 203, 69, 0.46) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle, rgba(255, 123, 213, 0.22), transparent 52%);
}

.soul-effect-solar .aura-bit,
.soul-effect-solar .aura-flame {
  border-radius: 0;
  transform: rotate(45deg);
  animation: solar-shine 0.9s ease-in-out infinite alternate;
}

.soul-effect-solar .aura-ring {
  border-width: 3px;
  animation: souls-spin 1.8s linear infinite;
}

.soul-effect-solar .aura-rune {
  background: rgba(255, 203, 69, 0.18);
  animation: solar-shine 0.75s ease-in-out infinite alternate;
}

.soul-effect-void .souls-aura {
  background:
    radial-gradient(circle at 50% 50%, rgba(3, 8, 18, 0.86) 0 18%, transparent 19%),
    conic-gradient(from 0deg, rgba(125, 249, 255, 0.28), rgba(185, 133, 255, 0.08), rgba(125, 249, 255, 0.28));
}

.soul-effect-void .aura-bit {
  background: #071015;
  border: 2px solid currentColor;
  animation: void-warp 1s ease-in-out infinite alternate;
}

.soul-effect-void .aura-flame {
  background: radial-gradient(circle, rgba(125, 249, 255, 0.8), rgba(3, 8, 18, 0.92));
  animation: void-warp 0.86s ease-in-out infinite alternate;
}

.soul-effect-void .aura-ring {
  border-style: double;
  border-color: rgba(125, 249, 255, 0.72);
  animation: void-warp 1.2s ease-in-out infinite alternate;
}

.soul-effect-void .aura-rune {
  background: rgba(3, 8, 18, 0.78);
  animation: void-warp 1.1s ease-in-out infinite alternate;
}

.soul-effect-secret .souls-aura {
  background:
    conic-gradient(from 0deg, rgba(249, 251, 255, 0.38), rgba(72, 227, 255, 0.22), rgba(255, 203, 69, 0.22), rgba(255, 79, 163, 0.22), rgba(249, 251, 255, 0.38)),
    radial-gradient(circle, rgba(249, 251, 255, 0.22), transparent 56%);
}

.soul-effect-secret .aura-bit {
  clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 66%, 50% 100%, 38% 66%, 0 50%, 38% 34%);
  animation: secret-twinkle 0.72s ease-in-out infinite alternate;
}

.soul-effect-secret .aura-flame {
  background:
    conic-gradient(from 0deg, #f9fbff, #48e3ff, #ffcb45, #ff4fa3, #f9fbff);
  animation: secret-twinkle 0.62s ease-in-out infinite alternate;
}

.soul-effect-secret .aura-ring {
  border-image: linear-gradient(90deg, #f9fbff, #48e3ff, #ffcb45, #ff4fa3) 1;
  animation: souls-spin 1.35s linear infinite;
}

.soul-effect-secret .aura-rune {
  background: rgba(249, 251, 255, 0.12);
  animation: secret-twinkle 0.68s ease-in-out infinite alternate;
}

@keyframes souls-spin {
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes souls-bob {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes ember-rise {
  to {
    transform: translateY(-28px) rotate(-45deg) scale(1.35);
    opacity: 0.55;
  }
}

@keyframes flicker-zap {
  50% {
    transform: translate(8px, -7px) rotate(18deg);
    opacity: 0.45;
  }
}

@keyframes pulse-ring {
  to {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes leaf-float {
  to {
    transform: translateY(-16px) rotate(18deg);
  }
}

@keyframes drum-spark {
  to {
    transform: scaleY(1.45) rotate(16deg);
    opacity: 0.6;
  }
}

@keyframes moon-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes solar-shine {
  to {
    transform: rotate(45deg) scale(1.45);
    opacity: 0.58;
  }
}

@keyframes void-warp {
  to {
    transform: scale(1.6) rotate(35deg);
    opacity: 0.42;
  }
}

@keyframes secret-twinkle {
  to {
    transform: scale(1.8) rotate(45deg);
  }
}

@keyframes rare-scene {
  0% {
    opacity: 0;
  }
  8%,
  86% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes mini-scene {
  0% {
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes mini-orb {
  0% {
    opacity: 0;
    transform: scale(0.28) rotate(-18deg);
  }
  28% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
  }
  72% {
    opacity: 0.95;
    transform: scale(0.96) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.38) rotate(34deg);
  }
}

@keyframes mini-ring {
  0% {
    opacity: 0.88;
    transform: scale(0.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes mini-spark {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) scaleY(0.14);
  }
  32% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) scaleY(1.15);
  }
}

@keyframes mini-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.9);
  }
  22%,
  76% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(1.03);
  }
}

@keyframes mini-ember {
  0% {
    opacity: 0;
    transform: translate(0, 42px) scale(0.25) rotate(var(--mini-tilt));
  }
  32% {
    opacity: 1;
    transform: translate(var(--mini-drift-x), -6px) scale(1.08) rotate(calc(var(--mini-tilt) + 8deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--mini-drift-x), -78px) scale(1.35) rotate(calc(var(--mini-tilt) - 18deg));
  }
}

@keyframes mini-flame-spark {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(34px) scaleY(0.2);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(-86px) scaleY(1.28);
  }
}

@keyframes mini-flicker {
  0% {
    opacity: 0;
    transform: translateX(-70px) skewX(-18deg) scale(0.54);
  }
  24%,
  68% {
    opacity: 1;
    transform: translateX(var(--mini-drift-x)) skewX(14deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(82px) skewX(-20deg) scale(0.85);
  }
}

@keyframes mini-zap {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--spark-angle) + 24deg)) scaleY(0.05);
  }
  38% {
    opacity: 1;
    transform: rotate(calc(var(--spark-angle) - 14deg)) scaleY(1.35);
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--spark-angle) + 44deg)) scaleY(0.2);
  }
}

@keyframes mini-pulse-wave {
  0% {
    opacity: 0.9;
    transform: scale(0.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes mini-shard-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--mini-drift-x)), calc(-50% + var(--mini-drift-y))) scale(1.7) rotate(210deg);
  }
}

@keyframes mini-spark-cross {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) scaleY(0.1);
  }
  30%,
  58% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--spark-angle) + 90deg)) scaleY(1.45);
  }
}

@keyframes mini-moon-rise {
  0% {
    opacity: 0;
    transform: translateY(64px) scale(0.42);
  }
  34%,
  78% {
    opacity: 1;
    transform: translate(var(--mini-drift-x), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-42px) scale(1.08);
  }
}

@keyframes mini-moon-orbit {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.35);
  }
  45% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: rotate(240deg) scale(1.26);
  }
}

@keyframes mini-solar-pop {
  0% {
    opacity: 0;
    transform: scale(0.18) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: scale(1.22) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: scale(2.35) rotate(220deg);
  }
}

@keyframes mini-solar-ray {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) scaleY(0.08);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) scaleY(2);
  }
}

@keyframes mini-void-hole {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(0deg);
  }
  32%,
  72% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.22) rotate(420deg);
  }
}

@keyframes mini-void-ring {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(0deg);
  }
  100% {
    opacity: 0.05;
    transform: scale(0.2) rotate(-240deg);
  }
}

@keyframes mini-rune-pop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-22deg);
  }
  32%,
  76% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.6) rotate(22deg);
  }
}

@keyframes mini-secret-star {
  0% {
    opacity: 0;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
    transform: scale(0.28) rotate(-18deg);
  }
  36%,
  78% {
    opacity: 1;
    transform: scale(1.08) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(72deg);
  }
}

@keyframes rare-star {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-20deg);
  }
  16% {
    opacity: 1;
    transform: scale(0.82) rotate(0deg);
  }
  26% {
    transform: scale(1.18);
    filter:
      drop-shadow(0 0 32px var(--rare-color))
      drop-shadow(0 0 82px var(--rare-color));
  }
  38% {
    transform: scale(0.9);
  }
  48% {
    transform: scale(1.32) rotate(22deg);
  }
  58% {
    transform: scale(8) rotate(70deg);
    opacity: 0.95;
  }
  72%,
  100% {
    transform: scale(12) rotate(95deg);
    opacity: 0;
  }
}

@keyframes rare-ember-star {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.24) rotate(-20deg);
  }
  24% {
    opacity: 1;
    transform: translateY(0) scale(1.15) rotate(8deg);
  }
  54% {
    opacity: 1;
    transform: translateY(-34px) scale(1.5) rotate(-18deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) scale(4.4) rotate(48deg);
  }
}

@keyframes rare-flicker-star {
  0% {
    opacity: 0;
    transform: translateX(-170px) skewX(-20deg) scale(0.42);
  }
  18%,
  34%,
  56% {
    opacity: 1;
    transform: translateX(0) skewX(18deg) scale(1.08);
  }
  24%,
  44% {
    opacity: 0.35;
    transform: translateX(26px) skewX(-26deg) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translateX(190px) skewX(28deg) scale(3.4);
  }
}

@keyframes rare-moon-star {
  0% {
    opacity: 0;
    transform: translateY(92px) scale(0.36) rotate(-24deg);
  }
  28%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(1.65) rotate(18deg);
  }
}

@keyframes rare-solar-star {
  0% {
    opacity: 0;
    transform: scale(0.12) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.25) rotate(120deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.65) rotate(240deg);
  }
  100% {
    opacity: 0;
    transform: scale(7) rotate(520deg);
  }
}

@keyframes rare-void-star {
  0% {
    opacity: 0;
    transform: scale(3.5) rotate(0deg);
  }
  28%,
  64% {
    opacity: 1;
    transform: scale(1.12) rotate(160deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.04) rotate(520deg);
  }
}

@keyframes rare-secret-star {
  0% {
    opacity: 0;
    transform: scale(0.18) rotate(-60deg);
  }
  22% {
    opacity: 1;
    transform: scale(1.05) rotate(0deg);
  }
  52% {
    opacity: 1;
    transform: scale(1.25) rotate(72deg);
  }
  100% {
    opacity: 0;
    transform: scale(3.8) rotate(216deg);
  }
}

@keyframes rare-ring-pulse {
  0% {
    opacity: 0.95;
    transform: scale(0.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes rare-beam {
  0% {
    opacity: 0;
    transform: rotate(var(--beam-rotate, 0deg)) scaleY(0.1);
  }
  35% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--beam-rotate, 0deg)) scaleY(1);
  }
}

@keyframes rare-crack {
  0% {
    opacity: 0;
    height: 0;
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0.82;
    height: 46%;
  }
}

@keyframes rare-shard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--shard-x)), calc(-50% + var(--shard-y))) scale(1.8) rotate(240deg);
  }
}

@keyframes rare-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.86);
  }
  25%,
  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(1.05);
  }
}

@keyframes royal-scene {
  0% {
    opacity: 0;
  }
  7%,
  91% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes royal-core {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(0deg);
  }
  16% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform: scale(1.24) rotate(900deg);
  }
  79% {
    opacity: 1;
    transform: scale(0.24) rotate(1260deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.02) rotate(1540deg);
  }
}

@keyframes royal-swirl {
  0% {
    opacity: 0;
    transform: scale(0.36) rotate(0deg);
  }
  18% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.9;
    transform: scale(0.9) rotate(980deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.18) rotate(1460deg);
  }
}

@keyframes royal-fragment {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(calc(-50% + var(--fragment-x)), calc(-50% + var(--fragment-y))) scale(1.45) rotate(var(--fragment-rotate));
  }
  68% {
    opacity: 1;
    transform: translate(calc(-50% + var(--fragment-x)), calc(-50% + var(--fragment-y))) scale(0.92) rotate(calc(var(--fragment-rotate) + 120deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.22) rotate(calc(var(--fragment-rotate) + 240deg));
  }
}

@keyframes royal-moon {
  0% {
    opacity: 0;
    transform: scale(0.24) rotate(-18deg);
  }
  28% {
    opacity: 1;
    transform: scale(1.12) rotate(5deg);
  }
  76% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(0deg);
  }
}

@keyframes royal-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }
  24%,
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1.04);
  }
}

@keyframes eclipse-scene {
  0% {
    opacity: 0;
  }
  7%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes eclipse-star-left {
  0% {
    opacity: 0;
    transform: translate(-210px, 36px) rotate(-160deg) scale(0.58);
  }
  8% {
    opacity: 0.5;
    transform: translate(-178px, 24px) rotate(-126deg) scale(0.68);
  }
  16% {
    opacity: 1;
    transform: translate(-136px, 14px) rotate(-86deg) scale(0.8);
  }
  25% {
    opacity: 1;
    transform: translate(-90px, 3px) rotate(-40deg) scale(0.93);
  }
  34% {
    opacity: 1;
    transform: translate(-48px, -6px) rotate(18deg) scale(1.04);
  }
  45% {
    opacity: 1;
    transform: translate(-18px, -3px) rotate(86deg) scale(1.11);
    filter:
      drop-shadow(0 0 34px var(--eclipse-color))
      drop-shadow(0 0 88px rgba(255, 203, 69, 0.86));
  }
  56% {
    opacity: 1;
    transform: translate(0, 0) rotate(164deg) scale(0.78);
    filter:
      drop-shadow(0 0 48px var(--eclipse-color))
      drop-shadow(0 0 120px rgba(255, 203, 69, 0.96));
  }
  68% {
    opacity: 0.8;
    transform: translate(16px, 2px) rotate(248deg) scale(0.5);
  }
  82% {
    opacity: 0.28;
    transform: translate(34px, -8px) rotate(390deg) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(48px, -16px) rotate(540deg) scale(0.18);
  }
}

@keyframes eclipse-star-right {
  0% {
    opacity: 0;
    transform: translate(210px, 36px) rotate(160deg) scale(0.58);
  }
  8% {
    opacity: 0.5;
    transform: translate(178px, 24px) rotate(126deg) scale(0.68);
  }
  16% {
    opacity: 1;
    transform: translate(136px, 14px) rotate(86deg) scale(0.8);
  }
  25% {
    opacity: 1;
    transform: translate(90px, 3px) rotate(40deg) scale(0.93);
  }
  34% {
    opacity: 1;
    transform: translate(48px, -6px) rotate(-18deg) scale(1.04);
  }
  45% {
    opacity: 1;
    transform: translate(18px, -3px) rotate(-86deg) scale(1.11);
    filter:
      drop-shadow(0 0 34px var(--eclipse-color))
      drop-shadow(0 0 88px rgba(255, 203, 69, 0.86));
  }
  56% {
    opacity: 1;
    transform: translate(0, 0) rotate(-164deg) scale(0.78);
    filter:
      drop-shadow(0 0 48px var(--eclipse-color))
      drop-shadow(0 0 120px rgba(255, 203, 69, 0.96));
  }
  68% {
    opacity: 0.8;
    transform: translate(-16px, 2px) rotate(-248deg) scale(0.5);
  }
  82% {
    opacity: 0.28;
    transform: translate(-34px, -8px) rotate(-390deg) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-48px, -16px) rotate(-540deg) scale(0.18);
  }
}

@keyframes eclipse-star-core {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
    filter: brightness(0.8);
  }
  18% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.32) rotate(40deg);
  }
  32% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.55) rotate(96deg);
  }
  46% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.86) rotate(164deg);
    filter: brightness(1.35);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14) rotate(248deg);
    filter: brightness(2.1);
  }
  70% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.72) rotate(326deg);
    filter: brightness(2.5);
  }
  84% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(2.35) rotate(430deg);
    filter: brightness(1.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3) rotate(560deg);
    filter: brightness(0.7);
  }
}

@keyframes eclipse-wave {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  14% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.26);
  }
  28% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.48);
  }
  44% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(0.76);
  }
  62% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(1.06);
  }
  80% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(1.38);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.72);
  }
}

@keyframes eclipse-impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  12% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.32);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.78);
  }
  36% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.08);
  }
  50% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(1.7);
  }
  68% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(2.55);
  }
  84% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(3.55);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@keyframes eclipse-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.55) rotate(20deg);
  }
  32% {
    opacity: 0.92;
    transform: translate(calc(-50% + var(--spark-x-a)), calc(-50% + var(--spark-y-a))) scale(0.85) rotate(50deg);
  }
  50% {
    opacity: 0.72;
    transform: translate(calc(-50% + var(--spark-x-b)), calc(-50% + var(--spark-y-b))) scale(1.05) rotate(86deg);
  }
  70% {
    opacity: 0.36;
    transform: translate(calc(-50% + var(--spark-x-c)), calc(-50% + var(--spark-y-c))) scale(1.16) rotate(124deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1.28) rotate(170deg);
  }
}

@keyframes eclipse-dust {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  }
  14% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dust-x-a)), calc(-50% + var(--dust-y-a))) scale(0.54) rotate(var(--dust-rotate-a));
  }
  30% {
    opacity: 0.92;
    transform: translate(calc(-50% + var(--dust-x-b)), calc(-50% + var(--dust-y-b))) scale(0.82) rotate(var(--dust-rotate-b));
  }
  48% {
    opacity: 0.7;
    transform: translate(calc(-50% + var(--dust-x-c)), calc(-50% + var(--dust-y-c))) scale(1.05) rotate(var(--dust-rotate-c));
  }
  70% {
    opacity: 0.36;
    transform: translate(calc(-50% + var(--dust-x-d)), calc(-50% + var(--dust-y-d))) scale(1.22) rotate(var(--dust-rotate-d));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dust-x)), calc(-50% + var(--dust-y))) scale(1.36) rotate(var(--dust-rotate));
  }
}

@keyframes eclipse-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }
  24%,
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1.04);
  }
}

@keyframes hero-scene {
  0% {
    opacity: 0;
  }
  7%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-snow {
  0% {
    opacity: 0;
    transform: translate(var(--snow-x), -28px) scale(0.72);
  }
  15%,
  78% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--snow-x) + 54px), 720px) scale(1.1);
  }
}

@keyframes hero-moon {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  18%,
  86% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes hero-fighter {
  0% {
    opacity: 0;
    transform: translate(-220px, -260px) rotate(-24deg) scale(0.76);
  }
  28% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform: translate(155px, 220px) rotate(18deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(210px, 250px) rotate(28deg) scale(0.92);
  }
}

@keyframes hero-monster {
  0% {
    opacity: 0;
    transform: translate(0, 30px) scale(0.8);
  }
  24%,
  38% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  66% {
    opacity: 1;
    transform: translate(260px, -250px) rotate(520deg) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translate(350px, -330px) rotate(720deg) scale(0.32);
  }
}

@keyframes hero-impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

@keyframes hero-trail {
  0% {
    opacity: 0;
    transform: rotate(-31deg) scaleX(0.15);
  }
  30%,
  68% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(-31deg) scaleX(1.25);
  }
}

@keyframes hero-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }
  24%,
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1.04);
  }
}

@keyframes toji-scene {
  0% {
    opacity: 0;
  }
  6%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes toji-speed {
  0% {
    opacity: 0;
    transform: translate(-120px, var(--speed-y)) rotate(-7deg) scaleX(0.12);
  }
  18%,
  58% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate(150vw, calc(var(--speed-y) - 16px)) rotate(-7deg) scaleX(1.18);
  }
}

@keyframes toji-afterimage {
  0% {
    opacity: 0;
    transform: translate(-70px, 42px) rotate(-20deg) scale(0.64);
  }
  12% {
    opacity: 0.2;
    transform: translate(-44px, 30px) rotate(-14deg) scale(0.76);
  }
  24% {
    opacity: 0.34;
    transform: translate(-12px, 18px) rotate(-6deg) scale(0.9);
  }
  38% {
    opacity: 0.28;
    transform: translate(42px, 6px) rotate(4deg) scale(1.02);
  }
  52% {
    opacity: 0.18;
    transform: translate(92px, -7px) rotate(10deg) scale(1.12);
  }
  72% {
    opacity: 0.08;
    transform: translate(136px, -16px) rotate(14deg) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(174px, -20px) rotate(16deg) scale(1.18);
  }
}

@keyframes toji-attacker {
  0% {
    opacity: 0;
    transform: translate(-230px, 82px) rotate(-20deg) scale(0.7);
  }
  6% {
    opacity: 0.46;
    transform: translate(-188px, 62px) rotate(-18deg) scale(0.76);
  }
  12% {
    opacity: 1;
    transform: translate(-142px, 42px) rotate(-15deg) scale(0.84);
  }
  19% {
    opacity: 1;
    transform: translate(-96px, 23px) rotate(-12deg) scale(0.9);
  }
  27% {
    opacity: 1;
    transform: translate(-58px, 10px) rotate(-8deg) scale(0.96);
  }
  34% {
    opacity: 1;
    transform: translate(-16px, -1px) rotate(-5deg) scale(1);
  }
  42% {
    opacity: 1;
    transform: translate(28px, -10px) rotate(-2deg) scale(1.02);
  }
  49% {
    opacity: 1;
    transform: translate(106px, -13px) rotate(3deg) scale(1.08);
  }
  56% {
    opacity: 1;
    transform: translate(232px, -8px) rotate(8deg) scale(1.12);
  }
  61% {
    opacity: 1;
    transform: translate(262px, -10px) rotate(4deg) scale(1.08);
  }
  66% {
    opacity: 1;
    transform: translate(272px, -11px) rotate(2deg) scale(1.02);
  }
  76% {
    opacity: 1;
    transform: translate(272px, -11px) rotate(2deg) scale(1.02);
  }
  82% {
    opacity: 0.98;
    transform: translate(300px, -18px) rotate(7deg) scale(0.98);
  }
  88% {
    opacity: 0.92;
    transform: translate(330px, -28px) rotate(12deg) scale(0.94);
  }
  100% {
    opacity: 0;
    transform: translate(455px, -60px) rotate(22deg) scale(0.78);
  }
}

@keyframes toji-target {
  0%,
  46% {
    opacity: 0.92;
    transform: translate(0, 0) rotate(0deg);
  }
  52% {
    opacity: 0.98;
    transform: translate(6px, -1px) rotate(1deg);
  }
  58% {
    opacity: 1;
    transform: translate(14px, -4px) rotate(4deg);
  }
  63% {
    opacity: 1;
    transform: translate(24px, -7px) rotate(7deg);
  }
  70% {
    opacity: 0.98;
    transform: translate(48px, 2px) rotate(12deg) scale(1);
  }
  78% {
    opacity: 0.94;
    transform: translate(78px, 12px) rotate(16deg) scale(0.98);
  }
  91% {
    opacity: 0.88;
    transform: translate(138px, 42px) rotate(26deg) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translate(178px, 58px) rotate(32deg) scale(0.82);
  }
}

@keyframes toji-impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  10% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.38);
  }
  20% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(0.72);
  }
  30% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1.04);
  }
  42% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.18);
  }
  58% {
    opacity: 0.46;
    transform: translate(-50%, -50%) scale(1.74);
  }
  76% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(2.56);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.45);
  }
}

@keyframes toji-slash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(0.06);
  }
  12% {
    opacity: 0.62;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(0.36);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(0.86);
  }
  38% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(1);
  }
  58% {
    opacity: 0.82;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(1.16);
  }
  76% {
    opacity: 0.32;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(1.34);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-16deg) scaleX(1.48);
  }
}

@keyframes toji-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }
  22%,
  84% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(1.05);
  }
}

@keyframes honored-scene {
  0% {
    opacity: 0;
  }
  6%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes honored-moon {
  0% {
    opacity: 0;
    transform: scale(0.74);
  }
  10% {
    opacity: 0.32;
    transform: scale(0.82);
  }
  16% {
    opacity: 0.76;
    transform: scale(1);
  }
  40% {
    opacity: 0.82;
    transform: scale(1.03);
  }
  64% {
    opacity: 0.74;
    transform: scale(1.01);
  }
  88% {
    opacity: 0.58;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes honored-person {
  0% {
    opacity: 0;
    transform: translate(-250px, 150px) rotate(-82deg) scale(0.54);
  }
  6% {
    opacity: 0.46;
    transform: translate(-194px, 114px) rotate(-12deg) scale(0.66);
  }
  13% {
    opacity: 1;
    transform: translate(-136px, 68px) rotate(66deg) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-98px, 22px) rotate(118deg) scale(0.86);
  }
  28% {
    opacity: 1;
    transform: translate(-64px, -42px) rotate(170deg) scale(0.92);
  }
  35% {
    opacity: 1;
    transform: translate(-34px, -94px) rotate(248deg) scale(0.99);
  }
  43% {
    opacity: 1;
    transform: translate(-12px, -148px) rotate(326deg) scale(1.05);
  }
  49% {
    opacity: 1;
    transform: translate(-4px, -166px) rotate(354deg) scale(1.08);
  }
  54% {
    opacity: 1;
    transform: translate(0, -172px) rotate(360deg) scale(1.1);
  }
  64% {
    opacity: 1;
    transform: translate(0, -177px) rotate(360deg) scale(1.12);
  }
  79% {
    opacity: 1;
    transform: translate(0, -172px) rotate(360deg) scale(1.1);
  }
  85% {
    opacity: 1;
    transform: translate(0, -154px) rotate(360deg) scale(1.04);
  }
  90% {
    opacity: 1;
    transform: translate(0, -138px) rotate(360deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, -118px) rotate(360deg) scale(0.86);
  }
}

@keyframes honored-arm-left {
  0% {
    transform: rotate(-18deg);
  }
  6% {
    transform: rotate(-36deg) translateY(-1px);
  }
  13% {
    transform: rotate(-58deg) translateY(-2px);
  }
  20% {
    transform: rotate(-78deg) translateY(-3px);
  }
  28% {
    transform: rotate(-92deg) translateY(-4px);
  }
  35% {
    transform: rotate(-70deg) translateY(-3px);
  }
  43% {
    transform: rotate(-42deg) translateY(-2px);
  }
  49% {
    transform: rotate(-28deg) translateY(0);
  }
  54% {
    transform: rotate(-20deg) translateY(1px);
  }
  66% {
    transform: rotate(-16deg) translateY(1px);
  }
  79% {
    transform: rotate(-20deg) translateY(1px);
  }
  85% {
    transform: rotate(-24deg);
  }
  90%,
  100% {
    transform: rotate(-30deg);
  }
}

@keyframes honored-arm-right {
  0% {
    transform: rotate(18deg);
  }
  6% {
    transform: rotate(36deg) translateY(-1px);
  }
  13% {
    transform: rotate(58deg) translateY(-2px);
  }
  20% {
    transform: rotate(78deg) translateY(-3px);
  }
  28% {
    transform: rotate(92deg) translateY(-4px);
  }
  35% {
    transform: rotate(70deg) translateY(-3px);
  }
  43% {
    transform: rotate(42deg) translateY(-2px);
  }
  49% {
    transform: rotate(28deg) translateY(0);
  }
  54% {
    transform: rotate(20deg) translateY(1px);
  }
  66% {
    transform: rotate(16deg) translateY(1px);
  }
  79% {
    transform: rotate(20deg) translateY(1px);
  }
  85% {
    transform: rotate(24deg);
  }
  90%,
  100% {
    transform: rotate(30deg);
  }
}

@keyframes honored-body-glow {
  0%,
  100% {
    box-shadow: none;
  }
  36% {
    box-shadow: 0 0 8px rgba(125, 249, 255, 0.24);
  }
  48% {
    box-shadow:
      0 0 14px var(--honored-color),
      0 0 28px rgba(125, 249, 255, 0.42);
  }
  62% {
    box-shadow:
      0 0 20px var(--honored-color),
      0 0 46px rgba(125, 249, 255, 0.58);
  }
  79% {
    box-shadow:
      0 0 16px var(--honored-color),
      0 0 34px rgba(125, 249, 255, 0.46);
  }
}

@keyframes honored-ring {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.12);
  }
  38% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.82);
  }
}

@keyframes honored-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-rotate)) scaleY(0.16);
  }
  22%,
  68% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(var(--spark-rotate)) scaleY(1.28);
  }
}

@keyframes honored-flash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  26% {
    opacity: 0.82;
  }
  48% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

@keyframes honored-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(22px) scale(0.82);
  }
  22%,
  86% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px) scale(1.05);
  }
}

@keyframes singularity-scene {
  0% {
    opacity: 0;
  }
  7%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes singularity-orbit {
  0% {
    opacity: 0;
    transform: scale(1.45) rotate(0deg);
  }
  16% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: scale(0.52) rotate(980deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.06) rotate(1280deg);
  }
}

@keyframes singularity-red-ball {
  0%,
  58% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(120px, -50%) scale(0.1);
  }
}

@keyframes singularity-blue-ball {
  0%,
  58% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-120px, -50%) scale(0.1);
  }
}

@keyframes singularity-trail-red {
  0% {
    opacity: 0;
    transform: scale(1.35) rotate(0deg);
  }
  20%,
  76% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(0.18) rotate(1080deg);
  }
}

@keyframes singularity-trail-blue {
  0% {
    opacity: 0;
    transform: scale(1.35) rotate(0deg);
  }
  20%,
  76% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(0.18) rotate(-1080deg);
  }
}

@keyframes singularity-flash {
  0% {
    opacity: 0;
    transform: scale(0.12);
  }
  24% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4.8);
  }
}

@keyframes singularity-purple-ball {
  0% {
    opacity: 0;
    transform: scale(0.08) rotate(0deg);
  }
  26% {
    opacity: 1;
    transform: scale(1.18) rotate(80deg);
  }
  72% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.22) rotate(240deg);
  }
}

@keyframes singularity-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.86);
  }
  24%,
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1.04);
  }
}

@keyframes genesis-scene {
  0% {
    opacity: 0;
  }
  6%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes genesis-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: scale(1.25) rotate(36deg);
  }
}

@keyframes genesis-main-star {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(-18deg);
  }
  15%,
  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  48% {
    transform: translate(-50%, -50%) scale(1.8) rotate(32deg);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(8) rotate(90deg);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(11) rotate(120deg);
  }
}

@keyframes genesis-orbit {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  22%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(520deg);
  }
}

@keyframes genesis-orbit-star {
  0%,
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.25);
  }
}

@keyframes genesis-firework {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@keyframes genesis-grass {
  from {
    height: 0;
  }
  to {
    height: 22%;
  }
}

@keyframes genesis-tree-grow {
  0% {
    opacity: 0;
    height: 0;
    transform: translateY(50px) scale(0.4);
  }
  100% {
    opacity: 1;
    height: 96px;
    transform: translateY(0) scale(1);
  }
}

@keyframes genesis-bunny-hop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7);
  }
  25%,
  100% {
    opacity: 1;
  }
  50% {
    transform: translateY(-18px) scale(1);
  }
  75% {
    transform: translateY(0) scale(1);
  }
}

@keyframes genesis-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px) scale(0.88);
  }
  24%,
  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(1.04);
  }
}

@keyframes souls-wave-arm {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  20% {
    transform: rotate(-78deg) translateY(-4px);
  }
  38% {
    transform: rotate(-42deg) translateY(-2px);
  }
  56% {
    transform: rotate(-82deg) translateY(-4px);
  }
  74% {
    transform: rotate(-36deg);
  }
}

@keyframes souls-wave-hand {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  20% {
    transform: rotate(-72deg) translateY(-4px);
  }
  38% {
    transform: rotate(-26deg) translateY(-2px);
  }
  56% {
    transform: rotate(-78deg) translateY(-4px);
  }
  74% {
    transform: rotate(-20deg);
  }
}

@keyframes glove-equip-arm {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  16% {
    transform: rotate(-46deg) translateY(-2px);
  }
  38%,
  72% {
    transform: rotate(-82deg) translateY(-7px);
  }
  86% {
    transform: rotate(-54deg) translateY(-3px);
  }
}

@keyframes glove-equip-hand {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  16% {
    transform: rotate(-38deg) translateY(-2px);
  }
  38%,
  72% {
    transform: rotate(-76deg) translateY(-7px);
  }
  86% {
    transform: rotate(-44deg) translateY(-3px);
  }
}

@keyframes glove-equip-orbit {
  0% {
    opacity: 0;
    transform: translate(-120px, -118px) rotate(-70deg) scale(0.34);
    box-shadow:
      0 0 20px var(--glove-color, #10131f),
      0 0 54px var(--glove-color, #10131f);
  }
  14% {
    opacity: 1;
    transform: translate(-92px, -106px) rotate(75deg) scale(0.76);
  }
  31% {
    transform: translate(-28px, -126px) rotate(238deg) scale(1.04);
  }
  49% {
    transform: translate(-98px, -46px) rotate(420deg) scale(1.02);
  }
  66% {
    transform: translate(-24px, -36px) rotate(590deg) scale(0.96);
  }
  82% {
    opacity: 1;
    transform: translate(-4px, -8px) rotate(690deg) scale(1.15);
    box-shadow:
      0 0 34px var(--glove-color, #10131f),
      0 0 78px var(--glove-color, #10131f);
  }
  92% {
    transform: translate(1px, 1px) rotate(715deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

@keyframes glove-equip-left-snap {
  0% {
    opacity: 0;
    transform: translate(116px, -96px) rotate(80deg) scale(0.34);
    box-shadow:
      0 0 18px var(--glove-color, #10131f),
      0 0 42px var(--glove-color, #10131f);
  }
  15% {
    opacity: 1;
    transform: translate(88px, -118px) rotate(-74deg) scale(0.78);
  }
  32% {
    transform: translate(26px, -120px) rotate(-228deg) scale(1.03);
  }
  52% {
    transform: translate(82px, -34px) rotate(-405deg) scale(0.98);
  }
  70% {
    transform: translate(14px, -22px) rotate(-580deg) scale(1.02);
  }
  84% {
    transform: translate(1px, -5px) rotate(-690deg) scale(1.14);
    box-shadow:
      0 0 28px var(--glove-color, #10131f),
      0 0 66px var(--glove-color, #10131f);
  }
  93% {
    transform: translate(-1px, 1px) rotate(-714deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(10deg) scale(1);
  }
}

@keyframes hat-equip-drop {
  0% {
    opacity: 0;
    transform: translateY(-92px) rotate(-28deg) scale(0.45);
    filter: drop-shadow(0 0 28px var(--hat-color));
  }
  18% {
    opacity: 1;
    transform: translate(34px, -62px) rotate(24deg) scale(0.9);
  }
  38% {
    transform: translate(-30px, -42px) rotate(-22deg) scale(1.12);
  }
  58% {
    transform: translate(20px, -16px) rotate(15deg) scale(1.04);
  }
  76% {
    transform: translateY(4px) rotate(-5deg) scale(1.1);
    filter: drop-shadow(0 0 36px var(--hat-color));
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.word-game-over {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  padding: 18px;
  background: rgba(3, 8, 18, 0.72);
  text-align: center;
}

.word-game-over.hidden {
  display: none;
}

.word-game-over strong {
  color: var(--red);
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 1;
}

.word-game-over span {
  color: var(--ink);
  font-weight: 800;
}

.word-game-over button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(144, 249, 92, 0.88);
  border-radius: 7px;
  background: rgba(144, 249, 92, 0.18);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.word-game-over button:hover,
.word-game-over button:focus-visible {
  outline: none;
  border-color: rgba(72, 227, 255, 0.92);
  background: rgba(72, 227, 255, 0.16);
}

.auto-clicker {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(3, 8, 18, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.auto-clicker input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}

.toast {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: min(640px, calc(100% - 32px));
  padding: 10px 14px;
  background: rgba(3, 8, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.mod-panel {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.mode-toggle {
  min-width: 116px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 8, 18, 0.82);
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0;
  pointer-events: auto;
}

.mode-toggle:hover,
.mode-toggle:focus-visible {
  outline: none;
  border-color: rgba(255, 79, 163, 0.9);
  background: rgba(255, 79, 163, 0.16);
}

.mode-toggle.active {
  border-color: rgba(144, 249, 92, 0.95);
  background: rgba(144, 249, 92, 0.18);
  box-shadow: inset 0 -3px 0 var(--lime);
}

.mode-toggle[data-mode="normal"].active {
  border-color: rgba(72, 227, 255, 0.9);
  background: rgba(72, 227, 255, 0.16);
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.mode-toggle[data-mode="gravity"].active {
  border-color: rgba(72, 227, 255, 0.9);
  background: rgba(255, 79, 163, 0.17);
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.mode-toggle[data-mode="bouncy"].active {
  border-color: rgba(144, 249, 92, 0.95);
  background: rgba(144, 249, 92, 0.18);
  box-shadow: inset 0 -3px 0 var(--lime);
}

.mode-toggle[data-mode="chaos"].active {
  border-color: rgba(255, 203, 69, 0.95);
  background: rgba(255, 79, 163, 0.2);
  box-shadow: inset 0 -3px 0 var(--amber);
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .game-hub {
    align-items: start;
    padding: 16px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, 142px);
  }

  .game-card {
    grid-template-rows: auto 92px;
  }

  .word-form {
    grid-template-columns: 1fr;
  }

  .shell {
    min-height: 100vh;
    height: auto;
    padding: 8px;
  }

  .hud {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  p {
    white-space: normal;
  }

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

  .word-shell .stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .controls {
    justify-content: stretch;
  }

  .icon-button {
    width: 100%;
  }

  .stage-wrap {
    aspect-ratio: 16 / 10;
    min-height: 420px;
  }

  .souls-stage {
    place-items: stretch center;
    align-content: start;
    gap: 10px;
    overflow: auto;
  }

  .souls-inventory,
  .souls-sell,
  .souls-testing,
  .souls-equipment,
  .souls-admin {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    max-height: 150px;
  }

  .souls-equipment {
    max-height: 190px;
  }

  .souls-testing {
    max-height: 150px;
  }

  .souls-admin {
    max-height: 210px;
  }

  .souls-scene {
    min-height: 330px;
  }

  .souls-character {
    transform: scale(0.8);
  }
}
