:root{color-scheme:light;font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:#fff}*{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 12px;touch-action:manipulation}button:disabled{opacity:.5}.shell{flex:1;min-height:0;max-width:450px;width:100%;margin:auto;display:flex;flex-direction:column;gap:6px;padding:4px 8px max(6px,env(safe-area-inset-bottom))}.stage{flex:1;position:relative;min-height:270px;border:1px solid #e7dfe1;border-radius:12px;background:#fcf8f6;overflow:hidden}.hud{position:absolute;inset:6px 8px auto;display:flex;gap:10px;align-items:center;font-size:12px;z-index:2}.hud button{margin-left:auto}.order{position:absolute;top:66px;left:0;width:100%;text-align:center;font-size:14px}.order span{display:block;font-size:12px;color:#6e626a;margin-top:4px}.spout{position:absolute;left:calc(50% - 17px);top:112px;width:34px;height:24px;border:6px solid #aca6a9;border-top:0;border-radius:0 0 8px 8px}.stream{position:absolute;left:calc(50% - 5px);top:135px;bottom:75px;width:10px;background:#eaa6b4;opacity:.8}.glass{position:absolute;bottom:74px;left:calc(50% - 56px);width:112px;height:190px;border:3px solid #a99ea5;border-top:2px solid #c8bdc3;border-radius:6px 6px 21px 21px;background:#ffffff80;overflow:visible;transform:translateX(0)}.liquid{position:absolute;bottom:0;left:0;right:0;height:0;background:#eaa6b4;border-radius:0 0 17px 17px}.target{position:absolute;left:-12px;right:-12px;bottom:58%;border-top:3px dashed #76566a;z-index:1}.target span{position:absolute;right:-34px;top:-10px;font-size:11px;font-weight:bold;background:#fff;padding:2px 3px;border-radius:4px}.shine{position:absolute;left:11px;top:10px;bottom:15px;border-left:4px solid #ffffff99;border-radius:8px}.counter{position:absolute;bottom:62px;left:7%;right:7%;height:10px;border-radius:5px;background:#ddd2cd}#feedback{position:absolute;bottom:25px;left:0;width:100%;text-align:center;font-size:18px;font-weight:700;margin:0}#combo{position:absolute;bottom:5px;width:100%;text-align:center;font-size:12px;margin:0;color:#76566a}#pour{min-height:62px;font-weight:700;font-size:16px;touch-action:none;user-select:none;-webkit-user-select:none}#pour:active{background:#ece4e7}.companion{display:flex;gap:8px;align-items:center;min-height:64px}.companion img{object-fit:contain;flex-shrink:0}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:13px;margin:3px 0;line-height:1.5}#save-note{font-size:10px;color:#6e626a;margin:0}.panel{position:absolute;inset:0;background:#fffffff5;z-index:4;display:flex;padding:16px;overflow:auto}.panel-content{margin:auto;text-align:center;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}.panel h2{font-size:20px;margin:0}.panel p{font-size:13px;line-height:1.6;margin:0}.panel img{object-fit:contain}.panel button{width:100%;font-weight:700}#record{color:#6e626a}@media(max-height:700px){.glass{height:145px}.order{top:57px}.spout{top:99px}.stream{top:122px}.companion{min-height:48px}.companion img{width:48px;height:48px}.panel img{width:80px;height:80px}.panel-content{gap:8px}#pour{min-height:54px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Design review 1: the dashed line and its acceptance area remain legible over every drink. */
.target::before{content:'';position:absolute;left:12px;right:12px;top:-15px;height:28px;background:#ffffff38;border-block:1px solid #76566a33;pointer-events:none}.glass{box-shadow:inset -6px 0 0 #ffffff66}.target span{border:1px solid #e7dfe1}
/* Design review 2: a held control and the rising surface show the same action. */
#pour.pouring{background:#eee4e8;border-color:#947585}.stream{border-radius:0 0 5px 5px}#pour:focus-visible{outline:2px solid #76566a;outline-offset:2px}
/* Design review 3: reserve an unambiguous cup area on shorter phones. */
@media(max-height:700px){.stage{min-height:310px}.order{top:55px}.spout{top:102px}.stream{top:125px}.glass{height:142px}.panel h2{font-size:18px}}#feedback{padding-inline:8px}.companion p{min-height:2.8em}
/* Detail review 3: communicate the time limit without adding another instruction. */
#timer.urgent{font-weight:700;color:#9a4255}
/* Play review 1: the visible tolerance band follows the actual cup height. */
.target::before{top:calc(-1 * var(--tolerance,14px));height:calc(2 * var(--tolerance,14px))}
