:root {
  color-scheme: dark;
  --cyan: #80ffea;
  --gold: #ffcf78;
  --text: #f0f6ff;
  --font: "Bahnschrift", "Arial", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #060916;
  color: var(--text);
  font-family: var(--body);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}
button:not(:disabled) {
  transition:
    filter 0.18s,
    transform 0.18s,
    background 0.18s;
}
button:not(:disabled):active {
  transform: translateY(2px);
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.game-world {
  width: 100%;
  height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 45%,
    #173341,
    #11132b 55%,
    #080c1b
  );
}
#atmosphere,
#arena {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#atmosphere {
  z-index: -3;
}
#arena {
  z-index: -1;
  touch-action: manipulation;
}
.world-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#05081699, transparent 17%, transparent 74%, #050916bb),
    radial-gradient(ellipse at center, transparent 50%, #050713a0);
  z-index: 0;
}
.hud-top {
  position: absolute;
  top: 30px;
  left: 38px;
  right: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.hud-top button {
  pointer-events: auto;
}
.game-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px #000;
}
.game-logo b {
  font-weight: 400;
  color: #b7cfdf;
  letter-spacing: 3px;
  font-size: 15px;
}
.logo-orbit {
  display: block;
  width: 31px;
  height: 31px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px #80ffea25;
  position: relative;
}
.logo-orbit:before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.logo-orbit:after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transform: rotate(-45deg);
  transform-origin: left;
}
.health-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  width: 225px;
}
.health-hud > svg {
  width: 16px;
  height: 16px;
  color: #8bffe6;
  filter: drop-shadow(0 0 5px #80ffea66);
}
.health-hud strong {
  font-family: var(--font);
  font-size: 16px;
  color: #d1ffed;
}
.health-track {
  height: 9px;
  flex: 1;
  background: #233e4a;
  transform: skew(-20deg);
  border: 1px solid #405f69;
  padding: 1px;
}
.health-track > div {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2da6a2, #a3ffdd);
  box-shadow: 0 0 14px #80ffea66;
  transition: width 0.3s;
}
.combat-stats {
  display: flex;
  gap: 24px;
  margin: 13px 0 0 25px;
}
.combat-stats > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.combat-stats svg {
  width: 14px;
  height: 14px;
  color: #729fbb;
}
.combat-stats strong {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: #c8e5ed;
}
.combat-stats small {
  font-size: 10px;
  color: #7893a9;
}
.wave-hud {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  top: -8px;
}
.wave-caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #a8c4d4;
}
.wave-number {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font);
  line-height: 1.15;
}
.wave-number > strong {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
  text-shadow: 0 0 30px #83d7ff55;
}
.wave-number > span {
  font-size: 14px;
  color: #607b94;
}
.wave-number b {
  font-weight: 400;
}
.wave-pips {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}
.wave-pips i {
  width: 11px;
  height: 3px;
  background: #40596e66;
  transform: skew(-30deg);
}
.wave-pips i.done {
  background: #7de4e8;
  box-shadow: 0 0 6px #80ffea77;
}
.wave-pips i.active {
  background: #e4fcff;
}
.wave-hud > #enemy-count {
  font-size: 10px;
  color: #829db4;
  margin-top: 10px;
  white-space: nowrap;
}
.resource-hud {
  text-align: right;
}
.wallet-amount {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}
.wallet-amount > svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px #ffb75966);
}
.wallet-amount strong {
  font-family: var(--font);
  font-size: 32px;
  color: #ffe1a1;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 0 20px #ffbd5133;
}
#income-tag {
  display: block;
  font-size: 10px;
  color: #ab9978;
  margin-top: 7px;
}
#income-tag small {
  font-size: 9px;
}
.system-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 16px;
}
.icon-button {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #87a6c0;
  border: 1px solid transparent;
  border-radius: 4px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.icon-button:hover {
  color: #e9ffff;
  background: #7bdcf010;
}
.mute-slash {
  position: absolute;
  width: 19px;
  height: 1px;
  background: #8aa8be;
  transform: rotate(-45deg);
}
.world-caption {
  position: absolute;
  left: 40px;
  top: 43%;
  color: #b3c9e5;
  pointer-events: none;
  text-shadow: 0 2px 30px #050513;
}
.world-caption > span {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 8px;
  color: #7d8dae;
}
.world-caption > strong {
  font-family: var(--font);
  display: block;
  font-size: clamp(28px, 3.6vw, 60px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 9px 0 15px;
  color: #d5e8fa;
}
.world-caption > i {
  font-size: 7px;
  letter-spacing: 2px;
  font-style: normal;
  color: #647999;
}
.orbit-hud {
  position: absolute;
  left: 42px;
  top: 60%;
  color: #8eacc2;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hud-overline {
  font-size: 8px;
  letter-spacing: 3px;
  color: #617d95;
}
.ring-progress {
  display: flex;
  gap: 8px;
}
.ring-progress i {
  width: 13px;
  height: 13px;
  border: 1px solid #54758c;
  transform: rotate(45deg);
  background: #16223880;
}
.ring-progress i.active {
  border-color: #96ffeb;
  background: #7ae4db66;
  box-shadow: 0 0 12px #7ae4db44;
}
.orbit-hud > #ring-count {
  font-size: 10px;
  letter-spacing: 3px;
  color: #809fb5;
  margin-top: 3px;
}
.module-rail {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: 76px;
}
.rail-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.rail-heading > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #90a4c1;
}
.rail-heading > b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffda96;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
}
.rail-heading svg {
  width: 12px;
  height: 12px;
}
.module-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.module-button {
  width: 55px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--module-color);
  filter: drop-shadow(0 3px 6px #0008);
}
.module-button:before,
.module-button:after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    25% 0,
    75% 0,
    100% 25%,
    100% 75%,
    75% 100%,
    25% 100%,
    0 75%,
    0 25%
  );
}
.module-button:before {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--module-color), transparent 30%),
    #20334e 50%,
    color-mix(in srgb, var(--module-color), transparent 70%)
  );
}
.module-button:after {
  inset: 1.5px;
  background: radial-gradient(
    ellipse at 50% 0,
    color-mix(in srgb, var(--module-color), #101a32 80%),
    #0c1528 85%
  );
}
.module-button > svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  filter: drop-shadow(
    0 0 6px color-mix(in srgb, var(--module-color), transparent 40%)
  );
}
.module-button > .module-name {
  display: none;
}
.module-count {
  position: absolute;
  bottom: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  background: #172a40;
  border: 1px solid var(--module-color);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 10px;
  color: var(--module-color);
  z-index: 2;
  display: grid;
  place-items: center;
}
.module-count:empty {
  display: none;
}
.module-button:disabled {
  filter: grayscale(0.6) brightness(0.58);
}
.module-button:not(:disabled):hover {
  filter: brightness(1.4)
    drop-shadow(
      0 0 9px color-mix(in srgb, var(--module-color), transparent 60%)
    );
  transform: translateX(-4px);
}
.module-rail > #slot-count {
  display: block;
  font-size: 8px;
  color: #768ca9;
  letter-spacing: 1px;
  margin-top: 14px;
}
.battle-controls {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 171px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.wave-action {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  text-align: center;
}
.wave-action > #phase-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a3bcd1;
  margin-bottom: 13px;
}
.start-button {
  height: 52px;
  min-width: 205px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e5ffff;
  border: 1px solid #a3fff0;
  background: linear-gradient(145deg, #1b787c, #10434f 80%);
  box-shadow:
    0 0 30px #4effd925,
    inset 0 0 15px #80fff91a;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.start-button svg {
  width: 18px;
  height: 18px;
  fill: #b5fff02a;
}
.start-button:not(:disabled):hover {
  filter: brightness(1.35);
}
.start-button:disabled {
  border-color: #54738055;
  background: #0a1b2a80;
  box-shadow: none;
  color: #6f8a9d;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.start-button:disabled svg {
  display: none;
}
.expand-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 4px;
  min-height: 50px;
}
.expand-art {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #34507b88, #111b2a99);
  border: 1px solid #9bb2ff99;
  box-shadow: inset 0 0 18px #7599ff16;
}
.expand-art svg {
  transform: rotate(-45deg);
  color: #bfcdff;
  width: 26px;
  height: 26px;
}
.expand-button > span:nth-child(2) {
  text-align: left;
}
.expand-button strong {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #c5d3ec;
  display: block;
}
.expand-button small {
  font-size: 8px;
  color: #7a93ae;
  display: block;
  margin-top: 5px;
}
.button-price {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #e7c88e;
  font-family: var(--font);
  font-size: 13px;
}
.button-price svg {
  width: 13px;
  height: 13px;
}
.expand-button:disabled {
  opacity: 0.42;
}
.expand-button:not(:disabled):hover {
  filter: brightness(1.5);
}
.time-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.time-controls .icon-button {
  color: #a8c8d6;
  border-right: 1px solid #47677c66;
  border-radius: 0;
  margin-right: 2px;
}
.time-controls .icon-button:disabled {
  opacity: 0.3;
}
.segmented {
  display: flex;
  gap: 4px;
}
.segmented button {
  width: 34px;
  height: 32px;
  font-family: var(--font);
  font-size: 13px;
  color: #6688a1;
  transform: skew(-8deg);
}
.segmented button.selected {
  color: #c3fff1;
  background: #367c8333;
  border-bottom: 2px solid var(--cyan);
  text-shadow: 0 0 10px #80ffeaaa;
}
.segmented button:hover {
  color: #fff;
  background: #29425455;
}
.upgrade-dock {
  position: absolute;
  bottom: 31px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 58vw);
}
.dock-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #6c87a3;
  margin-bottom: 13px;
  padding: 0 8px;
}
.dock-heading > i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #48698555, transparent);
}
.dock-heading > span:last-child {
  font-family: var(--font);
  letter-spacing: 3px;
  color: #5d7890;
}
.upgrade-list {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.upgrade-row {
  flex: 1;
  position: relative;
  height: 99px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(155deg, #253858ed, #111b30f5 60%);
  border: 1px solid #56729677;
  box-shadow:
    inset 0 1px #8dbdf126,
    inset 0 -3px #040a16,
    0 8px 25px #0005;
  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );
}
.upgrade-row:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0,
    color-mix(in srgb, var(--upgrade-color), transparent 85%),
    transparent 75%
  );
  pointer-events: none;
}
.upgrade-row:not(:disabled):hover {
  filter: brightness(1.4);
  border-color: var(--upgrade-color);
  transform: translateY(-5px);
}
.upgrade-row:disabled {
  filter: saturate(0.35);
  background: linear-gradient(155deg, #182438ee, #0d1527);
  border-color: #344b6766;
}
.upgrade-row:disabled .upgrade-price {
  color: #64738c;
}
.upgrade-icon {
  position: relative;
  color: var(--upgrade-color);
  filter: drop-shadow(
    0 0 8px color-mix(in srgb, var(--upgrade-color), transparent 50%)
  );
}
.upgrade-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.7;
}
.upgrade-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #c4d1e2;
  text-transform: uppercase;
}
.upgrade-price {
  font-size: 12px;
  color: #f4d49a;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
}
.upgrade-price svg {
  width: 11px;
  height: 11px;
}
.upgrade-level {
  position: absolute;
  right: 8px;
  top: 7px;
  color: #badde7;
  font-size: 8px;
  font-family: var(--font);
  font-style: normal;
}
.upgrade-key {
  position: absolute;
  left: 8px;
  top: 7px;
  font-size: 8px;
  color: #6684a1;
  font-family: var(--font);
}
.bottom-meta {
  position: absolute;
  bottom: 24px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #59708d;
}
.event-callout {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translate(-50%, 10px);
  font-family: var(--font);
  font-size: clamp(17px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  color: #e6faff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  text-shadow:
    0 0 20px #7beeffaa,
    0 4px 20px #000;
}
.event-callout.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.floating-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #03081bb0;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.floating-state > span {
  font-size: 9px;
  letter-spacing: 5px;
  color: #8fafc5;
}
.floating-state > strong {
  font-family: var(--font);
  font-size: 64px;
  letter-spacing: 12px;
  color: #e4f7ff;
  font-weight: 500;
  text-shadow: 0 0 40px #6ed8ff55;
}
.purchase-tooltip {
  position: absolute;
  z-index: 9;
  width: 240px;
  padding: 16px 18px;
  background: linear-gradient(130deg, #1a2943f5, #0c1529fa);
  border: 1px solid #597b9a;
  box-shadow: 0 8px 40px #0008;
  pointer-events: none;
}
.purchase-tooltip strong {
  font-family: var(--font);
  font-size: 15px;
  color: var(--tooltip-color);
  display: block;
  margin-bottom: 8px;
}
.purchase-tooltip p {
  font-size: 11px;
  line-height: 1.65;
  color: #bccbdf;
  margin: 0;
}
.purchase-tooltip small {
  display: block;
  font-size: 10px;
  color: #eace98;
  margin-top: 10px;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 320px;
  transform: translate(-50%, 10px);
  color: #d2f7f6;
  font-size: 12px;
  text-shadow:
    0 0 12px #6dffda55,
    0 2px 10px #000;
  background: linear-gradient(
    90deg,
    transparent,
    #0a182dc9 20%,
    #0a182dc9 80%,
    transparent
  );
  padding: 12px 45px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 9;
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.game-dialog {
  color: var(--text);
  background: radial-gradient(ellipse at top, #182d45f7, #081123fc 70%);
  border: 1px solid #5f7c9d88;
  border-radius: 2px;
  padding: 46px;
  width: min(780px, calc(100% - 30px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow:
    0 0 120px #3785ab22,
    0 30px 150px #000b;
  text-align: center;
}
.game-dialog::backdrop {
  background: #050a1cce;
  backdrop-filter: blur(10px);
}
.dialog-eyebrow {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--cyan);
}
.game-dialog h2 {
  font-family: var(--font);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 16px 0;
  color: #edfbff;
  text-shadow: 0 0 25px #6ce0ff33;
}
.game-dialog h2 > span {
  color: var(--cyan);
}
.game-dialog > p {
  color: #99b0c7;
  font-size: 12px;
  line-height: 1.8;
}
.reward-cards {
  display: flex;
  gap: 18px;
  margin: 35px 0;
}
.reward-card {
  flex: 1;
  position: relative;
  min-height: 250px;
  padding: 25px 14px;
  border: 1px solid color-mix(in srgb, var(--reward-color), transparent 35%);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--reward-color), #13203a 90%),
    #0d152a
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: inset 0 0 40px #03081b66;
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
.reward-card > svg {
  color: var(--reward-color);
  width: 52px;
  height: 52px;
  filter: drop-shadow(
    0 0 12px color-mix(in srgb, var(--reward-color), transparent 40%)
  );
}
.reward-kind {
  font-size: 8px;
  letter-spacing: 2px;
  color: #90a6bf;
}
.reward-card strong {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
}
.reward-description {
  font-size: 11px;
  color: #afc1d9;
  line-height: 1.6;
}
.reward-select {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--reward-color);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #44637d66;
  width: 100%;
}
.reward-card:hover {
  transform: translateY(-8px);
  filter: brightness(1.35);
}
.dialog-footnote {
  font-size: 8px;
  letter-spacing: 3px;
  color: #6987a5;
}
.secondary-button {
  border: 1px solid #6ba6b777;
  background: #23445333;
  min-height: 42px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 2px;
  color: #bce9ed;
}
.secondary-button:hover {
  background: #35637866;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.help-dialog {
  text-align: left;
  max-width: 610px;
}
.help-steps {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.help-steps li {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}
.help-steps li > span {
  font-family: var(--font);
  font-size: 20px;
  color: #70decb;
  min-width: 32px;
}
.help-steps strong {
  font-size: 14px;
  font-weight: 500;
  color: #d1e7ed;
}
.help-steps p {
  font-size: 11px;
  line-height: 1.8;
  margin: 6px 0 0;
  color: #8fa9c4;
}
.help-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-block: 1px solid #476b8d55;
  padding: 16px 0;
  font-size: 9px;
  color: #627f9e;
}
.help-info b {
  display: block;
  margin-top: 7px;
  color: #bddce6;
  font-size: 10px;
}
.game-dialog > .help-small {
  font-size: 10px;
  margin: 20px 0;
}
.help-dialog .start-button {
  width: 100%;
  margin-top: 5px;
}
.end-orbit {
  width: 100px;
  height: 100px;
  border: 1px solid #80ffea77;
  border-radius: 50%;
  margin: 35px auto;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 50px #80ffea22,
    inset 0 0 30px #80ffea16;
}
.end-orbit > span {
  width: 38px;
  height: 38px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #c5ffec, #176178);
  box-shadow: 0 0 30px #80ffea99;
}
.end-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 30px 0;
}
.end-stats span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #86a0b8;
}
.end-stats b {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 400;
  display: block;
  margin-top: 10px;
  color: #d8effa;
}
.end-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.compact-dialog {
  max-width: 500px;
}
.compact-dialog h2 {
  font-size: 30px;
}
.game-world[data-phase="playing"] .world-caption {
  opacity: 0.35;
  transition: opacity 1s;
}
.game-world[data-phase="playing"] .wave-action > .start-button {
  height: 34px;
  min-width: 190px;
  border: 0;
  clip-path: none;
  background: transparent;
}
.game-world[data-phase="playing"] .wave-action > #phase-label {
  display: none;
}
@media (min-width: 1700px) {
  .hud-top {
    top: 45px;
    left: 60px;
    right: 60px;
  }
  .world-caption {
    left: 60px;
  }
  .module-rail {
    right: 60px;
  }
  .orbit-hud {
    left: 63px;
  }
  .battle-controls {
    left: 60px;
    right: 60px;
    bottom: 190px;
  }
  .upgrade-dock {
    bottom: 40px;
    width: 720px;
  }
  .upgrade-row {
    height: 112px;
  }
  .bottom-meta {
    bottom: 35px;
    left: 60px;
    right: 60px;
  }
}
@media (max-width: 1100px) {
  .hud-top {
    left: 26px;
    right: 26px;
    top: 25px;
  }
  .game-logo {
    font-size: 16px;
  }
  .game-logo b {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .health-hud {
    width: 180px;
  }
  .world-caption {
    left: 27px;
  }
  .world-caption > strong {
    font-size: 34px;
  }
  .world-caption > span {
    font-size: 9px;
    letter-spacing: 5px;
  }
  .world-caption > i {
    display: none;
  }
  .orbit-hud {
    left: 29px;
    top: 59%;
  }
  .module-rail {
    right: 20px;
    width: 62px;
  }
  .module-button {
    width: 46px;
    height: 48px;
  }
  .module-button > svg {
    width: 23px;
    height: 23px;
  }
  .module-grid {
    gap: 8px;
  }
  .battle-controls {
    left: 28px;
    right: 28px;
    bottom: 154px;
  }
  .expand-button {
    gap: 8px;
  }
  .expand-button > span:nth-child(2) {
    display: none;
  }
  .expand-art {
    width: 36px;
    height: 36px;
  }
  .upgrade-dock {
    width: 60vw;
    bottom: 29px;
  }
  .upgrade-list {
    gap: 8px;
  }
  .upgrade-row {
    height: 87px;
  }
  .upgrade-icon svg {
    width: 24px;
    height: 24px;
  }
  .upgrade-name {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .dock-heading {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .bottom-meta {
    left: 28px;
    right: 28px;
    bottom: 21px;
    font-size: 7px;
  }
  .time-controls {
    gap: 0;
  }
  .segmented button {
    width: 29px;
  }
  .start-button {
    min-width: 182px;
    height: 45px;
    font-size: 12px;
  }
}
@media (max-width: 720px) {
  .hud-top {
    top: 20px;
    left: 18px;
    right: 18px;
  }
  .game-logo {
    font-size: 12px;
    gap: 8px;
  }
  .game-logo b {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 2px;
  }
  .logo-orbit {
    width: 25px;
    height: 25px;
    border-width: 1px;
  }
  .logo-orbit:before {
    inset: 7px;
  }
  .logo-orbit:after {
    left: 12px;
    top: 12px;
    width: 18px;
    height: 1px;
  }
  .health-hud {
    width: 130px;
    gap: 7px;
    margin-top: 15px;
  }
  .health-track {
    height: 7px;
  }
  .health-hud > svg {
    width: 13px;
  }
  .health-hud strong {
    font-size: 12px;
  }
  .combat-stats {
    margin: 8px 0 0 19px;
    gap: 15px;
  }
  .combat-stats strong {
    font-size: 12px;
  }
  .combat-stats svg {
    width: 12px;
  }
  .combat-stats small {
    font-size: 8px;
  }
  .wave-hud {
    top: 4px;
  }
  .wave-caption {
    font-size: 7px;
    letter-spacing: 3px;
  }
  .wave-number > strong {
    font-size: 30px;
  }
  .wave-number > span {
    font-size: 10px;
  }
  .wave-number {
    gap: 4px;
  }
  .wave-pips {
    gap: 3px;
  }
  .wave-pips i {
    width: 5px;
    height: 2px;
  }
  .wave-hud > #enemy-count {
    font-size: 8px;
    max-width: 100px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
  }
  .wallet-amount strong {
    font-size: 25px;
  }
  .wallet-amount {
    gap: 4px;
  }
  .wallet-amount > svg {
    width: 20px;
    height: 20px;
  }
  #income-tag {
    font-size: 8px;
  }
  .system-buttons {
    margin-top: 10px;
    gap: 0;
    max-width: 100px;
    flex-wrap: wrap;
    margin-left: auto;
  }
  .system-buttons .icon-button {
    width: 25px;
    height: 25px;
  }
  .system-buttons .icon-button svg {
    width: 14px;
  }
  .world-caption {
    top: 18%;
    left: 18px;
  }
  .world-caption > span {
    font-size: 7px;
    letter-spacing: 4px;
  }
  .world-caption > strong {
    font-size: 22px;
    margin-top: 5px;
  }
  .orbit-hud {
    left: auto;
    right: 20px;
    top: 22%;
    gap: 7px;
    align-items: flex-end;
  }
  .hud-overline {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .ring-progress {
    gap: 6px;
  }
  .ring-progress i {
    width: 8px;
    height: 8px;
  }
  .orbit-hud > #ring-count {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .module-rail {
    top: auto;
    bottom: 225px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .rail-heading {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 9px;
  }
  .rail-heading > span {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .rail-heading > b {
    font-size: 10px;
  }
  .rail-heading svg {
    width: 10px;
    height: 10px;
  }
  .module-grid {
    flex-direction: row;
    gap: 9px;
  }
  .module-button {
    width: 40px;
    height: 42px;
  }
  .module-button > svg {
    width: 20px;
    height: 20px;
  }
  .module-button:not(:disabled):hover {
    transform: translateY(-2px);
  }
  .module-rail > #slot-count {
    font-size: 7px;
    margin-top: 8px;
  }
  .module-count {
    width: 14px;
    height: 14px;
    min-width: 14px;
    font-size: 8px;
  }
  .battle-controls {
    left: 20px;
    right: 20px;
    bottom: 158px;
    gap: 10px;
    align-items: center;
  }
  .wave-action {
    left: auto;
    right: 0;
    transform: none;
    bottom: 0;
  }
  .wave-action > #phase-label {
    font-size: 8px;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
  }
  .start-button {
    min-width: 160px;
    height: 42px;
    padding: 0 16px;
    gap: 15px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }
  .start-button svg {
    width: 14px;
    height: 14px;
  }
  .expand-art {
    width: 32px;
    height: 32px;
  }
  .expand-art svg {
    width: 22px;
    height: 22px;
  }
  .button-price {
    font-size: 11px;
    gap: 3px;
  }
  .expand-button {
    gap: 11px;
    min-height: 42px;
    padding: 0;
  }
  .expand-button .button-price svg {
    width: 11px;
    height: 11px;
  }
  .time-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -145px;
    gap: 5px;
  }
  .time-controls .icon-button {
    width: 30px;
    height: 27px;
  }
  .segmented button {
    height: 25px;
    width: 29px;
    font-size: 11px;
  }
  .upgrade-dock {
    bottom: 54px;
    width: calc(100% - 34px);
  }
  .dock-heading {
    font-size: 6px;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
    padding: 0 3px;
  }
  .dock-heading > span:last-child {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .upgrade-list {
    gap: 7px;
  }
  .upgrade-row {
    height: 78px;
    gap: 5px;
  }
  .upgrade-icon svg {
    width: 23px;
    height: 23px;
  }
  .upgrade-name {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .upgrade-price {
    font-size: 10px;
    gap: 3px;
  }
  .upgrade-price svg {
    width: 9px;
    height: 9px;
  }
  .upgrade-key {
    font-size: 6px;
    left: 5px;
    top: 5px;
  }
  .upgrade-level {
    font-size: 6px;
    right: 5px;
    top: 5px;
  }
  .bottom-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .bottom-meta > span:last-child {
    display: none;
  }
  .event-callout {
    font-size: 18px;
    letter-spacing: 2px;
    top: 32%;
    width: 80%;
    line-height: 1.6;
  }
  .toast {
    bottom: 335px;
    font-size: 10px;
    padding: 10px 20px;
    white-space: normal;
    width: 80%;
  }
  .floating-state > strong {
    font-size: 48px;
    letter-spacing: 7px;
  }
  .purchase-tooltip {
    width: 210px;
    padding: 12px;
  }
  .purchase-tooltip strong {
    font-size: 13px;
  }
  .purchase-tooltip p {
    font-size: 10px;
  }
  .game-dialog {
    padding: 30px 18px;
  }
  .game-dialog h2 {
    font-size: 27px;
  }
  .dialog-eyebrow {
    font-size: 8px;
    letter-spacing: 3px;
  }
  .game-dialog > p {
    font-size: 11px;
  }
  .reward-cards {
    gap: 9px;
    margin: 25px 0;
  }
  .reward-card {
    padding: 18px 8px;
    min-height: 220px;
    gap: 15px;
  }
  .reward-card > svg {
    width: 35px;
    height: 35px;
  }
  .reward-kind {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .reward-card strong {
    font-size: 12px;
  }
  .reward-description {
    font-size: 9px;
  }
  .reward-select {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .dialog-footnote {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .end-stats {
    gap: 22px;
  }
  .end-stats span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .end-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .help-info {
    gap: 7px;
  }
  .help-info b {
    font-size: 8px;
  }
  .help-steps {
    margin: 22px 0;
  }
  .help-steps p {
    font-size: 10px;
  }
  .help-steps strong {
    font-size: 12px;
  }
  .game-world[data-phase="playing"] .wave-action > .start-button {
    min-width: 160px;
    font-size: 9px;
    height: 42px;
  }
}
@media (max-height: 700px) and (min-width: 721px) {
  .hud-top {
    top: 15px;
  }
  .health-hud {
    margin-top: 10px;
  }
  .world-caption {
    top: 36%;
  }
  .module-rail {
    top: 47%;
  }
  .module-grid {
    gap: 5px;
  }
  .module-button {
    width: 38px;
    height: 39px;
  }
  .module-button > svg {
    width: 19px;
  }
  .rail-heading {
    margin-bottom: 8px;
  }
  .module-rail > #slot-count {
    margin-top: 8px;
  }
  .battle-controls {
    bottom: 116px;
  }
  .upgrade-dock {
    bottom: 20px;
    width: 520px;
  }
  .dock-heading {
    margin-bottom: 6px;
  }
  .upgrade-row {
    height: 72px;
    gap: 4px;
  }
  .upgrade-icon svg {
    width: 22px;
  }
  .bottom-meta {
    bottom: 15px;
  }
  .wave-hud > #enemy-count {
    margin-top: 5px;
  }
  .orbit-hud {
    top: 61%;
  }
  .wave-number > strong {
    font-size: 34px;
  }
  .event-callout {
    top: 25%;
    font-size: 22px;
  }
}
@media (max-height: 720px) and (max-width: 720px) {
  .module-rail {
    bottom: 208px;
  }
  .battle-controls {
    bottom: 144px;
  }
  .upgrade-dock {
    bottom: 48px;
  }
  .upgrade-row {
    height: 72px;
  }
  .time-controls {
    bottom: -133px;
  }
  .world-caption {
    display: none;
  }
  .orbit-hud {
    top: 25%;
  }
  .health-hud {
    margin-top: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media(max-width:720px){.module-button>.module-name{display:block;position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:7px;color:#a3b7cd;white-space:nowrap}.module-grid{margin-bottom:13px}.expand-button>span:nth-child(2){display:block;max-width:40px}.expand-button strong{font-size:6px;line-height:1.6;letter-spacing:1px}.expand-button small{display:none}}
