:root { font-family: system-ui, sans-serif; color: #0b2233; background: #bfe6f7; }
body { margin: 0 auto; padding: 12px; max-width: 860px; text-align: center; }
h1 { margin: .3em; }
.help { margin: .3em auto; max-width: 640px; }
.help.small { font-size: .9rem; opacity: .85; }
.hud { font-size: 1.1rem; font-weight: 700; }
#wrap { position: relative; }
canvas { display: block; width: 100%; height: auto; background: #e8f6ff; border-radius: 16px; touch-action: none; border: 3px solid #fff; }
button { font: inherit; padding: 10px 18px; border: 0; border-radius: 12px; cursor: pointer; background: #0b3d5c; color: #fff; }
button:active { transform: scale(.96); }
#restart { margin-left: 8px; }
#message { min-height: 1.6em; font-weight: 800; font-size: 1.15rem; }
#touch-controls { display: none; justify-content: space-between; align-items: center; margin-top: 10px; padding-bottom: env(safe-area-inset-bottom); }
#stick-base { width: 120px; height: 120px; border-radius: 50%; background: rgba(11,61,92,.15); border: 2px solid #0b3d5c; position: relative; touch-action: none; }
#stick-knob { width: 52px; height: 52px; border-radius: 50%; background: #0b3d5c; position: absolute; left: 34px; top: 34px; }
#throwBtn { width: 96px; height: 96px; border-radius: 50%; font-size: 2.4rem; background: #fff; border: 3px solid #0b3d5c; }
@media (pointer: coarse) { #touch-controls { display: flex; } }
section { margin: 20px auto; max-width: 480px; background: #fff; border-radius: 16px; padding: 12px; }
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; }
ol { text-align: left; line-height: 1.8; }
@media (max-width: 480px) { body { padding: 8px; } h1 { font-size: 1.5rem; } }
