html, body { margin: 0; height: 100%; overflow: hidden; background: #fffdf8; color: #14171a; font-family: ui-monospace, "JetBrains Mono", monospace; touch-action: none; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: fixed; top: 10px; left: 14px; right: 14px; pointer-events: none; }
#hud h1 { margin: 0; font-size: 18px; }
#stats { font-size: 13px; color: #6b6b6b; margin: 2px 0 6px; }
#bar { height: 6px; max-width: 320px; background: #e2ddd0; border-radius: 3px; overflow: hidden; }
#fill { display: block; height: 100%; width: 0; background: #1083fe; }
.card { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border: 2px solid #e2ddd0; border-radius: 14px; padding: 18px 22px; width: min(340px, 80vw); text-align: center; box-shadow: 0 8px 30px #0002; }
.card[hidden] { display: none; }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 6px 0; font-size: 13px; }
.keys { color: #6b6b6b; }
button, #share { display: inline-block; margin: 8px 4px 0; padding: 8px 18px; font: inherit; font-weight: 700; background: #1083fe; color: #fff; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
#again { background: #14171a; }
footer { position: fixed; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: #6b6b6b; }
footer a { color: inherit; }
#mute { position: fixed; top: 8px; right: 12px; margin: 0; padding: 4px 8px; background: #fff; border: 2px solid #e2ddd0; font-size: 16px; line-height: 1; z-index: 5; }
