:root{font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:#fff;color-scheme:light}*{box-sizing:border-box}body{margin:0;height:100svh;height:100dvh;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}.game-nav-header{flex-shrink:0}[hidden]{display:none!important}button{font:inherit;min-height:44px;border:1px solid #dedbdf;border-radius:8px;background:#f3f4f6;color:inherit;padding:8px 14px}button:disabled{opacity:.5}.shell{width:100%;max-width:450px;margin:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:4px;padding:4px 8px max(6px,env(safe-area-inset-bottom))}.hud{display:flex;align-items:center;gap:12px;font-size:12px}.hud button{margin-left:auto}.stage{flex:1;min-height:220px;position:relative;background:#fcf8f6;border:1px solid #e7dfe1;border-radius:12px;overflow:hidden;touch-action:none;user-select:none}#board{display:block;width:100%;height:100%;touch-action:none}.tray{fill:#f4ece6;stroke:#c7b9b0;stroke-width:5}.goal{fill:#dceade;stroke:#729a7d;stroke-width:3}.goal-label{text-anchor:middle;fill:#3f6850;font-size:13px;font-weight:700}.route{fill:none;stroke:#c3b3aa;stroke-width:2;stroke-dasharray:3 7;opacity:.6;pointer-events:none}.marble{fill:url(#marble);stroke:#477789;stroke-width:1.5}.hole{fill:url(#hole);stroke:#c3b3aa;stroke-width:4}#anchor{fill:#ffffff80;stroke:#8c7a85;stroke-width:1.5}#finger{fill:#937589}#arrow{stroke:#937589;stroke-width:3}.panel{position:absolute;inset:0;background:#fffffff5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:16px;overflow:auto}.panel img{object-fit:contain}.panel h2{font-size:20px;margin:0}.panel p{margin:0;font-size:13px;line-height:1.6}.panel button{width:100%;font-weight:700}#record{color:#6e626a}.hint{margin:0;text-align:center;font-size:12px;color:#6e626a}.companion{display:flex;align-items:center;gap:8px;min-height:58px}.companion img{object-fit:contain}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:13px;margin:3px 0}#save-note{font-size:10px;color:#6e626a;margin:0}@media(max-height:700px){.companion img{width:44px;height:44px}.companion{min-height:44px}.panel img{width:72px;height:72px}.panel{gap:8px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Design 2: compact controls stay legible on narrow phones. */
.hud{font-variant-numeric:tabular-nums;gap:8px}.hud span{white-space:nowrap}.hud button{flex-shrink:0}.companion div{min-width:0}.companion p{line-height:1.45;min-height:1.45em}.panel button{flex-shrink:0;touch-action:manipulation}

/* Design 3: holes have a symbol as well as color. */
.hole-mark{stroke:#d6c6cf;stroke-width:2;fill:none;pointer-events:none}.goal-label{paint-order:stroke;stroke:#dceade;stroke-width:3}.marble{filter:drop-shadow(0 2px 1px #6e626a40)}

#goal-progress circle{fill:#fff;stroke:#729a7d;stroke-width:1.5}#goal-progress .filled{fill:#3f6850}
