:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#2d2119;background:#efe4d2;color-scheme:light;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 50% -10%,#fffdf7 0,#f5ecdf 38%,#e9d9c1)}body:before{position:fixed;z-index:-1;inset:0;background-image:linear-gradient(rgb(113 67 31 / 2%) 1px,transparent 1px),linear-gradient(90deg,rgb(113 67 31 / 2%) 1px,transparent 1px);background-size:28px 28px;content:"";pointer-events:none}button{font:inherit}.app-layout{width:min(1120px,100%);margin:0 auto;padding:max(14px,env(safe-area-inset-top)) clamp(10px,2vw,24px) max(24px,env(safe-area-inset-bottom))}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(820px,100%);margin:0 auto 12px;transition:margin .2s ease}.eyebrow{margin:0;color:#9c2c26;font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}h1{margin:2px 0 0;color:#5f1d18;font-family:Georgia,serif;font-size:clamp(1.85rem,4vw,2.8rem);line-height:1;letter-spacing:-.035em}h2{margin:0 0 14px;font-size:1rem}.game-controls{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:5px;padding:4px;border:1px solid rgb(158 116 78 / 28%);border-radius:13px;background:#fffcf5ad;box-shadow:0 6px 22px #4c2a1314;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.game-controls button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 10px;border:0;border-radius:9px;color:#65473a;background:transparent;font-size:.78rem;font-weight:800;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}.game-controls .primary-control{color:#fff;background:linear-gradient(145deg,#96342b,#702019);box-shadow:0 4px 10px #651f1838}.game-controls .online-control{color:#0f6547;background:#e4f2e9}.game-controls .icon-control{width:36px;padding:0;font-size:1.18rem}.game-controls button:hover:not(:disabled){color:#fff;background:#7a2922;transform:translateY(-1px)}.game-controls button:disabled{opacity:.3;cursor:not-allowed}.command-panel{width:min(820px,100%);margin:0 auto 10px;padding:8px;border:1px solid rgb(178 140 96 / 38%);border-radius:17px;background:#fffbf2b8;box-shadow:0 10px 28px #4e2d1114;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.setup-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:30px;margin:0 0 6px;padding:3px 7px;border:0;border-radius:8px;color:#806858;background:transparent;font-size:.69rem;font-weight:800;cursor:pointer}.setup-toggle:hover{background:#e2d1b959}.game-setup{display:none;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;margin:0 auto 8px}.game-setup.setup-open{display:flex}.panel-playing{padding:6px 8px;border-radius:14px;box-shadow:0 6px 20px #4e2d110f}.panel-playing .setup-toggle{min-height:24px;margin-bottom:3px}.game-in-progress .app-header{margin-bottom:7px}.game-in-progress .eyebrow{font-size:.56rem}.game-in-progress h1{font-size:clamp(1.55rem,3vw,2.1rem)}.mode-selector{display:flex;justify-content:center;gap:3px;width:fit-content;margin:0;padding:3px;border:1px solid #ddc9ad;border-radius:11px;background:#f7eddd}.mode-selector button{min-height:32px;padding:4px 11px;border:0;border-radius:7px;color:#6a5548;background:transparent;cursor:pointer;font-size:.8rem;font-weight:750}.mode-selector button.active{color:#fff;background:linear-gradient(145deg,#96342b,#702019);box-shadow:0 3px 9px #511e1933}.restore-status{margin:0 auto 8px;color:#765f50;text-align:center;font-size:.82rem}.ai-options{display:flex;justify-content:center;gap:8px;margin:0}.ai-options label{display:flex;align-items:center;gap:7px;color:#6b5546;font-size:.82rem;font-weight:700}.ai-options select{min-height:32px;padding:4px 25px 4px 8px;border:1px solid #ceb696;border-radius:8px;color:#3b2b21;background:#fffaf0;font:inherit}.game-controls button:focus-visible,.chess-piece:focus-visible{outline:4px solid #2364aa;outline-offset:3px}.game-status-row{display:grid;grid-template-columns:minmax(280px,1fr) auto;align-items:center;gap:8px;margin:0 auto}.turn-banner{display:flex;align-items:center;justify-content:center;gap:7px;width:fit-content;min-height:38px;margin:0;padding:6px 14px;border:1px solid #d7c4a7;border-radius:11px;background:#fffaf0;font-size:.82rem;font-weight:850;white-space:nowrap;box-shadow:inset 0 1px #fff}.timers{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin:0}.timers div{display:flex;justify-content:space-between;align-items:center;min-height:38px;padding:6px 11px;border:1px solid #e4d4bd;border-radius:10px;background:#fffaf0;font-size:.82rem;transition:border .2s ease,box-shadow .2s ease}.timers div>span{display:inline-flex;align-items:center;gap:7px;font-weight:700}.timer-dot{width:8px;height:8px;border-radius:50%;background:currentColor}.timers .red{color:#a42821}.timers .black{color:#302b27}.timers .active{border-color:currentColor;box-shadow:0 4px 13px #5023141f}.timers strong{color:#2d2119;font-size:.95rem;font-variant-numeric:tabular-nums;letter-spacing:.02em}.game-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:7px;padding-top:7px;border-top:1px solid rgb(210 188 158 / 58%)}.game-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:4px 10px;border:1px solid #d9c5a8;border-radius:9px;color:#6e5849;background:#fffaf0b8;font-size:.75rem;font-weight:800;cursor:pointer;transition:background .15s ease,border .15s ease,color .15s ease}.game-actions button:hover:not(:disabled){border-color:#9f7960;background:#fffaf0}.game-actions .resign-action:hover:not(:disabled){border-color:#a52d25;color:#94271f;background:#fff1ed}.game-actions button:disabled{opacity:.38;cursor:not-allowed}.turn-disc,.color-mark{display:inline-block;flex:0 0 auto;border-radius:50%}.turn-disc{width:14px;height:14px}.turn-red .turn-disc,.color-mark.red{background:#b62922}.turn-black .turn-disc,.color-mark.black{background:#282421}.game-layout{display:grid;width:min(820px,100%);margin:0 auto;gap:8px}.board-shell{position:relative;overflow:hidden;border:1px solid #9c6937;border-radius:22px;background:#c7934e;box-shadow:0 22px 48px #4e2d113d,0 2px #fff9 inset;line-height:0}.board-shell:after{position:absolute;inset:0;border:6px solid rgb(255 242 206 / 14%);border-radius:inherit;content:"";pointer-events:none}.game-board{display:block;width:100%;height:auto;touch-action:manipulation;-webkit-user-select:none;user-select:none}.board-rotated{transform:rotate(180deg)}.board-lines{fill:none;stroke:#633a20;stroke-width:4;stroke-linecap:round}.board-lines .board-frame{stroke-width:8}.board-lines text{fill:#714326;stroke:none;font:700 34px Georgia,serif;text-anchor:middle;dominant-baseline:middle;letter-spacing:5px}.board-hit-target{fill:transparent;cursor:pointer}.legal-dot{fill:#1a7143;stroke:#e9f9ee;stroke-width:5;pointer-events:none;animation:dot-in .16s ease-out}.chess-piece{cursor:pointer;transition:transform .18s ease}.piece-shadow{fill:#311b0d40;transform:translate(2px,4px)}.piece-face{fill:#f7e7c2;stroke-width:5}.piece-ring{fill:none;stroke-width:3}.piece-red .piece-face,.piece-red .piece-ring{stroke:#a8211d}.piece-black .piece-face,.piece-black .piece-ring{stroke:#25211d}.piece-label{font:700 43px "Noto Serif CJK SC",Songti SC,Georgia,serif;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.piece-red .piece-label{fill:#a8211d}.piece-black .piece-label{fill:#25211d}.hidden-emblem{fill:#7c2d24;stroke:#f1cf8b;stroke-width:3}.piece-black .hidden-emblem{fill:#292522}.hidden-label{fill:#f8dfaa;font:800 38px Georgia,serif;text-anchor:middle;dominant-baseline:middle}.is-selected .piece-face{fill:#fff5bd;stroke:#157347;stroke-width:8}.was-moved .piece-shadow{fill:#2e7d32;opacity:.55}.is-checked .piece-face{fill:#ffc5bc;animation:checked 1s ease-in-out infinite}.capture-tray{display:flex;align-items:center;gap:10px;min-height:46px;padding:5px 10px;border:1px solid #d8c4a5;border-radius:12px;background:#fffbf3cc;overflow:hidden;box-shadow:0 5px 16px #4528140f}.capture-tray.is-empty{min-height:8px;padding:0;border-color:transparent;background:transparent;box-shadow:none}.captured-tokens{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;padding:2px}.captured-token{display:inline-grid;flex:0 0 auto;place-items:center;width:32px;height:32px;border:2px solid currentColor;border-radius:50%;background:linear-gradient(145deg,#fff3d7,#ead4aa);font:800 20px "Noto Serif CJK SC",Songti SC,Georgia,serif;box-shadow:0 2px 5px #3b22112e}.token-red{color:#a8211d}.token-black{color:#25211d}.result-message{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%);margin:0;padding:14px 24px;border-radius:14px;color:#fff;background:#402116;box-shadow:0 8px 28px #00000040;font-weight:800}.modal-backdrop{position:fixed;z-index:10;inset:0;display:grid;place-items:center;padding:20px;background:#20130c8c}.settings-modal{width:min(420px,100%);padding:20px;border-radius:20px;background:#fffaf1;box-shadow:0 22px 60px #0000004d}.help-modal{width:min(520px,100%);max-height:min(720px,90vh);overflow-y:auto;padding:22px;border:1px solid #e1ccb0;border-radius:22px;background:#fffaf1;box-shadow:0 24px 70px #00000052}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:2px 0 0;color:#542018;font-family:Georgia,serif;font-size:1.55rem}.modal-kicker{margin:0;color:#9c2c26;font-size:.66rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.modal-header button{width:42px;height:42px;border:0;border-radius:50%;background:#eee0cc;font-size:1.5rem;cursor:pointer}.help-content{display:grid;gap:4px;margin:18px 0}.help-content article{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:13px 4px;border-top:1px solid #eadbc6}.help-content article:first-child{border-top:0}.help-content h3{margin:0 0 3px;color:#442a20;font-size:.92rem}.help-content p{margin:0;color:#745e50;font-size:.84rem;line-height:1.48}.help-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;background:#832b24;font-size:.76rem;font-weight:900}.modal-primary,.modal-secondary{min-height:42px;padding:8px 16px;border:0;border-radius:11px;font-weight:850;cursor:pointer}.modal-primary{width:100%;color:#fff;background:linear-gradient(145deg,#96342b,#702019);box-shadow:0 5px 14px #651f1833}.modal-secondary{color:#65473a;background:#eee0cc}.result-backdrop{z-index:12}.result-modal{width:min(390px,100%);padding:28px 24px 24px;border:1px solid #e1ccb0;border-radius:24px;background:radial-gradient(circle at top,#fffef9,#f8ecda);box-shadow:0 28px 80px #00000059;text-align:center}.result-modal h2{margin:5px 0 8px;color:#542018;font-family:Georgia,serif;font-size:1.8rem}.result-modal>p:not(.modal-kicker){margin:0;color:#735c4c;font-size:.9rem}.result-emblem{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 16px;border:4px double currentColor;border-radius:50%;color:#9e2e27;background:#f8e6bd;font:800 37px "Noto Serif CJK SC",Songti SC,Georgia,serif;box-shadow:0 8px 22px #4a24132e}.result-emblem.emblem-black{color:#2c2925}.result-stat{display:block;width:fit-content;margin:17px auto;padding:5px 11px;border-radius:999px;color:#72594a;background:#eee0cc;font-size:.76rem;font-weight:800}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.online-page{position:fixed;z-index:14;inset:0;overflow-y:auto;background-color:#e9dfcc;background-image:linear-gradient(#fffcf429,#261c1624),url(/images/ink-mountains-bg.jpg);background-position:center top;background-size:cover;background-attachment:fixed}.online-page:before{position:fixed;inset:0;background-image:linear-gradient(rgb(113 67 31 / 2%) 1px,transparent 1px),linear-gradient(90deg,rgb(113 67 31 / 2%) 1px,transparent 1px);background-size:28px 28px;content:"";pointer-events:none}.online-lobby{position:relative;width:min(960px,100%);min-height:100dvh;margin:0 auto;padding:max(22px,env(safe-area-inset-top)) clamp(16px,3vw,32px) max(28px,env(safe-area-inset-bottom));background:linear-gradient(90deg,transparent,rgb(255 250 241 / 34%) 12%,rgb(255 250 241 / 34%) 88%,transparent);transition:width .2s ease}.online-lobby:not(.lobby-playing)>:not(.online-page-header){width:min(680px,100%);margin-inline:auto}.online-lobby.lobby-playing{width:min(1020px,100%);padding:max(14px,env(safe-area-inset-top)) clamp(8px,2vw,22px) max(18px,env(safe-area-inset-bottom))}.online-lobby.lobby-playing>.modal-header{margin-bottom:9px}.online-lobby.lobby-playing>.modal-header>div{display:flex;align-items:baseline;gap:8px}.online-lobby.lobby-playing>.modal-header h2{font-size:1.15rem}.online-lobby .modal-header{margin-bottom:17px}.online-page-header{min-height:58px;padding-bottom:12px;border-bottom:1px solid rgb(190 157 119 / 30%)}.online-page-header .online-exit{width:auto;min-width:128px;height:38px;padding:6px 12px;border:1px solid #d8c4a7;border-radius:10px;color:#70584a;background:#fffaf0;font-size:.76rem;font-weight:800;cursor:pointer}.lobby-hero{display:grid;justify-items:center;margin-bottom:16px!important;padding:8px 0 4px;text-align:center}.hero-seal{display:grid;place-items:center;width:58px;height:58px;margin-bottom:7px;border:3px double #f3d49b;border-radius:50%;color:#f8e5b6;background:radial-gradient(circle at 35% 30%,#a74333,#5f1814 72%);box-shadow:0 8px 20px #461d1140,inset 0 0 0 4px #ffebba1f;font:800 30px Georgia,serif}.lobby-hero p{margin:0;color:#8d3328;font-size:.62rem;font-weight:900;letter-spacing:.18em}.lobby-hero h1{margin:2px 0 3px;color:#4e251d;font-size:clamp(2rem,7vw,3.2rem);text-shadow:0 2px #fff6e5}.lobby-hero small{color:#705d50;font-size:.78rem}.game-mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:clamp(10px,3vw,20px);margin-block:14px!important}.mode-card{position:relative;display:grid;justify-items:center;min-height:190px;padding:18px 12px 14px;border:2px solid rgb(105 70 46 / 28%);border-radius:50% 50% 22px 22px/34% 34% 22px 22px;color:#4e2e23;background:radial-gradient(circle at 50% 34%,#fff8e2f0,#cdb791e0);box-shadow:0 14px 26px #3622162e,inset 0 0 0 5px #fff8de59;cursor:pointer;transition:transform .16s ease,border .16s ease,box-shadow .16s ease}.mode-card:after{position:absolute;inset:9px;border:1px solid rgb(106 73 48 / 18%);border-radius:inherit;content:"";pointer-events:none}.mode-card:hover,.mode-card.active{transform:translateY(-3px);border-color:#8f3429;box-shadow:0 18px 34px #4824153b,0 0 0 4px #8f342917}.hidden-card{background:radial-gradient(circle at 50% 34%,#fff1e4f2,#d1a891e0)}.mode-coins{position:relative;width:112px;height:94px}.mode-coins i{position:absolute;top:6px;display:grid;place-items:center;width:78px;height:78px;border:4px double currentColor;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff2cb,#d5ae68);box-shadow:0 8px 12px #3e251547;font:800 35px "Noto Serif CJK SC",Songti SC,Georgia,serif;font-style:normal}.mode-coins i:first-child{left:0;color:#292522;transform:rotate(-10deg)}.mode-coins i:last-child{right:0;color:#a8211d;transform:rotate(9deg)}.hidden-card .mode-coins i:first-child{color:#f6dca8;background:radial-gradient(circle at 35% 28%,#8c352b,#3e1f1a)}.mode-card b{position:relative;z-index:1;color:#56271f;font-family:Georgia,serif;font-size:1.3rem}.mode-card small{position:relative;z-index:1;margin-top:3px;color:#786052}.lobby-quick{display:block;width:min(420px,100%)!important;min-height:48px;margin:2px auto 14px!important;border-radius:999px;font-size:.9rem;letter-spacing:.02em}.device-profile{display:grid;grid-template-columns:auto minmax(150px,1fr);align-items:center;gap:12px;margin-bottom:12px;padding:10px 11px;border:1px solid #ded0ba;border-radius:12px;background:#f8efe1}.device-profile>div{display:grid;gap:2px}.device-profile span{color:#5e493c;font-size:.76rem;font-weight:850}.device-profile small{color:#927a68;font-size:.61rem}.device-profile input{min-width:0;min-height:36px;padding:6px 10px;border:1px solid #d4bfa1;border-radius:9px;color:#3f2b21;background:#fffdf8;font:inherit;font-size:.82rem;font-weight:750;outline:none}.device-profile input:focus{border-color:#8c352c;box-shadow:0 0 0 3px #8c352c1a}.online-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.quick-match{min-height:39px;padding:7px 16px;border:0;border-radius:11px;color:#fff;background:linear-gradient(145deg,#167452,#0c533a);box-shadow:0 5px 14px #0f5b3f38;font-weight:850;cursor:pointer}.join-code,.create-room{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:10px}.join-code input,.create-room input{min-width:0;min-height:42px;padding:8px 12px;border:1px solid #d9c5a8;border-radius:10px;color:#38271e;background:#fffdf8;font:inherit;outline:none}.join-code input{letter-spacing:.14em;text-transform:uppercase}.join-code input:focus,.create-room input:focus{border-color:#8c352c;box-shadow:0 0 0 3px #8c352c1a}.join-code button,.create-room button,.room-card>button{min-height:40px;padding:7px 13px;border:1px solid #a64a3f;border-radius:10px;color:#842d25;background:#fff7f1;font-size:.8rem;font-weight:850;cursor:pointer}.online-error{margin:10px 0 0;padding:9px 11px;border-radius:9px;color:#94271f;background:#fff0ec;font-size:.8rem}.room-list-header{display:flex;align-items:center;justify-content:space-between;margin:20px 0 8px}.room-list-header h3{margin:0;font-size:.9rem}.room-list-header button{width:32px;height:32px;border:0;border-radius:50%;color:#72594a;background:#eee0cc;cursor:pointer}.room-list{display:grid;gap:8px}.room-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e1ceb3;border-radius:13px;background:#fffdf8}.room-card.room-quick{border-color:#b9d8c7;background:#f4fbf6}.room-kind{color:#8b6f5d;font-size:.66rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.room-quick .room-kind{color:#167452}.room-card h4{margin:3px 0;color:#422a20;font-size:.92rem}.room-card p{margin:0;color:#856e5e;font-size:.74rem}.empty-rooms{padding:22px;color:#8a7363;text-align:center}.room-ready{display:grid;justify-items:center;gap:7px;padding:28px 10px 10px;text-align:center}.room-ready p{margin:0;color:#71594b;font-weight:750}.room-ready strong{color:#60231d;font-size:2rem;letter-spacing:.16em}.room-ready small{margin-bottom:15px;color:#7d6656}.online-pulse{width:18px;height:18px;border:5px solid #bee0cb;border-radius:50%;background:#178057;box-shadow:0 0 #17805759;animation:online-pulse 1.6s infinite}.online-match{display:grid;gap:8px}.online-match .board-shell{width:min(680px,100%);margin:0 auto;border-radius:14px}.battle-player{display:grid;grid-template-columns:auto 1fr auto;align-items:center;width:min(680px,100%);margin:0 auto;padding:7px 10px;border:1px solid #a47749;border-radius:12px;color:#f9e9c4;background:linear-gradient(145deg,#442b1df0,#231b16f0);box-shadow:0 7px 18px #24181138}.player-avatar{display:grid;place-items:center;width:38px;height:38px;margin-right:9px;border:2px solid #d7aa64;border-radius:50%;color:#6f241e;background:#f4dab0;font:900 18px Georgia,serif}.battle-player>div{display:grid;gap:1px}.battle-player small{color:#c4a87b;font-size:.55rem;font-weight:850;letter-spacing:.08em}.battle-player strong{overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.battle-player>i{padding:4px 7px;border-radius:999px;color:#c6b9a8;background:#ffffff14;font-size:.58rem;font-style:normal;font-weight:800}.battle-player>i.connected{color:#c8f1d9;background:#208b5b3d}.self-player{background:linear-gradient(145deg,#6d271ff2,#3e1916f2)}.online-match-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}.online-match-bar>div{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:9px}.online-match-bar .online-pulse{grid-row:1 / 3}.online-match-bar strong{color:#542018;font-size:.88rem}.online-match-bar small{color:#806a5b}.online-match-bar>button{padding:6px 10px;border:0;border-radius:8px;color:#755d4e;background:#eee0cc;font-weight:750;cursor:pointer}.match-header-actions{display:flex;gap:5px}.match-header-actions button{padding:6px 9px;border:0;border-radius:8px;color:#755d4e;background:#eee0cc;font-size:.72rem;font-weight:800;cursor:pointer}.match-header-actions button:first-child{color:#0e6748;background:#e2f2e8}.online-players{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.online-players b{color:#a68b76;font-size:.64rem}.player-seat{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:7px 8px;border:1px solid #dfcdb4;border-radius:10px;color:#604b3e;background:#fffaf0;overflow:hidden;font-size:.73rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.player-seat i{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#b5a99e}.player-seat i.connected{background:#19845b;box-shadow:0 0 0 3px #19845b1f}.online-board-locked{position:relative;filter:saturate(.55)}.online-board-locked:after{position:absolute;z-index:2;inset:0;border-radius:14px;background:#fffaf147;content:"";cursor:not-allowed}.online-turn{width:fit-content;margin:0 auto;padding:5px 12px;border-radius:999px;color:#5d493d;background:#eee0cc;font-size:.78rem;font-weight:850}.online-match-actions{display:flex;justify-content:center;gap:7px}.online-match-actions button{min-height:34px;padding:5px 14px;border:1px solid #d7c2a4;border-radius:9px;color:#6e5749;background:#fffaf0;font-size:.76rem;font-weight:800;cursor:pointer}@keyframes online-pulse{70%{box-shadow:0 0 0 12px transparent}}.setting-row{display:flex;align-items:center;justify-content:space-between;min-height:52px;border-top:1px solid #eadbc6;font-weight:650}.setting-row input{width:22px;height:22px;accent-color:#852d26}.pwa-notice{position:fixed;z-index:8;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;color:#fff;background:#402116;box-shadow:0 10px 30px #00000047;font-size:.88rem}.pwa-notice button{min-height:36px;padding:5px 12px;border:0;border-radius:9px;color:#5d1d18;background:#f5d99f;font-weight:800;cursor:pointer}@keyframes dot-in{0%{transform:scale(.25);opacity:0}}@keyframes checked{50%{fill:#ff8f80}}@media(max-width:520px){.app-layout{padding:max(10px,env(safe-area-inset-top)) 7px max(16px,env(safe-area-inset-bottom))}.app-header{align-items:flex-end;gap:8px;padding-inline:3px}.eyebrow{max-width:150px;font-size:.57rem}h1{font-size:clamp(1.55rem,7.5vw,2rem)}.game-controls{gap:2px;padding:3px}.game-controls button{min-height:34px;padding-inline:7px}.game-controls .icon-control{width:34px;padding:0}.game-controls .control-label{display:none}.game-controls .primary-control,.game-controls .pause-control{width:34px;padding:0;font-size:1rem}.command-panel{padding:6px;border-radius:14px}.setup-toggle{min-height:27px}.game-setup{justify-content:stretch}.game-setup .mode-selector{flex:1}.mode-selector button{flex:1;padding-inline:7px}.game-status-row{grid-template-columns:1fr;gap:6px}.turn-banner{width:100%;min-height:34px;padding-block:4px}.game-actions{justify-content:stretch}.game-actions button{flex:1}.board-shell{border-radius:13px}.capture-tray{min-height:43px;padding-block:4px}.captured-token{width:29px;height:29px;font-size:18px}.online-lobby{padding:max(12px,env(safe-area-inset-top)) 10px max(18px,env(safe-area-inset-bottom))}.online-lobby.lobby-playing{width:100%;padding:max(8px,env(safe-area-inset-top)) 6px max(12px,env(safe-area-inset-bottom))}.online-lobby.lobby-playing .modal-header{padding-inline:5px}.online-page-header .online-exit{min-width:auto;padding-inline:9px;font-size:.68rem}.game-in-progress .app-header{margin-bottom:5px}.game-in-progress .app-header>div:first-child{display:none}.game-in-progress .app-header{justify-content:center}.online-toolbar{align-items:stretch}.device-profile{grid-template-columns:1fr;gap:7px}.online-toolbar .mode-selector{flex:1}.quick-match{padding-inline:11px}.lobby-hero{margin-bottom:10px!important}.hero-seal{width:48px;height:48px;font-size:25px}.lobby-hero h1{font-size:2rem}.game-mode-cards{gap:8px;margin-block:10px!important}.mode-card{min-height:155px;padding:12px 6px 10px}.mode-coins{width:88px;height:74px}.mode-coins i{width:61px;height:61px;font-size:28px}.mode-card b{font-size:1.05rem}.mode-card small{font-size:.65rem}.battle-player{border-radius:9px}.room-card{padding:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
