body.board-view { background:#fffdf5; color:#142d29; }
.board-view > header, .board-view > footer { display:none; }
.board-view main { margin:0; padding:0; min-height:100vh; }
.board-stage { box-sizing:border-box; min-height:100vh; width:100%; padding:clamp(12px,2vh,40px) clamp(16px,3.2vw,100px); background:#fffdf5; color:#142d29; }
.board-stage * { box-sizing:border-box; }
.board-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding-bottom:clamp(6px,1vh,16px); border-bottom:2px solid #7b9285; font-size:clamp(16px,1.65vw,52px); }
.board-bar > div { display:flex; gap:10px; flex-wrap:wrap; }
.board-bar a,.board-bar button { display:inline-flex; align-items:center; color:#183f37; background:#fffdf5; border:2px solid #526e62; border-radius:9px; min-height:48px; padding:4px .8em; font:inherit; font-weight:600; text-decoration:none; }
.board-stage :is(a,button):focus-visible { outline:4px solid #984000; outline-offset:2px; }
.board-stage .board-step { margin:clamp(10px,1.8vh,32px) 0 .1em; font-size:clamp(18px,1.6vw,52px); color:#3d554a; font-weight:600; }
.board-stage h1 { font-size:clamp(32px,3.4vw,120px); line-height:1.12; max-width:none; margin:0 0 .32em; color:#16352e; letter-spacing:-.02em; overflow-wrap:anywhere; }
.board-work { display:grid; align-items:center; gap:clamp(12px,2vw,56px); }
.board-work.has-diagram { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.board-answers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(6px,1vh,25px) clamp(9px,1vw,30px); }
.board-choice { display:flex; align-items:center; gap:.45em; width:100%; min-width:0; min-height:clamp(58px,7.7vh,180px); padding:.38em .54em; border:3px solid #426c5a; border-radius:12px; background:#fff; color:#14382c; font-size:clamp(24px,2.3vw,82px); line-height:1.14; text-align:left; overflow-wrap:anywhere; touch-action:manipulation; }
.board-choice span { display:inline-grid; flex:0 0 1.45em; min-height:1.45em; place-items:center; font-size:.72em; font-weight:600; border-radius:50%; background:#e2ece1; color:#264a38; }
.board-choice strong { min-width:0; font-weight:650; }
.board-choice:hover:not(:disabled) { background:#e8f4e4; }
.board-choice:disabled { opacity:1; color:#34463c; }
.board-choice.was-tried { background:#e7e8e2; border-style:dashed; }
.board-choice.is-correct { border-color:#185e34; background:#cbeccc; color:#143c24; }
.board-model>button { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; min-height:64px; border:2px solid #879a8b; border-radius:12px; background:#fff; color:#294b3e; padding:.35em; font-size:clamp(16px,1.2vw,42px); }
.board-model img.crew-picture { width:100%; height:clamp(125px,33vh,780px); max-height:none; display:block; margin:0; object-fit:contain; }
.board-response { display:flex; align-items:center; justify-content:space-between; gap:clamp(12px,2vw,42px); margin:clamp(10px,1.7vh,32px) 0 0; }
.board-response p { flex:1; margin:0; font-size:clamp(23px,2.05vw,72px); line-height:1.23; color:#173e31; overflow-wrap:anywhere; }
.board-response button,.board-finish .button,.board-dialog button { min-height:52px; font-size:clamp(22px,1.9vw,64px); line-height:1.2; padding:.48em .85em; }
.board-dialog { border:3px solid #426c5a; border-radius:14px; max-width:98vw; width:95vw; max-height:96vh; height:91vh; background:white; color:#153a2e; margin:auto; }
.board-dialog:not([open]) { display:none; }
.board-dialog[open] { position:fixed; inset:0; z-index:120; }
.board-dialog::backdrop { background:#142c27d9; }
.board-dialog>div { display:flex; height:100%; flex-direction:column; align-items:center; gap:8px; }
.board-dialog img.crew-picture { width:100%; height:0; min-height:0; max-height:none; flex:1; margin:0; object-fit:contain; }
.board-finish { margin:clamp(32px,8vh,160px) auto; max-width:88vw; }
.board-finish h2,.board-finish p { font-size:clamp(24px,2.2vw,82px); line-height:1.3; }
@media (max-width:850px) { .board-work.has-diagram { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .has-diagram .board-answers { grid-template-columns:1fr; } }
@media (max-width:600px) { .board-work.has-diagram { grid-template-columns:1fr; } .board-response { flex-wrap:wrap; } .board-model img.crew-picture { height:24vh; } }

.crew-play.crew-active { max-width:1120px; padding-top:16px; }
.crew-active .crew-title { margin:12px 0; }
.crew-active .crew-title h1 { font-size:clamp(21px,2.1vw,35px); line-height:1.14; }
.crew-active .crew-challenge { margin-top:10px; padding:clamp(12px,1.4vw,24px); }
.crew-active .crew-challenge h2 { font-size:clamp(23px,2.2vw,44px); margin:.18em 0 .5em; }
.teacher-question-work.has-model { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,1fr); align-items:start; gap:20px; }
.teacher-turn { margin:0 0 .55em; color:#345146; font-size:clamp(16px,1.35vw,32px); line-height:1.25; }
.crew-active .crew-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.crew-active .crew-choices button { min-height:48px; text-align:left; line-height:1.18; overflow-wrap:anywhere; padding:8px 11px; }
.crew-active .crew-choices small { color:#486352; margin-right:4px; }
.board-work { align-items:start; }
teacher-picture { display:block; position:relative; min-width:0; }
.teacher-drawing { border:1px solid #9eafa1; border-radius:10px; background:#fff; padding:4px; }
.teacher-canvas { display:grid; position:relative; place-items:center; }
.teacher-canvas[tabindex] { cursor:crosshair; outline:3px solid #a86115; }
teacher-picture .teacher-canvas img.crew-picture { width:100%; display:block; margin:0; height:clamp(128px,24vh,255px); max-height:none; object-fit:contain; }
.board-model teacher-picture .teacher-canvas img.crew-picture { height:clamp(145px,31vh,540px); }
.teacher-tools,.teacher-proof-check { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.teacher-tools { margin:6px 0 0; }
.teacher-tools button,button.teacher-zoom { min-width:44px; min-height:44px; border:1px solid #607d70; border-radius:8px; padding:5px 10px; font:600 clamp(15px,1.05vw,26px)/1.15 system-ui,sans-serif; color:#214737; background:#edf5ea; }
.teacher-tools button:hover,.teacher-tools [aria-pressed="true"] { background:#d6ebd1; }
.teacher-tools input { width:6.1ch; min-width:44px; min-height:44px; font:inherit; }
.teacher-proof-check label { font:600 clamp(15px,1.1vw,24px)/1.2 system-ui,sans-serif; }
.teacher-picture-note,.board-stage .teacher-picture-note { font-size:clamp(15px,1.12vw,25px); line-height:1.22; margin:4px 0 0; }
.teacher-picture-note:empty { display:none; }
.teacher-proof-steps { display:inline-flex; flex-wrap:wrap; gap:.2em .6em; vertical-align:baseline; }
.teacher-proof-steps>[role=listitem]+[role=listitem] { border-left:2px solid #a3b6a9; padding-left:.6em; }
button.teacher-zoom { margin-top:5px; padding:5px 9px; background:#fff; min-height:44px; font-size:clamp(14px,1vw,23px); }
.teacher-mark { position:absolute; width:24px;height:24px;border:3px solid #9b4617;border-radius:50%;background:#ffa94145;transform:translate(-50%,-50%);pointer-events:none; }
@media(max-height:800px) and (min-width:900px) {
  .board-stage h1 { font-size:clamp(30px,2.7vw,50px); }
  .board-stage .board-step { margin-top:10px; }
  .crew-active .teacher-canvas img.crew-picture { height:clamp(128px,21vh,168px); }
  .crew-active .crew-feedback:not(:empty) { margin:7px 0; }
}
@media(max-width:700px) {
  .teacher-question-work.has-model { grid-template-columns:1fr; gap:10px; }
  .crew-active .teacher-canvas img.crew-picture { height:clamp(125px,22vh,215px); }
}
