/* Action-led orientation, not another modal or an answer gate. */
.opening-progress{display:block;margin:0 0 3px;color:#ddd;font:11px/1.4 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.opening-tool-purpose{display:block!important;color:#ccc;font:11px/1.35 Arial,sans-serif!important;margin-top:5px}
.departure-task{padding:12px;border-left:3px solid #a60909;background:#181818;margin:12px 0 18px}
.departure-task p{font:14px/1.45 Arial,sans-serif;margin:0 0 8px}.departure-task button{min-height:44px;background:#272727;color:white;border:1px solid #888;padding:8px 12px;text-align:left}
.opening-next-note{font:13px/1.45 Arial,sans-serif;color:#ddd;margin:12px 0 8px}
#audit-dialog .audit-observations:focus,#audit-dialog .choice-stack:focus,#audit-commit:focus{outline:2px solid white;outline-offset:5px}
.opening-help{display:flex;gap:6px;flex-wrap:wrap;margin-top:0;justify-content:space-between}.opening-help[hidden]{display:none}.opening-help button{background:transparent;border:0;color:#ddd;text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:5px 0;font:12px/1.4 Arial,sans-serif;white-space:normal;min-width:0;max-width:60%}.opening-help button:focus-visible{outline:2px solid #fff;outline-offset:2px}.opening-next-target{outline:3px solid #fff!important;outline-offset:5px;box-shadow:0 0 0 8px #a60909!important}
/* A single task stack above three width-safe evidence tools. */
.game.opening-scene #evidence-link{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:min(340px,calc(100% - 38px))}
.game.opening-scene #scene-action{width:100%;min-width:0;white-space:normal}
.game.opening-scene #scene-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));box-sizing:border-box;max-width:530px;width:calc(100% - 36px)}
.game.opening-scene #scene-tools button{width:100%;min-width:0;max-width:none;height:auto;min-height:72px;padding:10px;white-space:normal;overflow-wrap:anywhere}
.game.opening-scene #scene-tools button span{max-width:100%}
/* Narrow screens grow with content, never a fixed-height or overflowing action tray. */
@media(max-width:560px){
 .game.opening-scene{height:auto;min-height:100dvh;padding-top:95px;padding-bottom:18px}
 .game.opening-scene .scene-viewport{height:100dvh;bottom:auto}
 .game.opening-scene #working-board{position:relative;inset:auto;width:auto;margin:0 19px}
 .game.opening-scene.has-evidence .objective{position:relative;inset:auto;margin:clamp(170px,calc(55dvh - 140px),330px) 19px 0;max-width:none}
 .game.opening-scene #evidence-link{position:relative;inset:auto;width:auto;margin:18px 19px 0}
 .game.opening-scene #scene-tools{position:relative;inset:auto;width:auto;max-width:none;margin:18px 19px 0;gap:7px}
 .game.opening-scene #scene-tools button{padding:9px 5px}
 .game.opening-scene #scene-tools button span{font-size:12px}
 .game.opening-scene .scene-credit{position:relative;inset:auto;margin:20px 19px 0;text-align:left;font-size:6px}
 .game.opening-scene .opening-tour{margin:12px 19px 0}
 .opening-tool-purpose{font-size:10px!important}.opening-progress{font-size:10px}.departure-task{padding:10px}
}
/* Always-visible procedure: the next action does not depend on hearing/reopening narration. */
.opening-procedure{margin:12px 0 16px;padding:12px 14px;border:1px solid #94764d;border-left:4px solid #d5b580;border-radius:6px;background:linear-gradient(120deg,#282218,#141414);color:#f3eadb}
.opening-procedure-route{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0 0 10px;gap:6px}
.opening-procedure-route li{display:flex;align-items:center;gap:5px;color:#bfb8ac;font:11px/1.35 Arial,sans-serif;min-width:0}
.opening-procedure-route li>span{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1px solid #736954;border-radius:50%;font-size:10px}
.opening-procedure-route li[aria-current=step]{color:#ffe3ae;font-weight:700}
.opening-procedure-route li[aria-current=step]>span{background:#ba985c;color:#15110b;border-color:#e0bf81}
.opening-procedure .opening-procedure-title{font:700 15px/1.4 Arial,sans-serif;margin:0 0 5px}
.opening-procedure .opening-procedure-instruction{font:13px/1.45 Arial,sans-serif;margin:0;color:#dfd6c6}
.opening-procedure-next{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;background:#6f502b;color:#fff1d5;border:1px solid #c7a467;border-radius:4px;padding:10px 12px;margin-top:11px;font:700 14px/1.35 Arial,sans-serif;text-align:left;white-space:normal}
.opening-procedure-next:focus-visible{outline:3px solid white;outline-offset:3px}
#audit-source-dialog .inventory-object-links:before{content:'Optional close-ups';display:block;flex:1 1 100%;color:#c7c0b3;font:11px/1.4 Arial,sans-serif;letter-spacing:.04em}
#audit-source-dialog .inventory-object-links{flex-wrap:wrap}
@media(max-width:560px){.opening-procedure{padding:10px;margin:10px 0 13px}.opening-procedure-route{gap:4px}.opening-procedure-route li{font-size:10px;gap:4px}.opening-procedure-route li>span{flex-basis:18px;width:18px;height:18px}.opening-procedure .opening-procedure-title{font-size:14px}.opening-procedure .opening-procedure-instruction{font-size:12px}.opening-procedure-next{font-size:13px}}
