/* Crown Chess — quiet, material-led menus. */
@font-face{font-family:Cormorant;src:url('fonts/CormorantGaramond-Variable.woff') format('woff');font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:Manrope;src:url('fonts/Manrope-Variable.woff') format('woff');font-style:normal;font-weight:200 800;font-display:swap}
:root{--bg:#1c1b1a;--panel:#232220;--panel2:#2b2927;--border:#383532;--text:#e7e4dc;--muted:#93908b;--gold:#c6b69a;--green:#b8b4ae;--light:#d7d0bc;--dark:#78726b;--game-board-reserve:290px}
html,body{height:100%;overflow:hidden;background:var(--bg)}body{background:#1c1b1a;font-family:Manrope,Arial,sans-serif;font-size:13px}button,input,select{font-family:inherit}button{transition:color .18s,background .18s,border-color .18s;box-shadow:none}button:hover,button:active{transform:none!important}h1,h2,h3{font-family:Cormorant,Georgia,serif;font-weight:400;letter-spacing:-.5px}button:focus-visible,a:focus-visible{outline:1px solid #d5cbb6;outline-offset:4px}svg{display:block}
#app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.sidebar{position:relative;inset:auto;width:100%;height:78px;min-height:78px;padding:0 4.2%;border:0;border-bottom:1px solid #34322f;background:transparent;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;gap:8px;align-items:center;font-family:Cormorant,Georgia,serif;font-size:30px;font-weight:500;letter-spacing:-.7px;line-height:1}.brand-mark{width:24px;height:26px;color:#c6bca7}.brand>span:last-child{display:flex;align-items:baseline;gap:8px}.brand-sub{font-family:Manrope,Arial,sans-serif;font-size:8px;letter-spacing:2px;color:#9c9791;margin:0}.sidebar nav{flex-direction:row;align-items:center;gap:31px;margin:0;width:auto;height:100%}.sidebar .nav-item{padding:0;height:100%;width:auto;min-height:0;font-size:11px;gap:0;background:none;border-radius:0;color:#908c86;box-shadow:none;position:relative;font-weight:500}.sidebar .nav-item>span[data-icon]{display:none}.sidebar .nav-item>.nav-name{display:block;font-size:inherit;width:auto;height:auto}.sidebar .nav-item:hover,.sidebar .nav-item.active{background:none;color:#e7e4dc;box-shadow:none}.sidebar .nav-item.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#c3b395}.top-actions{gap:8px}.icon-btn{width:29px;height:29px;padding:6px;border:0;border-radius:3px;color:#8d8983;background:none}.icon-btn:hover{background:#322f2c;color:#e6e2d7}.main-shell{margin:0;padding:0 5.3%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column;height:auto}.topbar{height:36px;min-height:36px;padding:0;border:0;background:none}.breadcrumb{font-size:8px;letter-spacing:1.1px;color:#76726d}.breadcrumb span{margin:0 11px;color:#534f4a}.breadcrumb strong{color:#9f9a93}.session-note{font-size:7px;letter-spacing:1.5px;color:#746f69}.footer{display:none}#content{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;height:auto;padding:0 0 27px}.view-home~.footer{display:none}.main-shell:has(.view-home) .topbar{visibility:hidden;height:12px;min-height:12px}#content.view-home{padding:0}.eyebrow,.edition-label{color:#918b84;font-size:9px;letter-spacing:1.8px;line-height:1.4;font-weight:500}.eyebrow:before{display:none}.btn{border-radius:3px;border:1px solid #4b4742;box-shadow:none;background:transparent;color:#c5c1bc;font-size:11px;font-weight:500;min-height:38px;padding:10px 18px;gap:10px}.btn:hover{background:#322f2b;border-color:#77726b}.btn-primary{background:#dedbcf;border-color:#dedbcf;color:#2b2825;box-shadow:none}.btn-primary:hover{background:#f0ede3;border-color:#f0ede3}.btn-ghost{border-color:transparent;color:#aaa59e}.btn-danger{color:#d7a091;border-color:#6f4d44}.btn svg{height:15px;width:15px}.page-intro{padding:24px 0 25px;flex:none;align-items:center}.page-intro .eyebrow{margin-bottom:10px}.page-intro h1{font-size:49px;line-height:1;letter-spacing:-.6px;font-weight:400}.page-intro p{color:#97918a;font-size:11px;line-height:1.5;margin-top:10px}.completion{display:flex;gap:8px;align-items:center;min-width:90px}.completion>strong{font-family:Cormorant,Georgia,serif;font-size:39px;line-height:1;font-weight:400;color:#d9d8cc}.completion>span{font-size:11px;color:#89837b}.completion small{display:block;font-size:7px;letter-spacing:1.3px;margin-top:3px;color:#837d75}
/* One title, four choices, one static board. */
.lobby{position:relative;min-height:0;flex:1;display:grid;grid-template-columns:34% 66%;align-items:center;padding:0 0 38px}.lobby-copy{position:relative;z-index:2;padding:0 0 0 6%;max-width:355px}.lobby h1{font-family:Cormorant,Georgia,serif;font-size:clamp(68px,7.5vw,112px);line-height:.83;letter-spacing:-3px;color:#e9e5d9;margin:0 0 38px;font-weight:400}.lobby h1 span{color:#9e9b8a}.lobby-menu{width:100%;max-width:270px}.lobby-play{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:#dedbcf;color:#282623;min-height:62px;border-radius:3px;margin-bottom:13px;font-size:14px;font-weight:500}.lobby-play strong{font-weight:600}.lobby-play>svg{width:19px;height:19px}.lobby-play:hover{background:#f1eee5}.lobby-option{display:flex;align-items:center;width:100%;background:none;color:#a9a49e;min-height:52px;padding:0 5px;border-bottom:1px solid #363330;border-radius:0;text-align:left;gap:10px}.lobby-option strong{font-size:13px;font-weight:400}.lobby-option:hover{color:#f2f0e7;background:none;border-bottom-color:#938d84}.option-tail{margin-left:auto}.option-tail svg{height:15px;width:15px;opacity:.5}.lobby-art{position:relative;margin-left:-10%;margin-right:-5%;width:115%;height:min(100%,680px);z-index:0;pointer-events:none;opacity:.9;display:flex;align-items:center;justify-content:center}.lobby-art>svg{width:100%;height:100%;max-height:100%;overflow:visible}.lobby-art *{animation:none!important}
/* Match controls */
.match-setup{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:8%;max-width:1040px;margin:auto;width:100%;align-items:center}.opponent-preview{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.opponent-piece{width:clamp(130px,19vw,230px);height:clamp(130px,23vh,245px);filter:drop-shadow(0 15px 18px #0004);opacity:.94}.opponent-caption{margin-top:25px;text-align:center;max-width:270px}.opponent-caption .edition-label{font-size:8px;color:#79736a}.opponent-caption h2{font-size:44px;margin:8px 0 12px;color:#deded0}.opponent-caption p{font-size:11px;color:#98928a;line-height:1.7}.strength-meter{display:flex;gap:5px;justify-content:center;margin-top:22px}.strength-meter i{width:20px;height:2px;background:#3c3934}.strength-meter i.filled{background:#b0aba4}.match-options{padding:0 0 8px;width:100%;max-width:465px;display:flex;flex-direction:column;gap:23px;min-height:0}.option-group{margin:0}.field-label{font-size:10px;letter-spacing:0;color:#a29c95;text-transform:none;margin:0 0 11px;font-weight:500;display:flex;justify-content:space-between}.field-label>span{font-size:8px;color:#6c665f;letter-spacing:1px}.segmented{gap:7px}.choice{border:1px solid #46423d;background:transparent;border-radius:3px;min-height:39px;padding:10px 7px;font-size:11px;color:#ada8a1;display:flex;align-items:center;justify-content:center;gap:9px;position:relative}.choice:hover:not(:disabled){border-color:#958f87;background:#2f2d2a}.choice.selected{border-color:#bebab5;background:#3a3632;color:#e2e0de}.difficulty-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.difficulty-grid>.choice{flex-direction:column;gap:7px;min-height:89px;padding:7px 3px;font-size:9px}.difficulty-piece{width:39px;height:45px;display:block;filter:drop-shadow(0 2px 1px #0003)}.difficulty-grid>.choice:not(.selected) .difficulty-piece{opacity:.7;filter:grayscale(1) brightness(1.7)}.color-swatch{width:11px;height:11px;border:1px solid #9a948c;border-radius:50%;flex:none}.color-swatch.w{background:#e1decd}.color-swatch.b{background:#23211f}.color-swatch.random{background:linear-gradient(90deg,#e1decd 50%,#23211f 50%)}.start-match{margin-top:0;min-height:46px;width:100%;justify-content:space-between;padding:13px 19px;flex-direction:row-reverse}#content /* Lessons are numbered exercises,#content with simple line divisions. */
.view-academy .paged-grid,#content.view-puzzles .paged-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:0 42px;flex:1;min-height:0;padding:0;margin:0}#content .lesson-card{background:none;border:0;border-bottom:1px solid #3f3c37;border-radius:0;padding:13px 6px;min-height:0;display:flex;flex-direction:row;align-items:center;gap:19px;overflow:hidden}#content .lesson-card:hover{border-color:#8a837a;background:#292724}#content .lesson-number{position:static;right:auto;top:auto;color:#7d776e;font-size:10px;letter-spacing:1px;min-width:21px}#content .lesson-illustration{height:70px;width:66px;flex:none;display:flex;align-items:center;justify-content:center;position:relative}#content .mini-squares{display:none}#content .lesson-card .lesson-symbol{height:65px;width:56px;margin:0;position:relative;display:block}#content .lesson-card-copy{min-width:0;flex:1}#content .lesson-card .tag{color:#878076;font-size:7px;letter-spacing:1px;display:block;margin-bottom:7px}#content .lesson-card h3{font-size:25px;color:#dad7d4;line-height:1.07;letter-spacing:-.2px;margin:0}#content .lesson-state{height:16px;width:16px;flex:none;color:#8e877e;margin-left:4px}#content .lesson-card.completed .lesson-state{color:#c5c2bd}#content .lesson-card.completed .lesson-number{color:#b2aea8}.pager{padding:17px 0 0;min-height:58px;flex:none;color:#7d766d;height:58px}.pager>span{font-size:7px;letter-spacing:1px}.pager>div{display:flex;align-items:center;gap:16px}.pager .btn{font-size:10px;padding:7px 12px;min-height:32px;border-color:#46433e}.pager b{font-size:10px;white-space:nowrap;font-weight:400;color:#c5c2bd}.pager b span{color:#7e776e;margin-left:3px}#content /* Quiet trophy selection */
.cups{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:8px 0 10px;align-items:stretch}#content .cup,#content .cup.silver,#content .cup.gold{background:none;border:0;border-right:1px solid #44403b;border-radius:0;padding:12px 7%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;overflow:hidden;text-align:left;position:relative}#content .cup:first-child{padding-left:0}#content .cup:last-child{border-right:0;padding-right:0}#content .cup-topline{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px;color:#767068;padding-bottom:3px;gap:7px}#content .cup-emblem{height:clamp(95px,22vh,205px);min-height:0;display:flex;align-items:center;justify-content:center;margin:8px 0 12px;position:relative;flex-shrink:1}#content .cup-orbit,#content .cup-plinth{display:none}#content .cup-chesspiece{width:130px;height:100%;max-height:165px;filter:sepia(.35) saturate(.85) brightness(.9) drop-shadow(0 10px 12px #0004);display:block}#content .cup.silver .cup-chesspiece{filter:grayscale(.9) brightness(1.05) drop-shadow(0 10px 12px #0004)}#content .cup.gold .cup-chesspiece{filter:sepia(.65) saturate(.85) brightness(.93) drop-shadow(0 10px 12px #0004)}#content .cup-title .tag{position:static;color:#a59472;font-size:7px;letter-spacing:1.4px;margin:0 0 7px}#content .cup.silver .cup-title .tag{color:#b4b0aa}#content .cup.gold .cup-title .tag{color:#b9af72}#content .cup h3{font-size:clamp(27px,3vw,41px);line-height:.95;margin:0 0 18px;color:#d7d4d1;min-height:0}#content .cup-meta{margin:0;padding:0 0 17px;border:0;display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#938c83;line-height:1.4;flex-wrap:wrap}#content .cup-meta>span{display:flex;align-items:center;gap:4px}#content .cup-meta svg{height:11px;width:11px}#content .cup .btn{width:100%;margin:0;justify-content:space-between;flex:none;font-size:10px;min-height:38px}#content .cup-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;height:28px;min-height:28px;font-size:8px;color:#7d766d}
/* Game and dialogs share the calm material palette. */
.view-game .game-top{padding:14px 0 15px;min-height:58px;flex:none}.view-game .game-top h2{font-family:Cormorant,Georgia,serif;font-size:29px}.view-game .game-top p{font-size:8px;letter-spacing:.5px;color:#918b82}.view-game .game-top-actions .btn{font-size:10px}.view-game .game-layout{min-height:0;max-width:1130px;width:100%;grid-template-columns:minmax(0,1fr) 265px;gap:26px;align-items:center;flex:1;margin:0 auto}.view-game .board-area{width:min(100%,calc(100dvh - 290px));max-width:650px}.view-game .board-shell{background:#413e39;border-radius:3px;padding:13px;box-shadow:0 10px 28px #0003,0 2px 0 #252321}.chessboard{border-color:#373431;box-shadow:none}.square .coord{color:#544f49}.square.dark .coord{color:#d2cfcb}.view-game .game-sidebar{padding:0;gap:12px}.panel,.view-game .game-sidebar .panel{background:none;border:1px solid #44413c;border-radius:4px;padding:17px;box-shadow:none}.view-game .game-sidebar .opponent-panel{border:0;padding:0 0 8px}.panel-label{color:#a9a49d;font-size:8px;letter-spacing:1px;margin-bottom:10px}.panel-label svg{color:#b0aba5}.opponent-title{font-family:Cormorant,Georgia,serif;font-size:29px;color:#dddbd9}.opponent-copy{font-size:10px;color:#a09a93;line-height:1.65}.difficulty-bars i{background:#3f3c38}.difficulty-bars i.filled{background:#b4b0aa}.turn-indicator{font-size:10px;color:#c2beb9;border-color:#45413c}.move-row:nth-child(even){background:#2e2b28}.move-row>span:first-child{color:#8a837a}.empty-moves{font-family:Manrope,Arial,sans-serif;color:#878077;padding:23px 0;font-size:10px}.view-game .game-sidebar .coach-box{border:0!important;background:none!important;padding:10px 0!important}.coach-box p{color:#9e9891;font-size:10px;line-height:1.8}.player-strip .avatar{background:#3c3935;border-radius:3px}.clock{font-family:Manrope,Arial,sans-serif;font-size:15px;letter-spacing:0;border-color:#54504a;background:#312e2b;border-radius:3px;color:#c2bfba}.player-strip.active .clock{background:#cac7c2;border-color:#cac7c2;color:#272523}.player-strip.active .avatar{outline:1px solid #b5b1ab}.board-status{color:#aba69f}.board-status i{background:#b9b5af}.captured{color:#b1ada7}.move-pagination button{background:#3c3934;border-color:#544f49;color:#b5b1ab}.game-actions .btn{border-color:#544f49;color:#c1bdb8}.game-actions .btn-ghost{border-color:transparent}.lesson-badge{color:#b3aea8;font-size:8px;letter-spacing:1.2px}.lesson-copy{color:#cac7c2;font-size:12px}.lesson-side h3{font-family:Cormorant,Georgia,serif;font-size:29px}.lesson-success{background:#373431;border-color:#756f67;color:#d8d5d2}.lesson-error{color:#cdb995}.modal-overlay{background:#131211ed;backdrop-filter:blur(10px)}.modal{background:#272523;border:1px solid #58544e;border-radius:6px;box-shadow:0 20px 60px #0006;padding:29px;width:min(100%,440px);overflow:hidden}.modal h2{font-family:Cormorant,Georgia,serif;font-size:38px;color:#e0dedc;margin:11px 0 15px}.modal p{font-size:11px;color:#b7b2ac;line-height:1.8}.modal .eyebrow{font-size:8px;color:#a29c95}.modal .switch-line{border-color:#494641}.switch-line span strong{font-size:11px;color:#d4d2cf}.switch-line span small{font-size:9px;color:#9e9891}.switch{background:#534f49}.switch.on{background:#b8b4ae}.switch.on:after{background:#35322f}.modal .storage-note{font-size:9px;color:#969088}.modal-emblem{height:42px;width:42px;color:#b7b2ac}.result-score{font-family:Cormorant,Georgia,serif;color:#c5c2be;font-size:42px}.round-step{background:#34312e;border-color:#504c47;color:#aea9a2}.round-step.current{background:#423f3a;border-color:#b0aba5;color:#d4d1cd}.round-step small{color:#8a837a}.promotion-choices button{background:#47433e;border-color:#6d675f;color:#d0cdc9}.promotion-choices button:hover{border-color:#c2bfba}#toast{background:#d2cfcb;color:#2a2825;left:50%;bottom:20px;font-size:11px;border-radius:3px}.board-pause{background:#2b2926e6;color:#d1cecb}
@media(min-width:1600px){.sidebar{padding:0 6%}.main-shell{padding:0 7%}.lobby-copy{padding-left:8%;max-width:420px}.lobby h1{font-size:126px}.lobby-menu{max-width:300px}.lobby-option{min-height:58px}.lobby-play{min-height:70px}.page-intro h1{font-size:57px}.page-intro{padding:33px 0}.match-options{gap:29px}.view-game .board-area{width:min(100%,calc(100dvh - 290px))}}
@media(max-width:1100px){.sidebar{padding:0 4%;gap:20px}.sidebar nav{gap:22px}.brand{font-size:26px}.brand-sub{font-size:7px}.main-shell{padding:0 4%}.lobby-copy{padding-left:1%}.lobby h1{font-size:86px}.lobby-menu{max-width:250px}.lobby{grid-template-columns:35% 65%}.lobby-art{margin-left:-8%;width:113%}.page-intro h1{font-size:43px}.match-setup{gap:5%;grid-template-columns:.85fr 1fr}.match-options{gap:18px}#content .lesson-card{gap:12px}#content .lesson-card h3{font-size:24px}#content .lesson-illustration{width:52px;height:58px}#content .lesson-card .lesson-symbol{width:50px;height:57px}#content.view-academy .paged-grid,#content.view-puzzles .paged-grid{gap:0 25px}#content .cup{padding:8px 7%}#content .cup-meta{font-size:8px}.view-game .game-layout{grid-template-columns:minmax(0,1fr) 235px;gap:20px}.view-game .game-sidebar .panel{padding:13px}.view-game .board-area{width:min(100%,calc(100dvh - 290px))}}
@media(max-width:800px){.sidebar{height:66px;min-height:66px;padding:0 3%;gap:17px}.sidebar nav{gap:17px}.sidebar .nav-item{font-size:10px}.brand-sub{display:none}.top-actions{gap:3px}.icon-btn{height:26px;width:26px;padding:5px}.brand-mark{height:20px;width:21px}.brand{font-size:25px}.main-shell{padding:0 4%}.topbar{height:30px;min-height:30px}.lobby h1{font-size:76px;letter-spacing:-2px}.lobby{grid-template-columns:40% 60%}.lobby-copy{padding-left:0}.lobby-play{min-height:54px;padding:15px;font-size:13px}.lobby-option{min-height:47px}.lobby-option strong{font-size:12px}.lobby-art{margin-left:-14%;width:121%;opacity:.85}.match-setup{grid-template-columns:.75fr 1fr;gap:5%}.opponent-piece{height:180px;width:160px}.opponent-caption h2{font-size:37px}.opponent-caption p{font-size:10px}.difficulty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.difficulty-grid>.choice{min-height:49px;flex-direction:row;font-size:9px;gap:3px;padding:5px}.difficulty-piece{height:33px;width:28px}.match-options{gap:18px}.opponent-caption{max-width:200px}.view-game .game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.view-game .board-area{width:min(100%,calc(100dvh - 270px))}.view-game .game-top h2{font-size:27px}.view-game .game-sidebar .panel{padding:12px}.view-game .game-sidebar .coach-box{display:none}.view-game .game-sidebar .opponent-panel{display:block}#content .lesson-card h3{font-size:23px}.page-intro{padding:22px 0 23px}.page-intro h1{font-size:40px}#content .cup h3{font-size:31px}#content .cup-meta{font-size:8px;gap:7px}#content .cup .btn{padding:8px;font-size:9px}#content .cup-topline{font-size:6px;letter-spacing:.5px}}
@media(max-width:700px){.sidebar nav{gap:12px}.sidebar .nav-item{font-size:9px}.brand{font-size:23px}.brand-mark{height:19px;width:19px}.sidebar{gap:12px}.top-actions{gap:1px}.top-actions .icon-btn{height:24px;width:24px}#content.view-academy .paged-grid,#content.view-puzzles .paged-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:0 17px}#content .lesson-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:13px 8px;gap:10px}#content .lesson-number{position:absolute;top:14px;right:9px;left:auto;font-size:9px}#content .lesson-illustration{width:54px;height:61px}#content .lesson-card .lesson-symbol{width:50px;height:57px}#content .lesson-card h3{font-size:25px;line-height:1.05}#content .lesson-card .tag{font-size:6px;margin-bottom:7px;letter-spacing:.7px}#content .lesson-state{position:absolute;bottom:13px;right:9px;width:13px;height:13px}#content .lesson-card-copy{flex:0;padding-right:13px}#content .cups{gap:0}#content .cup-topline>span:first-child{display:none}#content .cup-emblem{height:150px}#content .cup h3{font-size:27px}#content .cup{padding:8px 7%}#content .cup .btn{font-size:8px;min-height:34px;padding:7px;gap:4px}#content .cup .btn svg{width:12px;height:12px}#content .cup-meta{font-size:7px}#content .cup-footer{font-size:7px}.view-game .game-layout{grid-template-columns:1fr;gap:13px;align-items:start}.view-game .board-area{width:min(100%,calc(100dvh - 400px))}.view-game .game-sidebar{padding:0;display:block;width:min(100%,510px);margin:auto}.view-game .game-sidebar .opponent-panel,.view-game .game-sidebar .coach-box{display:none}.view-game .notation-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:10px!important}.view-game .notation-panel>.panel-label,.view-game .notation-panel>.move-list,.view-game .notation-panel>.move-pagination{grid-column:1/-1}.view-game .notation-panel .game-actions{display:contents}.view-game .notation-panel .game-actions .btn{min-height:28px;font-size:8px;padding:6px 3px;gap:4px}.view-game .notation-panel .game-actions .btn svg{width:11px;height:11px}.view-game .notation-panel>.move-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 7px;height:auto}.view-game .move-row{font-size:10px;padding:2px 4px;min-height:18px;grid-template-columns:20px 1fr 1fr}.view-game .empty-moves{padding:8px;grid-column:1/-1}.view-game .move-pagination{height:22px;min-height:22px;font-size:8px}.view-game .notation-panel .panel-label{margin-bottom:2px}.view-game .game-layout.is-lesson .board-area{width:min(100%,calc(100dvh - 420px))}.view-game .lesson-side{width:min(100%,510px)}.view-game .lesson-side .panel{padding:12px 15px}.view-game .lesson-side .lesson-badge{display:none}.view-game .lesson-side h3{font-size:24px}.view-game .lesson-copy{font-size:11px;margin:8px 0}.view-game .lesson-actions{gap:8px;margin-top:10px}.view-game .lesson-actions .btn{font-size:10px;padding:7px 10px;min-height:30px}.view-game .lesson-success{font-size:10px;padding:8px;margin:8px 0}.view-game .lesson-error{font-size:10px;line-height:1.5}.view-game .board-under{font-size:8px;height:24px}.view-game .player-strip{height:34px}.player-strip strong{font-size:10px}.player-strip small{font-size:8px}.player-strip .avatar{width:27px;height:27px}.player-strip .avatar svg{width:25px;height:25px}.clock{font-size:14px;padding:3px 9px;min-width:60px}.view-game .game-top{min-height:52px;padding:10px 0 12px}.view-game .game-top h2{font-size:26px}.view-game .game-top p{font-size:7px}.view-game .game-top-actions .btn{font-size:9px;min-height:30px;padding:6px 9px}.view-game .board-shell{padding:9px}.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 420px))}}
@media(max-width:520px){.sidebar{height:62px;min-height:62px;padding:0 20px;gap:12px;background:#1c1b1a;border-bottom:0}.brand{font-size:28px}.brand-mark{height:22px;width:23px}.brand>span:last-child{display:flex}.brand-sub{display:block;font-size:7px;letter-spacing:1.4px}.sidebar nav{position:fixed;bottom:0;left:0;right:0;height:59px;background:#22201d;border-top:1px solid #413e3a;display:flex;justify-content:space-around;gap:0;padding:0 8px;z-index:30}.sidebar .nav-item{height:59px;flex:1;justify-content:center;flex-direction:column;gap:4px;padding:7px 3px;font-size:7px;color:#948e85;letter-spacing:0}.sidebar .nav-item>span[data-icon]{display:block;height:18px;width:18px}.sidebar .nav-item.active:after{left:30%;right:30%;bottom:0;height:2px;background:#b3afa9}.sidebar .nav-item.active{color:#dcdad7}.top-actions{gap:6px}.top-actions .icon-btn{width:26px;height:26px;padding:5px}.main-shell{padding:0 21px 59px}.topbar{display:none}.main-shell:has(.view-home) .topbar{display:none}#content{padding-bottom:16px}.lobby{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:0;min-height:0}.lobby-copy{max-width:none;display:flex;flex-direction:column;justify-content:space-between;min-height:0;flex:1;padding:30px 0 20px}.lobby h1{font-size:80px;line-height:.85;margin:0 0 22px;letter-spacing:-2px;width:50%;position:relative;z-index:1}.lobby-menu{max-width:none;width:100%;position:relative;z-index:2}.lobby-play{margin-bottom:9px;min-height:55px;padding:16px 18px;font-size:14px}.lobby-option{min-height:52px;padding:0 8px;background:transparent}.lobby-option strong{font-size:13px}.lobby-art{position:absolute;right:-90px;top:15px;width:94%;height:48%;max-height:360px;margin:0;opacity:.57;z-index:0}.lobby-art>svg{overflow:visible}.page-intro{padding:20px 0 22px;gap:17px}.page-intro .eyebrow{font-size:8px;margin-bottom:8px}.page-intro h1{font-size:39px;line-height:.97}.page-intro p{font-size:10px;line-height:1.6;margin-top:9px;max-width:240px}.completion{min-width:66px;gap:5px}.completion>strong{font-size:31px}.completion>span{font-size:9px}.completion small{font-size:6px;letter-spacing:.7px}.match-setup{grid-template-columns:1fr;display:flex;flex-direction:column;justify-content:center;gap:0;max-width:420px;margin:0 auto;flex:1}.opponent-preview{display:none}.match-options{max-width:none;gap:22px;padding:0;justify-content:center;flex:1}.field-label{font-size:10px;margin-bottom:10px}.choice{min-height:40px;font-size:11px;padding:10px 6px}.difficulty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.difficulty-grid>.choice{min-height:56px;font-size:10px;gap:7px;padding:8px 4px}.difficulty-piece{width:31px;height:37px}.start-match{min-height:47px;margin-top:2px;font-size:12px}#content.view-academy .paged-grid,#content.view-puzzles .paged-grid{gap:0 18px}#content .lesson-card{padding:11px 3px;justify-content:center;gap:9px}#content .lesson-number{right:3px;top:13px}#content .lesson-card h3{font-size:25px}#content .lesson-card .tag{font-size:6px}#content .lesson-state{right:3px;bottom:13px}#content .lesson-illustration{height:61px}.pager{height:51px;min-height:51px;padding-top:13px}.pager>span{font-size:6px;max-width:75px;line-height:1.5;letter-spacing:.5px}.pager>div{gap:10px}.pager .btn{min-height:29px;font-size:8px;padding:6px 9px;gap:6px}.pager .btn svg{height:11px;width:11px}.pager b{font-size:9px}#content .cups{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));padding:0;gap:0;flex:1}#content .cup,#content .cup.silver,#content .cup.gold,#content .cup:first-child,#content .cup:last-child{display:grid;grid-template-columns:70px minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:16px;row-gap:6px;padding:15px 0;background:none;border:0;border-bottom:1px solid #4b4742;min-height:0;overflow:hidden}#content .cup:last-child{border-bottom:0}#content .cup-topline{display:none}#content .cup-emblem{margin:0;height:88px;width:70px;grid-column:1;grid-row:1/3}#content .cup-chesspiece{height:100%;width:100%}#content .cup-title{grid-column:2;grid-row:1}#content .cup-title .tag{font-size:6px;letter-spacing:1px;margin-bottom:6px;display:block}#content .cup h3{font-size:27px;line-height:.9;margin:0;letter-spacing:-.3px}#content .cup-meta{grid-column:2;grid-row:2;margin:0;padding:0;display:block;font-size:7px;line-height:1.3}#content .cup-meta>span:last-child{display:none}#content .cup .btn{grid-column:3;grid-row:1/3;font-size:9px;max-width:70px;min-height:37px;white-space:normal;text-align:left;padding:8px;gap:5px;line-height:1.2}#content .cup .btn svg{height:12px;width:12px;flex-shrink:0}#content .cup-footer{height:34px;min-height:34px;font-size:6px;gap:12px;line-height:1.5}#content .cup-footer>span{max-width:45%}.view-game .board-area{width:min(100%,calc(100dvh - 390px))}.view-game .game-layout{gap:10px;align-content:start}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 430px))}.view-game .game-top{padding:8px 0 12px;min-height:51px}.view-game .game-top h2{font-size:25px}.view-game .game-top-actions .btn{font-size:8px;padding:6px;min-height:28px;gap:4px}.view-game .game-top-actions .btn svg{height:11px;width:11px}.view-game .lesson-side .panel{padding:12px}.view-game .lesson-side h3{font-size:24px}.view-game .lesson-actions .btn{padding:7px 8px;font-size:9px;gap:5px}.view-game .lesson-actions .btn svg{height:12px;width:12px}.view-game .board-shell{padding:8px}.view-game .game-sidebar .panel-label{font-size:7px}.modal-overlay{padding:19px}.modal{padding:25px 22px;max-height:calc(100dvh - 38px);width:min(100%,420px);border-radius:5px}.modal h2{font-size:34px;margin:10px 0 14px}.modal p{font-size:11px}.modal .close-modal{top:10px;right:10px}.modal-actions .btn{font-size:10px;padding:9px 12px;min-height:37px}.modal-actions{gap:8px;margin-top:20px}.modal .switch-line{padding:12px 0}.result-score{font-size:38px}.result-modal .modal-emblem{height:42px;width:42px;margin:4px auto 16px}#toast{bottom:73px;font-size:10px;max-width:85vw}.promotion-choices{gap:6px}.promotion-choices svg{height:58px}.promotion-choices button{font-size:8px}}
@media(max-height:760px) and (min-width:521px){.sidebar{height:64px;min-height:64px}.topbar{height:28px;min-height:28px}#content{padding-bottom:18px}.lobby{padding-bottom:10px}.lobby h1{font-size:78px;margin-bottom:26px}.lobby-play{min-height:54px;padding:14px 18px}.lobby-option{min-height:45px}.page-intro{padding:14px 0 18px}.page-intro h1{font-size:42px}.page-intro p{font-size:10px}.match-options{gap:17px}.opponent-piece{height:185px;width:180px}.opponent-caption{margin-top:16px}.opponent-caption h2{font-size:38px;margin:8px 0 9px}.strength-meter{margin-top:16px}.choice{min-height:35px;padding:8px 6px}.difficulty-grid>.choice{min-height:75px}.difficulty-piece{height:38px;width:34px}.start-match{min-height:41px;padding:10px 17px}#content .cup-emblem{height:clamp(90px,18vh,150px);margin:5px 0 10px}#content .cup h3{font-size:34px;margin-bottom:13px}#content .cup-meta{padding-bottom:14px}#content .cup .btn{min-height:35px}#content .lesson-card{padding:9px 5px}#content .lesson-card h3{font-size:25px}#content .lesson-illustration{height:60px}#content .lesson-card .lesson-symbol{height:57px;width:50px}.view-game .board-area{width:min(100%,calc(100dvh - 255px))}.view-game .game-sidebar .opponent-panel{display:none}.view-game .game-sidebar .panel{padding:12px}.view-game .game-layout{gap:22px}.view-game .game-top{min-height:49px;padding:8px 0 11px}}
@media(max-height:650px) and (max-width:520px){.sidebar{height:55px;min-height:55px;padding:0 17px}.main-shell{padding-left:18px;padding-right:18px}.brand{font-size:25px}.brand-mark{width:20px;height:20px}.brand-sub{font-size:6px}.top-actions{gap:3px}.lobby-copy{padding:17px 0 13px}.lobby h1{font-size:62px;line-height:.84;margin-bottom:15px;letter-spacing:-1.7px}.lobby-art{top:3px;height:42%;right:-65px;opacity:.5}.lobby-play{min-height:46px;padding:12px 15px;font-size:12px;margin-bottom:5px}.lobby-option{min-height:41px}.lobby-option strong{font-size:11px}.lobby-option .option-tail svg{width:13px;height:13px}.page-intro{padding:12px 0 17px}.page-intro h1{font-size:33px}.page-intro .eyebrow{font-size:7px;margin-bottom:6px}.page-intro p{font-size:9px;margin-top:7px}.view-play .page-intro p{display:none}.match-options{gap:14px;justify-content:flex-start}.field-label{font-size:9px;margin-bottom:7px}.choice{min-height:34px;padding:8px 5px;font-size:10px}.difficulty-grid{gap:6px}.difficulty-grid>.choice{min-height:44px;font-size:9px;padding:5px 3px;gap:4px}.difficulty-piece{width:25px;height:31px}.start-match{min-height:41px;font-size:11px;padding:11px 15px;margin-top:0}#content .lesson-card h3{font-size:22px}#content .lesson-card .tag{font-size:5px}#content .lesson-card{gap:6px}#content .lesson-illustration{height:42px;width:39px}#content .lesson-card .lesson-symbol{height:43px;width:38px}#content .lesson-number{font-size:8px;top:11px}#content .lesson-state{width:12px;height:12px;bottom:9px}.pager{height:44px;min-height:44px;padding-top:10px}.completion>strong{font-size:27px}.completion>span{font-size:8px}.completion small{font-size:5px}#content .cup,#content .cup.silver,#content .cup.gold,#content .cup:first-child,#content .cup:last-child{grid-template-columns:46px minmax(0,1fr) auto;column-gap:12px;padding:9px 0;row-gap:5px}#content .cup-emblem{height:65px;width:46px}#content .cup h3{font-size:23px}#content .cup-title .tag{font-size:5px;margin-bottom:5px}#content .cup .btn{font-size:8px;max-width:65px;min-height:34px;padding:7px;gap:4px}#content .cup-meta{font-size:6px}#content .cup-footer{font-size:5px;height:27px;min-height:27px}.view-tournaments .page-intro p{display:none}.view-game .board-area{width:min(100%,calc(100dvh - 355px))}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 385px))}.view-game .game-top{min-height:46px;padding:7px 0 9px}.view-game .game-top h2{font-size:22px}.view-game .player-strip{height:28px}.view-game .player-strip .avatar{height:23px;width:23px}.view-game .player-strip .avatar svg{height:22px;width:22px}.view-game .player-strip strong{font-size:9px}.view-game .clock{font-size:12px;padding:2px 8px;min-width:51px}.view-game .board-under{height:22px;min-height:22px;font-size:7px}.view-game .board-tools .icon-btn{height:22px;width:24px;padding:5px}.view-game .notation-panel{padding:8px!important;gap:3px}.view-game .empty-moves{padding:5px;font-size:9px}.view-game .move-pagination{height:19px;min-height:19px}.view-game .move-pagination button{height:18px}.view-game .notation-panel .game-actions .btn{min-height:25px;font-size:7px}.view-game .notation-panel .panel-label{font-size:6px}.view-game .game-layout{gap:7px}.view-game .game-sidebar .panel{padding:10px}.view-game .lesson-side h3{font-size:21px}.view-game .lesson-copy{font-size:10px;margin:6px 0;line-height:1.5}.view-game .lesson-actions{margin-top:8px;gap:6px}.view-game .lesson-actions .btn{font-size:8px;min-height:27px;padding:6px 7px}.view-game .lesson-success{font-size:9px;line-height:1.5;padding:6px;margin:6px 0}.view-game .lesson-error{font-size:9px;line-height:1.4;padding:3px 0}.view-game .lesson-panel .full-width{font-size:10px;min-height:31px;padding:7px}.modal h2{font-size:30px}.modal p{font-size:10px;line-height:1.7}.modal{padding:23px 19px}.modal .switch-line{padding:9px 0}.modal .storage-note{font-size:8px}.modal-actions{margin-top:16px}.modal-actions .btn{min-height:33px;font-size:9px;padding:8px 10px}.modal .eyebrow{font-size:7px}.round-track{margin:14px 0 17px}.round-step{font-size:8px;padding:9px 4px}.round-step small{font-size:6px}.modal .full-width{min-height:36px;font-size:10px}.result-score{font-size:34px;padding:7px 0}}
@media(max-height:500px) and (min-width:521px){.sidebar{height:48px;min-height:48px;padding:0 3%}.brand{font-size:24px}.brand-mark{width:20px;height:20px}.sidebar nav{gap:22px}.sidebar .nav-item{font-size:9px}.top-actions .icon-btn{height:25px;width:25px}.main-shell{padding:0 4%}.topbar{display:none}.main-shell:has(.view-home) .topbar{display:none}#content{padding-bottom:14px}.lobby{grid-template-columns:36% 64%;display:grid;padding:12px 0 0;align-items:center}.lobby-copy{padding:0;max-width:250px}.lobby h1{font-size:55px;line-height:.82;margin-bottom:18px;letter-spacing:-1.5px}.lobby-play{min-height:41px;padding:10px 14px;font-size:11px;margin-bottom:6px}.lobby-option{min-height:32px}.lobby-option strong{font-size:10px}.lobby-option .option-tail svg{height:12px;width:12px}.lobby-art{height:100%;max-height:330px;margin:0 0 0 -8%;width:110%;opacity:.86}.page-intro{padding:13px 0 15px}.page-intro .eyebrow{display:none}.page-intro h1{font-size:32px}.page-intro p{font-size:9px;margin-top:5px}.completion>strong{font-size:30px}.completion>span{font-size:9px}.completion small{font-size:6px}.match-setup{display:grid;grid-template-columns:.8fr 1fr;gap:6%;margin:0 auto;align-items:center}.opponent-preview{display:flex}.opponent-piece{height:115px;width:120px}.opponent-caption{margin-top:10px;max-width:220px}.opponent-caption .edition-label{display:none}.opponent-caption h2{font-size:30px;margin:0 0 7px}.opponent-caption p{font-size:9px;line-height:1.5}.strength-meter{margin-top:11px}.match-options{display:grid;grid-template-columns:1fr 1fr;gap:10px 13px;padding:0;max-width:none}.opponent-type,.difficulty-options,.start-match{grid-column:1/-1}.field-label{font-size:8px;margin-bottom:6px}.field-label>span{font-size:6px}.choice{min-height:29px;font-size:9px;padding:6px}.difficulty-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.difficulty-grid>.choice{min-height:41px;font-size:7px;gap:3px;padding:4px 2px;flex-direction:column}.difficulty-piece{height:22px;width:20px}.color-choice{gap:4px}.color-swatch{height:8px;width:8px}.start-match{min-height:32px;padding:8px 13px;font-size:10px;margin-top:0}#content.view-academy .paged-grid,#content.view-puzzles .paged-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:0 20px}#content .lesson-card{flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:9px 2px}#content .lesson-number{position:static;min-width:16px;font-size:8px}#content .lesson-illustration{width:37px;height:43px}#content .lesson-card .lesson-symbol{height:42px;width:36px}#content .lesson-card h3{font-size:19px;line-height:1}#content .lesson-card .tag{font-size:5px;margin-bottom:5px}#content .lesson-card-copy{flex:1;padding-right:0}#content .lesson-state{display:none}.pager{height:42px;min-height:42px;padding-top:10px}.pager>span{font-size:6px}.pager .btn{font-size:8px;min-height:27px;padding:6px 9px}.pager b{font-size:8px}#content .cups{padding:0;gap:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}#content .cup,#content .cup.silver,#content .cup.gold{display:grid;grid-template-columns:55px 1fr;grid-template-rows:1fr auto auto;gap:9px 10px;padding:7px 10%;align-items:center;justify-content:center;border-right:1px solid #44403b;border-bottom:0}#content .cup:first-child{padding-left:0}#content .cup:last-child{padding-right:0;border-right:0}#content .cup-topline{display:none}#content .cup-emblem{height:88px;width:55px;grid-column:1;grid-row:1;margin:0}#content .cup-title{grid-column:2;grid-row:1}#content .cup-title .tag{font-size:5px;display:block;margin-bottom:6px}#content .cup h3{font-size:24px;line-height:.9;margin:0}#content .cup-meta{grid-column:1/-1;grid-row:2;padding:0;display:flex;font-size:7px}#content .cup .btn{grid-column:1/-1;grid-row:3;font-size:9px;min-height:31px;max-width:none;padding:7px 9px}#content .cup-footer{height:24px;min-height:24px;font-size:6px}.view-game .game-top{padding:8px 0 10px;min-height:43px}.view-game .game-top h2{font-size:24px}.view-game .game-top p{font-size:6px}.view-game .game-top-actions .btn{font-size:8px;min-height:26px;padding:5px 8px}.view-game .game-layout,.view-game .game-layout.is-lesson{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:30px;align-items:center;align-content:stretch}.view-game .board-area,.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 165px))}.view-game .player-strip{height:24px}.view-game .player-strip .avatar{width:22px;height:22px}.view-game .player-strip .avatar svg{width:21px;height:21px}.view-game .player-strip strong{font-size:9px}.view-game .clock{font-size:11px;min-width:46px;padding:2px 7px}.view-game .captured{height:10px;font-size:6px}.view-game .captured svg{height:11px;width:10px}.view-game .board-under{height:20px;min-height:20px;margin:0;font-size:6px}.view-game .board-tools .icon-btn{height:19px;width:21px;padding:4px}.view-game .board-shell{padding:6px}.view-game .game-sidebar{display:block;width:100%;padding:0}.view-game .game-sidebar .opponent-panel,.view-game .game-sidebar .coach-box{display:none}.view-game .notation-panel{display:block;padding:10px!important}.view-game .notation-panel .game-actions{display:flex;margin-top:6px}.view-game .notation-panel .game-actions .btn{font-size:8px;min-height:25px;padding:6px;gap:4px}.view-game .notation-panel .game-actions .btn svg{height:10px;width:10px}.view-game .move-list{height:auto;font-size:9px}.view-game .notation-panel>.move-list{display:block}.view-game .move-row{min-height:17px;font-size:9px;padding:2px 5px}.view-game .empty-moves{padding:10px;font-size:9px}.view-game .move-pagination{height:20px;min-height:20px;font-size:7px}.view-game .move-pagination button{height:18px;width:22px;font-size:13px}.view-game .game-sidebar .panel-label{font-size:6px;margin-bottom:7px}.view-game .lesson-side h3{font-size:25px}.view-game .lesson-side .lesson-panel{padding:12px 15px}.view-game .lesson-badge{display:none}.view-game .lesson-copy{font-size:10px;line-height:1.6;margin:9px 0}.view-game .lesson-actions{margin-top:11px;gap:7px}.view-game .lesson-actions .btn{font-size:8px;min-height:29px;padding:6px 8px;gap:5px}.view-game .lesson-actions .btn svg{width:11px;height:11px}.view-game .lesson-error{font-size:9px;padding:4px 0;line-height:1.5}.view-game .lesson-success{font-size:10px;padding:8px;margin:8px 0}.view-game .lesson-panel .full-width{font-size:9px;min-height:31px;padding:8px}.modal-overlay{padding:13px}.modal{max-height:calc(100dvh - 26px);width:min(100%,530px);padding:18px 24px}.modal h2{font-size:29px;margin:5px 0 10px}.modal p{font-size:10px;line-height:1.6}.modal .eyebrow{font-size:7px}.modal .close-modal{height:24px;width:24px;top:8px;right:8px}.modal-actions{margin-top:13px}.modal-actions .btn{font-size:9px;padding:8px 11px;min-height:31px}.modal-emblem{height:30px;width:30px;margin-bottom:8px}.result-modal .modal-emblem{height:30px;width:30px;margin:0 auto 8px}.result-score{font-size:31px;padding:4px 0}.switch-line{padding:7px 0}.switch-line span strong{font-size:10px}.switch-line span small{font-size:8px}.modal .storage-note{font-size:8px;margin:11px 0}.round-track{margin:12px 0}.round-step{padding:8px 5px;font-size:8px}.round-step small{font-size:6px}.promotion-choices{margin-top:13px}.promotion-choices svg{height:51px}.modal .full-width{min-height:32px;font-size:10px;padding:8px}#toast{bottom:14px;font-size:9px;padding:8px 12px}}
@media(max-height:500px) and (min-width:521px) and (max-width:700px){#content.view-academy .paged-grid,#content.view-puzzles .paged-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.brand-sub{display:none}.sidebar nav{gap:12px}.sidebar .nav-item{font-size:8px}.sidebar{gap:10px}.lobby h1{font-size:51px}#content .cup,#content .cup.silver,#content .cup.gold{grid-template-columns:35px 1fr;gap:7px;padding:5px 8%}#content .cup-emblem{height:63px;width:35px}#content .cup h3{font-size:21px}.view-game .game-layout,.view-game .game-layout.is-lesson{gap:17px;grid-template-columns:minmax(0,1fr) minmax(200px,.9fr)}}#content /* Disable ornamental movement throughout the interface. */
.hero-piece,#content .lobby-art,#content .cup-emblem,#content .lesson-illustration{animation:none!important}#content{animation:none!important}
/* Solid walnut frame, maple and walnut squares, restrained move markers. */
:root{--light:#d3c9af;--dark:#715746}.main-shell:has(.view-game) .topbar{display:none}.view-game .board-area{width:min(100%,calc(100dvh - 254px))}.view-game .board-shell{--frame:22px;padding:var(--frame);border-radius:4px;background:repeating-linear-gradient(91deg,#ffffff02 0,#ffffff02 1px,transparent 1px,transparent 6px),linear-gradient(100deg,#4a382c,#735742 38%,#594130 70%,#47372b);border:1px solid #88725a;box-shadow:0 2px 0 #392b21,0 5px 0 #2b221c,0 18px 32px #0006,inset 0 0 0 2px #211b1540;position:relative}.view-game .board-shell:before{content:'';position:absolute;inset:5px;border:1px solid #c4a98633;border-radius:1px;pointer-events:none}.chessboard{position:relative;border:1px solid #30271e;box-shadow:0 0 0 1px #b39a7570,0 0 0 3px #241e1760;overflow:hidden}.square{background-color:var(--light);background-image:repeating-linear-gradient(87deg,#71644305 0,#71644305 1px,transparent 2px,transparent 7px),linear-gradient(105deg,#fffcf30b,transparent 65%);transition:filter .16s}.square.dark{background-color:var(--dark);background-image:repeating-linear-gradient(87deg,#3623170c 0,#3623170c 1px,transparent 2px,transparent 8px),linear-gradient(105deg,#c8a67612,transparent 60%)}.square:hover{filter:brightness(1.07)}.piece{width:89%;height:89%;filter:drop-shadow(1px 3px 1px #261c1859);transform:translateY(-1px)}.square.last:before{background:#eadca025;box-shadow:inset 0 0 0 1px #f4e9c85c}.square.selected:before{background:#eadca045;box-shadow:inset 0 0 0 2px #efe2be}.square.hinted:before{background:#e7d5a445;box-shadow:inset 0 0 0 2px #ead5a3}.square.checked:before{background:radial-gradient(ellipse at center,#ae3b3399,transparent 80%);box-shadow:none}.square.target:after{width:19%;height:19%;background:#45392a4d;border:1px solid #fff5d70f}.square.dark.target:after{background:#f5ead27a}.square.target.has-piece:after{width:86%;height:86%;background:none;border:3px solid #3b2a1f66}.square.dark.target.has-piece:after{border-color:#f8ebcba6;background:none}.board-coordinates{position:absolute;pointer-events:none;color:#d1bda0;font-family:Manrope,Arial,sans-serif;font-size:9px;font-weight:400;letter-spacing:0;line-height:1}.board-files{display:grid;grid-template-columns:repeat(8,1fr);left:var(--frame);right:var(--frame);bottom:6px;height:10px;text-align:center}.board-ranks{display:grid;grid-template-rows:repeat(8,1fr);top:var(--frame);bottom:var(--frame);left:6px;width:10px;align-items:center;text-align:center}.view-game .game-sidebar .opponent-copy,.view-game .game-sidebar .difficulty-bars{display:none}.view-game .game-sidebar .opponent-title{font-size:31px}.view-game .game-sidebar .turn-indicator{border:0;margin:6px 0 0;padding:0;color:#a9a79d;font-size:10px}.view-game .game-sidebar .panel-label svg{display:none}.view-game .game-sidebar .panel-label{font-size:8px;letter-spacing:1px;color:#8b8980}.view-game .game-sidebar .notation-panel{border:0;border-top:1px solid #45443c;border-radius:0;padding:18px 0!important}.view-game .game-sidebar:not(.lesson-side) .coach-box{display:none!important}.view-game .game-sidebar .opponent-panel{padding:0 0 15px}.view-game .game-actions .btn{border-color:#48483f;color:#c6c5b7}.view-game .game-actions .btn-ghost{border-color:transparent}.view-game .board-under{color:#a5a394}.view-game .board-status{color:#aaa797}.view-game .board-status i{background:#aaa488}.view-game .player-strip .avatar{background:none;outline:none}.player-strip.active .avatar{outline:none}.view-game .player-strip strong{font-weight:500;color:#d4d0c4}.view-game .clock{background:#2c2c26;border-color:transparent;color:#bcb9aa;font-size:14px;border-radius:3px}.view-game .player-strip.active .clock{background:#d8d4c3;color:#302d24;border-color:transparent}.move-animate{animation:quietPiece .15s ease-out}@keyframes quietPiece{from{opacity:.6}to{opacity:1}}
@media(max-width:800px){.view-game .board-area{width:min(100%,calc(100dvh - 245px))}.view-game .board-shell{--frame:19px}.board-coordinates{font-size:8px}.board-files{bottom:5px}.board-ranks{left:5px}}
@media(max-width:700px){.view-game .board-area{width:min(100%,calc(100dvh - 355px))}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 390px))}.view-game .game-sidebar .notation-panel{padding:9px 0!important}.view-game .board-shell{--frame:17px}.board-files{bottom:4px;font-size:7px}.board-ranks{left:4px;font-size:7px}.view-game .board-shell:before{inset:4px}.piece{width:91%;height:91%}}
@media(max-width:520px){.view-game .board-area{width:min(100%,calc(100dvh - 350px))}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 405px))}.view-game .board-shell{--frame:16px}.view-game .board-under{font-size:7px}.view-game .game-sidebar .notation-panel{border-top:1px solid #414138!important;padding:9px 0!important}.view-game .game-layout{gap:9px}}
@media(max-width:520px) and (max-height:650px){.view-game .board-area{width:min(100%,calc(100dvh - 333px))}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 378px))}.view-game .board-shell{--frame:14px}.view-game .board-shell:before{inset:3px}.board-coordinates{font-size:6px}.board-files{left:14px;right:14px;bottom:3px;height:8px}.board-ranks{top:14px;bottom:14px;left:3px;width:8px}.view-game .board-shell{box-shadow:0 2px 0 #392b21,0 4px 0 #2b221c,0 10px 21px #0005}}
@media(max-height:760px) and (min-width:701px){.view-game .board-area{width:min(100%,calc(100dvh - 228px))}}
@media(max-height:500px) and (min-width:521px){.view-game .board-area,.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 155px))}.view-game .board-shell{--frame:14px}.board-coordinates{font-size:6px}.board-files{bottom:3px;height:8px}.board-ranks{left:3px;width:8px}.view-game .board-shell:before{inset:3px}.view-game .game-sidebar .notation-panel{padding:8px 0!important}}
.sidebar{backdrop-filter:none;-webkit-backdrop-filter:none}.sidebar .brand{display:flex}.sidebar .brand>span:last-child{display:flex}.lobby{overflow:hidden}
@media(max-width:520px){.sidebar nav{top:auto;bottom:0}.lobby-art{right:-26px;width:83%;height:43%;top:35px;opacity:.5}.lobby-copy{padding-top:26px}.brand-sub{display:block}}
@media(max-width:520px) and (max-height:650px){.lobby-art{top:4px;right:-22px;width:85%;height:42%;opacity:.45}.lobby-copy{padding-top:16px}}
@media(max-width:520px) and (max-height:650px){#content.view-game .game-layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;align-content:start}#content.view-game .board-area{width:min(100%,calc(100dvh - 357px))}#content.view-game .game-sidebar{height:auto;max-height:none;flex-shrink:0}#content.view-game .notation-panel{padding:7px 0!important}#content.view-game .notation-panel>.panel-label{display:none}#content.view-game .notation-panel>.move-list{height:28px;min-height:0;grid-template-rows:repeat(2,14px)}#content.view-game .notation-panel .move-row{height:14px;min-height:0;font-size:8px;padding:0 4px;line-height:14px}#content.view-game .notation-panel .empty-moves{padding:0;font-size:8px;line-height:28px}#content.view-game .move-pagination{height:18px;min-height:18px}#content.view-game .game-layout.is-lesson .board-area,#content.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 378px))}}
#content.view-game .game-layout.is-lesson #top-player,#content.view-game .game-layout.is-lesson #bottom-player{display:none}
@media(max-height:500px) and (min-width:521px){#content.view-game .board-area,#content.view-game .game-layout.is-lesson .board-area,#content.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 182px))}}

@media (min-width:701px) and (max-height:760px) and (min-height:501px){#content.view-game .board-area{width:min(100%,calc(100dvh - 245px))}}
/* Championship rankings share the same quiet, paged interface as the game. */
.championship-tools{display:flex;align-items:center;gap:25px;flex-shrink:0}.championship-tools>.btn{font-size:11px;min-height:36px;gap:7px}.championship-tools>.btn svg{width:15px;height:15px}
.modal.leaderboard-modal{width:min(100%,460px);padding:27px 29px}.leaderboard-modal h2{margin:8px 0 3px}.leaderboard-modal .leaderboard-intro{font-size:10px;letter-spacing:.4px;margin:0 0 17px;color:#a8a197}.leaderboard-personal,.leaderboard-guest{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;border-top:1px solid #514c45;border-bottom:1px solid #514c45;padding:12px 0;font-size:11px}.leaderboard-personal>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c9c3b8}.leaderboard-personal>strong{white-space:nowrap;font-weight:500;color:#e3dccd;font-variant-numeric:tabular-nums}.leaderboard-personal small{font-size:9px;font-weight:400;color:#9d968b}.leaderboard-guest>span{max-width:210px;font-size:10px;line-height:1.6;color:#b6afa4}.leaderboard-guest .btn{white-space:nowrap;min-height:33px;padding:8px 11px;font-size:9px;flex-shrink:0}.leaderboard-sync{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:#b8b09f;margin-top:7px}.leaderboard-sync button{padding:3px 0;background:none;border:0;color:#d5cbb7;font:inherit;text-decoration:underline;text-underline-offset:3px}.leaderboard-modal .leaderboard-notice{min-height:0;font-size:9px;line-height:1.5;margin:7px 0 0;color:#bbb19f}.leaderboard-notice:empty{display:none}.leaderboard-list{list-style:none;padding:0;margin:15px 0 0;height:195px}.leaderboard-list li{height:39px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid #3e3933;font-size:12px}.leaderboard-rank{font-size:10px;color:#898278;font-variant-numeric:tabular-nums}.leaderboard-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:#cec7bb}.leaderboard-list strong{font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;color:#e3d9c7}.leaderboard-message{height:195px;margin-top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:#c9c1b4;font-size:12px;line-height:1.5}.leaderboard-message>span{font-size:11px;color:#a69d90}.leaderboard-message .btn{font-size:10px;min-height:32px;padding:8px 12px}.leaderboard-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.leaderboard-pager .btn{min-height:31px;font-size:10px;padding:7px 11px}.leaderboard-pager>span{font-size:9px;color:#928a7f;white-space:nowrap}.leaderboard-modal .leaderboard-rules{font-size:9px;color:#9c9385;line-height:1.7;text-align:center;margin:14px 0 0}.result-modal .cup-points-note{font-size:10px;color:#d8c7a8;margin:9px 0 0}
@media(max-width:520px){.championship-tools{gap:0}.championship-tools .completion{display:none}.championship-tools>.btn{font-size:9px;padding:8px 0 8px 8px;min-height:33px;gap:5px}.championship-tools>.btn svg{width:12px;height:12px}#content.view-tournaments .page-intro{gap:8px}.modal.leaderboard-modal{padding:23px 20px;width:min(100%,400px)}.leaderboard-modal h2{font-size:32px;margin:6px 0 3px}.leaderboard-modal .leaderboard-intro{margin-bottom:12px;font-size:9px}.leaderboard-personal,.leaderboard-guest{padding:10px 0;gap:10px}.leaderboard-guest>span{font-size:9px;line-height:1.5}.leaderboard-guest .btn{font-size:8px;padding:7px 9px;min-height:31px}.leaderboard-list,.leaderboard-message{height:170px;margin-top:10px}.leaderboard-list li{height:34px;gap:8px;grid-template-columns:22px minmax(0,1fr) auto;font-size:11px}.leaderboard-list strong{font-size:10px}.leaderboard-pager{margin-top:12px}.leaderboard-modal .leaderboard-rules{font-size:8px;margin-top:11px}.leaderboard-modal .leaderboard-notice{font-size:8px}.leaderboard-message{font-size:11px}.leaderboard-message>span{font-size:10px}}
@media(max-height:500px) and (min-width:521px){.modal.leaderboard-modal{padding:17px 25px;width:min(100%,610px);display:grid;grid-template-columns:1fr 1.1fr;column-gap:25px}.leaderboard-modal .eyebrow,.leaderboard-modal h2,.leaderboard-modal .leaderboard-intro,.leaderboard-modal #leaderboard-player-summary,.leaderboard-modal .leaderboard-notice,.leaderboard-modal .leaderboard-rules{grid-column:1}.leaderboard-modal .leaderboard-list,.leaderboard-modal .leaderboard-message{grid-column:2;grid-row:1/6;margin:0;height:175px}.leaderboard-list li{height:35px;font-size:11px}.leaderboard-modal .leaderboard-pager{grid-column:2;grid-row:6/8;margin-top:10px;align-self:start;gap:8px}.leaderboard-modal h2{font-size:31px}.leaderboard-modal .leaderboard-intro{margin-bottom:10px}.leaderboard-modal .leaderboard-rules{text-align:left;margin-top:10px;font-size:8px}.leaderboard-guest{display:block;padding:9px 0}.leaderboard-guest>span{display:block;font-size:9px}.leaderboard-guest .btn{margin-top:8px}.leaderboard-personal{font-size:10px}.leaderboard-modal .leaderboard-notice{font-size:8px}.leaderboard-pager .btn{font-size:9px;min-height:29px;padding:7px 8px}.championship-tools>.btn{font-size:9px;min-height:30px}}
@media(max-width:520px){#content.view-tournaments .page-intro h1{font-size:clamp(28px,7.8vw,39px)}#content.view-tournaments .page-intro>div:first-child{min-width:0}.championship-tools>.btn{font-size:8px;white-space:nowrap}}
.modal .cup-entry-note{font-size:9px;line-height:1.6;color:#b8ab96;margin:0 0 13px}
