.helix-block-page {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 18px 14px 32px;
  overflow: hidden;
  --helix-bg: #04070d;
  --helix-panel: rgba(8, 13, 24, 0.88);
  --helix-panel-strong: rgba(11, 18, 33, 0.94);
  --helix-text: #f3fbff;
  --helix-muted: rgba(206, 232, 241, 0.76);
  --helix-cyan: #67efff;
  --helix-blue: #3a86ff;
  --helix-gold: #ffd166;
  --helix-hot: #ff5d8f;
  --helix-green: #74ffb4;
  background:
    radial-gradient(circle at top, rgba(103, 239, 255, 0.15), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(255, 93, 143, 0.14), transparent 24%),
    radial-gradient(circle at 20% 100%, rgba(58, 134, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #05070b 0%, #091121 46%, #04070d 100%);
}

.helix-block-page::before,
.helix-block-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.helix-block-page::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.helix-block-page::after {
  background:
    radial-gradient(circle at center, transparent 54%, rgba(1, 5, 10, 0.7) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.55;
}

.helix-block-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(103, 239, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.92), rgba(3, 6, 14, 0.94));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px rgba(58, 134, 255, 0.08);
  backdrop-filter: blur(18px);
}

.helix-block-kicker,
.helix-block-card-kicker,
.helix-stage-overlay .helix-block-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(123, 235, 255, 0.82);
}

.helix-block-frame,
.helix-block-brand,
.helix-block-hud,
.helix-hud-card,
.helix-hud-chip,
.helix-stage-card,
.helix-rail,
.helix-rail-item,
.helix-block-subtle-panel,
.helix-mini-stat,
.helix-meta-grid,
.helix-meta-row {
  display: grid;
}

.helix-block-frame {
  gap: 14px;
}

.helix-block-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.helix-block-brand,
.helix-stage-card,
.helix-hud-card,
.helix-hud-chip,
.helix-rail-item,
.helix-block-card {
  border: 1px solid rgba(116, 226, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 29, 0.92), rgba(6, 11, 21, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.helix-block-brand {
  gap: 8px;
  padding: 16px 20px;
}

.helix-block-brand h1 {
  margin: 0;
  font-family: "space", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
  color: var(--helix-text);
  text-shadow:
    0 0 18px rgba(103, 239, 255, 0.18),
    0 0 36px rgba(255, 93, 143, 0.14);
}

.helix-block-main {
  display: grid;
  gap: 14px;
}

.helix-block-hud {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
}

.helix-hud-card,
.helix-hud-chip {
  padding: 16px 18px;
}

.helix-hud-card {
  gap: 8px;
}

.helix-stage-card span,
.helix-hud-card span,
.helix-hud-chip span,
.helix-mini-stat span,
.helix-meta-row span,
.helix-rail-item span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(157, 214, 229, 0.76);
}

.helix-hud-card strong,
.helix-hud-chip strong {
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.helix-hud-card strong {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--helix-green);
  text-shadow: 0 0 16px rgba(116, 255, 180, 0.28);
}

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

.helix-hud-chip {
  gap: 8px;
}

.helix-hud-chip strong {
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--helix-text);
}

.helix-hud-chip--millix strong {
  color: var(--helix-cyan);
  text-shadow: 0 0 14px rgba(103, 239, 255, 0.22);
}

.helix-stage-shell {
  display: grid;
  grid-template-columns: 132px minmax(320px, 460px) 132px;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.helix-stage-side {
  display: grid;
}

.helix-stage-side--queue .helix-stage-card {
  align-content: start;
}

.helix-stage-card {
  padding: 14px;
  gap: 12px;
  justify-items: center;
}

.helix-stage-card canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(103, 239, 255, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(4, 9, 18, 0.94), rgba(3, 5, 11, 0.96));
  border: 1px solid rgba(116, 226, 255, 0.14);
}

.helix-stage {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(108, 225, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(0, 195, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(2, 7, 16, 0.94), rgba(2, 5, 11, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 72px rgba(0, 0, 0, 0.42);
}

.helix-stage canvas {
  display: block;
  width: min(100%, 460px);
  max-width: 460px;
  height: auto;
  aspect-ratio: 23 / 38;
  max-height: 76vh;
  margin: 0 auto;
  touch-action: none;
}

.helix-stage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(6, 15, 29, 0.66), rgba(3, 5, 12, 0.9)),
    linear-gradient(180deg, rgba(3, 8, 14, 0.2), rgba(4, 8, 14, 0.66));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.helix-stage-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.helix-stage-overlay h2 {
  margin: 0;
  font-family: "space", sans-serif;
  font-size: clamp(30px, 4.8vw, 48px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--helix-text);
}

.helix-stage-overlay p:last-of-type {
  max-width: 360px;
  margin: 0;
  color: rgba(219, 241, 248, 0.84);
}

.helix-stage-overlay__hint {
  color: rgba(164, 214, 231, 0.72);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.helix-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.helix-controls-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.helix-block-button,
.helix-link,
.helix-touch-button {
  border: 1px solid rgba(116, 226, 255, 0.18);
  border-radius: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.helix-block-button,
.helix-touch-button,
.helix-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: var(--helix-text);
  background: rgba(10, 18, 31, 0.88);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.helix-block-button:hover,
.helix-link:hover,
.helix-touch-button:hover,
.helix-block-button:focus-visible,
.helix-link:focus-visible,
.helix-touch-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 239, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(103, 239, 255, 0.18), 0 18px 34px rgba(0, 0, 0, 0.26);
}

.helix-block-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.helix-rail-item {
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(116, 226, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 29, 0.92), rgba(6, 11, 21, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.helix-rail-item strong,
.helix-mini-stat strong,
.helix-meta-row strong {
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  color: var(--helix-text);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.helix-touch-dock {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.helix-block-subtle-panel {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.helix-block-card {
  padding: 18px;
}

.helix-claim-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}

.helix-mini-stat,
.helix-meta-row {
  gap: 8px;
  border: 1px solid rgba(116, 226, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(8, 13, 24, 0.62);
}

.helix-mini-stat--claim strong {
  color: var(--helix-gold);
  font-size: clamp(24px, 2.8vw, 34px);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.22);
}

.helix-meta-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.helix-status-note,
.helix-help {
  margin: 0;
  color: var(--helix-muted);
  line-height: 1.6;
}

.helix-recaptcha {
  margin-top: 14px;
}

.helix-support-copy {
  display: grid;
  gap: 10px;
  color: var(--helix-muted);
  line-height: 1.55;
}

.helix-support-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

#helix-debug {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(116, 226, 255, 0.16);
  border-radius: 16px;
  background: rgba(4, 10, 20, 0.88);
  color: #9edff0;
  font: 12px/1.5 Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .helix-block-topbar,
  .helix-controls,
  .helix-block-subtle-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .helix-stage-shell {
    grid-template-columns: 1fr;
  }

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

  .helix-stage-side--queue {
    grid-template-columns: 1fr;
  }

  .helix-block-hud,
  .helix-hud-cluster,
  .helix-rail,
  .helix-claim-topline,
  .helix-touch-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .helix-block-page {
    padding: 10px 10px 24px;
  }

  .helix-block-shell {
    padding: 14px;
  }

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

  .helix-stage-overlay h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .helix-stage-overlay__hint {
    font-size: 10px;
  }
}
