:root{font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,sans-serif;color:#182226;background:#edf1ee;font-synthesis:none;text-rendering:optimizeLegibility;font-optical-sizing:auto;font-weight:400;--red: #ae302b;--green: #376d58;--paper: #e9bf83;--ink: #49351d}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:radial-gradient(circle at 12% 0%,#f8f7ef 0,transparent 38rem),#edf1ee}button{font:inherit}.app-shell{width:min(1120px,100% - 40px);margin:0 auto;padding:30px 0 48px}.page-header{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.eyebrow{margin:0 0 4px;color:var(--green);font-size:.75rem;font-weight:750;letter-spacing:.15em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:4px;font-size:clamp(1.65rem,4vw,2.2rem)}.subtitle{margin-bottom:0;color:#5c6968}.engine-notice{max-width:300px;margin:0 0 4px;color:#5c6968;font-size:.88rem;text-align:right}.game-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);align-items:start;gap:20px}.board-panel,.side-panel{border:1px solid #d8dfd9;border-radius:20px;background:#ffffffd1;box-shadow:0 12px 40px #1c2c250f}.board-panel{padding:14px}.board-caption{margin:2px 4px 10px;color:#57645f;font-size:.9rem}.board-frame{width:100%;max-width:580px;margin:0 auto}.board-frame svg{display:block;width:100%;height:auto;overflow:visible}.board-paper{fill:var(--paper);stroke:#966d3d;stroke-width:2}.board-line{stroke:#634523;stroke-width:1.5;vector-effect:non-scaling-stroke}.river-label{font-size:20px;font-weight:700;text-anchor:middle;dominant-baseline:central}.red-river{fill:#813b2b}.black-river{fill:#433b31}.board-cell{cursor:pointer;outline:none}.board-cell:focus-visible .empty-hit-target,.board-cell:focus-visible .piece-disc{stroke:#1c7461;stroke-width:4}.empty-hit-target{fill:transparent}.piece-disc{stroke-width:1.7}.piece-red{fill:#fff4d9;stroke:#a63830}.piece-black{fill:#fff7e6;stroke:#39362f}.piece-label{font-size:23px;font-weight:800;text-anchor:middle;dominant-baseline:central;pointer-events:none}.piece-label-red{fill:#a52826}.piece-label-black{fill:#242a28}.last-move-mark{fill:#eabf32;opacity:.34;pointer-events:none}.selected-mark{fill:none;stroke:#226f5c;stroke-width:4;pointer-events:none}.legal-dot{fill:#226f5c;opacity:.74;pointer-events:none}.legal-capture{fill:none;stroke:#246e5d;stroke-width:4;opacity:.8;pointer-events:none}.side-panel{display:flex;flex-direction:column;gap:16px;padding:20px}.turn-card{padding:16px;border-radius:14px;background:#f0f5f1}.turn-card h2{display:inline;margin:0 0 0 9px;font-size:1.2rem}.turn-card p{min-height:1.4em;margin:9px 0 0;color:#5b6762;font-size:.88rem}.difficulty-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px 12px}.difficulty-card label{font-weight:700}.difficulty-card select{min-height:44px;padding:6px 10px;border:1px solid #cbd7cf;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.difficulty-card select:disabled{opacity:.55}.difficulty-card p{grid-column:1 / -1;margin:0;color:#697570;font-size:.82rem}#difficulty-status{min-height:1.2em}.live-evaluation-card{display:grid;gap:8px}.live-evaluation-card label{display:flex;align-items:center;gap:9px;font-weight:700}.live-evaluation-card input{width:20px;height:20px;accent-color:var(--green)}#live-assisted-status{margin:0;color:#6a5942;font-size:.82rem}#live-win-probability{position:relative;height:30px;overflow:hidden;border:1px solid #cbd7cf;border-radius:8px;background:#f3d9d4}.live-probability-fill{position:absolute;inset:0 auto 0 0;background:#7eaf92;transition:width .2s ease}.live-probability-label{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#182226;font-size:.82rem;font-weight:750;text-shadow:0 1px 1px #fff}.turn-dot{display:inline-block;width:11px;height:11px;border-radius:50%}.turn-dot-red{background:var(--red)}.turn-dot-black{background:var(--ink)}.turn-dot-neutral{background:var(--muted)}#board.board-disabled{cursor:not-allowed;opacity:.68;pointer-events:none}.actions{display:flex;gap:10px}.actions button{min-height:44px;flex:1;border:0;border-radius:11px;background:var(--green);color:#fff;font-weight:700;cursor:pointer}.actions .secondary{border:1px solid #cbd7cf;background:#fff;color:#325d4e}.actions button:disabled{cursor:not-allowed;opacity:.45}.actions button:focus-visible{outline:3px solid #e1b83c;outline-offset:2px}.game-message{min-height:1.25em;margin:-8px 2px 0;color:var(--red);font-size:.9rem}.record-card{border-top:1px solid #e3e8e3;padding-top:14px}.import-card textarea{display:block;width:100%;min-height:132px;resize:vertical;box-sizing:border-box;padding:10px;border:1px solid #cbd7cf;border-radius:10px;background:#fff;color:var(--ink);font:14px/1.5 ui-monospace,monospace}.import-card .actions{margin-top:9px}.import-card p{min-height:1.4em;margin:8px 0 0;color:#52635a;font-size:13px}.section-heading{display:flex;align-items:baseline;justify-content:space-between}.section-heading h2{margin:0 0 8px;font-size:1rem}.section-heading span{color:#738078;font-size:.82rem}.move-list{display:flex;flex-direction:column;gap:6px;max-height:350px;margin:0;padding:0;overflow:auto;list-style:none}.move-row{display:grid;grid-template-columns:2.1rem 3.2rem 1fr auto;align-items:baseline;gap:5px;padding:8px 9px;border-radius:9px;background:#f7f8f5}.move-number,.move-side{color:#697570;font-size:.78rem}.move-row strong{font-size:.95rem}.move-row code{color:#697570;font-size:.75rem}.move-row-red strong{color:var(--red)}.move-row-black strong{color:#2f3836}.empty-record{padding:10px;color:#7b8580;font-size:.9rem}.review-launch{display:grid;grid-template-columns:1fr auto;gap:8px;padding-top:12px;border-top:1px solid #e3e8e3}.review-launch label{grid-column:1 / -1;font-weight:700}.review-engine-notice{grid-column:1 / -1;margin:0;font-size:.85rem;color:#5b6b63}.review-launch select,.review-launch button,.review-actions button,.candidate-lines button{min-height:40px;padding:7px 10px;border:1px solid #cbd7cf;border-radius:9px;background:#fff;color:#325d4e;font:inherit}.review-launch button,.review-actions button{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}.review-launch button:disabled,.review-actions button:disabled{opacity:.48}.review-panel{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #d4e0d7;border-radius:14px;background:#f5f8f4}.review-panel[hidden]{display:none}.review-panel .section-heading h2{font-size:1.05rem}.review-panel p{margin:0;color:#56645c;font-size:.88rem}.review-chart{display:block;width:100%;height:auto;min-height:84px;overflow:visible}.review-curve{fill:none;stroke:#34745e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.review-point{fill:#fff;stroke:#34745e;stroke-width:3;cursor:pointer}.review-point-marked{fill:#f9d9d3;stroke:#a43f32;stroke-width:4}.review-point-selected{fill:#d6a935;stroke:#815d12}.candidate-lines{display:grid;gap:8px;margin:0;padding:0;list-style:none}.candidate-lines li{display:grid;gap:5px;padding:10px;border-radius:10px;background:#fff}.candidate-lines li>div{color:#273d35;font:.8rem/1.5 ui-monospace,monospace;overflow-wrap:anywhere}.candidate-lines button{justify-self:start;min-height:34px}.review-actions{display:flex;flex-wrap:wrap;gap:8px}.review-actions button{flex:1}@media(max-width:639px){.app-shell{width:min(100% - 20px,560px);padding-top:18px}.page-header{align-items:start;flex-direction:column;gap:9px;margin-bottom:12px}.engine-notice{max-width:none;margin:0;text-align:left}.game-layout{display:flex;flex-direction:column;gap:12px}.board-panel{width:100%;padding:9px}.board-caption{margin-bottom:5px;font-size:.8rem}.side-panel{width:100%;gap:11px;padding:14px}.turn-card{padding:12px}.move-list{max-height:220px}}#update-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;padding:8px 16px;background:var(--green);color:#fff}#update-banner button{padding:4px 14px;border:1px solid #fff;border-radius:6px;background:#fff;color:var(--green);cursor:pointer}#update-banner button:disabled{opacity:.6;cursor:default}@media(prefers-color-scheme:dark){#update-banner{background:#1d3a2e;color:#e8f1ec}#update-banner button{border-color:#e8f1ec;background:transparent;color:#e8f1ec}}
