:root {
  color-scheme: dark;
  --bg: #15191d;
  --panel: #20262b;
  --ink: #f4f7f8;
  --muted: #aab5bc;
  --line: #364149;
  --accent: #61b3d8;
  --danger: #d94c4c;
  --good: #64c06f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
}

.shell {
  width: min(100vw, 1040px);
  padding: 16px;
}

.topbar,
.statusline {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.meters {
  flex: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.meter {
  width: min(34vw, 260px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bar {
  height: 12px;
  border: 2px solid var(--line);
  background: #111519;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--good);
}

.boss .bar i {
  background: var(--danger);
}

button {
  height: 34px;
  min-width: 78px;
  border: 2px solid #4a5861;
  background: #2b353b;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #36434a;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  border: 4px solid #2b3338;
  background: #9fbac4;
}

.statusline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#message {
  color: var(--ink);
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
  }

  .meters {
    order: 3;
    width: 100%;
  }

  .meter {
    width: 50%;
  }
}
