:root { font-family: system-ui, sans-serif; color: white; background: #12336b; }
body { margin: 0 auto; padding: 12px; max-width: 560px; text-align: center; }
h1 { margin: .3em; font-size: 1.8rem; }
#story { margin: .2em; font-size: 1.05rem; }
#hud { font-size: 1.1rem; }
canvas { display: block; width: 100%; max-width: 480px; margin: 0 auto; height: auto; background: #2f9e44; border-radius: 16px; touch-action: none; }
button { font: inherit; padding: 12px 18px; border: 0; border-radius: 14px; cursor: pointer; background: #ffd43b; color: #222; font-weight: bold; }
button:active { transform: scale(.96); }
#build-row { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.brick-btn { display: flex; flex-direction: column; align-items: center; font-size: 1.6rem; min-width: 96px; min-height: 76px; background: #fff; }
.brick-btn span { font-size: .9rem; }
.brick-btn.done { background: #69db7c; text-decoration: line-through; }
#touch-row { display: flex; gap: 14px; justify-content: center; margin: 12px 0; }
#touch-row[hidden] { display: none; }
#touch-row button { flex: 1; max-width: 220px; min-height: 64px; font-size: 1.2rem; background: #4dabf7; color: #001; }
#tip { opacity: .9; }
section { margin: 20px auto; max-width: 480px; background: #ffffff22; border-radius: 12px; padding: 10px; }
form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }
label { display: flex; flex-direction: column; gap: 6px; }
input { font: inherit; padding: 10px; width: 7em; border-radius: 8px; border: 0; }
ol { text-align: left; line-height: 1.8; }
@media (max-width: 480px) { body { padding: 8px; } h1 { font-size: 1.4rem; } }
