:root{font-family:Leelawadee UI,Noto Sans Thai,Tahoma,system-ui,sans-serif;color:#233d34;background:#f5f4ee;font-synthesis:none;--green:#174b3b;--green-light:#e9f1e9;--muted:#7c867c;--line:#e2e5db;--paper:#fffefa;--gold:#a78043;--shadow:0 8px 30px #1c392708}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #66a27f;outline-offset:3px}button{color:inherit}svg{display:block}a{color:var(--green)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:86px minmax(0,1fr);min-height:100vh}.rail{position:sticky;top:0;height:100vh;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:27px 12px;gap:11px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:var(--green);color:#fff;font-family:Georgia,serif;font-size:27px;font-weight:500;position:relative;margin-bottom:26px}.brand-mark:after{content:"";width:9px;height:9px;background:#d9c18c;border-radius:50%;position:absolute;bottom:8px;right:8px}.rail-item{display:flex;flex-direction:column;align-items:center;gap:6px;width:62px;padding:12px 2px;border:0;background:transparent;border-radius:12px;color:#8b9387;font-size:10px;white-space:nowrap}.rail-item:hover,.rail-item.active{background:var(--green-light);color:var(--green)}.rail-spacer{flex:1}.rail-badge{writing-mode:vertical-rl;font:10px system-ui;letter-spacing:3px;color:#a6ad9f;margin-bottom:10px}.workspace{padding:0 38px 22px;max-width:1720px;width:100%;margin:auto}.topbar{height:105px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.eyebrow{color:var(--muted);font:10px system-ui;letter-spacing:2.3px;text-transform:uppercase;margin-bottom:8px}.brand-title{margin:0;font:600 24px Georgia,serif;letter-spacing:-.6px}.brand-title span{font-family:inherit;color:#90a18d;font-weight:400}.top-actions{display:flex;align-items:center;gap:12px}.pill{display:inline-flex;gap:7px;align-items:center;padding:7px 11px;background:#ebf2e8;color:#64815b;border-radius:20px;font-size:11px;white-space:nowrap}.dot{width:6px;height:6px;border-radius:50%;background:#6e9861;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:9px 15px;border:1px solid var(--line);background:var(--paper);border-radius:9px;font-size:12px;font-weight:600;transition:background .15s,transform .15s}.button:hover{background:#edf1e7}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#226047}.button.quiet{border-color:transparent;background:transparent;color:var(--muted)}.button.danger{color:#a14f42}.button .icon{width:16px;height:16px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;padding:27px 0 24px;gap:15px}.page-heading h1{font-size:24px;font-weight:600;letter-spacing:-.5px;margin:0 0 6px}.page-heading p{font-size:12px;color:var(--muted);margin:0}.model-switch{display:flex;background:#eaece3;border-radius:10px;padding:4px;gap:3px}.model-option{border:0;border-radius:7px;background:transparent;padding:8px 17px;font:600 12px system-ui;color:#818b7c;display:flex;align-items:center;gap:9px}.model-option small{font:10px system-ui;opacity:.75}.model-option.active{background:var(--paper);color:var(--green);box-shadow:0 2px 5px #273b2110}.game-layout{display:grid;grid-template-columns:minmax(360px,1fr) 324px;gap:26px;align-items:start}.board-column{min-width:0}.players{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.player-card{display:flex;align-items:center;gap:11px;padding:14px 17px;background:var(--paper);border:1px solid var(--line);border-radius:12px;min-width:0}.player-card.current{border-color:#7c9a76;box-shadow:0 0 0 2px #7e9d6a0a}.stone-avatar{width:33px;height:33px;border-radius:50%;flex-shrink:0;box-shadow:0 3px 5px #12231420}.stone-avatar.black{background:radial-gradient(circle at 35% 25%,#555,#151817 55%,#060b08)}.stone-avatar.white{background:radial-gradient(circle at 35% 25%,#fff,#f2f1e9 60%,#d9d8ce);border:1px solid #e2e3d9}.player-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.player-sub{font-size:10px;color:var(--muted);margin-top:5px}.player-clock{margin-left:auto;text-align:right;font:500 20px Segoe UI,system-ui;letter-spacing:.5px;color:#6e796a}.player-clock small{font:10px Tahoma;display:block;letter-spacing:0;margin-top:5px;color:#9ca393}.player-clock.low{color:#b16445}.board-frame{position:relative;background:#d7b97c;border-radius:13px;padding:7px;box-shadow:0 10px 25px #5e472221,inset 0 0 0 1px #b39a652e}.board-wrap{width:100%;max-width:720px;margin:0 auto;touch-action:none;border-radius:9px;overflow:hidden;position:relative;background:#dfc38d}.board-wrap svg{width:100%;height:auto;user-select:none;touch-action:none}.board-wrap.is-busy{cursor:progress}.board-wrap:not(.is-busy){cursor:crosshair}.board-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 2px 12px;font-size:11px;color:var(--muted)}.board-caption .turn{display:flex;align-items:center;gap:8px;color:var(--green);font-weight:600}.board-caption .dot{background:var(--green)}.board-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 13px;background:var(--paper);border:1px solid var(--line);border-radius:11px}.tools-group{display:flex;align-items:center;gap:3px}.tool{height:34px;min-width:34px;padding:6px 8px;display:grid;place-items:center;background:transparent;border:0;border-radius:6px;color:#7c8977}.tool .icon{width:17px;height:17px}.tool:hover,.tool.active{color:var(--green);background:var(--green-light)}.separator{height:19px;width:1px;background:var(--line);margin:0 7px}.main-controls{display:flex;gap:9px;margin-top:14px;flex-wrap:wrap}.main-controls .button{flex:1;white-space:nowrap}.timeline{display:flex;align-items:center;gap:10px;margin:15px 0 6px}.timeline .range{flex:1;min-width:0;accent-color:var(--green);height:4px}.timeline .move-indicator{font:11px system-ui;color:var(--muted);white-space:nowrap}.sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:17px 18px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-heading h2{font-size:13px;font-weight:600;margin:0}.panel-heading .label{font:10px system-ui;letter-spacing:.6px;color:var(--muted)}.engine-banner{margin:0 17px 15px;background:#f0f4eb;border:1px solid #e1e9d8;border-radius:9px;padding:12px}.engine-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.engine-topline strong{font:600 13px system-ui}.small-tag{display:inline-flex;font:9px system-ui;padding:3px 6px;border:1px solid #d9e2cd;border-radius:4px;color:#859474}.engine-banner p{color:#829076;font-size:11px;line-height:1.8;margin:0}.engine-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#68825a;margin-top:10px}.engine-status[data-state=loading] .dot,.engine-status[data-state=thinking] .dot{animation:pulse 1s infinite;background:#be9452}.engine-status[data-state=error]{color:#b0624e}.engine-status[data-state=error] .dot{background:#b0624e}.panel-body{padding:0 18px 18px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#6d7a66}.field select,.field input,.field textarea,.input{width:100%;border:1px solid var(--line);border-radius:7px;min-height:38px;background:#fffefa;color:#314a3c;padding:8px 10px;outline-offset:1px}.field select{padding-right:8px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini-copy{font-size:10px;color:#929c89;line-height:1.8;margin:9px 0 0}.full{width:100%}.ai-buttons{display:flex;gap:7px;margin-top:13px}.ai-buttons .button{flex:1;font-size:11px;padding:9px 10px}.analysis-summary{padding:16px 18px;border-top:1px solid var(--line)}.analysis-title{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:12px}.winbar{height:7px;background:#e2e4d8;border-radius:6px;overflow:hidden;margin:9px 0}.winbar>span{display:block;height:100%;background:#314b3c;transition:width .4s}.score-number{font:500 26px Georgia,serif;letter-spacing:-.7px}.score-number small{font:11px Tahoma;color:var(--muted);letter-spacing:0;margin-left:7px}.empty-analysis{font-size:11px;line-height:1.9;color:#929c89;padding:7px 0}.candidate-list{display:flex;flex-direction:column;gap:8px;margin-top:13px}.candidate{display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:0;text-align:left;font-size:11px;min-height:22px}.candidate-number{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#edf2e7;color:#68865b;font:10px system-ui}.candidate:first-child .candidate-number{background:var(--green);color:#fff}.candidate .line{flex:1;height:4px;background:#eef0e8;border-radius:4px}.candidate .line span{height:100%;display:block;background:#b9c5a7;border-radius:4px}.candidate small{font:10px system-ui;color:#8d9984;width:35px;text-align:right}.tabbar{display:flex;border-bottom:1px solid var(--line);padding:0 14px;gap:18px}.tab{font-size:11px;background:transparent;border:0;border-bottom:2px solid transparent;padding:13px 2px;color:#8c9686}.tab.active{color:var(--green);border-color:var(--green);font-weight:600}.notes-body{padding:15px 17px}.notes-body textarea{border:0;background:#f6f6f0;border-radius:7px;padding:11px;resize:vertical;min-height:105px;width:100%;font-size:11px;line-height:1.9;color:#5d6d55}.moves-list{max-height:210px;overflow:auto;padding:8px 12px;display:grid;grid-template-columns:1fr 1fr;gap:3px}.move-entry{border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:7px;padding:7px 8px;font-size:10px;border-radius:5px}.move-entry.active{background:var(--green-light);color:var(--green)}.move-entry .tiny-stone{width:9px;height:9px;border-radius:50%;background:#26362d}.move-entry .tiny-stone.white{background:#f4f2e6;border:1px solid #c3caba}.move-entry .num{color:#a3ac9b;width:19px}.study-tips{display:flex;gap:10px;border:1px dashed #d9dfce;background:#f0f2e9;border-radius:10px;padding:13px 15px;font-size:10px;line-height:1.9;color:#86947c}.study-tips .icon{margin-top:3px;width:17px;height:17px;color:#a5b18d}.footer{display:flex;justify-content:space-between;padding-top:24px;font-size:10px;color:#a0a794;gap:12px}.footer span{display:flex;align-items:center;gap:6px}.footer .icon{width:12px;height:12px}.score-banner{background:#f3f0df;border:1px solid #e5dcb7;border-radius:10px;padding:15px 17px;margin:0 0 14px;font-size:12px;line-height:1.9}.score-banner strong{display:block;font-size:17px;color:#746135;margin-bottom:4px}.score-actions{display:flex;gap:8px;margin-top:11px}.score-actions .button{font-size:11px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);background:#233f33;color:#fff;padding:13px 22px;border-radius:10px;box-shadow:0 10px 35px #162f3030;font-size:12px;opacity:0;pointer-events:none;transition:all .2s;z-index:300;max-width:calc(100vw - 32px)}.toast.visible{opacity:1;transform:translate(-50%)}dialog{border:1px solid var(--line);border-radius:18px;padding:0;background:var(--paper);color:#304936;width:min(650px,calc(100vw - 30px));max-height:90vh;box-shadow:0 25px 90px #142b2838}dialog::backdrop{background:#18382d6b;backdrop-filter:blur(4px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px 18px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:19px;margin:0}.dialog-header p{font-size:11px;color:var(--muted);margin:6px 0 0}.dialog-body{padding:23px 28px;overflow:auto}.dialog-footer{padding:16px 28px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#f7f7ef}.section-label{font-size:11px;color:#7f8b74;margin:0 0 10px;font-weight:600}.choice-row{display:flex;gap:8px;margin:0 0 21px}.choice{flex:1;background:#f6f7ef;border:1px solid var(--line);border-radius:9px;padding:12px 10px;text-align:center;font-size:12px}.choice.active{border-color:#71926c;background:var(--green-light);color:var(--green)}.choice strong{display:block;margin-bottom:4px}.choice small{font-size:10px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:18px}.form-grid .wide{grid-column:1/-1}.checkbox{display:flex;align-items:center;gap:8px;font-size:11px;color:#738067}.checkbox input{accent-color:var(--green)}.library-list{display:flex;flex-direction:column;gap:10px;margin-top:17px}.library-card{border:1px solid var(--line);border-radius:10px;padding:14px}.library-top{display:flex;justify-content:space-between;gap:14px}.library-top strong{font-size:13px}.library-top small{font-size:10px;color:var(--muted)}.library-card p{font-size:10px;color:var(--muted);margin:8px 0}.library-actions{display:flex;gap:7px}.library-actions .button{font-size:10px;min-height:30px;padding:5px 10px}.help-content{font-size:12px;line-height:2;color:#6e7d63}.help-content h3{color:var(--green);font-size:14px}.help-content ul{padding-left:20px}.help-content code{background:#edf0e5;padding:2px 5px;border-radius:4px}.engine-detail{font:10px system-ui;color:#8d9986;line-height:1.7;overflow-wrap:anywhere;margin-top:10px}.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}@keyframes pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1500px){.workspace{padding-left:55px;padding-right:55px}.game-layout{grid-template-columns:minmax(400px,1fr) 350px;gap:35px}.page-heading{padding:30px 0}.sidebar{gap:20px}}@media(max-width:1150px){.workspace{padding:0 22px 20px}.game-layout{grid-template-columns:minmax(320px,1fr) 285px;gap:18px}.player-card{padding:12px 11px}.player-clock{font-size:17px}.player-name{max-width:110px}.board-tools{padding:9px}.tool{min-width:30px;padding:5px}.separator{margin:0 3px}}@media(max-width:940px){.game-layout{grid-template-columns:minmax(300px,1fr)}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.study-tips{grid-column:1/-1}.board-wrap{max-width:680px}.board-frame{width:min(100%,695px);margin:auto}.board-tools,.main-controls,.timeline,.board-caption,.players,#score-area{max-width:695px;margin-left:auto;margin-right:auto}.topbar{height:88px}.page-heading{padding:23px 0}.board-column{min-width:0}.player-name{max-width:220px}.board-tools{padding:12px}.tool{min-width:34px}.separator{margin:0 6px}.top-actions .pill{display:none}.footer{padding-bottom:10px}}@media(max-width:620px){.shell{grid-template-columns:1fr}.rail{position:fixed;inset:auto 0 0;width:100%;height:64px;z-index:50;flex-direction:row;justify-content:space-evenly;padding:5px 9px;border-right:0;border-top:1px solid var(--line);gap:0}.brand-mark,.rail-spacer,.rail-badge{display:none}.rail-item{padding:6px 4px;width:60px;gap:3px;font-size:9px}.rail-item .icon{width:19px;height:19px}.rail-item[data-action=help]{display:none}.workspace{padding:0 14px 85px}.topbar{height:77px}.brand-title{font-size:23px}.eyebrow{font-size:8px;margin-bottom:5px}.top-actions{gap:5px}.top-actions .button{min-height:35px;padding:8px 10px;font-size:11px}.page-heading{align-items:flex-start;padding:20px 0 16px;gap:10px}.page-heading h1{font-size:20px}.page-heading p{font-size:10px;max-width:175px;line-height:1.7}.model-option{padding:8px 10px;font-size:11px;gap:3px}.model-option small{display:none}.model-switch{margin-top:2px}.players{gap:8px;margin-bottom:12px}.player-card{padding:11px 10px;gap:8px;border-radius:10px}.stone-avatar{width:27px;height:27px}.player-name{font-size:11px;max-width:105px}.player-sub{font-size:9px}.player-clock{font-size:15px}.player-clock small{font-size:9px}.board-frame{padding:4px;border-radius:9px}.board-tools{flex-wrap:wrap;justify-content:center;padding:8px;gap:3px}.tools-group{gap:1px}.separator{margin:0 3px}.tool{height:31px;min-width:31px;padding:5px}.tool .icon{width:16px;height:16px}.board-caption{font-size:10px;padding-top:11px;padding-bottom:11px}.board-caption .rules-label{max-width:170px;text-align:right;line-height:1.7}.main-controls{gap:6px;margin-top:10px}.main-controls .button{font-size:10px;padding:9px 7px;min-height:37px;gap:5px}.main-controls .button .icon{width:14px;height:14px}.sidebar{grid-template-columns:1fr;gap:13px}.game-layout{gap:19px}.panel-heading{padding:15px 17px 12px}.analysis-summary{padding:14px 17px}.field select{font-size:11px}.study-tips{font-size:10px}.footer{flex-direction:column;gap:7px;line-height:1.6}.dialog-header{padding:20px 19px 15px}.dialog-body{padding:20px 19px}.dialog-footer{padding:14px 19px}.dialog-header h2{font-size:18px}.form-grid{gap:13px}.choice{padding:10px 6px;font-size:11px}.choice small{font-size:9px}.dialog-body .choice-row{gap:6px}.dialog-body .mini-copy{font-size:10px}.library-top{flex-direction:column;gap:5px}.toast{bottom:80px;font-size:11px}.score-banner{font-size:11px}.score-banner strong{font-size:15px}}@font-face{font-family:Mali;src:url(/fonts/Mali-Regular.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Mali;src:url(/fonts/Mali-SemiBold.ttf) format("truetype");font-weight:500 900;font-style:normal;font-display:swap}:root{font-family:Mali,Leelawadee UI,Tahoma,sans-serif;color:#51465f;background:#fffcf3;--green:#69578d;--green-light:#ece3f6;--muted:#82768a;--line:#d8ccdf;--paper:#fffdf6;--gold:#bd8a54;--shadow:4px 4px 0 #e8dfed}body{background-color:#fffcf3;background-image:linear-gradient(#b9cbd42b 1px,transparent 1px),linear-gradient(90deg,#b9cbd42b 1px,transparent 1px);background-size:26px 26px;font-size:13px}button,input,textarea,select{font-family:inherit}.icon{stroke-width:1.9}.doodle{display:block;overflow:visible;flex-shrink:0}.shell{grid-template-columns:94px minmax(0,1fr)}.rail{background:#fff6ef;border-right:2px solid #71637d;padding-top:24px}.brand-mark{width:62px;height:51px;background:transparent;border-radius:0;margin:0 0 28px;color:inherit}.brand-mark:after{display:none}.brand-doodle{width:74px;height:57px}.rail-item{font-size:11px;color:#8b7992;border-radius:10px 15px 9px 13px;border:1.5px solid transparent;line-height:1.6}.rail-item .icon{width:22px;height:22px}.rail-item.active{border:1.7px solid #6f6084;background:#e7dcf4;box-shadow:3px 3px #d8cae5;transform:rotate(-3deg)}.rail-item:hover{background:#e9e0f1}.rail-badge{font-family:Mali,sans-serif;font-size:10px;letter-spacing:2px;color:#b79c9f}.workspace{padding-left:34px;padding-right:34px;max-width:1660px}.topbar{height:109px;border-bottom:2px dashed #d9cbd5}.eyebrow{font:10px Mali,sans-serif;letter-spacing:1.6px;color:#a18da1;margin-bottom:3px}.brand-title{display:flex;align-items:baseline;gap:8px;font:600 29px Mali,sans-serif;letter-spacing:-1.1px;line-height:1.5;color:#554666}.brand-title span{font-family:inherit;color:#a88bb5}.brand-title .brand-sticker{font-size:10px;font-weight:600;letter-spacing:.3px;line-height:1.5;background:#f9debd;color:#846c54;padding:2px 9px;border:1px solid #b79a7c;border-radius:5px 3px 6px;transform:rotate(-7deg);margin-left:6px}.pill{font-size:11px;background:#e7f2e3;color:#6f8166;border:1.4px dashed #9cb893;border-radius:12px 9px 14px 8px;transform:rotate(2deg);padding:8px 12px}.pill .icon{width:15px;height:15px}.dot{background:#a88bb5}.button{font-size:12px;border:1.7px solid #786582;border-radius:10px 13px 8px 12px/12px 8px 13px 9px;box-shadow:2px 3px #e2d7e8;background:#fffdf6;color:#685775;transition:transform .15s,box-shadow .15s,background .15s}.button:hover{background:#f3edf9;transform:translate(-1px,-1px);box-shadow:3px 4px #d6c7e2}.button.primary{background:#dfcff1;color:#514064;border-color:#776184;box-shadow:3px 3px #c7b2d9}.button.primary:hover{background:#d3bfe9}.button.quiet{box-shadow:none}.button.danger{color:#ad645c}.button:disabled{transform:none;box-shadow:none;opacity:.45}.button .icon{width:17px;height:17px}.page-heading{position:relative;align-items:center;padding:27px 0 28px;min-height:126px;gap:20px}.page-heading h1{position:relative;display:inline-block;font-size:25px;letter-spacing:-.6px;line-height:1.8;font-weight:600;margin-bottom:5px;z-index:0}.page-heading h1:after{content:"";position:absolute;height:12px;left:-3px;right:-5px;bottom:4px;background:#f7e2a8;border-radius:45% 35% 45% 26%;transform:rotate(-1deg);z-index:-1}.page-heading p{font-size:11px;color:#8b7b92}.heading-doodle{position:absolute;width:132px;height:85px;left:47%;top:13px;transform:rotate(5deg);pointer-events:none}.heading-kicker{display:block;font-size:10px;color:#b0878e;line-height:1.5;margin-top:5px}.model-switch{background:#f4eddf;border:1.6px dashed #c7b598;border-radius:11px 18px 10px 17px;padding:5px;transform:rotate(1deg);flex-shrink:0;z-index:1}.model-option{font-family:Mali,sans-serif;font-size:12px;font-weight:600;border:1.4px solid transparent;padding:7px 14px;border-radius:10px 7px 12px;color:#a595a0;gap:7px}.model-option small{font:10px Mali,sans-serif}.model-option .icon{width:17px;height:17px}.model-option.active{background:#e1eddb;border-color:#839a7c;color:#586d51;box-shadow:2px 2px #b9cdb0;transform:rotate(-2deg)}.players{gap:15px;margin-bottom:19px}.player-card{border:1.8px solid #b6a4be;border-radius:16px 11px 16px 12px/11px 17px 12px 15px;box-shadow:3px 3px #e7dcec;padding:13px 15px;background:#fffcf7}.player-card:nth-child(2){background:#fff4f0;box-shadow:3px 3px #eedbd5}.player-card.current{border:2px solid #a28bb4;box-shadow:3px 3px #d9c4e7;background:#f6f0fe}.player-name{font-size:13px;font-weight:600}.player-sub{font-size:10px;color:#96829e;line-height:1.7}.player-clock{font-family:Mali,sans-serif;color:#9e8ba9;font-size:20px;letter-spacing:0}.player-clock small{font-family:Mali,sans-serif;font-size:10px;color:#a38eaa}.stone-avatar{position:relative;width:35px;height:34px;border-radius:47% 53% 46% 54%/52% 47% 53% 48%;box-shadow:2px 3px #cbbdc44a;border:1.5px solid #51465f!important;overflow:visible}.stone-avatar.black{background:#51465f}.stone-avatar.white{background:#fff9eb}.player-card .stone-avatar:after{content:"";position:absolute;width:3px;height:4px;background:#fff9eb;border-radius:50%;top:12px;left:9px;box-shadow:10px 0 #fff9eb}.player-card .stone-avatar.white:after{background:#655172;box-shadow:10px 0 #655172}.player-card .stone-avatar:before{content:"";position:absolute;top:19px;left:12px;width:7px;height:4px;border-bottom:1.5px solid #fff9eb;border-radius:0 0 10px 10px}.player-card .stone-avatar.white:before{border-color:#655172}.board-frame{background:#d4e8dc;padding:11px;border:2.4px solid #7b947e;border-radius:18px 15px 23px 14px/13px 23px 14px 21px;box-shadow:5px 6px #b6cbb9;position:relative;overflow:visible}.board-frame:before,.board-frame:after{content:"";position:absolute;width:77px;height:22px;top:-12px;left:18%;background:repeating-linear-gradient(90deg,#efc5b7af 0px 6px,#f2d2c6bf 6px 8px);border:1px solid #e2b6a76b;clip-path:polygon(0 5%,100% 0,97% 96%,3% 100%);transform:rotate(-7deg);z-index:2;pointer-events:none}.board-frame:after{left:auto;right:13%;transform:rotate(8deg);background:repeating-linear-gradient(90deg,#e1d3f0af 0px 6px,#ece0f4bf 6px 8px);border-color:#c6addc8c}.board-wrap{border-radius:10px 14px 9px 13px;background:#fae9c4;outline-offset:7px}.board-caption{font-size:11px;color:#95849a;padding-top:17px;padding-bottom:13px}.board-caption .turn{color:#806495}.board-caption .turn .dot{background:#b39ac8}.board-caption .rules-label{font-size:10px}.board-tools{background:#fffdf6;border:1.7px solid #ad99b8;border-radius:12px 17px 11px 16px;box-shadow:3px 3px #e7dced;padding:10px 12px}.tool{border-radius:9px 7px 11px 6px;color:#9a85a5}.tool:hover,.tool.active{background:#ece0f5;color:#76598a}.tool.active{box-shadow:inset 0 0 0 1px #c9b0db}.tool .icon{stroke-width:2}.separator{background:#e5d9e9}.main-controls{gap:10px}.main-controls .button:nth-child(1){background:#f8e6dc}.main-controls .button:nth-child(3){background:#e4efe1}.main-controls .button:nth-child(4){background:#f8e5ec}.timeline .range{accent-color:#ac8fc5}.timeline .move-indicator{font:11px Mali,sans-serif;color:#a08aac}.timeline .tool{color:#a58aaf}.sidebar{gap:20px}.panel{border:1.8px solid #a38aaf;border-radius:17px 13px 19px 12px/13px 20px 12px 18px;background:#fffdf7;box-shadow:4px 4px #e1d5e9;overflow:visible}.panel-heading{padding:16px 18px 13px}.panel-heading h2{font-size:14px;color:#735780}.panel-heading .label{font:9px Mali,sans-serif;background:#f8e3bc;border:1px dashed #caad80;padding:3px 6px;border-radius:5px;color:#a08768;transform:rotate(4deg)}.engine-banner{background:#f2ebfa;border:1.5px dashed #c8b3da;border-radius:11px 16px 10px 15px;padding:12px 77px 12px 13px;margin-left:15px;margin-right:15px;position:relative;min-height:111px}.engine-topline{flex-wrap:wrap;gap:6px;margin-bottom:5px}.engine-topline strong{font:600 14px Mali,sans-serif;color:#755b87}.small-tag{font:9px Mali,sans-serif;border-color:#d3bfdf;color:#9c83af;background:#fffaf7}.engine-banner p{font-size:10px;line-height:1.9;color:#9b83aa}.engine-mascot{width:66px;height:70px;position:absolute;right:5px;top:16px;transform:rotate(6deg)}.engine-status{font-size:10px;color:#8b7399;gap:5px;line-height:1.8}.engine-status .dot{width:5px;height:5px;background:#ac90c3}.panel-body{padding-left:16px;padding-right:16px}.field{font-size:11px;color:#8e769b}.field input,.field select,.field textarea,.input{border:1.5px solid #cbb7d6;background:#fffdf8;border-radius:8px 10px 7px;color:#7a6486;font-size:11px;min-height:38px}.field input:focus,.field select:focus,.notes-body textarea:focus{outline-color:#c4a4dc}.field-row{gap:10px}.mini-copy{font-size:10px;line-height:1.9;color:#a18aab}.engine-detail{font:9px Mali,sans-serif;line-height:1.8;color:#ad97b6}.ai-buttons .button{font-size:11px;min-height:41px}.ai-buttons .button:nth-child(2){background:#e1eee5}.ai-buttons .button:last-child{background:#fbebe2;min-width:35px;max-width:38px}.analysis-summary{border-top:1.5px dashed #dccce4;padding:15px 17px}.analysis-title{font-size:10px;color:#a18aad}.score-number{font:600 27px Mali,sans-serif;color:#836296;letter-spacing:-1px}.score-number small{font:10px Mali,sans-serif;letter-spacing:0;color:#a18aac}.winbar{height:9px;background:#f6e2d3;border:1px solid #d5bedb;transform:rotate(-.4deg)}.winbar>span{background:#bda4d6}.empty-analysis{font-size:11px;color:#a58bb0}.candidate{font-size:11px}.candidate-number{font:10px Mali,sans-serif;background:#f4ebfa;color:#9979b1;border:1px solid #d7bfe7;border-radius:5px 8px 5px 7px}.candidate:first-child .candidate-number{background:#b89bce;color:#fff}.candidate .line{height:5px;background:#f0eaf5}.candidate .line span{background:#cfb8df}.candidate small{font:10px Mali,sans-serif;color:#aa94b7}.tabbar{border-bottom:1.5px dashed #dfcee6;gap:17px}.tab{font-size:11px;color:#ac91b7;padding:13px 2px 11px}.tab.active{color:#9470a9;border-color:#b58acb}.notes-body{padding:14px 16px 16px}.notes-body textarea{border:1px solid #e4d4c0;border-radius:6px 10px 7px;line-height:2.1;font-size:11px;color:#977c91;padding-top:8px;background-color:#fff9dd;background-image:repeating-linear-gradient(transparent 0,transparent 22px,#ddd8c370 22px,#ddd8c370 23px);min-height:120px;box-shadow:2px 3px #eee5cd}.notes-body textarea::placeholder{color:#bba28e}.moves-list{padding:10px 13px}.move-entry{font-size:11px}.move-entry.active{background:#ede0f6}.move-entry .tiny-stone{background:#5a4965}.move-entry .tiny-stone.white{background:#fff5e4;border-color:#bea9cb}.study-tips{position:relative;background:#fff1bf;border:1.5px dashed #c9a669;border-radius:13px 8px 16px 9px;color:#ad8b62;font-size:11px;line-height:1.9;padding:17px 15px 15px;gap:12px;box-shadow:3px 3px #eddfb3;transform:rotate(-1deg)}.study-tips:before{content:"";position:absolute;width:46px;height:15px;left:42%;top:-8px;background:#efc3cfaf;transform:rotate(-4deg);clip-path:polygon(2% 0,100% 4%,98% 100%,0 95%)}.tip-doodle{width:44px;height:61px;align-self:center}.study-tips strong{font-weight:600;color:#9c7953}.footer{font-size:10px;color:#ac95b6;padding-top:29px}.footer .button{color:#a68ab3;box-shadow:none}.score-banner{background:#fff1c9;border:1.5px solid #c5a36b;border-radius:12px 17px 11px 16px;color:#a1845c;box-shadow:3px 3px #e7d8b5}.score-banner strong{color:#987447;font-size:18px}.toast{font-family:Mali,sans-serif;background:#7b608c;color:#fffaf1;border:1.5px solid #513c62;box-shadow:3px 4px #d7c1e6;border-radius:12px 16px 10px 14px;font-size:12px}dialog{font-family:Mali,sans-serif;border:2px solid #a38aaf;border-radius:20px 15px 25px 17px;background:#fffdf5;box-shadow:7px 8px #cdb7dd80;color:#795f88}dialog::backdrop{background:#86709166;backdrop-filter:blur(3px)}.dialog-header{border-bottom:1.5px dashed #d8c3e3;background:#f3eafa;border-radius:18px 13px 0 0}.dialog-header h2{font-size:21px;color:#856298}.dialog-header p{font-size:11px;color:#a086ad}.dialog-footer{background:#fcf7ef;border-top:1px dashed #d8c3e3;border-radius:0 0 22px 15px}.section-label{font-size:12px;color:#9b80a9}.choice{background:#faf5ee;border:1.5px solid #cbb4d5;border-radius:10px 15px 9px 13px;font-size:12px;box-shadow:2px 2px #eee4f2}.choice.active{background:#e6d9f4;border-color:#9e80b0;color:#846297;box-shadow:3px 3px #d3bfdf}.choice small{font-size:10px;color:#aa92b5}.checkbox{font-size:11px;color:#9a7ca9}.checkbox input{accent-color:#b590cd}.library-card{border:1.5px solid #d6bfdf;border-radius:11px 15px 10px;background:#fffaf0;box-shadow:2px 2px #ede2d0}.library-card:nth-child(2n){background:#f5eefb}.library-top strong{font-size:13px;color:#9876a7}.library-card p{font-size:10px;color:#aa92b5}.help-content{color:#927c9b;font-size:12px}.help-content h3{color:#9672aa;font-size:15px}a{color:#9a76b1}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline-color:#bba0d1;outline-width:3px;outline-offset:4px}@media(min-width:1500px){.workspace{padding-left:51px;padding-right:51px}.heading-doodle{left:46%;width:150px;height:93px}}@media(max-width:1150px){.workspace{padding-left:23px;padding-right:23px}.heading-doodle{left:46%;width:105px;top:27px}.page-heading h1{font-size:23px}.player-card{padding:12px 11px;gap:9px}.player-name{font-size:12px}.player-sub{font-size:9px}.player-clock{font-size:18px}.stone-avatar{width:31px;height:31px}.player-card .stone-avatar:after{left:7px;top:11px}.player-card .stone-avatar:before{left:10px;top:18px}.engine-banner{padding-right:66px}.engine-mascot{width:58px;right:2px}.model-option{padding:7px 11px}.engine-topline strong{font-size:13px}}@media(max-width:940px){.heading-doodle{left:49%;width:123px;top:10px}.page-heading{min-height:121px}.board-frame{margin-top:3px}.sidebar{gap:18px}.engine-banner{padding-right:90px}.engine-mascot{width:75px;height:78px;right:7px;top:13px}.engine-topline strong,.panel-heading h2{font-size:14px}}@media(max-width:720px){.heading-doodle{display:none}.page-heading h1{font-size:22px}.brand-title .brand-sticker{display:none}.model-option{padding:7px 10px}}@media(max-width:620px){.shell{grid-template-columns:1fr}.rail{height:68px;padding:5px 7px;background:#fff8f0;border-top:2px solid #b29bbd;border-right:0;box-shadow:0 -4px #f0e3f140}.rail-item{font-size:9px;padding:5px 3px;width:54px;gap:2px;border-width:1px}.rail-item .icon{width:20px;height:20px}.rail-item.active{border-width:1.3px;box-shadow:2px 2px #d8cae5;transform:rotate(-2deg)}.workspace{padding:0 15px 90px}.topbar{height:83px;gap:6px}.brand-title{font-size:25px;gap:5px}.eyebrow{font-size:7px;letter-spacing:1.2px;margin-bottom:1px}.top-actions .button{font-size:10px;padding:8px 10px;min-height:35px;border-width:1.5px}.page-heading{min-height:110px;padding:19px 0 22px;gap:12px;align-items:flex-start}.page-heading h1{font-size:19px;line-height:1.7;letter-spacing:-.5px;max-width:195px;margin-bottom:7px}.page-heading h1:after{height:9px;bottom:2px}.page-heading p{font-size:9px;line-height:1.8;max-width:185px}.heading-kicker{font-size:8px;margin-top:3px}.model-switch{padding:3px;gap:1px;margin-top:3px;transform:rotate(2deg);border-radius:9px 12px 8px 11px}.model-option{padding:7px 8px;font-size:10px;gap:3px;border-width:1px;border-radius:7px 5px 8px}.model-option .icon{width:13px;height:13px}.model-option small{display:none}.players{gap:10px;margin-bottom:19px}.player-card{padding:10px 9px;gap:7px;border-width:1.5px;box-shadow:2px 3px #e7dcec}.player-card.current{border-width:1.8px;box-shadow:2px 3px #d9c4e7}.player-name{font-size:11px;max-width:95px}.player-sub{font-size:8px;line-height:1.8}.player-clock{font-size:15px}.player-clock small{font-size:9px}.stone-avatar{width:28px;height:28px;border-width:1.3px!important}.player-card .stone-avatar:after{top:9px;left:6px;width:2.5px;height:3px;box-shadow:9px 0 #fff9eb}.player-card .stone-avatar.white:after{box-shadow:9px 0 #655172}.player-card .stone-avatar:before{left:9px;top:16px;width:6px;height:3px}.board-frame{padding:7px;border-width:2px;border-radius:12px 17px 11px 16px;box-shadow:4px 5px #b6cbb9}.board-frame:before,.board-frame:after{width:55px;height:17px;top:-9px}.board-wrap{border-radius:8px 12px 7px 11px}.board-caption{padding-top:16px;font-size:10px;gap:8px}.board-caption .rules-label{font-size:8px;max-width:156px}.board-tools{padding:8px 5px;gap:5px;border-width:1.4px;box-shadow:2px 3px #e7dced}.tool{min-width:30px;height:31px;padding:5px}.tool .icon{width:16px;height:16px}.tools-group{gap:0}.main-controls{gap:7px;margin-top:13px}.main-controls .button{font-size:9px;gap:4px;padding:9px 5px;min-height:38px;border-width:1.3px;box-shadow:2px 2px #e2d7e8}.main-controls .button .icon{width:13px;height:13px}.timeline{gap:6px;margin-top:17px}.timeline .tool{min-width:27px;width:27px;padding:5px}.timeline .move-indicator{font-size:10px}.sidebar{gap:20px}.game-layout{gap:25px}.panel{border-width:1.5px;box-shadow:3px 4px #e1d5e9}.panel-heading{padding:16px 16px 12px}.panel-heading h2{font-size:14px}.panel-heading .label{font-size:9px}.engine-banner{padding-right:90px;min-height:115px}.engine-mascot{width:76px;height:79px;right:7px;top:12px}.engine-topline{justify-content:flex-start}.engine-banner p{font-size:11px}.engine-status{font-size:10px}.field,.field input,.field select{font-size:11px}.mini-copy{font-size:10px}.notes-body textarea{font-size:12px;min-height:128px}.study-tips{font-size:11px}.footer{font-size:9px;line-height:1.9;padding-top:27px}.dialog-header h2{font-size:20px}.dialog-header p{font-size:10px}.dialog-header{padding:19px 18px 14px}.dialog-body{padding:20px 18px}.dialog-footer{padding:14px 18px}.choice{font-size:11px;padding:10px 6px}.choice small{font-size:9px}.toast{bottom:85px;font-size:11px}.form-grid{gap:14px}}@media(max-width:370px){.workspace{padding-left:11px;padding-right:11px}.page-heading h1{font-size:17px}.model-option{padding:6px}.player-card{padding:9px 7px}.player-name{font-size:10px}.player-clock{font-size:13px}.stone-avatar{width:25px;height:25px}.board-tools .tool{min-width:27px}.heading-kicker{font-size:7px}.main-controls{gap:5px}}.player-sub,.player-clock small,.page-heading p,.engine-banner p,.engine-status,.field,.mini-copy,.engine-detail,.analysis-title,.empty-analysis,.candidate small,.tab,.checkbox,.library-top small,.library-card p,.help-content,.footer,.footer .button,.board-caption,.board-caption .rules-label{color:#796582}.model-option{color:#806e84}.model-option.active{color:#586d51}.rail-item{color:#7c6787}.eyebrow{color:#8b748f}.heading-kicker{color:#946674}.tool{color:#8a7098}.pill{color:#5e7453}.study-tips{color:#826244}.study-tips strong{color:#795737}.notes-body textarea{color:#7d6579}.notes-body textarea::placeholder{color:#927987}@media(prefers-reduced-motion:reduce){.button{transition:none}.button:hover{transform:none}}html{min-height:100%;scroll-padding-bottom:90px}body{background-color:#fcf6f9;background-image:radial-gradient(ellipse at 12% 15%,#e7dcf670 0,transparent 40%),radial-gradient(ellipse at 90% 72%,#d9eee270 0,transparent 45%),linear-gradient(#d6c6dc22 1px,transparent 1px),linear-gradient(90deg,#d6c6dc22 1px,transparent 1px);background-size:auto,auto,28px 28px,28px 28px}.game-shell{display:block;min-height:100svh}.game-workspace{--game-chrome:380px;width:100%;max-width:1020px;margin:0 auto;padding:0 24px 105px}.game-workspace.has-tools{--game-chrome:450px}.game-workspace.has-review{--game-chrome:440px}.game-workspace.has-tools.has-review{--game-chrome:510px}.game-workspace.has-result{--game-chrome:500px}.game-topbar{height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:820px;margin:0 auto 12px}.game-logo{display:flex;gap:7px;align-items:center;min-width:0;line-height:1.1}.game-logo-doodle{width:68px;height:49px}.game-logo>span{font:600 23px Mali,sans-serif;color:#685180;letter-spacing:-1px}.game-logo>span>span{color:#9b7aae}.game-logo small{display:block;font:10px Mali,sans-serif;color:#a486a8;letter-spacing:1.4px;padding-top:3px}.match-chip{display:flex;gap:10px;align-items:center;border:1.5px solid #bca6c9;background:#fffaf0;color:#887091;border-radius:16px 11px 17px 12px;padding:8px 14px;box-shadow:2px 3px #e4d8eb;font-size:11px}.match-chip strong{font-size:17px;color:#80628f}.match-chip .icon{width:13px;height:13px}.game-menu-button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border:1.6px solid #ab91bc;border-radius:15px 12px 16px 11px;background:#e5d6f2;box-shadow:2px 3px #ceb8df;color:#80608f}.game-menu-button .icon{width:23px;height:23px}.game-layout{display:block;margin:auto;max-width:820px}.game-layout .board-column{width:100%;max-width:min(100%,calc(100svh - var(--game-chrome)),820px);margin:0 auto}.duel-hud{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:4px;max-width:none}.versus{font:600 18px Mali,sans-serif;color:#a182ad;text-align:center;transform:rotate(-8deg)}.duel-hud .player-card{min-height:67px;padding:10px 13px;gap:10px;border-radius:16px 12px 17px 11px;background:#fffdf5;box-shadow:2px 3px #e5d8eb}.duel-hud .player-card.current{background:#eee1fa;border-color:#a68ab8;box-shadow:2px 3px #cfb5df}.duel-hud .player-card:nth-child(3){background:#fff0e9;box-shadow:2px 3px #edd4c9}.duel-hud .player-card:nth-child(3).current{background:#f8e6ef;border-color:#be95ac}.duel-hud .stone-avatar{width:36px;height:36px;flex-shrink:0}.duel-hud .player-card .stone-avatar:after{left:9px;top:12px}.duel-hud .player-card .stone-avatar:before{left:12px;top:20px}.duel-hud .player-name{font-size:13px;max-width:170px;line-height:1.4}.duel-hud .player-sub{font-size:9px;line-height:1.7;margin-top:3px;white-space:nowrap}.duel-hud .player-clock{font-size:20px;margin-left:auto}.duel-hud .player-clock small{font-size:9px;margin-top:2px}.game-turnbar{display:flex;align-items:center;justify-content:space-between;min-height:39px;padding:8px 3px 10px;margin:0;font-size:12px}.game-turnbar .turn{gap:7px}.game-turnbar .turn .dot{height:7px;width:7px}.buddy-chip{display:flex;gap:5px;align-items:center;border:1px dashed #beabc8;background:#fffaf4;color:#91739f;border-radius:9px 7px 11px;font-size:10px;padding:3px 9px;min-height:25px}.buddy-chip .icon{width:12px;height:12px}.game-layout .board-frame{width:100%;padding:8px;border-radius:16px 20px 15px 19px;box-shadow:4px 5px #b2c9b6;margin:0}.game-layout .board-wrap{width:100%;max-width:none}.board-frame:before,.board-frame:after{height:17px;width:62px;top:-9px}.stage-info{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#997fa8;padding:10px 2px 5px;min-height:31px}.move-counter{display:flex;align-items:center;gap:4px;background:transparent;border:0;color:#987ca7;font-size:10px;padding:2px}.move-counter .icon{height:11px;width:11px}.game-layout .board-tools{margin:6px 0 9px;max-width:none;padding:8px;gap:5px;flex-wrap:wrap;justify-content:center}.game-play-controls{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:11px;margin-top:7px;max-width:none}.game-play-controls .button{font-size:13px;min-height:49px;border-radius:14px 11px 15px 10px;gap:8px;border-width:1.7px;padding:10px 12px;box-shadow:2px 4px #d9c9e3}.game-play-controls .button.primary{background:#cdb2e9;box-shadow:2px 4px #b493ce;color:#59456c}.game-play-controls .button:nth-child(1){background:#f6e3d6;box-shadow:2px 4px #e4c8b7}.game-play-controls .button:nth-child(3){background:#dfecda;box-shadow:2px 4px #bfd1b6}.game-play-controls .icon{width:19px;height:19px}.game-save-hint{font-size:9px;text-align:center;color:#a58bad;min-height:21px;margin-top:12px;line-height:1.6}.game-save-hint .icon{width:10px;height:10px;display:inline-block;vertical-align:middle;margin-right:4px}.game-review{margin-top:16px;border:1.5px dashed #cdb8d9;border-radius:11px;background:#fffaf3;padding:7px 6px;gap:5px;max-width:none}.game-review .tool{min-width:29px;height:31px;width:29px;padding:5px}.game-review .move-indicator{min-width:38px;font-size:10px;text-align:center}.branch-button{font-size:11px;min-height:33px}.game-dock{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(470px,calc(100% - 32px));height:73px;display:flex;align-items:center;justify-content:space-around;background:#fffaf2f5;border:2px solid #ae94bd;border-radius:24px 19px 25px 20px;box-shadow:3px 5px #d3bddf;z-index:50;padding:6px 8px;backdrop-filter:blur(8px)}.dock-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:72px;min-height:53px;border:1px solid transparent;background:transparent;border-radius:14px 10px 15px 11px;color:#9b80aa;font-size:10px;padding:4px 3px}.dock-item .icon{height:23px;width:23px;stroke-width:1.8}.dock-item.active{background:#e5d5f2;border-color:#baa0ce;color:#7d5d94;box-shadow:2px 2px #d0b9df;transform:rotate(-3deg)}.dock-item:hover{background:#eee0f7}.game-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(620px,100%);max-width:100%;max-height:78svh;border:2px solid #ad90be;border-bottom:0;border-radius:26px 23px 0 0;background:#fffbf3;box-shadow:0 -7px #d3bce580;padding:0 0 max(16px,env(safe-area-inset-bottom));overflow:hidden;z-index:100}.game-sheet::backdrop{background:#65537666;backdrop-filter:blur(3px)}.sheet-handle{height:5px;width:45px;background:#cbb6d7;border-radius:5px;margin:11px auto 4px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 19px 8px;border-bottom:1.5px dashed #dcc8e6;gap:10px}.sheet-tabs{display:flex;gap:18px;align-items:center}.sheet-tabs .tab{font-size:13px;padding:9px 1px 7px;white-space:nowrap}.sheet-scroll{padding:17px 19px 23px;max-height:calc(78svh - 84px);overflow-y:auto;overscroll-behavior:contain}.game-sheet .panel{border:0;box-shadow:none;background:transparent;border-radius:0}.game-sheet .panel-heading{padding:0 0 13px}.game-sheet .panel-heading h2{font-size:16px}.game-sheet .model-switch{display:flex;margin:0 0 17px;transform:none;padding:5px;gap:7px;border-style:solid;border-radius:15px;background:#f8efdf}.game-sheet .model-option{flex:1;justify-content:center;min-height:63px;border-radius:11px;gap:9px;font-size:16px}.game-sheet .model-option span{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.game-sheet .model-option small{font-size:10px;line-height:1}.model-choice-face{width:44px;height:45px}.game-sheet .engine-banner{margin:0 0 17px;min-height:99px;padding-top:14px;padding-bottom:14px}.game-sheet .engine-banner p{font-size:12px}.game-sheet .engine-topline strong{font-size:15px}.game-sheet .panel-body{padding:0 0 17px}.game-sheet .field{font-size:12px}.game-sheet .field select{font-size:12px;min-height:43px}.game-sheet .ai-buttons .button{min-height:46px;font-size:12px}.game-sheet .analysis-summary{padding:15px 0 0}.game-sheet .analysis-title{font-size:11px}.game-sheet .candidate{min-height:32px;font-size:12px}.game-sheet .candidate-number{width:25px;height:25px;font-size:12px}.game-sheet .notes-body{padding:0}.game-sheet .notes-body textarea{min-height:210px;font-size:14px;line-height:2;padding:12px}.sheet-flower{width:35px;height:43px}.game-sheet .moves-list{max-height:none;grid-template-columns:1fr 1fr;gap:6px;padding:0}.game-sheet .move-entry{min-height:43px;font-size:13px;background:#f9f0e5;border:1px solid #ead9cf;border-radius:9px}.game-sheet .move-entry.active{background:#e9d9f4;border-color:#bea2cf}.game-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game-menu-tile{border:1.5px solid #cab2d5;border-radius:14px 11px 15px 10px;background:#f1e6fb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:92px;font-size:12px;color:#846297;box-shadow:2px 3px #dfceea;padding:10px}.game-menu-tile .icon{width:25px;height:25px}.game-menu-tile:nth-child(3n+2){background:#e8efde;border-color:#b8c5a9;color:#7c8d69;box-shadow:2px 3px #d4dfc9}.game-menu-tile:nth-child(3n){background:#fae6dc;border-color:#d8b7a7;color:#a17e69;box-shadow:2px 3px #ebd4c7}.game-menu-tile:disabled{opacity:.45;box-shadow:none}.game-menu-footer{font-size:10px;color:#a087aa;text-align:center;margin-top:19px;line-height:1.9}.new-game-doodle{width:118px;height:72px;margin:0 auto 8px}.mode-card-doodle{width:67px;height:48px;margin:0 auto 5px}.game-menu-dialog .dialog-body{padding-top:18px}.game-shell~.toast,.toast{bottom:110px}body:has(dialog[open]){overflow:hidden}@media(min-width:1100px)and (min-height:850px){.game-workspace{padding-top:4px}.game-topbar{max-width:860px;height:81px}.game-logo-doodle{width:77px;height:55px}.game-logo>span{font-size:25px}.game-dock{bottom:17px}}@media(max-width:800px){.game-workspace{padding:0 20px 103px;--game-chrome:415px}.game-topbar{height:66px;margin-bottom:8px;gap:10px}.game-logo-doodle{width:55px;height:44px}.game-logo>span{font-size:20px}.game-logo small{font-size:9px}.match-chip{padding:7px 11px;font-size:10px;gap:7px}.match-chip strong{font-size:16px}.game-menu-button{width:40px;height:40px;border-radius:13px}.duel-hud{gap:7px;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)}.duel-hud .player-card{padding:10px;gap:8px;min-height:63px}.duel-hud .player-name{font-size:12px}.duel-hud .player-sub{font-size:9px}.duel-hud .player-clock{font-size:17px}.versus{font-size:16px}.game-layout .board-column{max-width:min(100%,calc(100svh - var(--game-chrome)),820px)}.game-turnbar{font-size:11px}.game-play-controls .button{font-size:12px;min-height:47px}.game-save-hint{font-size:9px}}@media(max-width:620px){.game-workspace{padding:0 14px 96px;--game-chrome:335px}.game-workspace.has-tools{--game-chrome:405px}.game-workspace.has-review{--game-chrome:395px}.game-workspace.has-tools.has-review{--game-chrome:465px}.game-workspace.has-result{--game-chrome:480px}.game-topbar{height:62px;margin-bottom:8px;gap:9px}.game-logo{gap:1px}.game-logo-doodle{width:48px;height:40px}.game-logo>span{font-size:18px;letter-spacing:-.8px}.game-logo small{font-size:7px;letter-spacing:1px;padding-top:3px}.match-chip{gap:5px;font-size:9px;line-height:1.4;padding:7px 9px;border-radius:12px;min-height:37px}.match-chip strong{font-size:14px}.match-chip .icon{width:10px;height:10px}.game-menu-button{width:36px;height:36px;border-radius:12px 9px 13px 10px}.game-menu-button .icon{width:20px;height:20px}.duel-hud{gap:6px;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);margin:0 0 5px}.duel-hud .player-card{min-height:57px;padding:9px 8px;gap:6px;border-radius:13px 10px 14px;border-width:1.4px}.duel-hud .player-card.current{border-width:1.6px}.duel-hud .stone-avatar{width:28px;height:28px}.duel-hud .player-card .stone-avatar:after{left:6px;top:9px;width:2.5px;height:3px;box-shadow:9px 0 #fff9eb}.duel-hud .player-card .stone-avatar.white:after{box-shadow:9px 0 #655172}.duel-hud .player-card .stone-avatar:before{left:9px;top:16px;width:6px;height:3px}.duel-hud .player-name{font-size:10px;max-width:90px;line-height:1.5}.duel-hud .player-sub{font-size:7px;line-height:1.8;margin-top:2px}.duel-hud .player-clock{font-size:14px}.duel-hud .player-clock small{font-size:8px}.versus{font-size:14px}.game-turnbar{font-size:11px;min-height:34px;padding:5px 2px 9px;max-width:none}.buddy-chip{font-size:9px;min-height:23px;padding:2px 7px}.game-layout .board-frame{padding:6px;border-width:1.8px;border-radius:13px 17px 12px 16px;box-shadow:3px 4px #b2c9b6}.board-frame:before,.board-frame:after{width:47px;height:14px;top:-7px}.stage-info{min-height:29px;font-size:9px;padding-top:8px;padding-bottom:4px}.move-counter{font-size:9px}.game-play-controls{gap:8px;margin-top:5px}.game-play-controls .button{font-size:12px;min-height:47px;border-width:1.4px;padding:9px 8px;gap:6px;border-radius:12px 9px 13px 10px}.game-play-controls .icon{width:17px;height:17px}.game-save-hint{font-size:8px;margin-top:11px;min-height:18px;line-height:1.5}.game-dock{bottom:max(9px,env(safe-area-inset-bottom));height:67px;width:calc(100% - 24px);max-width:440px;border-width:1.7px;box-shadow:2px 4px #d3bddf;border-radius:21px 17px 22px 18px;padding:5px}.dock-item{min-height:50px;width:62px;gap:4px;font-size:9px;border-radius:11px 8px 12px 9px}.dock-item .icon{width:21px;height:21px}.game-layout .board-tools{padding:7px 3px;gap:6px;margin-top:5px;box-shadow:2px 2px #e7dced}.board-tools .tools-group{gap:0}.board-tools .tool{min-width:30px;height:32px}.game-review{margin-top:12px;padding:6px 2px}.game-review .tool{min-width:26px;width:26px;height:29px;padding:4px}.game-review .move-indicator{font-size:9px;min-width:34px}.game-review .range{height:5px}.game-sheet{width:100%;max-height:78svh;border-radius:24px 22px 0 0}.sheet-heading{padding:3px 17px 8px}.sheet-tabs{gap:18px}.sheet-tabs .tab{font-size:12px;padding-top:9px}.sheet-scroll{padding:17px 17px 20px}.game-sheet .panel-heading h2{font-size:15px}.game-sheet .engine-banner{min-height:101px}.game-sheet .engine-banner p{font-size:11px}.game-sheet .model-option{min-height:59px;font-size:15px}.model-choice-face{width:40px;height:42px}.game-sheet .notes-body textarea{font-size:13px;min-height:200px}.game-menu-grid{gap:10px}.game-menu-tile{min-height:86px;font-size:11px;gap:8px;border-radius:12px 9px 13px 10px}.game-menu-tile .icon{width:23px;height:23px}.game-menu-footer{font-size:9px}.toast{bottom:99px;font-size:11px}.game-menu-dialog{width:calc(100% - 26px)}.score-banner{font-size:10px;padding:10px 12px;margin-bottom:9px}.score-banner strong{font-size:15px}.score-actions .button{min-height:32px;font-size:10px}.new-game-doodle{height:60px;width:105px}}@media(max-width:360px){.game-workspace{padding-left:10px;padding-right:10px}.game-logo-doodle{width:39px}.game-logo>span{font-size:16px}.match-chip{font-size:8px;padding:7px}.match-chip strong{font-size:13px}.duel-hud{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:4px}.duel-hud .player-card{padding:8px 6px;gap:5px}.duel-hud .player-name{font-size:9px}.duel-hud .stone-avatar{width:25px;height:25px}.duel-hud .player-clock{font-size:12px}.game-play-controls .button{font-size:11px}.game-dock{width:calc(100% - 20px)}.dock-item{font-size:8px;width:58px}}@media(max-height:640px)and (orientation:landscape){.game-workspace{--game-chrome:130px;padding-bottom:20px;padding-right:125px}.game-topbar{height:52px;position:relative;margin-bottom:4px}.duel-hud{display:none}.game-turnbar{min-height:25px;padding:3px}.stage-info{min-height:22px}.game-play-controls{position:fixed;right:14px;top:130px;width:91px;display:flex;flex-direction:column}.game-play-controls .button{font-size:10px;min-height:47px}.game-dock{right:12px;left:auto;transform:none;bottom:12px;width:96px;max-height:220px;height:auto;flex-wrap:wrap;gap:4px;padding:6px;border-radius:15px}.dock-item{width:36px;font-size:7px;min-height:43px}.dock-item .icon{width:18px;height:18px}.game-logo-doodle{width:40px;height:34px}.game-logo>span{font-size:17px}.game-save-hint{display:none}.game-sheet{max-height:90svh}.sheet-scroll{max-height:calc(90svh - 84px)}}.game-layout .board-tools .tools-group{display:contents}.game-layout .board-tools .separator{display:none}.game-layout .board-tools .tool{width:40px;min-width:40px;height:40px;padding:8px}.game-layout .board-tools .tool .icon{width:20px;height:20px}@media(min-width:621px)and (max-width:800px){.game-workspace.has-tools{--game-chrome:485px}.game-workspace.has-review{--game-chrome:475px}.game-workspace.has-tools.has-review{--game-chrome:550px}.game-workspace.has-result{--game-chrome:535px}}@media(max-width:620px){.game-workspace.has-tools{--game-chrome:445px}.game-workspace.has-tools.has-review{--game-chrome:500px}.game-sheet input,.game-sheet select,.game-sheet textarea,.dialog-body input,.dialog-body select,.game-sheet .notes-body textarea{font-size:16px!important}}@media(prefers-reduced-motion:reduce){.game-layout .board-column{transition:none}}
