html, body { margin: 0; height: 100%; background: #0d0f14; color: #e6e8ee; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
body.playing { background: #9fb8cf; overflow: hidden; font-size: 13px; }
canvas { display: block; }
#hud { position: fixed; left: 10px; top: 10px; color: #fff; background: rgba(0,0,0,.55);
       padding: 6px 9px; border-radius: 4px; white-space: pre; pointer-events: none; z-index: 2; }
[hidden] { display: none !important; }   /* #start's display:grid would beat the hidden attribute */
#start { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box;
         background: radial-gradient(900px 500px at 50% -10%, #1d2a44 0%, transparent 70%), #0d0f14; }
.card { width: 100%; max-width: 460px; background: #151923; border: 1px solid #252b3a; border-radius: 14px; padding: 28px 26px; box-sizing: border-box; }
.kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: #7f8aa3; }
h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.lead { margin: 0 0 20px; color: #b7bfd1; }
.card label { display: block; font-size: 13px; color: #9aa4ba; margin-bottom: 6px; }
.card input { width: 100%; box-sizing: border-box; padding: 11px 12px; font: inherit; color: #fff; background: #0e1118;
        border: 1px solid #2c3446; border-radius: 9px; outline: none; }
.card input:focus { border-color: #5b8def; }
.card button { margin-top: 12px; width: 100%; padding: 12px; font: 600 15px/1 inherit; font-family: inherit; color: #fff;
         background: #3f6fd8; border: 0; border-radius: 9px; cursor: pointer; }
.card button:hover { background: #4b7be4; }
.small { margin: 18px 0 0; font-size: 13px; color: #7f8aa3; }
.servers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.servers legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: #9aa4ba; }
.srv { position: relative; margin: 0; cursor: pointer; }
.srv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.srv span { display: block; padding: 10px 12px; border: 1px solid #2c3446; border-radius: 9px; background: #0e1118; }
.srv b { display: block; font-size: 15px; color: #e6e8ee; }
.srv small { display: block; font-size: 12px; color: #7f8aa3; }
.srv input:checked + span { border-color: #5b8def; background: #16213a; }
.srv input:focus-visible + span { outline: 2px solid #5b8def; outline-offset: 2px; }
.hint { margin: 6px 0 0; font-size: 12px; color: #7f8aa3; }
