:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #08111e; color: #eef7ff; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 20% 0%, rgba(47,224,177,.15), transparent 34rem), radial-gradient(circle at 90% 15%, rgba(108,92,231,.18), transparent 30rem), #08111e; }
button { font: inherit; }
#boulderdash { width: min(1120px, 100%); margin: 0 auto; padding: 24px clamp(14px, 3vw, 36px) 32px; }
header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
h1, h2, p { margin: 0; } h1 { font-size: clamp(2rem, 6vw, 4.25rem); line-height: .95; letter-spacing: -.055em; } h2 { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.05; }
.eyebrow { color: #66f5cd; font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
#description { color: #9db0c5; margin-top: 10px; max-width: 54ch; }
button { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #17263a; color: #fff; min-height: 46px; padding: 0 18px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); touch-action: manipulation; }
button:hover { background: #20344e; } button:focus-visible { outline: 3px solid #66f5cd; outline-offset: 3px; } button:disabled { opacity: .35; cursor: default; } .ghost { white-space: nowrap; background: rgba(255,255,255,.06); }
.game-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(7,14,25,.82); box-shadow: 0 30px 80px rgba(0,0,0,.36); }
.level-bar { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; padding: 10px; } .level-bar button { min-height: 42px; padding: 0; } #level-name { text-align: center; font-weight: 760; letter-spacing: .02em; }
#canvas { display: block; width: 100%; aspect-ratio: 29 / 17; background: #03070d; image-rendering: pixelated; } #status { min-height: 42px; padding: 11px 16px; color: #9db0c5; font-size: .875rem; text-align: center; }
.controls { display: grid; grid-template-columns: repeat(3, 62px) minmax(100px, 1fr); grid-template-areas: ". up . restart" "left down right restart"; justify-content: center; gap: 8px; width: min(430px, 100%); margin: 18px auto 0; }
.move { width: 62px; height: 54px; padding: 0; font-size: 1.25rem; } .move:active, .move.active { transform: translateY(2px); background: #2f8f77; } .up { grid-area: up; } .left { grid-area: left; } .down { grid-area: down; } .right { grid-area: right; } .restart { grid-area: restart; background: linear-gradient(135deg, #2f8f77, #4e55b7); }
dialog { width: min(560px, calc(100% - 28px)); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: 28px; background: #101c2c; color: #eef7ff; box-shadow: 0 30px 100px #000; } dialog::backdrop { background: rgba(2,6,12,.78); backdrop-filter: blur(6px); } dialog ul { margin: 22px 0; padding-left: 22px; color: #b9c8d8; line-height: 1.6; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; font-size: 1.5rem; } #got-it { width: 100%; background: #2f8f77; }
@media (max-width: 620px) { #boulderdash { padding-top: 16px; } header { align-items: start; } #help { min-height: 40px; padding: 0 12px; font-size: .82rem; } }
