html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: system-ui, "Segoe UI", sans-serif; color: #eee; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#start { position: fixed; inset: 0; background: radial-gradient(ellipse at top, #2a3f5f 0%, #0b1220 70%); display: flex; align-items: center; justify-content: center; z-index: 10; overflow: auto; }
#start.hidden { display: none; }
.card { max-width: 640px; margin: 20px; background: #101826ee; border: 1px solid #334; border-radius: 10px; padding: 22px 28px; box-shadow: 0 10px 40px #000a; }
.card h1 { margin: 0 0 2px; font-size: 26px; letter-spacing: 0.5px; }
.card .sub { margin: 0 0 14px; color: #9bb; }
.card p { line-height: 1.45; font-size: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #aab; }
select, button { font: inherit; padding: 8px 12px; border-radius: 6px; border: 1px solid #556; background: #1b2638; color: #eee; }
button { cursor: pointer; background: #2d6cdf; border-color: #4a8bff; font-weight: 600; }
button:disabled { background: #333a48; border-color: #444; color: #889; cursor: default; }
.hint { color: #9ab; font-size: 12px; }
.credits { color: #778; font-size: 11px; }
details { font-size: 13px; color: #bcd; }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#help { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #cde; background: #0007; padding: 4px 8px; border-radius: 4px; }
#msg { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 15px; color: #fff; background: #0009; padding: 6px 12px; border-radius: 6px; max-width: 70%; text-align: center; opacity: 0; transition: opacity .3s; }
#msg.show { opacity: 1; }
#checklist { position: absolute; right: 10px; top: 10px; width: 330px; max-height: 85vh; overflow: auto; background: #f4eed9; color: #222; font-family: "Courier New", monospace; font-size: 12px; padding: 10px 12px; border-radius: 4px; box-shadow: 0 4px 16px #0008; display: none; }
#checklist.show { display: block; }
#checklist h3 { margin: 6px 0 4px; font-size: 13px; border-bottom: 1px solid #997; }
#checklist .item { padding: 1px 0 1px 18px; position: relative; white-space: pre-wrap; }
#checklist .item.done { color: #276; text-decoration: line-through; }
#checklist .item.done::before { content: "\2713"; position: absolute; left: 2px; color: #276; text-decoration: none; }
#checklist .item.cur { background: #ffe9a0; }
#checklist .item.fail { color: #a22; }
#checklist .sec { color: #555; font-weight: bold; margin-top: 6px; }
#checklist .note { color: #666; font-size: 11px; font-style: italic; padding-left: 18px; }
