:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;color:#f5f5fb;background:#080c15;color-scheme:dark;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button{font:inherit;min-height:44px;color:inherit;background:#1c293d;border:1px solid #77879b;border-radius:8px;touch-action:manipulation}button:disabled{opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #ffe4a7;outline-offset:-3px}main{max-width:450px;margin:auto;height:calc(100dvh - var(--nav-height,88px));padding:3px 5px max(4px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:4px}.stage{position:relative;flex:1;min-height:220px;border:1px solid #b6a079;border-radius:16px;overflow:hidden;background:#153b50}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;inset:6px 7px auto;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px}.hud strong{font-size:17px;color:#ffe6b3}.hud button{width:44px;background:#101b2ce8}.conditions{position:absolute;inset:58px 10px auto;display:flex;justify-content:space-between;font-size:12px;color:#ecf8ff}.aim{position:absolute;bottom:14px;left:10%;right:10%;text-align:center;pointer-events:none;font-size:13px;text-shadow:0 1px 3px #000}.aim small{font-size:11px}.meter{position:relative;height:12px;border-radius:8px;background:#10293b;border:1px solid #a7c7d4;margin:7px 0}.meter i{position:absolute;left:40%;width:20%;height:100%;background:#e8c98a}.meter b{position:absolute;left:50%;top:-4px;height:18px;width:3px;background:#fff}.stones{display:flex;gap:4px}.stones button{flex:1;min-width:0;padding:5px 2px;font-size:14px;min-height:52px}.stones small{display:block;font-size:10px;color:#c7d9e7;margin-top:2px}.stones [aria-pressed=true]{border:2px solid #f1d39a;background:#493c32}.buddy{display:flex;align-items:center;gap:7px;min-height:72px;padding:0 7px;border:1px solid #b6a079;border-radius:12px;background:#182333}.buddy img{object-fit:contain;align-self:flex-end}.buddy div{flex:1;min-width:0}.buddy b{font-size:11px;color:#ffe6b3}.buddy p{font-size:12px;line-height:1.5;margin:3px 0}.buddy button{flex-shrink:0;padding:5px 10px;background:#f1d39a;color:#241d15}.hint{font-size:11px;text-align:center;margin:2px 0 0;color:#d0dbe4}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#050912b8;padding:10px}.panel{width:min(100%,310px);max-height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px;border:1px solid #d8bc83;border-radius:20px;background:radial-gradient(ellipse at top,#302139,#111927 78%)}.panel h2{font-size:20px;color:#ffe6b3;margin:0}.panel img{object-fit:contain;filter:drop-shadow(0 3px 9px #e2b66a33)}.panel p{font-size:14px;text-align:center;line-height:1.6;margin:0;white-space:pre-line}.panel button{width:100%;background:#f1d39a;color:#241d15;font-weight:bold}.panel small{font-size:11px;color:#d3bd94}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

/* Keep the timing marker within the water area at both ends. */
.meter b{transform:translateX(-50%)}
/* Tactile stones and flight feedback share the lake's warm evening light. */
.conditions{pointer-events:none;text-shadow:0 1px 4px #102d44}.hud{pointer-events:none}.hud button{pointer-events:auto}.stage[data-mode=flight] .aim .meter,.stage[data-mode=landed] .aim .meter,.stage[data-mode=flight] .aim small,.stage[data-mode=landed] .aim small{display:none}.stage[data-mode=flight] .aim,.stage[data-mode=landed] .aim{font-size:19px;font-weight:800;color:#ffe6b3}.live{position:absolute;left:20px;top:90px;pointer-events:none;display:flex;flex-direction:column;gap:2px;text-shadow:0 2px 8px #103b50}.live strong{font-size:43px;line-height:1;color:#ffe6b3;font-variant-numeric:tabular-nums}.live span{font-size:19px;color:#fff}.live small{font-size:13px}.stones button{position:relative;min-height:64px;padding-left:35px;background:linear-gradient(#273e49,#152630);border-color:#66818a}.stones button small{font-size:9px}.stone-icon{position:absolute;left:8px;top:22px;width:26px;height:14px;border-radius:60% 45% 55% 48%;transform:rotate(-14deg);background:linear-gradient(160deg,#d3d8d2,#788e90 45%,#273e47);box-shadow:inset 0 2px 1px #ffffff6b,0 3px 3px #0006}.stone-icon.heavy{height:20px;top:19px;background:linear-gradient(160deg,#a1acb3,#526675 45%,#273e47)}.stone-icon.light{width:24px;height:12px;background:linear-gradient(160deg,#e7d6b7,#ab9b7c 45%,#554d3d)}.stones [aria-pressed=true]{border-color:#f1d39a;background:linear-gradient(#5e5340,#352f28)}.stones button:disabled{opacity:.65}.stage[data-mode=aim] .aim{background:#092e41b8;border-radius:12px;padding:8px 12px;bottom:10px}.aim{left:9%;right:9%}.meter{height:9px}.meter i{background:linear-gradient(90deg,#c5aa63,#fff1b6,#c5aa63)}.hint{font-size:10px}.panel img{width:128px;height:128px}.buddy{background:linear-gradient(100deg,#183849,#182333)}@media(max-height:690px){.stones button{min-height:52px}.buddy{min-height:60px}.buddy img{width:55px;height:55px}.hint{display:none}.panel{gap:8px;padding:12px}.panel img{width:80px;height:80px}.live{top:82px}.live strong{font-size:33px}}
