.foreman-game{font-size:17px;line-height:1.6}
.foreman-briefing #foremanPortrait{display:flex;align-items:flex-end;justify-content:center;min-height:180px}
#foremanPortrait canvas{display:block;width:131px;height:175px;object-fit:contain;animation:foreman-reveal .25s ease-out}
#foremanStepTitle{font-size:clamp(23px,2.4vw,30px);line-height:1.3;margin:24px 0 20px;scroll-margin-top:24px}
#foremanStepTitle:focus{outline:none}
.foreman-game button.foreman-correct{background:#edf7f1;color:#235b49;border:2px solid #39836a;opacity:1}
.foreman-checks{padding:18px 22px;border:1px solid #c4d6df;border-radius:12px;margin:0 0 18px;min-width:0}
.foreman-checks legend{padding:0 8px;font-size:18px;font-weight:650}
.foreman-check{display:flex;align-items:center;gap:14px;padding:14px 10px;min-height:48px;border-bottom:1px solid #dfE8ed;cursor:pointer}
.foreman-check:last-child{border:0}
.foreman-check input{width:22px;height:22px;flex:0 0 22px;accent-color:#276b85}
.foreman-readiness{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;margin:0 0 18px;padding:16px 20px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface-soft)}
.foreman-readiness figure{margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end}
.foreman-readiness canvas{display:block;width:150px;height:200px;max-width:100%;object-fit:contain}
.foreman-readiness figcaption{font-size:12px;margin-top:6px}
.foreman-readiness h3{margin:0;font-size:20px;line-height:1.3}
.foreman-readiness-display>.lesson-small{margin:7px 0 12px}
.foreman-readiness-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.foreman-readiness-item{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text-muted);font-size:13px;line-height:1.3}
.foreman-readiness-number{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:var(--brand-soft);color:var(--brand-hover);font-size:11px;font-weight:700}
.foreman-readiness-item[data-checked=true]{border-color:var(--brand);background:var(--brand-soft);color:var(--ink)}
.foreman-readiness[data-state=error]{border-color:#a35d16;background:#fff7ed}.foreman-readiness[data-state=error] .foreman-readiness-item[data-checked=false]{border-color:#a35d16;color:#734615}
.foreman-readiness[data-state=success]{border-color:#39836a;background:#edf7f1}.foreman-readiness[data-state=success] .foreman-readiness-item{border-color:#39836a;color:#235b49}
.foreman-visual-status{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;min-height:28px;margin:12px 0 0;padding:4px 10px;border-radius:50px;background:var(--gold-soft);color:var(--gold-ink);font-size:13px;font-weight:600;line-height:1.35}
.foreman-readiness[data-state=error] .foreman-visual-status,.foreman-ladder[data-state=error] .foreman-visual-status{background:#fff0e4;color:#734615}.foreman-readiness[data-state=success] .foreman-visual-status,.foreman-ladder[data-state=success] .foreman-visual-status{background:#edf7f1;color:#235b49}
.foreman-ladder{display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:28px;background:#f4f8fa;border:1px solid #c8dbe4;border-radius:12px;padding:22px}
.foreman-ladder figure{margin:0;min-width:0}
.foreman-ladder-frame{position:relative;overflow:hidden;border-radius:8px;background:#e4e9eb;width:min(100%,225px);aspect-ratio:1/2;margin-inline:auto}
.foreman-ladder canvas{display:block;width:100%;height:100%}
.foreman-ladder-marker{position:absolute;left:var(--focus-x);top:var(--focus-y);width:34px;height:34px;border:3px solid var(--gold);border-radius:50%;background:#faf6e988;box-shadow:0 0 0 5px #e7a71430;transform:translate(-50%,-50%);pointer-events:none}
.foreman-ladder-marker:after{content:'';position:absolute;inset:8px;border-radius:50%;background:var(--gold)}
.foreman-ladder[data-state=choice] .foreman-ladder-marker{border-color:var(--brand);box-shadow:0 0 0 5px #6b6ee830}.foreman-ladder[data-state=choice] .foreman-ladder-marker:after{background:var(--brand)}
.foreman-ladder[data-state=error] .foreman-ladder-marker{border-color:#a35d16;box-shadow:0 0 0 5px #a35d1630}.foreman-ladder[data-state=error] .foreman-ladder-marker:after{background:#a35d16}
.foreman-ladder[data-state=success] .foreman-ladder-marker{border-color:#39836a;box-shadow:0 0 0 5px #39836a30}.foreman-ladder[data-state=success] .foreman-ladder-marker:after{background:#39836a}
.foreman-ladder-frame .foreman-visual-status{position:absolute;left:10px;right:10px;bottom:10px;width:auto;margin:0;background:#fffffff0}
.foreman-ladder figcaption{font-size:12px;margin-top:10px}
.foreman-ladder h3{font-size:23px;line-height:1.3}
.foreman-ladder-answers,.foreman-ladder-nav{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.foreman-ladder-answers button{min-width:100px}
.foreman-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.foreman-phase{border:2px dashed #96b4c3;border-radius:12px;padding:18px;background:#f4f8fa;min-width:0}
.foreman-phase h3{margin:0;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.foreman-phase[data-foreman-phase=pool]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.foreman-phase[data-foreman-phase=pool]>h3,.foreman-phase[data-foreman-phase=pool]>.lesson-small{grid-column:1/-1}
.foreman-action{background:#fff;border:1px solid #c1d5df;border-radius:9px;padding:16px;margin-top:14px;cursor:grab;min-width:0;animation:foreman-reveal .2s ease-out}
.foreman-action h4{font-size:16px;line-height:1.4;margin:0}
.foreman-drag-handle{display:block;font-size:12px;color:#4c6573;margin-bottom:10px;cursor:grab;user-select:none}
.foreman-action p{font-size:13px;line-height:1.6;margin:12px 0}
.foreman-action .foreman-card-feedback{margin-bottom:0;color:#754318;border-left:3px solid #a35d16;padding-left:10px}
.foreman-action select{width:100%;max-width:100%;min-width:0;min-height:44px;background:#f3f8fa;color:#23495f;border:1px solid #96b4c3;border-radius:6px;padding:8px;font:inherit;font-size:13px}
.foreman-action[data-error=true]{border:2px solid #a35d16;background:#fff7ed}
.foreman-action select:focus-visible{outline:3px solid #94620b;outline-offset:3px}
.foreman-game .lesson-footer button:disabled,.foreman-ladder button:disabled,#moduleForeman:disabled{background:#edf2f4;color:#4c6573;border:1px solid #c4d4dd;box-shadow:none;cursor:not-allowed;opacity:1}
.foreman-game .lesson-footer button{white-space:normal;line-height:1.4;min-height:44px}
@keyframes foreman-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:850px){.foreman-board{grid-template-columns:1fr}.foreman-phase[data-foreman-phase=pool]{grid-template-columns:1fr}.foreman-ladder{grid-template-columns:minmax(170px,230px) minmax(0,1fr);gap:18px;padding:18px}.foreman-readiness{grid-template-columns:120px minmax(0,1fr)}.foreman-readiness canvas{width:120px;height:160px}}
@media(max-width:600px){
 .foreman-game{font-size:16px}
 .foreman-briefing #foremanPortrait{min-height:110px}
 #foremanPortrait canvas{width:79px;height:105px}
 .foreman-ladder{grid-template-columns:1fr;padding:15px}
 .foreman-ladder-frame{width:min(100%,195px)}
 .foreman-ladder h3{font-size:21px}
 .foreman-checks{padding:14px 10px}
 .foreman-check{padding:12px 4px}
 .foreman-readiness{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:13px}
 .foreman-readiness canvas{width:76px;height:102px}
 .foreman-readiness-list{grid-template-columns:1fr}
 .foreman-readiness-item{font-size:12px;min-height:40px;padding:6px 8px}
 .foreman-phase{padding:14px}
 .foreman-action{padding:14px}
 .foreman-game .lesson-footer>button{width:100%}
}
@media(prefers-reduced-motion:reduce){#foremanPortrait canvas,.foreman-action{animation:none}}
@media(max-width:1100px){
 .foreman-ladder summary{display:flex;align-items:center;min-height:44px;cursor:pointer}
 .foreman-action select{height:44px;font-size:16px}
}
@media(max-width:480px){
 .foreman-briefing #foremanPortrait{min-height:105px}
}
