.chess-app{--ink:#302c48;--muted:#726d82;--purple:#7053cb;--paper:#fcfaf5;background:var(--paper);min-height:100dvh;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}.chess-app *{box-sizing:border-box}.chess-app button,.chess-app select{font:inherit;color:inherit}.chess-app button{cursor:pointer;background:#fff;border:1px solid #ddd7e9;border-radius:15px;min-height:46px;padding:12px 18px;font-weight:700;transition:background .12s,box-shadow .12s}.chess-app button:hover:not(:disabled){background:#f1ecfc}:is(.chess-app button:focus-visible,.chess-app select:focus-visible,.chess-app a:focus-visible){outline-offset:3px;outline:3px solid #7053cb}.chess-app button:disabled{cursor:default;opacity:.5}.chess-app button[aria-pressed=true]:not(.chess-square){border-color:var(--purple);box-shadow:0 0 0 2px var(--purple)}.chess-app h1,.chess-app h2,.chess-app p{margin:0}.chess-app h1{letter-spacing:-1px;font-size:clamp(26px,4vw,38px);font-weight:800;line-height:1.16}.chess-app h1:focus{outline:none}.chess-app h2{letter-spacing:-.4px;font-size:22px}.chess-app p{line-height:1.55}.chess-app .chess-primary{background:var(--purple);color:#fff;border-color:var(--purple);padding:14px 22px;box-shadow:0 4px #513ca0}.chess-app .chess-primary:hover:not(:disabled){background:#6041ba}.chess-header{border-bottom:1px solid #ebe6df;align-items:center;gap:16px;max-width:1160px;margin:auto;padding:18px 28px;display:flex}.chess-header .chess-brand{letter-spacing:-.8px;background:0 0;border:0;align-items:center;gap:10px;padding:0;font-size:21px;display:flex}.chess-brand>span{background:#eee7fc;border-radius:13px;place-items:center;width:42px;height:42px;font-size:31px;display:grid}.chess-header-note{color:var(--muted);flex:1;font-size:13px}.chess-main{max-width:1100px;margin:auto;padding:28px}.chess-eyebrow{color:#7053cb;letter-spacing:1.5px;font-weight:800;font-size:11px!important}.chess-welcome{grid-template-columns:1.1fr 1fr;align-items:center;gap:40px;padding:42px 12px 56px;display:grid}.chess-welcome h1{letter-spacing:-2.8px;margin:18px 0;font-size:clamp(44px,5.6vw,66px);line-height:1.02}.chess-welcome h1 em{color:var(--purple);font-family:Georgia,serif;font-weight:500}.chess-welcome p:not(.chess-eyebrow){color:var(--muted);font-size:17px}.chess-welcome .chess-primary{align-items:center;gap:35px;margin:26px 0 14px;display:flex}.chess-small{color:var(--muted);line-height:1.5;font-size:12px!important}.chess-welcome-art{background:#eee8fc;border-radius:46% 48% 43% 47%;max-width:335px;margin:auto;padding:28px;position:relative;transform:rotate(-5deg)}.chess-art-grid{border:9px solid var(--ink);aspect-ratio:1;border-radius:23px;grid-template-columns:repeat(3,1fr);width:270px;display:grid;overflow:hidden;box-shadow:0 18px #302c4818}.chess-art-grid>span{background:#eee5d2;place-items:center;display:grid}.chess-art-grid>span:nth-child(2n){background:#b4b1cf}.chess-art-grid .chess-piece{filter:drop-shadow(0 6px 2px #302c4840);width:130%;height:130%}.chess-art-grid i{color:#b18514;font-size:38px;font-style:normal}.chess-art-sticker{background:#ffefba;border-radius:12px;padding:10px 15px;font-size:13px;font-weight:700;position:absolute;bottom:5px;right:-20px;transform:rotate(9deg);box-shadow:0 5px 20px #302c4812}.chess-destinations{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.chess-destinations>button{text-align:left;border-radius:23px;padding:22px}.chess-destinations p{color:var(--muted);margin:8px 0 18px;font-size:14px;font-weight:400}.chess-destinations button>span:last-child{color:var(--purple);font-size:13px}.chess-card-icon{background:#f0eafd;border-radius:13px;place-items:center;width:42px;height:42px;margin-bottom:14px;font-size:28px;display:grid}.chess-destinations>button:nth-child(2) .chess-card-icon{color:#a67b00;background:#fff0bc}.chess-destinations>button:nth-child(3) .chess-card-icon{color:#2b7765;background:#e1f1e9}.chess-continue{justify-content:space-between;gap:12px;width:100%;margin:22px 0;display:flex}.chess-continue span{color:var(--muted);font-size:13px;font-weight:400}.chess-learning-list{padding:35px 0}.chess-learning-list p{color:var(--muted);margin:8px 0 15px;font-size:14px}.chess-learning-list>div{flex-wrap:wrap;gap:8px;display:flex}.chess-learning-list button{min-height:44px;font-size:13px}.chess-back-site{color:var(--purple);margin-top:20px;font-size:14px;display:inline-block}.chess-screen-heading{text-align:center;max-width:760px;margin:0 auto 24px}.chess-screen-heading h1{margin:9px 0}.chess-instruction{font-size:17px}.chess-stage{grid-template-columns:minmax(0,520px) minmax(250px,360px);justify-content:center;align-items:start;gap:36px;display:grid}.chess-board-wrap{width:100%;max-width:520px;margin:0 auto}.chess-board{aspect-ratio:1;border:7px solid #39334e;border-radius:18px;grid-template-columns:repeat(8,1fr);display:grid;overflow:hidden;box-shadow:0 9px #39334e12}.chess-app .chess-square{aspect-ratio:1;isolation:isolate;touch-action:manipulation;border:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.chess-app .chess-square.chess-light{background:#f0e9da}.chess-app .chess-square.chess-dark{background:#aaa8c2}.chess-app .chess-square:hover:not(:disabled){box-shadow:inset 0 0 0 3px #7053cb80}.chess-app .chess-square:disabled{opacity:1}.chess-square:focus-visible{z-index:3;outline-offset:-4px!important}.chess-square.is-selected{box-shadow:inset 0 0 0 4px #7053cb!important}.chess-square.is-last:before{content:"";pointer-events:none;z-index:1;border:2px dashed #595366;border-radius:5px;position:absolute;inset:5px}.chess-square.is-attacker:after{content:"";z-index:2;pointer-events:none;border:3px dotted #926519;border-radius:8px;position:absolute;inset:3px}.chess-square.is-check{box-shadow:inset 0 0 0 5px #db9f2f!important}.chess-square.is-capture:after{content:"";pointer-events:none;z-index:3;border:4px solid #b54954;border-radius:50%;position:absolute;inset:3px}.chess-piece{pointer-events:none;width:86%;height:86%;max-height:100%;overflow:visible}.chess-piece-w{fill:#fffdf5;stroke:#332d4a;color:#332d4a;filter:drop-shadow(0 2px #332d4a25)}.chess-piece-b{fill:#3d355a;stroke:#f6ead8;color:#f6ead8;filter:drop-shadow(0 2px #332d4a30)}.chess-legal-dot{pointer-events:none;z-index:2;background:#277b68;border:2px solid #fff7;border-radius:50%;width:22%;min-width:9px;height:22%;min-height:9px;position:absolute}.chess-rank,.chess-file{color:#4c465b;z-index:2;pointer-events:none;font-size:9px;font-weight:700;line-height:1;position:absolute}.chess-rank{top:3px;left:3px}.chess-file{bottom:3px;right:4px}.chess-board-caption{text-align:center;color:var(--muted);font-size:11px;margin:13px 0 0!important}.chess-guide{flex-direction:column;gap:13px;padding-top:3px;display:flex}.chess-rule{background:#f0ebfa;border-radius:19px;padding:20px;font-size:17px}.chess-rule>span,.chess-tip>span{color:var(--purple);letter-spacing:1.1px;margin-bottom:8px;font-size:10px;font-weight:800;display:block}.chess-feedback{color:#635875;min-height:25px;font-size:14px}.chess-legend{color:#635d72;flex-wrap:wrap;gap:13px;margin-top:5px;font-size:10px;display:flex}.chess-legend span{align-items:center;gap:5px;display:flex}.chess-legend i{width:12px;height:12px;display:block}.legend-legal{background:#277b68;border-radius:50%}.legend-capture{border:2px solid #b54954;border-radius:50%}.legend-selected{border:2px solid var(--purple);border-radius:2px}.legend-attack{border:2px dotted #926519}.chess-app .chess-text-button{min-height:44px;color:var(--muted);background:0 0;border:0;padding:5px;font-weight:400;text-decoration:underline}.chess-actions{flex-wrap:wrap;gap:8px;display:flex}.chess-actions button{flex:1;padding:10px;font-size:13px}.chess-check-note{background:#fff0c9;border-radius:14px;padding:13px;font-size:14px}.chess-tip{background:#eaf4ee;border:1px solid #cbe1d4;border-radius:17px;padding:16px}.chess-tip>span{color:#346d5a}.chess-tip p{margin-bottom:10px;font-size:15px}.chess-tip small{color:#52645b;margin-top:10px;font-size:11px;display:block}.chess-details{color:var(--muted);border-top:1px solid #e5dfeb;padding-top:12px;font-size:12px}.chess-details summary{cursor:pointer;padding:6px 0;font-weight:700}.chess-details p{margin:8px 0}.chess-details ol{columns:2;max-height:160px;padding-left:24px;overflow:auto}.chess-palette>div{grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:10px;display:grid}.chess-palette p{grid-column:1/-1;font-size:12px;font-weight:700}.chess-app .chess-palette button{background:#d4cfe2;border-radius:10px;min-width:0;height:49px;min-height:44px;padding:2px}.chess-palette .chess-piece{width:100%;height:100%}.chess-turn-label{flex-direction:column;gap:6px;font-size:13px;font-weight:700;display:flex}.chess-app select{background:#fff;border:1px solid #ddd7e9;border-radius:12px;width:100%;max-width:100%;min-height:46px;padding:8px 12px}.chess-notice{background:#fff0c9;border-radius:14px;margin-bottom:20px;padding:14px;font-size:14px}.chess-footer{text-align:center;color:var(--muted);padding:26px 16px;font-size:11px}.chess-dialog{background:var(--paper);width:calc(100% - 32px);max-width:420px;color:var(--ink);border:1px solid #ded7ed;border-radius:24px;margin:auto;padding:25px;box-shadow:0 16px 80px #29233b40}.chess-dialog::backdrop{background:#29233b88}.chess-dialog h2{margin-bottom:12px}.chess-dialog>button{width:100%;margin-top:14px}.chess-promotions{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px;display:grid}.chess-app .chess-promotions button{text-transform:capitalize;min-width:0;padding:5px;font-size:12px}.chess-promotions .chess-piece{width:100%;height:65px;display:block}@media (max-width:700px){.chess-header{padding:12px 18px}.chess-header-note{display:none}.chess-header .chess-brand{flex:1;font-size:19px}.chess-header>button:last-child:not(.chess-brand){padding:8px 14px;font-size:13px}.chess-main{padding:20px 16px}.chess-welcome{padding:14px 4px 28px;display:block}.chess-welcome h1{margin:13px 0 16px;font-size:48px}.chess-welcome p:not(.chess-eyebrow){font-size:15px}.chess-welcome-art{display:none}.chess-welcome .chess-primary{justify-content:space-between;width:100%;margin-top:22px}.chess-destinations{grid-template-columns:1fr;gap:11px}.chess-destinations>button{min-height:116px;padding:17px 18px 17px 76px;position:relative}.chess-destinations h2{font-size:20px}.chess-destinations p{margin:3px 0 8px;font-size:13px}.chess-card-icon{position:absolute;top:20px;left:18px}.chess-continue{text-align:left;display:block}.chess-continue span{margin-top:6px;display:block}.chess-screen-heading{margin-bottom:16px}.chess-screen-heading h1{font-size:27px}.chess-instruction{font-size:16px}.chess-stage{flex-direction:column;gap:15px;display:flex}.chess-guide{gap:11px;width:100%;max-width:520px;margin:auto}.chess-board{border-width:5px;border-radius:14px}.chess-board-caption{margin-top:10px!important}.chess-rule{padding:14px 17px;font-size:15px}.chess-rule>span{margin-bottom:5px}.chess-legend{justify-content:center}.chess-guide>.chess-small{text-align:center}.chess-feedback{font-size:13px}.chess-footer{padding:15px}.chess-learning-list{padding:25px 0}}@media (min-width:701px) and (max-height:740px){.chess-main{padding-top:15px}.chess-screen-heading{margin-bottom:14px}.chess-stage{grid-template-columns:minmax(0,450px) minmax(250px,330px);gap:25px}}@media (orientation:landscape) and (max-height:480px){.chess-header{padding:7px 20px}.chess-main{padding:12px 20px}.chess-screen-heading{text-align:left;max-width:760px;margin-bottom:12px}.chess-screen-heading h1{font-size:24px}.chess-screen-heading p{font-size:13px}.chess-stage{grid-template-columns:minmax(240px,310px) minmax(240px,350px);gap:24px;display:grid}.chess-board-caption{font-size:10px}.chess-rule{padding:12px;font-size:14px}.chess-welcome{padding:10px;display:block}.chess-welcome-art{display:none}}@media (prefers-reduced-motion:reduce){.chess-app *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media (max-width:700px){.chess-board{border-width:3px}}@media (orientation:landscape) and (max-height:480px){.chess-stage{grid-template-columns:minmax(352px,366px) minmax(240px,350px)}}@media (orientation:landscape) and (max-height:480px) and (max-width:700px){.chess-stage{flex-direction:column;display:flex}}
