/* Museum TN v8.8.16.76 — vitrine interaction and readable experiments */
.mtn-turk-actions{display:grid;gap:.45rem;padding:.65rem;border:1px solid #66889b;background:#193041;border-radius:12px;width:100%}
.mtn-turk-actions p{margin:.15rem 0;color:#dfe5e6;line-height:1.5}
.mtn-turk-actions button{min-height:42px;color:#f5f9fb;background:#253f50;border:1px solid #86a6b5;border-radius:7px;font:inherit;font-size:.88rem;cursor:pointer}
.mtn-turk-actions button[aria-pressed="true"]{color:#1a2a33;background:#f1ce90;border-color:#f1ce90}
.mtn-turk-actions button:focus-visible{outline:3px solid #f1ce90;outline-offset:2px}
.mtn-film-viewer{position:fixed;inset:0;width:min(1050px,94vw);height:min(94dvh,900px);max-width:none;max-height:none;box-sizing:border-box;border:1px solid #93aeba;border-radius:14px;background:#101d27;color:white;padding:.7rem;overflow:auto;z-index:2147483000}
.mtn-film-viewer::backdrop{background:rgba(5,13,19,.82)}
.mtn-film-viewer header{position:sticky;top:-.7rem;z-index:3;background:#101d27;display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.6rem .35rem;border-bottom:1px solid #49606e}
.mtn-film-viewer h2{font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.3;margin:0;color:#f3ebdb}
.mtn-film-viewer .mtn-film-close{flex:none;min-height:44px;max-width:46%;background:#d8b989;border:1px solid #fff;border-radius:9px;color:#122330;font:inherit;font-weight:700;cursor:pointer}
.mtn-film-viewer iframe{width:100%;height:auto;aspect-ratio:16/9;border:0;display:block;background:#000;margin:.65rem auto}
.mtn-film-viewer p{margin:.6rem 0}.mtn-film-viewer a{color:#d6edff}
.mtn-film-viewer :focus-visible{outline:3px solid #fff;outline-offset:2px}
/* The expert-system controls must never force two narrow columns. */
html.mtnu-module .r3i-dialog .hi-grid{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
html.mtnu-module .r3i-dialog .hi-panel,html.mtnu-module .r3i-dialog .hi-rule{min-width:0!important;overflow-wrap:anywhere}
html.mtnu-module .r3i-dialog .hi-panel input,html.mtnu-module .r3i-dialog .hi-panel select{max-width:100%;min-width:0}
html.mtnu-module .r3i-dialog .hi-panel button{white-space:normal}
/* The player has explicitly chosen a live chess game: enlarge only during play. */
html.mtnu-module .mtn-chess.mtn-chess-expanded{position:fixed!important;inset:3dvh 3vw!important;width:94vw!important;height:94dvh!important;max-width:none!important;margin:0!important;box-sizing:border-box;overflow:auto!important;z-index:2147483000!important;padding:clamp(.75rem,2vw,1.2rem)!important;border:2px solid #edce91!important;border-radius:14px;background:#152a39!important;box-shadow:0 0 0 150vw rgba(3,10,15,.88)!important}
html.mtnu-module .mtn-chess-expanded .mtn-chess-intro{position:sticky;top:0;z-index:20;display:flex;background:#152a39;padding:.45rem 0 .7rem;border-bottom:1px solid #657b87}
html.mtnu-module .mtn-chess-expanded .mtn-chess-intro p{max-width:42rem}
html.mtnu-module .mtn-chess-expanded .mtn-chess-toggle{position:sticky;top:0;min-height:48px;font-weight:800;box-shadow:0 2px 14px rgba(0,0,0,.4)}
html.mtnu-module .mtn-chess-expanded .mtn-chess-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,260px);gap:clamp(.6rem,2vw,1.5rem)}
html.mtnu-module .mtn-chess-expanded .mtn-chess-board{max-width:min(70vw,74dvh,760px);width:100%;border-width:4px}
html.mtnu-module .mtn-chess-expanded .mtn-chess-piece{font-size:clamp(1.55rem,3.6vw,3rem)}
@media(max-width:780px){html.mtnu-module .mtn-chess-expanded .mtn-chess-layout{grid-template-columns:minmax(0,1fr)}html.mtnu-module .mtn-chess-expanded .mtn-chess-board{max-width:min(89vw,70dvh,620px)}html.mtnu-module .mtn-chess-expanded .mtn-chess-intro>div{display:none}.mtn-film-viewer{width:100vw;height:100dvh;border-radius:0;padding:.4rem}.mtn-film-viewer iframe{aspect-ratio:4/3}}
/* Expand the WHOLE interactive shell during an explicitly opened chess game.
   A fixed chess div inside the narrow, scroll-clipped dialog could not escape
   its parent's containing block; expand the dialog itself instead. */
html.mtnu-module .r3i-shell:not([hidden]):has(.mtn-chess-expanded){
 padding:2dvh 2vw!important;align-items:stretch!important;justify-content:center!important;
 background:rgba(4,11,17,.9)!important;pointer-events:auto!important;
}
html.mtnu-module .r3i-dialog:has(.mtn-chess-expanded){
 width:96vw!important;max-width:96vw!important;height:96dvh!important;max-height:96dvh!important;
 overflow-y:auto!important;overflow-x:hidden!important;border:2px solid #c7ac79!important;
}
html.mtnu-module .r3i-dialog:has(.mtn-chess-expanded) .r3i-content{padding:.5rem clamp(.5rem,1.5vw,1rem)!important}
html.mtnu-module .r3i-dialog .mtn-chess.mtn-chess-expanded{
 position:relative!important;inset:auto!important;width:100%!important;height:auto!important;
 max-height:none!important;overflow:visible!important;margin:0!important;padding:.5rem!important;
 box-shadow:none!important;border:0!important;border-radius:0!important;
}
html.mtnu-module .r3i-dialog:has(.mtn-chess-expanded) .r3i-dialog-head{position:sticky;top:0;z-index:60}
