@import"https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&display=swap";:root{font-family:Be Vietnam Pro,system-ui,sans-serif;color:#183127;background:#f4efe4;font-synthesis:none;--ink:#183127;--green:#173b2e;--gold:#e9b94d;--paper:#fffdf7;--line:#dcd5c7;--muted:#6c776f;--shadow:0 16px 50px #172d2418}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 20% 10%,#fff8e8 0,transparent 32%),#f4efe4}button,a{font:inherit}button{color:inherit}a{text-decoration:none;color:inherit}.app-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,72px);border-bottom:1px solid #243c3221;background:#f8f4ebdb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:relative;z-index:10}.brand{display:flex;gap:12px;align-items:center;font-weight:800;font-size:18px}.brand em{font-family:Playfair Display;color:#a06f0d}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--green);color:var(--gold)}.header-actions{display:flex;align-items:center;gap:10px}.heart-badge{height:38px;padding:0 12px;border-radius:20px;display:flex;align-items:center;gap:5px;color:#c94d4d;background:#fff;border:1px solid #eadfd7}.heart-badge span{font-size:12px;color:var(--muted)}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:#fff;display:grid;place-items:center;cursor:pointer}.icon-button svg{width:19px}.home{max-width:1180px;margin:auto;padding:44px 24px 80px}.hero{min-height:360px;background:var(--green);color:#fff;border-radius:28px;padding:54px clamp(30px,6vw,72px);display:flex;align-items:center;overflow:hidden;position:relative;box-shadow:var(--shadow)}.hero:after{content:"";position:absolute;width:360px;height:360px;border:1px solid #ffffff18;border-radius:50%;right:50px}.hero-copy{position:relative;z-index:2;max-width:620px}.eyebrow{color:#f0c96c;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hero h1{font-size:clamp(40px,6vw,70px);line-height:1.02;margin:16px 0}.hero h1 em{font-family:Playfair Display;color:#f0c96c}.hero p{color:#d3ded8;font-size:16px;max-width:520px;line-height:1.7}.hero-knight{position:absolute;right:8%;font-family:serif;font-size:250px;line-height:1;color:#f2d88b12;transform:rotate(-8deg)}.primary{border:0;border-radius:12px;background:var(--gold);color:#273a30;padding:13px 20px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}.primary.large{margin-top:14px}.primary.large svg:last-child{margin-left:18px}.player-strip{margin:-24px 30px 0;background:var(--paper);position:relative;z-index:3;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:20px 24px;display:flex;align-items:center;gap:14px}.avatar{width:46px;height:46px;border-radius:14px;background:#e6c66d;display:grid;place-items:center;font-weight:800}.player-strip div:nth-child(2){display:flex;flex-direction:column}.player-strip small,.section-heading small,.mode-card small,.setup-card small,.sub-hero small,.legal small,.game-top small,.result-bar small{font-size:10px;letter-spacing:.12em;font-weight:800;color:#a17822}.rating{margin-left:25px;padding-left:25px;border-left:1px solid var(--line);display:flex;gap:7px;align-items:center;font-weight:700}.stats{margin-left:auto;display:flex;gap:28px}.stats span{display:flex;flex-direction:column;text-align:center;font-size:11px;color:var(--muted)}.stats b{font-size:17px;color:var(--ink)}.mode-section{padding-top:58px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.section-heading h2{margin:6px 0 0;font-size:26px}.offline{font-size:12px;display:flex;align-items:center;gap:7px;color:#59806c}.offline svg{width:16px}.mode-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.mode-card{min-height:125px;border:1px solid var(--line);border-radius:18px;background:var(--paper);display:flex;align-items:center;text-align:left;padding:22px;gap:18px;cursor:pointer;box-shadow:0 4px 16px #172d2408;transition:.2s}.mode-card:hover{transform:translateY(-3px);border-color:#b8a878}.mode-card.featured{background:#fbf2d8;border-color:#dfbf68}.mode-icon{flex:0 0 54px;height:54px;border-radius:15px;background:#e9eee9;display:grid;place-items:center;color:var(--green)}.featured .mode-icon{background:var(--green);color:var(--gold)}.mode-card h3{margin:2px 0 7px}.mode-card p{margin:0;font-size:13px;color:var(--muted)}.mode-card>svg{margin-left:auto}.mode-card.disabled{opacity:.62}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.quick-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px 22px;display:flex;align-items:center;gap:16px;text-align:left;cursor:pointer}.quick-card>svg{color:#c55b5b}.quick-card span{display:flex;flex-direction:column}.quick-card small{color:var(--muted);margin-top:4px}.ad-slot{margin:24px auto 0;border:1px dashed #b9b3a6;color:#999185;padding:14px;text-align:center;font-size:10px;letter-spacing:.1em;max-width:720px}.back{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.back svg{width:17px}.setup-page,.sub-page{max-width:1050px;margin:auto;padding:40px 24px 80px}.setup-card{max-width:720px;margin:24px auto;background:var(--paper);padding:34px;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.setup-title{display:flex;gap:18px;align-items:center;margin-bottom:28px}.setup-title>span{width:58px;height:58px;background:var(--green);color:var(--gold);border-radius:17px;display:grid;place-items:center}.setup-title h1{margin:5px 0}.setup-card>label{display:block;font-size:12px;font-weight:800;margin:24px 0 10px}.level-list{display:grid;gap:8px}.level-list button{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:13px;padding:12px;background:#fff;text-align:left;cursor:pointer}.level-list button.active,.choice-row button.active{border-color:#b9902f;background:#fff6dd}.level-list button>span{width:32px;height:32px;border-radius:9px;background:#edf0eb;display:grid;place-items:center;font-weight:800}.level-list button div{display:flex;flex-direction:column}.level-list button small{color:var(--muted);letter-spacing:0;margin-top:3px}.level-list button>svg{margin-left:auto;color:#9a741b}.choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.choice-row button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:14px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.choice-row i{font-size:25px;font-style:normal}.start{width:100%;margin-top:28px}.setup-note{text-align:center;color:var(--muted);font-size:11px}.game-page{max-width:1200px;margin:auto;padding:24px}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.game-top>div:nth-child(2){display:flex;flex-direction:column;text-align:center}.game-layout{display:grid;grid-template-columns:minmax(320px,680px) 330px;gap:24px;justify-content:center}.opponent-row{height:62px;display:flex;align-items:center;gap:11px}.opponent-row .avatar{width:40px;height:40px;border-radius:12px}.avatar.dark{background:var(--green);color:#fff}.opponent-row div{display:flex;flex-direction:column;font-size:13px}.opponent-row small{color:var(--muted)}.opponent-row time{margin-left:auto;font-weight:800;font-size:19px}.board{width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);border-radius:8px;overflow:hidden;box-shadow:0 10px 35px #152a2160;border:8px solid #253d33}.square{position:relative;border:0;padding:0;display:grid;place-items:center;cursor:pointer}.board.forest .light{background:#e8dec3}.board.forest .dark{background:#63836d}.board.classic .light{background:#f0d9b5}.board.classic .dark{background:#b58863}.square.last:after{content:"";position:absolute;inset:0;background:#edcd4d70}.square.selected:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 4px #f5d258}.piece{font-family:Georgia,serif;font-size:clamp(34px,7vw,66px);line-height:1;z-index:3;filter:drop-shadow(0 3px 1px #0004);transform:translateY(-2px)}.piece.w{color:#fff8df;text-shadow:0 0 2px #182b22}.piece.b{color:#14271f}.move-target,.capture-target{position:absolute;z-index:4;border-radius:50%;pointer-events:none}.move-target{width:22%;height:22%;background:#1c4a35a0}.capture-target{inset:8%;border:5px solid #1c4a3580}.checked{background:#c95e5e!important}.coord{position:absolute;font-size:9px;font-weight:800;z-index:5}.coord.file{bottom:2px;right:3px}.coord.rank{top:2px;left:3px}.game-panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;margin:62px 0;padding:20px;display:flex;flex-direction:column}.game-panel h2{font-size:16px}.move-list{flex:1;min-height:250px;overflow:auto;background:#f5f2e9;border-radius:10px;padding:10px}.move-list p{text-align:center;color:var(--muted);font-size:12px;margin-top:50px}.move-list div{display:grid;grid-template-columns:30px 1fr 1fr;padding:7px;font-size:13px}.thinking{padding:11px;text-align:center;font-size:12px;color:#91721f}.thinking span{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold);animation:pulse 1s infinite}.game-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.game-actions button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.game-actions svg{width:15px}.game-actions .danger{color:#b94848}.modal-backdrop{position:fixed;inset:0;background:#10251cab;display:grid;place-items:center;z-index:20}.promotion{background:#fff;border-radius:20px;padding:28px;text-align:center}.promotion>div{display:flex;gap:10px}.promotion button{font-size:48px;width:74px;height:74px;border:1px solid var(--line);background:#f5f0e5;border-radius:12px;cursor:pointer}.result-bar{position:fixed;z-index:15;left:50%;bottom:24px;transform:translate(-50%);width:min(620px,calc(100% - 32px));background:#fff;padding:18px 24px;border-radius:18px;box-shadow:0 12px 50px #0005;display:flex;align-items:center;justify-content:space-between}.result-bar h2,.result-bar p{margin:3px 0}.sub-hero{text-align:center;padding:30px 0}.sub-hero h1{font-size:clamp(30px,5vw,48px);margin:10px}.sub-hero p{color:var(--muted)}.success{max-width:620px;margin:0 auto 24px;background:#e0f2e5;color:#2f6c41;border-radius:12px;padding:14px;display:flex;gap:10px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.product-grid article{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:25px;text-align:center}.product-grid article.popular{border:2px solid var(--gold)}.product-grid .ribbon{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);background:var(--gold);padding:5px 10px;border-radius:8px;font-size:8px;font-weight:800}.product-icon{width:54px;height:54px;display:grid;place-items:center;background:#f6e8bf;color:#b24f4f;border-radius:50%;margin:auto}.product-grid h2{font-size:17px}.product-grid p{min-height:42px;color:var(--muted);font-size:12px}.product-grid .primary{width:100%}.narrow{max-width:740px}.settings-list{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.settings-list button{width:100%;display:flex;align-items:center;gap:16px;border:0;border-bottom:1px solid var(--line);background:#fff;padding:18px;text-align:left;cursor:pointer}.settings-list button>span{display:flex;flex-direction:column}.settings-list small{color:var(--muted)}.settings-list button>i{margin-left:auto;width:40px;height:22px;border-radius:12px;background:#ccc;position:relative}.settings-list button>i:after{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;top:2px;left:2px;transition:.2s}.settings-list button>i.on{background:var(--green)}.settings-list button>i.on:after{left:20px}.settings-list button>svg:last-child{margin-left:auto}.legal-links{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin-top:24px;font-size:12px;color:var(--muted)}.puzzle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.puzzle-grid article{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px}.puzzle-grid article>span{font-size:22px;color:#b68a27;font-weight:800}.puzzle-grid article div{display:flex;flex-direction:column}.puzzle-grid article small{color:var(--muted)}.puzzle-grid article svg{margin-left:auto;color:#85a08f}.legal{background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;line-height:1.8}.legal h1{font-size:36px}.legal p{color:#55645c}[data-theme=dark]{color-scheme:dark;--ink:#e9eee9;--paper:#1d3028;--line:#415149;--muted:#a5b0aa;background:#10221b;color:#e9eee9}html[data-theme=dark] body{background:#10221b}html[data-theme=dark] .app-header,html[data-theme=dark] .icon-button,html[data-theme=dark] .heart-badge,html[data-theme=dark] .quick-card,html[data-theme=dark] .level-list button,html[data-theme=dark] .choice-row button,html[data-theme=dark] .settings-list button{background:#1a2d25;color:#e9eee9}html[data-theme=dark] .mode-card,html[data-theme=dark] .setup-card,html[data-theme=dark] .product-grid article,html[data-theme=dark] .puzzle-grid article,html[data-theme=dark] .legal{background:#1d3028}@keyframes pulse{50%{opacity:.2;transform:scale(1.5)}}@media(max-width:850px){.game-layout{grid-template-columns:minmax(300px,650px)}.game-panel{margin:0}.hero-knight{right:-20%}.product-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.app-header{height:62px;padding:0 14px}.brand span:last-child{display:none}.header-actions{gap:6px}.home{padding:20px 14px 70px}.hero{min-height:330px;padding:35px 25px;border-radius:20px}.hero h1{font-size:42px}.hero-knight{font-size:190px;right:-32%}.player-strip{margin:-18px 10px 0;padding:14px}.rating{margin-left:auto;border:0;padding:0}.stats{display:none}.section-heading{align-items:start}.offline{display:none}.mode-grid,.quick-grid,.product-grid,.puzzle-grid{grid-template-columns:1fr}.mode-card{min-height:105px;padding:16px}.setup-page,.sub-page{padding:22px 14px 60px}.setup-card{padding:22px 16px}.choice-row{grid-template-columns:1fr}.game-page{padding:10px 8px}.game-top{margin-bottom:5px}.game-layout{display:block}.board{border-width:5px}.opponent-row{height:54px}.game-panel{margin-top:12px}.game-panel .move-list{min-height:100px;max-height:140px}.piece{font-size:clamp(32px,11vw,52px)}.result-bar{bottom:10px}.legal{padding:25px}.header-actions .heart-badge span{display:none}}.connection{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:18px;display:inline-flex;align-items:center;gap:6px;background:var(--paper);font-size:10px;font-weight:800;white-space:nowrap}.connection svg{width:14px}.connection.online{color:#2f7651}.connection.offline{color:#a85c4f;cursor:pointer}.connection.connecting svg{animation:spin 1s linear infinite}.account-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow);display:grid;gap:20px}.account-card.centered{text-align:center;justify-items:center}.account-card.centered>svg{width:52px;height:52px;color:var(--muted)}.account-avatar{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--green);color:var(--gold)}.account-card code{display:block;margin-top:5px;overflow-wrap:anywhere;color:var(--muted)}.account-card form{display:grid;gap:8px}.account-card form label{font-size:12px;font-weight:800}.account-card form>div{display:flex;gap:8px}.account-card input{flex:1;min-width:0;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);padding:12px}.account-notice{margin:0;color:#4f7e60}.text-danger{justify-self:start;border:0;background:none;color:#b14d4d;display:flex;align-items:center;gap:8px;cursor:pointer}.mode-explainer{margin-top:15px;padding:16px;border:1px solid var(--line);border-radius:14px;display:flex;gap:12px;align-items:center}.mode-explainer div{display:flex;flex-direction:column}.mode-explainer span{font-size:11px;color:var(--muted);margin-top:3px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:620px){.connection{padding:0 8px}.connection:not(.online){font-size:0}.account-card form>div{display:grid}.header-actions .connection{display:none}}.online-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.online-options section{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:28px;display:grid;gap:14px}.online-options section>span{width:52px;height:52px;border-radius:15px;background:var(--green);color:var(--gold);display:grid;place-items:center}.online-options h2{margin:4px 0}.online-options label{font-size:12px;font-weight:800}.online-options select,.online-options input{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);padding:13px}.online-options form{display:grid;gap:12px}.online-options section>small{display:flex;align-items:center;gap:5px;color:var(--muted)}.online-error{padding:12px;border-radius:10px;background:#f8dede;color:#9c3d3d}.online-loading,.waiting-room{margin:70px auto;text-align:center}.online-loading svg{animation:spin 1s linear infinite}.waiting-room{max-width:560px;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:45px}.waiting-room h1{font-size:56px;letter-spacing:.16em;margin:10px}.waiting-room p{color:var(--muted);line-height:1.7}.waiting-pulse{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;background:#dcecdf;color:#36724d;animation:pulse 1.5s infinite}.online-turn{padding:14px 4px;display:flex;gap:8px}.online-turn span{margin-left:auto;color:var(--muted)}.online-panel{margin-top:46px}.realtime-status{font-size:11px;color:#3d7655;display:flex;align-items:center;gap:6px;padding:12px 0}.online-panel>button{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:10px;display:flex;justify-content:center;gap:7px}@media(max-width:700px){.online-options{grid-template-columns:1fr}.waiting-room{margin:35px auto;padding:28px 18px}.waiting-room h1{font-size:40px}.online-panel{margin-top:12px}}.online-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.online-shortcuts>a{background:var(--green);color:#fff;border-radius:17px;padding:20px;display:flex;align-items:center;gap:14px}.online-shortcuts>a>svg{color:var(--gold)}.online-shortcuts span{display:flex;flex-direction:column}.online-shortcuts small{color:#c9d5ce;margin-top:3px}.match-setup,.match-search{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:35px;text-align:center;display:grid;justify-items:center;gap:18px}.ranked-mark,.radar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:var(--gold)}.radar{animation:pulse 1.5s infinite}.match-search p{font-size:24px;font-weight:800;margin:0;display:flex;align-items:center;gap:8px}.match-search span{color:var(--muted);font-size:12px}.cancel-match{border:1px solid #d9aaaa;background:transparent;color:#a44343;border-radius:11px;padding:11px 18px;display:flex;gap:7px}.time-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%}.time-choices button{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:14px;display:grid}.time-choices button.active{border-color:var(--gold);background:#fff4d3}.time-choices b{font-size:22px}.time-choices span{font-size:10px;color:var(--muted)}.period-tabs{display:flex;justify-content:center;gap:7px;margin-bottom:20px}.period-tabs button{border:1px solid var(--line);background:var(--paper);padding:9px 15px;border-radius:18px}.period-tabs button.active{background:var(--green);color:#fff}.leaderboard-table{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden}.leaderboard-head,.leaderboard-table>div:not(.leaderboard-head){display:grid;grid-template-columns:70px 1fr 180px 90px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line)}.leaderboard-head{font-size:10px;font-weight:800;color:var(--muted)}.leaderboard-table>div>span:nth-child(2){display:flex;align-items:center;gap:10px}.leaderboard-table i{width:34px;height:34px;border-radius:10px;background:#e4cc83;display:grid;place-items:center;font-style:normal;font-size:10px}.leaderboard-table .podium{background:#fff9e9}.leaderboard-table .podium>span:first-child svg{color:#cf9c23}.leaderboard-table strong{text-align:right;font-size:18px}.leaderboard-empty{text-align:center;padding:70px;color:var(--muted)}.leaderboard-empty>svg{width:45px;height:45px}@media(max-width:650px){.online-shortcuts{grid-template-columns:1fr}.time-choices{grid-template-columns:1fr 1fr}.period-tabs{overflow:auto;justify-content:start}.period-tabs button{white-space:nowrap}.leaderboard-head,.leaderboard-table>div:not(.leaderboard-head){grid-template-columns:45px 1fr 60px;padding:12px}.leaderboard-head span:nth-child(3),.leaderboard-table>div>span:nth-child(3){display:none}}.board{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}.board .square{min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;line-height:1}.board .piece{max-width:100%;max-height:100%;-webkit-user-select:none;user-select:none;pointer-events:none}.game-page{height:calc(100dvh - 72px);max-height:calc(100dvh - 72px);overflow:hidden;display:flex;flex-direction:column}.game-page .game-top{flex:0 0 48px;margin-bottom:8px}.game-page .game-top>div:nth-child(2){width:min(260px,45vw);height:40px;justify-content:center;overflow:hidden}.game-page .game-top>div:nth-child(2) strong{display:block;min-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-page .game-layout{flex:1;min-height:0;align-items:center}.game-page .board-column{width:min(680px,calc(100vw - 410px),calc(100dvh - 252px));min-width:300px;margin-inline:auto}.game-page .opponent-row{height:50px}.game-page .board{width:100%;max-width:100%;max-height:calc(100dvh - 252px)}.game-page .game-panel{height:min(100%,calc(100dvh - 150px));max-height:700px;min-height:0;margin:0;overflow:hidden}.game-page .move-list{min-height:0}.game-page .online-panel{margin:0}@media(max-width:850px){.game-page .game-layout{display:flex;flex-direction:column;justify-content:flex-start;gap:6px}.game-page .board-column{width:min(calc(100vw - 24px),calc(100dvh - 338px));min-width:280px;flex:0 0 auto}.game-page .board{max-height:none}.game-page .game-panel{width:min(680px,calc(100vw - 24px));height:auto;min-height:66px;flex:0 0 auto;padding:8px;margin:0}.game-page .game-panel h2,.game-page .game-panel .move-list{display:none}.game-page .game-actions{grid-template-columns:repeat(4,1fr);margin-top:0}.game-page .game-actions button{padding:8px 4px}.game-page .online-panel{display:flex;flex-direction:row;align-items:center;gap:8px}.game-page .online-panel .realtime-status{flex:1}}@media(max-width:620px){.game-page{height:calc(100dvh - 62px);max-height:calc(100dvh - 62px);padding:4px 8px}.game-page .game-top{flex-basis:42px;margin:0}.game-page .game-top>div:nth-child(2){height:38px}.game-page .board-column{width:min(calc(100vw - 16px),calc(100dvh - 300px));min-width:250px}.game-page .opponent-row{height:43px}.game-page .opponent-row .avatar{width:34px;height:34px}.game-page .opponent-row time{font-size:16px}.game-page .game-panel{width:calc(100vw - 16px);min-height:58px}.game-page .game-actions button{font-size:9px}.game-page .game-actions button svg{width:13px}}.game-page .online-turn{height:44px;min-height:44px;overflow:hidden;align-items:center;white-space:nowrap}.game-page .thinking{height:38px;min-height:38px}.game-page .game-actions button:disabled{color:#78857e;background:#edf0ed;border-color:#d5ddd8;opacity:1;cursor:not-allowed}html[data-theme=dark] .game-page .game-actions button{color:#e9eee9;background:#263d33;border-color:#4b6157}html[data-theme=dark] .game-page .game-actions button:disabled{color:#9eaaa4;background:#20352c;border-color:#3f554b}html[data-theme=dark] .game-page .game-actions .danger{color:#f07872;background:#342c29;border-color:#6c4743}@media(max-height:620px)and (orientation:landscape){.game-page .game-layout{display:grid;grid-template-columns:minmax(260px,1fr) 280px}.game-page .board-column{width:calc(100dvh - 170px);min-width:260px}.game-page .opponent-row{height:34px}.game-page .game-panel{width:100%;height:calc(100dvh - 130px)}}.result-bar{top:50%;bottom:auto;transform:translate(-50%,-50%)}.result-actions{display:flex;align-items:center;gap:10px}.replay-button{border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:13px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.replay-button svg{width:18px}.replay-button:hover{border-color:var(--gold);background:#fff8e6}@media(max-width:560px){.result-bar{display:grid;grid-template-columns:1fr;align-items:stretch;gap:14px;padding:18px 20px;bottom:auto}.result-bar>div:first-child{min-width:0}.result-bar>div:first-child small,.result-bar>div:first-child h2{white-space:nowrap}.result-bar>div:first-child h2{font-size:28px;line-height:1.1}.result-bar>div:first-child p{font-size:12px}.result-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.result-actions .primary,.replay-button{min-width:0;min-height:46px;padding:10px 8px;font-size:12px;white-space:nowrap}.replay-button svg{flex:0 0 auto}}.opponent-row time{min-width:62px;text-align:center;font-variant-numeric:tabular-nums;border-radius:9px;padding:5px 7px;transition:background-color .2s,color .2s}.opponent-row time.clock-active{background:var(--green);color:#fff}.opponent-row time.clock-active:before{content:"●";font-size:7px;color:var(--gold);margin-right:5px;vertical-align:2px}@media(max-width:620px){.opponent-row time{min-width:58px;padding:4px}}.board .svg-piece{display:block;width:88%;height:88%;z-index:3;transform:none;pointer-events:none;-webkit-user-select:none;user-select:none}.board .svg-piece svg{display:block;width:100%;height:100%;overflow:visible}.board .svg-piece.b{filter:drop-shadow(0 2px 1px rgba(0,0,0,.28))}.board .svg-piece.w{filter:invert(1) drop-shadow(0 1.5px 1px rgba(14,35,27,.48))}.game-leave-trigger{border:0;background:transparent;padding:8px 0;cursor:pointer}.leave-dialog-backdrop{padding:18px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.leave-dialog{position:relative;width:min(420px,100%);padding:32px 28px 26px;border:1px solid #ffffff30;border-radius:24px;background:var(--paper);box-shadow:0 24px 80px #06150e99;text-align:center;animation:leave-dialog-in .18s ease-out}.leave-dialog-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:11px;background:#edf0eb;color:var(--muted);display:grid;place-items:center;cursor:pointer}.leave-dialog-close svg{width:18px}.leave-dialog-icon{width:58px;height:58px;margin:0 auto 17px;border-radius:18px;background:#f8e8e4;color:#bd4b43;display:grid;place-items:center}.leave-dialog-icon svg{width:27px}.leave-dialog small{color:#a17822;font-size:10px;font-weight:800;letter-spacing:.12em}.leave-dialog h2{margin:8px 0 7px;font-size:24px}.leave-dialog p{max-width:330px;margin:0 auto 24px;color:var(--muted);font-size:13px;line-height:1.55}.leave-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.leave-dialog-actions button{min-height:48px;border-radius:13px;font-weight:800;cursor:pointer}.stay-button{border:1px solid var(--line);background:#fff}.leave-button{border:0;background:#b94a43;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px}.leave-button svg{width:18px}@keyframes leave-dialog-in{0%{opacity:0;transform:translateY(12px) scale(.97)}}html[data-theme=dark] .leave-dialog-close,html[data-theme=dark] .stay-button{background:#263d33;color:#e9eee9}@media(max-width:620px){.leave-dialog{padding:30px 20px 20px;border-radius:21px}.leave-dialog-actions{grid-template-columns:1fr}}.quick-card:disabled{cursor:not-allowed;opacity:.58}.quick-card small{min-height:1.3em}.restore-purchase{margin:22px auto 0;padding:11px 16px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--muted);display:flex;align-items:center;gap:8px;cursor:pointer}.restore-purchase svg{width:16px}.restore-purchase:disabled{opacity:.55}
