:root { color-scheme: light; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0f172a; color: #f8fafc; }
.shell { max-width: 540px; margin: 0 auto; padding: 16px 12px 32px; }
.top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
h1 { margin: 0; font-size: 32px; letter-spacing: -0.02em; }
.tag { margin: 4px 0 0; color: #cbd5e1; font-size: 13px; max-width: 340px; line-height: 1.4; }
.scores { display: flex; gap: 8px; }
.stat { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 8px 10px; min-width: 68px; text-align: center; }
.stat span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.stat strong { font-size: 20px; }
.hud { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 10px; font-size: 13px; color: #e2e8f0; }
.hud-buttons { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
button { cursor: pointer; border: 1px solid #475569; background: #1e293b; color: #f8fafc; border-radius: 999px; padding: 7px 12px; font-size: 13px; }
button:hover { background: #334155; }
button:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
button.secondary { background: transparent; }
.board-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid #334155; background: #7dd3fc; box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
canvas { display: block; width: 100%; height: auto; touch-action: none; background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 55%, #fef9c3 100%); }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,0.72); padding: 20px; }
.overlay.hidden { display: none; }
.card { background: #0f172a; border: 1px solid #475569; border-radius: 16px; padding: 22px; text-align: center; max-width: 360px; }
.card h2 { margin: 0 0 8px; font-size: 26px; }
.card p { color: #cbd5e1; line-height: 1.5; }
.card button { margin: 4px; }
.howto { background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 16px 18px; margin-top: 16px; }
.howto h2 { margin: 0 0 8px; font-size: 18px; }
.howto ul { margin: 0; padding-left: 20px; line-height: 1.6; color: #e2e8f0; font-size: 14px; }
.howto kbd { background: #0f172a; border: 1px solid #475569; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: 12px; }
.fine { color: #94a3b8; font-size: 12.5px; line-height: 1.5; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: #94a3b8; font-size: 12.5px; }
.foot a { color: #7dd3fc; }
@media (max-width: 480px) { h1 { font-size: 27px; } .stat { min-width: 58px; } }
