/* Entry field notes: presentation only. The creek model owns every phase. */
#pockets button{max-width:260px;padding:8px 14px;color:#e8d8ae;border-radius:2px;display:flex;align-items:center;gap:12px;min-width:0}
.entry-deposit{display:block;width:78px;height:40px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.deposit-ground{fill:currentColor;fill-opacity:.2}
#pockets button[aria-pressed=true]{box-shadow:inset 0 -3px #9d7836}
#tools{margin-top:10px;padding:0 12px 12px;border:1px solid #64705b;border-radius:3px;background:#203129}
.entry-phase{display:flex;list-style:none;padding:0;margin:0;border-bottom:1px solid #526258;gap:20px;font:14px Georgia,serif}
.entry-phase li{padding:8px 2px 6px;border-bottom:3px solid transparent;color:#bfc5b5}
.entry-phase span{font:10px system-ui,sans-serif;margin-right:5px}
#creek-game[data-phase=explore] [data-entry-phase=explore],#creek-game[data-phase=wash] [data-entry-phase=wash],#creek-game[data-phase=complete] [data-entry-phase=complete]{border-bottom-color:#e9be68;color:#f5d891;font-weight:bold}
#tools button,#pause,#inspect,#help-toggle,#journal-toggle,#journal-close,#export{min-height:44px}
.tool-row button{border-bottom-width:3px;box-shadow:0 2px 0 #102019;font-weight:600}
.fine-controls{flex-wrap:wrap;gap:8px}
.fine-controls input{height:44px;width:160px;margin:0;cursor:pointer}
.fine-controls label{font-weight:bold;color:#efdfbb}
.fine-controls button{padding:8px 10px}
#keeps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;counter-reset:assay}
.keep{position:relative;min-width:0;border:1px solid #b9a276;border-top:3px solid #9b7b3d;border-radius:1px;padding:14px 12px;background:#efe1be;color:#29382e;overflow-wrap:anywhere;box-shadow:0 3px 0 #14251e;counter-increment:assay}
.keep strong{font:18px Georgia,serif;color:#29382e;padding-bottom:9px;border-bottom:1px solid #beac84;margin-bottom:7px}
.keep small{display:block;color:#4e503b;font-size:12px;font-variant-numeric:tabular-nums}
.entry-strokes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px;color:#302f23}
.entry-strokes figure{margin:0;padding:12px;background:#efe1be;border-top:3px solid #ba9650}
.entry-strokes svg{width:100%;height:78px;fill:none;stroke:#66502c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.entry-strokes figcaption{font-size:12px;line-height:1.5}.entry-strokes b{display:block;font:20px Georgia,serif;margin-bottom:5px}
@media(max-width:600px){
 #pockets button{display:block;padding:5px 4px;font-size:11px;line-height:1.3}.entry-deposit{width:100%;height:30px;margin-bottom:4px}
 #tools{padding:0 8px 8px;margin-top:8px}.entry-phase{gap:20px;font-size:13px}.entry-phase li{padding:6px 0 4px}
 .fine-controls{display:grid;grid-template-columns:auto minmax(65px,1fr) auto;gap:4px 8px;margin-top:5px}.fine-controls input{width:100%;min-width:0}.fine-controls button{font-size:11px}#drag-mode{grid-column:1 / 3}#recover{grid-column:3;padding:5px}
 .tool-row{gap:5px}.tool-row button{font-size:11px;padding:5px 3px;overflow-wrap:anywhere;min-width:0}.instruction p{max-width:79%}
 #stage{height:clamp(200px,30vh,260px)}#scene-note{max-width:61%}
 .entry-strokes{gap:5px}.entry-strokes figure{padding:7px}.entry-strokes svg{height:56px}.entry-strokes b{font-size:17px}.entry-strokes figcaption{font-size:11px}
 #keeps{grid-template-columns:repeat(2,minmax(0,1fr))}.keep strong{font-size:17px}.panel-title{gap:10px}.panel-title h2{font-size:22px}
}
@media(max-height:650px) and (max-width:600px){
 .heading{height:46px}h1{font-size:22px}#stage{height:180px}#clue{min-height:30px;margin:5px 0}.instruction{min-height:39px}.instruction p{margin:5px 0}footer{padding:12px 0}
 #fallback .flat-pan{width:180px;height:135px}#fallback{gap:4px}
}
/* Pictorial field-tool tray. Mechanics and dynamic action labels stay model-owned. */
#tools{background:linear-gradient(#24352eeb,#24352eeb),url('/concepts/table/assets/wood.jpg') center/600px;border:1px solid #879174;box-shadow:inset 0 0 0 3px #14261d,0 4px 0 #0d1a13}
.tool-row button{position:relative;min-height:82px;border-radius:2px;border:1px solid #9b9875;border-bottom:4px solid #17251c;background:#35473b;color:#f1e3bd;box-shadow:inset 0 0 0 2px #22372b,0 2px 0 #0c1a12;padding:7px 8px;font:16px Georgia,serif}
.tool-row button.primary{background:#d7b571;color:#263328;border-color:#b79552;box-shadow:inset 0 0 0 2px #ebd398,0 2px 0 #0c1a12}
.tool-row button:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px;box-shadow:inset 0 2px 5px #101a11aa}
.tool-row button:disabled{opacity:.58;background:#475347;color:#d6d2ba;border-color:#69745e;box-shadow:none}
.pan-action-icon{display:block;width:48px;height:32px;margin:0 auto 5px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.pan-action-collect::before{content:'';display:block;width:48px;height:32px;margin:0 auto 5px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M19 3h10m-8 1v8l-5 6v11h16V18l-5-6V4m-9 20h12m-6-8 2 4 4 2-4 2-2 4-2-4-4-2 4-2Z'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
@media(max-width:600px){.tool-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tool-row button{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;min-height:48px;padding:5px 6px}.pan-action-icon,.pan-action-collect::before{height:26px;width:34px;margin:0;flex-shrink:0}}
@media(max-height:650px) and (max-width:600px){#stage{height:150px}.tool-row button{min-height:46px}.pan-action-icon,.pan-action-collect::before{height:24px}.instruction{min-height:37px}.entry-phase li{padding-top:4px;padding-bottom:3px}}
@media(prefers-reduced-motion:reduce){.entry-deposit,.entry-strokes svg,.entry-phase{animation:none;transition:none}}

/* Creek survey: three positions on one continuous, annotated stream bed. */
#pockets{position:relative;gap:0;max-width:780px;padding:5px;background:linear-gradient(165deg,#476b65 0 24%,#263f39 25% 55%,#a78d60 56% 59%,#544d39 60%);border:1px solid #a7956a;box-shadow:inset 0 0 0 3px #1a3029}
#pockets button{position:relative;flex:1;max-width:none;min-height:84px;justify-content:center;flex-direction:column;gap:2px;padding:5px 8px 9px;text-align:center;background:#182e29c9;border:1px solid #b7a87970;border-radius:0;color:#f3e8cc;font:14px/1.25 Georgia,serif}
#pockets button+button{border-left:0}
#pockets button[aria-pressed=true]{background:#e0c893;color:#1d3029;border-color:#f0dcae;box-shadow:inset 0 -4px #755b2f}
#pockets button[aria-pressed=true]::after{content:'';position:absolute;bottom:2px;left:50%;width:7px;height:7px;background:#364a36;transform:translateX(-50%) rotate(45deg)}
#pockets button:hover:not(:disabled):not([aria-pressed=true]){background:#36564b;color:#fff4d5}
#pockets button:focus-visible{z-index:1;outline-offset:-4px}
.entry-deposit{width:100%;max-width:110px;height:38px;margin:0}
@media(max-width:600px){#pockets button{display:flex;min-height:74px;padding:4px 3px 9px;font-size:12px}.entry-deposit{height:31px;margin:0}#pockets{padding:4px}}
@media(forced-colors:active){#pockets button[aria-pressed=true]::after{background:Canvas;border:2px solid CanvasText}#pockets button:focus-visible{outline:3px solid Highlight;outline-offset:-4px}}
