*{box-sizing:border-box}body{margin:0;color:#302e4c;background:radial-gradient(ellipse at 90% 5%,#e8f7ef90,transparent 35%),radial-gradient(ellipse at 0 60%,#eee6ff88,transparent 40%),#f7f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,.moves-wrap:focus-visible{outline:3px solid #8064cf;outline-offset:4px}button{border:1px solid #dedbe9;background:#fff;border-radius:12px;padding:12px 16px;color:#4f466b;font-weight:750}button:hover:not(:disabled){background:#f5f0ff}.site-header{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:26px 28px;gap:20px}.brand{display:flex;align-items:center;font-size:22px;letter-spacing:-1px;font-weight:850}.brand>span:not(.brand-mark){color:#7a59bb}.brand-mark{display:grid;place-items:center;margin-right:9px;background:#8061c8;width:32px;height:34px;border-radius:10px 10px 10px 3px;color:#fff;font-size:27px;font-style:italic}.brand small{margin-left:16px;padding-left:16px;border-left:1px solid #d8d4e5;letter-spacing:1.8px;color:#7d7593;font-size:9px}.site-header nav{display:flex;gap:24px;color:#686078;font-size:12px;font-weight:650}.site-header nav a:hover,footer a:hover{text-decoration:underline}main{max-width:1120px;margin:22px auto 0;padding:0 28px}.intro{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:32px}.eyebrow{font-size:9px;font-weight:850;letter-spacing:1.7px;color:#796295;margin:0 0 14px;line-height:1.7}.eyebrow>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8e70c6;margin-right:5px}h1{font-size:clamp(28px,3.4vw,43px);line-height:1.15;letter-spacing:-1.8px;margin:0 0 14px;font-weight:800}h1 em{font-style:normal;color:#8260b5}.intro>div>p:last-child{font-size:13px;color:#777083;margin:0;line-height:1.7}.mobile-break{display:none}.challenge-badge{display:flex;align-items:center;gap:13px;flex-shrink:0;border:1px solid #e0d9eb;border-radius:16px;padding:16px;background:#ffffffa6;font-size:9px;font-weight:850;letter-spacing:1px}.challenge-badge>span{font-size:32px;color:#8b6abc}.challenge-badge small{display:block;margin-top:6px;letter-spacing:0;font-size:10px;font-weight:600;color:#797183}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:32px;align-items:start}.arena{min-width:0;padding:18px;background:#ffffffb3;border:1px solid #e6e1ef;border-radius:24px;box-shadow:0 12px 45px #4c3c7010}.player-bar{display:flex;align-items:center;gap:12px;padding:0 5px 16px;min-width:0}.player-bar#humanBar{padding:16px 5px 0}.avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;font-size:26px;flex-shrink:0}.engine-avatar{background:#eee7fa;color:#705294}.human-avatar{background:#e1f2eb;color:#427b68}.player-copy{min-width:0}.player-copy strong{font-size:13px;font-weight:800;display:flex;align-items:center;gap:8px}.player-copy small{font-size:10px;color:#81798e;display:block;margin-top:5px}.tiny-badge{font-size:7px;letter-spacing:.5px;background:#f0e7fc;color:#7a569b;border:1px solid #dfd0ee;border-radius:5px;padding:3px 5px}.clock{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.8px;margin-left:auto;padding:9px 13px;background:#f2f0f7;color:#686076;border:1px solid #e8e3ee;border-radius:12px;line-height:1}.player-bar.active .clock{color:#365f52;background:#e6f3ed;border-color:#a8cebc}.clock.low{color:#b13e50!important;background:#ffe9ed!important;border-color:#edb6bf!important}.you-dot{width:6px;height:6px;background:#80ae96;border-radius:50%}.board-frame{padding:6px;background:#dcd5ec;border-radius:11px;box-shadow:0 4px 14px #51446e16}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;overflow:hidden;border-radius:6px;touch-action:manipulation}.square{border:0;border-radius:0;padding:0;aspect-ratio:1;min-width:0;position:relative;display:grid;place-items:center;background:#f5f0e8;color:#82768f}.square.dark{background:#aea0c3;color:#4e4264}.square:hover:not(:disabled){background:#e7dbee}.square.dark:hover:not(:disabled){background:#9e8db7}.square.last{background:#dedcc6}.square.dark.last{background:#b1b397}.square.selected,.square.dark.selected{background:#b6d3c2;box-shadow:inset 0 0 0 3px #527b65}.square.legal:after{content:"";position:absolute;width:22%;height:22%;border-radius:50%;background:#4c605969;pointer-events:none}.square.capture:after{width:85%;height:85%;border:4px solid #516e62a6;background:transparent}.square.check{box-shadow:inset 0 0 0 3px #cc6575;background:#f3c0c7}.square:focus-visible{outline:3px solid #563186;outline-offset:-3px;z-index:1}.square:disabled{opacity:1}.piece{width:88%;height:88%;pointer-events:none;filter:drop-shadow(0 2px 1px #382b5426)}.piece.white{fill:#fffdf5;stroke:#655777;color:#655777}.piece.black{fill:#473653;stroke:#2d2237;color:#eee4f5}.coord{position:absolute;font-size:9px;font-weight:800;line-height:1;pointer-events:none}.coord.rank{left:4px;top:4px}.coord.file{right:4px;bottom:3px}.board-tip{text-align:center;color:#82778d;font-size:10px;line-height:1.6;margin:14px 0 0;min-height:16px}.sidebar{display:grid;gap:17px}.control-card,.moves-card{background:#ffffffd6;border:1px solid #e6e0ed;border-radius:20px;padding:23px}.control-card{background:radial-gradient(ellipse at 100% 0,#eee6ff91,transparent 75%),#fff;box-shadow:0 8px 26px #63507c08}.control-card h2{font-size:22px;letter-spacing:-.6px;line-height:1.25;margin:0 0 10px;font-weight:800}.control-card>p:not(.eyebrow){font-size:12px;color:#7d7189;line-height:1.7;margin:0 0 20px}fieldset{padding:0;border:0;margin:0}legend{font-size:11px;font-weight:750;margin-bottom:10px}.side-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px}.side-picker label{cursor:pointer;position:relative}.side-picker input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.side-picker span{display:block;text-align:center;padding:11px 8px;border:1px solid #e5dfed;border-radius:12px;background:#fff;font-size:12px;font-weight:750}.side-picker small{display:block;margin-top:3px;font-size:9px;font-weight:600;color:#887b95}.side-picker input:checked+span{background:#eee7fa;border-color:#9e83c8;color:#694792}.side-picker input:focus-visible+span{outline:3px solid #8064cf;outline-offset:3px}.match-facts{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#8a7c96;margin:17px 0 22px}.primary{display:flex;align-items:center;justify-content:center;gap:15px;width:100%;background:linear-gradient(120deg,#7855b4,#9672cc);color:#fff;border-color:#8060b7;box-shadow:0 7px 15px #7b59b926;min-height:46px;font-size:12px}.primary:hover:not(:disabled){background:#7956ae}.primary span{font-size:19px}.control-card .load-note{font-size:9px!important;text-align:center;margin:12px 0 0!important}.playing-actions{display:flex;gap:9px;margin-top:12px}.playing-actions button{flex:1;font-size:11px;padding:11px}.card-heading{display:flex;align-items:center;justify-content:space-between}.card-heading h2{font-size:13px;margin:0;font-weight:800}.card-heading>span{font-size:9px;color:#91879b}.moves-wrap{height:156px;overflow:auto;margin-top:16px;border-radius:10px;background:#f7f5fa;overscroll-behavior:contain}.moves-wrap>p{text-align:center;padding:25px 10px;color:#9b90a6;font-size:11px;line-height:1.8}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;font-variant-numeric:tabular-nums}th{font-size:9px;color:#92849f;padding:9px 12px;position:sticky;top:0;background:#f3eff7}td{padding:8px 12px;border-top:1px solid #ece6f2}td:first-child{color:#a196ab;font-size:10px;width:35px}tr:last-child td{background:#eee7f5;color:#654a7e}.text-button{padding:10px 0 0;border:0;background:transparent;font-size:10px;box-shadow:none;color:#8a739d}.text-button:hover:not(:disabled){background:transparent;color:#614578}.rules{padding:0 5px;color:#80738c;font-size:11px;line-height:1.75}.rules summary{cursor:pointer;list-style:none;font-size:11px;font-weight:650;display:flex;justify-content:space-between;gap:10px}.rules summary::-webkit-details-marker{display:none}.rules summary span{font-size:15px}.rules p{margin:12px 0}.bottom-note{display:flex;align-items:center;gap:14px;padding:28px 5px;margin-top:8px}.bottom-note>span{font-size:26px;color:#aa90bd}.bottom-note p{font-size:11px;font-weight:700;margin:0;line-height:1.8}.bottom-note small{display:block;font-size:9px;font-weight:400;color:#95889e}.bottom-note a{margin-left:auto;font-size:10px;font-weight:650;color:#88689e}footer{max-width:1120px;margin:0 auto;padding:22px 28px;border-top:1px solid #e7e1ed;display:flex;justify-content:space-between;gap:16px;font-size:9px;color:#94879e}dialog{border:1px solid #e4d8ef;border-radius:22px;background:#fcfaff;padding:28px;color:#3a2d4c;width:min(430px,calc(100% - 32px));box-shadow:0 20px 80px #31204730}dialog::backdrop{background:#34254855;backdrop-filter:blur(5px)}dialog h2{font-size:23px;margin:0 0 10px;letter-spacing:-.5px}dialog p{font-size:12px;line-height:1.7;color:#7f6a90}.promotion-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.promotion-options button{padding:7px 3px;font-size:9px}.promotion-options svg{height:50px;width:100%;display:block;margin-bottom:5px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions button{flex:1;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.noscript{padding:30px;background:#fff0d9;text-align:center}
@media(max-width:900px){.game-layout{gap:20px;grid-template-columns:minmax(0,1fr) 290px}.control-card,.moves-card{padding:19px}.arena{padding:12px}.challenge-badge{display:none}.clock{font-size:21px;padding:9px}.player-bar{gap:9px}.tiny-badge{display:none}.player-copy strong{font-size:12px}.avatar{width:33px;height:33px}.intro{margin-bottom:25px}.intro h1{font-size:36px}}
@media(max-width:720px){.site-header{padding:20px}.brand small{display:none}.site-header nav{font-size:10px;gap:14px}.brand{font-size:19px}.brand-mark{width:27px;height:29px;font-size:24px}main{padding:0 18px;margin-top:15px;max-width:560px}.intro h1{font-size:33px;letter-spacing:-1.4px}.intro .eyebrow{font-size:8px;letter-spacing:1.2px}.intro>div>p:last-child{font-size:12px}.game-layout{grid-template-columns:1fr;gap:20px}.arena{padding:13px;border-radius:19px}.board-frame{padding:4px}.player-copy strong{font-size:13px}.player-copy small{font-size:10px}.clock{font-size:23px;padding:9px 13px}.tiny-badge{display:inline-block}.sidebar{gap:17px}.control-card,.moves-card{padding:22px}.control-card h2{font-size:23px}.control-card>p:not(.eyebrow){font-size:13px}.side-picker span{font-size:13px}.side-picker small{font-size:11px}.match-facts{font-size:11px}.primary{font-size:13px;min-height:48px}.control-card .load-note{font-size:10px!important}.playing-actions button{font-size:13px;min-height:44px}.rules summary,.rules{font-size:12px}.bottom-note{flex-wrap:wrap;gap:11px;padding:23px 3px}.bottom-note a{margin-left:36px;font-size:11px}.bottom-note p{font-size:11px}.bottom-note small{font-size:10px}footer{padding:22px 20px;flex-wrap:wrap;font-size:10px;max-width:560px}.text-button{font-size:11px;padding-top:13px}.coord{font-size:8px}.board-tip{font-size:10px}.moves-wrap{height:140px}}
@media(max-width:360px){main{padding:0 12px}.site-header{padding:18px 12px}.site-header nav a:first-child{display:none}.intro h1{font-size:30px}.mobile-break{display:block}.arena{padding:10px}.clock{font-size:21px;padding:8px}.player-copy strong{font-size:12px}.player-copy small{font-size:9px}.tiny-badge{font-size:6px}.player-bar{gap:7px}.avatar{width:30px;height:30px}.coord{font-size:7px;left:2px!important}.match-facts{font-size:10px}.control-card,.moves-card{padding:19px}.square.capture:after{border-width:3px}}

/* The Royal Arena: polished materials, sculpted pieces and bounded motion. */
:root{--accent:#8056c6;--accent-ink:#634293;--tile-top:#b5a0d0;--tile-bottom:#8f77b3;--tile-light:#fbf4e7;--tile-light-end:#eae0cf;--piece-glow:#aa86da;--frame-top:#fff9e9;--frame-bottom:#dfcfae}
body{background:#f8f6fc;color:#302747;isolation:isolate}body[data-theme="lagoon"]{--accent:#329b92;--accent-ink:#26736e;--tile-top:#8dbeb6;--tile-bottom:#5b938f;--tile-light:#f1faf3;--tile-light-end:#dcebe4;--piece-glow:#8bd6c6}body[data-theme="rose"]{--accent:#bb7191;--accent-ink:#944d6b;--tile-top:#d4a2b5;--tile-bottom:#b27c98;--tile-light:#fff2e6;--tile-light-end:#f1dccf;--piece-glow:#e8b0c9}
.ambient{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.ambient i{position:absolute;width:560px;height:560px;border-radius:50%;filter:blur(70px);opacity:.4;background:radial-gradient(circle,#dfcdfb,transparent 68%);left:-220px;top:200px;animation:ambient-drift 12s ease-in-out infinite alternate}.ambient i:nth-child(2){left:auto;right:-160px;top:-210px;background:radial-gradient(circle,#c4e8df,transparent 68%);animation-delay:-5s}.ambient i:nth-child(3){width:400px;height:400px;left:40%;top:70%;background:radial-gradient(circle,#f4dfbc,transparent 68%);animation-delay:-8s}
.site-header{max-width:1260px;padding:24px 30px;border-bottom:1px solid #eae3f3}.brand{font-size:23px}.brand-mark{background:linear-gradient(135deg,#bc8de7,#7653bc);box-shadow:inset 0 1px 1px #ffffffaa,0 5px 12px #7d55b72b}.brand small{color:#857498;letter-spacing:2px}.site-header nav{margin-left:auto;font-size:11px;gap:22px}.wallet-badge{display:flex;align-items:center;gap:8px;min-width:112px;padding:5px 16px 5px 7px;border:1px solid #e9d49e;background:linear-gradient(125deg,#fffcf3,#f9edcd);border-radius:16px;box-shadow:inset 0 1px 0 #fff,0 5px 15px #8e683c0b}.wallet-badge>span{width:43px;height:43px;display:block}.wallet-badge small{display:block;font-size:7px;letter-spacing:1.3px;font-weight:850;color:#987336}.wallet-badge strong{font-size:20px;color:#8a622c;font-weight:850;font-variant-numeric:tabular-nums}.coin-art{display:block;width:100%;height:100%;filter:drop-shadow(0 4px 4px #966b2126)}
main{max-width:1180px;margin-top:35px}.intro{margin-bottom:28px;gap:30px}.intro h1{font-size:clamp(35px,4.2vw,55px);line-height:1.06;letter-spacing:-2.5px;font-weight:850;margin-bottom:15px}.intro h1 em{background:linear-gradient(95deg,#7753b9,#b188c7 60%,#b584ad);color:transparent;background-clip:text}.intro>div>p:last-child{font-size:13px;color:#887990}.intro .eyebrow{font-size:9px;letter-spacing:2px;color:#8b709f;margin-bottom:15px}.hero-reward{display:flex;align-items:center;gap:10px;max-width:350px;padding:15px 23px 15px 10px;background:linear-gradient(125deg,#ffffffa6,#fff6dfaa);border:1px solid #eee1c6;border-radius:23px;box-shadow:inset 0 1px 1px #fff,0 10px 25px #977a4a09;transform:rotate(2deg)}.hero-coin{display:block;width:85px;height:85px;flex-shrink:0;animation:coin-float 5s ease-in-out infinite}.hero-reward small{color:#a5834e;font-size:8px;font-weight:850;letter-spacing:1.5px;display:block;margin-bottom:9px}.hero-reward strong{font-size:18px;letter-spacing:-.5px;white-space:nowrap;color:#76502d}.hero-reward b{color:#ac7c30}.hero-reward p{font-size:9px;color:#a08a6c;line-height:1.6;margin:8px 0 0}
.arena-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 16px}.collection-label{display:flex;align-items:center;gap:9px;font-size:8px;font-weight:850;letter-spacing:1.5px;color:#9b89ad}.collection-label>span{font-size:20px;color:#bfa368}.appearance-controls{display:flex;align-items:center;gap:12px}.theme-picker{display:flex;gap:5px;padding:4px;background:#fff9;border:1px solid #e9e1ef;border-radius:13px}.theme-picker button{border:1px solid transparent;background:none;padding:6px 8px;border-radius:9px;display:flex;align-items:center;gap:5px;font-size:9px;color:#8a779a;min-height:30px}.theme-picker i{width:12px;height:12px;border-radius:50%;background:linear-gradient(120deg,#e7dbf3 40%,#9678b8 41%);box-shadow:inset 0 1px 1px #fff8}.theme-picker .theme-lagoon i{background:linear-gradient(120deg,#def0e9 40%,#72a79f 41%)}.theme-picker .theme-rose i{background:linear-gradient(120deg,#fbe5d7 40%,#c48ea8 41%)}.theme-picker button[aria-pressed="true"]{border-color:#ddcfeb;background:#f1e9f8;color:#765493;box-shadow:0 2px 5px #66478b0a}#motionToggle{border:1px solid #e6dbef;background:#ffffff94;font-size:10px;padding:9px 11px;white-space:nowrap;color:#8a719e}.game-layout{grid-template-columns:minmax(0,1fr) 330px;gap:26px}
.arena{padding:20px;border-radius:29px;background:linear-gradient(145deg,#ffffffdd,#f7f2fcdb);border:1px solid #fff;box-shadow:0 0 0 1px #e4daee,0 18px 48px #765b9520,inset 0 2px 0 #fff;position:relative;animation:arena-enter .7s cubic-bezier(.2,.8,.3,1) both}.arena:after{content:"";position:absolute;inset:auto 9% -9px;height:15px;border-radius:50%;background:#72518e1a;filter:blur(10px);z-index:-1}.player-bar{padding:0 4px 17px;gap:12px}.player-bar#humanBar{padding:20px 4px 0}.avatar{width:46px;height:48px;border:1px solid #d5c5e7;border-radius:15px;background:linear-gradient(145deg,#fbf9ff,#e2d4f0);box-shadow:inset 0 2px 2px #fff,0 3px 7px #78529113}.avatar .piece{width:36px;height:43px;filter:drop-shadow(0 2px 2px #5b3e6a26)}.human-avatar{background:linear-gradient(145deg,#fffdf2,#eee0bd);border-color:#e7d8b6}.player-copy strong{font-size:13px;color:#423151;gap:7px}.player-copy small{font-size:10px;color:#9a87aa}.tiny-badge{background:linear-gradient(110deg,#eee3fb,#f8eeff);border:1px solid #d7c2eb;color:#9875b3;font-size:6px;letter-spacing:.7px}.clock{font-size:27px;border:1px solid #e4daed;border-radius:13px;padding:10px 14px;background:linear-gradient(135deg,#fcfaff,#ede4f5);box-shadow:inset 0 2px 1px #fff,0 4px 10px #4d2e7310;color:#715888;font-weight:850;text-shadow:0 1px #fff}.player-bar.active .clock{background:linear-gradient(130deg,#fff8e2,#f4e1b0);color:#8b642b;border-color:#dac18c;box-shadow:inset 0 2px 1px #fff9,0 0 20px #e6c16925}.player-bar.active .avatar{box-shadow:0 0 0 3px #e9d9b22e,0 0 0 5px #e9d9b217}.clock.low{animation:clock-warning 1.4s ease-in-out 4}
.board-frame{position:relative;padding:23px 24px 27px;border-radius:19px;background:linear-gradient(135deg,#fffdf6 0,#eadcc0 20%,#fffaeb 45%,#d7c39e 75%,#f7edda 100%);border:1px solid #d2bd98;box-shadow:inset 0 2px 2px #fff,0 4px 0 #c8b796,0 7px 0 #a5978a,0 12px 17px #503b4c25;isolation:isolate}.board-frame:before{content:"";position:absolute;inset:8px;border:1px solid #b99b636b;border-radius:12px;pointer-events:none;box-shadow:inset 0 1px #fff9}.board-stage{position:relative;box-shadow:0 0 0 2px #b8996740,0 0 0 5px #fff4d16b,0 3px 7px #49305c2e;border-radius:5px}.board{border-radius:5px;overflow:hidden;background:#decdf0;position:relative;box-shadow:inset 0 0 0 1px #fff4;isolation:isolate}.square{background:linear-gradient(140deg,var(--tile-light),var(--tile-light-end));box-shadow:inset 1px 1px 0 #ffffff70;overflow:visible;transition:background .25s,box-shadow .2s}.square:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(125deg,#ffffff00 0,#ffffff0d 1px,#ffffff00 2px,#ffffff00 12px);opacity:.6}.square.dark{background:linear-gradient(135deg,var(--tile-top),var(--tile-bottom));box-shadow:inset 1px 1px 0 #ffffff20}.square:hover:not(:disabled){background:linear-gradient(140deg,#fff6df,#f6e9bd)}.square.dark:hover:not(:disabled){background:linear-gradient(135deg,var(--tile-top),var(--accent))}.square.last{background:linear-gradient(140deg,#f8e9b7,#ead79b);box-shadow:inset 0 0 0 2px #ddbc6940}.square.dark.last{background:linear-gradient(140deg,#c6af8e,#ac926f)}.square.selected,.square.dark.selected{background:radial-gradient(circle at 50% 70%,#f1d89c,#d4b574);box-shadow:inset 0 0 0 2px #fff2c4,inset 0 0 20px #fff1ad8c}.square.selected .piece{transform:translateY(-7%) scale(1.06);filter:drop-shadow(0 8px 3px #4d2f6630) drop-shadow(0 0 7px #ffdc80aa)}.square.legal:after{background:#fff5d7b0;border:1px solid #e9cb85;box-shadow:0 0 0 5px #fff1c523,0 2px 4px #7453302b;width:17%;height:17%;animation:legal-arrive .25s ease-out}.square.capture:after{width:88%;height:88%;border:3px solid #f9dda0;background:transparent;box-shadow:0 0 12px #ffdc7880,inset 0 0 15px #ffedb544}.square.check{background:linear-gradient(135deg,#f7becb,#cf7d9e);box-shadow:inset 0 0 0 2px #ffdeeb;animation:check-glow .9s ease-in-out 3}.square:focus-visible{outline:3px solid #795aa5;outline-offset:-3px}.piece{width:87%;height:94%;z-index:1;filter:drop-shadow(1px 5px 2px #48324d2e);transition:transform .22s,filter .22s;overflow:visible}.piece.white,.piece.black{stroke:none;fill:none}.square .in-transit{visibility:hidden}.coord{display:none}.frame-corner{width:9px;height:9px;position:absolute;border:1px solid #b99554;background:linear-gradient(135deg,#fff5cf,#cda65f);border-radius:50%;box-shadow:inset 0 1px 1px #fff;z-index:2}.top-left{left:7px;top:7px}.top-right{right:7px;top:7px}.bottom-left{left:7px;bottom:7px}.bottom-right{right:7px;bottom:7px}.rank-rail{position:absolute;left:0;top:23px;bottom:27px;width:24px;display:grid;grid-template-rows:repeat(8,1fr);align-items:center;text-align:center;font-size:9px;color:#9c855f;font-weight:800}.file-rail{position:absolute;left:24px;right:24px;bottom:0;height:27px;display:grid;grid-template-columns:repeat(8,1fr);align-items:center;text-align:center;font-size:9px;color:#9c855f;font-weight:800}.frame-signature{position:absolute;right:4px;top:45%;writing-mode:vertical-rl;font-size:6px;font-weight:800;letter-spacing:2px;color:#a08a67}.board-effects{position:absolute;inset:0;pointer-events:none;z-index:7;overflow:hidden;border-radius:5px}.moving-piece,.captured-ghost{position:absolute;display:grid;place-items:center;pointer-events:none}.moving-piece .piece{filter:drop-shadow(2px 10px 4px #422d4740)}.capture-ring{position:absolute;border:3px solid #fbe4a5;border-radius:50%;box-shadow:0 0 14px #ffe2a7}.board-alert{position:absolute;left:50%;top:4px;transform:translateX(-50%);z-index:8;padding:4px 12px;pointer-events:none;border-radius:0 0 9px 9px;background:#af5274ed;border:1px solid #f8bdd2;color:#fff4f8;letter-spacing:2px;font-size:8px;font-weight:850;box-shadow:0 4px 15px #8b335930}.capture-trays{display:flex;justify-content:space-between;gap:12px;margin:15px 4px 0;padding-top:12px;border-top:1px solid #e9e0f1}.capture-trays>div{flex:1;min-width:0}.capture-trays>div:last-child{text-align:right}.capture-trays small{font-size:6px;letter-spacing:1.3px;font-weight:750;color:#ac9bb8;display:block;margin-bottom:4px}.capture-trays span{display:flex;flex-wrap:wrap;min-height:23px;gap:0;color:#b9a9c4;font-size:12px;align-items:center}.capture-trays>div:last-child span{justify-content:flex-end}.capture-trays .piece{width:17px;height:24px;filter:drop-shadow(0 1px 1px #63446c22);margin-left:-2px}.board-tip{margin:12px 0 1px;font-size:9px;color:#a18daf;min-height:15px}
.sidebar{gap:16px}.control-card,.moves-card{border:1px solid #e8ddf2;border-radius:23px;background:linear-gradient(140deg,#ffffffed,#faf6feef);box-shadow:inset 0 2px 0 #fff,0 10px 26px #75508b0a;padding:23px}.control-card{background:radial-gradient(ellipse at 95% 0,#e9dbfbaa,transparent 65%),linear-gradient(130deg,#fff,#fcf9ff)}.opponent-label{display:flex;gap:6px;align-items:center;font-size:8px;font-weight:850;letter-spacing:1px;color:#9c7bb2;margin-bottom:20px}.opponent-label b{margin-left:auto;font-size:6px;padding:4px 5px;background:#eadff9;border-radius:5px;letter-spacing:.5px;color:#8b69a9}.status-orb{width:6px;height:6px;background:#a78bc7;border-radius:50%;box-shadow:0 0 0 3px #e6d6f74d}.control-card h2{font-size:24px;letter-spacing:-.8px;color:#483055;line-height:1.2}.control-card>p:not(.eyebrow){color:#a088b0;font-size:12px}.side-picker span{background:linear-gradient(145deg,#fff,#f8f3fd);border-color:#e6d9ef;border-radius:12px;padding:12px 6px;color:#8a6ba0}.side-picker input:checked+span{background:linear-gradient(140deg,#ede0fc,#f9f1ff);border-color:#bd9bdc;box-shadow:inset 0 1px 1px #fff,0 4px 9px #79529b0d;color:#795197}.match-facts{font-size:8px;color:#ac96b9}.primary{position:relative;overflow:hidden;border-radius:13px;min-height:48px;background:linear-gradient(110deg,#7852b5,#a478cf);box-shadow:inset 0 1px 1px #fff5,0 5px 0 #684097,0 10px 18px #7852a62e;border-color:#8b61b9;transition:transform .2s,box-shadow .2s;font-weight:800}.primary:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,#fff5 49%,transparent 63%);transform:translateX(-120%);animation:button-shine 6s ease-in-out 3;pointer-events:none}.primary:hover:not(:disabled){background:linear-gradient(110deg,#8059be,#ad81d7);transform:translateY(-2px);box-shadow:inset 0 1px 1px #fff5,0 7px 0 #684097,0 14px 20px #7852a62e}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #684097}.control-card .load-note{margin-top:17px!important;font-size:8px!important}.playing-actions{margin-top:15px}.playing-actions button{font-size:10px;color:#a083af;border-color:#eaddf1;background:#fff9}.reward-card{padding:19px 18px;border:1px solid #ead4a9;border-radius:21px;background:radial-gradient(ellipse at 15% 0,#fffdf4,transparent 80%),linear-gradient(115deg,#fff4d8,#f7ebd2);box-shadow:inset 0 2px 1px #fff,0 7px 17px #b38a3e0c}.reward-top{display:flex;align-items:center;gap:8px}.reward-top>span:first-child{width:49px;height:49px;flex-shrink:0}.reward-top .eyebrow{font-size:6px;letter-spacing:1.1px;color:#ae8e55;margin:0 0 6px}.reward-top strong{font-size:25px;color:#9d7131;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.reward-top strong small{font-size:10px;letter-spacing:0;font-weight:650;color:#ad905e}.reward-pill{margin-left:auto;font-size:7px;white-space:nowrap;background:#fff7e6;border:1px solid #ead5aa;color:#b28a48;padding:5px 6px;border-radius:7px;font-weight:850}.reward-card>p{font-size:10px;color:#a4895c;line-height:1.7;margin:12px 0 0}.reward-card .reward-disclosure{font-size:9px;color:#a99574;padding-top:10px;border-top:1px solid #e7d8b9;margin-top:10px}.reward-card.earned{animation:reward-glow 1.3s ease-out 2}.moves-card{padding:20px}.card-heading h2{color:#80628f;font-size:12px}.card-heading>span{font-size:8px;color:#af9cbd}.moves-wrap{height:125px;background:linear-gradient(140deg,#f6effb,#f9f5fc);border:1px solid #eee5f5;margin-top:13px}.moves-wrap>p{color:#b3a0c2;font-size:10px;padding:17px 10px}.text-button{color:#b096c0;font-size:9px}.rules{color:#9b80ad}.rules summary{font-size:10px}.rules summary span{color:#b598c9}.rules div{padding:4px 10px;border-left:2px solid #e5d6ef}.bottom-note{margin-top:14px}.bottom-note p{font-size:11px;color:#9b7cab}.bottom-note small{font-size:9px;color:#b4a0bf}.bottom-note a{font-size:10px;color:#ac88bc}footer{max-width:1180px;color:#b09cba;font-size:9px;border-color:#e9dff1}.victory-banner{display:flex;align-items:center;gap:12px;margin:18px -4px -4px;padding:15px 12px;border:1px solid #e5c582;background:linear-gradient(115deg,#fff9e2,#f2dfb2);border-radius:16px;box-shadow:inset 0 2px #fff8,0 5px 12px #ae84201a}.victory-banner>span:first-child{width:60px;height:60px;flex-shrink:0}.victory-banner>span:last-child{color:#ccab62;margin-left:auto;font-size:28px}.victory-banner small{font-size:7px;letter-spacing:1px;font-weight:850;color:#b49050}.victory-banner strong{display:block;font-size:21px;letter-spacing:-.6px;margin-top:5px;color:#9a7037}.victory-banner p{font-size:10px;margin:5px 0 0;color:#ae8b50}#celebrationLayer{position:fixed;inset:0;pointer-events:none;z-index:100;overflow:hidden}.confetti{position:absolute;width:9px;height:13px;border-radius:3px;will-change:transform,opacity}.flying-coin{position:absolute;width:52px;height:52px;will-change:transform,opacity}.promotion-options svg{height:65px}.promotion-options button{background:linear-gradient(145deg,#fffaf0,#e4d1ed);border-color:#d1bce0}.dialog-actions button{min-height:46px}dialog{background:radial-gradient(ellipse at top right,#eadbf8,#fffaf2);border-color:#dfc7ea;box-shadow:inset 0 2px #fff,0 30px 100px #4e2c6e33}dialog::backdrop{background:#45305666;backdrop-filter:blur(9px)}
@keyframes ambient-drift{to{transform:translate(60px,35px)}}@keyframes coin-float{0%,100%{transform:translateY(1px) rotate(-7deg)}50%{transform:translateY(-7px) rotate(6deg)}}@keyframes arena-enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes legal-arrive{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes check-glow{50%{box-shadow:inset 0 0 0 3px #ffebf3,inset 0 0 25px #ed82a8aa}}@keyframes clock-warning{50%{box-shadow:0 0 0 4px #dd82922b}}@keyframes button-shine{0%,65%{transform:translateX(-120%)}90%,100%{transform:translateX(120%)}}@keyframes reward-glow{40%{box-shadow:0 0 0 5px #f1d89055,0 0 30px #e6bc6550}}
@media(hover:hover) and (pointer:fine){.square[aria-disabled="false"]:hover .piece{transform:translateY(-5%) scale(1.045)}}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(0,1fr) 300px;gap:19px}.hero-reward{max-width:300px;padding:12px}.hero-coin{width:65px;height:65px}.hero-reward strong{font-size:15px}.hero-reward p{font-size:8px}.intro h1{font-size:43px}.hero-reward small{font-size:7px}.collection-label{font-size:7px;letter-spacing:1px}.arena{padding:15px}.clock{font-size:23px;padding:9px 11px}.avatar{width:37px;height:40px}.avatar .piece{width:31px;height:36px}.player-copy strong{font-size:11px}.tiny-badge{display:none}.board-frame{padding:19px 20px 23px}.rank-rail{top:19px;bottom:23px;width:20px;font-size:8px}.file-rail{left:20px;right:20px;height:23px;font-size:8px}.frame-signature{font-size:5px;right:3px}.control-card,.moves-card{padding:20px}.reward-top strong{font-size:23px}.reward-pill{font-size:6px;padding:4px}.reward-top .eyebrow{font-size:5px}.site-header{padding:22px 26px}.site-header nav{gap:15px}.brand small{display:none}.board-tip{font-size:8px}}
@media(max-width:720px){.site-header{padding:16px 18px;gap:10px}.site-header nav{font-size:9px;gap:0}.site-header nav a:first-child{display:none}.brand{font-size:19px}.wallet-badge{min-width:82px;padding:3px 8px 3px 3px;gap:3px;border-radius:12px}.wallet-badge>span{width:34px;height:34px}.wallet-badge strong{font-size:17px}.wallet-badge small{font-size:5px;letter-spacing:1px}main{max-width:590px;padding:0 18px;margin-top:26px}.intro{display:block;margin-bottom:21px}.intro h1{font-size:41px;letter-spacing:-1.8px;line-height:1.08;margin-bottom:13px}.intro .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:13px}.intro>div>p:last-child{font-size:12px}.hero-reward{max-width:none;transform:none;gap:12px;border-radius:17px;padding:6px 12px;margin-top:19px;background:linear-gradient(115deg,#fffcf5aa,#f9efd5aa)}.hero-coin{width:59px;height:59px}.hero-reward small{font-size:6px;margin-bottom:4px;letter-spacing:1px}.hero-reward strong{font-size:15px}.hero-reward p{font-size:8px;margin:4px 0 0}.arena-toolbar{margin-bottom:16px}.collection-label{display:none}.appearance-controls{width:100%;justify-content:space-between;gap:6px}.theme-picker{gap:0;padding:3px}.theme-picker button{font-size:8px;padding:6px;gap:4px}.theme-picker i{width:11px;height:11px}#motionToggle{font-size:9px;padding:9px}.game-layout{display:flex;flex-direction:column;gap:18px}.sidebar{display:contents}.arena{width:100%;order:1;padding:14px;border-radius:23px}.control-card{width:100%;order:0;padding:20px}.control-card .opponent-label{margin-bottom:13px}.control-card h2{font-size:23px;margin-bottom:8px}.control-card>p:not(.eyebrow){font-size:12px;margin-bottom:15px}.side-picker span{padding:9px 6px;font-size:12px}.side-picker small{font-size:9px}.match-facts{margin:13px 0 17px;font-size:10px}.control-card .load-note{font-size:9px!important}.reward-card{order:2;width:100%;padding:19px}.moves-card{order:3;width:100%;padding:20px}.rules{order:4;width:100%}body[data-phase="playing"] .arena,body[data-phase="ended"] .arena{order:0}body[data-phase="playing"] .control-card,body[data-phase="ended"] .control-card{order:1}.player-bar{gap:9px;padding-bottom:14px}.player-bar#humanBar{padding-top:20px}.avatar{width:37px;height:40px}.clock{font-size:25px;padding:9px 12px}.player-copy strong{font-size:12px}.player-copy small{font-size:9px}.tiny-badge{display:inline-block;font-size:5px}.board-frame{padding:17px 18px 22px;border-radius:14px}.board-frame:before{inset:6px;border-radius:9px}.rank-rail{top:17px;bottom:22px;width:18px;font-size:7px}.file-rail{left:18px;right:18px;height:22px;font-size:7px}.frame-corner{width:7px;height:7px}.top-left,.bottom-left{left:5px}.top-right,.bottom-right{right:5px}.top-left,.top-right{top:5px}.bottom-left,.bottom-right{bottom:5px}.frame-signature{right:2px;font-size:4px;letter-spacing:1px}.board-tip{font-size:8px}.capture-trays{margin-top:13px}.capture-trays small{font-size:6px}.capture-trays .piece{width:15px;height:21px}.reward-top .eyebrow{font-size:6px}.reward-top strong{font-size:26px}.reward-top strong small{font-size:10px}.reward-pill{font-size:7px;padding:5px}.reward-card>p{font-size:11px}.reward-card .reward-disclosure{font-size:10px}.rules summary,.rules{font-size:11px}.bottom-note{margin-top:7px;padding:24px 4px}.bottom-note p{font-size:10px}.bottom-note small{font-size:9px}.bottom-note a{font-size:10px;margin-left:37px}.victory-banner{gap:8px;padding:12px 9px}.victory-banner>span:first-child{width:46px;height:46px}.victory-banner strong{font-size:18px}.victory-banner small{font-size:6px}.victory-banner p{font-size:8px}.victory-banner>span:last-child{font-size:22px}footer{font-size:9px;padding:22px 18px}.primary{font-size:12px}}
@media(max-width:370px){main{padding:0 12px}.site-header{padding:15px 12px}.site-header nav{font-size:8px}.brand{font-size:17px}.brand-mark{width:24px;height:26px;margin-right:6px}.wallet-badge{min-width:75px}.wallet-badge>span{width:30px;height:30px}.intro h1{font-size:36px}.intro .eyebrow{font-size:7px}.hero-reward p{font-size:7px}.theme-picker button{padding:7px 10px}.theme-picker span{display:none}.theme-picker i{width:14px;height:14px}#motionToggle{padding:9px 11px}.player-bar{gap:6px}.clock{font-size:22px;padding:8px 9px}.player-copy strong{font-size:11px}.player-copy small{font-size:8px}.tiny-badge{display:none}.arena{padding:11px}.avatar{width:33px;height:37px}.board-frame{padding:15px 16px 20px}.rank-rail{top:15px;bottom:20px;width:16px}.file-rail{left:16px;right:16px;height:20px}.frame-corner{width:6px;height:6px}.reward-top .eyebrow{font-size:5px}.reward-top strong{font-size:24px}.reward-pill{font-size:6px}.victory-banner strong{font-size:16px}.victory-banner p{font-size:8px}}
html[data-motion="off"] *,html[data-motion="off"] *:before,html[data-motion="off"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-motion="off"] .square .piece,html[data-motion="off"] .primary{transform:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-motion="on"]) *,html:not([data-motion="on"]) *:before,html:not([data-motion="on"]) *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body[data-turn="engine"] .status-orb{animation:thinking-orb 1s ease-in-out infinite}@keyframes thinking-orb{50%{box-shadow:0 0 0 5px #b793d52b;background:#bf9ce1}}
/* Explicit equal ranks keep intrinsic SVG sizes from stretching the bottom row. */
.board{grid-template-rows:repeat(8,minmax(0,1fr))}.square{min-height:0;aspect-ratio:auto;height:100%}.square>.piece{position:absolute;left:6.5%;top:3%;width:87%;height:94%}
/* Keep small functional labels readable on the pale material surfaces. */
.control-card>p:not(.eyebrow),.player-copy small{color:#7d648e}.board-tip,.rules,.rules summary,.theme-picker button{color:#826b92}.reward-card>p,.reward-card .reward-disclosure{color:#8a7048}.hero-reward p{color:#92764f}.capture-trays small{color:#8e789e}.moves-wrap>p{color:#9a82ac}
