:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
  --bg: #122b33;
  --panel: #152e38f7;
  --line: #42626c;
  --muted: #9fb8bc;
  --text: #ecf0e1;
  --blue: #8ed2db;
  --amber: #efbd78;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #25434d;
  border: 1px solid #54707a;
  border-radius: 6px;
  padding: 13px 15px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  transition:
    background 0.12s,
    border-color 0.12s,
    transform 0.12s;
}
button:hover {
  background: #355761;
  border-color: #a3c1c3;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
select {
  color: var(--text);
  background: #1a3641;
  border: 1px solid #4d6a75;
  border-radius: 6px;
  padding: 12px;
  font-size: 9px;
  letter-spacing: 0.08em;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
#arena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.screen {
  position: fixed;
  inset: 0;
  overflow: auto;
  z-index: 2;
}
.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: #0a202be8;
  backdrop-filter: blur(7px);
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #a9c5c9;
  font-weight: 650;
}
.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 7px;
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--amber);
  border-color: var(--amber);
  color: #253638;
  font-size: 11px;
  padding: 17px 19px;
  width: 100%;
}
.primary:hover {
  background: #f7cf94;
  border-color: #f7cf94;
}
.primary > span:last-child {
  font-size: 20px;
  line-height: 1;
}
.primary kbd {
  font:
    8px ui-monospace,
    monospace;
  border: 1px solid #52645c66;
  padding: 4px;
  border-radius: 3px;
}
.quiet {
  background: none;
  color: #b8cdd0;
}
.text-button {
  background: none;
  border: 0;
  color: #a9c1c7;
  padding: 9px 0;
  font-size: 9px;
}
.close {
  font-size: 25px;
  font-weight: 400;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}
.small-copy {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.panel {
  width: min(440px, 100%);
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 20px 100px #03142155;
}
.panel h2 {
  font-size: 31px;
  letter-spacing: -0.05em;
  margin: 22px 0 26px;
}
.panel h3 {
  font-size: 13px;
  margin-top: 25px;
}
.panel > button {
  margin-top: 10px;
  width: 100%;
}
.panel small {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  display: block;
  margin-top: 15px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.version {
  display: block;
  font-size: 8px;
  margin-top: 25px;
  letter-spacing: 0.1em;
  color: #86a9b2;
}
.segmented {
  display: flex;
  border: 1px solid #4d6972;
  border-radius: 6px;
  overflow: hidden;
  background: #18343d;
}
.segmented button {
  border: 0;
  border-radius: 0;
  font-size: 9px;
  padding: 12px;
  flex: 1;
  background: none;
  color: #a9c3ca;
}
.segmented .selected {
  background: #42636a;
  color: #e6ebd8;
}
.setting-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdcdd0;
  font-size: 11px;
  margin: 18px 0;
}
.setting-check input {
  accent-color: var(--blue);
}
#menu {
  padding: 48px max(6vw, 30px) 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  background: linear-gradient(
    90deg,
    #0b2430f9 0%,
    #0c2632ee 31%,
    #0d2b3277 62%,
    #0d2b3219
  );
}
.menu-wrap {
  width: 405px;
  max-width: 100%;
  flex-shrink: 0;
}
h1 {
  font-size: 89px;
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 950;
  margin: 28px 0 22px;
}
h1 > span {
  color: var(--amber);
  font-size: 0.84em;
}
h1 .dot {
  color: var(--blue);
}
.intro {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  color: #dce8de;
}
.description {
  font-size: 12px;
  line-height: 1.8;
  color: #a6c0c7;
  margin: 0 0 22px;
}
.map-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.map-card {
  padding: 5px;
  background: #1a3842be;
  border-color: #52717b55;
  border-radius: 6px;
  text-align: left;
  letter-spacing: 0;
}
.map-card.selected {
  border-color: var(--blue);
}
.map-card canvas {
  width: 100%;
  height: 53px;
  display: block;
  border-radius: 3px;
  opacity: 0.8;
}
.map-card b {
  display: block;
  font-size: 7px;
  color: #cfdbd4;
  margin: 7px 4px 3px;
  letter-spacing: 0.05em;
}
.map-card small {
  font-size: 7px;
  color: #91adb9;
  margin-left: 4px;
}
.run-options {
  display: flex;
  gap: 8px;
}
.run-options .segmented {
  flex: 1;
}
.run-options select {
  width: 40%;
}
.cash-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  color: #c4d5cf;
  font-size: 9px;
  letter-spacing: 0.07em;
}
.cash-choice input {
  accent-color: var(--blue);
  margin-top: 1px;
}
.cash-choice small {
  display: block;
  font-size: 8px;
  letter-spacing: 0;
  color: #8faeb9;
  margin-top: 4px;
}
.armory-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: #193942d9;
  margin-top: 9px;
  padding: 14px 16px;
  font-size: 9px;
}
.armory-button span {
  font-size: 8px;
  color: var(--amber);
}
#continue {
  background: var(--blue);
  border-color: var(--blue);
  margin-bottom: 8px;
}
#continue:not([hidden]) ~ #play {
  background: #203d48;
  color: #d3dfd8;
  border-color: #5c7981;
  padding: 13px 16px;
  font-size: 10px;
}
.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #91acb9;
  font-size: 8px;
  gap: 12px;
  margin-top: 10px;
}
.menu-footer button {
  border: 0;
  background: none;
  font-size: 8px;
  padding: 8px 0;
  color: #bfd2d3;
}
.side-note {
  align-self: flex-end;
  margin: 0 0 40px auto;
  width: 287px;
  background: #19343de3;
  border: 1px solid #aacbc433;
  padding: 24px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.side-note > div {
  display: flex;
  gap: 13px;
  margin-top: 24px;
}
.side-note > div > b {
  color: var(--blue);
  font:
    11px ui-monospace,
    monospace;
}
.side-note > div:nth-of-type(2) > b {
  color: var(--amber);
}
.side-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.8;
  color: #acc3c7;
}
.side-note strong {
  display: block;
  font-size: 9px;
  color: #dce5db;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.side-note span:not(.eyebrow) {
  font-size: 9px;
}
.side-note hr {
  border: 0;
  height: 1px;
  background: #6d919442;
  margin: 22px 0;
}
.side-note footer {
  font-size: 7px;
  letter-spacing: 0.05em;
  color: #97b3bc;
  margin-top: 24px;
}
.menu-caption {
  position: absolute;
  left: max(6vw, 30px);
  right: max(6vw, 30px);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #a0bdb29a;
  gap: 20px;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#hud button,
#hud canvas,
#hud aside {
  pointer-events: auto;
}
.wallet {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #163039eb;
  border: 1px solid #a7c9c14d;
  border-radius: 7px;
  min-width: 230px;
  --hero: var(--blue);
}
.wallet.p2 {
  right: 22px;
  left: auto;
  --hero: var(--amber);
}
.wallet > b {
  font:
    11px ui-monospace,
    monospace;
  color: var(--hero);
  border: 1px solid #adc2b944;
  border-radius: 4px;
  padding: 6px;
}
.wallet > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet > div > span {
  font-size: 6px;
  letter-spacing: 0.09em;
  color: #9fb8bc;
}
.wallet strong {
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #e2e7cd;
  font-variant-numeric: tabular-nums;
}
.wallet > small {
  font-size: 6px;
  letter-spacing: 0.04em;
  margin-left: 9px;
  color: var(--hero);
}
.wave-panel {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 205px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wave-panel > span {
  font-size: 7px;
  letter-spacing: 0.17em;
  color: #d5dcc7;
  text-shadow: 0 1px 6px #102c28;
}
.wave-panel > strong {
  font-size: 24px;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 8px #102a26;
}
.base-label {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.07em;
  color: #d6dfc1;
  margin-top: 3px;
}
.base-track {
  height: 5px;
  border: 1px solid #143c3455;
  background: #29484488;
  border-radius: 4px;
  overflow: hidden;
}
.base-track > i {
  display: block;
  height: 100%;
  width: 100%;
  background: #b3d99b;
  transition: width 0.15s;
}
.wave-panel > small {
  font-size: 6px;
  letter-spacing: 0.06em;
  color: #e4dfc3;
  text-shadow: 0 1px 3px #174031;
  margin-top: 2px;
}
#boss-panel {
  position: absolute;
  left: 50%;
  top: 127px;
  transform: translateX(-50%);
  width: min(340px, 35vw);
  font-size: 7px;
  letter-spacing: 0.07em;
  color: #f5d3b0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #233e43ad;
  border-radius: 4px;
  padding: 7px 9px;
}
#boss-panel i {
  display: block;
  width: 100%;
  height: 4px;
  background: #624e4a;
  margin-top: 7px;
  border-radius: 3px;
  overflow: hidden;
}
#boss-panel i > b {
  display: block;
  height: 100%;
  width: 100%;
  background: #e4ac82;
}
#boss-panel small {
  font-size: 6px;
  color: #eac598;
}
#inspector {
  position: absolute;
  right: 22px;
  top: 119px;
  width: 245px;
  padding: 17px;
  background: #15313def;
  border: 1px solid #9ab9b744;
  border-radius: 9px;
  backdrop-filter: blur(7px);
}
.inspect-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  letter-spacing: 0.07em;
  color: #a3c4c8;
}
.inspect-top > small {
  font:
    8px ui-monospace,
    monospace;
  color: #7c9aa9;
}
.inspect-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 8px;
}
.inspect-title canvas {
  width: 57px;
  height: 57px;
  flex-shrink: 0;
}
.inspect-title h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin: 0 0 5px;
}
.inspect-title span {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #a7c0c6;
}
#inspect-desc {
  font-size: 9px;
  line-height: 1.8;
  color: #a6bdc7;
  margin: 9px 0 14px;
}
.inspect-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.inspect-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inspect-stats b {
  font:
    13px ui-monospace,
    monospace;
  color: #dce5d1;
}
.inspect-stats span {
  font-size: 6px;
  color: #7e9faa;
  letter-spacing: 0.08em;
}
#inspector .primary {
  font-size: 9px;
  padding: 13px 12px;
}
#inspector .primary > span {
  font-size: 9px;
}
#ability-wrap {
  margin-top: 10px;
}
#ability-button {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #25424e;
  border-color: #70889255;
}
#ability-button > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
#ability-name {
  font-size: 8px;
  letter-spacing: 0.06em;
}
#ability-state {
  font-size: 6px;
  letter-spacing: 0.04em;
  color: #a5c2c8;
}
#ability-button > kbd {
  font:
    8px ui-monospace,
    monospace;
  color: #a7bec7;
}
#ability-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #b2c5ab;
  width: 100%;
}
#ability-desc {
  font-size: 8px;
  line-height: 1.7;
  color: #8faeb9;
  margin: 8px 1px 0;
}
#tower-tools {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}
#tower-tools button {
  font-size: 6px;
  padding: 8px 7px;
  flex: 1;
  background: none;
}
#sell {
  color: #d6ba9c;
}
#placement-reason {
  font-size: 8px;
  line-height: 1.6;
  color: #ddba99;
  margin: 12px 0 0;
  min-height: 12px;
}
#minimap {
  position: absolute;
  right: 22px;
  bottom: 204px;
  width: 215px;
  height: 135px;
  border-radius: 7px;
  border: 1px solid #9cb5b644;
  background: #142d3cec;
  opacity: 0.95;
}
#wave-action {
  position: absolute;
  left: 50%;
  bottom: 207px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}
#start-wave {
  width: 245px;
  font-size: 10px;
  padding: 14px 15px;
  box-shadow: 0 8px 25px #13342833;
}
#wave-preview {
  font-size: 7px;
  background: #15313dc9;
  color: #b2c9c6;
  padding: 7px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
#notices {
  position: absolute;
  left: 50%;
  top: 170px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.notice {
  font-size: 9px;
  letter-spacing: 0.02em;
  background: #193b47eb;
  border: 1px solid #b8c69a66;
  color: #ead5a9;
  padding: 9px 14px;
  border-radius: 5px;
  white-space: nowrap;
}
.hud-footer {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #cadac3;
  font:
    8px ui-monospace,
    monospace;
  text-shadow: 0 1px 3px #13342c;
}
.hud-footer > span:nth-child(2) {
  margin: auto;
  font:
    6px ui-sans-serif,
    system-ui;
  letter-spacing: 0.08em;
}
.hud-footer button {
  font-size: 7px;
  padding: 8px 10px;
  background: #15303fdb;
}
#hotbars {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#hotbars.solo {
  grid-template-columns: 1fr;
  width: min(520px, calc(100% - 44px));
}
.hotbar {
  --hero: var(--blue);
  padding: 10px 12px 12px;
  background: #153440e8;
  border: 1px solid #aac7bd44;
  border-radius: 8px;
  backdrop-filter: blur(7px);
}
.hotbar.p2 {
  --hero: var(--amber);
}
.hotbar.active {
  border-color: var(--hero);
}
.hotbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--hero);
  font-size: 7px;
  letter-spacing: 0.06em;
  margin-bottom: 9px;
}
.hotbar-header span {
  color: #8fb1ba;
  font-size: 6px;
}
.tower-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.tower-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #26434d;
  border-color: #7d9b9a26;
  padding: 6px 3px 7px;
  letter-spacing: 0;
  min-width: 0;
  border-radius: 5px;
}
.tower-slot.selected {
  border-color: var(--hero);
  background: #38575c;
}
.tower-slot kbd {
  position: absolute;
  top: 5px;
  left: 6px;
  font:
    7px ui-monospace,
    monospace;
  color: #9dbcc2;
}
.tower-slot canvas {
  width: 42px;
  height: 42px;
}
.tower-slot b {
  font-size: 8px;
  white-space: nowrap;
}
.tower-slot small {
  font:
    8px ui-monospace,
    monospace;
  color: #e2cb9c;
}
.tower-slot.poor {
  opacity: 0.55;
}
#away {
  position: absolute;
  left: 50%;
  top: 175px;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #d5d9ba;
  background: #163b49db;
  padding: 8px 11px;
  border-radius: 4px;
  white-space: nowrap;
}
.armory-wrap {
  width: min(1080px, 100%);
  padding: 27px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  max-height: 92vh;
  overflow: auto;
}
.armory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.armory-header h2 {
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 9px 0 20px;
}
.armory-controls {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 20px;
}
.armory-controls > strong {
  color: var(--amber);
  font:
    14px ui-monospace,
    monospace;
}
.armory-controls > span {
  font-size: 9px;
  color: #8eacb8;
}
.armory-controls .segmented {
  min-width: 200px;
}
.armory-controls .segmented button {
  font-size: 8px;
}
#loadout-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 570px;
}
.loadout-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
}
.loadout-slot.selected {
  border-color: var(--blue);
  background: #355760;
}
.loadout-slot canvas {
  width: 33px;
  height: 33px;
}
.loadout-slot span {
  font-size: 8px;
  white-space: nowrap;
}
.loadout-slot small {
  display: block;
  color: #8caab5;
  font-size: 6px;
  margin-top: 5px;
}
#replace-hint {
  font-size: 10px;
  margin: 12px 0 20px;
}
#tower-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.catalog-card {
  border: 1px solid #a3bdb62c;
  background: #223e4a;
  border-radius: 7px;
  padding: 15px;
}
.catalog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.catalog-head canvas {
  width: 47px;
  height: 47px;
}
.catalog-head h3 {
  font-size: 14px;
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}
.catalog-head span {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #9ab6c0;
}
.catalog-card p {
  font-size: 9px;
  line-height: 1.7;
  color: #9db8c2;
  min-height: 33px;
  margin: 10px 0;
}
.catalog-card > small {
  display: block;
  font-size: 7px;
  color: #caad83;
  margin: 10px 0;
}
.catalog-card > button {
  width: 100%;
  font-size: 8px;
  padding: 10px;
}
.catalog-card.locked {
  background: #1a3442;
}
.catalog-card.locked canvas {
  opacity: 0.5;
}
.catalog-card .unlock {
  color: #21363d;
  background: var(--amber);
  border-color: var(--amber);
}
.catalog-card.equipped {
  border-color: #9ac1b666;
}
.result-panel {
  text-align: center;
  width: min(490px, 100%);
}
.result-stats {
  display: flex;
  justify-content: space-around;
  gap: 17px;
  padding: 15px 0 28px;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-stats strong {
  font-size: 31px;
  letter-spacing: -0.045em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.result-stats span {
  font-size: 6px;
  color: #88aab7;
  letter-spacing: 0.07em;
}
.control-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  color: #a4bec8;
  font-size: 11px;
  line-height: 2;
}
.control-guide b {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.control-guide > p:last-child b {
  color: var(--amber);
}
#settings {
  z-index: 8;
}
#credits {
  z-index: 9;
}
#armory {
  z-index: 6;
}
#toast {
  position: fixed;
  bottom: 218px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #f0debb;
  background: #153946f0;
  border: 1px solid #c7b28288;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 11px;
  pointer-events: none;
  max-width: 90vw;
}
#toast:empty {
  display: none;
}
@media (max-height: 820px) and (min-width: 1000px) {
  #menu {
    padding-top: 27px;
  }
  h1 {
    font-size: 73px;
    margin: 22px 0 18px;
  }
  .intro {
    font-size: 21px;
  }
  .description {
    margin-bottom: 15px;
  }
  .map-options {
    margin: 13px 0;
  }
  .map-card canvas {
    height: 43px;
  }
  .cash-choice {
    margin: 13px 0;
  }
  .side-note {
    margin-bottom: 20px;
  }
  #inspector {
    padding: 14px;
    width: 225px;
  }
  .inspect-title {
    margin-top: 11px;
  }
  .inspect-title canvas {
    width: 45px;
    height: 45px;
  }
  .inspect-title h2 {
    font-size: 18px;
  }
  #inspect-desc {
    font-size: 8px;
    margin-bottom: 10px;
  }
  #ability-desc {
    font-size: 7px;
  }
  #minimap {
    width: 170px;
    height: 107px;
    bottom: 198px;
  }
  #wave-action {
    bottom: 198px;
  }
  .tower-slot canvas {
    width: 36px;
    height: 36px;
  }
  .hotbar {
    padding: 9px 10px;
  }
  .hotbar-header {
    margin-bottom: 7px;
  }
}
@media (max-width: 1100px) {
  .side-note {
    display: none;
  }
  #menu {
    justify-content: center;
  }
  #inspector {
    width: 205px;
    right: 15px;
    padding: 13px;
  }
  .inspect-title h2 {
    font-size: 17px;
  }
  .inspect-title canvas {
    width: 45px;
    height: 45px;
  }
  #inspect-desc {
    font-size: 8px;
  }
  .inspect-stats b {
    font-size: 11px;
  }
  .inspect-stats span {
    font-size: 5px;
  }
  #ability-desc {
    font-size: 7px;
  }
  #tower-tools button {
    font-size: 5px;
    padding: 7px 4px;
  }
  #minimap {
    width: 165px;
    height: 104px;
    right: 16px;
  }
  .wallet {
    left: 16px;
    min-width: 190px;
    padding: 10px;
  }
  .wallet.p2 {
    right: 16px;
  }
  .wallet > small {
    font-size: 5px;
    margin-left: 0;
  }
  .wallet strong {
    font-size: 20px;
  }
  #hotbars {
    width: calc(100% - 32px);
    gap: 12px;
  }
  .tower-slot b {
    font-size: 7px;
  }
  .tower-slot canvas {
    width: 35px;
    height: 35px;
  }
  .tower-slot small {
    font-size: 7px;
  }
  .hotbar-header span {
    font-size: 5px;
  }
  .hotbar-header {
    font-size: 6px;
  }
  .hud-footer > span:nth-child(2) {
    font-size: 5px;
  }
  .wave-panel {
    top: 19px;
    width: 175px;
  }
  .wave-panel strong {
    font-size: 21px;
  }
  #tower-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  #menu {
    padding: 25px 20px 60px;
  }
  h1 {
    font-size: 71px;
  }
  .menu-caption {
    left: 20px;
    right: 20px;
    font-size: 6px;
  }
  .wallet {
    min-width: 0;
    width: 150px;
    gap: 8px;
  }
  .wallet > small {
    display: none;
  }
  .wallet strong {
    font-size: 18px;
  }
  .wallet > div > span {
    font-size: 5px;
  }
  .wallet > b {
    font-size: 9px;
    padding: 4px;
  }
  .wave-panel {
    top: 90px;
    width: 150px;
  }
  .wave-panel strong {
    font-size: 17px;
  }
  .wave-panel > span {
    font-size: 6px;
  }
  #inspector {
    top: 185px;
    right: 12px;
    width: 185px;
    padding: 10px;
  }
  .inspect-title {
    gap: 7px;
  }
  .inspect-title h2 {
    font-size: 15px;
  }
  #inspect-desc {
    font-size: 7px;
  }
  .inspect-stats {
    gap: 7px;
  }
  #ability-desc {
    display: none;
  }
  #placement-reason {
    font-size: 7px;
  }
  #inspector .primary {
    font-size: 7px;
    padding: 9px;
  }
  #inspector .primary > span {
    font-size: 8px;
  }
  #minimap {
    display: none;
  }
  #hotbars {
    bottom: 50px;
    gap: 8px;
    width: calc(100% - 20px);
  }
  .hotbar {
    padding: 7px;
  }
  .hotbar-header {
    font-size: 5px;
  }
  .hotbar-header span {
    display: none;
  }
  .tower-slots {
    gap: 3px;
  }
  .tower-slot canvas {
    width: 27px;
    height: 27px;
  }
  .tower-slot b {
    font-size: 5px;
  }
  .tower-slot kbd {
    font-size: 5px;
    left: 3px;
    top: 3px;
  }
  .tower-slot small {
    font-size: 6px;
  }
  .tower-slot {
    padding: 6px 1px;
  }
  .hud-footer {
    left: 12px;
    right: 12px;
  }
  .hud-footer > span:nth-child(2) {
    display: none;
  }
  .hud-footer button {
    margin-left: auto;
  }
  #wave-action {
    bottom: 164px;
    left: 31%;
    max-width: 190px;
  }
  #start-wave {
    width: 180px;
    padding: 12px;
    font-size: 8px;
  }
  #wave-preview {
    font-size: 6px;
    max-width: 180px;
    white-space: normal;
    text-align: center;
  }
  #boss-panel {
    top: 156px;
    width: 50vw;
  }
  #notices {
    top: 157px;
    max-width: 95vw;
  }
  .notice {
    font-size: 7px;
    padding: 8px 10px;
  }
  #tower-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .catalog-card {
    padding: 11px;
  }
  .catalog-head {
    gap: 7px;
  }
  .catalog-head h3 {
    font-size: 12px;
  }
  .catalog-head canvas {
    width: 35px;
    height: 35px;
  }
  .catalog-card p {
    font-size: 8px;
  }
  .armory-wrap {
    padding: 18px;
  }
  .armory-controls {
    gap: 10px;
    flex-wrap: wrap;
  }
  .armory-controls > span {
    font-size: 8px;
  }
  .armory-controls .segmented {
    min-width: 170px;
  }
  .armory-header h2 {
    font-size: 27px;
  }
  #loadout-slots {
    gap: 4px;
  }
  .loadout-slot {
    padding: 6px;
    flex-direction: column;
    gap: 5px;
  }
  .loadout-slot span {
    font-size: 6px;
  }
  .loadout-slot canvas {
    width: 25px;
    height: 25px;
  }
  .loadout-slot small {
    font-size: 5px;
  }
  .overlay {
    padding: 15px;
  }
}
