/* Region openings (region_openings.js; Work-ID 20260927-region-openings-f818).
   AGENTS.md "Absolute UI hover geometry": the Next button and the partner cards (journey.css) have one authored box;
   hover, focus, selection and the pressed state change paint only (colour, inset shadow, outline drawn inside). */

/* The scene window: a GBA-style text box, sized to its content (the shared window frame would make it a full-height
   panel with nothing in it) so the map stays visible around it. */
dialog#modal[data-view="opening"]{box-sizing:border-box!important;width:min(46rem,94vw)!important;min-width:0!important;max-width:94vw!important;height:auto!important;min-height:0!important;max-height:min(40rem,92vh)!important}
dialog#modal[data-view="opening"] #modal-body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
dialog#modal[data-view="opening"]::backdrop{background:#0d111c44}
#modal[data-view="opening"]{border:2px solid #f4e3a1;border-radius:1.1rem;background:linear-gradient(180deg,#263352,#222e49);box-shadow:0 0 0 3px #192236,0 1rem 2.4rem #0d111caa;overflow:hidden}
#modal[data-view="opening"] .modal-header{background:linear-gradient(180deg,#34587f,#28324a);border-bottom:2px solid #192236}
#modal[data-view="opening"] #modal-eyebrow{display:none}
#modal[data-view="opening"] #modal-title{margin:0;color:#fff;font-size:1.1rem;letter-spacing:.1em;text-shadow:0 2px 0 #192236}
#modal[data-view="opening"] #modal-body{padding:.9rem 1rem 1rem;background:linear-gradient(180deg,#28324a,#222e49)}
.opening-panel{display:grid;gap:.7rem;color:#fff}
.opening-game{margin:0;color:#f4e3a1;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.opening-box{box-sizing:border-box;display:grid;align-content:start;gap:.35rem;min-height:7.2rem;margin:0;padding:.7rem .9rem;border:3px solid #5b6f8c;border-radius:.7rem;background:#fff;color:#232f4a;box-shadow:inset 0 0 0 2px #dfe6f0}
.opening-speaker{min-height:1.1rem;color:#be524b;font-size:.85rem;font-weight:900;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opening-speaker.narration{color:#5b6f8c}
.opening-text{margin:0;font-size:.98rem;line-height:1.4;overflow-wrap:anywhere}
.opening-gate .opening-box{border-color:#c98b2a}
.opening-starters[hidden]{display:none}
.opening-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.opening-count{min-width:3.5rem;color:#cfe0f5;font-size:.78rem;font-weight:800;letter-spacing:.06em}
.opening-next{box-sizing:border-box;width:16rem;height:2.4rem;margin:0;padding:0 .6rem;border:0;border-radius:.55rem;background:#2fb85f;color:#fff;font-weight:900;letter-spacing:.06em;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:inset 0 -.2rem 0 #0d111c66}
.opening-next:hover{background:#38c96a}
.opening-next:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.opening-next:active{box-shadow:inset 0 .2rem 0 #0d111c66}

/* Registration: the first partner comes with the region's opening, not the form (app.js setMode says so). */
#registration-options label:has(+ #starters),#registration-options #starters,#registration-options #registration-summary{display:none}
