/* In-flow guidance never covers a control or captures the player's input. */
.action-coach{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 12px;border:1px solid #a79961;border-left:4px solid #829b28;border-radius:12px;background:#f0f1d8;color:#244333}
.action-coach .hands-on-portrait{position:relative;display:block;flex:0 0 48px;width:48px;height:60px;overflow:hidden}
.action-coach .hands-on-portrait img{position:absolute;left:50%;top:50%;width:190%;max-width:none;height:134%;max-height:none;object-fit:contain;transform:translate(-50%,-50%)}
.action-coach .hands-on-copy{flex:1;min-width:0}
.action-coach .hands-on-copy>strong{display:block;font-size:14px;line-height:1.25}
.action-coach .hands-on-copy>p{margin:4px 0 5px;font-size:12px;line-height:1.4}
.action-coach .hands-on-actions{display:flex;flex-wrap:wrap;gap:3px 12px}
.action-coach .hands-on-actions button{min-height:44px;padding:5px 0;border:0;background:none;color:#204735;text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:750}
.action-coach .hands-on-actions button+button{font-weight:500;color:#5d5b45}
.hands-on-target{outline:3px solid #8da823!important;outline-offset:3px;scroll-margin:12px}
#menu-action-coach{flex:none;margin:10px 18px 0;max-height:32dvh;overflow:auto}
#modal .modal-inner:has(.mode-guide-panel){max-width:520px}
body.play-screen .coach #play-action-coach{display:flex;flex-direction:row;min-height:0;margin:3px 0;padding:6px 8px;border-radius:9px;gap:6px}
body.play-screen #play-action-coach .hands-on-portrait{flex-basis:34px;width:34px;height:44px}
body.play-screen #play-action-coach .hands-on-copy>strong{font-size:12px}
body.play-screen #play-action-coach .hands-on-copy>p{font-size:11px;line-height:1.3;margin:2px 0}
body.play-screen #play-action-coach .hands-on-actions{gap:10px}
body.play-screen #play-action-coach .hands-on-actions button{font-size:11px;min-height:44px;padding:3px 0}
.large-text .action-coach .hands-on-copy>strong,body.play-screen.large-text #play-action-coach .hands-on-copy>strong{font-size:17px}
.large-text .action-coach .hands-on-copy>p,.large-text .action-coach .hands-on-actions button,body.play-screen.large-text #play-action-coach .hands-on-copy>p,body.play-screen.large-text #play-action-coach .hands-on-actions button{font-size:15px}
.high-contrast .action-coach{background:#fff;color:#111;border-color:#111}
.high-contrast .hands-on-target{outline-color:#111!important}
@media(max-width:600px){#menu-action-coach{margin:8px 10px 0;padding:8px 9px}.action-coach .hands-on-portrait{flex-basis:38px;width:38px;height:51px}.action-coach .hands-on-copy>p{font-size:12px}}
@media(max-height:600px){#menu-action-coach .hands-on-portrait{display:none}#menu-action-coach{max-height:30dvh}.action-coach{padding:7px 9px}.action-coach .hands-on-copy>p{margin:2px 0}}

#home-action-coach .hands-on-portrait{display:none}
.simple-home .home-controls:has(#home-action-coach:not([hidden])) #home-coin-coach{display:none}

/* Match the gameplay breakpoint, including zoomed desktop windows. */
@media(min-width:851px),(min-width:600px) and (min-aspect-ratio:11/10){
 body.play-screen #play-action-coach .hands-on-portrait{flex-basis:60px;width:60px;height:76px}
 body.play-screen #play-action-coach .hands-on-copy>strong{font-size:14px}
 body.play-screen #play-action-coach .hands-on-copy>p{font-size:13px;line-height:1.4}
 body.play-screen.large-text #play-action-coach .hands-on-copy>strong{font-size:17px}
 body.play-screen.large-text #play-action-coach .hands-on-copy>p{font-size:15px}
}

/* A replay control is a real touch target in every campaign language. */
body.play-screen #campaign-help{min-height:44px;min-width:44px;margin:0;padding:5px;font-size:11px;flex:1;border-radius:7px;overflow-wrap:anywhere}

/* Keep real controls visible on short phones: one compact heading/Skip row,
   followed by the complete instruction. No clipped text or reduced hit target. */
@media(max-width:600px) and (max-height:700px){
 body.play-screen #play-action-coach.follows-action .hands-on-portrait{display:none}
 body.play-screen #play-action-coach.follows-action .hands-on-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
 body.play-screen #play-action-coach.follows-action .hands-on-copy>strong{grid-column:1;grid-row:1;align-self:center}
 body.play-screen #play-action-coach.follows-action .hands-on-copy>p{grid-column:1/-1;grid-row:2}
 body.play-screen #play-action-coach.follows-action .hands-on-actions{grid-column:2;grid-row:1;align-self:center}
 body.play-screen #play-action-coach.follows-action .hands-on-actions button{min-width:44px;min-height:44px}
}

/* Observation stays in the layout: the basin and changed controls remain unobscured. */
body.play-screen #play-action-coach.observing-action{position:static!important;max-width:100%;width:auto;box-shadow:none;background:#edf4df;border-color:#7d946e;transform:none!important}
body.play-screen #play-action-coach.observing-action .hands-on-copy>p{font-size:13px;line-height:1.4}
#play-action-coach.observing-action button:disabled{opacity:.45;text-decoration:none;cursor:wait}
.reserve-observed{outline:3px solid #e3bb49;outline-offset:2px}
