@charset "UTF-8";
:root{--paper:#f4f5f0;--white:#fff;--ink:#202e33;--muted:#7c8682;--line:#e4e8e0;--green:#188579;--green-deep:#174f48;--green-light:#eaf2eb;--coral:#e87961;--human:#188579;--bot:#e87961;--radius:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #7eb8ad;outline-offset:4px}button{transition:background .18s,transform .18s,color .18s}button:active:not(:disabled){transform:translateY(1px)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.site-header{height:105px;max-width:1536px;margin:0 auto;padding:0 64px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:34px}.brand{font-size:37px;letter-spacing:-2.5px;font-weight:780;display:flex;align-items:center;gap:13px;line-height:1}.brand-stop{color:var(--green)}.brand-icon{display:grid;grid-template-columns:8px 8px;gap:5px;transform:rotate(-8deg)}.brand-icon i{width:8px;height:8px;border-radius:50%;background:var(--green)}.brand-icon i:nth-child(2){background:var(--coral)}.header-caption{font-size:12px;color:var(--muted);border-left:1px solid #dbe0d8;padding-left:30px;letter-spacing:.1px}.text-button{border:0;background:none;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;margin-left:auto;padding:10px 0}.text-button:hover{color:var(--green)}.question-icon{border:1.5px solid currentColor;border-radius:50%;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}main{max-width:1536px;margin:0 auto;padding:0 64px}.intro{display:flex;align-items:center;justify-content:space-between;padding:46px 0 31px}.eyebrow{font-size:9px;letter-spacing:1.8px;line-height:1.5;font-weight:700;display:flex;align-items:center;gap:8px;color:var(--green-deep)}.live-dot{width:6px;height:6px;background:var(--green);border-radius:50%}h1{font-size:37px;letter-spacing:-1.3px;line-height:1.2;margin:11px 0 9px;font-weight:650}.intro p{color:var(--muted);font-size:13px;margin:0;line-height:1.7}.intro-note{font-size:12px;line-height:1.7;color:#8b938c;padding-right:13px;display:flex;align-items:center;gap:18px}.note-mark{font-size:38px;font-weight:200;color:#afb9a8;transform:rotate(-12deg)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:25px;align-items:start}.board-card{border-radius:var(--radius);background:var(--white);border:1px solid var(--line);overflow:hidden;box-shadow:0 6px 28px #25332b03}.board-header{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 23px;gap:10px}.board-heading{display:flex;align-items:center;gap:10px}.grid-icon{font-size:23px;color:#768b7c;line-height:1}.board-heading h2{font-size:13px;font-weight:650;margin:0}.quiet-tag{font-size:10px;font-weight:500;padding:5px 8px;white-space:nowrap;color:#8c948e;background:#f6f7f3;border-radius:5px;margin-left:3px}.board-header-right{display:flex;align-items:center;gap:12px}.move-number{font-size:11px;color:#8a928d}.connection-indicator{background:#91b29b;width:6px;height:6px;border-radius:50%}.connection-indicator.offline{background:var(--coral)}.canvas-wrap{position:relative;width:100%;height:clamp(420px,53vw,608px);background:#fcfdf9;overflow:hidden}canvas{width:100%;height:100%;display:block;cursor:crosshair;touch-action:none;outline:none}canvas:focus-visible{box-shadow:inset 0 0 0 2px #18857966}canvas.dragging{cursor:grabbing}.board-overlay{position:absolute;inset:0;background:#fcfdf9d9;display:flex;gap:12px;align-items:center;justify-content:center;font-size:13px;color:var(--green-deep);backdrop-filter:blur(3px);z-index:3}.spinner{width:20px;height:20px;border:2px solid #c9dcd1;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.board-coordinate{position:absolute;bottom:18px;left:21px;font-size:10px;color:#929b91;letter-spacing:.4px;pointer-events:none;font-variant-numeric:tabular-nums}.board-floating-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;background:#fffffff0;border:1px solid #e7ebe2;box-shadow:0 4px 15px #394c3906;border-radius:20px;padding:9px 13px;white-space:nowrap;font-size:10px;color:#8b9489;pointer-events:none}.hint-dot{width:5px;height:5px;background:var(--green);border-radius:50%}.board-footer{height:59px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:0 18px 0 23px;gap:10px}.board-help{font-size:10px;color:#8b948c;display:flex;align-items:center;gap:8px;line-height:1.4}.board-help>span:first-child{font-size:16px}.viewport-controls{display:flex;align-items:center;gap:3px}.viewport-controls button{border:0;background:transparent;border-radius:6px;min-width:28px;height:28px;font-size:18px;display:grid;place-items:center;color:#65766a}.viewport-controls button:hover{background:var(--green-light)}.viewport-controls output{font-size:10px;color:#8a948b;width:37px;text-align:center;font-variant-numeric:tabular-nums}.viewport-controls svg{width:16px;height:16px}.control-separator{height:15px;width:1px;background:var(--line);margin:0 7px}.game-sidebar{display:flex;flex-direction:column;gap:15px}.turn-card{background:#e7eee3;border:1px solid #e0e7db;border-radius:16px;padding:20px 21px 19px;position:relative;overflow:hidden;min-height:126px}.card-eyebrow{font-size:8px;letter-spacing:1.6px;font-weight:650;color:#71826e;margin-bottom:12px}.turn-heading{display:flex;gap:9px;align-items:center}.turn-heading h2{font-size:19px;font-weight:650;letter-spacing:-.45px;line-height:1.2;margin:0}.turn-symbol{font-size:22px;color:var(--human);line-height:1}.turn-card p{font-size:10px;color:#7a8777;line-height:1.6;margin:9px 0 0}.turn-card.bot-thinking{background:#f3eee4;border-color:#ebe6da}.turn-card.bot-thinking .turn-symbol{color:var(--bot)}.turn-card.finished{background:#e2ece7;border-color:#d2e1d8}.turn-progress{position:absolute;bottom:0;left:0;width:100%;height:3px;background:#dfe3d6}.turn-progress span{height:100%;background:var(--green);display:block;width:34%;animation:thinking 1.7s infinite ease-in-out}.score-card,.history-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px 21px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading h2{margin:0;font-size:11px;font-weight:650}.small-info{width:13px;height:13px;display:grid;place-items:center;color:#b0b7ad;border:1px solid #bbc2b5;font-size:8px;border-radius:50%;font-family:Georgia,serif}.score-row{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.player-info{display:flex;gap:11px;align-items:center}.player-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}.human-color{background:var(--human)}.bot-color{background:var(--bot)}.player-info strong{font-size:12px;display:block;line-height:1.5;font-weight:600}.player-info div>span{font-size:9px;color:#92998e;display:block;margin-top:2px}.score-value{font-size:27px;letter-spacing:-1px;font-weight:550;font-variant-numeric:tabular-nums}.score-bar{display:flex;gap:4px;height:4px;margin:19px 0 19px;border-radius:3px;overflow:hidden}.score-bar span{width:50%;transition:width .5s ease}.score-bar span:first-child{background:var(--human)}.score-bar span:last-child{background:var(--bot)}.timer-row{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--line)}.timer-row>span{font-size:10px;color:#8b9489;display:flex;align-items:center;gap:7px}.timer-row svg{width:14px;height:14px}.timer-row time{font-size:16px;letter-spacing:.4px;font-variant-numeric:tabular-nums;font-weight:600}.timer-row time.urgent{color:#cd684f}.history-card{padding-bottom:13px}.history-card .section-heading{margin-bottom:13px}.tiny-tag{background:#f3f5ef;border-radius:5px;font-size:9px;color:#8f998b;min-width:21px;text-align:center;padding:4px 5px;font-variant-numeric:tabular-nums}.move-history{list-style:none;padding:0;margin:0;min-height:88px}.move-history li{display:flex;align-items:center;justify-content:space-between;font-size:10px;padding:7px 0;gap:9px;color:#768174}.move-history .history-empty{display:block;line-height:1.8;color:#a0a89b;font-size:11px;padding:11px 0 15px}.history-player{display:flex;align-items:center;gap:7px;flex:1}.history-dot{width:6px;height:6px;border-radius:50%}.history-number{font-size:9px;color:#bbc1b5;min-width:18px;font-variant-numeric:tabular-nums}.history-position{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;color:#949e90}.history-capture{color:var(--green);font-size:9px;min-width:15px}.sidebar-actions{display:flex;flex-direction:column;gap:9px}.primary-button{background:var(--green-deep);border:1px solid var(--green-deep);color:#fff;min-height:46px;border-radius:10px;font-size:12px;letter-spacing:.1px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px}.primary-button:hover{background:#21655a}.primary-button>span{font-size:19px;font-weight:300;line-height:1}.secondary-button{background:transparent;border:1px solid #dce2d6;border-radius:10px;color:#6d7c6a;min-height:40px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px}.secondary-button:hover{background:#eaf0e4}.secondary-button svg{width:14px;height:14px}.sidebar-note{text-align:center;font-size:9px;color:#a0a899;line-height:1.8;margin:0}.sidebar-note span{font-size:13px;margin-right:3px}.page-footer{display:flex;align-items:center;justify-content:space-between;padding:25px 1px 28px;font-size:9px;color:#a4ac9e;letter-spacing:.2px}.footer-versus{font-size:11px;color:#bcc4b7;padding:0 5px}.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}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:14px 20px;border-radius:12px;z-index:20;box-shadow:0 8px 40px #20352622;max-width:min(90vw,520px);font-size:13px;line-height:1.5}.toast.error{background:#733c32}
dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid #e1e6da;border-radius:23px;padding:29px;background:#fcfdf9;color:var(--ink);box-shadow:0 24px 100px #182b3240}dialog::backdrop{background:#1b2f3340;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog-header .eyebrow{font-size:8px;letter-spacing:1.3px}.dialog-header h2{font-size:28px;letter-spacing:-.8px;font-weight:650;margin:9px 0 0}.close-button{border:0;background:#edf1e7;border-radius:50%;height:28px;width:28px;font-size:20px;font-weight:300;color:#819077;line-height:1;flex-shrink:0}.close-button:hover{background:#dfe7d5}.dialog-intro{font-size:12px;line-height:1.7;color:#87937f;margin:14px 0 24px}fieldset{border:0;padding:0;margin:0 0 23px;min-width:0}legend,.select-field{font-size:11px;font-weight:600;margin-bottom:10px}.segmented-options{display:flex;gap:7px}.segmented-options label{flex:1;min-width:0}.segmented-options input,.difficulty-options input{position:absolute;opacity:0;pointer-events:none}.segmented-options label>span{display:flex;align-items:center;justify-content:center;border:1px solid #e0e5d9;border-radius:8px;padding:11px 4px;font-size:11px;color:#85927b;cursor:pointer}.segmented-options input:checked+span{background:#e9f0e4;border-color:#7eaa87;color:var(--green-deep);font-weight:650}.segmented-options input:focus-visible+span,.difficulty-options input:focus-visible+span{outline:3px solid #7eb8ad;outline-offset:2px}.field-note{font-size:9px;color:#9ba591;line-height:1.7;margin:10px 0 0}.difficulty-options{display:flex;flex-direction:column;gap:7px}.difficulty-options label>span{position:relative;display:block;padding:11px 15px;border:1px solid #e3e7dd;border-radius:9px;cursor:pointer}.difficulty-options strong{font-size:11px;display:block;font-weight:550}.difficulty-options small{font-size:9px;color:#98a08f;display:block;margin-top:4px}.difficulty-options b{position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:300;color:#b2c0a9}.difficulty-options input:checked+span{background:#edf3e8;border-color:#8bb093}.difficulty-options input:checked+span strong{color:var(--green-deep)}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.select-field{display:block;margin:0}.select-field select{display:block;margin-top:10px;border:1px solid #e0e5d9;border-radius:8px;padding:10px 11px;width:100%;background:#fff;color:#65775c;font-size:11px;min-height:40px}.new-game-notice{font-size:9px;line-height:1.8;color:#99a28e;margin:19px 0}.dialog-submit{margin-top:20px}.rules-example{height:130px;border-radius:13px;overflow:hidden;margin-top:23px;background:#f1f5ec}.rules-example svg{width:100%;height:100%;stroke:none}.rules-list{list-style:none;counter-reset:rule;padding:0;margin:22px 0}.rules-list li{counter-increment:rule;position:relative;padding-left:35px;margin:18px 0}.rules-list li::before{content:counter(rule,decimal-leading-zero);position:absolute;left:0;top:0;color:#8eaa83;font-size:11px;font-weight:650}.rules-list strong{font-size:12px}.rules-list p{font-size:11px;color:#839178;line-height:1.75;margin:5px 0 0}.keyboard-help{border-top:1px solid var(--line);padding-top:17px}.keyboard-help strong{font-size:11px}.keyboard-help p{font-size:10px;color:#8b977f;line-height:1.8;margin:7px 0 0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes thinking{0%{transform:translateX(-110%)}100%{transform:translateX(400%)}}
@media(min-width:1550px){.canvas-wrap{height:660px}}@media(max-width:1120px){.site-header{padding:0 35px;height:87px}main{padding:0 35px}.game-layout{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.board-header{padding:0 17px}.board-heading{gap:7px}.board-heading h2{font-size:12px}.quiet-tag{font-size:9px}.board-footer{padding:0 14px}.board-help{max-width:170px;font-size:9px}.turn-card,.score-card,.history-card{padding-left:17px;padding-right:17px}.canvas-wrap{height:600px}.intro{padding-top:35px}.intro-note{font-size:11px}.turn-heading h2{font-size:17px}.board-floating-hint{font-size:9px;bottom:42px}}
@media(max-width:800px){.site-header{padding:0 24px;height:76px}.brand{font-size:32px}.header-caption{display:none}main{padding:0 24px}.intro{padding:29px 0 25px}.intro-note{display:none}h1{font-size:31px}.intro p{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.4px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:13px}.board-header{padding:0 13px;height:59px}.board-heading h2{font-size:11px}.grid-icon{display:none}.quiet-tag{margin:0;padding:4px 6px}.board-header-right{gap:6px}.move-number{font-size:9px}.canvas-wrap{height:560px}.board-footer{height:54px;padding:0 10px}.board-help{font-size:8px;max-width:124px;gap:4px}.viewport-controls{gap:0}.viewport-controls button{min-width:24px}.viewport-controls output{font-size:9px;width:32px}.control-separator{margin:0 4px}.turn-card,.score-card,.history-card{padding:16px 14px}.game-sidebar{gap:12px}.turn-heading{gap:7px}.turn-heading h2{font-size:15px}.turn-card p{font-size:9px}.turn-card{min-height:117px}.section-heading h2{font-size:10px}.player-info{gap:8px}.score-row{margin:14px 0}.score-value{font-size:25px}.timer-row>span{font-size:9px;gap:5px}.timer-row time{font-size:14px}.history-card{padding-bottom:11px}.page-footer{font-size:8px}}
@media(max-width:640px){.site-header{padding:0 19px;height:70px}.brand{font-size:30px;gap:11px}.text-button{font-size:11px}main{padding:0 16px}.intro{padding:25px 2px 21px}h1{font-size:29px;letter-spacing:-1px;margin-top:9px}.intro p{font-size:11px}.game-layout{display:flex;flex-direction:column;gap:16px}.board-card{width:100%;border-radius:15px}.board-header{height:56px;padding:0 15px}.board-heading h2{font-size:12px}.grid-icon{display:inline;font-size:20px}.quiet-tag{font-size:9px;margin-left:3px}.move-number{font-size:10px}.board-header-right{gap:10px}.canvas-wrap{height:min(70vh,500px);min-height:350px}.board-footer{padding:0 11px 0 15px}.board-help{font-size:9px;max-width:165px}.viewport-controls button{min-width:27px}.viewport-controls output{width:35px}.board-floating-hint{bottom:18px;font-size:9px}.board-coordinate{font-size:8px;bottom:17px;left:13px}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}.turn-card{min-height:112px;align-self:start;grid-column:1/-1;padding:17px 19px}.turn-heading h2{font-size:19px}.turn-card .card-eyebrow{margin-bottom:9px}.turn-card p{font-size:11px}.turn-card .turn-heading{gap:9px}.score-card{grid-column:1;padding:17px 15px}.history-card{grid-column:2;padding:17px 14px}.section-heading{margin-bottom:15px}.section-heading h2{font-size:10px}.score-row{margin:15px 0}.score-bar{margin:18px 0}.timer-row{display:block;padding-top:13px}.timer-row time{display:block;margin:7px 0 0;font-size:20px}.timer-row>span{font-size:9px}.move-history li{padding:9px 0;gap:5px}.history-number{min-width:14px;font-size:8px}.history-position{font-size:8px}.history-player{font-size:9px;gap:5px}.history-capture{min-width:12px;font-size:8px}.sidebar-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary-button{min-height:44px;font-size:11px}.secondary-button{font-size:10px}.sidebar-note{grid-column:1/-1;line-height:1.6}.sidebar-note br{display:none}.page-footer{padding:22px 1px;gap:20px;line-height:1.5}.page-footer>span:first-child{max-width:180px}.page-footer>span:last-child{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms!important;transition:none!important;scroll-behavior:auto!important}}

.replay-panel{padding:16px 20px;border-top:1px solid var(--line);background:#f1f6ef}.replay-heading{display:flex;align-items:center;gap:12px;font-size:13px}.replay-heading output{color:var(--muted);flex:1}.replay-heading button{font-size:12px}.replay-panel input[type=range]{width:100%;accent-color:var(--green);margin:16px 0}.replay-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.replay-controls button,.replay-controls select{border:1px solid #cbdacf;border-radius:8px;background:white;color:var(--green-deep);min-height:36px;padding:6px 12px}.replay-controls button:disabled{cursor:default}.replay-controls label{font-size:11px;margin-left:auto}.replay-panel p{font-size:11px;line-height:1.5;color:var(--muted);margin:12px 0 0}.replay-panel input:focus-visible{outline:3px solid #7eb8ad;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:640px){.replay-panel{padding:14px}.replay-heading{gap:8px;font-size:12px}.replay-controls{gap:5px}.replay-controls button{padding:6px 10px}.replay-controls label{margin-left:0}.difficulty-options small{line-height:1.5}}
