html, body { margin: 0; height: 100%; overflow: hidden; background: #050608; font-family: system-ui, sans-serif; color: #fff; }
canvas { display: block; }
#menu { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(5, 10, 25, 0.92); z-index: 5; text-align: center; padding: 16px; overflow: auto; }
#menu h1 { margin: 0 0 8px; font-size: 40px; }
.row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; justify-content: center; }
.badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: bold; color: #fff; }
.row button { font-size: 16px; padding: 10px 14px; border: 0; border-radius: 8px; background: #fff; color: #0b2a5b; cursor: pointer; }
.row button:hover { background: #ffe38a; }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#top { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.55); padding: 8px 12px; border-radius: 8px; font-size: 16px; line-height: 1.5; }
#msg { position: absolute; top: 14%; width: 100%; text-align: center; font-size: 30px; font-weight: bold; text-shadow: 0 2px 6px #000; }
#prompt { position: absolute; bottom: 12%; width: 100%; text-align: center; font-size: 26px; text-shadow: 0 2px 6px #000; }
#help { position: absolute; bottom: 6px; width: 100%; text-align: center; font-size: 12px; opacity: 0.8; }
#end { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(5, 10, 25, 0.9); z-index: 6; font-size: 24px; text-align: center; }
#end button { font-size: 20px; padding: 12px 20px; border: 0; border-radius: 8px; cursor: pointer; }
