* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; background: #061018; color: #e8eef4; font-family: "Segoe UI", "PingFang SC", sans-serif; }
#view { display: block; width: 100%; height: 100%; cursor: none; }
#hud {
  pointer-events: none;
  position: absolute; inset: 0;
}
#titlebar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  font-size: 13px; letter-spacing: 0.04em;
  color: #c5d4e0;
  text-shadow: 0 1px 4px #000;
}
#instruments {
  position: absolute; left: 16px; bottom: 56px;
  display: flex; gap: 10px;
}
.dial {
  min-width: 72px;
  padding: 8px 10px;
  background: rgba(6, 16, 24, 0.72);
  border: 1px solid rgba(180, 210, 230, 0.25);
  border-radius: 6px;
}
.dial em { display: block; font-style: normal; font-size: 10px; color: #8aa0b0; }
.dial b { font-size: 20px; font-weight: 600; }
.dial small { margin-left: 4px; color: #8aa0b0; }
#meatball {
  position: absolute; right: 18px; top: 46%;
  text-align: center; font-size: 11px; color: #b8c8d4;
}
#meatball.hidden { display: none; }
.ball-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.ball {
  width: 14px; height: 14px; border-radius: 50%;
  background: #2a3a44; box-shadow: inset 0 0 0 1px #0008;
}
.ball.on-red { background: #e23b2b; box-shadow: 0 0 8px #e23b2b; }
.ball.on-amber { background: #f0c14a; box-shadow: 0 0 10px #f0c14a; }
.ball.on-green { background: #3dce6a; box-shadow: 0 0 8px #3dce6a; }
#hint {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; font-size: 14px;
  text-shadow: 0 1px 6px #000;
}
#toast {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  padding: 12px 22px;
  background: rgba(8, 18, 28, 0.86);
  border: 1px solid #f0c14a88;
  font-size: 18px;
}
#toast.hidden { display: none; }
.overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(4, 10, 16, 0.72);
}
.overlay.hidden { display: none; }
.panel {
  max-width: 440px;
  padding: 28px 32px;
  background: #0c1a24;
  border: 1px solid #3d5a6c;
  border-radius: 8px;
}
.eyebrow { font-size: 12px; color: #8aa0b0; letter-spacing: 0.12em; text-transform: uppercase; }
.panel h1 { font-size: 32px; margin: 8px 0 12px; font-weight: 600; }
.panel h2 { font-size: 26px; margin-bottom: 10px; }
.panel p { color: #c5d4e0; line-height: 1.55; margin-bottom: 10px; }
.keys { font-size: 13px; color: #9bb0be; }
.panel button {
  margin-top: 8px;
  padding: 10px 18px;
  background: #c9a227;
  color: #1a1408;
  border: 0; border-radius: 4px;
  font-weight: 600; cursor: pointer;
}
.panel button:hover { filter: brightness(1.08); }
