:root {
  color-scheme: dark;
  --ink-950: #071114;
  --ink-900: #0b171a;
  --ink-850: #0f1d20;
  --ink-800: #142326;
  --ink-700: #29393d;
  --steel-500: #78888a;
  --steel-300: #aeb9b8;
  --paper-100: #d8d8d1;
  --paper-50: #eeeeea;
  --warning: #c7a234;
  --warning-bright: #e0c05a;
  --serum: #83a640;
  --serum-bright: #b0d060;
  --danger: #a93129;
  --line: rgb(216 216 209 / 18%);
  --line-strong: rgb(216 216 209 / 34%);
  --shadow: 0 24px 70px rgb(0 0 0 / 38%);
  --display: "DIN Condensed", "Arial Narrow", "Roboto Condensed", "PingFang SC", sans-serif;
  --body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-width: 1180px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgb(68 91 90 / 13%), transparent 30%),
    var(--ink-950);
  color: var(--paper-100);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button:not(:disabled),
select,
summary {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--warning);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2px solid var(--warning-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--warning);
  color: var(--ink-950);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.content-width {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.section {
  position: relative;
  padding: 116px 0;
  scroll-margin-top: 78px;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1440px, calc(100% - 80px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--warning);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: clamp(38px, 3.1vw, 58px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.section-description {
  max-width: 620px;
  margin: 0;
  color: var(--steel-300);
  font-size: 16px;
}

.section-index {
  margin: 0;
  color: rgb(216 216 209 / 38%);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reveal {
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 700ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.panel-cut {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 4%), transparent 32%),
    rgb(10 23 26 / 90%);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.panel-cut::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--warning);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--warning);
  background: var(--warning);
  color: #111712;
}

.button-primary:not(:disabled):hover {
  border-color: var(--warning-bright);
  background: var(--warning-bright);
}

.button-quiet {
  border-color: var(--line-strong);
  background: rgb(7 17 20 / 44%);
  color: var(--paper-100);
}

.button-quiet:not(:disabled):hover {
  border-color: var(--paper-100);
  background: rgb(216 216 209 / 8%);
}

.button:disabled {
  border-color: var(--line);
  background: rgb(216 216 209 / 5%);
  color: rgb(216 216 209 / 40%);
}

.button-full {
  width: 100%;
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 11px;
}

.text-action {
  display: inline-flex;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--warning);
  background: transparent;
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.text-action:not(:disabled):hover {
  color: var(--warning-bright);
}

.text-action:disabled {
  border-color: var(--line);
  color: rgb(216 216 209 / 42%);
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: #050b0d;
}

.hero-visual {
  position: absolute;
  z-index: -4;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center 48%;
  background-size: cover;
  filter: saturate(0.76) contrast(1.08) brightness(0.72);
  transform: scale(1.015);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 12 14 / 97%) 0%, rgb(5 12 14 / 84%) 29%, rgb(5 12 14 / 26%) 58%, rgb(5 12 14 / 15%) 100%),
    linear-gradient(180deg, rgb(5 12 14 / 80%) 0%, transparent 25%, transparent 62%, rgb(5 12 14 / 96%) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 95px, rgb(255 255 255 / 7%) 96px),
    repeating-linear-gradient(0deg, transparent 0, transparent 95px, rgb(255 255 255 / 5%) 96px);
  mask-image: linear-gradient(90deg, black, transparent 68%);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  left: 44px;
  top: 50%;
  width: 7px;
  height: 46%;
  transform: translateY(-50%);
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line);
}

.top-nav {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 72px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgb(5 12 14 / 76%);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-50);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  transform: skewX(-8deg);
}

.brand-copy {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.1;
}

.brand-copy b {
  color: var(--warning);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 40px);
}

.nav-links a {
  position: relative;
  padding: 26px 0 24px;
  color: rgb(216 216 209 / 70%);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--warning);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--paper-50);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.prototype-badge {
  padding: 5px 7px;
  border: 1px solid rgb(199 162 52 / 50%);
  color: var(--warning);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.language-select select,
.account-button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgb(7 17 20 / 70%);
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.language-select select {
  max-width: 132px;
  padding: 0 26px 0 10px;
}

.account-button {
  padding: 0 14px;
}

.account-button:hover {
  border-color: var(--warning);
  color: var(--warning-bright);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: calc(100% - 200px);
  align-items: center;
  padding-bottom: 30px;
}

.hero-copy {
  width: min(610px, 47vw);
  padding-left: 12px;
}

.phase-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--warning-bright);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.phase-signal span {
  width: 30px;
  height: 2px;
  background: var(--warning);
  box-shadow: 0 0 16px rgb(199 162 52 / 70%);
}

.hero-kicker {
  margin-bottom: 6px;
  color: var(--steel-300);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: clamp(58px, 5.1vw, 88px);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-shadow: 0 12px 36px rgb(0 0 0 / 64%);
}

.hero h1 span {
  display: block;
  margin-bottom: 12px;
  color: var(--warning);
  font-size: 0.37em;
  letter-spacing: 0.11em;
  line-height: 1;
}

.hero-summary {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgb(238 238 234 / 78%);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  max-width: 600px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: grid;
  gap: 5px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.hero-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta span {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-meta strong {
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.phase-rail {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 132px;
  padding: 22px 42px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(7 17 20 / 72%), rgb(7 17 20 / 96%));
  backdrop-filter: blur(14px);
}

.phase-track {
  position: relative;
  display: grid;
  width: min(1360px, 100%);
  height: 100%;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin-inline: auto;
  list-style: none;
}

.phase-tube {
  position: absolute;
  z-index: 0;
  top: 16px;
  right: 7.8%;
  left: 7.8%;
  height: 36px;
}

.tube-glass {
  position: absolute;
  top: 4px;
  right: 0;
  bottom: 4px;
  left: 26px;
  overflow: hidden;
  border: 1px solid rgb(216 216 209 / 50%);
  border-radius: 3px 18px 18px 3px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 12%), transparent 38%, rgb(0 0 0 / 20%)),
    rgb(10 24 27 / 76%);
  box-shadow:
    inset 0 0 12px rgb(0 0 0 / 56%),
    0 0 18px rgb(0 0 0 / 30%);
}

.tube-cap {
  position: absolute;
  z-index: 3;
  top: -2px;
  left: 0;
  width: 34px;
  height: 40px;
  border: 1px solid rgb(216 216 209 / 62%);
  border-radius: 42% 16% 16% 42%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 12%), transparent 35%, rgb(0 0 0 / 32%)),
    #17272a;
  box-shadow: inset 5px 0 7px rgb(255 255 255 / 8%), 4px 0 12px rgb(0 0 0 / 45%);
}

.tube-cap::before,
.tube-cap::after,
.tube-cap i,
.tube-cap b {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-right: 1px solid rgb(216 216 209 / 58%);
  border-left: 1px solid rgb(0 0 0 / 54%);
}

.tube-cap::before { left: 7px; }
.tube-cap::after { right: 6px; }
.tube-cap i { left: 12px; }
.tube-cap b { right: 11px; }

.tube-liquid {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(var(--phase-tube-progress) - 6px);
  overflow: hidden;
  border-radius: 2px 13px 13px 2px;
  background: linear-gradient(90deg, rgb(87 124 43 / 84%), var(--serum) 68%, var(--warning));
  box-shadow: 0 0 14px rgb(131 166 64 / 34%);
  transform-origin: left center;
  animation: tube-fill-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tube-liquid i {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 42px;
  border-radius: 50%;
  background: var(--warning-bright);
  opacity: 0.55;
  animation: tube-meniscus 3.8s ease-in-out infinite;
}

.tube-shine {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 16px;
  left: 6px;
  height: 5px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
}

.phase-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 16px 38px auto auto;
  justify-items: center;
  gap: 2px;
  color: rgb(216 216 209 / 48%);
  text-align: center;
}

.phase-index,
.phase-date {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.phase-dot {
  display: block;
  width: 2px;
  height: 24px;
  margin-top: 7px;
  border: 0;
  background: currentColor;
  box-shadow: 0 0 0 3px rgb(7 17 20 / 62%);
}

.phase-label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.phase-complete {
  color: var(--steel-300);
}

.phase-complete .phase-dot {
  background: var(--serum);
}

.phase-current {
  color: var(--warning-bright);
}

.phase-current .phase-dot {
  width: 4px;
  background: var(--warning-bright);
  box-shadow: 0 0 16px rgb(199 162 52 / 66%);
}

@keyframes tube-fill-in {
  from { transform: scaleX(0.02); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes tube-meniscus {
  0%, 100% { transform: translateX(-1px) scaleY(1); }
  50% { transform: translateX(2px) scaleY(0.88); }
}

/* Campaign control */

.section-control {
  background:
    radial-gradient(circle at 52% 38%, rgb(131 166 64 / 10%), transparent 26%),
    linear-gradient(180deg, #081316, #0a1719);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.35fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 16px;
}

.enrollment-panel,
.personal-panel,
.serum-model-panel {
  min-height: 440px;
  padding: 26px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.status-text {
  color: rgb(216 216 209 / 48%);
  letter-spacing: 0.03em;
}

.status-text.is-ready {
  color: var(--serum-bright);
}

.enrollment-panel h3,
.personal-panel h3,
.serum-model-panel h3,
.purge-panel h3 {
  margin-bottom: 12px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.05;
}

.panel-lead {
  min-height: 48px;
  margin-bottom: 26px;
  color: var(--steel-300);
  font-size: 13px;
}

.entry-steps {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.entry-steps li {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: rgb(216 216 209 / 48%);
  font-size: 13px;
}

.entry-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-steps span {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
}

.entry-steps .is-current {
  color: var(--warning-bright);
}

.entry-steps .is-current span {
  color: var(--warning);
}

.entry-steps .is-complete {
  color: var(--paper-100);
}

.entry-steps .is-complete span {
  color: var(--serum-bright);
}

.microcopy,
.data-note {
  margin: 12px 0 0;
  color: var(--steel-500);
  font-size: 11px;
  line-height: 1.5;
}

.purge-panel {
  min-height: 440px;
  padding: 26px 30px 22px;
}

.serum-model-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgb(37 113 137 / 20%), transparent 28%),
    linear-gradient(135deg, rgb(255 255 255 / 4%), transparent 32%),
    rgb(8 20 23 / 94%);
}

.serum-model-heading {
  position: relative;
  z-index: 2;
}

.serum-model-stage {
  position: relative;
  display: grid;
  min-height: 335px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgb(216 216 209 / 9%);
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 3%) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0, transparent 66px, rgb(255 255 255 / 2%) 67px);
}

.serum-model-stage::before {
  content: "";
  position: absolute;
  right: 15%;
  bottom: 23px;
  left: 15%;
  height: 26px;
  border-radius: 50%;
  background: rgb(44 124 151 / 26%);
  filter: blur(15px);
}

.serum-model-stage img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 326px;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgb(0 0 0 / 56%));
}

.serum-model-readout {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-left: 2px solid #2f89a7;
  background: rgb(5 15 18 / 84%);
  backdrop-filter: blur(8px);
}

.serum-model-readout span {
  color: #78b9ca;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.serum-model-readout strong {
  color: var(--paper-50);
  font-size: 13px;
  text-align: right;
}

.purge-panel-compact {
  padding-inline: 24px;
}

.purge-panel-compact .purge-heading {
  gap: 12px;
}

.purge-panel-compact .data-stamp {
  flex: 0 0 auto;
}

.purge-panel-compact .purge-core {
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  min-height: 330px;
  padding: 2px 0 0;
}

.purge-panel-compact .droplet-visual {
  width: 132px;
}

.purge-panel-compact .purge-data > strong {
  font-size: 48px;
}

.purge-panel-compact .purge-rule {
  margin-top: 16px;
  padding-left: 12px;
}

.personal-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -6px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.personal-profile img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid rgb(199 162 52 / 62%);
  object-fit: cover;
}

.personal-profile div {
  display: grid;
  min-width: 0;
}

.personal-profile span {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.personal-profile strong {
  overflow: hidden;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-panel-ranked .personal-stat {
  padding-block: 16px;
}

.purge-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.purge-heading h3 {
  margin-bottom: 0;
}

.data-stamp {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.purge-core {
  display: grid;
  grid-template-columns: 205px 1fr;
  align-items: center;
  gap: 30px;
  min-height: 290px;
  padding: 8px 12px 2px 20px;
}

.droplet-visual {
  display: grid;
  width: 200px;
  justify-items: center;
  justify-self: center;
  padding-top: 2px;
}

.purge-droplet {
  position: relative;
  isolation: isolate;
  width: 132px;
  height: 198px;
  margin: 7px 0 20px;
  overflow: hidden;
  border: 0;
  background: rgb(216 216 209 / 68%);
  clip-path: polygon(
    50% 0%, 59% 15%, 70% 30%, 81% 44%, 90% 58%, 95% 70%,
    94% 81%, 88% 90%, 78% 96%, 65% 99%, 50% 100%, 35% 99%,
    22% 96%, 12% 90%, 6% 81%, 5% 70%, 10% 58%, 19% 44%,
    30% 30%, 41% 15%
  );
  box-shadow:
    0 20px 42px rgb(0 0 0 / 45%);
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 46%));
  transform-origin: center bottom;
  animation: droplet-breathe 5.2s ease-in-out infinite;
}

.purge-droplet::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px;
  background:
    radial-gradient(circle at 38% 30%, rgb(255 255 255 / 8%), transparent 24%),
    rgb(3 10 12 / 92%);
  clip-path: inherit;
}

.droplet-liquid-stage {
  position: absolute;
  z-index: 1;
  inset: 3px;
  overflow: hidden;
  clip-path: inherit;
}

.droplet-liquid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--serum-level);
  overflow: visible;
  background:
    radial-gradient(circle at 32% 26%, rgb(194 224 106 / 25%), transparent 28%),
    linear-gradient(90deg, rgb(71 100 35 / 92%), rgb(145 177 67 / 94%) 45%, rgb(83 121 42 / 92%)),
    var(--serum);
  box-shadow:
    inset 10px 0 20px rgb(0 0 0 / 24%),
    0 -4px 24px rgb(131 166 64 / 32%);
  transform-origin: center bottom;
  animation: droplet-fill-in 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.droplet-liquid::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -8%;
  width: 116%;
  height: 18px;
  border: 1px solid rgb(203 232 117 / 50%);
  border-radius: 50%;
  background: #9cbc55;
  box-shadow: 0 0 22px rgb(145 180 73 / 55%);
  animation: droplet-surface 2.8s ease-in-out infinite;
}

.droplet-liquid::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -12%;
  width: 124%;
  height: 11px;
  border-radius: 50%;
  background: rgb(209 235 126 / 24%);
  animation: droplet-surface-secondary 3.4s ease-in-out -1.2s infinite;
}

.droplet-liquid span {
  position: absolute;
  top: 38%;
  right: 29%;
  width: 9px;
  height: 9px;
  border: 1px solid rgb(232 244 188 / 52%);
  border-radius: 50%;
  box-shadow: -34px 54px 0 -2px rgb(232 244 188 / 32%), 17px 88px 0 -3px rgb(232 244 188 / 34%);
  animation: bubble-rise 5.6s ease-in infinite;
}

.droplet-liquid span::before,
.droplet-liquid span::after {
  content: "";
  position: absolute;
  border: 1px solid rgb(232 244 188 / 38%);
  border-radius: 50%;
  animation: bubble-drift 4.8s ease-in -1.8s infinite;
}

.droplet-liquid span::before {
  width: 5px;
  height: 5px;
  transform: translate(-45px, 82px);
}

.droplet-liquid span::after {
  width: 7px;
  height: 7px;
  transform: translate(12px, 58px);
  animation-delay: -3.1s;
}

.droplet-glare {
  position: absolute;
  z-index: 2;
  top: 43px;
  left: 25px;
  width: 14px;
  height: 88px;
  border-radius: 55%;
  background: linear-gradient(180deg, rgb(255 255 255 / 32%), transparent 78%);
  filter: blur(3px);
  transform: rotate(4deg);
  animation: droplet-glare-scan 4.8s ease-in-out infinite;
}

.droplet-value {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  width: 118px;
  align-items: baseline;
  justify-content: center;
  color: var(--paper-50);
  font-family: var(--display);
  font-weight: 900;
  text-shadow: 0 2px 8px #000;
  transform: translate(-50%, -50%);
}

.droplet-value strong {
  font-size: 34px;
  line-height: 1;
}

.droplet-value span {
  margin-left: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.droplet-mini-meter {
  position: relative;
  width: 150px;
  height: 10px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgb(216 216 209 / 56%);
  border-radius: 999px;
  background: rgb(4 11 13 / 80%);
  box-shadow: inset 0 0 7px rgb(0 0 0 / 65%);
}

.droplet-mini-meter > span {
  position: relative;
  display: block;
  width: var(--meter-level);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--serum), var(--warning));
  transform-origin: left center;
  animation: mini-meter-fill 1.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.droplet-mini-meter i {
  position: absolute;
  top: -4px;
  right: -3px;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: var(--warning-bright);
  opacity: 0.74;
}

.purge-data > p {
  margin-bottom: 2px;
  color: var(--steel-300);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.purge-data > strong {
  display: block;
  margin-bottom: -2px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: clamp(46px, 4vw, 72px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.purge-data > span {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.purge-rule {
  max-width: 360px;
  margin-top: 20px;
  padding: 13px 0 0 15px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--serum);
}

.purge-rule b {
  color: var(--serum-bright);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.purge-rule p {
  margin: 5px 0 0;
  color: var(--steel-300);
  font-size: 11px;
}

.personal-stat {
  display: grid;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.personal-stat:nth-of-type(2) {
  border-bottom: 1px solid var(--line);
}

.personal-stat span {
  color: var(--steel-300);
  font-size: 12px;
}

.personal-stat strong {
  margin: 4px 0;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.personal-stat small {
  color: var(--steel-500);
  font-size: 12px;
}

.personal-panel .text-action {
  margin-top: 24px;
}

@keyframes droplet-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(0.985, 1.012);
  }
}

@keyframes droplet-fill-in {
  from { transform: translateY(10px) scaleY(0.05); }
  to { transform: translateY(0) scaleY(1); }
}

@keyframes droplet-surface {
  0%, 100% { transform: translateX(-3%) rotate(-2deg) scaleX(1.04); }
  50% { transform: translateX(3%) rotate(2.4deg) scaleX(0.96); }
}

@keyframes droplet-surface-secondary {
  0%, 100% { transform: translateX(4%) rotate(1.5deg) scaleX(0.96); }
  50% { transform: translateX(-4%) rotate(-2deg) scaleX(1.04); }
}

@keyframes droplet-glare-scan {
  0%, 100% { opacity: 0.42; transform: translateY(0) rotate(4deg); }
  50% { opacity: 0.8; transform: translateY(10px) rotate(1deg); }
}

@keyframes mini-meter-fill {
  from { transform: scaleX(0.03); opacity: 0.45; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes bubble-rise {
  0% { transform: translateY(88px); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translate(-8px, -96px); opacity: 0; }
}

@keyframes bubble-drift {
  0% { opacity: 0; }
  28% { opacity: 0.72; }
  100% { opacity: 0; transform: translate(-10px, -58px); }
}

/* Factions */

.section-factions {
  background:
    linear-gradient(180deg, rgb(7 17 20 / 92%), rgb(9 20 22 / 98%)),
    var(--ink-950);
}

.section-factions::after {
  content: "05";
  position: absolute;
  top: 68px;
  right: 3vw;
  color: rgb(216 216 209 / 3%);
  font-family: var(--display);
  font-size: 260px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.faction-rail {
  position: relative;
  z-index: 1;
  display: flex;
  height: 430px;
  gap: 8px;
}

.faction-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d191c;
  transition:
    flex-grow 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    filter 240ms ease;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
}

.faction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(180deg, rgb(6 15 17 / 44%), rgb(6 15 17 / 96%)),
    var(--faction-image);
  background-position: 18% center;
  background-size: auto 100%;
  filter: grayscale(0.5) saturate(0.65) contrast(1.05);
  transition: opacity 320ms ease, filter 320ms ease;
}

.faction-card:nth-child(2)::before { background-position: 34% center; }
.faction-card:nth-child(3)::before { background-position: 51% center; }
.faction-card:nth-child(4)::before { background-position: 70% center; }
.faction-card:nth-child(5)::before { background-position: 86% center; }

.faction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--faction-accent) 12%, transparent), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0, transparent 47px, rgb(255 255 255 / 3%) 48px);
  pointer-events: none;
}

.faction-card:hover,
.faction-card:focus-within,
.faction-card.is-preview,
.faction-card.is-active {
  border-color: color-mix(in srgb, var(--faction-accent) 60%, transparent);
}

.faction-card.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--faction-accent) 16%, transparent);
}

.faction-card.is-preview {
  flex-grow: 2.8;
}

.faction-card.is-preview::before {
  opacity: 0.2;
  filter: grayscale(0.25) saturate(0.85) contrast(1.08);
}

.faction-operator-visual {
  position: absolute;
  z-index: 1;
  inset: 72px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.operator-captain,
.operator-squad {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: saturate(0.82) contrast(1.08);
  transform-origin: center bottom;
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.operator-captain {
  background-image: var(--captain-image);
  background-position: center bottom 5px;
  background-size: auto 98%;
  opacity: 0.82;
  transform: translateY(8px) scale(1.02);
}

.operator-squad {
  background-image: var(--squad-image);
  background-position: center top 8px;
  background-size: 96% auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: brightness(1.3) saturate(0.9) contrast(1.04);
}

.faction-card.is-preview .operator-captain {
  opacity: 0;
  transform: translateY(16px) scale(1.09);
}

.faction-card.is-preview .operator-squad {
  opacity: 0.96;
  transform: translateY(0) scale(1);
}

.faction-trigger {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgb(7 17 20 / 72%);
  color: var(--paper-100);
  text-align: left;
}

.faction-trigger:hover {
  background: rgb(7 17 20 / 76%);
}

.faction-index {
  color: var(--faction-accent);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.faction-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.faction-identity b {
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
}

.faction-identity small {
  overflow: hidden;
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locked-label {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid var(--serum);
  color: var(--serum-bright);
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.faction-body {
  position: relative;
  z-index: 3;
  display: flex;
  height: calc(100% - 82px);
  flex-direction: column;
  justify-content: flex-end;
  padding: 132px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgb(7 17 20 / 8%) 32%, rgb(7 17 20 / 58%) 58%, rgb(7 17 20 / 97%) 76%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 220ms ease 100ms,
    transform 320ms ease 80ms,
    visibility 0ms linear 220ms;
}

.faction-card.is-preview .faction-body {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 100ms;
}

.squad-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.squad-roster li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgb(216 216 209 / 14%);
  background: rgb(7 17 20 / 72%);
}

.squad-roster img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid color-mix(in srgb, var(--faction-accent) 72%, transparent);
  object-fit: cover;
}

.squad-roster span {
  overflow: hidden;
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faction-body > p {
  max-width: 430px;
  margin-bottom: 12px;
  color: var(--steel-300);
  font-size: 13px;
}

.faction-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faction-stats div {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-left: 1px solid var(--line);
}

.faction-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.faction-stats div:last-child {
  padding-right: 0;
}

.faction-stats span {
  color: var(--steel-500);
  font-size: 11px;
}

.faction-stats strong {
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 23px;
}

.faction-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
}

.faction-footer > span {
  overflow: hidden;
  color: var(--faction-accent);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faction-bar {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--faction-accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 450ms ease;
}

.faction-card.is-active .faction-bar,
.faction-card.is-preview .faction-bar {
  transform: scaleX(1);
}

.asset-notice {
  margin: 14px 0 0;
  color: var(--steel-500);
  font-size: 12px;
  text-align: right;
}

/* Leaderboard */

.section-leaderboard {
  background:
    linear-gradient(180deg, rgb(8 19 21 / 97%), rgb(5 14 16 / 98%)),
    var(--ink-950);
}

.report-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--steel-300);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.report-button:hover {
  border-color: var(--warning);
  color: var(--warning);
}

.leaderboard-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgb(12 27 29 / 72%);
}

.leaderboard-switcher button {
  min-width: 120px;
  min-height: 48px;
  flex: 1 1 0;
  padding: 0 18px;
  background: transparent;
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.leaderboard-switcher button:hover {
  color: var(--paper-50);
  transform: translateY(-1px);
}

.leaderboard-switcher button[aria-pressed="true"] {
  background: var(--warning);
  color: var(--ink-950);
}

.leaderboard-switcher > span {
  margin-left: auto;
  padding-right: 8px;
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(330px, 0.85fr);
  gap: 12px;
}

.table-panel,
.top-five-panel {
  border: 1px solid var(--line);
  background: rgb(11 25 27 / 82%);
}

.table-title {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.table-title span,
.top-five-heading > span {
  color: var(--warning);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.table-title h3,
.top-five-heading h3 {
  margin: 3px 0 0;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
}

.faction-total {
  display: grid;
  justify-items: end;
}

.faction-total strong {
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.droplet-value,
.purge-data > strong,
.personal-stat strong,
.faction-total strong,
.top-five-list strong,
.boost-row b,
.reward-value {
  font-variant-numeric: tabular-nums;
}

th,
td {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgb(216 216 209 / 9%);
  text-align: left;
  white-space: nowrap;
}

th {
  height: 44px;
  background: rgb(255 255 255 / 2%);
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

td {
  color: var(--steel-300);
  font-family: var(--display);
  font-size: 14px;
}

tbody tr:hover {
  background: rgb(216 216 209 / 3.5%);
}

td b {
  color: var(--paper-100);
  font-size: 15px;
}

.rank-number {
  color: var(--warning);
  font-weight: 900;
}

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

.creator-cell > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.creator-cell small {
  color: var(--steel-500);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.creator-avatar,
.top-creator-avatar {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  object-fit: cover;
}

.creator-avatar {
  border-color: rgb(199 162 52 / 58%);
}

.leaderboard-pagination {
  display: grid;
  min-height: 62px;
  grid-template-columns: 112px 1fr 112px;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  background: rgb(4 12 14 / 48%);
}

.leaderboard-pagination button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.leaderboard-pagination button:not(:disabled):hover {
  border-color: var(--warning);
  color: var(--warning-bright);
}

.leaderboard-pagination button:disabled {
  opacity: 0.28;
}

.leaderboard-pagination p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 12px;
}

.leaderboard-pagination strong {
  color: var(--paper-50);
  font-size: 20px;
}

.top-five-panel {
  padding: 20px;
}

.top-five-heading {
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.top-five-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-five-list li {
  display: grid;
  min-height: 66px;
  grid-template-columns: 30px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 1.5%);
}

.top-five-list li.is-first {
  min-height: 80px;
  border-left: 2px solid var(--warning);
  background: linear-gradient(90deg, rgb(199 162 52 / 14%), transparent);
}

.top-rank {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
}

.is-first .top-rank {
  color: var(--warning-bright);
  font-size: 18px;
}

.top-five-list li div {
  display: grid;
  min-width: 0;
}

.top-five-list b {
  overflow: hidden;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-five-list small {
  color: var(--steel-500);
  font-size: 11px;
}

.top-five-list li > strong {
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 14px;
}

.tie-rule {
  margin: 15px 0 0;
  color: var(--steel-500);
  font-size: 12px;
  line-height: 1.6;
}

/* Live */

.section-live {
  background: #071114;
}

.live-stage {
  position: relative;
  display: grid;
  min-height: 500px;
  grid-template-columns: 7fr 5fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #071114;
  box-shadow: var(--shadow);
}

.live-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgb(5 12 14 / 88%) 0%, rgb(5 12 14 / 32%) 55%, rgb(5 12 14 / 86%) 100%),
    linear-gradient(180deg, rgb(5 12 14 / 36%), rgb(5 12 14 / 86%)),
    var(--live-image);
  background-position: center;
  background-size: cover;
  filter: saturate(0.7) contrast(1.1) brightness(0.78);
}

.live-stage::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warning) 0 12%, transparent 12% 100%);
}

.live-stage.is-live::after {
  background: linear-gradient(90deg, var(--danger) 0 12%, transparent 12% 100%);
}

.live-main,
.live-side {
  position: relative;
  z-index: 1;
}

.live-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 54px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.live-status span {
  width: 8px;
  height: 8px;
  background: var(--warning);
  box-shadow: 0 0 14px rgb(199 162 52 / 58%);
}

.live-stage.is-live .live-status span {
  background: var(--danger);
  box-shadow: 0 0 14px rgb(169 49 41 / 60%);
}

.live-main h3 {
  margin-bottom: 8px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: clamp(54px, 5vw, 82px);
  line-height: 0.9;
}

.live-main > p:not(.live-status) {
  max-width: 520px;
  margin-bottom: 25px;
  color: rgb(238 238 234 / 74%);
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 20px 6px 7px;
  border: 1px solid var(--line-strong);
  background: rgb(7 17 20 / 76%);
  color: var(--paper-50);
}

.watch-button:not(:disabled):hover {
  border-color: var(--danger);
}

.watch-button:disabled {
  color: rgb(216 216 209 / 48%);
}

.play-symbol {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--danger);
  border-radius: 50%;
}

.play-symbol::before {
  content: "";
  display: block;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--paper-50);
}

.watch-button b {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.live-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--line-strong);
  background: rgb(5 13 15 / 70%);
  backdrop-filter: blur(11px);
}

.live-side article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 42px;
}

.live-side article + article {
  border-top: 1px solid var(--line-strong);
}

.live-card-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgb(216 216 209 / 18%);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 900;
}

.live-side h4 {
  margin-bottom: 16px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
}

.live-side article > p:not(.eyebrow) {
  margin-bottom: 17px;
  color: var(--steel-300);
  font-size: 12px;
}

.boost-row {
  display: grid;
  grid-template-columns: 30px 40px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.boost-row span,
.boost-row small {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
}

.boost-row b {
  color: var(--warning);
  font-family: var(--display);
  font-size: 18px;
}

/* Rewards */

.section-rewards {
  background:
    radial-gradient(circle at 19% 50%, rgb(131 166 64 / 10%), transparent 22%),
    linear-gradient(180deg, #0a1719, #081214);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.reward-featured {
  display: grid;
  min-height: 470px;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 28px;
  padding: 44px;
  background:
    radial-gradient(circle at 25% 50%, rgb(131 166 64 / 19%), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0, transparent 71px, rgb(255 255 255 / 3%) 72px),
    #0c1b1d;
}

.reward-lock {
  position: relative;
  display: grid;
  width: 230px;
  height: 300px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgb(216 216 209 / 42%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 8%), transparent 45%),
    rgb(7 18 20 / 90%);
  clip-path: polygon(18% 0, 82% 0, 100% 16%, 100% 84%, 82% 100%, 18% 100%, 0 84%, 0 16%);
  box-shadow: inset 0 0 50px rgb(131 166 64 / 14%);
}

.reward-lock::before,
.reward-lock::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  clip-path: inherit;
}

.reward-lock::after {
  inset: 45px;
  border-color: rgb(131 166 64 / 42%);
  box-shadow: inset 0 0 32px rgb(131 166 64 / 12%);
}

.reward-lock span {
  position: relative;
  z-index: 2;
  color: var(--serum-bright);
  font-family: var(--display);
  font-size: 70px;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 0 30px rgb(131 166 64 / 34%);
}

.reward-lock i {
  position: absolute;
  z-index: 3;
  right: 40px;
  bottom: 40px;
  left: 40px;
  height: 3px;
  background: var(--serum);
  box-shadow: 0 0 14px rgb(131 166 64 / 60%);
}

.reward-feature-copy h3 {
  margin-bottom: 14px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1;
}

.reward-feature-copy h3 span {
  white-space: nowrap;
}

.reward-feature-copy > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--steel-300);
  font-size: 13px;
}

.reward-progress-line {
  height: 6px;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 24%);
}

.reward-progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--serum), var(--warning));
  box-shadow: 0 0 12px rgb(131 166 64 / 32%);
}

.reward-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.reward-progress-copy strong {
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 24px;
}

.reward-progress-copy span {
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.reward-value {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border: 1px solid rgb(131 166 64 / 50%);
  color: var(--serum-bright);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
}

.reward-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reward-item {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 4%), transparent 42%),
    rgb(12 26 28 / 84%);
}

.reward-number {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgb(216 216 209 / 12%);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
}

.reward-item h3 {
  max-width: 210px;
  margin-bottom: 10px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.05;
}

.reward-item div > p:not(.eyebrow) {
  max-width: 240px;
  margin: 0;
  color: var(--steel-300);
  font-size: 11px;
}

.reward-item > strong {
  color: var(--warning);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Rules and footer */

.section-rules {
  background: #071114;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.72fr);
  gap: 16px;
}

.rules-accordion {
  border-top: 1px solid var(--line-strong);
}

.rules-accordion details {
  border-bottom: 1px solid var(--line-strong);
}

.rules-accordion summary {
  position: relative;
  display: grid;
  min-height: 72px;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  padding: 0 18px 0 0;
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.rules-accordion summary::-webkit-details-marker {
  display: none;
}

.rules-accordion summary::after {
  content: "+";
  color: var(--warning);
  font-size: 22px;
  font-weight: 400;
}

.rules-accordion details[open] summary::after {
  content: "−";
}

.rules-accordion summary span {
  color: var(--steel-500);
  font-size: 12px;
}

.rules-accordion details[open] summary {
  color: var(--warning-bright);
}

.rules-accordion details p {
  max-width: 860px;
  margin: -4px 0 0 44px;
  padding: 0 42px 26px 0;
  color: var(--steel-300);
  font-size: 13px;
}

.rules-aside {
  padding: 30px;
}

.rules-aside h3 {
  margin-bottom: 12px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 28px;
}

.rules-aside > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--steel-300);
  font-size: 12px;
}

.rules-aside .text-action {
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050c0e;
}

.footer-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-inner p {
  margin: 0;
  color: var(--steel-500);
  font-size: 12px;
  text-align: center;
}

.footer-reset {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--steel-500);
  font-size: 12px;
}

.footer-reset:hover {
  border-color: var(--warning);
  color: var(--warning);
}

/* Dialog and toast */

.action-dialog {
  width: min(520px, calc(100vw - 48px));
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 5%), transparent 40%),
    #0a1719;
  color: var(--paper-100);
  box-shadow: 0 40px 120px rgb(0 0 0 / 70%);
  overscroll-behavior: contain;
}

.action-dialog::backdrop {
  background: rgb(2 7 8 / 78%);
  backdrop-filter: blur(7px);
}

.action-dialog h2 {
  margin-bottom: 14px;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.action-dialog > p:not(.eyebrow):not(.dialog-note) {
  color: var(--steel-300);
  font-size: 13px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--steel-300);
  font-size: 24px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--paper-50);
}

.dialog-checks {
  display: grid;
  margin: 24px 0 18px;
  border-top: 1px solid var(--line);
}

.dialog-checks span {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-100);
  font-size: 12px;
}

.dialog-checks b {
  color: var(--warning);
  font-family: var(--display);
  font-size: 12px;
}

.dialog-note {
  padding: 10px 12px;
  border-left: 2px solid var(--warning);
  background: rgb(199 162 52 / 8%);
  color: var(--steel-300);
  font-size: 11px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.dialog-faction {
  display: grid;
  min-height: 86px;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--faction-accent) 48%, transparent);
  background: color-mix(in srgb, var(--faction-accent) 7%, var(--ink-900));
}

.dialog-faction span {
  color: var(--faction-accent);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
}

.dialog-faction b {
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 22px;
}

.dialog-faction small {
  color: var(--steel-500);
  font-size: 11px;
}

.confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-300);
  font-size: 12px;
}

.confirm-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--warning);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  padding: 14px 18px;
  border: 1px solid var(--warning);
  background: rgb(8 20 22 / 96%);
  color: var(--paper-50);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 220ms ease-out;
}

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Desktop range tuning */

@media (max-width: 1500px) {
  .content-width {
    width: min(1320px, calc(100% - 64px));
  }

  .section::before {
    width: min(1320px, calc(100% - 64px));
  }

  .section {
    padding-block: 96px;
  }

  .section-heading {
    grid-template-columns: minmax(320px, 0.8fr) minmax(370px, 1fr) auto;
    gap: 34px;
  }

  .top-nav {
    gap: 20px;
    padding-inline: 28px;
  }

  .nav-links {
    gap: 20px;
  }

  .control-grid {
    grid-template-columns: minmax(285px, 0.92fr) minmax(400px, 1.35fr) minmax(330px, 1fr);
  }

  .purge-core {
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding-left: 8px;
  }

  .droplet-visual {
    width: 190px;
  }

  .purge-panel-compact .purge-core {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding-left: 0;
  }

  .purge-panel-compact .droplet-visual {
    width: 128px;
  }

  .purge-droplet {
    width: 122px;
    height: 184px;
  }

  .droplet-mini-meter {
    width: 140px;
  }

  .purge-data > strong {
    font-size: 52px;
  }

  .reward-featured {
    grid-template-columns: 0.75fr 1.25fr;
    padding: 34px;
  }

  .reward-lock {
    width: 190px;
    height: 260px;
  }
}

@media (max-width: 1320px) {
  .content-width {
    width: calc(100% - 56px);
  }

  .top-nav {
    padding-inline: 24px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .prototype-badge {
    display: none;
  }

  .hero-copy {
    width: 570px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .section-heading {
    grid-template-columns: 340px 1fr auto;
    gap: 26px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .enrollment-panel,
  .personal-panel,
  .serum-model-panel,
  .purge-panel {
    padding-inline: 22px;
  }

  .faction-rail {
    height: 410px;
  }

  .faction-card.is-preview {
    flex-grow: 3;
  }

  .faction-trigger {
    padding-inline: 15px;
  }

  .faction-body {
    padding-inline: 18px;
  }

  .leaderboard-grid {
    grid-template-columns: minmax(0, 2fr) 330px;
  }

  th,
  td {
    padding-inline: 13px;
  }

  .live-main {
    padding: 42px;
  }

  .live-side article {
    padding-inline: 32px;
  }

  .reward-featured {
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 28px;
  }

  .reward-lock {
    width: 160px;
    height: 230px;
  }

  .reward-item {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
