*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{background:var(--bg-app);color:var(--text-main);margin:0;font-family:Inter,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}button{font:inherit}img{-webkit-user-drag:none;user-drag:none;draggable:false}@media (pointer:coarse){body{-webkit-user-select:none;user-select:none}input[type=text],input[type=search],input[type=email],input[type=password],textarea{-webkit-user-select:text;user-select:text}input[type=range]{touch-action:none}}body{margin:0}html,body,#root{height:100%}:root{--bg-app:#0a0d14;--text-main:#f0f0f0;--nav-bg:#0d1117;--panel-bg:#ffffff0a;--panel-border:#ffffff1a;--board-light:#f0d9b5;--board-dark:#b58863}[data-theme=dark]{--bg-app:#0a0d14;--text-main:#f0f0f0;--nav-bg:#0d1117;--panel-bg:#ffffff0a;--panel-border:#ffffff1a}[data-theme=light]{--bg-app:#eef2f8;--text-main:#18202a;--nav-bg:#f8fafc;--panel-bg:#ffffffe0;--panel-border:#1018281f}.app-shell{background:var(--bg-app);min-height:100dvh;color:var(--text-main);flex-direction:row;display:flex}.app-content{min-height:100dvh;margin-left:var(--nav-w,72px);flex-direction:column;flex:1;display:flex;overflow-x:hidden}.app-content>*{animation:.28s both appPageEnter}@keyframes appPageEnter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.home-page{flex-direction:column;flex:1;width:100%;display:flex}@media (width<=640px){.app-content{margin-left:0;margin-bottom:var(--nav-h-mobile,60px);min-height:calc(100dvh - var(--nav-h-mobile,60px))}.home-page{min-height:calc(100dvh - var(--nav-h-mobile,60px))}}:root{--nav-w:72px;--nav-h-mobile:60px;--layout-pad:12px;--col-gap:12px;--eval-bar-w:26px;--sidebar-w:280px;--review-panel-w:0px;--board-border:16px;--move-list-mobile-max-h:180px;--mobile-gutter:16px;--h-chrome:calc(var(--nav-w) + var(--layout-pad) * 2 + var(--eval-bar-w) + var(--col-gap) + var(--col-gap) + var(--sidebar-w) + var(--review-panel-w) + var(--board-border));--v-chrome:calc(var(--layout-pad) * 2 + var(--board-border));--sq:max(44px, min(calc((100dvh - var(--v-chrome)) / 8), calc((100vw - var(--h-chrome)) / 8)));--board-size:calc(var(--sq) * 8 + var(--board-border))}.board-layout.with-review{--review-panel-w:calc(320px + var(--col-gap))}.chess-container{padding:var(--layout-pad);box-sizing:border-box;-webkit-user-select:none;user-select:none;flex-direction:column;flex:auto;justify-content:flex-start;align-items:center;width:100%;display:flex}.board-layout{align-items:stretch;gap:var(--col-gap);height:var(--board-size);flex-direction:row;justify-content:center;display:flex}.sidebar{width:var(--sidebar-w);scrollbar-width:thin;scrollbar-color:#ffffff26 transparent;flex-direction:column;flex-shrink:0;gap:8px;min-height:0;display:flex;overflow:hidden auto}.analysis-panel{opacity:0;pointer-events:none;flex-direction:column;flex-shrink:0;width:0;max-width:0;min-height:0;transition:width .45s cubic-bezier(.22,1,.36,1),max-width .45s cubic-bezier(.22,1,.36,1),opacity .32s,transform .45s cubic-bezier(.22,1,.36,1);display:flex;overflow:hidden;transform:translate(20px)}.analysis-panel.visible{opacity:1;pointer-events:auto;width:320px;max-width:320px;transform:translate(0)}@media (width<=960px){:root{--sidebar-w:240px}.analysis-panel.visible{width:260px;max-width:260px}.board-layout.with-review{--review-panel-w:calc(260px + var(--col-gap))}}@media (width<=640px){:root{--sq:calc((100vw - var(--mobile-gutter)) / 8)}.chess-container{align-items:stretch;padding:0}.board-layout{flex-direction:column;align-items:stretch;gap:0;height:auto}.sidebar{width:100%;height:auto;min-height:unset;gap:0;max-height:none;padding:0 8px;overflow:hidden visible}.analysis-panel{width:100%;max-width:100%;height:auto;max-height:0;padding:0 8px;transition:max-height .45s cubic-bezier(.22,1,.36,1),opacity .32s;overflow:hidden;transform:none}.analysis-panel.visible{width:100%;max-width:100%;max-height:2000px;overflow:visible}.sidebar .game-status,.sidebar .engine-controls,.sidebar .engine-lines,.sidebar .move-history,.analysis-panel .game-review{box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;margin:0!important;padding:10px 0!important}.sidebar .engine-lines,.sidebar .move-history,.analysis-panel .game-review{border-top:1px solid #ffffff0f!important}.move-list{max-height:var(--move-list-mobile-max-h)}}:root{--board-light:#f0d9b5;--board-dark:#b58863}.board-area-outer{flex-direction:row;flex-shrink:0;align-items:stretch;display:flex}.eval-slot{opacity:0;flex-direction:column;flex-shrink:0;width:0;margin-right:0;transition:width .45s cubic-bezier(.22,1,.36,1),opacity .28s,margin-right .45s cubic-bezier(.22,1,.36,1);display:flex;overflow:hidden}.eval-slot.visible{width:var(--eval-bar-w,26px);opacity:1;margin-right:8px}.eval-slot.hidden{pointer-events:none}.board-with-eval{flex-shrink:0;align-items:stretch;display:flex}.board-area{align-items:stretch;display:flex}.board-column{flex-direction:column;align-items:stretch;display:flex}.board-grid{grid-template-columns:repeat(8, var(--sq));grid-template-rows:repeat(8, var(--sq));border:8px solid #333;border-radius:10px;flex-shrink:0;display:grid}.square{width:var(--sq);height:var(--sq);cursor:pointer;box-sizing:border-box;justify-content:center;align-items:center;display:flex;position:relative}.square.light{background:var(--board-light)}.square.dark{background:var(--board-dark)}.square.light.selected{background:#f6f669}.square.dark.selected{background:#d3d34c}.square.hovered:before{content:"";pointer-events:none;z-index:0;background:#ffffff21;position:absolute;inset:0}.square.drag-over{filter:brightness(1.25)}.square.drag-over:before{content:"";z-index:3;pointer-events:none;background:#50be6459;position:absolute;inset:0}.square.legal-empty:after{content:"";z-index:4;pointer-events:none;background:#00000038;border-radius:50%;width:32%;height:32%;position:absolute}.square.legal-capture{box-shadow:inset 0 0 0 4px #d22d2dd9}.square.best-from{background:#64c86473!important}.square.best-to:after{content:"";z-index:4;pointer-events:none;background:#64c86466;border-radius:2px;position:absolute;inset:0}.piece{object-fit:contain;pointer-events:none;z-index:1;width:100%;height:100%;position:relative}.move-annotation-tint{pointer-events:none;z-index:2;position:absolute;inset:0}.move-annotation-icon{object-fit:contain;pointer-events:none;z-index:5;filter:drop-shadow(0 1px 3px #000000b3);width:40%;height:40%;position:absolute;top:-16%;right:-16%}.drag-ghost{pointer-events:none;z-index:1000;object-fit:contain;filter:drop-shadow(0 6px 12px #0009);transform-origin:50%;position:fixed}.promotion-overlay{z-index:1200;background:#00000073;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.promotion-modal{background:#111827;border:1px solid #ffffff29;border-radius:12px;flex-direction:column;gap:10px;width:min(320px,100vw - 24px);padding:14px;display:flex}.promotion-modal h3{color:#e5edf8;margin:0;font-size:1rem}.promotion-modal p{color:#9db2d0;margin:0;font-size:.82rem}.promotion-choices{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.promotion-choice{cursor:pointer;background:#ffffff0d;border:1px solid #ffffff29;border-radius:10px;padding:6px}.promotion-choice img{aspect-ratio:1;object-fit:contain;width:100%}.promotion-cancel{color:#c7d4e7;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff29;border-radius:8px;padding:8px 12px}.coord{opacity:.75;z-index:5;pointer-events:none;font-size:.62rem;font-weight:700;line-height:1;position:absolute}.rank-coord{top:2px;left:2px}.file-coord{bottom:2px;right:3px}.square.light .coord{color:var(--board-dark)}.square.dark .coord{color:var(--board-light)}@media (width<=640px){.board-area-outer{flex-direction:column;width:100%;padding:0 8px}.eval-slot{flex-direction:row;align-items:center;width:100%;height:0;max-height:0;margin-right:0;transition:height .38s cubic-bezier(.22,1,.36,1),max-height .38s cubic-bezier(.22,1,.36,1),opacity .26s;transform:none}.eval-slot.visible{opacity:1;height:22px;max-height:22px;margin-bottom:6px;margin-right:0;transform:none}.eval-slot.hidden{height:0;max-height:0}.board-with-eval{justify-content:center}}.eval-bar{border:1px solid #ffffff1f;border-radius:3px;flex-direction:column;flex:1 0 0;width:26px;min-height:0;display:flex;position:relative;overflow:hidden}.eval-bar-black{height:var(--eval-black,50%);background:#1a1a1a;width:100%;transition:height .4s,width .4s}.eval-bar-white{background:#f0f0f0;flex:1;width:100%;transition:height .4s,width .4s}.eval-score{letter-spacing:-.01em;white-space:nowrap;pointer-events:none;font-size:.65rem;font-weight:700;line-height:1;position:absolute;bottom:6px;left:50%;transform:translate(-50%)}.eval-score-white{color:#000;top:auto;bottom:6px}.eval-score-black{color:#fff;top:6px;bottom:auto}@media (width<=640px){.eval-bar{align-self:unset;border-radius:3px;flex-direction:row-reverse;flex:1;width:100%;height:100%}.eval-bar-black{height:100%;width:var(--eval-black,50%);flex:none}.eval-bar-white{height:100%;width:var(--eval-white,50%);flex:none}.eval-score{font-size:.6rem;top:50%;bottom:auto;left:6px;transform:translateY(-50%)}.eval-score-white{inset:50% auto auto 6px;transform:translateY(-50%)}.eval-score-black{inset:50% 6px auto auto;transform:translateY(-50%)}}.engine-controls{background:#ffffff0a;border:1px solid #ffffff14;border-radius:8px;flex-direction:column;gap:.45rem;padding:.55rem .85rem;display:flex}.engine-status-row{align-items:center;gap:.5rem;display:flex}.engine-ready-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.engine-ready-dot.ready{background:#4caf50;box-shadow:0 0 4px #4caf50}.engine-ready-dot.loading{background:#ff9800;animation:1s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.engine-label{color:#aaa;font-size:.8rem}.engine-depth-badge{color:#7ec8e3;background:#4e90d926;border:1px solid #4e90d94d;border-radius:4px;margin-left:auto;padding:.1rem .4rem;font-size:.72rem}.skill-row{flex-direction:column;gap:.2rem;display:flex}.skill-label{color:#bbb;font-size:.78rem}.skill-label strong{color:#ddd}.skill-slider{accent-color:#4a90d9;cursor:pointer;width:100%}.skill-range-labels{color:#666;justify-content:space-between;margin-top:1px;font-size:.68rem;display:flex}.slider-control{flex-direction:column;gap:.4rem;width:100%;display:flex}.slider-title{color:#bbb;font-size:.76rem;font-weight:500}.slider-track-wrap{align-items:center;gap:.7rem;display:flex}.slider-track-container{flex:1;position:relative}.slider-input{cursor:pointer;appearance:none;background:linear-gradient(90deg, #4a90d9 var(--percent,0%), #ffffff1f var(--percent,0%));-webkit-tap-highlight-color:transparent;border-radius:999px;outline:none;width:100%;height:6px;transition:background .1s}.slider-input::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#fff;border:3px solid #4a90d9;border-radius:50%;width:20px;height:20px;transition:transform .14s cubic-bezier(.34,1.56,.64,1),box-shadow .14s;box-shadow:0 2px 8px #0006}.slider-input::-webkit-slider-thumb:hover{transform:scale(1.15);box-shadow:0 4px 12px #4a90d980}.slider-input::-webkit-slider-thumb:active{transform:scale(.95);box-shadow:0 2px 6px #00000073}.slider-input::-moz-range-thumb{cursor:pointer;background:#fff;border:3px solid #4a90d9;border-radius:50%;width:20px;height:20px;transition:transform .14s cubic-bezier(.34,1.56,.64,1),box-shadow .14s;box-shadow:0 2px 8px #00000059}.slider-input::-moz-range-thumb:hover{transform:scale(1.12)}.slider-input::-moz-range-thumb:active{transform:scale(.95)}.slider-output{color:#ccc;text-align:right;min-width:44px;font-size:.78rem;font-weight:600}.slider-range-labels{color:#666;justify-content:space-between;font-size:.68rem;display:flex}.shared-switch{cursor:pointer;-webkit-tap-highlight-color:transparent;align-items:center;display:inline-flex;position:relative}.shared-switch input{opacity:0;width:0;height:0;position:absolute}.shared-switch-track{background:#ffffff24;border-radius:999px;width:46px;height:26px;transition:background .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;position:relative;box-shadow:inset 0 1px 3px #0000004d}.shared-switch-track:after{content:"";background:#aaa;border-radius:50%;width:20px;height:20px;transition:transform .26s cubic-bezier(.34,1.56,.64,1),background .22s,box-shadow .2s;position:absolute;top:3px;left:3px;box-shadow:0 2px 6px #00000059}.shared-switch input:checked+.shared-switch-track{background:#4a90d9d9;box-shadow:inset 0 1px 3px #00000026,0 0 #4a90d959}.shared-switch input:checked+.shared-switch-track:after{background:#fff;transform:translate(20px);box-shadow:0 3px 8px #0006}.shared-switch:hover .shared-switch-track{background:#fff3}.shared-switch:hover input:checked+.shared-switch-track{background:#4a90d9f2}.shared-switch input:disabled+.shared-switch-track{opacity:.4;cursor:not-allowed;pointer-events:none}.shared-switch:active .shared-switch-track:after{transform:scaleX(1.15)}.shared-switch:active input:checked+.shared-switch-track:after{transform:translate(20px)scaleX(1.15)}.engine-lines{background:#ffffff0a;border:1px solid #ffffff14;border-radius:8px;flex-direction:column;gap:.35rem;padding:.55rem .85rem;display:flex}.el-header{flex-direction:column;gap:.35rem;display:flex}.el-title-row{justify-content:space-between;align-items:center;display:flex}.el-title{color:#aaa;text-transform:uppercase;letter-spacing:.06em;font-size:.78rem;font-weight:600}.el-toggle{cursor:pointer;align-items:center;display:inline-flex;position:relative}.el-toggle input{opacity:0;width:0;height:0;position:absolute}.el-toggle-track{background:#ffffff1f;border-radius:10px;width:34px;height:19px;transition:background .2s;display:inline-block;position:relative}.el-toggle-track:after{content:"";background:#666;border-radius:50%;width:15px;height:15px;transition:transform .2s,background .2s;position:absolute;top:2px;left:2px}.el-toggle input:checked+.el-toggle-track{background:#4a90d980}.el-toggle input:checked+.el-toggle-track:after{background:#4a90d9;transform:translate(15px)}.el-controls{align-items:center;gap:.3rem;display:flex}.el-lines-label{color:#666;margin-right:2px;font-size:.72rem}.el-lines-btn{color:#888;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:4px;padding:1px 6px;font-family:inherit;font-size:.72rem;line-height:1.4;transition:background .12s,color .12s,border-color .12s}.el-lines-btn.active{color:#7ec8e3;background:#4a90d933;border-color:#4a90d980}.el-lines-btn:hover:not(.active){color:#ccc;background:#ffffff1a}.el-thinking{color:#4a90d9;margin-left:auto;font-size:.6rem;animation:.8s ease-in-out infinite el-pulse}@keyframes el-pulse{0%,to{opacity:1}50%{opacity:.2}}.el-body{flex-direction:column;gap:.25rem;min-height:1.5rem;display:flex}.el-status{color:#555;font-size:.75rem}.el-loading{color:#7ec8e3;align-items:center;gap:.45rem;font-size:.75rem;display:flex}.el-spinner{border:2px solid #7ec8e340;border-top-color:#7ec8e3;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:.7s linear infinite el-spin;display:inline-block}@keyframes el-spin{to{transform:rotate(360deg)}}.el-line{align-items:baseline;gap:.4rem;font-size:.78rem;line-height:1.5;display:flex;overflow:hidden}.el-eval{flex-shrink:0;min-width:3.8em;font-size:.82rem;font-weight:700}.el-eval.pos{color:#e8e8e8}.el-eval.neg{color:#9db2d0}.el-depth{color:#444;flex-shrink:0;min-width:2.2em;font-size:.68rem}.el-moves{color:#b0bec5;white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.game-status{flex-direction:column;gap:.5rem;width:100%;display:flex}.turn-info{color:#ddd;align-items:center;gap:.5rem;font-size:.95rem;font-weight:500;display:flex}.turn-info.gameover{color:#f4c542;font-weight:700}.status-controls{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.turn-dot{border:2px solid #fff6;border-radius:50%;flex-shrink:0;width:13px;height:13px}.dot-white{background:#f8f8f8}.dot-black{background:#1a1a1a}.reset-btn,.engine-toggle-btn,.review-btn{color:#ccc;cursor:pointer;background:#1a1a2e;border:1px solid #444;border-radius:6px;padding:.35rem .75rem;font-size:.85rem;transition:background .15s,color .15s,border-color .15s}.reset-btn:hover,.engine-toggle-btn:hover,.review-btn:hover{color:#fff;background:#2a2a4a}.engine-toggle-btn.active,.review-btn.active{color:#7ec8e3;background:#1e3a5f;border-color:#4a90d9}.move-history{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:8px;flex-direction:column;flex:1;gap:.5rem;min-height:0;padding:.6rem .75rem;display:flex}.move-history-header{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.move-history-title{text-transform:uppercase;letter-spacing:.07em;color:#888;font-size:.75rem;font-weight:600}.move-history-nav{gap:2px;display:flex}.nav-btn{color:#ccc;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:4px;padding:3px 6px;font-size:.7rem;line-height:1;transition:background .12s,color .12s}.nav-btn:hover:not(:disabled){color:#fff;background:#ffffff24}.nav-btn:disabled{opacity:.3;cursor:default}.move-list{scrollbar-width:thin;scrollbar-color:#444 transparent;flex-direction:column;flex:auto;gap:2px;min-height:0;display:flex;overflow-y:auto}.move-row{align-items:center;gap:4px;display:flex}.move-num{color:#555;text-align:right;flex-shrink:0;min-width:22px;font-size:.78rem}.move-btn{color:#ccc;cursor:pointer;text-align:center;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:4px;min-width:52px;padding:2px 8px;font-family:inherit;font-size:.82rem;transition:background .1s,color .1s,border-color .1s}.move-btn:hover{color:#fff;background:#ffffff1f;border-color:#ffffff40}.move-btn.active{color:#7ec8e3;background:#1e3a5f;border-color:#4a90d9;font-weight:600}.no-moves{color:#555;font-size:.8rem}.back-to-live-btn{color:#7ec8e3;cursor:pointer;text-align:center;background:#4e90d926;border:1px solid #4e90d966;border-radius:5px;align-self:stretch;padding:4px 10px;font-family:inherit;font-size:.78rem;transition:background .12s}.back-to-live-btn:hover{background:#4e90d947}.game-review{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:8px;flex-direction:column;flex:1;gap:.75rem;width:100%;padding:.85rem .95rem;display:flex;overflow-y:auto}.game-review-header{justify-content:space-between;align-items:center;display:flex}.game-review-title{text-transform:uppercase;letter-spacing:.07em;color:#888;font-size:.75rem;font-weight:600}.gr-close-btn{color:#666;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:.8rem;line-height:1;transition:color .12s,background .12s}.gr-close-btn:hover{color:#ccc;background:#ffffff14}.gr-setup{flex-direction:column;gap:.45rem;display:flex}.gr-depth-label{color:#aaa;font-size:.8rem}.gr-depth-row{align-items:center;gap:.5rem;display:flex}.gr-depth-input{color:#eee;text-align:center;background:#ffffff12;border:1px solid #ffffff24;border-radius:5px;width:64px;padding:4px 8px;font-family:inherit;font-size:.88rem}.gr-depth-input:focus{border-color:#4a90d9;outline:none}.gr-start-btn{color:#7ec8e3;cursor:pointer;background:#1e3a5f;border:1px solid #4a90d9;border-radius:6px;flex:1;padding:5px 12px;font-family:inherit;font-size:.85rem;transition:background .15s}.gr-start-btn:hover:not(:disabled){background:#264d7a}.gr-start-btn:disabled{opacity:.45;cursor:default}.gr-hint{color:#555;margin:0;font-size:.74rem;line-height:1.4}.gr-loading{color:#9aa9c1;justify-content:center;align-items:center;min-height:240px;display:flex}.gr-results{flex-direction:column;gap:.55rem;display:flex}.gr-player-stats{background:#ffffff05;border:1px solid #ffffff14;border-radius:6px;padding:.7rem .8rem}.gr-stats-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.gr-player-stat{flex-direction:column;gap:.5rem;display:flex}.gr-stat-header{align-items:center;gap:.4rem;margin-bottom:.2rem;display:flex}.gr-player-color{font-size:.9rem;line-height:1}.gr-player-label{text-transform:uppercase;letter-spacing:.06em;color:#888;font-size:.75rem;font-weight:600}.gr-stat-values{flex-direction:column;gap:.35rem;display:flex}.gr-stat-item{justify-content:space-between;align-items:baseline;display:flex}.gr-stat-label{color:#666;font-size:.72rem}.gr-stat-value{color:#7ec8e3;font-size:.82rem;font-weight:600}@media (width<=640px){.gr-stats-row{grid-template-columns:1fr;gap:.8rem}}.gr-progress-wrap{background:#ffffff12;border-radius:3px;height:6px;position:relative;overflow:hidden}.gr-progress-bar{background:#4a90d9;border-radius:3px;height:100%;transition:width .2s;position:absolute;top:0;left:0}.gr-progress-text{color:#666;margin-top:4px;font-size:.72rem;display:block}.gr-graph-wrap{flex-direction:column;gap:4px;display:flex}.eval-graph-svg{cursor:crosshair;border:1px solid #ffffff1a;border-radius:4px;width:100%;height:200px;display:block}.gr-graph-labels{color:#555;justify-content:space-between;font-size:.65rem;display:flex}.gr-current-eval{align-items:baseline;gap:.5rem;font-size:.82rem;display:flex}.gr-eval-label{color:#666}.gr-eval-value{font-size:.95rem;font-weight:700}.gr-eval-value.pos{color:#e8e8e8}.gr-eval-value.neg{color:#aaa}.gr-eval-depth{color:#555;font-size:.7rem}.gr-controls{gap:.5rem;display:flex}.gr-restart-btn,.gr-stop-btn{color:#aaa;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff24;border-radius:5px;padding:4px 12px;font-family:inherit;font-size:.8rem;transition:background .12s,color .12s}.gr-restart-btn:hover,.gr-stop-btn:hover{color:#eee;background:#ffffff1a}.gr-move-summary{background:#ffffff05;border:1px solid #ffffff14;border-radius:6px;flex-direction:column;gap:.22rem;padding:.55rem .7rem;display:flex}.gr-move-summary-header{grid-template-columns:1fr 1.8rem 1.8rem;align-items:center;margin-bottom:.2rem;display:grid}.gr-move-summary-row{grid-template-columns:1fr 1.8rem 1.8rem;align-items:center;gap:.2rem;display:grid}.gr-move-summary-label{color:#aaa;align-items:center;gap:.35rem;font-size:.73rem;display:flex}.gr-move-summary-icon{object-fit:contain;flex-shrink:0;width:14px;height:14px}.gr-move-summary-player{text-align:center;color:#666;font-size:.8rem}.gr-move-summary-count{color:#444;text-align:center;font-size:.73rem;font-weight:600}.gr-move-summary-count.has-count{color:#9db2d0}.analysis-page{box-sizing:border-box;width:100%;max-width:720px;margin:0 auto;padding:24px 20px 48px}.analysis-header{margin-bottom:28px}.analysis-title{color:#f0f0f0;margin:0 0 6px;font-size:1.6rem;font-weight:700}.analysis-subtitle{color:#666;margin:0;font-size:.88rem}.analysis-section{margin-bottom:28px}.analysis-section-title{text-transform:uppercase;letter-spacing:.1em;color:#4a90d9;margin:0 0 12px;font-size:.7rem;font-weight:700}.analysis-input-group{margin-bottom:12px}.analysis-input-label{color:#888;margin-bottom:5px;font-size:.78rem;display:block}.analysis-text-input{color:#ccc;box-sizing:border-box;resize:none;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:6px;outline:none;width:100%;padding:8px 12px;font-family:Fira Mono,Consolas,monospace;font-size:.85rem;transition:border-color .2s,background .2s}.analysis-text-input:focus{background:#ffffff14;border-color:#4a90d966}.analysis-textarea{resize:vertical;min-height:80px}.analysis-error{color:#ff6b6b;background:#dc35451a;border:1px solid #dc35454d;border-radius:6px;margin:12px 0;padding:10px 14px;font-size:.82rem}.analysis-button-group{flex-wrap:wrap;gap:10px;margin:16px 0;display:flex}.analysis-load-btn,.analysis-quick-btn,.analysis-clear-btn{color:#7ec8e3;cursor:pointer;background:#4a90d926;border:1px solid #4a90d94d;border-radius:7px;padding:9px 18px;font-family:inherit;font-size:.85rem;font-weight:500;transition:all .2s}.analysis-load-btn:hover:not(:disabled),.analysis-quick-btn:hover,.analysis-clear-btn:hover{background:#4a90d940;border-color:#4a90d980}.analysis-load-btn:disabled{color:#666;cursor:not-allowed;opacity:.6;background:#ffffff0d;border:1px solid #ffffff1f}.analysis-quick-btn{color:#999;background:#ffffff0d;border-color:#ffffff26}.analysis-clear-btn{color:#888;background:#ffffff08;border-color:#ffffff1a}.analysis-hint{background:#ffffff08;border:1px solid #ffffff14;border-radius:8px;margin-top:20px;padding:14px 16px}.analysis-hint p{color:#aaa;margin:0 0 8px;font-size:.84rem}.analysis-hint strong{color:#ddd}.analysis-hint ul{color:#888;margin:0;padding-left:20px;font-size:.8rem;line-height:1.6}.analysis-hint li{margin-bottom:4px}.analysis-board-placeholder{color:#555;text-align:center;background:#ffffff08;border:1px dashed #ffffff1a;border-radius:10px;flex-direction:column;align-items:center;gap:8px;padding:40px 20px;font-size:.88rem;display:flex}.placeholder-icon{opacity:.3;font-size:3rem;line-height:1}.analysis-board-placeholder p,.analysis-lines-placeholder p{margin:0}.placeholder-hint{color:#444;max-width:380px;font-size:.78rem;line-height:1.5}.placeholder-hint strong{color:#7ec8e3}.placeholder-hint em{color:#7ec8e3;font-style:normal}.analysis-lines-placeholder{background:#ffffff08;border:1px solid #ffffff14;border-radius:8px;flex-direction:column;gap:6px;padding:8px 12px;display:flex}.analysis-line-row{border-bottom:1px solid #ffffff0d;align-items:center;gap:12px;padding:6px 0;font-size:.85rem;display:flex}.analysis-line-row:last-of-type{border-bottom:none}.analysis-line-row.skeleton{opacity:.25;pointer-events:none}.line-eval{color:#7ec8e3;min-width:38px;font-size:.82rem;font-weight:700}.line-moves{color:#aaa;font-family:Fira Mono,Consolas,monospace;font-size:.8rem}.sp-overlay{z-index:900;-webkit-backdrop-filter:blur();backdrop-filter:blur();padding:0 0 env(safe-area-inset-bottom,0);background:0 0;justify-content:center;align-items:flex-end;transition:background .22s,-webkit-backdrop-filter .22s,backdrop-filter .22s;display:flex;position:fixed;inset:0}@media (width>=641px){.sp-overlay{align-items:center}}.sp-overlay--visible{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0000008c}.sp-panel{background:var(--panel-popup-bg,#161b26);opacity:0;border:1px solid #ffffff1a;border-radius:20px 20px 0 0;width:100%;max-width:420px;max-height:80dvh;padding:8px 0 24px;transition:transform .24s cubic-bezier(.22,1,.36,1),opacity .2s;overflow-y:auto;transform:translateY(28px);box-shadow:0 -8px 48px #00000080}@media (width>=641px){.sp-panel{border-radius:16px;max-width:320px;padding:8px 0 12px;transform:translateY(12px)scale(.97);box-shadow:0 24px 64px #0000008c}}.sp-overlay--visible .sp-panel{opacity:1;transform:translateY(0)scale(1)}.sp-title{letter-spacing:.1em;text-transform:uppercase;color:#4a90d9;border-bottom:1px solid #ffffff12;margin-bottom:4px;padding:10px 20px 8px;font-size:.68rem;font-weight:700}.sp-options{flex-direction:column;display:flex}.sp-option{color:#ccc;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent;background:0 0;border:none;justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;font-family:inherit;font-size:.9rem;transition:background .12s,color .12s;display:flex}.sp-option:hover{color:#eee;background:#ffffff0d}.sp-option:active{background:#ffffff14}.sp-option--active{color:#fff;font-weight:600}.sp-option--disabled{opacity:.38;cursor:not-allowed;pointer-events:none}.sp-option-label{flex:1}.sp-check{color:#4a90d9;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:flex}.sp-check svg{width:100%;height:100%}[data-theme=light] .sp-panel{background:#fff;border-color:#0000001a;box-shadow:0 -8px 48px #00000026}[data-theme=light] .sp-title{border-color:#00000012}[data-theme=light] .sp-option{color:#333}[data-theme=light] .sp-option:hover{color:#111;background:#0000000a}[data-theme=light] .sp-option--active{color:#111}.settings-page{box-sizing:border-box;width:100%;max-width:640px;margin:0 auto;padding:32px 20px 56px;animation:.28s both pageEnter}@keyframes pageEnter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.settings-header{text-align:center;margin-bottom:32px}.settings-title{color:var(--text-main);letter-spacing:-.02em;margin:0 0 6px;font-size:1.7rem;font-weight:700}.settings-subtitle{color:#888;margin:0;font-size:.875rem}.setting-section{margin-bottom:28px}.setting-section-title{text-transform:uppercase;letter-spacing:.1em;color:#4a90d9;margin:0 0 10px;font-size:.68rem;font-weight:700}.setting-section-body{background:var(--panel-bg,#ffffff0a);border:1px solid var(--panel-border,#ffffff14);border-radius:12px;overflow:hidden}.setting-row{border-bottom:1px solid #ffffff0f;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;transition:background .12s;display:flex}.setting-row:last-child{border-bottom:none}.setting-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.setting-label{color:var(--text-main);font-size:.9rem;font-weight:500}.setting-desc{color:#666;font-size:.76rem}.setting-control{flex-shrink:0}.select-trigger{color:#ccc;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;background:#ffffff12;border:1px solid #ffffff1f;border-radius:8px;justify-content:space-between;align-items:center;gap:6px;min-width:130px;padding:6px 10px 6px 12px;font-family:inherit;font-size:.85rem;transition:background .14s,border-color .14s,color .14s;display:inline-flex}.select-trigger:hover{color:#eee;background:#ffffff1c;border-color:#fff3}.select-trigger:active{background:#ffffff0f}.select-trigger--disabled{opacity:.38;cursor:not-allowed}.select-trigger-value{flex:1}.select-trigger-chevron{opacity:.6;flex-shrink:0;justify-content:center;align-items:center;width:14px;height:14px;display:flex}.select-trigger-chevron svg{width:100%;height:100%}.setting-row .slider-control{width:200px}@media (width<=480px){.setting-row{flex-direction:column;align-items:flex-start;gap:10px}.setting-row .slider-control{width:100%}.select-trigger{min-width:160px}}.about-card{flex-direction:column;gap:4px;padding:16px;display:flex}.about-name{color:var(--text-main);margin:0;font-size:1rem;font-weight:700}.about-version{color:#555;margin:0;font-size:.78rem}.about-desc{color:#888;margin:4px 0 0;font-size:.82rem;line-height:1.5}[data-theme=light] .setting-row{border-color:#0000000f}[data-theme=light] .setting-section-body{background:#ffffffe0;border-color:#0000001a}[data-theme=light] .select-trigger{color:#333;background:#0000000d;border-color:#0000001f}[data-theme=light] .select-trigger:hover{color:#111;background:#00000014}:root{--nav-w:72px;--nav-h-mobile:60px}.app-nav{width:var(--nav-w);background:var(--nav-bg);z-index:200;border-right:1px solid #ffffff12;flex-direction:column;align-items:center;gap:8px;height:100dvh;padding:12px 0 20px;display:flex;position:fixed;top:0;left:0}.app-nav-logo{flex-shrink:0;width:36px;height:36px;margin-bottom:16px}.app-nav-logo svg{width:100%;height:100%}.app-nav-list{flex-direction:column;align-items:center;gap:4px;width:100%;margin:0;padding:0;list-style:none;display:flex}.app-nav-item{color:#666;cursor:pointer;background:0 0;border:none;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:52px;padding:10px 0;font-family:inherit;text-decoration:none;transition:color .15s,background .15s;display:flex}.app-nav-item:hover{color:#ccc;background:#ffffff0f}.app-nav-item.active{color:#7ec8e3;background:#4a90d926}.app-nav-icon{flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;display:flex}.app-nav-icon svg{width:100%;height:100%}.app-nav-label{letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;font-size:.58rem;font-weight:600;line-height:1}@media (width<=640px){.app-nav{width:100%;height:var(--nav-h-mobile);border-top:1px solid #ffffff17;border-right:none;flex-direction:row;justify-content:space-around;align-items:center;gap:0;padding:0 8px;inset:auto 0 0}.app-nav-logo{display:none}.app-nav-list{flex-direction:row;justify-content:space-around;gap:0;width:100%}.app-nav-item{border-radius:8px;flex:1;width:auto;padding:8px 4px}.app-nav-label{font-size:.55rem}}
