/* Interactive exhibition chess experience, v8.8.6.4. Scoped to avoid overriding the documented game reconstruction. */
.mtn-chess{margin:0;padding:clamp(.8rem,3vw,1.3rem);background:linear-gradient(135deg,#122333,#233c50);color:#fff;font:400 1rem/1.55 system-ui,-apple-system,sans-serif;border-bottom:1px solid #647d89}
.mtn-chess *{box-sizing:border-box}
.mtn-chess-intro{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mtn-chess-intro>div{flex:1 1 260px}.mtn-chess-tag{color:#f0c37b;font-size:.72rem!important;font-weight:700;letter-spacing:.1em;margin:0 0 .4rem!important}
.mtn-chess-intro h2{color:#fff;font-size:clamp(1.3rem,3vw,1.8rem);margin:0 0 .3rem;line-height:1.3}.mtn-chess-intro p{color:#e6eaf0;margin:0;font-size:.88rem;line-height:1.55}
.mtn-chess button,.mtn-chess select{font:inherit;border-radius:10px}.mtn-chess button:focus-visible,.mtn-chess select:focus-visible{outline:3px solid #ffdc92;outline-offset:3px}
.mtn-chess-toggle{min-height:48px;padding:.72rem 1rem;border:1px solid #ffdc92;background:#f4d39a;color:#152433!important;font-weight:700;cursor:pointer}
.mtn-chess-experiment[hidden],.mtn-chess-promotion[hidden]{display:none!important}
.mtn-chess-experiment{padding-top:1.2rem}.mtn-chess-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px);gap:1rem;align-items:start}
.mtn-chess-boardwrap{width:100%;min-width:0}.mtn-chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;max-width:560px;margin:auto;border:5px solid #c6a473;border-radius:3px;overflow:hidden;touch-action:manipulation}
.mtn-chess-sq{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;min-width:0;min-height:0;border:0!important;padding:0!important;border-radius:0!important;cursor:pointer;aspect-ratio:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mtn-chess-sq.light{background:#e9dabb!important;color:#253442}.mtn-chess-sq.dark{background:#809c9e!important;color:#122733}
.mtn-chess-sq.selected{box-shadow:inset 0 0 0 4px #f4aa28}.mtn-chess-sq.possible:after{content:'';position:absolute;width:23%;height:23%;border-radius:100%;background:#174c38;opacity:.55;z-index:0;pointer-events:none}
.mtn-chess-sq.possible:has(.mtn-chess-piece:not(:empty)):after{width:85%;height:85%;border:4px solid #edb646;background:transparent;opacity:.9}
.mtn-chess-sq.last:not(.selected){box-shadow:inset 0 0 0 3px #f7dba4}
.mtn-chess-piece{position:relative;z-index:1;font-family:'DejaVu Sans','Arial Unicode MS','Segoe UI Symbol',sans-serif;font-size:clamp(20px,4.4vw,45px);line-height:1;user-select:none;pointer-events:none}
.mtn-chess-piece.white{color:#fffaf0;text-shadow:0 2px 1px #273540,1px 0 1px #273540,-1px 0 1px #273540}.mtn-chess-piece.black{color:#17232b;text-shadow:0 1px 1px rgba(255,255,255,.3)}
.mtn-chess-sq .file,.mtn-chess-sq .rank{position:absolute;font-size:clamp(.52rem,1vw,.72rem);font-weight:800;opacity:.78;pointer-events:none;line-height:1}.mtn-chess-sq .file{bottom:2px;right:3px}.mtn-chess-sq .rank{top:3px;left:3px}
.mtn-chess-tip,.mtn-chess-disclosure{color:#edf0f1!important;font-size:.83rem!important;line-height:1.5!important;margin:.6rem 0 0!important}
.mtn-chess-sidebar{min-width:0}.mtn-chess-level label{display:grid;gap:.35rem;color:#f7e7c5;font-size:.85rem;font-weight:700}
.mtn-chess-select{width:100%;min-height:44px;padding:.55rem;background:#fff;color:#162c3a;border:1px solid #cedfe7}
.mtn-chess-status{border:1px solid #91a9ad;border-radius:10px;background:#1b3746;color:#fff!important;padding:.8rem;font-size:.9rem!important;font-weight:700;margin:.8rem 0!important;min-height:65px}
.mtn-chess-controls{display:flex;flex-wrap:wrap;gap:.5rem}.mtn-chess-controls button,.mtn-chess-promotion button{padding:.55rem .65rem;min-height:44px;border:1px solid #b1d1d0;background:#eef6f5;color:#102935;cursor:pointer;flex:1 1 80px;font-weight:600}
.mtn-chess button:disabled{opacity:.65;cursor:default}.mtn-chess-promotion{padding:.6rem;margin-top:.7rem;border:2px solid #edc781;border-radius:9px;background:#1a3542}.mtn-chess-promotion-choices{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;margin-top:.5rem}
.mtn-chess-history{margin-top:.9rem;border:1px solid #9ab5ba;border-radius:10px;padding:.5rem .7rem;font-size:.88rem}.mtn-chess-history summary{cursor:pointer}.mtn-chess-moves{max-height:160px;overflow:auto;padding-left:1.25rem;margin:.5rem 0;color:#e9f0f3}
.mtn-chess-disclosure{border-top:1px solid #718a98;margin-top:1.1rem!important;padding-top:.8rem}
@media(max-width:690px){.mtn-chess-layout{grid-template-columns:minmax(0,1fr)}.mtn-chess-sidebar{display:grid;gap:.45rem;grid-template-columns:1fr 1fr}.mtn-chess-status,.mtn-chess-history,.mtn-chess-promotion{grid-column:1/-1}.mtn-chess-piece{font-size:clamp(18px,6vw,39px)}}
@media(max-width:390px){.mtn-chess-sidebar{display:block}.mtn-chess-piece{font-size:clamp(16px,6.2vw,27px)}.mtn-chess-toggle{width:100%}}
@media(prefers-reduced-motion:reduce){.mtn-chess *{animation:none!important;transition:none!important}}
