@font-face {
  font-family: Silkscreen;
  src: url('./fonts/Silkscreen-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('./fonts/Barlow-SemiBold.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #181620;
  --panel: #25212e;
  --deep: #17151e;
  --line: #49404d;
  --cream: #f6ead5;
  --muted: #b3a5b4;
  --gold: #ffba76;
  --teal: #91e2d0;
  --pixel: Silkscreen, monospace;
  --body: Barlow, system-ui, sans-serif;
  --gutter: clamp(8px, 2.1vmin, 24px);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: repeating-linear-gradient(145deg, #16141d 0px, #16141d 4px, #17151e 4px, #17151e 6px);
  color: var(--cream);
  font: 16px/1.26 var(--body);
  display: grid;
  place-items: center;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button {
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid #fff4bc;
  outline-offset: 3px;
  z-index: 5;
}
button:disabled {
  cursor: default;
}
button,
canvas {
  -webkit-tap-highlight-color: transparent;
}
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
[hidden] {
  display: none !important;
}
#console {
  width: min(calc(100% - var(--gutter) * 2), 1630px);
  height: calc(100% - var(--gutter) * 2);
  height: calc(100dvh - var(--gutter) * 2);
  max-height: 1100px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  position: relative;
  background: var(--panel);
  border: 1px solid #4d424e;
  box-shadow:
    0 6px 0 #100f17,
    0 0 0 2px #17151e,
    0 9px 35px #0f0d1666;
}
.topbar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.9vw, 54px);
  padding: clamp(13px, 2.15vh, 24px) clamp(15px, 2vw, 34px);
  background: linear-gradient(180deg, #302937, #272330 85%);
  border-top: 2px solid #5f4c57;
  border-bottom: 1px solid #514354;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.85vw, 15px);
  margin-right: auto;
  flex-shrink: 0;
}
#brandMark {
  width: clamp(43px, 4.2vw, 65px);
  height: auto;
  filter: drop-shadow(2px 3px 0 #17141e);
}
.word-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#wordmark {
  display: block;
  width: clamp(175px, 17vw, 265px);
  height: auto;
}
.tuner {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px/1 var(--pixel);
  letter-spacing: 1px;
  color: #c3aab4;
  padding-left: 4px;
}
.dial {
  height: 5px;
  flex: 1;
  background: repeating-linear-gradient(
    90deg,
    #9a7888 0px,
    #9a7888 2px,
    transparent 2px,
    transparent 6px
  );
  position: relative;
  opacity: 0.8;
}
.dial:after {
  content: '';
  position: absolute;
  height: 8px;
  width: 3px;
  background: #ffb981;
  left: 63%;
  top: -2px;
  box-shadow: 1px 0 #443342;
}
.meters {
  display: flex;
  align-items: center;
  flex: 0 1 460px;
  justify-content: space-between;
}
.meter {
  min-width: 78px;
  position: relative;
  border-left: 1px solid #534653;
  padding: 0 clamp(12px, 1.8vw, 29px);
  flex: 1;
}
.meter .label,
.panel-label,
.comms-label,
.phase-chip,
.sector-kicker,
.eyebrow,
.tiny-label {
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.meter .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c3b4be;
  font-size: clamp(9px, 0.86vw, 12px);
  white-space: nowrap;
  letter-spacing: 0.6px;
}
.label canvas {
  width: 14px;
  height: 14px;
}
.meter strong {
  font: clamp(20px, 2.1vw, 30px)/1.2 var(--pixel);
  display: block;
  white-space: nowrap;
  letter-spacing: -1.6px;
}
.meter strong small {
  font-size: 0.64em;
  color: #a89aad;
  letter-spacing: -1.3px;
}
.meter.scrap strong {
  color: #ffd18d;
}
.hp-rail {
  height: 3px;
  background: #54414e;
  margin-top: 1px;
  width: 68px;
  position: relative;
}
.hp-rail i {
  background: #e79299;
  width: 100%;
  height: 100%;
  display: block;
}
.hp-rail:after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(8.333% - 1px),
    #302633 calc(8.333% - 1px),
    #302633 8.333%
  );
}
.tools {
  display: flex;
  gap: 9px;
  padding-left: clamp(0px, 0.8vw, 16px);
}
.key {
  border: 1px solid #5a4f5c;
  background: linear-gradient(#3d3544, #302a37);
  box-shadow:
    inset 0 1px #685766,
    0 3px 0 #18151e;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.12s,
    transform 0.12s;
}
.key:hover {
  background: #4b3f4e;
  border-color: #93818a;
}
.key:active,
.card:active,
.action:active,
.modal-btn:active {
  transform: translateY(2px);
}
.icon-key {
  width: 42px;
  height: 40px;
}
.icon-key canvas {
  width: 21px;
  height: 21px;
}
#fieldWrap {
  position: relative;
  min-height: 0;
  margin: 0 7px;
  border: 2px solid #15131d;
  border-top-width: 3px;
  border-bottom-width: 3px;
  overflow: hidden;
  isolation: isolate;
  background: #814d66;
}
#field {
  height: 100%;
  width: 100%;
  display: block;
  touch-action: none;
}
#fieldWrap:after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  box-shadow:
    inset 0 2px 0 #1c102940,
    inset 0 -3px 0 #281c3040;
}
#pads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.pad-hit {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -52%);
  width: clamp(36px, 4.7vw, 72px);
  height: clamp(34px, 6.6vh, 68px);
  border-radius: 24%;
  background: transparent;
}
.pad-hit.occupied {
  transform: translate(-50%, -70%);
  height: clamp(43px, 8.6vh, 88px);
}
.pad-hit:focus-visible {
  outline: 2px dashed #d4f1d8;
  outline-offset: -2px;
}
.aim-mode #pads {
  pointer-events: none;
}
.aim-mode .pad-hit {
  pointer-events: none;
}
.aim-mode #field {
  cursor: crosshair;
}
.sector-tag {
  position: absolute;
  left: clamp(12px, 1.8vw, 32px);
  top: clamp(12px, 2.4vh, 24px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #fff4db;
  text-align: left;
  background: linear-gradient(90deg, #2c1c38bb, #32203b99 75%, #35213955);
  padding: 9px 12px 9px 11px;
  border-left: 3px solid #f8b485;
  box-shadow: 0 2px 0 #291c3433;
  transition: background 0.15s;
}
.sector-tag:hover {
  background: #2b1d37d9;
}
.sector-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #ffce96;
}
.sector-bars {
  height: 8px;
  width: 15px;
  background: repeating-linear-gradient(
    90deg,
    #efac83 0px,
    #efac83 3px,
    transparent 3px,
    transparent 5px
  );
  transform: skew(-20deg);
}
.sector-title {
  font: clamp(17px, 1.8vw, 29px)/1.03 var(--pixel);
  letter-spacing: -1.7px;
  text-shadow: 2px 2px #33253d;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sector-caret {
  font: 14px var(--body);
  color: #e8c8bc;
}
.phase-chip {
  position: absolute;
  right: clamp(11px, 1.8vw, 28px);
  top: clamp(12px, 2.4vh, 24px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(9px, 0.83vw, 12px);
  letter-spacing: 0.8px;
  padding: 8px 11px;
  border: 1px solid #bb8b9175;
  background: #2c243bcb;
  color: #ffe1b3;
  box-shadow: 0 2px 0 #34223755;
}
.lamp {
  height: 7px;
  width: 7px;
  border-radius: 1px;
  background: #ffbf78;
  box-shadow: 0 0 7px #fbc08070;
}
#phase.live {
  color: #b4fbe0;
}
.live .lamp {
  background: #86f8cf;
  box-shadow: 0 0 8px #80ffe288;
  animation: blink 1.8s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.55;
  }
}
.view-corner {
  height: 10px;
  width: 10px;
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: 0.8;
  border-color: #e4b49f;
  border-style: solid;
  border-width: 0;
}
.view-corner.tl {
  top: 3px;
  left: 3px;
  border-left-width: 2px;
  border-top-width: 2px;
}
.view-corner.tr {
  top: 3px;
  right: 3px;
  border-right-width: 2px;
  border-top-width: 2px;
}
.view-corner.bl {
  bottom: 3px;
  left: 3px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}
.view-corner.br {
  bottom: 3px;
  right: 3px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}
#waveBar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #261d33a8;
  z-index: 2;
}
#waveBar i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #79cdc3, #c2f2c5);
  transition: width 0.22s;
}
#banner {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -10px);
  background: #262030ed;
  border: 1px solid #9a7c90;
  box-shadow: 3px 3px #241b3266;
  padding: 7px 14px;
  font: clamp(11px, 1.2vw, 17px) var(--pixel);
  color: #ffe0a6;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: 0.18s;
  white-space: nowrap;
}
#banner.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.comms {
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(90deg, #312a3b, #2a2533 70%);
  min-height: 44px;
  padding: 4px clamp(15px, 2vw, 32px);
  border-bottom: 1px solid #110f19;
  box-shadow: inset 0 -1px #4e4254;
  color: #e4d6ce;
}
#operator {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
}
.comms-label {
  font-size: 10px;
  color: #e6b694;
  white-space: nowrap;
  letter-spacing: 1.2px;
}
.comms-split {
  flex: 0 0 1px;
  height: 14px;
  background: #766174;
}
#commsText {
  line-height: 1.16;
  font-size: clamp(13px, 1.13vw, 17px);
  flex: 1;
}
.comms-wave {
  height: 13px;
  width: 56px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    90deg,
    #d19285 0,
    #d19285 2px,
    transparent 2px,
    transparent 4px
  );
  clip-path: polygon(
    0 42%,
    10% 40%,
    15% 23%,
    25% 44%,
    32% 38%,
    38% 3%,
    45% 28%,
    50% 44%,
    57% 19%,
    66% 33%,
    72% 45%,
    79% 26%,
    84% 39%,
    100% 43%,
    100% 58%,
    85% 58%,
    79% 79%,
    72% 57%,
    66% 69%,
    59% 81%,
    50% 58%,
    45% 76%,
    38% 100%,
    32% 64%,
    25% 56%,
    17% 83%,
    10% 60%,
    0 60%
  );
}
#guide {
  height: 25px;
  min-width: 25px;
  font: 13px var(--pixel);
  color: #c6b4c3;
  border: 1px solid #645669;
  box-shadow: inset 0 1px #80708044;
  border-radius: 3px;
}
#guide:hover {
  color: #ffe1b0;
  background: #51414e;
}
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 25%);
  gap: clamp(15px, 1.9vw, 35px);
  padding: clamp(12px, 1.9vh, 22px) clamp(14px, 1.7vw, 29px) clamp(16px, 2.1vh, 25px);
  background: linear-gradient(140deg, #2c2634, #231f2c);
  border-bottom: 2px solid #3d3341;
  position: relative;
}
.rack,
.transport {
  min-width: 0;
}
.panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 1.3px;
  color: #d9c8c8;
  white-space: nowrap;
  margin-bottom: 9px;
}
.panel-label > canvas {
  width: 14px;
  height: 14px;
}
.panel-label i {
  height: 1px;
  background: #514352;
  box-shadow: 0 1px #1e1a26;
  flex: 1;
  margin-left: 2px;
}
#rackHint {
  font: 10px var(--body);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #b29fae;
}
#cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 13px);
}
.card {
  --accent: #f4ae75;
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.78vw, 14px);
  border: 1px solid #615460;
  border-bottom: 2px solid #554959;
  border-radius: 4px;
  background: linear-gradient(135deg, #37303e, #2e2938);
  min-width: 0;
  position: relative;
  box-shadow:
    inset 0 1px #78627444,
    0 3px 0 #15131d;
  padding: 8px clamp(7px, 0.8vw, 14px);
  height: clamp(80px, 11.4vh, 111px);
  text-align: left;
  transition:
    background 0.13s,
    border 0.13s,
    transform 0.12s;
}
.card.chosen {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px #e6a66f4d,
    0 3px 0 #17131d;
  background: linear-gradient(120deg, #4c3941, #392e39);
  color: #fff4d9;
}
.card.chosen:after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.55;
}
.card:hover {
  border-color: var(--accent);
}
.card-pic {
  display: block;
  height: clamp(52px, 5.1vw, 79px);
  width: clamp(48px, 4.9vw, 75px);
  flex-shrink: 0;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 70%, #76637245, transparent 72%),
    repeating-linear-gradient(0deg, #1817232c 0, #1817232c 1px, transparent 1px, transparent 4px);
  border: 1px solid #8e758332;
  border-radius: 2px;
  box-shadow: inset 0 0 18px #201c2b44;
}
.card-pic canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.card-name {
  font: 700 clamp(16px, 1.55vw, 24px)/1.04 var(--body);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.card-kind {
  font: clamp(11px, 1vw, 15px)/1.17 var(--body);
  margin-top: 4px;
  color: #ccbdc6;
  white-space: nowrap;
}
.price {
  font: clamp(12px, 1.05vw, 16px)/1.1 var(--pixel);
  color: #ffd59c;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.8px;
}
.price canvas {
  width: 13px;
  height: 13px;
}
.card .price {
  margin-top: 8px;
}
.shortcut {
  position: absolute;
  right: 5px;
  top: 3px;
  font: 8px var(--pixel);
  color: #c4acbc6b;
}
.card.poor .price {
  color: #ad939c;
}
.card.poor .price canvas {
  filter: saturate(0.25);
}
.transport {
  border-left: 1px solid #524454;
  padding-left: clamp(14px, 1.8vw, 28px);
  display: flex;
  flex-direction: column;
}
.controls-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.action {
  background: linear-gradient(#ffc389, #f3a268);
  border: 1px solid #ffcc98;
  border-bottom: 3px solid #ab6753;
  box-shadow:
    inset 0 1px #ffe4ab,
    0 3px 0 #16131c;
  border-radius: 4px;
  color: #34232f;
  min-height: clamp(42px, 6.7vh, 65px);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: clamp(12px, 1.18vw, 18px)/1.1 var(--pixel);
  letter-spacing: -0.8px;
  white-space: nowrap;
  text-shadow: 0 1px #ffdab066;
}
.action canvas {
  width: 17px;
  height: 17px;
}
.action:hover {
  filter: brightness(1.07);
}
.action.pulse {
  background: linear-gradient(#a7ecdb, #71cebf);
  border-color: #b9ffdf;
  border-bottom-color: #448c8d;
  box-shadow:
    inset 0 1px #e7ffe2,
    0 3px 0 #16131c;
}
.action.charging {
  background: linear-gradient(90deg, #527778 var(--charge, 0%), #3d434e var(--charge, 0%));
  color: #d8e6d9;
  border: 1px solid #65757c;
  box-shadow:
    inset 0 1px #77878666,
    0 3px 0 #16131c;
}
.speed {
  min-width: 51px;
  flex-direction: column;
  gap: 1px;
  color: #e9d8c6;
  font: 13px var(--pixel);
  letter-spacing: -1px;
}
.speed canvas {
  width: 16px;
  height: 16px;
}
#scout {
  font: clamp(11px, 1.05vw, 15px)/1.13 var(--body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-align: left;
  color: #c7b4c0;
  flex: 1;
  min-height: 22px;
  padding-top: 5px;
}
#scout:hover {
  color: #ffe1b2;
}
.scout-ico {
  font: 18px var(--body);
  color: #d6ad99;
}
#inspector {
  min-height: clamp(80px, 11.4vh, 111px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #342d3b, #2c2735);
  border: 1px solid #6b5b69;
  border-left: 3px solid var(--unit);
  border-radius: 3px;
  padding: 8px 12px;
  box-shadow: 0 3px #18141e;
}
.inspect-id {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}
.inspect-id > canvas {
  height: 60px;
  width: 58px;
}
.inspect-id strong {
  display: block;
  font: 700 20px/1.1 var(--body);
}
.inspect-id small {
  display: block;
  color: #ccb8c6;
  font-size: 13px;
  margin-top: 3px;
}
.upgrade-key,
.sell-key,
.inspect-close {
  border: 1px solid #746274;
  border-radius: 3px;
  background: #403545;
  min-height: 43px;
  padding: 7px 11px;
  box-shadow: 0 2px #17121c;
}
.upgrade-key {
  background: #584340;
  border-color: #a78067;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffddb1;
  font-weight: bold;
}
.upgrade-key span small {
  display: block;
  font: 12px var(--body);
  color: #cfbbb7;
}
.upgrade-key .price {
  margin-top: 0;
  font-size: 12px;
}
.upgrade-key.poor {
  filter: saturate(0.5);
  opacity: 0.76;
}
.sell-key {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ccb8c5;
  font-size: 13px;
}
.sell-key canvas,
.inspect-close canvas {
  width: 12px;
  height: 12px;
}
.inspect-close {
  min-width: 26px;
  min-height: 28px;
  padding: 5px;
  box-shadow: none;
  background: transparent;
}
#overlay {
  position: fixed;
  inset: 0;
  background: #17121fc4;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vmin, 32px);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  touch-action: manipulation;
}
#dialog {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(145deg, #35303f, #26222f 72%);
  border: 1px solid #87727e;
  border-top: 3px solid #db9d7e;
  box-shadow:
    0 0 0 3px #201b29,
    0 7px 0 #100e17,
    0 14px 60px #0b09137a;
  padding: clamp(18px, 2.6vw, 34px);
  position: relative;
  border-radius: 3px;
  scrollbar-color: #776174 #292331;
}
#dialog.wide {
  width: min(790px, 100%);
}
.modal-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 15px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #f4bb93;
  margin-bottom: 7px;
  letter-spacing: 1.6px;
}
.eyebrow canvas {
  width: 13px;
  height: 13px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.modal-top h1 {
  font: clamp(21px, 2.5vw, 32px)/1.08 var(--pixel);
  letter-spacing: -1.7px;
  color: #fff1d2;
}
.dialog-x {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.dialog-x canvas {
  width: 14px;
  height: 14px;
}
.dialog-lede {
  font-size: 16px;
  color: #dfcfd0;
  line-height: 1.36;
  margin: 4px 0 16px;
}
.modal-btn {
  border: 1px solid #7d6778;
  background: linear-gradient(#463b4a, #38303f);
  border-radius: 3px;
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow:
    inset 0 1px #8f758144,
    0 3px #1a1621;
  font: 14px var(--pixel);
  letter-spacing: -0.5px;
}
.modal-btn.primary {
  background: linear-gradient(#ffca91, #eda16e);
  color: #362330;
  border-color: #ffce9d;
  box-shadow: 0 3px #885445;
}
.modal-btn:hover,
.option:hover,
.atlas-card:hover,
.mod-card:hover {
  filter: brightness(1.14);
}
.modal-btn canvas {
  width: 14px;
  height: 14px;
}
.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.modal-actions > button {
  flex: 1;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}
.option {
  border: 1px solid #65566a;
  background: #342c3c;
  border-radius: 3px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-height: 44px;
  font-size: 15px;
}
.option canvas {
  width: 16px;
  height: 16px;
}
.option b {
  margin-left: auto;
  color: #a8e0cd;
  font-size: 13px;
}
.mini-meter-row {
  display: flex;
  border: 1px solid #544457;
  margin: 14px 0;
  background: #211e2c;
}
.mini-meter-row > div {
  flex: 1;
  padding: 10px 12px;
  border-right: 1px solid #544457;
}
.mini-meter-row > div:last-child {
  border: 0;
}
.mini-meter-row small {
  color: #b7a5b6;
  font: 9px var(--pixel);
  display: block;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.mini-meter-row strong {
  font: 18px var(--pixel);
  color: #ffdcab;
}
.atlas-grid,
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.atlas-card,
.mod-card {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  text-align: left;
  border: 1px solid #6b576c;
  border-bottom: 3px solid #584657;
  background: #302a3a;
  border-radius: 3px;
  overflow: hidden;
}
.atlas-card.locked {
  filter: saturate(0.65);
  opacity: 0.75;
}
.atlas-card.current {
  border-color: #edb185;
}
.atlas-art {
  height: 77px;
  background-size: cover;
  background-position: center 21%;
  position: relative;
  image-rendering: pixelated;
}
.atlas-art > span {
  position: absolute;
  top: 5px;
  left: 6px;
  font: 10px var(--pixel);
  color: #ffe6bb;
  padding: 3px 5px;
  background: #241e32d6;
}
.atlas-info {
  display: block;
  padding: 9px 10px 11px;
}
.atlas-info strong {
  display: block;
  font-size: 19px;
  color: #ffe8c7;
}
.atlas-info small {
  display: block;
  margin-top: 3px;
  color: #bfacbb;
  font-size: 12px;
}
.daily-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  margin-top: 12px;
  text-align: left;
  background: linear-gradient(110deg, #37434a, #312c3c);
  border: 1px solid #698080;
  border-radius: 3px;
}
.daily-row canvas {
  width: 28px;
  height: 28px;
}
.daily-row strong {
  display: block;
  font: 16px var(--pixel);
  letter-spacing: -0.8px;
  color: #b5eddb;
}
.daily-row small {
  color: #c4c6ca;
  display: block;
  margin-top: 3px;
}
.daily-row .scout-ico {
  margin-left: auto;
}
.mod-card {
  padding: 10px 11px 15px;
  border-color: #756073;
  box-shadow: inset 0 2px var(--mod);
  min-width: 0;
}
.mod-card > canvas {
  width: 100%;
  height: 68px;
  object-fit: contain;
}
.mod-card strong {
  font-size: 20px;
  margin-top: 8px;
  color: var(--mod);
}
.mod-card small {
  font-size: 14px;
  line-height: 1.25;
  color: #d6c6d0;
  margin-top: 6px;
}
.foe-list,
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.foe-row,
.guide-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  background: #24212e;
  border: 1px solid #4d4355;
  border-left: 2px solid var(--unit, #bd948e);
}
.foe-row > canvas,
.guide-line > canvas {
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}
.foe-row > div,
.guide-line > div {
  flex: 1;
}
.foe-row p,
.guide-line p {
  font-size: 14px;
  color: #c8b9c9;
  margin-top: 2px;
  line-height: 1.25;
}
.foe-row strong,
.guide-line strong {
  font-size: 17px;
  color: #f9e3ca;
}
.foe-count {
  font: 13px var(--pixel);
  color: #ebc39f;
}
.guide-copy {
  font-size: 15px;
  line-height: 1.4;
  color: #d9cad0;
  margin: 12px 0;
}
.keyboard-help {
  border-top: 1px solid #564859;
  color: #b9a7b9;
  font-size: 13px;
  line-height: 1.35;
  padding-top: 12px;
  margin-top: 15px;
}
.winner-banner {
  height: 72px;
  margin: -2px 0 13px;
  border: 1px solid #a87b7b;
  background-size: cover;
  background-position: center 18%;
  position: relative;
  display: grid;
  place-items: center;
}
.stars {
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  background: #2b2034c2;
  border: 1px solid #ab897b88;
}
.stars canvas {
  width: 23px;
  height: 23px;
}
@media (min-width: 1650px) {
  .topbar {
    padding: 22px 34px;
  }
  .deck {
    padding: 22px 28px 26px;
  }
  .card {
    height: 111px;
  }
}
@media (max-width: 1110px) and (min-width: 731px) {
  .topbar {
    gap: 15px;
  }
  .meters {
    flex-basis: 365px;
  }
  .meter {
    padding: 0 12px;
  }
  .deck {
    grid-template-columns: minmax(0, 1fr) minmax(196px, 24%);
    gap: 14px;
  }
  .transport {
    padding-left: 12px;
  }
  .card {
    gap: 6px;
    padding: 6px;
  }
  .card-pic {
    width: 44px;
    height: 52px;
  }
  .card-name {
    font-size: 17px;
  }
  .speed {
    min-width: 39px;
  }
  .controls-row {
    gap: 5px;
  }
  .action {
    font-size: 13px;
  }
  .inspect-id > canvas {
    width: 43px;
  }
  .upgrade-key,
  .sell-key {
    padding: 6px;
  }
  .inspect-id strong {
    font-size: 17px;
  }
  #inspector {
    gap: 6px;
    padding: 7px;
  }
}
@media (max-width: 850px) and (min-height: 520px) {
  .topbar {
    gap: 11px;
  }
  .meters {
    flex-basis: 335px;
  }
  .meter {
    min-width: 60px;
    padding: 0 10px;
  }
  .icon-key {
    width: 35px;
    height: 35px;
  }
  .tools {
    gap: 5px;
  }
  .brand {
    gap: 5px;
  }
  #wordmark {
    width: 154px;
  }
  #brandMark {
    width: 37px;
  }
  .tuner {
    font-size: 9px;
  }
  .card-pic {
    width: 39px;
    height: 47px;
  }
  .card-kind {
    font-size: 11px;
  }
}
@media (max-width: 730px) and (min-height: 501px) {
  :root {
    --gutter: 0px;
  }
  #console {
    border-width: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 7px 8px;
    padding: 9px 13px 8px;
    border-top-width: 1px;
  }
  .brand {
    gap: 7px;
  }
  #brandMark {
    width: 36px;
  }
  #wordmark {
    width: 156px;
  }
  .word-stack {
    gap: 3px;
  }
  .tuner {
    font-size: 7px;
    letter-spacing: 0.8px;
    gap: 6px;
  }
  .dial {
    height: 3px;
  }
  .dial:after {
    height: 5px;
    top: -1px;
  }
  .tools {
    grid-row: 1;
    grid-column: 2;
    gap: 7px;
    padding: 0;
  }
  .icon-key {
    width: 36px;
    height: 32px;
  }
  .icon-key canvas {
    width: 18px;
    height: 18px;
  }
  .meters {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: stretch;
    background: #201d29;
    border: 1px solid #4b3e50;
    border-radius: 3px;
    padding: 5px 2px;
  }
  .meter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0 4px;
    flex: 1;
  }
  .meter:first-child {
    border-left: 0;
  }
  .meter .label {
    font-size: 8px;
    gap: 2px;
    letter-spacing: -0.4px;
  }
  .meter strong {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -1.4px;
  }
  .meter .label canvas {
    width: 10px;
    height: 10px;
  }
  .meter strong small {
    font-size: 0.73em;
  }
  .hp-rail {
    display: none;
  }
  #fieldWrap {
    margin: 0 2px;
    border-width: 2px;
  }
  .sector-tag {
    left: 10px;
    top: 10px;
    padding: 6px 9px 7px;
    border-left-width: 2px;
    gap: 3px;
  }
  .sector-kicker {
    font-size: 8px;
    letter-spacing: 1px;
    gap: 4px;
  }
  .sector-bars {
    width: 11px;
    height: 6px;
  }
  .sector-title {
    font-size: 17px;
    letter-spacing: -1.1px;
    gap: 6px;
  }
  .sector-caret {
    font-size: 12px;
  }
  .phase-chip {
    right: 10px;
    top: 10px;
    padding: 5px 7px;
    font-size: 8px;
    gap: 5px;
  }
  .lamp {
    width: 5px;
    height: 5px;
  }
  .comms {
    padding: 4px 9px;
    min-height: 39px;
    gap: 8px;
  }
  .comms-label,
  .comms-split,
  .comms-wave {
    display: none;
  }
  #operator {
    width: 26px;
    height: 26px;
  }
  #commsText {
    font-size: 13px;
  }
  #guide {
    font-size: 11px;
    min-width: 24px;
    height: 24px;
  }
  .deck {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 9px 9px 10px;
  }
  .panel-label {
    font-size: 9px;
    gap: 5px;
    letter-spacing: 0.9px;
    margin-bottom: 5px;
    line-height: 12px;
  }
  .panel-label > canvas {
    width: 12px;
    height: 12px;
  }
  #rackHint {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  #cards {
    gap: 6px;
  }
  .card {
    height: 82px;
    padding: 4px 5px 7px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 35px auto;
    gap: 1px 0;
    align-content: center;
  }
  .card-pic {
    height: 37px;
    width: 41px;
    border: 0;
    background: none;
    box-shadow: none;
    grid-row: 1;
    grid-column: 1;
  }
  .card-copy {
    display: contents;
  }
  .card-name {
    font-size: 16px;
    line-height: 1.15;
    grid-row: 2;
    grid-column: 1/-1;
    letter-spacing: 0;
    padding-left: 3px;
  }
  .card-kind {
    font-size: 10px;
    line-height: 1.1;
    margin-top: 1px;
    padding-left: 3px;
    grid-column: 1/-1;
    white-space: nowrap;
  }
  .card .price {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 5px 1px 0 0;
    font-size: 12px;
    gap: 2px;
  }
  .card .price canvas {
    width: 10px;
    height: 10px;
  }
  .shortcut {
    display: none;
  }
  .card.chosen:after {
    left: 6px;
    right: 6px;
  }
  .transport {
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 1.55fr;
    grid-template-rows: auto auto;
    gap: 0 8px;
    align-items: center;
  }
  .transport > .panel-label {
    grid-column: 1;
    grid-row: 1;
    margin: 2px 0 0;
  }
  .transport > .panel-label i {
    display: none;
  }
  .controls-row {
    grid-row: 1/3;
    grid-column: 2;
    gap: 6px;
  }
  .action {
    min-height: 41px;
    font-size: 12px;
    gap: 4px;
  }
  .action canvas {
    width: 13px;
    height: 13px;
  }
  .speed {
    min-width: 34px;
    font-size: 11px;
    gap: 0;
  }
  .speed canvas {
    width: 13px;
    height: 13px;
  }
  #scout {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    gap: 4px;
    font-size: 11px;
    min-height: 18px;
    padding: 0;
  }
  #scout .scout-ico {
    font-size: 14px;
  }
  .pad-hit {
    min-width: 38px;
    min-height: 37px;
  }
  .pad-hit.occupied {
    min-height: 48px;
  }
  #inspector {
    min-height: 82px;
    gap: 4px;
    padding: 5px 6px;
  }
  .inspect-id > canvas {
    width: 35px;
    height: 43px;
  }
  .inspect-id {
    gap: 3px;
  }
  .inspect-id strong {
    font-size: 16px;
  }
  .inspect-id small {
    font-size: 11px;
  }
  .upgrade-key,
  .sell-key {
    font-size: 12px;
    gap: 3px;
    padding: 5px;
    min-height: 38px;
  }
  .upgrade-key {
    flex-direction: column;
  }
  .upgrade-key span small {
    font-size: 10px;
  }
  .upgrade-key .price {
    font-size: 10px;
  }
  .sell-key {
    flex-direction: column;
    min-width: 33px;
  }
  .inspect-close {
    min-width: 20px;
    min-height: 23px;
    padding: 3px;
  }
  .comms-wave {
    display: none;
  }
  #banner {
    top: 22%;
    font-size: 12px;
  }
}
@media (max-width: 392px) and (min-height: 501px) {
  .meter {
    gap: 4px;
  }
  .meter .label {
    letter-spacing: -0.65px;
  }
  .meter strong {
    font-size: 15px;
  }
  .tools {
    gap: 5px;
  }
  .card-name {
    font-size: 15px;
  }
  .deck {
    padding-left: 7px;
    padding-right: 7px;
  }
  .action {
    font-size: 11px;
  }
}
@media (max-height: 500px) {
  :root {
    --gutter: 0px;
  }
  #console {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  }
  .topbar {
    padding: 4px max(9px, 1.5vw);
    gap: 10px;
    border-top-width: 1px;
  }
  .brand {
    gap: 4px;
  }
  #brandMark {
    width: 32px;
  }
  #wordmark {
    width: clamp(112px, 17vw, 175px);
  }
  .word-stack {
    gap: 2px;
  }
  .tuner {
    font-size: 6px;
    gap: 4px;
  }
  .dial {
    height: 3px;
  }
  .dial:after {
    height: 5px;
    top: -1px;
  }
  .meters {
    flex: 0 1 340px;
  }
  .meter {
    padding: 0 8px;
    min-width: 53px;
  }
  .meter .label {
    font-size: 7px;
    gap: 3px;
    letter-spacing: 0.2px;
  }
  .label canvas {
    width: 9px;
    height: 9px;
  }
  .meter strong {
    font-size: 16px;
    line-height: 1.06;
  }
  .hp-rail {
    width: 41px;
    height: 2px;
    margin-top: 1px;
  }
  .tools {
    gap: 5px;
    padding: 0;
  }
  .icon-key {
    width: 31px;
    height: 29px;
  }
  .icon-key canvas {
    width: 15px;
    height: 15px;
  }
  #fieldWrap {
    margin: 0 3px;
    border-width: 2px;
  }
  .sector-tag {
    top: 6px;
    left: 8px;
    padding: 4px 7px;
    gap: 1px;
    border-left-width: 2px;
  }
  .sector-kicker {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .sector-bars {
    height: 4px;
    width: 10px;
  }
  .sector-title {
    font-size: 15px;
    letter-spacing: -1px;
  }
  .phase-chip {
    top: 6px;
    right: 8px;
    font-size: 7px;
    padding: 4px 6px;
    gap: 4px;
  }
  .lamp {
    width: 4px;
    height: 4px;
  }
  .view-corner {
    height: 6px;
    width: 6px;
  }
  .comms {
    min-height: 25px;
    padding: 2px 9px;
    gap: 6px;
  }
  #operator {
    width: 20px;
    height: 20px;
  }
  .comms-label {
    font-size: 7px;
  }
  #commsText {
    font-size: 11px;
  }
  #guide {
    height: 19px;
    min-width: 22px;
    font-size: 10px;
  }
  .comms-wave {
    width: 34px;
    height: 10px;
  }
  .deck {
    grid-template-columns: minmax(0, 1fr) minmax(165px, 26%);
    gap: 8px;
    padding: 5px 8px 6px;
  }
  .panel-label {
    font-size: 7px;
    line-height: 10px;
    margin-bottom: 3px;
    gap: 4px;
    letter-spacing: 1px;
  }
  .panel-label > canvas {
    width: 10px;
    height: 10px;
  }
  #rackHint {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  #cards {
    gap: 4px;
  }
  .card {
    height: 48px;
    padding: 2px 4px;
    gap: 4px;
  }
  .card-pic {
    width: clamp(28px, 5.2vw, 50px);
    height: 38px;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .card-name {
    font-size: clamp(12px, 1.7vw, 17px);
  }
  .card-kind {
    font-size: 9px;
    line-height: 1;
    margin-top: 1px;
  }
  .card .price {
    font-size: 9px;
    margin-top: 2px;
    gap: 2px;
  }
  .price canvas {
    width: 9px;
    height: 9px;
  }
  .shortcut {
    display: none;
  }
  .transport {
    padding-left: 8px;
  }
  .controls-row {
    gap: 4px;
  }
  .action {
    min-height: 31px;
    font-size: 10px;
    gap: 4px;
  }
  .action canvas {
    width: 12px;
    height: 12px;
  }
  .speed {
    min-width: 30px;
    font-size: 9px;
    gap: 0;
  }
  .speed canvas {
    width: 12px;
    height: 12px;
  }
  #scout {
    font-size: 10px;
    min-height: 13px;
    padding: 1px 0 0;
  }
  .scout-ico {
    font-size: 12px;
  }
  .pad-hit {
    width: 35px;
    height: 28px;
    min-width: 0;
    min-height: 0;
  }
  .pad-hit.occupied {
    height: 32px;
  }
  .comms-split {
    height: 10px;
  }
  #inspector {
    min-height: 48px;
    padding: 3px 5px;
    gap: 4px;
  }
  .inspect-id {
    gap: 4px;
  }
  .inspect-id > canvas {
    width: 30px;
    height: 35px;
  }
  .inspect-id strong {
    font-size: 13px;
  }
  .inspect-id small {
    font-size: 10px;
  }
  .sell-key,
  .upgrade-key {
    padding: 4px;
    font-size: 11px;
    min-height: 29px;
    gap: 4px;
  }
  .upgrade-key span small {
    font-size: 9px;
  }
  .upgrade-key .price {
    font-size: 9px;
  }
  .inspect-close {
    min-height: 23px;
    min-width: 20px;
    padding: 3px;
  }
  #banner {
    font-size: 10px;
    top: 17%;
    padding: 4px 8px;
  }
  #overlay {
    padding: 9px;
  }
  #dialog {
    padding: 13px 18px;
  }
  .modal-top {
    margin-bottom: 7px;
  }
  .modal-top h1 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 3px;
  }
  .dialog-lede {
    font-size: 13px;
    margin-bottom: 9px;
  }
  .modal-actions {
    margin-top: 10px;
  }
  .option {
    min-height: 34px;
    padding: 7px;
  }
  .option-grid {
    gap: 5px;
    margin: 8px 0;
  }
  .modal-btn {
    min-height: 34px;
    font-size: 12px;
    padding: 6px;
  }
  .mod-card > canvas {
    height: 43px;
  }
  .mod-card strong {
    margin-top: 3px;
    font-size: 16px;
  }
  .mod-card small {
    font-size: 12px;
  }
  .atlas-art {
    height: 45px;
  }
}
@media (max-width: 520px) {
  .atlas-grid {
    grid-template-columns: 1fr;
  }
  .atlas-card {
    flex-direction: row;
  }
  .atlas-art {
    height: auto;
    min-height: 50px;
    width: 27%;
    flex-shrink: 0;
  }
  .atlas-info {
    padding: 6px 9px;
  }
  .atlas-info strong {
    font-size: 16px;
  }
  .atlas-info small {
    font-size: 11px;
  }
  .daily-row {
    padding: 10px;
  }
  .daily-row strong {
    font-size: 14px;
  }
  .daily-row small {
    font-size: 12px;
  }
  .mod-grid {
    grid-template-columns: 1fr;
  }
  .mod-card {
    display: grid;
    grid-template-columns: 77px 1fr;
    grid-template-rows: auto auto;
    gap: 0 8px;
    padding: 7px 8px 8px;
    box-shadow: inset 2px 0 var(--mod);
  }
  .mod-card > canvas {
    width: 74px;
    height: 45px;
    grid-row: 1/3;
    align-self: center;
  }
  .mod-card strong {
    margin: 0;
    font-size: 18px;
  }
  .mod-card small {
    margin: 2px 0 0;
    font-size: 13px;
  }
  .modal-actions {
    gap: 6px;
  }
  .modal-btn {
    font-size: 12px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .dialog-lede {
    font-size: 14px;
  }
  .option {
    font-size: 13px;
    padding: 9px;
  }
  .mini-meter-row strong {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:after,
  *:before {
    animation-duration: 0s !important;
    transition: none !important;
  }
}
/* Control-panel legends use a larger x-height on the smallest displays. */
.meter .label,
.comms-label,
.panel-label,
.sector-kicker,
.phase-chip {
  font-family: var(--body);
  font-weight: 700;
}
.meter .label {
  font-size: clamp(11px, 0.96vw, 14px);
  letter-spacing: 1.55px;
}
.panel-label {
  font-size: 12px;
  letter-spacing: 1.8px;
}
.comms-label {
  font-size: 11px;
  letter-spacing: 1.8px;
}
.sector-kicker {
  font-size: 11px;
}
.phase-chip {
  font-size: 11px;
  letter-spacing: 1.35px;
}
#wordmark {
  width: clamp(185px, 20vw, 306px);
}
.card-pic {
  background:
    radial-gradient(ellipse at 50% 70%, #76637245, transparent 72%),
    repeating-linear-gradient(0deg, #1817232c 0, #1817232c 1px, transparent 1px, transparent 4px);
}
@media (max-width: 850px) and (min-height: 501px) {
  #wordmark {
    width: 158px;
  }
  .meter .label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
}
@media (max-width: 730px) and (min-height: 501px) {
  #wordmark {
    width: 164px;
  }
  .meter .label {
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .meter {
    gap: 4px;
  }
  .panel-label {
    font-size: 10px;
    letter-spacing: 1.3px;
  }
  .phase-chip,
  .sector-kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .card-pic {
    background: none;
  }
  .card-pic canvas {
    width: 43px;
    height: 40px;
  }
  .action {
    font-size: 13px;
  }
  .card .price {
    font-size: 13px;
  }
  .price canvas {
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 380px) and (min-height: 501px) {
  .meter .label {
    font-size: 8px;
  }
  .action {
    font-size: 12px;
  }
}
@media (max-height: 500px) {
  #wordmark {
    width: clamp(112px, 17vw, 175px);
  }
  .meter .label {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .panel-label,
  .sector-kicker,
  .phase-chip,
  .comms-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .card-pic {
    background: none;
  }
}
.tape-details {
  padding: 9px 11px;
  background: #282431;
  border: 1px solid #554a5d;
  color: #ddc8d2;
  font-size: 14px;
}
.tape-details summary {
  cursor: pointer;
  color: #ecd1b6;
}
.tape-details p {
  margin: 8px 0 0;
}
.tape-details b {
  color: #a7e6d6;
}
.pad-hit,
.card {
  touch-action: none;
  -webkit-touch-callout: none;
}
.daily-key {
  padding: 0 10px;
  gap: 6px;
  min-height: 40px;
  color: #c1e0d1;
  font: 700 12px var(--body);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.daily-key canvas {
  width: 16px;
  height: 16px;
}
.daily-hero {
  height: 92px;
  background-size: cover;
  background-position: center 21%;
  display: flex;
  align-items: flex-end;
  border: 1px solid #806777;
  margin: 4px 0 14px;
  image-rendering: pixelated;
}
.daily-hero strong {
  background: #282030d6;
  padding: 5px 9px;
  margin: 9px;
  color: #ffe4c1;
  font: 17px var(--pixel);
  letter-spacing: -0.7px;
}
.daily-foot {
  font-size: 14px;
  color: #c6b7c8;
}
#bossHud {
  position: absolute;
  z-index: 2;
  right: clamp(11px, 1.8vw, 28px);
  top: calc(clamp(12px, 2.4vh, 24px) + 35px);
  min-width: 105px;
  background: #302135c9;
  border-left: 2px solid #e88887;
  padding: 5px 8px 7px;
  pointer-events: none;
}
#bossName {
  display: block;
  color: #ffddbb;
  font: 700 11px var(--body);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.boss-rail {
  display: block;
  height: 4px;
  background: #725564;
}
.boss-rail i {
  display: block;
  height: 100%;
  background: #ffa391;
  transition: width 0.14s linear;
}
@media (max-width: 850px) and (min-height: 501px) {
  .daily-key {
    min-height: 32px;
    padding: 0 6px;
    font-size: 10px;
    gap: 4px;
  }
}
@media (max-width: 730px) and (min-height: 501px) {
  .daily-key {
    flex-direction: column;
    justify-content: center;
    min-height: 32px;
    min-width: 33px;
    padding: 1px 5px;
    gap: 1px;
    font-size: 8px;
    line-height: 1;
  }
  .daily-key canvas {
    width: 13px;
    height: 13px;
  }
  #bossHud {
    right: 10px;
    top: 37px;
    min-width: 81px;
    padding: 4px 5px 5px;
  }
  #bossName {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
}
@media (max-width: 375px) and (min-height: 501px) {
  #wordmark {
    width: 150px;
  }
}
@media (max-height: 500px) {
  .daily-key {
    min-height: 29px;
    min-width: 31px;
    padding: 2px 6px;
    gap: 3px;
    font-size: 9px;
  }
  .daily-key canvas {
    width: 12px;
    height: 12px;
  }
  #bossHud {
    right: 8px;
    top: 28px;
    min-width: 73px;
    padding: 3px 4px 4px;
  }
  #bossName {
    font-size: 8px;
    margin-bottom: 2px;
  }
  .boss-rail {
    height: 3px;
  }
  .daily-hero {
    height: 50px;
    margin-bottom: 8px;
  }
  .daily-hero strong {
    font-size: 13px;
    padding: 3px 6px;
    margin: 5px;
  }
}
@media (max-height: 500px) and (pointer: coarse) {
  .pad-hit {
    width: 42px;
    height: 34px;
  }
  .pad-hit.occupied {
    height: 40px;
  }
}
