.pinned { isolation: isolate; }
#pipe-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; }
#pipe-shell { stroke: #294641; stroke-width: 10; }
#pipe-core { stroke: #85a496; stroke-width: 6; }
#pipe-flow { stroke: #f5d782; stroke-width: 3; stroke-dasharray: 5 11; opacity: 0; }
.pouring #pipe-flow, #pipe-overlay.is-flowing #pipe-flow { opacity: 1; animation: pipe-flow .45s linear infinite; }
.game-board { overflow: visible; }
#spout { cursor: pointer; }
#spray-lines { pointer-events: none; }
#spout:focus-visible #nozzle-cap { stroke: #fff1b4; stroke-width: 4; }
.board-top #help { position: relative; z-index: 2; }
.game-board[data-phase="guess"] #board-note, .game-board[data-phase="ideal"] #board-note { visibility: hidden; }
#allocation-console { grid-template-columns: 247px minmax(0,1fr); border: 1px solid #8fa599; background: #dbe5d7; border-radius: 0 0 11px 11px; }
body.game-locked #allocation-console #dock-svg { width: 94px; height: 45px; }
#allocation-console #tray-label { color: #36564b; }
#allocation-console #tray-total { color: #253e36; }
#dock-label-slot { width: 140px; flex: none; font-variant-numeric: tabular-nums; }
#allocation-console .tool-group.nozzles { align-items: center; gap: 4px; }
.nozzle-label { padding-inline: 3px; font-size: 9px; font-weight: 800; letter-spacing: .07em; color: #3d5a4a; }
#allocation-console .nozzles button.selected { background: #f4d48b; border-color: #8f763e; color: #2e392c; }
.game-locked .phase-head { border: 1px solid #8ba59a; }
body[data-round="guess"] .phase-head { background: #e6d8ac; }
body[data-round="actual"] .phase-head { background: #c9ded5; }
body[data-round="ideal"] .phase-head { background: #dfd7e8; }
body[data-round] .phase-head::before { content: none; }
.game-locked .phase-head > div:first-child, .phase-head > div:first-child { padding-left: 0; }
.game-locked .chapters button:disabled { opacity: .48; cursor: default; }
.game-locked .chapters .current span { border-color: #795f32; box-shadow: 0 2px 0 #795f32; }
#round-dialog { max-width: min(500px, 92vw); border: 2px solid #8da697; border-radius: 16px; background: #f2f3df; box-shadow: 0 6px 0 #334b41, 0 14px 45px #24352a55; }
#round-label { margin: 0 0 10px; color: #547264; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
#round-title { margin: 0 0 10px; color: #263d34; }
#round-description { margin: 0 0 18px; }
#round-score { color: #395f4c; font-size: 23px; font-weight: 800; }
#auto-camera[aria-pressed="true"] { background: #cce4b3; border-color: #728d5e; }
.active-bar, .ghost-bar { transition: none; }
#rain-zone:focus { outline: none; }
#rain-zone:focus-visible { stroke: #7d946e; stroke-width: 1; stroke-dasharray: 4 5; }
@keyframes pipe-flow { to { stroke-dashoffset: -32; } }
@media (max-width:700px) {
 .nozzle-label { font-size: 8px; }
 #allocation-console { grid-template-columns: 1fr; padding-inline: 4px; }
 body.game-locked #allocation-console #dock-svg { width: 81px; height: 39px; }
 #pipe-shell { stroke-width: 7; }
 #pipe-core { stroke-width: 4; }
 #pipe-flow { stroke-width: 2; }
 #round-dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 #pipe-flow { animation: none !important; }
}
