:root {
  --bg: #080d13;
  --panel: #101820;
  --mint: #a2ffd7;
  --cyan: #57e7ef;
  --pink: #ff4d91;
  --gold: #edff9b;
  --text: #edf4f3;
  --muted: #83949b;
  --line: rgba(179, 224, 218, 0.16);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
}
#app {
  position: relative;
  isolation: isolate;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.hidden {
  display: none !important;
}
.mono,
.eyebrow,
kbd,
.meter-row,
.shield-label,
.loadout {
  font-family: "Consolas", "SFMono-Regular", monospace;
}
.screen-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    #001415 4px
  );
}
.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
}
.menu-screen {
  padding: 32px 5.4vw 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    rgba(8, 13, 19, 0.98) 0%,
    rgba(8, 13, 19, 0.88) 35%,
    transparent 70%
  );
  overflow: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: calc(20px * var(--text-scale, 1));
}
.brand-symbol {
  color: var(--mint);
  font-size: 35px;
  line-height: 1;
}
.wordmark .mono {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 2px;
  font-weight: 400;
}
.wordmark-divider {
  font-size: calc(22px * var(--text-scale, 1));
  font-weight: 300;
  color: #47585f;
  margin: 0 10px;
}
.edition {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dim {
  color: #586b73;
  margin-left: 10px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.menu-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 32px 0;
}
.hero-copy {
  width: 490px;
  max-width: 50%;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 2px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-line {
  height: 1px;
  width: 28px;
  background: var(--mint);
}
h1 {
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-style: italic;
  font-size: clamp(80px, 9.7vw, 154px);
  font-weight: 950;
  line-height: 0.79;
  letter-spacing: -0.075em;
  margin: 33px 0 22px;
  position: relative;
  display: inline-block;
}
h1 span {
  color: var(--mint);
}
h1 sup {
  position: absolute;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: calc(16px * var(--text-scale, 1));
  right: -32px;
  top: 1px;
  letter-spacing: 0;
  color: var(--mint);
}
.edition-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.edition-title > span:first-child {
  font-size: calc(17px * var(--text-scale, 1));
  letter-spacing: 10px;
  font-weight: 300;
}
.outline-tag {
  border: 1px solid var(--line);
  padding: 5px 8px;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1.5px;
  color: var(--mint);
}
.hero-description {
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.8;
  color: #91a4aa;
  margin: 24px 0;
}
.mode-picker {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 24px;
}
.mode {
  border: 0;
  background: none;
  text-align: left;
  padding: 0 0 13px;
  color: #71878f;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
  position: relative;
  font-weight: 700;
}
.mode span {
  display: block;
  margin-top: 6px;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 0;
  font-weight: 400;
}
.mode.active {
  color: var(--text);
}
.mode.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
}
.primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #071710;
  padding: 18px 22px;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 2px;
  font-weight: 800;
  transition:
    background 0.2s,
    transform 0.2s;
  min-height: 56px;
}
.primary-btn > span {
  font-size: 23px;
  line-height: 14px;
}
.primary-btn:hover {
  background: #d0ffeb;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px #a2ffd71c;
}
.start-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
  color: #81979d;
}
.start-meta b {
  color: var(--gold);
  font-weight: 400;
  margin-left: 7px;
}
kbd {
  font-size: calc(12px * var(--text-scale, 1));
  padding: 3px 5px;
  border: 1px solid #a2b7bc35;
  border-radius: 3px;
  color: #a3b9bf;
  margin-right: 6px;
}
.hero-art-caption {
  position: absolute;
  right: 0;
  bottom: 55px;
  width: 230px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero-art-caption .mono {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.5px;
  color: #6e898f;
  display: block;
  margin-bottom: 12px;
}
.hero-art-caption > span:nth-child(2) {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: 600;
}
.hero-art-caption i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--mint);
}
.menu-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  flex-shrink: 0;
}
.how-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.how-step > span {
  color: #68837f;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  padding-top: 2px;
}
.how-step strong {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 2px;
}
.how-step p {
  font-size: calc(12px * var(--text-scale, 1));
  color: #81979d;
  margin: 7px 0 0;
}
.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #526a74;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.4px;
}
.menu-bottom > div {
  display: flex;
  gap: 24px;
}
.text-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  color: #8ba4ac;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1px;
}
.text-btn:hover {
  color: var(--mint);
}
#hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 25px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  background: linear-gradient(#080d13d9, transparent);
}
.hud-score {
  min-width: 180px;
}
.hud-score .eyebrow {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 2px;
  color: var(--muted);
}
.hud-score .eyebrow i {
  height: 4px;
  width: 4px;
  background: var(--mint);
  border-radius: 50%;
}
.hud-score > strong {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -1px;
  display: block;
  font-variant-numeric: tabular-nums;
  margin: 3px 0;
}
.record-line {
  font-size: calc(12px * var(--text-scale, 1));
  color: #647e87;
  letter-spacing: 1px;
}
.record-line b {
  color: #99acb2;
  font-weight: 400;
}
.hud-mission {
  position: absolute;
  width: 250px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.mission-title {
  font-size: calc(12px * var(--text-scale, 1));
  display: flex;
  justify-content: space-between;
  letter-spacing: 1px;
  color: var(--mint);
}
.mission-title > span + span {
  color: var(--muted);
}
.mission-track,
.boss-track {
  height: 3px;
  background: #a2ffd71a;
  margin: 12px 0 7px;
}
.mission-track > div {
  height: 100%;
  background: var(--mint);
  transition: width 0.2s;
}
.mission-goal {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  color: #79949c;
}
.hud-systems {
  display: flex;
  gap: 20px;
}
.system-meters {
  width: 150px;
}
.shield-label {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #87a2a9;
  margin-bottom: 11px;
}
#shieldPips {
  display: flex;
  gap: 5px;
}
#shieldPips i {
  width: 13px;
  height: 5px;
  display: block;
  background: #a2ffd71a;
  transform: skewX(-25deg);
}
#shieldPips i.active {
  background: var(--mint);
  box-shadow: 0 0 7px #a2ffd755;
}
.meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
  color: #738d96;
  margin: 7px 0;
  gap: 12px;
}
.meter-track {
  height: 3px;
  width: 94px;
  background: #a2ffd71a;
}
.meter-track > div {
  height: 100%;
  background: var(--cyan);
}
#dashFill {
  background: var(--mint);
}
.utility-buttons {
  display: flex;
  gap: 7px;
}
.icon-btn {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #0b141cbb;
  font-size: calc(15px * var(--text-scale, 1));
  color: #9db6bd;
}
.icon-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
}
#bossHud {
  padding-top: 7px;
}
#bossStatus {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1px;
  color: var(--pink);
}
.boss-track > div {
  height: 100%;
  background: var(--pink);
  transition: width 0.2s;
}
.combo-badge {
  position: absolute;
  left: 32px;
  top: 136px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  transition: transform 0.12s;
}
.combo-badge.pop {
  transform: scale(1.12);
}
#comboCount {
  font-size: 44px;
  font-weight: 850;
  font-style: italic;
  letter-spacing: -2px;
  color: var(--mint);
}
.combo-badge b,
.combo-badge > div > span {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  display: block;
  letter-spacing: 1.4px;
}
.combo-badge b {
  color: var(--mint);
  margin-bottom: 4px;
}
.combo-badge > div > span {
  color: #6e8991;
}
.combo-track {
  height: 2px;
  background: #a2ffd722;
  width: 70px;
  margin-top: 7px;
}
.combo-track i {
  display: block;
  height: 100%;
  background: var(--mint);
}
.announcement {
  position: absolute;
  top: 27%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 12;
  pointer-events: none;
  animation: announce 0.35s ease-out;
}
.announcement > span {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  color: var(--mint);
  letter-spacing: 4px;
}
.announcement strong {
  display: block;
  font-size: clamp(28px, 4vw, 55px);
  font-weight: 850;
  letter-spacing: -1px;
  margin-top: 9px;
  text-shadow: 0 3px 30px #080d13;
}
.announcement p {
  font-size: calc(12px * var(--text-scale, 1));
  color: #a4bcc3;
  margin-top: 9px;
}
@keyframes announce {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.play-footer {
  position: absolute;
  bottom: 22px;
  left: 32px;
  right: 32px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.loadout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 230px;
  min-width: 120px;
}
.loadout span {
  border: 1px solid var(--line);
  background: #08141dcc;
  color: #90b3b7;
  padding: 6px 8px;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 0.5px;
}
.controls-hint {
  display: flex;
  gap: 20px;
  color: #637f89;
  font-size: calc(12px * var(--text-scale, 1));
  padding-bottom: 4px;
}
.nova-button {
  pointer-events: auto;
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid #a2ffd730;
  background:
    radial-gradient(circle, #0d2028 60%, transparent 61%),
    conic-gradient(var(--mint) var(--charge, 0%), #a2ffd712 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #81a0a8;
}
.nova-glyph {
  font-size: 33px;
  line-height: 34px;
}
.nova-button > span:nth-child(2) {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1px;
  margin-top: 4px;
}
.nova-button b {
  font-weight: 400;
}
.nova-button small {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  position: absolute;
  bottom: -13px;
  white-space: nowrap;
  color: #65828b;
}
.nova-button.ready {
  color: var(--mint);
  box-shadow: 0 0 28px #a2ffd725;
  border-color: var(--mint);
}
.nova-button.ready:hover {
  filter: brightness(1.4);
}
.modal-screen {
  background: #060c13c9;
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 32px;
}
.panel {
  width: 510px;
  max-width: 100%;
  background: linear-gradient(140deg, #14252b, #0c141e 65%);
  border: 1px solid var(--line);
  padding: 36px;
}
.panel h2,
.upgrade-panel h2 {
  font-size: clamp(26px, 3.3vw, 42px);
  font-weight: 850;
  letter-spacing: -1.5px;
  margin: 20px 0 8px;
  line-height: 1.1;
}
.panel-intro {
  color: #91a8af;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.7;
  margin: 10px 0 28px;
}
.secondary-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px;
  margin-top: 10px;
  color: #a2b9bf;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1.5px;
}
.secondary-btn:hover {
  background: #a2ffd70b;
  border-color: #a2ffd755;
}
.pause-help {
  margin-top: 25px;
  color: #809aa3;
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.8;
}
.pause-help p {
  margin: 10px 0;
}
.pause-settings {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 10px;
}
.end-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.end-top .eyebrow {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
}
.rank-text {
  color: var(--mint);
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1.6px;
}
.end-score {
  margin: 25px 0;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.end-score > span {
  display: block;
  color: #79949d;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.5px;
}
.end-score > strong {
  display: block;
  font-size: 65px;
  letter-spacing: -3px;
  font-weight: 800;
  color: var(--mint);
  margin: 3px 0;
}
.end-score b {
  color: var(--text);
  font-weight: 400;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
}
.stats-grid span {
  display: block;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 1px;
  color: #78939d;
}
.stats-grid strong {
  font-size: calc(22px * var(--text-scale, 1));
  font-weight: 650;
  display: block;
  margin-top: 6px;
}
.end-advice {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.7;
  color: #8ba4ae;
  margin: 24px 0;
}
.upgrade-panel {
  width: 970px;
  max-width: 100%;
  text-align: center;
}
.upgrade-panel > .eyebrow {
  justify-content: center;
}
.upgrade-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 35px 0;
}
.upgrade-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #13272b, #0a141d 72%);
  padding: 22px 25px 28px;
  text-align: left;
  min-height: 360px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.3s;
}
.upgrade-card:hover,
.upgrade-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--mint);
  box-shadow:
    0 12px 40px #00000030,
    inset 0 1px 0 #a2ffd71a;
}
.upgrade-art {
  display: grid;
  place-items: center;
  height: 166px;
  margin: 0 -12px 20px;
  position: relative;
  background: radial-gradient(ellipse at 50% 47%, #a2ffd709, transparent 67%);
  border-bottom: 1px solid #a2ffd710;
}
.upgrade-art::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12px;
  width: 28px;
  height: 1px;
  background: #a2ffd752;
  transition: width 0.35s ease;
}
.upgrade-art img {
  display: block;
  width: min(100%, 260px);
  height: 160px;
  object-fit: contain;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.65, 0.3, 1),
    filter 0.4s;
}
.upgrade-card:hover .upgrade-art img,
.upgrade-card:focus-visible .upgrade-art img {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px #a2ffd724);
}
.upgrade-card:hover .upgrade-art::after,
.upgrade-card:focus-visible .upgrade-art::after {
  width: calc(100% - 24px);
}
.upgrade-card .upgrade-key {
  position: absolute;
  top: 20px;
  right: 20px;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  color: #728c96;
  border: 1px solid var(--line);
  padding: 4px 7px;
}
.upgrade-card .upgrade-type {
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  color: var(--mint);
  letter-spacing: 2px;
}
.upgrade-card strong {
  font-size: calc(19px * var(--text-scale, 1));
  display: block;
  margin: 12px 0 10px;
}
.upgrade-card p {
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.8;
  color: #8ea6af;
  margin: 0;
}
.muted {
  color: #69858e;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
}
body.reduced-motion *,
body.reduced-motion *:before,
body.reduced-motion *:after {
  animation: none !important;
  transition: none !important;
}
@media (min-width: 1600px) {
  .menu-screen {
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .hero-copy {
    width: 530px;
  }
  .menu-content {
    padding: 50px 0;
  }
  .hero-description {
    font-size: calc(16px * var(--text-scale, 1));
  }
  .primary-btn {
    min-height: 62px;
  }
  .menu-footer {
    padding: 30px 0;
  }
  .how-step strong {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .how-step p {
    font-size: calc(13px * var(--text-scale, 1));
  }
}
@media (max-height: 800px) and (min-width: 761px) {
  .menu-screen {
    padding-top: 22px;
  }
  .menu-content {
    min-height: 440px;
    padding: 22px 0;
  }
  h1 {
    font-size: 100px;
    margin: 26px 0 16px;
  }
  .hero-description {
    margin: 18px 0;
    font-size: calc(12px * var(--text-scale, 1));
  }
  .edition-title {
    margin-top: 17px;
  }
  .mode-picker {
    margin-bottom: 16px;
  }
  .menu-footer {
    padding: 18px 0;
  }
  .panel {
    padding: 26px;
  }
  .end-score {
    margin: 18px 0;
    padding-bottom: 18px;
  }
  .end-score > strong {
    font-size: 54px;
  }
  .stats-grid {
    gap: 18px;
  }
  .end-advice {
    margin: 18px 0;
  }
  .hero-copy {
    width: 440px;
  }
}
@media (max-width: 1000px) {
  .hero-copy {
    max-width: 57%;
  }
  .controls-hint {
    gap: 8px;
    font-size: calc(12px * var(--text-scale, 1));
  }
  .hud-mission {
    width: 210px;
  }
  .hud-score {
    min-width: 120px;
  }
  .hero-art-caption {
    width: 180px;
  }
  .menu-footer {
    gap: 14px;
  }
  .how-step {
    gap: 10px;
  }
  .how-step p {
    font-size: calc(12px * var(--text-scale, 1));
  }
}
@media (max-width: 760px) {
  .menu-screen {
    padding: 20px 23px 16px;
    background: linear-gradient(90deg, #080d13f5, #080d1399);
  }
  .wordmark .mono {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .wordmark-divider {
    margin: 0 1px;
  }
  .edition {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .edition .dim {
    display: none;
  }
  .menu-content {
    min-height: 520px;
    padding: 32px 0;
    align-items: center;
  }
  .hero-copy {
    width: 100%;
    max-width: 450px;
  }
  .eyebrow {
    font-size: calc(12px * var(--text-scale, 1));
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: clamp(80px, 17vw, 115px);
    margin-top: 28px;
  }
  .hero-art-caption {
    display: none;
  }
  .hero-description {
    font-size: calc(13px * var(--text-scale, 1));
  }
  .menu-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0;
  }
  .how-step {
    gap: 17px;
  }
  .how-step p {
    margin-top: 4px;
    font-size: calc(12px * var(--text-scale, 1));
  }
  .menu-bottom > span {
    display: none;
  }
  .menu-bottom {
    justify-content: center;
  }
  .menu-bottom > div {
    gap: 35px;
  }
  .mode-picker {
    gap: 20px;
  }
  .mode {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .mode span {
    font-size: calc(12px * var(--text-scale, 1));
  }
  #hud {
    padding: 18px;
    flex-wrap: wrap;
  }
  .hud-score > strong {
    font-size: 26px;
  }
  .hud-score {
    min-width: 100px;
  }
  .hud-systems {
    gap: 10px;
  }
  .system-meters {
    width: 125px;
  }
  .utility-buttons {
    gap: 5px;
    flex-direction: column;
  }
  .icon-btn {
    height: 28px;
    width: 28px;
  }
  .hud-mission {
    top: 110px;
    width: 210px;
  }
  .combo-badge {
    left: 18px;
    top: 171px;
  }
  #comboCount {
    font-size: 35px;
  }
  .combo-badge > div {
    display: none;
  }
  .play-footer {
    left: 18px;
    right: 18px;
    bottom: 26px;
  }
  .controls-hint {
    display: none;
  }
  .nova-button {
    width: 84px;
    height: 84px;
  }
  .loadout {
    max-width: 190px;
  }
  .announcement {
    top: 32%;
    padding: 0 18px;
  }
  .announcement strong {
    font-size: 29px;
  }
  .announcement p {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .modal-screen {
    padding: 18px;
    align-items: center;
  }
  .panel {
    padding: 25px;
  }
  .panel h2 {
    font-size: 29px;
  }
  .upgrade-choices {
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 22px 0;
  }
  .upgrade-card {
    min-height: 154px;
    padding: 24px 22px 22px 144px;
  }
  .upgrade-art {
    position: absolute;
    width: 132px;
    height: 112px;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    border-bottom: none;
  }
  .upgrade-art::after {
    display: none;
  }
  .upgrade-art img {
    width: 132px;
    height: 112px;
  }
  .upgrade-card strong {
    font-size: calc(17px * var(--text-scale, 1));
    margin: 6px 0;
  }
  .upgrade-card p {
    font-size: calc(12px * var(--text-scale, 1));
    line-height: 1.5;
  }
  .upgrade-card .upgrade-type {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .upgrade-card .upgrade-key {
    top: 8px;
    right: 8px;
    font-size: calc(12px * var(--text-scale, 1));
    padding: 2px 5px;
  }
  .upgrade-panel h2 {
    font-size: 30px;
  }
  .upgrade-panel .panel-intro {
    margin-bottom: 15px;
  }
  .end-score > strong {
    font-size: 52px;
  }
  .stats-grid {
    gap: 20px 10px;
  }
  .stats-grid span {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .end-top .eyebrow {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .end-top .outline-tag {
    font-size: calc(12px * var(--text-scale, 1));
  }
  .end-score {
    margin: 20px 0;
    padding-bottom: 20px;
  }
  .end-advice {
    margin: 20px 0;
  }
}
@media (max-height: 650px) {
  .modal-screen {
    align-items: flex-start;
  }
  .panel {
    margin: auto 0;
  }
  .upgrade-panel {
    margin: auto 0;
  }
  .menu-content {
    min-height: 500px;
  }
}
.touch-help {
  display: none;
}
@media (max-width: 380px) {
  .upgrade-card {
    padding-left: 122px;
    padding-right: 18px;
  }
  .upgrade-art,
  .upgrade-art img {
    width: 110px;
  }
  .upgrade-card strong {
    font-size: calc(16px * var(--text-scale, 1));
  }
}
@media (pointer: coarse) {
  .touch-help {
    display: block;
  }
  .start-key {
    font-size: 0;
  }
  .start-key kbd {
    display: none;
  }
  .start-key:after {
    content: "HÅLL · SIKTA · SLÄPP";
    font-size: calc(12px * var(--text-scale, 1));
  }
  .nova-button small {
    font-size: 0;
  }
  .nova-button small:after {
    content: "TRYCK FÖR NOVA";
    font-size: calc(12px * var(--text-scale, 1));
  }
  .pause-help > p:has(kbd) {
    display: none;
  }
}

/* ---- Rift 03: daily mode, rarity, run summary ---- */
.daily-info {
  border: 1px solid #edff9b33;
  background: linear-gradient(120deg, #edff9b0d, transparent 70%);
  padding: 12px 14px;
  margin: -8px 0 18px;
}
.daily-info span {
  display: block;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.6px;
  color: #b9c98a;
}
.daily-info b {
  color: var(--gold);
  font-weight: 400;
}
.daily-info strong {
  display: block;
  margin-top: 6px;
  font-size: calc(13px * var(--text-scale, 1));
  letter-spacing: 2px;
  color: var(--gold);
}
.daily-info p {
  margin: 4px 0 0;
  font-size: calc(12px * var(--text-scale, 1));
  color: #a3b3a9;
}
#startScreen.daily .hero-description {
  display: none;
}
#startScreen.daily .mode-picker {
  margin-top: 26px;
}
.upgrade-card {
  animation: deal 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) backwards;
  animation-delay: var(--deal, 0s);
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(18deg);
  }
}
.upgrade-rarity {
  position: absolute;
  top: 20px;
  left: 22px;
  font:
    calc(12px * var(--text-scale, 1)) Consolas,
    monospace;
  letter-spacing: 2px;
  padding: 4px 7px;
  border: 1px solid currentColor;
}
.rarity-rare {
  border-color: #b796ff55;
  background: linear-gradient(155deg, #1f1d38, #0b111d 72%);
}
.rarity-rare .upgrade-rarity,
.rarity-rare .upgrade-type {
  color: #c9b4ff;
}
.rarity-rare:hover,
.rarity-rare:focus-visible {
  border-color: #b796ff;
  box-shadow:
    0 12px 40px #00000030,
    0 0 30px #b796ff26;
}
.rarity-legend {
  border-color: #edff9b77;
  background: linear-gradient(155deg, #2a2b17, #0d1213 72%);
  box-shadow: 0 0 36px #edff9b1c;
}
.rarity-legend::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 30%,
    #edff9b2a 45%,
    transparent 60%
  );
  background-size: 250% 100%;
  animation: sheen 2.6s linear infinite;
}
@keyframes sheen {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.rarity-legend .upgrade-rarity,
.rarity-legend .upgrade-type {
  color: var(--gold);
}
.rarity-legend:hover,
.rarity-legend:focus-visible {
  border-color: var(--gold);
  box-shadow:
    0 12px 40px #00000030,
    0 0 44px #edff9b33;
}
.rarity-legend .upgrade-art img {
  filter: sepia(0.6) hue-rotate(20deg) saturate(1.6) brightness(1.1);
}
.rarity-rare .upgrade-art img {
  filter: hue-rotate(95deg) saturate(1.3);
}
.loadout span.rare {
  color: #c9b4ff;
  border-color: #b796ff44;
}
.loadout span.legend {
  color: var(--gold);
  border-color: #edff9b55;
}
.end-mode {
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.5px;
  color: #7f9aa3;
  margin: 6px 0 0;
}
.run-graph {
  margin-top: 20px;
}
.run-graph span,
.end-build > span {
  display: block;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1px;
  color: #78939d;
  margin-bottom: 6px;
}
.run-graph svg {
  display: block;
  width: 100%;
  height: 48px;
}
.run-graph .stroke {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.run-graph .area {
  fill: #a2ffd712;
  stroke: none;
}
.end-build {
  margin-top: 16px;
}
.end-build div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.end-build div span {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: calc(12px * var(--text-scale, 1));
  color: #a7c1c4;
}
.end-build div span.rare {
  color: #c9b4ff;
  border-color: #b796ff44;
}
.end-build div span.legend {
  color: var(--gold);
  border-color: #edff9b55;
}
@media (max-height: 820px) {
  .run-graph svg {
    height: 32px;
  }
  .end-build {
    margin-top: 10px;
  }
}
.end-panel {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
@media (max-width: 520px) {
  .mode span {
    display: none;
  }
  .mode-picker {
    gap: 18px;
  }
  .mode {
    padding-bottom: 11px;
  }
}
