/* MindRiddles: continuing the approved illustrated quiet table. */
:root{--paper:#f7f6f0;--white:#fffdf5;--ink:#28392f;--muted:#4d5e50;--line:#c3ccb9;--accent:#405745;--blue:#405745;--blue-dark:#2b4231;--blue-pale:#e2e7da;--coral:#7b4439;--coral-pale:#eee1d8;--teal:#405745;--green:#405745;--lime:#e2e7da;--orange:#7b4439;--radius:3px;font-family:"Helvetica Neue",Arial,sans-serif;color:var(--ink);color-scheme:light;background:var(--paper)}
html{scrollbar-color:#91a18b var(--paper)}body{background:var(--paper);color:var(--ink);font:16px/1.5 "Helvetica Neue",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7b4439}a{text-underline-offset:5px}::selection{background:#ccd8bf;color:#182b20}input{caret-color:#7b4439}input::placeholder{color:#596d56}h1,h2,h3,.brand,.logo{font-family:Georgia,"Times New Roman",serif!important;font-weight:400!important;letter-spacing:-.035em!important;text-wrap:balance}h1{font-size:clamp(36px,4vw,56px)!important;line-height:1.08!important}h2{font-size:28px}button{touch-action:manipulation}.shell,.app-shell{max-width:1480px;padding:0 clamp(18px,3vw,44px);margin:auto}.topbar{height:auto;min-height:100px;gap:18px;padding:22px 0;align-items:center;background:transparent;border-color:var(--line)}.brand,.logo{font-size:30px!important;line-height:1.1;gap:8px}.brand>svg,.logo-mark,.brand-mark,.brand-dot,.topnote,.brand-caption{display:none}.mr-brand{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.mr-back{font-size:13px;color:var(--muted)}.mr-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(25px,3vw,45px);align-items:start;padding:24px 0 30px}.mr-scene{margin:0;position:sticky;top:20px;min-width:0}.mr-scene img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.mr-scene figcaption{font:18px/1.5 Georgia,serif;color:var(--muted);padding-top:16px;max-width:32ch}.mr-workspace{min-width:0}.mr-workspace>main{margin:0;padding-top:0;min-height:0;width:100%;max-width:none}.eyebrow,.section-label,.rule-number,.title-dot,.dots,.scribble{display:none!important}.footer,footer{color:var(--muted);font-size:12px;letter-spacing:0;min-height:65px;margin-top:0;padding:22px 0;border-color:var(--line)}.footer>*:last-child{display:none}.hero,.page-heading,.setup-heading,.tutorial-heading{padding:0;margin:0 0 25px;text-align:left}.subtitle{font-family:"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.6;max-width:44ch;margin-top:14px;color:var(--muted)}.choice,.option-card,.opponent{border:0!important;border-radius:3px!important;background:#e2e7da!important;color:var(--ink)!important;box-shadow:none!important;transition:background .16s!important}.choice:hover,.option-card:hover,.opponent:hover{background:#d6e0cb!important;transform:none!important;translate:0}.choice.primary,.primary-choice{background:#dbe4ce!important}.choice small,.choice p,.choice-tag,.option-description,.opponent small{color:var(--muted)!important}.choice-icon,.iconbox,.option-icon{border:0!important;border-radius:3px!important;background:#f7f6f0!important;color:var(--ink)!important}.choice-arrow{background:transparent!important;color:var(--ink)!important}.settings-card,.settings-card,.settings-card,.tutorial-panel,.tutorial-bubble,.lobby-card,.result,.result-card,.bubble{border:0;border-radius:3px;box-shadow:none;background:#eeefe5;padding:24px}.button,.primary,.secondary,.outline-button,.solid-button,.segment,.segments,.segmented,.segment span,.count-number,.text-button,.turn-pill,.board-count,.board-status,.pill,.room-link,.link-input,.invite-card,.invite-summary,.invite-card input{border-radius:3px!important;box-shadow:none!important}.button.primary,.primary,.solid-button,.segment[aria-pressed=true],.segments button.active,.segments button[aria-pressed=true]{background:#405745!important;border-color:#405745!important;color:white!important;box-shadow:none!important}.button.secondary,.secondary,.outline-button{background:#e2e7da;border-color:#bdcbb3}.text-button:hover{background:#e2e7da}.segment input:checked+span,.segmented button.selected,.segmented button[aria-pressed=true]{background:#dbe4ce;border-color:#405745;color:var(--ink)}.quick-rules,.rules{margin:28px 0 12px}.rule-list{gap:20px}.rule p{color:var(--muted);font-size:13px}.rule h3{font:17px/1.3 Georgia,serif!important;margin-top:0}.rules h2{text-align:left;font-size:25px}.game-top{margin-top:0;margin-bottom:20px}.turn-heading{text-align:left;margin-bottom:22px}.turn-heading h1{margin:10px 0}.board-card,.board-stage,.arena{background:#dfcfb1 url('../../../assets/game-materials/quiet-worktable.webp') center/cover;border:0;border-radius:5px;box-shadow:0 8px 22px #28392f18}.board-meta,.board-help,.board-caption{color:#28392f}.game-meta,.keyboard-help,.keyboard-hint,.board-help,.small-note,.legend{color:var(--muted)}.tutorial{margin-top:0}.invite-card,.invite-summary{background:#e2e7da;padding:20px}.error-message,.error,.warning-text.danger{color:#7b4439}.mr-workspace .hero-art{display:none}.board-count,.count-pill,.status{background:#e2e7da;color:#28392f}.result-card{background:#e2e7da}.rule-list .rule{display:block}
@media(max-width:1000px){.mr-layout{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:25px}.shell,.app-shell{padding-inline:24px}.mr-scene figcaption{font-size:16px}}
@media(max-width:760px){.mr-layout{display:flex;flex-direction:column;gap:24px;padding-top:8px}.mr-scene{position:static;width:100%}.mr-scene img{max-height:250px;aspect-ratio:3/2}.mr-scene figcaption{display:none}.mr-workspace{width:100%}.topbar{min-height:90px;gap:12px;align-items:flex-start}.brand,.logo{font-size:27px!important}.topbar nav{gap:2px;flex-wrap:wrap;justify-content:flex-end}.topbar .text-button{font-size:12px;padding:8px}.shell,.app-shell{padding-inline:18px}.settings-card,.tutorial-panel,.tutorial-bubble{padding:21px}.mr-workspace>main{margin-top:0}.subtitle{font-size:15px}.mr-workspace .hero{padding-top:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.home{display:block;padding:0;min-height:0!important}.home-copy{max-width:none!important}.home .subtitle{margin:16px 0 27px}.home h1{font-size:56px!important}.choice{padding:17px;margin:10px 0}.board-stage{padding:22px 10px 16px}.board{background:#fffdf5 url('../../../assets/game-materials/quiet-paper.webp') center/cover;border:0;border-radius:3px;padding:9px;gap:3px;--cell:clamp(44px,4.5vw,62px)}.square,.square.poison,.square.preview{background:transparent url('../../../assets/game-materials/chocolate-square.webp') center/contain no-repeat;border:0;border-radius:3px;box-shadow:none}.square:before{display:none}.square:after{inset:1px;background:#f7f6f05c;box-shadow:inset 0 0 0 3px var(--player);border-radius:3px}.square.poison{outline:3px solid #7b4439;outline-offset:-3px}.square.poison svg{color:#fffdf5;background:#7b4439;border-radius:3px;padding:2px}.square.preview{filter:brightness(1.15)}.bubble:after{display:none}.tutorial-page .board{--cell:clamp(44px,7vw,60px)}.game-bottom{flex-wrap:wrap}.legend .swatch{background:#405745}.legend .swatch.other{background:#7b4439}.board-scroll{overscroll-behavior-inline:contain}.avatar{color:#405745}.game-page{--player:#405745!important}
@media(max-width:760px){.home h1{font-size:48px!important}.board{--cell:44px}.board-stage{padding-inline:3px}.game-top{align-items:flex-start}.turn-wrap h2{font-size:21px!important}.game-top .pill{display:none}.panel-page .size-fields{gap:15px}}

/* Portal identity, with the game name in the workspace. */
.mr-brand>.brand{display:block;text-decoration:none}.nim-subtitle,.kayles-question{font-size:25px!important;line-height:1.25;margin:12px 0;color:var(--ink)}

/* The actual wood rim occupies layout space; all content stays on its paper interior. */
.board-stage{border:18px solid transparent;border-image:url('../../../assets/game-materials/quiet-worktable.webp') 64 stretch;background:#fffdf5 url('../../../assets/game-materials/quiet-paper.webp') center/cover padding-box;border-radius:0;box-shadow:0 8px 22px #28392f18;padding:12px}
.board-stage .board{background:transparent;box-shadow:none}.board-stage .board-caption{margin-top:12px}.tutorial-page .board-stage{padding:12px}.board-stage .board-scroll{padding-bottom:10px}@media(max-width:760px){.board-stage{padding:8px;border-width:16px}}

.choice.primary{background:#405745!important;color:#fff!important}
.choice.primary :is(strong,small,.choice-arrow){color:#fff!important}
.choice.primary:hover{background:#253c2c!important}

.board-scroll{container-type:inline-size}
.board-stage .board{--cell:clamp(36px,calc((100cqw - 18px - (var(--cols) - 1)*3px)/var(--cols)),62px)}
.board-stage .square{min-width:var(--cell);min-height:var(--cell)}
