@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--gold:#d2b77b;--cream:#f0e6ce;--muted:#9aaf9c;--border:#bda36a35;--display:'Cormorant Garamond',Georgia,serif;--body:Manrope,Arial,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 30% 20%,#244f3444,transparent 65%),#091710;color:var(--cream);font:12px var(--body)}button,select,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit;border:1px solid var(--border);border-radius:5px;background:transparent;padding:11px 16px;transition:background .18s,border-color .18s}button:hover:not(:disabled){background:#c5ab681a;border-color:#d2b77b99}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #f0dba0;outline-offset:3px}a{color:inherit;text-decoration:none}button.gold{background:linear-gradient(110deg,#e8d19a,#bfa063);color:#1b261b;font-weight:800;border:1px solid #e0c68b;box-shadow:0 6px 20px #0003}button.gold:hover{background:#edd6a2}.topbar{display:flex;height:86px;align-items:center;gap:24px;padding:0 4%;border-bottom:1px solid var(--border);background:#091710cf}.brand{display:flex;align-items:center;gap:14px}.brand img{width:53px;height:61px;object-fit:contain}.brand>span{font:600 18px var(--display);letter-spacing:2px;color:#dcc48b}.brand small{font:7px var(--body);letter-spacing:3px;display:block;margin-top:6px;color:#a4b29b}.topbar nav{display:flex;gap:34px;margin:auto}.topbar nav button{border:0;border-radius:0;font-size:11px;color:#a4b29b;padding:31px 0}.topbar nav .current{border-bottom:2px solid var(--gold);color:#e1cea2}.wallet{display:flex;gap:13px;align-items:center;border-radius:30px;background:#1b3023;padding:7px 15px 7px 8px}.wallet b{display:block;font-size:13px;text-align:left;color:#e8d5a5}.wallet small{display:block;font-size:6px;letter-spacing:1px;color:#a7b599;margin-top:3px}.wallet>span:last-child{font-size:18px;color:var(--gold)}.chip{display:flex;align-items:center;justify-content:center;border:3px dashed #dec68b;outline:1px solid #ac925c;outline-offset:2px;border-radius:50%;height:29px;width:29px;font:11px var(--display);color:#e4ce9c;background:#29402c}main{max-width:1460px;margin:auto;padding:0 4%}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 0 24px}.eyebrow{display:block;font-size:8px;letter-spacing:2px;color:#c2ab79;font-weight:600}.heading h1{font:500 43px/1 var(--display);display:flex;align-items:center;gap:23px;margin:9px 0 0}.heading h1 em{font-size:19px;color:#99ae94;font-weight:400}.dash{width:35px;height:1px;background:#b4a27588}.mode-tabs{display:flex;gap:4px;border:1px solid var(--border);background:#0c1f16;padding:4px;border-radius:6px}.mode-tabs button{border:0;font-size:10px;padding:10px 24px;color:#a3b59e}.mode-tabs button.active{background:#c3a46d1b;box-shadow:inset 0 0 0 1px #c6aa6c66;color:#eddaad}.help{border:0;color:#a9b69e;font-size:16px}.help span{font-size:9px;margin-left:4px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:stretch}.salon{border:1px solid #bda36a66;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#294431,#11241a 65%,#0b1912);box-shadow:0 20px 60px #0005;position:relative}.salon:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,#e6d3a404 0 1px,transparent 1px 75px);pointer-events:none}.salon-header{padding:20px 23px 12px;display:flex;align-items:center;justify-content:space-between;position:relative}.salon-header .eyebrow{font-size:7px;letter-spacing:2px}.salon-header small{display:block;font-size:5px;color:#8b9e85;letter-spacing:1.8px;margin-top:5px}.salon-header>span:nth-child(2){font-size:7px;letter-spacing:1.5px;color:#adba9d}.salon-header button{font-size:16px;border:0;padding:0;color:#c4ae7a}.salon-header button span{font-size:8px;margin-left:5px}.board-column{width:min(75%,590px);margin:0 auto;position:relative}.player{display:flex;gap:10px;align-items:center;padding:10px 0;min-height:64px}.avatar{width:40px;height:40px;border-radius:50%;border:1px solid #bda36a;object-fit:cover;padding:2px;background:#20382a}.player-info{flex:1}.player strong{font:500 22px var(--display)}.player .tag{font:6px var(--body);letter-spacing:1.3px;color:#a5b39b;margin-left:8px}.captured{font-size:13px;min-height:15px;letter-spacing:-2px;color:#cdb982}.captured small{font:9px var(--body);letter-spacing:0;margin-left:6px}.clock{font:500 25px var(--display);background:#0c1c13;border:1px solid var(--border);border-radius:5px;min-width:94px;padding:7px 13px;text-align:center;color:#97a58f;font-variant-numeric:tabular-nums}.player.active .clock{background:linear-gradient(110deg,#e5cf9d,#bca168);color:#1f2c20;border-color:#d7bd82;box-shadow:0 0 20px #c6aa6c12}.player.active strong:after{content:'';display:inline-block;height:5px;width:5px;background:#d8bf83;border-radius:50%;margin:0 0 4px 9px;box-shadow:0 0 7px #dbc994}.clock.low{color:#dd8d76}.board-frame{position:relative;padding:22px;border:1px solid #977744;border-radius:5px;background:repeating-linear-gradient(3deg,#ffffff03 0 1px,transparent 1px 4px),linear-gradient(110deg,#38271e,#765239 20%,#38271e 46%,#60412a 75%,#30231b);box-shadow:0 17px 35px #0007,inset 0 0 0 4px #291c12,inset 0 0 0 5px #b2966055}.board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;border:1px solid #bba16b;box-shadow:0 0 0 3px #110e0a,0 0 0 4px #ad8d5744;touch-action:none}.square{position:relative;border:0;border-radius:0;padding:0;min-width:0;display:flex;align-items:center;justify-content:center;background:var(--light-square,#c5bb98);box-shadow:inset 0 0 13px #0000000b;overflow:hidden;aspect-ratio:1;cursor:pointer}.square.dark{background:var(--dark-square,#48624d)}.square:hover:not(:disabled){background:var(--light-square,#c5bb98);border:0;box-shadow:inset 0 0 0 3px #ead49488}.square.dark:hover{background:var(--dark-square,#48624d)}.square:focus-visible{outline:3px solid #fff0ae;outline-offset:-3px;z-index:3}.square.last:before,.square.selected:before,.square.hint:before{content:'';position:absolute;inset:0;background:#f0d25c38;pointer-events:none}.square.selected:before{box-shadow:inset 0 0 0 3px #f7db89;background:#eed78a33}.square.hint:before{box-shadow:inset 0 0 0 4px #f0d58d}.square.legal:after{content:'';position:absolute;width:22%;height:22%;background:#162e2866;border-radius:50%;pointer-events:none}.square.capture:after{width:90%;height:90%;border:4px solid #162e2877;background:transparent}.square.check{background:#a05242!important}.piece{width:100%;height:100%;display:block;filter:drop-shadow(1px 3px 1.5px #0005);position:relative;pointer-events:none;user-select:none}.ranks{position:absolute;left:6px;top:22px;bottom:22px;display:flex;flex-direction:column;justify-content:space-around;color:#c1a26e;font-size:8px}.files{position:absolute;left:22px;right:22px;bottom:5px;display:flex;justify-content:space-around;color:#c1a26e;font-size:8px}.frame-stamp{position:absolute;top:6px;left:0;right:0;text-align:center;letter-spacing:2.6px;font-size:5px;color:#c5a16d}.board-bottom{display:flex;position:relative;align-items:center;justify-content:space-between;border-top:1px solid var(--border);margin:5px 23px 0;padding:12px 0}.board-bottom button{border:0;padding:0;font-size:12px;color:#c5af7d}.board-bottom button span{font-size:8px;margin-left:5px}.board-bottom>span{font-size:5px;letter-spacing:1.5px;color:#82967e}.side-panel{background:linear-gradient(125deg,#1b3223,#0d2016);border:1px solid var(--border);border-radius:9px;padding:23px 22px;display:flex;flex-direction:column;min-width:0}.side-title .eyebrow{font-size:7px;letter-spacing:1.8px}.side-title h2{font:500 37px var(--display);margin:8px 0 5px}.side-title p{font-size:9px;color:#9baf95;margin:0 0 21px}.new{display:flex;justify-content:space-between;align-items:center;font-size:10px;padding:14px 17px}.new span{font-size:18px;font-weight:400}.turn-status{display:flex;gap:10px;align-items:flex-start;padding:24px 0 21px}.orb{width:6px;height:6px;border-radius:50%;background:#d3bc83;box-shadow:0 0 10px #d9c48b55;margin-top:4px;flex-shrink:0}.turn-status b{font-size:11px;font-weight:600}.turn-status small{display:block;font-size:8px;color:#94aa8d;margin-top:6px;line-height:1.8}.notation-heading{display:flex;justify-content:space-between;font-size:6px;letter-spacing:1.3px;color:#a3936d;padding-bottom:11px;border-bottom:1px solid var(--border)}.moves{flex:1;min-height:170px;max-height:260px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a48c5733 transparent}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:170px;color:#aaae92;font:20px var(--display)}.empty>span{font-size:45px;color:#bdab7655;margin:3px 0}.empty small{font:8px var(--body);color:#7d967d;margin-top:8px}.move-row{display:grid;grid-template-columns:30px 1fr 1fr;align-items:center;font-size:11px;padding:3px 0}.move-row:nth-child(odd){background:#ffffff04}.move-row>span{font-size:9px;color:#7e957d;text-align:center}.move-row button{padding:6px 10px;border:0;text-align:left;font-size:11px;border-radius:2px}.move-row button.active{background:#c5a66525;color:#edcf8d}.review-controls{display:flex;justify-content:space-around;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:5px 0;margin-top:10px}.review-controls button{border:0;padding:4px 15px;font-size:22px;color:#abbb9f}.actions{display:flex;justify-content:space-between;padding:16px 0 8px}.actions button{display:flex;align-items:center;flex-direction:column;gap:7px;padding:0;border:0;color:#c5b07c;font-size:17px}.actions button span{font:7px var(--body);color:#a0b398}.match-actions{display:flex;margin-top:12px;gap:8px}.match-actions button{flex:1;font-size:8px;padding:10px 4px}.saved{text-align:center;font-size:6px;letter-spacing:.2px;color:#7f9b80;margin-top:18px}.saved span{color:#8dba8e;margin-right:3px}.atelier-teaser{display:flex;gap:35px;align-items:center;padding:34px 8px 30px;margin-top:14px;border-bottom:1px solid var(--border)}.atelier-teaser>div:first-child{min-width:300px}.atelier-teaser h2{font:500 34px var(--display);margin:9px 0}.atelier-teaser h2 em{color:#bca571;font-weight:400}.atelier-teaser p{font-size:9px;line-height:1.9;color:#91a68c}.atelier-teaser button{font-size:9px;margin-top:4px;padding:10px 15px;color:#ccb47e}.atelier-teaser button span{margin-left:24px}.teaser-pieces{display:flex;flex:1;align-items:flex-end;justify-content:center;gap:0;height:170px;position:relative}.teaser-pieces:after{content:'';position:absolute;bottom:9px;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent,#c0a57366,transparent)}.teaser-pieces svg{width:94px;height:140px;filter:drop-shadow(0 15px 7px #0008)}.teaser-pieces svg:nth-child(2){width:122px;height:175px;margin-left:-12px}.teaser-pieces svg:nth-child(3){margin-left:-15px}.teaser-note{display:flex;flex-direction:column;gap:11px;min-width:190px}.teaser-note>span:first-child{font:italic 23px var(--display);color:#a48e65}.teaser-note b{font-size:9px;letter-spacing:2px;font-weight:500;color:#d4be89}.teaser-note small{font-size:6px;letter-spacing:1.1px;color:#8ba083}.rule{width:40px;height:1px;background:#af985d88;margin:4px 0}footer{display:flex;align-items:center;justify-content:space-between;padding:25px 5px;color:#7e9076;font-size:5px;letter-spacing:1.6px}footer img{width:36px;height:40px;object-fit:contain;opacity:.65}footer a{color:#b5a16e}dialog{width:min(780px,94vw);max-height:90dvh;border:1px solid #bca269;color:var(--cream);background:linear-gradient(130deg,#203e2a,#0c1c14);padding:26px;border-radius:10px;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#020b07d9;backdrop-filter:blur(7px)}.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:18px;gap:15px}.modal-head h2{font:500 38px var(--display);margin:6px 0 0}.modal-head>button{font-size:28px;border:0;padding:0 5px;color:#d6be87}#modal-content{padding-top:16px}#modal-content p{color:#b0c0a5;font-size:11px;line-height:1.9}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:9px;color:#c9b17b;font-size:8px;letter-spacing:1px;margin:9px 0}.field select{padding:13px;background:#0a1d13;border:1px solid var(--border);color:#e5d9b8;border-radius:4px;font-size:11px}.wide{width:100%;margin-top:18px;padding:15px}.notice{padding:12px 15px;background:#b59a5610;border:1px solid var(--border);border-radius:5px;font-size:10px;color:#a9bca1;line-height:1.8}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:19px}.set-card{padding:16px 12px;border:1px solid var(--border);border-radius:6px;background:#07181060;text-align:center;overflow:hidden}.set-card.equipped{border-color:#d6b97c}.set-preview{display:flex;height:115px;align-items:flex-end;justify-content:center;border-radius:4px;background:linear-gradient(135deg,var(--l),var(--d));box-shadow:inset 0 0 30px #0007}.set-preview svg{height:106px;width:75px;filter:drop-shadow(2px 8px 3px #0007);margin:0 -5px}.set-card h3{font:25px var(--display);margin:14px 0 6px}.set-card .eyebrow{font-size:5px;letter-spacing:.7px;min-height:10px}.set-card p{font-size:8px!important;line-height:1.7!important;min-height:42px}.set-card button{width:100%;font-size:9px;padding:11px 4px}.set-card .preview-btn{border:0;color:#a4b89b;font-size:8px;padding:9px 0 0}.shop-wallet{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#abbb9e}.shop-wallet b{color:#e7ce93}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:13px 0 20px}.stats>div{text-align:center;border:1px solid var(--border);border-radius:5px;padding:18px 4px}.stats strong{display:block;font:40px var(--display);color:#dfc78c}.stats small{font-size:6px;letter-spacing:1px;color:#abc09e}.record-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border);font-size:10px;color:#b3c1a6}.record-row b{font-weight:500;color:#dfc58e}.reward{text-align:center;padding:20px}.reward>strong{font:65px var(--display);color:#e0c58a;display:block}.reward>small{font-size:8px;letter-spacing:2px;color:#aabd9f}.buttons{display:flex;gap:10px;margin-top:20px}.buttons button{flex:1}.rules{padding-left:20px;color:#b3c4a8;font-size:11px;line-height:2}.rules li{margin:10px 0}.promotion{display:flex;justify-content:center;gap:10px;margin-top:20px}.promotion button{width:100px;padding:5px;background:#c2b38e}.promotion svg{height:100px}.preview-set{width:240px;margin:20px auto;display:flex}.preview-set svg{width:120px}.end-mark{text-align:center;font:65px var(--display);color:#d4b877}.result-title{text-align:center;font:36px var(--display);margin:5px 0}.result-desc{text-align:center}#toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);background:#1a3c29;border:1px solid #c8ab6d;border-radius:6px;color:#f0dca6;font-size:11px;line-height:1.7;padding:12px 22px;box-shadow:0 10px 25px #0007;max-width:90%;text-align:center}#toast:empty{display:none}[hidden]{display:none!important}
@media(min-width:1500px){.board-column{width:min(75%,620px)}.moves{max-height:310px}.side-panel{padding:30px}.side-title h2{font-size:42px}}
@media(max-width:1100px){.heading h1 em,.dash{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 275px;gap:14px}.board-column{width:86%}.side-panel{padding:20px 17px}.side-title h2{font-size:33px}.salon-header{padding:18px 17px 7px}.salon-header>span:nth-child(2){font-size:6px}.salon-header button span{display:none}.teaser-note{min-width:150px}.atelier-teaser{gap:15px}.atelier-teaser>div:first-child{min-width:270px}.atelier-teaser h2{font-size:30px}.teaser-pieces svg{width:70px}.teaser-pieces svg:nth-child(2){width:98px}}
@media(max-width:760px){.topbar{height:70px;padding:0 15px;gap:12px}.brand{gap:8px}.brand img{width:38px;height:47px}.brand>span{font-size:13px;letter-spacing:1.3px}.brand small{font-size:5px;letter-spacing:2px}.topbar nav{display:none}.wallet{margin-left:auto;gap:9px;padding:6px 11px 6px 6px}.wallet b{font-size:11px}.wallet small{font-size:5px}.wallet>span:last-child{display:none}.chip{width:25px;height:25px;font-size:9px;border-width:2px}main{padding:0 12px}.heading{padding:20px 2px 17px;flex-wrap:wrap;gap:15px}.heading .eyebrow{font-size:6px;letter-spacing:1.5px}.heading h1{font-size:38px;margin-top:7px}.heading .mode-tabs{order:3;width:100%}.mode-tabs button{flex:1;padding:10px 14px}.help{margin-left:auto;padding:5px}.help span{font-size:8px}.game-layout{display:flex;flex-direction:column;gap:12px}.salon-header{padding:16px 14px 8px}.salon-header .eyebrow{font-size:6px;letter-spacing:1.4px}.salon-header>span:nth-child(2){font-size:5px;letter-spacing:1px}.salon-header small{font-size:4px}.board-column{width:93%;max-width:510px}.player{min-height:61px;padding:9px 2px}.avatar{width:36px;height:36px}.player strong{font-size:21px}.player .tag{font-size:5px;margin-left:5px}.clock{font-size:23px;min-width:79px;padding:6px 10px}.board-frame{padding:19px}.ranks{top:19px;bottom:19px;left:5px;font-size:7px}.files{left:19px;right:19px;bottom:4px;font-size:7px}.frame-stamp{font-size:4px;top:6px;letter-spacing:2px}.board-bottom{margin:3px 14px 0;padding:11px 0}.board-bottom>span{font-size:4px;letter-spacing:.7px}.board-bottom button span{font-size:7px}.side-panel{padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.side-title{display:none}.new{grid-column:2;grid-row:1;padding:10px 14px;font-size:9px;align-self:center}.turn-status{grid-column:1;grid-row:1;padding:0;align-self:center}.turn-status b{font-size:10px}.turn-status small{font-size:7px;line-height:1.6;margin-top:3px}.notation-heading{grid-column:1/-1;margin-top:20px;font-size:6px}.moves{grid-column:1/-1;min-height:80px;max-height:155px}.empty{min-height:80px;font-size:18px}.empty>span{display:none}.empty small{font-size:7px}.review-controls{grid-column:1/-1;margin-top:7px}.actions{grid-column:1;gap:13px;padding:15px 0 4px;justify-content:space-around}.actions button span{font-size:6px}.match-actions{grid-column:2;margin-top:14px;align-items:center;gap:5px}.match-actions button{font-size:7px;padding:9px 4px}.saved{grid-column:1/-1;font-size:6px;margin-top:14px}.atelier-teaser{flex-wrap:wrap;padding:24px 5px 18px;gap:13px;margin-top:4px}.atelier-teaser>div:first-child{width:100%;min-width:0}.atelier-teaser h2{font-size:32px}.atelier-teaser .eyebrow{font-size:6px}.atelier-teaser p{font-size:9px}.teaser-pieces{height:140px;justify-content:flex-start;padding-left:4px;flex:1}.teaser-pieces svg{height:115px;width:74px}.teaser-pieces svg:nth-child(2){height:140px;width:98px}.teaser-note{min-width:130px;gap:9px}.teaser-note b{font-size:7px}.teaser-note small{font-size:4px;letter-spacing:.6px}.teaser-note>span:first-child{font-size:20px}footer{font-size:4px;letter-spacing:.8px;padding:20px 0;gap:12px}footer img{width:28px;height:33px}dialog{padding:20px}.modal-head h2{font-size:32px}.modal-head .eyebrow{font-size:6px}.form-grid{gap:12px}.field{font-size:7px}.field select{font-size:10px;padding:12px 7px}.shop-grid{grid-template-columns:1fr;gap:12px}.set-card{display:grid;grid-template-columns:110px 1fr;gap:0 14px;text-align:left;padding:14px}.set-preview{grid-row:1/6;align-self:center;height:115px}.set-preview svg{width:64px;height:97px;margin:0 -8px}.set-card h3{font-size:24px;margin:0 0 5px}.set-card p{min-height:0;font-size:8px!important;margin:7px 0 9px}.set-card .eyebrow{font-size:5px}.set-card .preview-btn{padding-top:8px}.shop-wallet{font-size:9px;gap:8px}.notice{font-size:9px}.promotion{gap:6px}.promotion button{width:70px}.promotion svg{height:80px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.salon-header button.focus{font:8px var(--body);padding:6px 9px;border:1px solid var(--border)}.focused .topbar,.focused .heading,.focused .atelier-teaser,.focused footer{display:none}.focused main{padding:10px 2%}.focused .board-column{width:min(85%,calc(100dvh - 195px),650px)}.focused .salon-header{padding-top:10px;padding-bottom:3px}.focused .side-panel{max-height:calc(100dvh - 20px)}.focused .moves{max-height:none}.focused .side-title h2{font-size:32px}.focused .side-title p{margin-bottom:10px}.focused .turn-status{padding:16px 0}.focused .game-layout{gap:14px}@media(max-width:760px){.focused .board-column{width:min(96%,calc(100dvh - 195px),510px)}.focused .side-panel{max-height:none}.focused .salon-header>span:nth-last-child(2){display:none}.focused main{padding:7px}.focused .salon-header{padding:9px 12px 0}.focused .game-layout{gap:10px}.salon-header button.focus{font-size:7px;padding:5px 7px}}
.board-frame{background:repeating-linear-gradient(3deg,#ffffff03 0 1px,transparent 1px 4px),linear-gradient(110deg,#0005,#fff1 20%,#0005 46%,#fff1 75%,#0005),var(--frame,#493123)}
