:root {
  color-scheme: dark;
  --clear: #000000;
  --ink: #f4efe4;
  --muted: #9fb1b5;
  --ice: #87d2dc;
  --ice-soft: rgba(135, 210, 220, 0.2);
  --amber: #ffc467;
  --amber-soft: rgba(255, 196, 103, 0.16);
  --line: rgba(159, 177, 181, 0.34);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 42%, rgba(28, 58, 66, 0.64), transparent 38%),
    linear-gradient(150deg, #101b20, #030607 75%);
  color: var(--ink);
}

.simulator {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.viewport {
  position: relative;
  width: 600px;
  height: 600px;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background: var(--clear);
  touch-action: none;
  user-select: none;
}

#hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.topbar,
.command-strip,
.target,
.debug,
.toast {
  position: absolute;
  z-index: 2;
}

.topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  letter-spacing: 0.14em;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.brand-mark {
  color: var(--ice);
}

.brand-name {
  margin-left: 3px;
}

.target {
  left: 20px;
  bottom: 62px;
  width: 322px;
  border-left: 2px solid var(--ice);
  padding: 7px 0 8px 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent);
}

.target.locked {
  border-left-color: var(--amber);
}

.target-kicker,
.target-model {
  margin: 0;
  color: var(--ice);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.target.locked .target-kicker {
  color: var(--amber);
}

h1 {
  margin: 3px 0 3px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 950;
  letter-spacing: 0.045em;
  line-height: 1;
}

.target-model {
  color: var(--muted);
  font-size: 11px;
}

.target-stats {
  display: flex;
  gap: 13px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.target-stats b {
  color: var(--ink);
  font-size: 15px;
}

.debug {
  top: 68px;
  right: 18px;
  width: 178px;
  border-right: 1px solid var(--ice);
  padding: 6px 8px 6px 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.debug p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}

.debug b {
  overflow: hidden;
  color: var(--ice);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden {
  display: none;
}

.toast {
  top: 71px;
  left: 18px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 160ms ease;
}

.toast.visible {
  opacity: 1;
}

.command-strip {
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.command-strip b {
  color: var(--ice);
  font-size: 11px;
}

@media (max-width: 599px), (max-height: 599px) {
  .viewport {
    width: 100vw;
    height: 100vh;
  }
}
