/* MindRiddles: existing game engines, shared portal materials and type. */
:root{--paper:#f7f6f0;--page:#f7f6f0;--card:#fffdf7;--sheet:#fffdf7;--ink:#28392f;--muted:#4d5e50;--line:#c8d0bf;--edge:#c8d0bf;--green:#405745;--green2:#405745;--forest:#405745;--pine:#405745;--teal:#405745;--teal-dark:#28392f;--dark:#28392f;--pale:#e2e7da;--olive:#e2e7da;--rust:#7b4439;--serif:Georgia,'Times New Roman',serif;--heading:Georgia,'Times New Roman',serif;--title:Georgia,'Times New Roman',serif;--sans:'Helvetica Neue',Arial,sans-serif;--ui:'Helvetica Neue',Arial,sans-serif}
html{background:#f7f6f0;scrollbar-color:#91a18b #f7f6f0}body{margin:0;background:#f7f6f0!important;color:#28392f;font-family:'Helvetica Neue',Arial,sans-serif!important}body:before{display:none!important}h1,h2,h3{font-family:Georgia,'Times New Roman',serif!important;font-weight:400!important;letter-spacing:-.025em!important}h1{line-height:1.1!important}a{color:inherit;text-underline-offset:5px}button,input,select{font-family:'Helvetica Neue',Arial,sans-serif}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7b4439!important}::selection{background:#d8b8a8;color:#28392f}
.mr-retro-bridge{box-sizing:border-box;max-width:1280px;margin:0 auto;padding:22px 30px;display:flex;align-items:center;gap:24px;color:#28392f;font:14px/1.4 'Helvetica Neue',Arial,sans-serif}
.mr-retro-bridge .mr-retro-wordmark{font:32px/1.1 Georgia,serif;letter-spacing:-.035em;text-decoration:none;margin-right:auto}.mr-retro-bridge>a{display:flex;align-items:center;min-height:44px}.mr-retro-bridge>span{color:#4d5e50}
.mr-retro-scene{max-width:1220px;margin:0 auto 22px;padding:0;height:clamp(190px,22vw,290px);background:var(--mr-scene) center 60%/cover no-repeat;position:relative}
body>header,body>.mast,body>.topbar,body>.header{position:relative!important;top:auto!important;background:#f7f6f0!important;color:#28392f!important;box-shadow:none!important;border-bottom:1px solid #c8d0bf}
body>header .brand,body>header .wordmark{font-family:Georgia,serif!important;font-weight:400!important;color:#28392f!important;letter-spacing:-.025em}body>header .brand>img,body>header .brand-mark{display:none}
:is(.hero,.banner,.masthead) :is(.landscape,.hero-art,.banner-art,.coast),img.landscape{display:none!important}
.banner-ornament,.banner-hem,.hero-eyebrow,.orn-rule,.heading-rule,.chapter-line{display:none!important}
:is(button.primary,.btn.primary,.primary-btn,.solid,.btn-primary){background:#405745!important;border-color:#405745!important;color:#fff!important}
:is(button.secondary,.btn.secondary,.secondary-btn){background:#e2e7da;color:#28392f;border-color:#c8d0bf}
button.primary,button.secondary,.primary-btn,.secondary-btn,input,select{border-radius:3px!important}
body[data-mr-game="hundred-squares"]{--bg:#f7f6f0;--panel:#e2e7da;--gold:#7b4439;--gold-d:#63352d}
body[data-mr-game="screen-shogi"]{--bg:#f7f6f0;--panel:#e2e7da;--panel2:#eeefe5;--border:#c8d0bf;--text:#28392f;--quiet:#4d5e50;--red:#7b4439;--red2:#63352d}
body[data-mr-game="royal-game-of-ur"]{--navy:#405745;--deep:#28392f;--line:#aab79e;--muted:#dce3d2}
body[data-mr-game="aadu-puli-attam"]{--text:'Helvetica Neue',Arial,sans-serif}
@media(max-width:760px){.mr-retro-bridge{padding:14px 20px;gap:10px 20px;flex-wrap:wrap}.mr-retro-bridge .mr-retro-wordmark{font-size:29px}.mr-retro-bridge>span{display:none}.mr-retro-scene{margin:0 18px 18px;height:215px;background-position:center 65%}body>header{position:relative!important}body>header nav{flex-wrap:wrap}h1{letter-spacing:-.025em!important}}
@media(prefers-reduced-motion:reduce){.mr-retro-scene{animation:none}html{scroll-behavior:auto}}

:root{color-scheme:light}
body header button:not(:disabled),body header a,body header .nav-item,body header .navitem,body header .nav-link{color:#28392f!important}
body header :is(button.active,button.current,.nav-active){background:#e2e7da!important;color:#28392f!important}
body header button:not(:disabled):hover{background:#e2e7da!important;color:#28392f!important}
body footer{background:#f7f6f0!important;color:#4d5e50!important}body footer button{color:#405745!important}
body[data-mr-game="screen-shogi"] :is(.hero,.board-panel,.board-stage,.hand-empty,.hand-count,.referee-note,.button,.dialog-wrap){background:#e2e7da;color:#28392f;border-color:#c8d0bf}
body[data-mr-game="screen-shogi"] .hero{background:#eeefe5;min-height:110px}body[data-mr-game="screen-shogi"] .hero:before,body[data-mr-game="screen-shogi"] .hero:after{display:none}
body[data-mr-game="screen-shogi"] .button.accent{background:#405745;color:white}
body[data-mr-game="screen-shogi"] .button:hover{background:#d4ddca;color:#28392f}
body[data-mr-game="hundred-squares"] :is(.panel,.guide-panel,.seg,.history-labels,.dialog-wrap){background:#e2e7da;border-color:#c8d0bf;color:#28392f}
body[data-mr-game="hundred-squares"] .seg button.on{background:#405745;color:white;box-shadow:none}
body[data-mr-game="hundred-squares"] .page-heading h1 em{color:#7b4439}
body[data-mr-game="dara"] .banner{background:#e2e7da;color:#28392f}
body[data-mr-game="dara"] .banner h1,body[data-mr-game="dara"] .banner p{color:#28392f}
body[data-mr-game="xiangqi-river-and-palace"] .hero{background:#eeefe5}
body[data-mr-game="xiangqi-river-and-palace"] .hero:before,body[data-mr-game="xiangqi-river-and-palace"] .hero:after{display:none}

body[data-mr-game="hundred-squares"] .levels button{background:#e2e7da;color:#28392f;border-color:#aab79e}
body[data-mr-game="hundred-squares"] .levels button.on{background:#405745;color:#fff}
body[data-mr-game="screen-shogi"] :is(.turn-chip,.ref-message){background:#e2e7da;color:#28392f;border-color:#aab79e}
body[data-mr-game="royal-game-of-ur"] :is(.rail,.dice-panel,.odds,.menu-card,dialog){background:#405745;color:#fffdf7}
body[data-mr-game="royal-game-of-ur"] :is(.odds,.menu-card,dialog) :is(h2,h3){color:#fffdf7}
body[data-mr-game="royal-game-of-ur"] .hero p{color:#4d5e50}
body[data-mr-game="royal-game-of-ur"] .tabletop{background:#28392f}
body[data-mr-game="royal-game-of-ur"] .hero .skyline{display:none}
body[data-mr-game="royal-game-of-ur"] :is(.bar span,.odds p){color:#fffdf7}
body[data-mr-game="gunjin-shogi"] .hq-stamp{color:#503c20}

/* Finish review: quiet supporting chrome, clear enabled actions. */
body[data-mr-game="screen-shogi"] .board-foot{background:#e2e7da}
body[data-mr-game="screen-shogi"] .board-foot .tool-btn{color:#28392f}
body[data-mr-game="screen-shogi"] .board-foot .tool-btn:disabled{opacity:.45}
body[data-mr-game="hundred-squares"] :is(.guide-label,.guide-art),
body[data-mr-game="renju"] .hero-text>.eyebrow,
body[data-mr-game="banqi"] .hero-inner>.overline.origin,
body[data-mr-game="aadu-puli-attam"] .hero-copy>.eyebrow,
body[data-mr-game="fanorona"] .titleblock>.origin,
body[data-mr-game="koi-koi"] .headline>.eyebrow,
body[data-mr-game="bao-la-kujifunza"] #subtitle,
body[data-mr-game="classic-chess"] .banner-art,
body[data-mr-game="savanna-shogi"] :is(.prairie,.guide-art),
body[data-mr-game="savanna-shogi"] .masthead:before,
body[data-mr-game="jungle"] .engraving,
body[data-mr-game="tigers-and-goats"] .valley,
body[data-mr-game="letter-heist"] #vignette{display:none!important}
body[data-mr-game="jungle"] .lesson-card{grid-template-columns:1fr}

body[data-mr-game="classic-chess"] #section-label[hidden]{display:none}
