@font-face {
  font-family: "Runalto DLDL";
  src: url("/TH-Runalto.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Azuki DLDL";
  src: url("/UTM-Azuki.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --abyss: #02040b;
  --abyss-soft: #06101d;
  --navy: #081a2d;
  --navy-raised: #0c243b;
  --ice: #67f5ff;
  --ice-deep: #168dff;
  --flame: #ff365c;
  --flame-hot: #ff7946;
  --divine: #f6cf73;
  --violet: #a371ff;
  --jade: #68f0b3;
  --snow: #f4fbff;
  --mist: #a7bed3;
  --stroke: rgba(151, 215, 255, .19);
  --stroke-strong: rgba(151, 215, 255, .34);
  --panel: rgba(4, 14, 28, .9);
  --panel-soft: rgba(7, 24, 43, .74);
  --display: "Runalto DLDL", "Arial Narrow", sans-serif;
  --body: "Azuki DLDL", "Segoe UI", sans-serif;
  --data: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--abyss);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--snow);
  background: var(--abyss);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
}

.public-portal {
  background:
    linear-gradient(180deg, rgba(2, 4, 11, .14) 0, rgba(2, 4, 11, .44) 58vh, var(--abyss) 108vh),
    url("/background.jpg") center top / min(100vw, 1880px) auto no-repeat,
    var(--abyss);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  pointer-events: none;
  inset: 0;
}

.public-portal::before {
  background:
    radial-gradient(ellipse at 8% 28%, rgba(38, 206, 255, .25), transparent 34%),
    radial-gradient(ellipse at 92% 28%, rgba(255, 40, 84, .22), transparent 34%);
  animation: realm-breathe 9s ease-in-out infinite alternate;
}

.public-portal::after {
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.staff-portal {
  background:
    radial-gradient(circle at 13% -5%, rgba(27, 105, 138, .2), transparent 31%),
    radial-gradient(circle at 90% 4%, rgba(90, 39, 102, .2), transparent 29%),
    #030914;
}

.staff-portal::after {
  opacity: .17;
  background-image: linear-gradient(rgba(116, 179, 217, .06) 1px, transparent 1px);
  background-size: 100% 42px;
}

::selection {
  color: #06111c;
  background: var(--divine);
}

a {
  color: inherit;
}

.shell {
  width: min(100%, 1600px);
  max-width: none;
  margin: 0 auto;
  padding: 18px clamp(14px, 3.6vw, 58px) 42px;
  isolation: isolate;
}

.nav,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  z-index: 50;
  top: 12px;
  min-height: 70px;
  margin: 0;
  padding: 9px 11px 9px 14px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(3, 12, 25, .78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px) saturate(1.2);
}

.staff-portal .nav {
  border-color: rgba(162, 190, 213, .17);
  background: rgba(5, 15, 28, .94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand::before {
  display: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #06111c;
  background: conic-gradient(from 25deg, var(--ice), white, var(--flame), var(--divine), var(--ice));
  box-shadow: -8px 0 28px rgba(74, 223, 255, .25), 8px 0 28px rgba(255, 54, 92, .2);
  font-family: serif;
  font-size: 22px;
  line-height: 1;
}

.brand-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 7px;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-copy strong,
.brand-copy b {
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1;
}

.brand-copy b {
  color: var(--divine);
  font-weight: 900;
}

.brand-copy small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #8ea7bd;
  font-family: var(--data);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
  color: #b3c6d7;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ice), var(--divine));
  scale: 0 1;
  transform-origin: right;
  transition: scale .25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  scale: 1 1;
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-actions form {
  margin: 0;
}

.hero {
  position: relative;
  min-height: max(810px, calc(100svh - 94px));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(410px, auto) auto;
  gap: 18px;
  padding: clamp(42px, 7vh, 78px) 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -5% 2%;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, .94) 0 24%, rgba(2, 7, 17, .45) 43%, transparent 63%),
    linear-gradient(270deg, rgba(19, 3, 18, .52), transparent 32%),
    linear-gradient(180deg, transparent 45%, rgba(2, 4, 11, .86) 93%);
  clip-path: polygon(0 3%, 98% 0, 100% 94%, 4% 100%);
}

.hero-copy {
  position: relative;
  z-index: 5;
  grid-column: 1 / span 6;
  grid-row: 1;
  align-self: start;
  padding: clamp(32px, 8vh, 88px) 0 0 clamp(0px, 1.5vw, 20px);
  pointer-events: none;
}

.hero-copy a,
.hero-copy button {
  pointer-events: auto;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(246, 207, 115, .35);
  border-radius: 999px;
  color: var(--divine);
  background: rgba(22, 13, 14, .54);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 21px 0 17px;
  font-family: var(--display);
  font-size: clamp(62px, 7.2vw, 112px);
  font-weight: 950;
  line-height: .79;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(0, 0, 0, .72);
}

.hero h1 .dual-title {
  display: block;
  margin-top: 7px;
  color: transparent;
  background: linear-gradient(96deg, var(--ice) 0 31%, #f8fdff 47%, var(--divine) 64%, var(--flame) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(-10px 0 24px rgba(103, 245, 255, .12)) drop-shadow(10px 0 24px rgba(255, 54, 92, .1));
}

.hero-lead,
.hero p {
  max-width: 625px;
  margin: 0;
  color: #c7d8e7;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  text-shadow: 0 2px 17px rgba(0, 0, 0, .95);
}

.hero p strong {
  color: var(--jade);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

button,
.button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  padding: 10px 16px;
  color: #031019;
  background: #83eefd;
  box-shadow: 0 12px 34px rgba(42, 189, 231, .18), inset 0 1px rgba(255, 255, 255, .55);
  font-family: var(--data);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .025em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, filter .2s ease, box-shadow .2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.12);
  box-shadow: 0 17px 42px rgba(42, 189, 231, .25), inset 0 1px rgba(255, 255, 255, .65);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--divine);
  outline-offset: 3px;
}

button.gold,
.button.gold {
  color: #251409;
  background: #f6cf73;
  box-shadow: 0 12px 34px rgba(246, 184, 68, .2);
}

button.danger {
  color: white;
  background: #b82f53;
  box-shadow: none;
}

button.ghost,
.button.ghost {
  color: var(--snow);
  border-color: rgba(182, 216, 239, .22);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
}

button[disabled] {
  opacity: .55;
  cursor: wait;
}

.download-button {
  color: #261408;
  border-color: rgba(246, 207, 115, .62);
  background: linear-gradient(110deg, #fff0a4, var(--divine) 55%, #ff8b49);
  box-shadow: 0 0 28px rgba(246, 186, 72, .18);
}

.download-button::before {
  content: "↓";
  margin-right: 7px;
  font-size: 17px;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.launch-bonus {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 15px 9px 9px;
  border-left: 2px solid var(--jade);
  background: rgba(3, 22, 28, .68);
  box-shadow: 0 13px 38px rgba(0, 0, 0, .22);
}

.launch-bonus strong {
  display: block;
  color: var(--jade);
  font-family: var(--data);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.2;
}

.launch-bonus small {
  color: var(--mist);
}

.bonus-orb {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: #06120f;
  background: radial-gradient(circle at 35% 28%, white, var(--jade) 44%, #148e84 75%);
  box-shadow: 0 0 25px rgba(104, 240, 179, .48);
  font-size: 21px;
  animation: orb-float 2.8s ease-in-out infinite;
}

.hero-stage {
  position: relative;
  z-index: 3;
  grid-column: 5 / 13;
  grid-row: 1 / 3;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
  clip-path: polygon(5% 2%, 100% 0, 98% 94%, 13% 100%, 0 79%, 3% 17%);
  background:
    radial-gradient(circle at 46% 38%, rgba(246, 207, 115, .1), transparent 19%),
    linear-gradient(90deg, rgba(9, 61, 84, .12), transparent 39%, rgba(99, 10, 37, .12));
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-stage::before {
  inset: 7% 8%;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(255, 255, 255, .05) 32.2% 32.6%, transparent 33% 47%, rgba(246, 207, 115, .07) 47.2% 47.5%, transparent 47.8%);
  animation: sigil-spin 44s linear infinite;
}

.hero-stage::after {
  inset: auto 15% 3%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(78, 221, 255, .23), rgba(110, 52, 132, .14) 36%, transparent 72%);
  filter: blur(12px);
}

.hero-stage canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: saturate(1.08) contrast(1.04);
  transition: opacity 1.1s ease;
}

.hero-stage.is-ready canvas {
  opacity: 1;
}

.stage-fallback {
  position: absolute;
  z-index: 1;
  inset: 12% 10%;
  opacity: .72;
  transition: opacity .8s ease;
}

.hero-stage.is-ready .stage-fallback {
  opacity: 0;
}

.fallback-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vw, 520px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(103, 245, 255, .36);
  border-radius: 50%;
  box-shadow: inset 0 0 55px rgba(103, 245, 255, .08), 0 0 38px rgba(103, 245, 255, .11);
  animation: sigil-spin 19s linear infinite;
}

.fallback-ring::before,
.fallback-ring::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
  inset: 11%;
}

.fallback-ring::after {
  inset: 26%;
  border-color: rgba(255, 54, 92, .44);
}

.ring-two {
  width: min(53vw, 410px);
  border-style: dashed;
  border-color: rgba(246, 207, 115, .44);
  animation-direction: reverse;
  animation-duration: 13s;
}

.fallback-silhouette {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 31%;
  height: 63%;
  translate: -50% 0;
  border-radius: 48% 48% 35% 35%;
  opacity: .55;
  background: linear-gradient(90deg, rgba(33, 183, 222, .25), rgba(7, 12, 24, .76) 45% 56%, rgba(255, 43, 82, .25));
  filter: blur(15px);
}

.stage-vignette {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 11, .82), transparent 25% 78%, rgba(2, 4, 11, .43)),
    linear-gradient(180deg, rgba(2, 4, 11, .22), transparent 26% 68%, rgba(2, 4, 11, .86));
}

.stage-status {
  position: absolute;
  z-index: 6;
  top: 22%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9cfdf;
  font-family: var(--data);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: opacity .5s ease, translate .5s ease;
}

.stage-status i {
  --stage-progress: 0%;
  display: block;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--ice) var(--stage-progress), rgba(255, 255, 255, .16) var(--stage-progress));
  box-shadow: 0 0 12px rgba(103, 245, 255, .35);
  transition: background .25s ease;
}

.hero-stage.is-ready .stage-status {
  opacity: 0;
  translate: 0 -8px;
}

.hero-stage.is-fallback .stage-status {
  color: var(--divine);
}

.stage-index {
  position: absolute;
  z-index: 6;
  top: 18%;
  left: 11%;
  display: grid;
  font-family: var(--data);
  line-height: 1;
}

.stage-index span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 207, 115, .7);
  font-size: clamp(38px, 5vw, 73px);
  font-weight: 300;
}

.stage-index small {
  color: var(--divine);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .28em;
}

.stage-caption {
  position: absolute;
  z-index: 6;
  right: 8%;
  bottom: 12%;
  display: grid;
  justify-items: end;
  padding-right: 13px;
  border-right: 2px solid var(--divine);
  text-align: right;
  text-shadow: 0 2px 18px #000;
}

.stage-caption span,
.login-kicker {
  color: var(--divine);
  font-family: var(--data);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .18em;
}

.stage-caption strong {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
}

.stage-caption small {
  color: var(--mist);
  font-family: var(--data);
  font-size: 10px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 75px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(15px) saturate(1.2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(103, 245, 255, .65), rgba(246, 207, 115, .72), rgba(255, 54, 92, .55), transparent);
}

.card:hover {
  border-color: var(--stroke-strong);
  box-shadow: 0 30px 86px rgba(0, 0, 0, .42);
}

.login {
  display: block;
}

.player-login {
  z-index: 8;
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: end;
  width: min(100%, 430px);
  margin-left: clamp(0px, 1.5vw, 20px);
  padding: 24px;
  border: 1px solid rgba(103, 245, 255, .24);
  border-left: 3px solid var(--ice);
  border-radius: 4px 18px 18px 4px;
  background: rgba(3, 13, 28, .93);
  clip-path: polygon(0 0, 93% 0, 100% 12%, 100% 100%, 0 100%);
}

.login h2,
.section h2,
.card h2,
.card h3 {
  font-family: var(--display);
  letter-spacing: .015em;
}

.login h2 {
  margin: 4px 0 0;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.1;
}

.login p {
  margin: 5px 0 10px;
  font-size: 14px;
}

.login-note {
  display: block;
  margin-top: 12px;
  color: #8199ad;
  font-family: var(--data);
  font-size: 10px;
}

label {
  display: block;
  margin: 11px 0 6px;
  color: #bdd0df;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(152, 198, 229, .2);
  border-radius: 9px;
  padding: 10px 11px;
  color: white;
  outline: 0;
  background: rgba(1, 7, 17, .76);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ice);
  background: rgba(3, 16, 31, .94);
  box-shadow: 0 0 0 3px rgba(103, 245, 255, .1);
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  right: 1%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  rotate: 90deg;
  transform-origin: 100% 50%;
  color: #7890a4;
  font-family: var(--data);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: block;
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}

.scroll-cue span::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  background: var(--ice);
  animation: scroll-signal 2s ease-in-out infinite;
}

.notice {
  position: sticky;
  z-index: 45;
  top: 94px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(104, 240, 179, .38);
  border-radius: 10px;
  color: #d9fff0;
  background: rgba(4, 48, 44, .94);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .34);
  backdrop-filter: blur(12px);
}

.notice.error {
  border-color: rgba(255, 77, 111, .55);
  color: #ffe1e7;
  background: rgba(73, 14, 35, .96);
}

.staff-gate {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .58fr);
  align-items: center;
  gap: clamp(34px, 8vw, 120px);
  padding: clamp(54px, 9vh, 105px) clamp(0px, 4vw, 70px);
}

.staff-gate-copy {
  max-width: 750px;
}

.staff-gate h1 {
  margin: 20px 0 16px;
  font-family: var(--display);
  font-size: clamp(61px, 8vw, 118px);
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.staff-gate-copy > p {
  max-width: 650px;
  color: var(--mist);
  font-size: 18px;
}

.staff-scope {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  color: #a9bdcf;
  list-style: none;
  font-family: var(--data);
  font-size: 12px;
}

.staff-scope li {
  position: relative;
  padding: 10px 12px 10px 27px;
  border-left: 1px solid rgba(103, 245, 255, .25);
  background: rgba(255, 255, 255, .025);
}

.staff-scope li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
}

.staff-login {
  padding: clamp(23px, 3vw, 34px);
  border-radius: 8px;
  border-color: rgba(246, 207, 115, .25);
  background: rgba(5, 15, 29, .96);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
}

.section {
  margin-top: clamp(32px, 5vw, 66px);
}

.section > .toolbar {
  margin-bottom: 17px;
}

.section > .toolbar h2,
.leaderboard-title {
  margin: 0;
  color: var(--snow);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}

.muted {
  color: var(--mist);
}

.good {
  color: var(--jade);
}

.profile-banner {
  min-height: 190px;
  margin-top: 34px;
  padding: clamp(23px, 4vw, 45px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 50%, rgba(103, 245, 255, .13), transparent 32%),
    radial-gradient(circle at 91% 50%, rgba(255, 54, 92, .11), transparent 30%),
    rgba(5, 17, 33, .94);
}

.profile-banner h2 {
  margin: 8px 0 3px;
  font-size: clamp(30px, 4vw, 51px);
}

.profile-banner .price {
  color: var(--divine);
  font-family: var(--display);
  font-size: clamp(27px, 3.6vw, 48px);
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 12px;
}

.product {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 6px 18px 6px 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 54, 92, .09), transparent 35%),
    radial-gradient(circle at 0 100%, rgba(103, 245, 255, .09), transparent 36%),
    rgba(5, 17, 33, .94);
}

.product:hover {
  transform: translateY(-5px);
}

.product h3 {
  margin: 15px 0 5px;
  font-size: 26px;
}

.price {
  color: var(--divine);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 900;
}

.rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0;
}

.reward-chip {
  padding: 4px 8px;
  border: 1px solid rgba(103, 245, 255, .2);
  border-radius: 999px;
  color: #d6e9f7;
  background: rgba(10, 53, 76, .5);
  font-family: var(--data);
  font-size: 11px;
}

.reward-builder,
.target-picker {
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(0, 7, 17, .55);
}

.reward-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
}

.reward-results,
.target-results {
  max-height: 220px;
  display: grid;
  gap: 6px;
  overflow: auto;
  margin-top: 8px;
}

.reward-result,
.target-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--snow);
  border: 1px solid rgba(128, 184, 220, .22);
  background: rgba(14, 39, 63, .9);
  box-shadow: none;
  text-align: left;
}

.reward-result small {
  color: var(--mist);
}

.reward-selected {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.reward-selected-row {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(128, 184, 220, .2);
  border-radius: 8px;
  background: rgba(14, 39, 63, .72);
}

.reward-selected-row input {
  padding: 6px;
}

.reward-preview {
  margin-top: 9px;
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(135, 190, 225, .16);
  border-radius: 9px;
  background: rgba(0, 6, 15, .45);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: var(--data);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(128, 181, 216, .1);
  text-align: left;
  font-size: 13px;
}

th {
  color: #9eb6ca;
  background: rgba(66, 139, 183, .07);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(103, 245, 255, .025);
}

.competition-zone {
  position: relative;
  margin-top: clamp(72px, 10vw, 132px);
  padding: clamp(24px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(154, 210, 246, .18);
  border-radius: 5px 28px 5px 28px;
  background:
    radial-gradient(circle at 7% 0, rgba(103, 245, 255, .14), transparent 29%),
    radial-gradient(circle at 96% 0, rgba(255, 54, 92, .12), transparent 29%),
    rgba(4, 15, 29, .94);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.competition-zone::before {
  content: "斗罗巅峰榜";
  position: absolute;
  z-index: 0;
  top: -32px;
  right: 4%;
  color: rgba(255, 255, 255, .045);
  font-family: serif;
  font-size: clamp(58px, 10vw, 148px);
  font-weight: 900;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}

.competition-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: 24px;
}

.competition-head p {
  max-width: 710px;
  color: var(--mist);
  font-size: 16px;
}

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

.realm-stat {
  padding: 13px;
  border-top: 1px solid rgba(246, 207, 115, .25);
  background: rgba(0, 7, 17, .42);
}

.realm-stat strong {
  display: block;
  color: var(--divine);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.realm-stat span {
  color: #94aabd;
  font-family: var(--data);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 15px;
}

.rank-tab {
  color: #c4d6e5;
  border-color: rgba(150, 203, 236, .18);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}

.rank-tab[aria-selected="true"] {
  color: #061019;
  border-color: transparent;
  background: linear-gradient(105deg, var(--ice), #f8fdff 49%, var(--divine));
  box-shadow: 0 0 30px rgba(103, 245, 255, .16);
}

.rank-panel[hidden] {
  display: none;
}

.rank-board {
  display: grid;
  gap: 7px;
}

.rank-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 52px minmax(150px, 1fr) 112px 145px 112px;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border-left: 2px solid rgba(142, 195, 229, .15);
  background: linear-gradient(90deg, rgba(11, 35, 58, .62), rgba(18, 8, 31, .54));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: var(--ice);
  background: linear-gradient(90deg, rgba(14, 48, 75, .72), rgba(38, 11, 39, .66));
}

.rank-row.top-1 {
  border-color: var(--divine);
  background: linear-gradient(90deg, rgba(82, 55, 14, .48), rgba(42, 12, 33, .68));
}

.rank-row.top-2 {
  border-color: #b8d0e1;
}

.rank-row.top-3 {
  border-color: #d8814f;
}

.rank-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: var(--mist);
  background: rgba(0, 0, 0, .24);
  font-family: var(--display);
  font-size: 19px;
}

.top-1 .rank-number {
  color: #321d08;
  background: radial-gradient(circle at 35% 28%, white, var(--divine) 44%, #aa6a12);
  box-shadow: 0 0 22px rgba(246, 207, 115, .38);
}

.top-2 .rank-number {
  color: #17202b;
  background: radial-gradient(circle at 35% 28%, white, #c9dce9 52%, #6e8194);
}

.top-3 .rank-number {
  color: #2b140b;
  background: radial-gradient(circle at 35% 28%, #ffe3ca, #d48249 54%, #6c3c28);
}

.rank-name {
  overflow: hidden;
  font-family: var(--display);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-value {
  color: var(--divine);
  font-family: var(--data);
  font-size: 16px;
  font-weight: 850;
  text-align: right;
}

.rank-meta {
  color: #a4b9ca;
  font-family: var(--data);
  font-size: 11px;
  text-align: right;
}

.rank-empty {
  padding: 35px;
  color: var(--mist);
  text-align: center;
}

.realm-marquee {
  width: 100vw;
  margin: 72px 0 0 50%;
  overflow: hidden;
  translate: -50% 0;
  border-block: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(90deg, rgba(12, 53, 72, .52), rgba(55, 11, 41, .52));
  transform: rotate(-.8deg);
}

.realm-marquee-track {
  width: max-content;
  padding: 9px 0;
  color: #d7e7f2;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: marquee-flow 27s linear infinite;
}

.soul-particle-field {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.soul-particle {
  position: absolute;
  bottom: -40px;
  width: var(--size, 4px);
  height: calc(var(--size, 4px) * 2.3);
  border-radius: 50%;
  opacity: 0;
  background: var(--color, var(--ice));
  box-shadow: 0 0 10px currentColor;
  animation: soul-rise var(--duration, 10s) linear var(--delay, 0s) infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.footer {
  margin-top: 68px;
  padding: 25px 0 8px;
  border-top: 1px solid rgba(146, 200, 234, .11);
  color: #7f96aa;
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes sigil-spin {
  to { rotate: 360deg; }
}

@keyframes realm-breathe {
  from { opacity: .6; filter: saturate(1); }
  to { opacity: 1; filter: saturate(1.35); }
}

@keyframes orb-float {
  50% { transform: translateY(-5px); }
}

@keyframes soul-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  13% { opacity: .65; }
  100% { opacity: 0; transform: translate3d(var(--drift, 30px), -112vh, 0) rotate(380deg); }
}

@keyframes marquee-flow {
  to { transform: translateX(-50%); }
}

@keyframes scroll-signal {
  0% { transform: translateX(-110%); }
  70%, 100% { transform: translateX(180%); }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-stage {
    grid-column: 5 / 13;
  }

  .player-login {
    grid-column: 1 / span 5;
  }
}

@media (max-width: 940px) {
  .public-portal {
    background-size: auto 760px;
    background-position: 52% top;
  }

  .nav {
    position: relative;
    top: 0;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
  }

  .hero::before {
    inset: 0 -4% 1%;
  }

  .hero-copy {
    order: 1;
    padding: 70px 4px 0;
  }

  .hero-stage {
    order: 2;
    width: 100%;
    min-height: 650px;
    margin-top: -70px;
  }

  .player-login {
    order: 3;
    width: min(100%, 620px);
    margin: -70px auto 0;
  }

  .scroll-cue {
    display: none;
  }

  .staff-gate {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .staff-login {
    width: min(100%, 620px);
  }

  .competition-head {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 48px minmax(130px, 1fr) 120px;
  }

  .rank-row > :nth-child(4),
  .rank-row > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .public-portal {
    background-size: auto 560px;
  }

  .shell {
    padding-inline: 11px;
  }

  .nav {
    min-height: 59px;
    padding: 7px 8px;
    border-radius: 13px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 18px;
  }

  .brand-copy {
    display: block;
  }

  .brand-copy b {
    display: none;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .nav-actions .download-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0;
  }

  .nav-actions .download-button::before {
    margin: 0;
    font-size: 19px;
  }

  .nav-actions .public-return {
    padding-inline: 10px;
    font-size: 11px;
  }

  .nav-actions form button {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(51px, 16vw, 77px);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .launch-bonus {
    width: 100%;
  }

  .hero-stage {
    min-height: 530px;
    margin-top: -38px;
    clip-path: polygon(2% 1%, 100% 0, 99% 95%, 7% 100%, 0 83%);
  }

  .stage-index {
    top: 15%;
    left: 7%;
  }

  .stage-caption {
    right: 6%;
    bottom: 10%;
  }

  .stage-caption small {
    display: none;
  }

  .player-login {
    margin-top: -45px;
    padding: 20px;
  }

  .staff-gate {
    padding-top: 45px;
  }

  .staff-gate h1 {
    font-size: clamp(54px, 17vw, 80px);
  }

  .card,
  .competition-zone {
    padding: 17px;
  }

  .profile-banner .toolbar {
    align-items: flex-start;
  }

  .profile-banner .price {
    text-align: left;
  }

  .split,
  .reward-row,
  .reward-selected-row {
    grid-template-columns: 1fr;
  }

  .realm-stats {
    grid-template-columns: 1fr;
  }

  .rank-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-tab {
    padding-inline: 6px;
    font-size: 11px;
  }

  .rank-row {
    grid-template-columns: 40px minmax(90px, 1fr) 88px;
    padding-inline: 8px;
  }

  .rank-name {
    font-size: 17px;
  }

  .rank-value {
    font-size: 13px;
  }

  .competition-zone::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .soul-particle-field,
  .scroll-cue {
    display: none;
  }
}
