.ranked-home{min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));justify-content:center;align-items:center;position:relative;overflow:auto}.ranked-panel{z-index:3;box-sizing:border-box;width:min(620px,100%);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overscroll-behavior:contain;color:#fff0cc;text-align:left;background:#102d24ed;border:1px solid #c4a369;border-radius:18px;gap:12px;padding:clamp(16px,3vw,28px);display:grid;position:relative;overflow:auto;box-shadow:0 12px 50px #0007}.ranked-panel h1,.ranked-panel h2,.ranked-panel p{margin:0;line-height:1.4}.ranked-panel h1{font-size:24px}.ranked-panel h2{font-size:19px}.ranked-heading,.ranked-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.ranked-heading{justify-content:space-between}.ranked-actions p{flex-basis:100%}.ranked-panel button,.ranked-actions button,.ranked-panel summary{min-width:44px;height:auto;min-height:44px;padding:8px 12px;line-height:1.3}.ranked-actions input,.ranked-actions select{color:#fff0cc;background:#102d24;border:1px solid #b69b66;max-width:100%;min-height:44px;padding:8px}.ranked-actions label{gap:4px;display:grid}.ranked-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.ranked-progress label{gap:5px;display:grid}.ranked-progress progress{accent-color:#ff9b32;width:100%}.ranked-rating strong{color:#ffab40;font-size:26px}.ranked-rating span{margin-left:8px;font-size:13px}.ranked-ready{border:1px solid #c4a369;border-radius:12px;gap:10px;padding:14px;display:grid}.ranked-table-wrap{overflow:auto}.ranked-panel table{border-collapse:collapse;width:100%}.ranked-panel th,.ranked-panel td{text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #c4a36955;padding:10px 6px}.ranked-panel [role=alert]{color:#ffc4a2}.ranked-panel details{border-top:1px solid #c4a36966;padding-top:8px}.ranked-panel summary{cursor:pointer;align-items:center;display:flex}.lobby-version{left:max(10px,env(safe-area-inset-left));bottom:max(5px,env(safe-area-inset-bottom));z-index:4;color:#fff0ccc9;text-shadow:0 1px 3px #000;pointer-events:none;font-size:11px;line-height:1.2;position:fixed}.online-choices{grid-template-columns:1fr!important}.online-choices span{line-height:1.4}@media (max-width:480px){.ranked-progress{grid-template-columns:1fr}.ranked-panel{gap:10px}.ranked-panel th,.ranked-panel td{font-size:13px}}@media (orientation:landscape) and (max-height:500px){.ranked-panel{gap:10px;padding:14px 18px}.ranked-panel h1{font-size:22px}.online-choices button{min-height:58px}}.app-shell.sanctuary-shell.welcome-view>.sanctuary-welcome{--lobby-bottom:max(22px,env(safe-area-inset-bottom));--lobby-height:calc(100dvh - max(var(--lobby-pad-y),env(safe-area-inset-top)) - var(--lobby-bottom));padding-bottom:var(--lobby-bottom)}.status-card.win-announcement{background:linear-gradient(135deg,#edf7eb,#fff5d8);border:1px solid #d5bd79;border-radius:12px;gap:12px;margin:16px 0;padding:20px 12px;box-shadow:0 5px 20px #a78a3420}.status-card.win-announcement h2{color:#14733d;overflow-wrap:anywhere;font-size:clamp(25px,2.3vw,32px);font-weight:700;line-height:1.15}.status-card.win-announcement p{color:#526747;margin-top:7px;font-weight:600}.win-announcement .status-icon{color:#a97508;background:#fff2c7;border:1px solid #d9b24f;width:52px;height:52px}.win-announcement.celebration-motion h2{animation:1.6s ease-in-out 3 grove-win-text}.win-announcement.celebration-motion .status-icon{animation:1.6s ease-in-out 3 grove-win-trophy}@keyframes grove-win-text{0%,to{color:#86eba2;text-shadow:none}50%{color:#b1ffbf;text-shadow:0 0 14px #47c97b70}}@keyframes grove-win-trophy{0%,to{color:#ffd268;box-shadow:none;background:#49330e}50%{color:#ffe9a8;background:#6a4814;box-shadow:0 0 18px #efbc4b80}}.flat-board .rank-label,.flat-board .file-label{font-size:clamp(10px,1.2vw,14px);font-weight:750}.flat-board .legal-marker:not(.capture-marker){background:#000;border:1px solid #ffffff80}@media (prefers-reduced-motion:reduce){.win-announcement.celebration-motion h2,.win-announcement.celebration-motion .status-icon{animation:none}}:root{color:#28392e;font-synthesis:none;--ink:#1c3428;--muted:#7c847a;--green:#214c36;--gold:#b79a61;--line:#dedfd3;--paper:#faf9f4;background:#f5f4ee;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400}*{box-sizing:border-box}body{min-width:360px;margin:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:4px;outline:3px solid #c2964f}button{border:0}a{color:inherit;text-decoration:none}svg{flex-shrink:0}button{transition:background-color .16s,color .16s,box-shadow .16s}h1,h2,h3,p{margin:0}button:disabled:hover{box-shadow:none}.app-shell{min-height:100vh;display:flex}.rail{color:#bfc9b9;z-index:10;background:#14281f;flex-direction:column;align-items:center;gap:13px;width:90px;padding:28px 12px 20px;display:flex;position:fixed;inset:0 auto 0 0}.brand-mark{color:#d9bc79;flex-direction:column;align-items:center;gap:4px;width:50px;height:63px;display:flex}.brand-mark span{letter-spacing:4px;margin-left:4px;font:12px Georgia,serif}.rail-divider{background:#3b4e3d;width:32px;height:1px;margin:11px 0 18px}.rail-button{color:#889f8c;background:0 0;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:7px;width:66px;min-height:61px;display:flex}.rail-button span{letter-spacing:.05em;font-size:9px}.rail-button.active{color:#e0c58f;background:#2b4333;box-shadow:inset 2px 0 #c6ab70}.rail-bottom{flex-direction:column;align-items:center;gap:15px;margin-top:auto;display:flex}.rail-leaf{color:#66816a;text-align:center;border-top:1px solid #324a38;width:33px;padding:15px 0}.main-content{width:calc(100% - 90px);max-width:1900px;margin-left:90px;padding:0 clamp(20px,3vw,55px)}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;height:89px;display:flex}.wordmark{letter-spacing:3.3px;color:#264333;font-size:12px;font-weight:750;line-height:1.7}.wordmark span{letter-spacing:4.1px;color:#7c846f;font-size:8px;font-weight:500;display:block}.topbar-right{align-items:center;gap:28px;display:flex}.practice-badge{letter-spacing:1.5px;color:#778875;align-items:center;gap:7px;font-size:8px;font-weight:650;display:flex}.tiny-dot{background:#87bd89;border-radius:100%;flex-shrink:0;width:5px;height:5px;display:inline-block;box-shadow:0 0 7px #9bd9ae60}.profile-chip{color:#53634f;background:0 0;align-items:center;gap:11px;font-size:11px;display:flex}.profile-icon{color:#7c956f;border:1px solid #d2d8c7;border-radius:50%;place-items:center;width:33px;height:33px;display:grid}.page-heading{justify-content:space-between;align-items:center;gap:12px;padding:31px 0 26px;display:flex}.eyebrow{letter-spacing:1.65px;color:#819075;font-size:8px;font-weight:650}.page-heading h1{letter-spacing:-1.45px;color:#233f2d;margin:9px 0 7px;font-family:Georgia,Times New Roman,serif;font-size:clamp(30px,2.65vw,45px);font-weight:400;line-height:1.23}.page-heading>div>p:last-child{color:#83907d;font-size:11px}.quiet-button{color:#76836d;background:0 0;border:1px solid #d9decf;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:11px;display:flex}.quiet-button:hover{background:#eaece1}.help-button{align-self:flex-end;margin-bottom:4px;font-size:10px}.game-layout{grid-template-columns:minmax(0,1fr) 304px;align-items:stretch;gap:24px;display:grid}.arena{min-width:0}.player-bar{align-items:center;gap:12px;height:72px;padding:0 14px;display:flex}.opponent-bar{height:60px;padding-top:0;padding-bottom:12px}.avatar{border:1px solid #cbd9c6;border-radius:9px;flex-shrink:0;place-items:center;width:39px;height:39px;display:grid}.emerald-avatar{color:#668466;background:linear-gradient(145deg,#eaf0dd,#d9e6d0)}.player-details{flex-direction:column;gap:5px;display:flex}.player-details strong{color:#32432f;font-size:12px;font-weight:650}.player-details>span{color:#8b927f;font-size:9px}.you-label{letter-spacing:1px;color:#819075;margin-left:8px;font-size:7px;font-weight:500}.time-badge{color:#5f6e55;text-align:center;min-width:48px;margin-left:auto;font-family:Georgia,serif;font-size:25px;line-height:.8}.time-badge small{letter-spacing:1.2px;color:#9ba18e;margin-top:6px;font:6px Inter,ui-sans-serif,sans-serif;display:block}.captured-pieces{color:#8a927c;flex-wrap:wrap;max-width:38%;margin-left:7px;font-size:17px;line-height:1;display:flex}.captured-pieces span{margin-right:-3px}.board-frame{background:#abc1a8;border:1px solid #bbc8ae;border-radius:9px;position:relative;overflow:hidden;box-shadow:0 12px 28px -20px #30492780}.board-stage{isolation:isolate;height:clamp(430px,39.3vw,660px);min-height:420px;position:relative}.scene-host{position:absolute;inset:0}.scene-host canvas{touch-action:pan-y;width:100%;height:100%;display:block}.scene-caption{letter-spacing:1.3px;color:#f6f5df;text-shadow:0 1px 4px #192f19;pointer-events:none;align-items:center;gap:7px;font-size:7px;display:flex;position:absolute;top:22px;left:22px}.scene-caption .tiny-dot{background:#cbe0a7}.caption-divider{opacity:.5;margin:0 2px}.scene-loading{color:#e7ebda;z-index:3;background:radial-gradient(at 50% 30%,#66856d,#294636);flex-direction:column;justify-content:center;align-items:center;gap:18px;font-family:Georgia,serif;font-size:20px;display:flex;position:absolute;inset:0}.loading-orbit{border:1px solid #bcceae40;border-top-color:#d2bb7c;border-radius:50%;width:34px;height:34px;animation:1.2s linear infinite spin}.board-tools{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#193d2cbf;border:1px solid #d5dfbc30;border-radius:6px;gap:3px;padding:4px;display:flex;position:absolute;bottom:16px;right:15px;box-shadow:0 3px 13px #1d302c33}.board-tools button{color:#e3e6cf;background:0 0;place-items:center;width:31px;height:29px;font-size:10px;display:grid}.board-tools button:hover,.board-tools button[aria-pressed=true]{background:#ffffff20;border-radius:3px}.return-live{background:#f1efdfeb;border-radius:4px;align-items:center;gap:7px;padding:9px 12px;font-size:10px;display:flex;position:absolute;bottom:19px;left:18px;box-shadow:0 3px 12px #12271c22}.arena-footer{color:#8d9785;justify-content:space-between;gap:15px;padding:5px 14px 0;font-size:8px;display:flex}.arena-footer>span{align-items:center;gap:5px;display:flex}.footer-dot{color:#b3b79f;margin:0 7px}.game-panel{background:#faf9f4;border:1px solid #dedfd1;border-radius:9px;flex-direction:column;align-self:stretch;min-width:0;padding:22px 21px 13px;display:flex;box-shadow:0 6px 22px -19px #24391c55}.panel-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.panel-heading .eyebrow{letter-spacing:1.4px;color:#7b846d;font-size:8px}.edition-label{letter-spacing:1px;color:#a7aa94;font-size:6px}.status-card{align-items:center;gap:12px;padding:25px 0 20px;display:flex}.status-icon{color:#6b865c;background:#e9eee0;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.status-card h2{color:#304b33;font:21px/1.2 Georgia,serif}.status-card p{color:#949b86;margin-top:6px;font-size:8px;line-height:1.6}.is-thinking svg{animation:1.7s ease-in-out infinite breathe}.mode-summary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#909981;letter-spacing:.8px;justify-content:space-between;gap:8px;padding:12px 0;font-size:7px;display:flex}.mode-summary span{align-items:center;gap:5px;display:flex}.ledger-heading{justify-content:space-between;align-items:center;padding:17px 0 8px;display:flex}.ledger-heading h3{color:#65745b;font-size:10px;font-weight:600}.icon-button{color:#8b977c;background:0 0;border-radius:4px;place-items:center;padding:5px;display:grid}.icon-button:hover{background:#e5eadc}.move-ledger{scrollbar-width:thin;scrollbar-color:#d4dbca transparent;flex:1;height:207px;min-height:160px;max-height:320px;overflow:auto}.journal-empty{text-align:center;color:#b4bea0;flex-direction:column;justify-content:center;align-items:center;gap:14px;height:100%;display:flex}.journal-empty p{color:#a0a98f;font:17px/1.35 Georgia,serif}.journal-empty>span{color:#acb29d;font-size:8px}.move-ledger table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:11px}.move-ledger thead{background:var(--paper);color:#98a089;text-transform:uppercase;letter-spacing:1px;z-index:1;font-size:7px;position:sticky;top:0}.move-ledger th{text-align:left;padding:6px;font-weight:450}.move-ledger th:first-child{color:#a0a790;width:37px}.move-ledger td{padding:1px 0}.move-ledger button{text-align:left;color:#576c4d;background:0 0;border:1px solid #0000;border-radius:3px;align-items:center;gap:7px;width:100%;padding:6px 8px;font-size:11px;display:flex}.move-ledger button span{font-size:15px;line-height:1}.review-controls{border-top:1px solid var(--line);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1px;padding:9px 0;display:flex}.review-controls button{color:#80916f;background:0 0;place-items:center;padding:4px;display:grid}.review-controls button:hover:enabled{background:#e9eedf;border-radius:3px}.review-controls span{color:#9fa88f;letter-spacing:1px;text-align:center;flex:1;font-size:6px}.practice-actions{grid-template-columns:1fr 1fr;gap:8px;padding:17px 0 13px;display:grid}.practice-actions button{color:#718461;background:0 0;border:1px solid #dce1d2;border-radius:5px;justify-content:center;align-items:center;gap:6px;padding:12px 4px;font-size:9px;display:flex}.primary-button{color:#eef0de;background:#264d37;border:1px solid #264d37;border-radius:5px;justify-content:center;align-items:center;gap:10px;padding:13px 18px;font-size:11px;font-weight:500;display:flex;box-shadow:0 3px 7px #2d513118}.new-game{justify-content:flex-start;width:100%}.new-game svg:last-child{margin-left:auto}.secondary-actions{justify-content:center;align-items:center;gap:23px;padding:15px 0 2px;display:flex}.secondary-actions button{color:#929b83;background:0 0;align-items:center;gap:5px;padding:4px;font-size:8px;display:flex}.hint-card{background:#eef1df;border:1px solid #d9e1c5;border-radius:5px;margin-bottom:12px;padding:12px}.hint-card>div{color:#6c7f46;align-items:center;gap:5px;display:flex}.hint-card strong{font-size:9px}.hint-card button{background:0 0;place-items:center;margin-left:auto;padding:2px;display:grid}.hint-card p{color:#899176;margin-top:7px;font-size:9px;line-height:1.6}.inline-error{color:#976538;background:#f1e5d8;border-radius:5px;margin:0 0 10px;padding:10px;font-size:10px;line-height:1.5}.text-button{background:0 0;padding:5px 0;font-size:10px;text-decoration:underline}.below-game{justify-content:space-between;align-items:center;gap:30px;padding:28px 3px 23px;display:flex}.grove-note{align-items:center;gap:15px;display:flex}.note-icon{color:#9ba981;background:#e9eddf;border:1px solid #dce3ce;border-radius:50%;place-items:center;width:41px;height:41px;display:grid}.grove-note .eyebrow{letter-spacing:1.3px;margin-bottom:7px;font-size:6px}.grove-note>div>p:last-child{color:#879577;font:italic 13px Georgia,serif}.roadmap-link{color:#829276;text-align:left;background:0 0;border-left:1px solid #dce0d1;align-items:center;gap:30px;min-width:230px;padding:4px 0 4px 24px;display:flex}.roadmap-link>span{color:#5d7553;font:16px Georgia,serif}.roadmap-link small{color:#9ba58d;margin-top:5px;font:8px Inter,ui-sans-serif,sans-serif;display:block}.site-footer{border-top:1px solid var(--line);color:#a1a893;letter-spacing:1px;justify-content:space-between;align-items:center;gap:12px;padding:19px 0 24px;font-size:7px;display:flex}.site-footer>span:nth-child(2){letter-spacing:0;color:#a3ab94;font:10px Georgia,serif}.site-footer>span:last-child{font-size:6px}.site-footer a:hover{text-decoration:underline}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.modal{width:min(530px,100vw - 32px);color:var(--ink);background:#f8f7ef;border:1px solid #d6dcca;border-radius:13px;max-height:calc(100dvh - 50px);padding:27px;overflow:auto;box-shadow:0 20px 90px #10211860}.modal::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#14291fad}.modal-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.modal h2{letter-spacing:-.7px;font:29px Georgia,serif}.modal-intro{color:#839174;margin:15px 0 21px;font-size:12px;line-height:1.7}.choice-pair{grid-template-columns:1fr 1fr;gap:12px;display:grid}.choice-pair button{color:#8c9b78;background:#f3f4ea;border:1px solid #d8dfcb;border-radius:7px;flex-direction:column;align-items:center;gap:10px;padding:18px 12px;display:flex}.choice-pair button strong{color:#677a55;font-size:11px;font-weight:550}.choice-pair button>span{color:#92a180;font-size:9px}.field-label{letter-spacing:1.4px;color:#879675;margin:24px 0 10px;font-size:8px;display:block}.modal select{color:#577049;background:#f2f4e8;border:1px solid #d7dfca;border-radius:5px;width:100%;padding:12px;font-size:12px}.field-hint{color:#95a184;margin-top:9px;font-size:10px;line-height:1.65}.army-choice button{gap:8px;padding:15px}.army-gem{border:1px solid #7baf92;border-radius:5px;width:20px;height:20px;margin:2px 0 8px;transform:rotate(45deg)}.army-gem.green{background:linear-gradient(130deg,#d4ecd3,#43886a);box-shadow:0 0 12px #62d09b44}.modal-primary{width:100%;margin-top:24px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.settings-list{margin-top:20px}.settings-list label{cursor:pointer;border-bottom:1px solid #dfe3d4;justify-content:space-between;align-items:center;gap:20px;padding:17px 0;display:flex}.settings-list strong{color:#5c744e;font-size:12px;font-weight:550}.settings-list small{color:#919f80;margin-top:6px;font-size:10px;display:block}.settings-list input{accent-color:#4c763a;cursor:pointer;flex-shrink:0;width:17px;height:17px}.how-to{margin-top:23px}.how-to h3{color:#4f6f40;font:21px Georgia,serif}.how-to p{color:#869778;margin-top:12px;font-size:11px;line-height:1.8}.promotion-options{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.promotion-options button{color:#718b5a;background:#e9efdc;border:1px solid #cedabe;border-radius:6px;flex-direction:column;align-items:center;gap:10px;padding:17px 9px;font-size:10px;display:flex}.promotion-options button>span{font-size:34px}.roadmap-list{margin:18px 0}.roadmap-list>div{border-bottom:1px solid #e0e5d4;align-items:flex-start;gap:15px;padding:18px 0;display:flex}.roadmap-list>div>svg{color:#8ca575;width:20px;margin-top:2px}.roadmap-list strong{color:#577147;font-size:13px;font-weight:550}.roadmap-list p{color:#91a07e;margin-top:7px;font-size:11px;line-height:1.6}.live-tag{color:#78965b;letter-spacing:1px;background:#e0ebcf;border-radius:3px;padding:5px 7px;font-size:7px}.flat-wrap{background:radial-gradient(at 50% 35%,#7b987c,#3c5a43);flex-direction:column;justify-content:center;align-items:center;padding:23px 20px 51px;display:flex;position:absolute;inset:0}.flat-board{aspect-ratio:1;border:9px solid #473c2c;border-radius:3px;flex-direction:column;width:min(100%,490px);display:flex;box-shadow:0 12px 35px #14231950}.board-row{flex:1;min-height:0;display:flex}.flat-square{border-radius:0;flex:1;place-items:center;width:12.5%;height:100%;padding:0;display:grid;position:relative}.flat-square.light{background:#cfceb0}.flat-square.dark{background:#52694e}.flat-square.emerald{color:#eef7d5;text-shadow:0 2px 1px #123d23,1px 0 2px #123d23,-1px 0 2px #123d23}.flat-square.last-move{background:#9aa06a}.flat-square.selected{background:#88b286;box-shadow:inset 0 0 0 3px #f4e6ac}.flat-square.checked{background:#b67551}.piece-glyph{font-family:Georgia,DejaVu Sans,serif;font-size:clamp(26px,3.7vw,49px);line-height:1}.rank-label,.file-label{color:#273d25;text-shadow:none;font:9px ui-sans-serif,sans-serif;position:absolute}.rank-label{top:4px;left:4px}.file-label{bottom:3px;right:5px}.dark .rank-label,.dark .file-label{color:#dce0b7}.legal-marker{pointer-events:none;background:#ecf1cb99;border:1px solid #39643c55;border-radius:50%;width:20%;height:20%;position:absolute}.capture-marker{background:0 0;border:3px solid #ffe7a1aa;width:92%;height:92%}.flat-square:focus-visible{outline-offset:-3px;z-index:2;outline:3px solid #e3c172}.fallback-note{color:#e3ebce;text-align:center;max-width:370px;margin-bottom:12px;font-size:10px}.is-flat.board-stage{height:clamp(460px,44vw,660px)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{opacity:.35}}.grove-audio{color:#34563d;background:#f8f8f0;border:1px solid #d9dfcc;border-radius:10px;margin-top:14px;padding:12px 16px;font-size:12px}.grove-audio summary{cursor:pointer;overflow-wrap:anywhere;line-height:1.6}.grove-audio .settings-list{margin:12px 0}.grove-audio input{accent-color:#28563b;min-width:20px;min-height:20px}.grove-audio p{line-height:1.6}.grove-audio>small{margin-top:12px;font-size:10px;line-height:1.6;display:block}.grove-audio a{color:#34563d;text-decoration:underline}.grove-audio .settings-list label.audio-volume{cursor:default;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:24px;display:grid}.grove-audio .settings-list .audio-volume input[type=range]{cursor:pointer;accent-color:#28563b;width:100%;min-width:0;height:36px;margin:0}@media (max-width:600px){.grove-audio .settings-list label.audio-volume{grid-template-columns:1fr;gap:12px}.grove-audio .settings-list .audio-volume input[type=range]{height:44px}}@media (min-width:1600px){.game-layout{grid-template-columns:minmax(0,1fr) 340px;gap:29px}.game-panel{padding:26px}.status-card h2{font-size:25px}.move-ledger{height:280px}.page-heading{padding:35px 0}.arena-footer{font-size:9px}.player-bar{height:78px}.opponent-bar{height:67px}}@media (max-width:1190px){.main-content{padding:0 24px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.game-panel{padding:20px 16px 13px}.board-stage{height:480px}.page-heading h1{font-size:33px}.status-card h2{font-size:19px}.arena-footer{flex-direction:column;gap:6px}.scene-caption{font-size:6px}.roadmap-link{gap:19px;min-width:200px}.captured-pieces{max-width:25%}}@media (max-width:960px){.rail{width:73px;padding-left:6px;padding-right:6px}.main-content{width:calc(100% - 73px);margin-left:73px;padding:0 23px}.game-layout{grid-template-columns:1fr}.game-panel{grid-template-columns:1fr 1fr;gap:0 24px;padding:23px;display:grid}.panel-heading,.status-card,.mode-summary{grid-column:1}.status-card{padding:20px 0}.ledger-heading{grid-area:1/2}.move-ledger{grid-area:2/2/6;height:200px;max-height:260px}.review-controls{grid-area:6/2}.practice-actions,.hint-card,.new-game,.secondary-actions,.game-panel>.inline-error{grid-column:1}.mode-summary{align-self:start}.practice-actions{padding-top:18px}.hint-card{margin-top:5px}.game-panel .hint-card{grid-row:7}.status-card h2{font-size:23px}.board-stage{height:clamp(460px,67vw,650px)}.is-flat.board-stage{height:600px}.piece-glyph{font-size:48px}.below-game{gap:15px}.grove-note>div>p:last-child{max-width:320px;line-height:1.5}.roadmap-link{min-width:175px}.topbar-right{gap:17px}.arena-footer{flex-direction:row}.site-footer>span:nth-child(2){display:none}}@media (max-width:640px){body{min-width:360px}.rail{gap:10px;width:58px;padding:21px 5px}.brand-mark{width:44px}.brand-mark span{font-size:10px}.rail-divider{margin:5px 0 12px}.rail-button{width:44px;min-height:54px}.rail-button span{font-size:7px}.rail-button svg{width:20px}.rail-bottom{gap:4px}.main-content{width:calc(100% - 58px);margin-left:58px;padding:0 15px}.topbar{height:74px}.wordmark{letter-spacing:1.9px;font-size:9px}.wordmark span{letter-spacing:2.7px;font-size:6px}.topbar-right{gap:7px}.practice-badge{display:none}.profile-chip{gap:4px;padding:0}.profile-chip>span:not(.profile-icon),.profile-chip>svg{display:none}.profile-icon{width:29px;height:29px}.page-heading{padding:23px 0 19px}.page-heading .eyebrow{letter-spacing:1px;max-width:220px;font-size:6px;line-height:1.8}.page-heading h1{letter-spacing:-1.1px;max-width:260px;margin:9px 0;font-size:30px;line-height:1.04}.page-heading>div>p:last-child{font-size:10px}.help-button{display:none}.player-bar{gap:8px;height:68px;padding-left:3px;padding-right:3px}.opponent-bar{height:56px}.avatar{border-radius:7px;width:33px;height:33px}.player-details strong{font-size:11px}.player-details>span{font-size:8px}.you-label{margin-left:4px;font-size:6px}.time-badge{min-width:36px;font-size:24px}.time-badge small{font-size:5px}.board-stage{height:420px;min-height:420px}.scene-caption{letter-spacing:.6px;gap:5px;font-size:5px;top:14px;left:11px}.board-tools{bottom:11px;right:10px}.board-tools button{width:29px;height:26px}.arena-footer{flex-direction:column;gap:7px;padding:3px 1px 0;font-size:7px}.arena-footer>span svg{width:12px}.game-layout{gap:20px}.game-panel{padding:20px;display:flex}.panel-heading .eyebrow{font-size:8px}.status-card{padding:21px 0}.status-card h2{font-size:24px}.status-card p{font-size:9px}.mode-summary{align-self:stretch;padding:13px 0}.move-ledger{flex:auto;height:200px;min-height:180px;max-height:220px}.ledger-heading h3{font-size:11px}.practice-actions{width:100%}.practice-actions button{font-size:10px}.below-game{flex-direction:column;align-items:stretch;gap:22px;padding:24px 0 20px}.grove-note{gap:10px}.note-icon{flex-shrink:0;width:34px;height:34px}.grove-note .eyebrow{letter-spacing:1px;font-size:5px}.grove-note>div>p:last-child{font-size:11px}.roadmap-link{border-top:1px solid #dce0d1;border-left:none;justify-content:space-between;padding:17px 4px 0}.site-footer{flex-wrap:wrap;gap:7px;padding:16px 0;font-size:6px;line-height:1.7}.site-footer>span:last-child{font-size:5px}.captured-pieces{max-width:21%;margin-left:0;font-size:13px}.modal{padding:23px}.modal h2{font-size:26px}.choice-pair{gap:8px}.choice-pair button{padding:17px 7px}.choice-pair button strong{font-size:10px}.choice-pair button>span{font-size:8px}.is-flat.board-stage{height:430px;min-height:0}.flat-wrap{padding:18px 10px 50px}.flat-board{border-width:6px}.piece-glyph{font-size:clamp(24px,6.7vw,38px)}.rank-label,.file-label{font-size:7px}.return-live{font-size:9px;bottom:58px;left:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--og-orange:#ff921f;--og-gold:#f0cf9d;--ink:#f3e6d2;--muted:#b9a68e;--green:#73d99a;--gold:#dfae72;--line:#63401f;--paper:#120e0b;color:var(--ink);background:#090604}body{background:radial-gradient(at 65% 0,#6c381c30,#0000 55%),linear-gradient(#dfae7205 1px,#0000 1px) 0 0/48px 48px,linear-gradient(90deg,#dfae7205 1px,#0000 1px) 0 0/48px 48px,#090604}.rail{color:var(--muted);border-right:1px solid var(--line);background:#090706}.brand-mark{color:var(--og-gold);filter:drop-shadow(0 0 10px #ff921f35)}.rail-divider,.rail-leaf{border-color:var(--line)}.rail-divider{background:var(--line)}.rail-button,.rail-leaf{color:#c6b298}.rail-button:hover{color:#ffe1b1;background:#342417}.rail-button.active{color:#ffc16a;box-shadow:inset 2px 0 var(--og-orange);background:linear-gradient(135deg,#573517,#25180e)}.topbar{background:#09060480}.wordmark{color:#ffc16a;font-weight:900}.wordmark span,.practice-badge,.profile-chip{color:#c5b194}.profile-icon{border-color:var(--line);color:#ffc16a;background:#24170d}.page-heading{border:1px solid var(--line);background:radial-gradient(at 65% 0,#70401f55,#0000 75%),linear-gradient(135deg,#21170f,#0d0a08);border-radius:16px;margin:20px 0;padding:26px 24px}.page-heading h1{letter-spacing:-.04em;color:#ffbd65;-webkit-text-fill-color:transparent;background:linear-gradient(#ffe1ab,#ff921f);-webkit-background-clip:text;background-clip:text;font-family:ui-sans-serif,system-ui,sans-serif;font-weight:900}.heading-dot{color:var(--og-orange)}.eyebrow,.page-heading>div>p:last-child{color:#cfbda3}.quiet-button,.icon-button{color:#eed5b1;background:#21170f;border-color:#73502e}.quiet-button:hover,.icon-button:hover{background:#392619}.player-details strong{color:#f2dec2;font-size:13px}.player-details>span,.you-label,.time-badge small{color:#bda88c}.time-badge{color:#f0cf9d}.captured-pieces{color:#d5b990}.ember-avatar{color:#ffb358;background:linear-gradient(145deg,#63350d,#28180a);border-color:#bc732b}.emerald-avatar{color:#8fe3ad;background:linear-gradient(145deg,#233c2c,#11251b);border-color:#426d49}.board-frame{border-color:#986132;box-shadow:0 8px 35px #0008,0 0 0 1px #dfae7215}.board-tools{background:#150e08e8;border-color:#b0773b80}.board-tools button{color:#f5d9af}.board-tools button:hover,.board-tools button[aria-pressed=true]{background:#ff921f30}.return-live{border:1px solid var(--line);color:#ffcf87;background:#24180e}.arena-footer{color:#b8a58c;font-size:10px}.game-panel,.grove-audio,.modal{border-color:var(--line);color:var(--ink);background:linear-gradient(145deg,#21170f,#100c09);box-shadow:0 10px 35px #0005}.panel-heading,.edition-label,.ledger-heading,.ledger-heading h3{color:#cdb38c}.status-card h2{color:#ffcf87;font-family:ui-sans-serif,system-ui,sans-serif;font-weight:800}.status-card p,.mode-summary{color:#c4ad8f}.status-icon,.note-icon{color:#ffc16a;background:#382615;border-color:#73502e}.mode-summary,.review-controls,.ledger-heading,.below-game,.settings-list label,.roadmap-list>div{border-color:#63401f80}.journal-empty,.journal-empty p,.journal-empty>span{color:#c0a784}.move-ledger{scrollbar-color:#80522d transparent}.move-ledger thead,.move-ledger th:first-child{color:#c9ae87}.move-ledger tbody tr:nth-child(odd){background:#ffb35809}.move-ledger button{color:#ead2b2}.move-ledger button:hover{background:#ff921f20}.move-ledger button.current-move{color:#ffd4a0;background:#ff921f20;border-color:#b97832}.review-controls button,.review-controls>span,.text-button{color:#c6b090}.review-controls button:hover:enabled{background:#ff921f20}.primary-button{color:#251406;background:linear-gradient(#ffcc6e,#ff981f 60%,#d9770b);border-color:#efab4c;font-size:12px;font-weight:850;box-shadow:0 4px 18px #ff921f25}.primary-button:hover{background:linear-gradient(#ffdb92,#ffac40 60%,#ed8a15);box-shadow:0 5px 24px #ff921f40}.practice-actions button{color:#eed5b1;background:#21170f;border-color:#73502e}.practice-actions button:hover:enabled{background:#392619}.hint-card{color:#b9e2ba;background:#1a2c1e;border-color:#477b50}.hint-card p{color:#c7e6cb}.grove-note>div>p:last-child,.roadmap-link,.roadmap-link strong,.roadmap-link span,.site-footer,.site-footer>span:nth-child(2){color:#c5b091}.roadmap-link{border-color:var(--line)}.modal h2,.how-to h3{color:#ffd4a0;font-family:ui-sans-serif,system-ui,sans-serif;font-weight:800}.modal-intro,.field-label,.field-hint,.how-to p{color:#c9b394}.choice-pair button,.modal select,.promotion-options button{color:#efd2a9;background:#23180f;border-color:#73502e}.choice-pair button strong,.choice-pair button>span{color:#d3ba96}.choice-pair button.chosen{background:#ff921f20;border-color:#ffac40;box-shadow:0 0 0 1px #ffac40}.choice-pair button.chosen strong{color:#ffce89}.promotion-options button:hover{background:#493018}.army-gem.orange{background:linear-gradient(130deg,#ffd58d,#ff921f);border-color:#ffb358;box-shadow:0 0 12px #ff921f44}.settings-list strong,.grove-audio{color:#f0d5ae}.settings-list small,.grove-audio>small{color:#c5af91}.settings-list input,.grove-audio input{accent-color:var(--og-orange)}.grove-audio summary{color:#ffd4a0;font-weight:750}.grove-audio a{color:#ffbf70}.grove-audio .settings-list .audio-volume input[type=range]{accent-color:var(--og-orange);width:100%;min-width:0;height:36px}.grove-audio .settings-list label.audio-volume{grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:24px;display:grid}.live-tag{color:#a8e5ad;background:#233d25}.roadmap-list strong{color:#f0cf9d}.roadmap-list p{color:#c5af91}.flat-square.ember{color:var(--og-orange);text-shadow:0 1px 1px #321500,1px 0 1px #321500,-1px 0 1px #321500}.status-card.win-announcement{background:linear-gradient(135deg,#142a1a,#35240c);border-color:#c08b39;box-shadow:0 0 24px #ffb35818}.status-card.win-announcement h2{color:#86eba2}.status-card.win-announcement p{color:#cde0c5}.win-announcement .status-icon{color:#ffd268;background:#49330e;border-color:#c08b39}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #ffc16a}@media (max-width:600px){.page-heading{margin:16px 0;padding:20px 16px}.grove-audio .settings-list label.audio-volume{grid-template-columns:1fr;gap:12px}.grove-audio .settings-list .audio-volume input[type=range]{height:44px}}.personality-strip{color:#d7ad78;letter-spacing:.7px;border-bottom:1px solid #5f371d66;justify-content:space-between;align-items:center;gap:8px;padding:9px 0;font-size:8px;display:flex}.personality-strip span{color:#f1c58b;font-weight:700}.personality-strip strong{letter-spacing:1.2px;font-size:6px}.personality-aggressive strong{color:#ff8139}.personality-positional strong{color:#d6c28b}.personality-gentle strong{color:#91d2a0}.personality-balanced strong{color:#ffb338}.postgame-review .coach-line{color:#d7ad78;background:#f1a52c12;border-left:2px solid #f1a52c;padding:8px 10px}.time-badge{font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:8px;min-width:88px;padding:10px 8px;font-size:25px}.time-badge.clock-active{background:#ff921f18;border-color:#dfae72}.time-badge.clock-low{color:#ff8a75}.clock-notice{color:#c9b394;padding:12px 0;font-size:11px;line-height:1.6}.clock-notice button{width:100%;margin-top:10px}.clock-fields{grid-template-columns:1fr 1fr;gap:16px;margin-top:16px;display:grid}.clock-fields label{color:#efd2a9;font-size:12px}.clock-fields input{color:#f0cf9d;background:#23180f;border:1px solid #73502e;border-radius:6px;width:100%;margin-top:10px;padding:12px;display:block}@media (max-width:600px){.clock-fields{grid-template-columns:1fr}.time-badge{min-width:72px;font-size:22px}}.postgame-review{color:#f0cf9d;background:linear-gradient(135deg,#21170f,#100c09);border:1px solid #63401f;border-radius:12px;margin-top:16px;padding:20px}.postgame-review h3{font-size:18px}.postgame-review p{color:#c5af91;margin:10px 0;font-size:12px;line-height:1.7}.postgame-review ol{padding-left:20px}.postgame-review li{border-top:1px solid #63401f80;padding:14px 0;font-size:13px}.modal.puzzle-modal{color:#f6d69e;background:linear-gradient(145deg,#140c07,#25150b);border-color:#6f3d14;width:min(960px,100vw - 32px)}.puzzle-modal .modal-heading{border-bottom:1px solid #6f3d1466;padding-bottom:17px}.puzzle-modal .modal-heading h2{color:#ffb43c;font-family:Inter,ui-sans-serif,sans-serif;font-weight:800}.puzzle-modal .icon-button{color:#dbb77e}.puzzle-trainer{padding-top:20px}.puzzle-topline{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:16px;display:flex}.puzzle-topline h3{color:#fff0d1;margin-top:6px;font:28px Georgia,serif}.puzzle-topline p{color:#bc9468;margin-top:5px;font-size:10px}.puzzle-topline>strong{text-align:center;color:#ffae2d;font-size:22px}.puzzle-topline>strong small{letter-spacing:1.3px;color:#a77e54;margin-top:4px;font-size:6px;display:block}.puzzle-layout{grid-template-columns:minmax(360px,1.35fr) minmax(230px,.65fr);gap:18px;display:grid}.puzzle-board{border:1px solid #7b4518;border-radius:9px;min-width:0;position:relative;overflow:hidden}.puzzle-board .board-stage,.puzzle-board .is-flat.board-stage{aspect-ratio:1;height:auto;min-height:0}.puzzle-board .flat-wrap{background:radial-gradient(at 50% 35%,#61401f,#1b1009);padding:16px}.puzzle-board .flat-board{border-color:#2b190d;width:100%}.puzzle-board .piece-glyph{font-size:clamp(28px,4.2vw,51px)}.puzzle-solved{color:#fff;background:#187a48eb;border:1px solid #5cda91;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:11px;font-size:12px;font-weight:750;display:flex;position:absolute;inset:auto 16px 16px;box-shadow:0 6px 22px #0008}.puzzle-coach{background:#170e09;border:1px solid #5d3518;border-radius:9px;flex-direction:column;padding:18px;display:flex}.puzzle-prompt{color:#f5dfbd;font:17px/1.5 Georgia,serif}.puzzle-feedback,.puzzle-hint{border-radius:6px;align-items:flex-start;gap:9px;margin-top:15px;padding:13px;font-size:11px;line-height:1.65;display:flex}.puzzle-feedback{color:#c7a67a;background:#2b1a10;border:1px solid #4e2d15}.puzzle-feedback.is-solved{color:#bde8c9;background:#102b1c;border-color:#24633d}.puzzle-hint{color:#efc880;background:#3a2811;border:1px solid #765321}.puzzle-promotion{grid-template-columns:1fr 1fr;gap:7px;margin-top:14px;display:grid}.puzzle-promotion span{letter-spacing:1px;color:#c39a68;grid-column:1/-1;font-size:8px}.puzzle-promotion button,.puzzle-actions button,.puzzle-nav button{color:#edc58b;background:#2c190d;border:1px solid #6b3d18;border-radius:5px;padding:9px;font-size:9px}.puzzle-promotion button:hover,.puzzle-actions button:hover:enabled,.puzzle-nav button:hover:enabled{background:#4b2911}.puzzle-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:16px;display:grid}.puzzle-actions button{justify-content:center;align-items:center;gap:6px;display:flex}.puzzle-nav{border-top:1px solid #4d2d17;justify-content:space-between;align-items:center;gap:7px;margin-top:12px;padding-top:12px;display:flex}.puzzle-nav button{align-items:center;gap:3px;display:flex}.puzzle-nav span{color:#a77e54;letter-spacing:.6px;font-size:8px}@media (max-width:720px){.modal.puzzle-modal{padding:20px}.puzzle-layout{grid-template-columns:1fr}.puzzle-coach{min-height:300px}.puzzle-topline h3{font-size:23px}}.puzzle-board .flat-wrap{width:100%;min-width:0;height:100%;padding:clamp(4px,2vw,16px)}.puzzle-board .flat-board{aspect-ratio:1;width:100%;max-width:none;height:auto}.puzzle-layout>*{min-width:0}.online-modal{width:min(610px,100vw - 32px)}.online-lobby select{color:#577049;background:#f2f4e8;border:1px solid #d7dfca;border-radius:5px;width:100%;padding:12px;font-size:12px}.online-choices button{min-height:142px}.lobby-return{align-items:center;gap:6px;margin-top:18px;display:flex}.room-code-input{text-align:center;letter-spacing:.3em;color:#34583c;text-transform:uppercase;background:#f2f4e8;border:1px solid #d7dfca;border-radius:7px;width:100%;padding:17px;font:700 25px/1 ui-monospace,monospace}.online-error{margin-top:16px}.online-room-card{padding-top:22px}.online-state{color:#687f5e;background:#e9eee0;border-radius:99px;align-items:center;gap:7px;padding:8px 11px;font-size:10px;display:inline-flex}.online-state.waiting svg{animation:1.2s linear infinite spin}.online-state.playing{color:#3e7038;background:#e1efda}.online-kicker{text-align:center;letter-spacing:1.6px;color:#879675;margin-top:30px;font-size:7px}.room-code{color:#f4b23f;background:#182d22;border:1px solid #a96918;border-radius:9px;justify-content:center;align-items:center;gap:16px;margin:10px auto 0;padding:17px 25px;display:flex}.room-code strong{letter-spacing:.24em;font:700 31px/1 ui-monospace,monospace}.online-room-card>.field-hint{text-align:center;max-width:420px;margin:13px auto}.online-room-details{grid-template-columns:1fr 1fr;gap:10px;margin:24px 0;display:grid}.online-room-details span{color:#718461;border:1px solid #dfe3d4;border-radius:7px;align-items:center;gap:9px;padding:14px;font-size:10px;display:flex}.online-ready{color:#476b3e;background:#e7efdb;border:1px solid #c7d9b3;border-radius:8px;align-items:center;gap:13px;margin-bottom:15px;padding:15px;display:flex}.online-ready strong{font-size:12px}.online-ready p{margin-top:4px;font-size:9px;line-height:1.5}.online-back{margin-top:10px}@media (max-width:520px){.online-room-details{grid-template-columns:1fr}.room-code strong{font-size:25px}}.online-match-shell .game-panel{min-height:620px}.online-match-shell .move-ledger td{color:#576c4d;padding:7px 8px}.online-match-shell .move-ledger th{padding:7px 6px}.online-exit{width:100%;margin-top:16px}.online-match-shell .practice-badge{gap:8px}.online-match-shell .brand-mark{cursor:default}.online-result-banner{color:#ffd17a;background:linear-gradient(110deg,#263b25,#30200d);border:1px solid #e8b454;border-radius:16px;align-items:center;gap:20px;margin-bottom:20px;padding:22px 28px;display:flex}.online-result-banner h2{color:#9fe69c;margin:0 0 5px;font-size:clamp(24px,3vw,38px)}.online-result-banner p{margin:0}.online-match-actions{flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 20px;display:flex}.online-match-actions .primary-button{width:auto;padding:12px 18px}.online-action-note{color:#bcaa8d;font-size:12px}.history-modal{width:min(1100px,100vw - 32px);max-width:1100px}.history-list{gap:10px;display:grid}.history-entry{color:#f0c984;text-align:left;cursor:pointer;background:#24180e;border:1px solid #67451e;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:16px;display:flex}.history-entry:hover{background:#362311}.history-entry span{gap:6px;display:grid}.history-entry small{color:#baa88b}.history-replay{grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:20px;display:grid}.history-replay .flat-wrap{padding:10px}.history-replay .board-stage.is-flat{aspect-ratio:1;height:auto;min-height:0}.history-replay .flat-board{width:100%;max-width:600px}.history-controls{justify-content:center;align-items:center;gap:8px;margin-top:12px;display:flex}.history-moves{max-height:580px;overflow:auto}.history-moves ol{grid-template-columns:1fr 1fr;gap:6px;padding:0;list-style:none;display:grid}.history-moves button{justify-content:flex-start;width:100%}.history-selected{background:#503016!important;border-color:#ffad32!important}@media (max-width:700px){.history-replay{grid-template-columns:1fr}.history-entry{flex-wrap:wrap}.history-moves{max-height:240px}}@media (orientation:landscape) and (max-height:500px){.sanctuary-shell .modal.online-chooser-modal{width:min(610px,calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px));max-width:calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);padding:clamp(10px,3dvh,16px);overflow:auto}.online-chooser-modal>.modal-heading{gap:8px;min-height:44px;margin-bottom:clamp(6px,2dvh,10px)}.online-chooser-modal>.modal-heading h2{font-size:clamp(1.125rem,5dvh,1.375rem);line-height:1.2}.online-chooser-modal>.modal-heading>.icon-button{flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}.online-chooser-modal>.online-choices{grid-auto-rows:auto;align-items:stretch;gap:clamp(5px,1.6dvh,8px)}.online-chooser-modal>.online-choices>button{gap:clamp(3px,1dvh,5px);min-width:44px;height:auto;min-height:clamp(64px,20dvh,80px);padding:clamp(5px,1.6dvh,8px) 10px;line-height:1.2}.online-chooser-modal>.online-choices>button>svg{width:clamp(16px,4.8dvh,20px);height:clamp(16px,4.8dvh,20px)}.online-chooser-modal>.online-choices>button>strong{font-size:clamp(.8125rem,3.8dvh,.9375rem);line-height:1.2}.online-chooser-modal>.online-choices>button>span{font-size:clamp(.75rem,3.3dvh,.8125rem);line-height:1.25}}.online-choices>button.online-option-locked{isolation:isolate;opacity:1;position:relative}.online-choices>button.online-option-locked>svg,.online-choices>button.online-option-locked>strong{opacity:.45}.online-choices>button.online-option-locked>span:not(.online-lock){visibility:hidden}.online-choices>button>.online-lock{color:#ffdb8b;pointer-events:none;background:#17271ef2;border-radius:5px;justify-content:center;align-items:center;gap:5px;padding:3px;font-size:.8125rem;line-height:1.25;display:flex;position:absolute;inset:auto 6px 6px}.online-choices>button>.online-lock svg{flex:none;width:14px;height:14px}.online-choices>button:disabled{cursor:default}.discord-account{max-width:100%;font-size:inherit;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 8px;display:flex}.discord-account-menu{flex:none;position:relative}.discord-account-menu>summary{cursor:pointer;color:#fff0cc;background:#16392ee8;border:1px solid #c99141;border-radius:7px;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:6px 10px;display:flex}.discord-account-menu>summary:focus-visible{outline-offset:3px;outline:2px solid #ffd078}.discord-account-menu>div{z-index:100;background:#16392e;border:1px solid #c99141;border-radius:7px;min-width:160px;padding:6px;position:absolute;bottom:100%;right:0}.discord-account-menu button{width:100%;min-width:44px;min-height:44px;padding:8px 12px}@media (orientation:landscape) and (max-height:500px){.sanctuary-welcome .discord-account{flex:0 0 100%;font-size:.75rem}.sanctuary-welcome .discord-account-menu>summary{padding:4px 8px}.online-chooser-modal>.online-choices>button>.online-lock{padding:2px;font-size:.75rem;bottom:4px}}.discord-account-identity{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 8px;max-width:100%;display:flex}.discord-account-identity>span:first-child{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}@media (orientation:landscape) and (max-height:500px){.sanctuary-welcome .discord-account{display:contents}.sanctuary-welcome .discord-account-identity{flex:0 0 100%;font-size:.75rem;line-height:1.25}}.sanctuary-shell{color:#fff1d1;isolation:isolate;background:#142b20;min-height:100svh}.sanctuary-shell .rail,.sanctuary-shell .topbar,.sanctuary-shell .page-heading,.sanctuary-shell .below-game,.sanctuary-shell .site-footer,.sanctuary-shell .arena-footer,.sanctuary-shell .scene-caption{display:none}.sanctuary-shell .main-content{width:100%;max-width:none;margin:0;padding:0}.sanctuary-shell .game-layout{margin:0;padding:0;display:block}.sanctuary-shell .board-frame{box-shadow:none;z-index:-1;border:0;border-radius:0;margin:0;position:fixed;inset:0}.sanctuary-shell .arena .board-stage,.sanctuary-shell .arena .scene-host{aspect-ratio:auto;border-radius:0;width:100%;height:100%;min-height:100%}.sanctuary-shell .board-tools{z-index:3;position:fixed;bottom:24px;right:20px}.welcome-view .board-tools,.welcome-view .player-bar,.welcome-view .game-panel,.welcome-view .sanctuary-audio{display:none}.sanctuary-welcome{text-align:center;background:linear-gradient(90deg,#0a201c9c,#0a201c40,#0a201c8c);flex-direction:column;justify-content:center;align-items:center;min-height:100svh;padding:36px 22px;display:flex}.sanctuary-title{object-fit:contain;filter:drop-shadow(0 8px 18px #071b15aa);width:min(560px,85vw);max-height:36svh}.sanctuary-welcome>p{color:#fff5da;text-shadow:0 2px 5px #000;margin:4px 0 24px;font-size:clamp(16px,2vw,20px)}.welcome-actions{gap:12px;width:min(380px,90vw);display:grid}.welcome-actions button{border-radius:14px;justify-content:center;width:100%;min-height:60px;font-size:18px;box-shadow:0 5px 18px #0004}.welcome-actions .quiet-button,.welcome-secondary .quiet-button{color:#fff0cc;background:#173e30ed;border-color:#c4a369}.welcome-secondary{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:24px;display:flex}.welcome-secondary a{color:#fff1d1;font-size:13px}.sanctuary-toolbar{top:max(16px,env(safe-area-inset-top));z-index:6;gap:8px;display:flex;position:fixed;right:18px}.sanctuary-toolbar button{color:#fff0cc;background:#102d24ed;border-color:#b69b66;min-height:44px}.sanctuary-status{left:50%;bottom:max(24px,env(safe-area-inset-bottom));color:#fff0cc;z-index:4;text-align:center;background:#102d24eb;border-radius:20px;max-width:55vw;padding:10px 20px;font-weight:600;position:fixed;transform:translate(-50%)}.sanctuary-status .primary-button{margin-top:8px}.match-view .player-bar{z-index:3;background:#102d24eb;border:1px solid #ac955e80;border-radius:16px;width:auto;max-width:230px;min-height:0;padding:10px 16px;position:fixed;bottom:22px;left:18px}.match-view .opponent-bar{top:18px;bottom:auto}.match-view .player-bar .avatar,.match-view .player-details>span,.match-view .captured-pieces,.match-view .you-label{display:none}.match-view .player-details strong{color:#fff0cc}.match-view .time-badge{color:#fff0cc;margin-left:12px}.match-view .game-panel{display:none}.match-view.menu-open .game-panel{z-index:5;background:#152d25f7;border:1px solid #b69b66;border-radius:20px;width:min(380px,100vw - 24px);height:auto;min-height:0;padding:22px;display:flex;position:fixed;top:76px;bottom:16px;right:12px;overflow:auto;box-shadow:0 12px 50px #0008}.match-view .sanctuary-audio{display:none}.match-view.menu-open .sanctuary-audio{z-index:6;background:#152d25f7;border-radius:16px;width:min(370px,100vw - 420px);max-height:70svh;padding:12px;display:block;position:fixed;top:100px;left:12px;overflow:auto}.sanctuary-shell .grove-audio{color:#f1e6ce;margin:0}.sanctuary-shell .settings-list label.audio-volume{grid-template-columns:1fr;gap:12px;display:grid}.sanctuary-shell .audio-volume input[type=range]{width:100%;min-width:0;height:30px}.sanctuary-shell .arena .flat-wrap{justify-content:center;align-items:center;height:100%;padding:90px 16px;display:flex}.sanctuary-shell .arena .flat-board{width:min(74svh,90vw);height:min(74svh,90vw)}.online-match-shell.sanctuary-shell .online-match-actions{display:none}.online-match-shell.sanctuary-shell.menu-open .online-match-actions{z-index:6;background:#152d25;margin:8px 12px;padding:10px;display:flex;position:relative}.online-match-shell.sanctuary-shell.menu-open .main-content{z-index:5;background:#152d25f7;border-radius:20px;width:min(400px,100vw - 24px);padding-bottom:20px;position:fixed;top:76px;bottom:16px;right:12px;overflow:auto}.online-match-shell.sanctuary-shell.menu-open .game-panel{width:auto;margin:12px;display:flex;position:static;overflow:visible}.sanctuary-shell .online-result-banner{display:none}@media (max-width:700px){.sanctuary-toolbar{gap:5px;right:10px}.sanctuary-toolbar button{padding:8px 10px;font-size:12px}.match-view .player-bar{max-width:180px;padding:7px 10px;bottom:80px;left:10px}.match-view .opponent-bar{top:70px;bottom:auto}.match-view .player-details strong{font-size:12px}.match-view .time-badge{font-size:22px}.sanctuary-status{max-width:65vw;font-size:12px;bottom:22px;left:12px;transform:none}.sanctuary-shell .board-tools{bottom:20px;right:10px}.match-view.menu-open .game-panel{width:calc(100vw - 24px);top:130px;bottom:18px}.match-view.menu-open .sanctuary-audio{z-index:7;width:auto;max-height:35svh;margin:80px 12px 0;position:relative;top:auto;left:auto}.match-view.menu-open .game-panel{top:calc(35svh + 100px)}.online-match-shell.sanctuary-shell.menu-open .main-content{top:130px}.sanctuary-title{max-height:30svh}.welcome-secondary{gap:8px}}.sanctuary-shell .sanctuary-audio,.sanctuary-shell.menu-open .sanctuary-audio{display:none}.sanctuary-shell .panel-audio{order:10;width:100%;margin-top:20px}.sanctuary-shell .settings-audio{margin-bottom:20px}@media (max-width:700px){.match-view.menu-open .game-panel{top:130px;bottom:18px}}.app-shell.sanctuary-shell{width:100%;min-width:0;display:block}.sanctuary-shell>.sanctuary-welcome{width:100%;min-height:100svh}.sanctuary-shell.welcome-view>.main-content{pointer-events:none;position:absolute;inset:0}.sanctuary-shell.welcome-view>.main-content .board-frame{pointer-events:none}.sanctuary-shell .main-content>div[role=status]{z-index:8;color:#fff0cc;pointer-events:auto;background:#102d24f2;border:1px solid #b69b6680;border-radius:14px;width:min(300px,100vw - 32px);padding:14px 16px;font-size:13px;line-height:1.5;position:fixed;bottom:16px;right:16px;box-shadow:0 8px 30px #0005}.sanctuary-shell .main-content>div[role=status] button,.sanctuary-shell .main-content>div[role=status] a{color:#19291f;background:#dca247;border-radius:8px;margin:8px 10px 0 0;padding:7px 10px;font-size:12px;display:inline-block}@media (max-width:700px){.sanctuary-shell.welcome-view .main-content>div[role=status]{margin:0 auto 16px;position:relative;bottom:auto;right:auto}.sanctuary-shell.welcome-view>.main-content{position:static}}.fullscreen-notice{z-index:12;color:#fff0cc;background:#102d24f2;border-radius:10px;max-width:min(360px,100vw - 32px);padding:12px;font-size:13px;position:fixed;top:80px;left:16px}.welcome-auth{justify-items:center;gap:10px;margin-top:18px;font-size:14px;display:grid}.welcome-auth .primary-button{min-height:44px}.sanctuary-shell,.sanctuary-shell>.sanctuary-welcome{min-height:100dvh}.sanctuary-shell>.sanctuary-welcome{padding:max(36px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(36px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}.sanctuary-shell .arena .board-frame{height:100dvh;bottom:auto}.sanctuary-shell .arena .flat-board{width:min(calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 180px),90vw);aspect-ratio:1;flex-shrink:0;height:auto}.sanctuary-shell.match-view.menu-open .game-panel,.sanctuary-shell.online-match-shell.menu-open .main-content{right:max(12px,env(safe-area-inset-right));max-width:calc(100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)));bottom:max(100px,env(safe-area-inset-bottom))}.fullscreen-notice{top:calc(env(safe-area-inset-top) + 80px);left:max(16px,env(safe-area-inset-left));max-width:min(360px,calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right))));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 100px);line-height:1.5;overflow:auto}.fullscreen-notice .quiet-button{color:#fff0cc;background:#173e30;border-color:#b69b66;min-height:44px;margin-top:8px}.sanctuary-shell .modal{max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 32px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px)}@media (orientation:landscape) and (max-height:500px){.sanctuary-shell .arena .flat-wrap{padding:calc(env(safe-area-inset-top) + 60px) max(16px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 60px) max(16px,env(safe-area-inset-left))}.sanctuary-shell .arena .flat-board{width:min(calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 120px),70vw);aspect-ratio:1;height:auto}.sanctuary-shell.match-view.menu-open .game-panel,.sanctuary-shell.online-match-shell.menu-open .main-content{top:calc(env(safe-area-inset-top) + 62px);bottom:calc(env(safe-area-inset-bottom) + 62px)}}.sanctuary-shell.welcome-view>.sanctuary-viewport{pointer-events:none}.sanctuary-shell.match-view .player-bar{display:none}.match-hud{--hud-top:max(10px,env(safe-area-inset-top));--hud-right:max(10px,env(safe-area-inset-right));--hud-bottom:max(10px,env(safe-area-inset-bottom));--hud-left:max(14px,env(safe-area-inset-left));z-index:9;pointer-events:none;position:fixed;inset:0}.match-hud-player{left:var(--hud-left);max-width:calc(100% - var(--hud-left) - var(--hud-right) - 64px);pointer-events:none;align-items:center;gap:10px;min-width:0;display:flex;position:absolute}.match-hud-top{top:var(--hud-top)}.match-hud-bottom{bottom:var(--hud-bottom)}.hud-name{color:#ff9b32;text-shadow:-1px -1px #000,1px -1px #000,-1px 1px #000,1px 1px #000,0 2px 2px #000;-webkit-text-stroke:1px #000;paint-order:stroke fill;border-bottom:2px solid #0000;min-width:0;max-width:260px;padding:4px 0;font-size:clamp(16px,1.6vw,22px);font-weight:800;line-height:1.3;display:inline-flex;position:relative;overflow:visible}.hud-name-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.hud-name.is-turn{filter:drop-shadow(0 0 4px #efb936);border-color:#ffe68a}.hud-name.is-turn:after{content:"";pointer-events:none;opacity:.85;border:2px solid #ffdb69;border-radius:50%;position:absolute;inset:-3px -5px}.hud-name.is-turn.has-motion:after{animation:2s ease-out infinite chess-turn-ripple}@keyframes chess-turn-ripple{0%{opacity:.95;transform:scale(1);box-shadow:0 0 5px #ffcc56}to{opacity:0;transform:scale(1.22,1.9);box-shadow:0 0 16px #ffcc5600}}.match-hud .time-badge{color:#fff4d3;min-width:6ch;box-shadow:none;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000;font-variant-numeric:tabular-nums;background:0 0;border:0;flex:none;margin:0;padding:0;font-size:clamp(22px,2vw,28px);line-height:1.1}.match-hud .time-badge small{letter-spacing:.4px;font-size:9px;line-height:1.2}.match-hud .time-badge.is-untimed{min-width:0;font-size:18px}.match-hud .time-badge.is-untimed small{display:none}.match-hud .time-badge.clock-low{color:#ffb4a0}.match-hud-navigation{top:var(--hud-top);right:var(--hud-right);flex-direction:row-reverse;gap:6px;display:flex;position:absolute}.match-hud button,.match-hud-edge-menu summary{pointer-events:auto;color:#fff0cc;background:#102d24ed;border:1px solid #b69b66;border-radius:10px;min-width:44px;height:auto;min-height:44px;padding:6px 10px;font-size:13px;line-height:1.2}.match-hud .match-hud-fullscreen,.match-hud .match-hud-settings,.match-hud .match-hud-flip{right:var(--hud-right);width:44px;height:44px;padding:10px;position:absolute}.match-hud-fullscreen{top:calc(var(--hud-top) + 52px)}.match-hud-flip{bottom:calc(var(--hud-bottom) + 52px)}.match-hud-settings{bottom:var(--hud-bottom)}.match-hud-edge-menu{top:var(--hud-top);right:var(--hud-right);pointer-events:auto;display:none;position:absolute}.match-hud-edge-menu summary{cursor:pointer;justify-content:center;align-items:center;width:44px;height:44px;list-style:none;display:flex}.match-hud-edge-menu summary::-webkit-details-marker{display:none}.match-hud-edge-menu nav{background:#102d24f5;border-radius:10px;gap:6px;width:max-content;padding:6px;display:flex;position:absolute;top:0;right:52px}.match-hud-information{bottom:calc(var(--hud-bottom) + 54px);left:var(--hud-left);max-width:min(420px,calc(100% - var(--hud-left) - var(--hud-right) - 60px));pointer-events:auto;color:#fff0cc;text-shadow:0 1px 3px #000;max-height:35dvh;font-size:14px;position:absolute;overflow:auto}.match-hud-information:empty{display:none}.match-hud-information p{background:#102d24ed;border-radius:8px;margin:4px 0;padding:6px 10px}.match-hud-information .primary-button{min-height:44px}@media (max-width:900px){.match-hud-navigation{display:none}.match-hud-edge-menu{display:block}.hud-name{max-width:220px}}@media (orientation:landscape) and (max-height:500px){.match-hud-navigation{display:none}.match-hud-edge-menu{display:block}.hud-name{max-width:200px}.match-hud-information{max-width:min(240px,100% - 90px)}.sanctuary-shell.match-view.menu-open .game-panel,.sanctuary-shell.online-match-shell.menu-open .main-content{top:max(10px,env(safe-area-inset-top));bottom:max(10px,env(safe-area-inset-bottom));right:calc(max(10px,env(safe-area-inset-right)) + 52px);max-width:calc(100vw - 84px)}}@media (prefers-reduced-motion:reduce){.hud-name.is-turn.has-motion:after{opacity:.85;animation:none;transform:none}}.sanctuary-shell.welcome-view>.sanctuary-welcome{--lobby-pad-y:clamp(8px,2dvh,36px);--lobby-pad-x:clamp(12px,3vw,22px);--lobby-height:calc(100dvh - max(var(--lobby-pad-y),env(safe-area-inset-top)) - max(var(--lobby-pad-y),env(safe-area-inset-bottom)));--lobby-group-width:clamp(280px,min(82vw,calc(var(--lobby-height)*.9)),380px);--lobby-gap:clamp(3px,min(1.5vw,1dvh),12px);--lobby-font:clamp(.8125rem,min(3.8vw,3.5dvh),1.125rem);justify-content:center;align-items:center;gap:var(--lobby-gap);height:auto;min-height:100dvh;padding:max(var(--lobby-pad-y),env(safe-area-inset-top)) max(var(--lobby-pad-x),env(safe-area-inset-right)) max(var(--lobby-pad-y),env(safe-area-inset-bottom)) max(var(--lobby-pad-x),env(safe-area-inset-left));flex-direction:column;display:flex}.sanctuary-welcome>.sanctuary-title{width:min(100%,var(--lobby-group-width));aspect-ratio:3/2;object-fit:contain;flex:none;height:auto;max-height:none}.sanctuary-welcome>p{max-width:100%;margin:0;font-size:clamp(.8125rem,min(3.8vw,3.5dvh),1.25rem);line-height:1.25}.sanctuary-welcome>.welcome-actions{width:min(100%,var(--lobby-group-width));gap:var(--lobby-gap);flex:none}.sanctuary-welcome>.welcome-actions button{min-height:44px;font-size:var(--lobby-font);gap:var(--lobby-gap);padding:clamp(6px,min(2vw,1.6dvh),14px) clamp(10px,min(3vw,2.5dvh),20px);line-height:1.2}.sanctuary-welcome .welcome-auth{gap:var(--lobby-gap);margin:0;font-size:clamp(.75rem,min(3.4vw,3.3dvh),.875rem);line-height:1.25}.sanctuary-welcome .welcome-secondary{gap:var(--lobby-gap);max-width:100%;margin:0}.sanctuary-welcome .welcome-secondary .quiet-button,.sanctuary-welcome .welcome-secondary a,.sanctuary-welcome .welcome-auth .primary-button,.sanctuary-welcome .welcome-auth .quiet-button{justify-content:center;align-items:center;gap:var(--lobby-gap);min-height:44px;padding:clamp(6px,min(2vw,1.6dvh),12px) clamp(8px,min(2.5vw,2dvh),14px);font-size:clamp(.75rem,min(3.4vw,3.3dvh),.875rem);line-height:1.25;display:flex}.sanctuary-welcome button svg,.sanctuary-welcome a svg{width:clamp(16px,min(4.8vw,4.8dvh),24px);height:clamp(16px,min(4.8vw,4.8dvh),24px)}.sanctuary-welcome>.welcome-footer{align-items:center;gap:var(--lobby-gap);flex-direction:column;flex:none;max-width:100%;display:flex}@media (orientation:landscape) and (max-height:500px){.sanctuary-shell.welcome-view>.sanctuary-welcome{--lobby-pad-y:8px;--lobby-gap:3px;--lobby-font:.8125rem;--lobby-controls-budget:calc(220px + 7*var(--lobby-gap) + 2.125rem)}.sanctuary-welcome>.sanctuary-title{width:auto;height:clamp(64px,calc(var(--lobby-height) - var(--lobby-controls-budget)),140px);aspect-ratio:3/2;max-width:100%}.sanctuary-welcome>p{font-size:.8125rem;line-height:1.25}.sanctuary-welcome>.welcome-actions button{padding:6px 10px}.sanctuary-welcome>.welcome-footer{justify-content:center;column-gap:6px;row-gap:var(--lobby-gap);flex-flow:wrap}.sanctuary-welcome .welcome-auth{font-size:.75rem;display:contents}.sanctuary-welcome .welcome-auth>span{flex:0 0 100%;font-size:.75rem;line-height:1.25}.sanctuary-welcome .welcome-secondary{gap:3px}.sanctuary-welcome .welcome-secondary .quiet-button,.sanctuary-welcome .welcome-secondary a,.sanctuary-welcome .welcome-auth .primary-button,.sanctuary-welcome .welcome-auth .quiet-button{padding:6px 8px;font-size:.75rem;line-height:1.25}.sanctuary-welcome button svg,.sanctuary-welcome a svg{width:16px;height:16px}}
