.helix-rift-page {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 18px 14px 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(75, 221, 255, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 67, 132, 0.12), transparent 28%),
    radial-gradient(circle at center, rgba(99, 72, 255, 0.08), transparent 44%),
    linear-gradient(180deg, #03050a 0%, #07111d 44%, #04070d 100%);
}

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

.helix-rift-page::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 104px 104px;
  opacity: 0.14;
}

.helix-rift-page::after {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(1, 4, 8, 0.76) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.72;
}

.helix-rift-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(118, 227, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.94), rgba(2, 6, 14, 0.94));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 64px rgba(55, 177, 255, 0.08);
  backdrop-filter: blur(16px);
}

.helix-rift-kicker,
.helix-rift-overlay__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(136, 230, 255, 0.82);
}

.helix-rift-frame,
.helix-rift-brand,
.helix-rift-hud,
.helix-rift-score-card,
.helix-rift-chip,
.helix-rift-tipbar,
.helix-rift-subtle-panel,
.helix-rift-meta,
.helix-rift-meta-item {
  display: grid;
}

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

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

.helix-rift-brand,
.helix-rift-score-card,
.helix-rift-chip,
.helix-rift-tipbar,
.helix-rift-subtle-panel {
  border: 1px solid rgba(121, 230, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.94), rgba(5, 10, 20, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

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

.helix-rift-brand h1 {
  margin: 0;
  font-family: "space", sans-serif;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fbfdff;
  text-shadow:
    0 0 22px rgba(98, 244, 255, 0.28),
    0 0 42px rgba(255, 74, 136, 0.18);
}

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

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

.helix-rift-score-card {
  gap: 8px;
}

.helix-rift-score-card span,
.helix-rift-chip span,
.helix-rift-meta-item span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(158, 214, 229, 0.68);
}

.helix-rift-score-card strong {
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  color: #67f5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-shadow: 0 0 18px rgba(103, 245, 255, 0.34);
}

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

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

.helix-rift-chip strong {
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  color: #f8feff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.helix-rift-stage-sidebar strong,
.helix-rift-meta-item strong {
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  color: #f8feff;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.helix-rift-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  touch-action: none;
  border: 1px solid rgba(110, 226, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(0, 212, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.94), rgba(2, 5, 10, 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-rift-stage-topbar,
.helix-rift-stage-bottombar {
  position: absolute;
  left: 140px;
  right: 140px;
  z-index: 2;
  display: grid;
  padding: 12px;
  border: 1px solid rgba(121, 230, 255, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 15, 27, 0.9), rgba(4, 9, 18, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.helix-rift-stage-topbar {
  top: 16px;
}

.helix-rift-stage-bottombar {
  bottom: 16px;
}

.helix-rift-stage-sidebar {
  position: absolute;
  top: 16px;
  bottom: 16px;
  z-index: 2;
  width: 110px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  align-content: start;
  justify-items: center;
  padding: 14px 10px;
  border: 1px solid rgba(121, 230, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 15, 27, 0.92), rgba(4, 9, 18, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.helix-rift-stage-sidebar--left {
  left: 16px;
}

.helix-rift-stage-sidebar--right {
  right: 16px;
}

.helix-rift-stage-sidebar span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(158, 214, 229, 0.72);
}

.helix-rift-stage-sidebar__item {
  display: grid;
  width: 100%;
  gap: 8px;
  justify-items: center;
}

.helix-rift-stage-sidebar strong {
  width: 100%;
  font-family: arcadeclassicregular, "Arcade", sans-serif;
  color: #f8feff;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
}

.helix-rift-heat-stack {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.helix-rift-tipbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 16px;
  align-items: center;
  color: rgba(214, 238, 248, 0.8);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.helix-rift-tipbar span {
  display: block;
}

#helix-rift-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.helix-rift-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(6, 15, 29, 0.72), rgba(3, 5, 12, 0.94)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42));
}

.helix-rift-overlay[hidden] {
  display: none;
}

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

.helix-rift-overlay p {
  max-width: 420px;
  margin: 0;
  color: rgba(216, 235, 246, 0.82);
  line-height: 1.5;
}

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

.helix-rift-start,
.helix-rift-controls-group button,
.helix-rift-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(121, 230, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 17, 30, 0.96), rgba(5, 10, 20, 0.9));
  color: #f8fdff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.helix-rift-start:hover,
.helix-rift-controls-group button:hover,
.helix-rift-link:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 230, 255, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(72, 223, 255, 0.1);
}

.helix-rift-controls-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.helix-rift-heat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(182, 227, 240, 0.82);
}

.helix-rift-heat-meter {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(124, 220, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 15, 27, 0.98), rgba(4, 8, 16, 1));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}

.helix-rift-heat-meter--vertical {
  width: 14px;
  height: min(180px, 100%);
  min-height: 120px;
}

.helix-rift-heat-meter__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #58f7ff 0%, #7df896 48%, #ffd86d 76%, #ff7464 100%);
  box-shadow:
    0 0 18px rgba(88, 247, 255, 0.24),
    0 0 28px rgba(255, 116, 100, 0.12);
  transition: width 120ms linear, box-shadow 120ms linear, filter 120ms linear;
}

.helix-rift-heat-meter--vertical .helix-rift-heat-meter__fill {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 0%;
  transition: height 120ms linear, box-shadow 120ms linear, filter 120ms linear;
}

.helix-rift-subtle-panel {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

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

.helix-rift-meta-item {
  gap: 6px;
  justify-items: center;
  min-width: 0;
}

.helix-rift-mini-guide {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(195, 224, 237, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .helix-rift-topbar,
  .helix-rift-hud,
  .helix-rift-tipbar,
  .helix-rift-subtle-panel {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .helix-rift-stage-topbar,
  .helix-rift-stage-bottombar {
    left: 108px;
    right: 108px;
    padding: 10px;
  }
}

@media (max-width: 860px) {
  .helix-rift-shell {
    padding: 14px;
  }

  .helix-rift-hud-cluster,
  .helix-rift-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .helix-rift-tipbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .helix-rift-score-card strong {
    font-size: 34px;
  }

  .helix-rift-stage-sidebar {
    top: 12px;
    bottom: 12px;
    width: 88px;
    padding: 12px 8px;
  }

  .helix-rift-stage-sidebar--left {
    left: 12px;
  }

  .helix-rift-stage-sidebar--right {
    right: 12px;
  }

  .helix-rift-stage-sidebar strong {
    font-size: 13px;
  }

  .helix-rift-heat-meter--vertical {
    min-height: 96px;
  }

  .helix-rift-stage-topbar,
  .helix-rift-stage-bottombar {
    left: 108px;
    right: 108px;
    padding: 10px;
  }

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

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

  .helix-rift-shell,
  .helix-rift-brand,
  .helix-rift-score-card,
  .helix-rift-chip,
  .helix-rift-stage,
  .helix-rift-subtle-panel {
    border-radius: 20px;
  }

  .helix-rift-controls-group {
    width: 100%;
    justify-content: stretch;
  }

  .helix-rift-controls-group button,
  .helix-rift-link {
    flex: 1 1 0;
  }

  .helix-rift-overlay-hint,
  .helix-rift-mini-guide {
    font-size: 11px;
  }

  .helix-rift-stage-sidebar {
    top: auto;
    bottom: 10px;
    width: 64px;
    height: 176px;
  }

  .helix-rift-stage-sidebar--left {
    left: 10px;
  }

  .helix-rift-stage-sidebar--right {
    right: 10px;
  }

  .helix-rift-stage-topbar,
  .helix-rift-stage-bottombar {
    left: 82px;
    right: 82px;
    padding: 8px;
  }

  .helix-rift-stage-sidebar strong {
    font-size: 11px;
  }

  .helix-rift-stage-sidebar span,
  .helix-rift-heat-label {
    font-size: 9px;
  }

  .helix-rift-heat-meter--vertical {
    width: 12px;
    min-height: 82px;
  }

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

  .helix-rift-meta-item strong {
    font-size: 14px;
  }
}
