/* MindRiddles: the existing paper, sage and editorial type system. */
:root{--paper:#f7f6f0;--cream:#f7f6f0;--white:#fcfbf5;--ink:#28392f;--sage:#e2e7da;--green:#405745;--green-light:#e2e7da;--muted:#4d5e50;--line:#c9d1c1;--orange:#7b4439;--red:#7b4439;--blue:#405745;--shadow:none;font-family:"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper)}
html{scrollbar-color:#91a18b var(--paper)}body{background:var(--paper);color:var(--ink);background-image:none;font:16px/1.5 "Helvetica Neue",Arial,sans-serif}button,input,select{font-family:inherit}a{color:inherit;text-underline-offset:5px}::selection{background:#cbd7bd;color:#182b20}h1,h2,h3{font-family:Georgia,"Times New Roman",serif!important;font-weight:400!important;letter-spacing:-.035em!important;text-wrap:balance}h1{line-height:1.07!important}button,select,input,.primary,.secondary,.outline-button,.text-button{border-radius:3px;box-shadow:none}button:not(.cell){min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7b4439;outline-offset:4px}.primary{background:var(--green);color:white;font-weight:400}.primary:hover{background:#28392f}.secondary,.outline-button{background:transparent;border:1px solid #899780;font-weight:400}.text-button{font-weight:400}.eyebrow,.choice-icon,.choice .icon,.mode-icon,.brand-mark,.preview-pill,.preview-caption{display:none!important}.mr-navigation{display:flex;align-items:center;gap:28px;flex-wrap:wrap}.mr-wordmark{font:30px/1.1 Georgia,serif;letter-spacing:-.035em;text-decoration:none}.mr-back{font-size:14px;display:inline-flex;align-items:center;min-height:44px}.mr-scene{display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:1}.skip-link{position:fixed;top:10px;left:15px;z-index:100;background:var(--ink);color:white;padding:12px;transform:translateY(-150%)}.skip-link:focus{transform:none}.preview:before{display:none}.preview{padding:0}.preview .mr-scene{aspect-ratio:1}.choice,.mode-card{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:19px 0;min-height:86px}.choice:hover,.mode-card:hover{background:var(--sage)}.choice small,.card-copy small{color:var(--muted);font-size:14px;line-height:1.5}.choice b,.card-copy strong{font-size:17px}.choice-grid .choice{padding:14px}.choice.active,.segments .active,.segment input:checked+span,.segmented button[aria-pressed=true]{background:var(--sage);border-color:#7a8a6c;color:var(--ink)}.segments,.segmented{gap:7px}.segments button,.segment span,.segmented button{border-radius:3px}.segment input:checked+span{box-shadow:none}.settings,.form-card,.selection-panel{background:transparent;box-shadow:none;border-radius:0}.setup-title,.selection-panel h2,.setup h2{font-size:26px}.intro,.hero>p,.intro>p{color:var(--muted);font-size:17px;line-height:1.65}.match-card,.score-card,.turn-message,.board-card{border-radius:3px;box-shadow:none}.match-card{border:0;background:var(--sage);padding:20px}.match-card>.mr-scene,.sidebar>.mr-scene,.side-panel>.mr-scene{margin-bottom:20px;aspect-ratio:4/3}.match-card>.mr-scene{width:calc(100% + 40px);max-width:none;margin:-20px -20px 22px}.score-card{border-left-width:1px}.score-card.active,.score-card.current{box-shadow:none;background:var(--sage);border-color:#839378}.score-card.player-1.active{background:#ece1d9;border-color:#a47a6e}.score,.move-info strong{font-family:Georgia,serif;font-weight:400;font-variant-numeric:tabular-nums}.turn-message{background:var(--sage)}footer{color:var(--muted);font-size:13px}dialog{background:var(--paper);color:var(--ink);border-radius:6px;box-shadow:0 20px 65px #28392f33}dialog::backdrop{backdrop-filter:none;background:#28392f88}.board-shell{box-shadow:0 12px 32px #28392f15;border-radius:4px}.board-help,.board-hint,.help-note,.board-note,.muted{color:var(--muted)}
@media(max-width:700px){.mr-navigation{gap:8px 20px}.mr-wordmark{font-size:27px}.mr-back{font-size:13px}.mr-scene{max-height:230px;object-position:center;aspect-ratio:3/2}.match-card>.mr-scene,.sidebar>.mr-scene,.side-panel>.mr-scene{display:none}.side-panel{grid-template-columns:1fr 1fr}.preview .mr-scene{aspect-ratio:3/2}.home{padding-top:26px}.header-actions{gap:3px}.header-actions button{font-size:13px;padding:8px}.welcome{margin-top:24px}.intro h1,.hero h1{font-size:44px!important}.game-heading{flex-wrap:wrap}.game-heading .badges{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
header{padding:24px 34px;border:0;gap:20px}main{max-width:1280px}.home{gap:56px;padding:36px 34px 60px}.hero h1{font-size:clamp(46px,5vw,70px)}.home .preview{align-self:center}.game{padding-top:15px}.board-shell{background:#e4cda7;border:10px solid #d3b68e;padding:12px}.match-layout{grid-template-columns:minmax(0,1fr) 285px;align-items:start}.badge{border-radius:3px;background:var(--sage);font-size:12px}.game-heading h1{font-size:42px}.game-heading{align-items:center}.stone.black{background:radial-gradient(circle at 32% 24%,#54634b,#28392f 65%)}.stone.white{background:radial-gradient(circle at 30% 24%,#fffef5,#e6e0cc 75%)}.settings fieldset{margin-bottom:20px}.setup .hero h1{font-size:48px}footer{padding:22px 34px}.choice .arrow{font-size:24px}@media(max-width:700px){header{padding:18px 20px;align-items:start;flex-wrap:wrap}.home{padding:20px;display:flex;flex-direction:column;gap:28px}.home .hero,.home .preview{width:100%}.home.setup .preview{display:none}.game{padding:16px}.match-layout{display:flex;flex-direction:column}.board-area,.match-card{width:100%}.match-card{order:-1}.players{display:flex;gap:10px}.player{flex:1}.move-info{display:none}.card-actions{display:flex}.card-actions button{flex:1}.game-heading h1{font-size:32px}.board-shell{padding:6px;border-width:7px}.turn-title{font-size:27px}.board-help{font-size:12px}.header-actions{margin-left:auto}}

@media(max-width:700px){.match-card>.mr-scene{display:block;float:right;width:96px;height:86px;aspect-ratio:1;margin:0 0 14px 14px;object-fit:cover}.sidebar>.mr-scene,.side-panel>.mr-scene{display:block;grid-column:1/-1;aspect-ratio:3/1;width:100%;max-height:100px;margin:0;object-fit:cover}.card-actions,.players{clear:both}.status-pill:before{display:none}.board-card,.board-shell{box-shadow:none}.mr-navigation{gap:0 15px}.mr-back{font-size:12px}}

/* Show the instruction only when the real board scrolls horizontally. */
.mr-board-scroll-hint{margin:0 0 10px;padding:8px 12px;background:var(--sage);color:var(--ink);font-size:13px;line-height:1.4}.mr-board-scroll-hint[hidden]{display:none}.board-scroll,.board-shell{scrollbar-width:auto}

@media(max-width:700px){header{padding:12px 16px;gap:4px 12px}header .mr-wordmark{font-size:25px}header .header-actions{gap:10px}header .header-actions button{padding:8px 3px}.game{padding-top:8px}.game-heading{margin-bottom:14px;gap:8px}.game-heading h1{font-size:28px}.game-heading .badge{padding:5px 7px}.match-layout{gap:14px}.match-card{padding:14px}.match-card>.mr-scene{width:76px;height:60px;margin:0 0 8px 12px}.turn-title{margin:0 0 4px;font-size:24px}.turn-detail{min-height:0;margin-bottom:8px}.players{gap:10px}.player{padding:8px 0;gap:8px}.card-actions{margin-top:6px;gap:8px}.board-help{margin-top:8px}}

/* Real watercolor paper and polished stone carry into play and the practice board. */
.board-shell{border:22px solid transparent;border-image:url('../../../assets/game-materials/quiet-worktable.webp') 7% fill stretch;padding:8px;border-radius:0;background:none;box-shadow:none}
.board{background:url('../../../assets/game-materials/quiet-paper.webp') center/cover}
.stone.black,.stone.white{border:0;border-radius:0;box-shadow:none;background:transparent center/contain no-repeat;animation:none}
.stone.black{background-image:url('../../../assets/game-materials/stone-sage.webp')}
.stone.white{background-image:url('../../../assets/game-materials/stone-cream.webp')}
.cell.winning .stone{inset:9%;box-shadow:none;outline:2px solid var(--green);outline-offset:-2px;border-radius:50%}
.cell.last .stone:after{background:var(--clay,#7b4439);border-color:var(--paper)}
.mini-board{background:url('../../../assets/game-materials/quiet-paper.webp') center/cover;border:16px solid transparent;border-image:url('../../../assets/game-materials/quiet-worktable.webp') 7% fill stretch;border-radius:0;width:260px;height:260px}
.mini-cell .stone{animation:none}
dialog{background-image:url('../../../assets/game-materials/quiet-paper.webp');background-size:cover}
@media(max-width:700px){.board-shell{border-width:14px;padding:5px}}
