:root{--bg: #f6f4ef;--surface: #ffffff;--surface-muted: #ece8df;--border: #e0dcd2;--text: #1f1e1b;--text-muted: #5c574f;--wood: #e4bc7a;--wood-edge: #caa05c;--danger: #d9383a;--danger-soft: rgba(217, 56, 58, .12);--four: #e85d2a;--four-soft: rgba(232, 93, 42, .16);--three: #0f8b8d;--three-soft: rgba(15, 139, 141, .15);--accent: #262420;--radius: 11px;--font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;--font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace}*{box-sizing:border-box;margin:0;padding:0}html{scrollbar-gutter:stable}html,body{min-height:100%;background:var(--bg);color:var(--text);font-family:var(--font-sans);word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}button,select{font-family:inherit;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}[hidden]{display:none!important}.app{min-height:100dvh;max-width:1440px;margin:0 auto;padding:20px 36px 28px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:18px}.topbar{width:100%;max-width:1340px;height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}.topbar-right[hidden]{display:none}.topbar-left,.topbar-right,.brand{display:flex;align-items:center;gap:8px}.brand-mark{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 32% 30%,#4b4a47,#161513 70%);box-shadow:0 1px 4px #00000038;position:relative;flex-shrink:0}.brand-mark:after{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#dcd9d0 75%);right:-4px;bottom:-2px;box-shadow:0 1px 2px #0003}.brand h1{font-size:1.05rem;font-weight:700;letter-spacing:-.02em}.segmented{display:inline-flex;background:var(--surface-muted);padding:2px;border-radius:8px;border:1px solid var(--border)}.segmented button{border:none;background:transparent;padding:4px 10px;font-size:.76rem;font-weight:600;border-radius:6px;cursor:pointer;color:var(--text-muted);transition:background .14s ease,color .14s ease}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000012}.select-pill{height:28px;padding:0 8px;font-size:.75rem;font-weight:600;border-radius:7px;border:1px solid var(--border);background:var(--surface);cursor:pointer}.select-pill[hidden],.segmented[hidden]{display:none}.btn{height:34px;padding:0 13px;border-radius:9px;border:1px solid var(--border);background:var(--surface);font-size:.81rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:background .14s ease,transform .1s ease}.btn:hover:not(:disabled){background:var(--surface-muted)}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.primary:hover:not(:disabled){background:#3a3731}.btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}.workspace{width:100%;max-width:1340px;display:flex;justify-content:center;align-items:flex-start;gap:28px}.workspace.is-play{display:grid;grid-template-columns:minmax(250px,1fr) minmax(460px,min(680px,78dvh)) minmax(250px,1fr);align-items:stretch;justify-content:center;gap:28px}.workspace.is-replay{display:grid;grid-template-columns:minmax(300px,360px) minmax(440px,min(640px,75dvh)) minmax(300px,360px);align-items:start;justify-content:center;gap:22px;overflow-anchor:none}.workspace.is-replay .turn-text{overflow:hidden;text-overflow:ellipsis;max-width:100%}.play-col{width:100%;display:flex;flex-direction:column;gap:8px}.app.is-side .play-col{width:100%}.play-left-rail{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:14px;margin-top:36px;margin-bottom:40px}.play-left-hero{display:flex;flex-direction:column;gap:12px}.play-left-rail .player-seat.opponent{width:100%;padding:14px 16px;gap:14px;border-radius:16px;background:#fffdf9}.seat-meta{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.seat-title-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.seat-think-pill{margin-left:auto;font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--four-soft);color:#b45309;animation:pulseTarget 1.1s ease-in-out infinite}.side-memo-card{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:15px;background:#fffdf9;border:1px solid var(--border)}.side-memo-desc{font-size:.8rem;line-height:1.5;color:var(--text-muted);text-wrap:pretty}.side-memo-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.play-right-rail{display:flex;flex-direction:column;justify-content:space-between;gap:14px;margin-top:36px;margin-bottom:40px;min-height:0}.live-moves-card{flex:1;min-height:140px;max-height:360px;display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:15px;background:#fffdf9;border:1px solid var(--border);overflow:hidden}.live-moves-list{flex:1;min-height:0}.char-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0}.char-avatar svg{width:100%;height:100%;display:block}.char-avatar-sm{width:28px;height:28px}.char-avatar-md{width:34px;height:34px}.char-avatar-lg{width:52px;height:52px}.char-avatar-xl{width:64px;height:64px}.seat-pvp-icon{color:var(--text-muted);background:var(--surface-muted);border-radius:10px;padding:6px}.seat-bottom-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:auto}.seat-bottom-row.is-finished{background:var(--surface);border:1.5px solid var(--border);border-radius:14px;padding:12px 14px;gap:12px}.seat-bottom-row.is-finished .player-seat.self{border:none;background:transparent;padding:0;box-shadow:none}.postgame-actions{display:flex;flex-wrap:wrap;gap:8px}.player-seat{display:inline-flex;align-items:center;gap:10px;padding:10px 13px;border-radius:13px;background:var(--surface);border:1.5px solid var(--border);font-size:.82rem;font-weight:600;color:var(--text);transition:border-color .16s ease,box-shadow .16s ease;flex-shrink:0}.player-seat.self{width:100%;justify-content:space-between}.player-seat.is-turn{border-color:var(--accent);box-shadow:0 3px 12px #2624201a}.seat-name{font-weight:700;font-size:.9rem}.seat-sub{font-size:.76rem;color:var(--text-muted);font-weight:600}.seat-turn-tag{font-size:.73rem;font-weight:700;padding:3px 9px;border-radius:99px;background:var(--surface-muted);color:var(--text);margin-left:auto}.player-seat.is-turn .seat-turn-tag{background:var(--accent);color:#fff}.seat-bubble{position:relative;width:100%;padding:14px 16px;border-radius:15px;background:#fffdf9;border:1px solid var(--border);font-size:.86rem;font-weight:500;line-height:1.55;text-wrap:pretty;color:var(--text);box-shadow:0 3px 10px #2624200d}.seat-bubble:before{content:"";position:absolute;left:24px;top:-5px;width:9px;height:9px;background:inherit;border-left:1px solid var(--border);border-top:1px solid var(--border);transform:rotate(45deg)}.seat-bubble.warn{background:#fff7ed;border-color:#e85d2a6b;color:#9a3412;font-weight:600}.seat-bubble.warn:before{border-color:#e85d2a6b}.seat-bubble.vcf{background:#fef2f2;border-color:#d9383a73;color:#991b1b;font-weight:700}.seat-bubble.vcf:before{border-color:#d9383a73}.seat-bubble.win{background:#f0fdfa;border-color:#0f8b8d6b;color:#115e59;font-weight:600}.seat-bubble.win:before{border-color:#0f8b8d6b}.status-strip{height:28px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px;overflow:hidden}.status-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.turn-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0}.turn-dot.black{background:radial-gradient(circle at 35% 30%,#4b4a47,#121110 72%);box-shadow:0 1px 3px #0000004d}.turn-dot.white{background:radial-gradient(circle at 35% 30%,#fff,#d9d6ce 78%);border:1px solid rgba(0,0,0,.16)}.turn-text{font-size:.86rem;font-weight:700;white-space:nowrap}.move-count{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted);white-space:nowrap}.status-hint{font-size:.75rem;font-weight:600;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-hint.danger{color:var(--danger)}.status-hint.four{color:#c2410c}.status-hint.three{color:#0f766e}.status-hint.win{color:#b45309}.status-right{display:flex;align-items:center;gap:6px;flex-shrink:0}.vcf-btn{border:1px solid rgba(232,93,42,.4);background:var(--four-soft);color:#9a3412;font-size:.71rem;font-weight:700;padding:3px 8px;border-radius:99px;cursor:pointer;white-space:nowrap}.vcf-btn.active{background:var(--four);color:#fff;border-color:var(--four)}.bottom-strip{min-height:32px;height:auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:2px}.quiet-pills{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.quiet-pill{border:1px solid transparent;background:transparent;color:var(--text-muted);font-size:.73rem;font-weight:600;padding:3px 8px;border-radius:6px;cursor:pointer;transition:background .14s ease,color .14s ease,border-color .14s ease}.quiet-pill:hover{background:var(--surface-muted);color:var(--text)}.quiet-pill.active{background:var(--surface);color:var(--text);border-color:var(--border)}.eval-card{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:13px;background:var(--surface);border:1px solid var(--border)}.eval-card-head{display:flex;align-items:center;justify-content:space-between;font-size:.78rem;font-weight:700;color:var(--text-muted)}.eval-card-pct{color:var(--text);font-family:var(--font-mono)}.eval-spark-box{width:100%;height:76px;border-radius:8px;background:#faf9f6;border:1px solid var(--border);overflow:hidden}.eval-spark-svg{width:100%;height:100%;display:block}.board-wrap{position:relative;width:100%;aspect-ratio:1 / 1;user-select:none;-webkit-user-select:none}.board-frame{position:relative;width:100%;height:100%;background:radial-gradient(circle at 25% 20%,rgba(255,255,255,.2),transparent 60%),linear-gradient(145deg,#ecc98a 0%,var(--wood) 55%,#d6aa63 100%);border-radius:13px;border:1.5px solid var(--wood-edge);box-shadow:0 14px 34px #3c2a1026,inset 0 1px #ffffff59;padding:5.5%}.coord-cols,.coord-rows{position:absolute;pointer-events:none;font-family:var(--font-mono);font-size:clamp(9px,1.15vw,11px);font-weight:600;color:#442d0f9e}.coord-cols{left:5.5%;right:5.5%;bottom:1.1%;display:grid;grid-template-columns:repeat(15,1fr);text-align:center}.coord-rows{top:5.5%;bottom:5.5%;left:1.1%;width:3.6%;display:grid;grid-template-rows:repeat(15,1fr);align-items:center;text-align:right}.board-inner{position:relative;width:100%;height:100%}.workspace.is-play .board-inner{touch-action:none}.aim-float-badge{position:absolute;top:8px;left:50%;transform:translate(-50%);padding:4px 11px;border-radius:99px;background:#181714e0;color:#fff;font-family:var(--font-mono);font-size:.78rem;font-weight:800;letter-spacing:.03em;pointer-events:none;z-index:10;box-shadow:0 4px 12px #00000038}.aim-float-badge[hidden]{display:none}.aim-float-badge.at-bottom{top:auto;bottom:8px}.aim-float-badge.is-forbidden{background:#d9383af0}.aim-confirm-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:11px;background:var(--surface);border:1.5px solid #0f8b8d;box-shadow:0 4px 14px #0f8b8d24}.aim-confirm-bar[hidden]{display:none}.aim-confirm-text{font-size:.78rem;font-weight:700;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aim-confirm-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.aim-confirm-actions .btn{height:30px;padding:0 11px;font-size:.77rem}.board-svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}.threat-line-four{stroke:#e85d2a73;stroke-width:24;stroke-linecap:round}.threat-line-three{stroke:#0f8b8d47;stroke-width:20;stroke-linecap:round;stroke-dasharray:28 18}.win-line-glow{stroke:#fbbf24b8;stroke-width:34;stroke-linecap:round}.win-line-core{stroke:#fffbeb;stroke-width:10;stroke-linecap:round;animation:drawWinLine .45s cubic-bezier(.22,1,.36,1) forwards}@keyframes drawWinLine{0%{stroke-dashoffset:var(--line-len, 1000)}to{stroke-dashoffset:0}}.cells-grid{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(15,1fr);grid-template-rows:repeat(15,1fr)}.cell{position:relative;border:none;background:transparent;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;outline:none}.cell.occupied,.cell.game-over{cursor:default}.cell.forbidden{cursor:not-allowed}.cell:focus-visible:before{content:"";position:absolute;top:14%;right:14%;bottom:14%;left:14%;border-radius:50%;border:2px solid rgba(31,30,27,.55)}.stone{position:relative;width:86%;height:86%;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:3;transition:opacity .25s ease,transform .2s ease}.stone.black{background:radial-gradient(circle at 32% 28%,#52514e,#232220 45%,#0e0d0c);box-shadow:0 3px 6px #0000005c,inset 0 1px 1px #ffffff29}.stone.white{background:radial-gradient(circle at 32% 28%,#fff,#f1efe9 55%,#cfcbc0);box-shadow:0 3px 6px #00000038,inset 0 -1px 2px #00000014}.stone.new-stone{animation:stoneDrop .22s cubic-bezier(.22,1.28,.36,1)}.stone.win-stone{box-shadow:0 0 0 2.5px #fbbf24e6,0 4px 12px #f59e0b73;z-index:4}.stone.dimmed{opacity:.72}.stone.history-focus{box-shadow:0 0 0 3px #3b82f6d9,0 4px 10px #0000004d;transform:scale(1.08);z-index:5}@keyframes stoneDrop{0%{transform:scale(1.24) translateY(-6%);opacity:.7}to{transform:scale(1) translateY(0);opacity:1}}.place-ripple{position:absolute;top:8%;right:8%;bottom:8%;left:8%;border-radius:50%;border:2px solid rgba(255,255,255,.7);pointer-events:none;z-index:2;animation:placeRipple .55s ease-out forwards}@keyframes placeRipple{0%{transform:scale(.8);opacity:.9}to{transform:scale(1.55);opacity:0}}.last-dot{width:26%;height:26%;border-radius:50%}.stone.black .last-dot{background:#ffffffd9}.stone.white .last-dot{background:#191816bf}.move-num{font-family:var(--font-mono);font-size:clamp(8px,1.15vw,11px);font-weight:700;line-height:1}.stone.black .move-num{color:#ffffffe6}.stone.white .move-num{color:#191816e0}.ghost-stone{width:82%;height:82%;border-radius:50%;opacity:0;pointer-events:none;transform:scale(.92);transition:opacity .12s ease,transform .12s ease;z-index:2}.cell.aimed:not(.occupied):not(.forbidden):not(.game-over) .ghost-stone{opacity:.62;transform:scale(1.02)}@media (hover: hover) and (pointer: fine){.cell:hover:not(.occupied):not(.forbidden):not(.game-over) .ghost-stone{opacity:.42;transform:scale(1)}.cell.forbidden:hover .forbidden-mark{transform:scale(1.16)}}.cell.aimed:not(.occupied):not(.game-over):after{content:"";position:absolute;top:4%;right:4%;bottom:4%;left:4%;border-radius:50%;border:2px solid #0f8b8d;pointer-events:none;z-index:4}.cell.aimed.forbidden:after{border-color:var(--danger)}.ghost-stone.black{background:#171614}.ghost-stone.white{background:#fff;border:1px solid rgba(0,0,0,.2)}.forbidden-mark{position:relative;width:66%;height:66%;display:flex;align-items:center;justify-content:center;color:var(--danger);z-index:2;transition:transform .12s ease}.forbidden-x{width:100%;height:100%;stroke:var(--danger);stroke-width:2.6;stroke-linecap:round}.forbidden-tag{position:absolute;bottom:-4px;right:-5px;font-family:var(--font-mono);font-size:clamp(7px,.9vw,9px);font-weight:800;background:#fff5f5;color:var(--danger);border:1px solid rgba(217,56,58,.45);border-radius:4px;padding:0 2px;line-height:1.15}.cell.shake{animation:cellShake .34s ease}@keyframes cellShake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(3px)}}.target-marker{position:absolute;border-radius:50%;pointer-events:none;z-index:1}.target-marker.four{width:58%;height:58%;border:2.2px solid var(--four);background:#e85d2a29;animation:pulseTarget 1.3s ease-in-out infinite}.target-marker.block{width:62%;height:62%;border:2.4px solid var(--danger);background:#d9383a2e;animation:pulseTarget 1s ease-in-out infinite}.target-marker.three{width:44%;height:44%;border:1.8px dashed var(--three);background:#0f8b8d1a}@keyframes pulseTarget{0%,to{transform:scale(.94);opacity:.9}50%{transform:scale(1.1);opacity:1}}.vcf-ghost{position:absolute;width:78%;height:78%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:clamp(8px,1.15vw,11px);font-weight:800;z-index:4;pointer-events:none}.vcf-ghost.black{background:#141311b8;color:#fff;border:2px dashed rgba(255,255,255,.85)}.vcf-ghost.white{background:#ffffffdb;color:#1a1917;border:2px dashed rgba(26,25,23,.85)}.workspace.is-replay .history-page-panel{width:100%;height:min(636px,77dvh);max-height:min(636px,77dvh);margin-top:28px}.history-page-panel{width:376px;height:min(620px,76dvh);max-height:min(620px,76dvh);overflow:hidden;flex-shrink:0;margin-top:28px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 18px #2624200d}.replay-match-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--border)}.replay-match-title{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;min-width:0}.replay-match-title span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eval-chart-box{background:#faf9f6;border:1px solid var(--border);border-radius:8px;padding:6px 8px 4px;display:flex;flex-direction:column;gap:2px}.eval-chart-head{display:flex;justify-content:space-between;align-items:center;font-size:.68rem;font-weight:700;color:var(--text-muted)}.eval-chart-svg{width:100%;height:58px;cursor:pointer;display:block}.history-page-panel[hidden]{display:none}.history-header{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.78rem;font-weight:700;color:var(--text)}.history-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.rl-select{height:28px;padding:0 8px;font-size:.74rem;font-weight:600;border-radius:7px;border:1px solid var(--border);background:var(--bg);width:100%;cursor:pointer}.rl-select[hidden]{display:none}.mini-btn{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:.7rem;font-weight:600;padding:3px 7px;border-radius:6px;cursor:pointer;white-space:nowrap;flex-shrink:0}.mini-btn:hover:not(:disabled){background:var(--surface-muted);color:var(--text)}.mini-btn:disabled{opacity:.4;cursor:not-allowed}.mini-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}.replay-slider-row{display:flex;align-items:center;gap:8px}.replay-slider{flex:1;accent-color:var(--accent);cursor:pointer;height:4px}.replay-step-label{font-family:var(--font-mono);font-size:.71rem;font-weight:700;color:var(--text-muted);min-width:46px;text-align:right}.replay-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.replay-nav .mini-btn{display:inline-flex;align-items:center;justify-content:center;min-width:0;padding:5px 4px;font-family:var(--font-mono);font-size:.72rem;font-weight:700;text-align:center}.history-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px;padding-right:4px}.replay-left-panel .history-list{grid-template-columns:1fr;gap:3px}.history-empty{grid-column:1 / -1;font-size:.8rem;color:var(--text-muted);padding:16px 6px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 9px;border-radius:8px;font-size:.79rem;cursor:pointer;border:none;background:transparent;width:100%;text-align:left;transition:background .12s ease}.history-item:hover{background:var(--surface-muted)}.history-item.latest{background:#2624201a;font-weight:700}.history-item.future{opacity:.4}.history-item-left{display:flex;align-items:center;gap:5px}.history-num{font-family:var(--font-mono);font-size:.68rem;color:var(--text-muted);min-width:18px}.history-stone{width:10px;height:10px;border-radius:50%;flex-shrink:0}.history-stone.black{background:#1a1917}.history-stone.white{background:#fff;border:1px solid rgba(0,0,0,.25)}.history-coord{font-family:var(--font-mono);font-weight:600;font-size:.75rem}.history-tag{font-size:.65rem;font-weight:700;padding:1px 4px;border-radius:4px;background:var(--surface-muted);color:var(--text-muted)}.history-tag.win{background:#fef3c7;color:#92400e}.history-tag.four{background:var(--four-soft);color:#a8360f}.history-tag.three{background:var(--three-soft);color:#0b6365}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1816126b;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;z-index:50;animation:fadeIn .15s ease}.modal-backdrop[hidden]{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-dialog{width:100%;max-width:440px;background:var(--surface);border:1px solid var(--border);border-radius:15px;box-shadow:0 24px 60px #14120e38;padding:18px 20px 16px;display:flex;flex-direction:column;gap:14px}.nn-dialog{max-width:620px}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-title-wrap{display:flex;align-items:center;gap:8px}.modal-step{font-family:var(--font-mono);font-size:.72rem;font-weight:700;padding:2px 7px;border-radius:99px;background:var(--surface-muted);color:var(--text-muted)}.modal-title{font-size:.98rem;font-weight:700}.modal-close{width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:transparent;cursor:pointer;font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted)}.modal-close:hover{background:var(--surface-muted);color:var(--text)}.modal-body{display:flex;flex-direction:column;gap:12px;min-height:205px}.modal-desc{font-size:.83rem;line-height:1.55;color:var(--text-muted)}.modal-desc strong{color:var(--text)}.modal-bullets{list-style:none;display:flex;flex-direction:column;gap:6px;font-size:.81rem;line-height:1.5;color:var(--text-muted)}.modal-bullets li{padding-left:14px;position:relative}.modal-bullets li:before{content:"•";position:absolute;left:2px;color:var(--accent);font-weight:700}.modal-bullets strong{color:var(--text)}.mini-diagram{align-self:center;display:grid;grid-template-columns:repeat(7,26px);grid-template-rows:repeat(5,26px);background:var(--wood);border:1px solid var(--wood-edge);border-radius:8px;padding:6px}.mini-cell{position:relative;display:flex;align-items:center;justify-content:center}.mini-cell:before,.mini-cell:after{content:"";position:absolute;background:#442d0f59}.mini-cell:before{width:100%;height:1px;top:50%}.mini-cell:after{height:100%;width:1px;left:50%}.mini-stone{width:20px;height:20px;border-radius:50%;z-index:1}.mini-stone.b{background:radial-gradient(circle at 35% 30%,#4b4a47,#121110 75%)}.mini-stone.w{background:radial-gradient(circle at 35% 30%,#fff,#dcd8ce 78%)}.mini-mark{z-index:2;font-size:.78rem;font-weight:800;line-height:1;background:#ffffffd9;border-radius:4px;padding:1px 3px}.mini-mark.x{color:var(--danger)}.mini-mark.ok{color:#0f766e}.modal-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--border)}.modal-dots{display:flex;align-items:center;gap:6px}.modal-dot{width:7px;height:7px;border-radius:50%;border:none;padding:0;background:var(--border);cursor:pointer}.modal-dot.active{background:var(--accent);transform:scale(1.25)}.modal-nav{display:flex;gap:6px}.nn-board-heat{position:absolute;top:10%;right:10%;bottom:10%;left:10%;border-radius:6px;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2}.nn-board-pct{font-family:var(--font-mono);font-size:clamp(7px,1.05vw,10px);font-weight:800;color:#7c2d12;text-shadow:0 0 3px rgba(255,255,255,.9);line-height:1}.nn-input-legal{position:absolute;top:18%;right:18%;bottom:18%;left:18%;border-radius:4px;background:#0f8b8d38;border:1px solid rgba(15,139,141,.35);pointer-events:none;z-index:1}.history-subtabs{display:grid;grid-template-columns:1fr 1fr;background:var(--surface-muted);padding:2px;border-radius:7px;border:1px solid var(--border);flex-shrink:0}.history-subtabs button{border:none;background:transparent;padding:4px 6px;font-size:.72rem;font-weight:600;border-radius:5px;cursor:pointer;color:var(--text-muted)}.history-subtabs button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000000f}.history-subview{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-anchor:none}.history-subview[hidden]{display:none}.nn-pipeline{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:.7rem;color:var(--text-muted)}.nn-node{padding:2px 6px;border-radius:5px;background:var(--surface-muted);border:1px solid var(--border);color:var(--text);font-weight:600}.nn-col-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.74rem;font-weight:700;color:var(--text-muted)}.nn-mini-tabs{display:inline-flex;flex-shrink:0;background:var(--surface-muted);padding:2px;border-radius:6px}.nn-mini-tabs button{border:none;background:transparent;padding:2px 7px;font-size:.69rem;font-weight:600;border-radius:5px;cursor:pointer;white-space:nowrap;color:var(--text-muted)}.nn-mini-tabs button.active{background:var(--surface);color:var(--text)}.nn-top-list{display:flex;flex-wrap:wrap;gap:4px;font-size:.71rem;font-family:var(--font-mono)}.nn-top-chip{padding:2px 6px;border-radius:6px;background:var(--surface-muted)}.nn-tactical-card{margin-top:auto;background:#faf9f6;border:1px solid var(--border);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.nn-tactical-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.72rem;font-weight:700;color:var(--text)}.nn-tactical-pill{font-family:var(--font-mono);font-size:.67rem;font-weight:700;padding:2px 7px;border-radius:99px;background:var(--surface-muted);color:var(--text-muted)}.nn-tactical-grid{display:grid;grid-template-columns:1fr;gap:6px}.nn-tactical-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:7px;background:var(--surface);border:1px solid var(--border);font-size:.71rem}.nn-tactical-item.has-threat{background:#fff7ed;border-color:#fed7aa}.nn-tactical-label{color:var(--text-muted);font-weight:600;white-space:nowrap}.nn-tactical-val{font-family:var(--font-mono);font-weight:700;color:var(--text);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 820px){.workspace{flex-direction:column;align-items:center}.history-page-panel{width:min(100%,560px);height:380px;max-height:380px;margin-top:0}}.char-dialog{max-width:560px}.char-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.char-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:15px 16px;border-radius:13px;border:1.5px solid var(--border);background:var(--bg);text-align:left;cursor:pointer;transition:border-color .14s ease,background .14s ease,transform .1s ease}.char-card:hover{background:var(--surface-muted)}.char-card:active{transform:scale(.98)}.char-card.active{background:var(--surface);border-color:var(--accent);box-shadow:0 3px 12px #26242017}.char-card-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.char-name-wrap{display:flex;align-items:center;gap:10px;font-size:.94rem;font-weight:700}.char-tier{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:99px;background:var(--surface-muted);color:var(--text-muted)}.char-card.active .char-tier{background:var(--accent);color:#fff}.char-desc{font-size:.79rem;line-height:1.48;color:var(--text-muted)}.workspace[hidden],.lobby[hidden]{display:none}.btn.ghost{background:transparent;border-color:transparent;color:var(--text-muted)}.btn.ghost:hover:not(:disabled){background:var(--surface-muted);color:var(--text)}.workspace{margin:auto 0}.lobby{width:100%;max-width:1240px;margin:auto 0;display:grid;grid-template-columns:1.35fr .95fr;gap:22px;align-items:start}.lobby-col-main,.lobby-col-side{display:flex;flex-direction:column;gap:16px;min-width:0}.char-modal-opts{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}.lobby-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}.lobby-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.lobby-card-title{font-size:.94rem;font-weight:700}.lobby-card-sub{font-size:.77rem;color:var(--text-muted)}.login-form{display:flex;align-items:center;gap:10px}.text-input{flex:1;height:36px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--bg);font-family:inherit;font-size:.86rem;outline:none}.text-input:focus{border-color:var(--accent);background:var(--surface)}.profile-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.profile-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-name{font-size:.94rem;font-weight:700}.profile-pill{font-size:.72rem;font-weight:600;padding:2px 8px;border-radius:99px;background:var(--surface-muted);color:var(--text-muted)}.profile-pill.streak{background:var(--four-soft);color:#a8360f}.char-rec{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:.7rem;font-family:var(--font-mono);color:var(--text-muted);padding-top:2px}.char-cleared{color:#0f766e;font-weight:700}.lobby-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:2px}.lobby-actions-right{display:flex;align-items:center;gap:6px}.lb-table{width:100%;border-collapse:collapse;font-size:.76rem}.lb-table th{text-align:left;font-size:.7rem;font-weight:600;color:var(--text-muted);padding:4px 6px 6px;border-bottom:1px solid var(--border)}.lb-table td{padding:7px 6px;border-bottom:1px solid rgba(224,220,210,.5)}.lb-table tr:last-child td{border-bottom:none}.lb-table tr.me{background:#2624200a;font-weight:700}.lb-empty{font-size:.76rem;color:var(--text-muted);padding:8px 2px}.archive-view{width:100%;max-width:1240px;margin:auto 0}.archive-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;align-items:start}.archive-single{max-width:780px;margin:0 auto}.archive-list{display:flex;flex-direction:column;gap:9px;max-height:64dvh;overflow-y:auto;padding-right:4px}.archive-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:13px;border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;transition:border-color .14s ease,background .14s ease,transform .1s ease}.archive-row:hover{border-color:var(--accent);background:#faf9f6}.archive-row:active{transform:scale(.99)}.archive-row-left{display:flex;align-items:center;gap:10px;min-width:0}.archive-badge{font-size:.71rem;font-weight:800;padding:3px 9px;border-radius:99px;flex-shrink:0}.archive-badge.win{background:#ccfbf1;color:#0f766e}.archive-badge.loss{background:#fee2e2;color:#b91c1c}.archive-badge.draw{background:var(--surface-muted);color:var(--text-muted)}.archive-badge.black{background:#262420;color:#fff}.archive-badge.white{background:#ece8df;color:#262420}.archive-info{display:flex;flex-direction:column;gap:2px;min-width:0}.archive-title{font-size:.85rem;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.archive-sub{font-size:.73rem;color:var(--text-muted)}.archive-row-right{display:flex;align-items:center;gap:8px;flex-shrink:0;font-family:var(--font-mono);font-size:.74rem;font-weight:600;color:var(--text-muted)}.archive-cta{color:var(--text);font-weight:700}@media (max-width: 1040px){.workspace.is-replay{display:flex;flex-direction:column;align-items:center;gap:12px;overflow-anchor:none}.workspace.is-replay .play-col{order:1}.workspace.is-replay .replay-left-panel{order:2}.workspace.is-replay .replay-right-panel{order:3}.workspace.is-replay .history-page-panel{width:min(100%,580px);height:auto;max-height:none;margin-top:0}.workspace.is-replay .replay-left-panel .history-list{height:156px;max-height:156px;flex:none;overflow-y:auto}.workspace.is-play{display:flex;flex-direction:column;align-items:center;gap:10px}.play-left-rail{display:contents}.play-left-hero{order:1;width:min(100%,580px);flex-direction:row;align-items:center;gap:10px}.play-col{order:2;width:min(100%,580px,68dvh)}.play-right-rail{order:3;width:min(100%,580px);margin-top:0;margin-bottom:0;gap:10px}.side-memo-card{order:4;width:min(100%,580px)}.play-left-rail .player-seat.opponent{width:auto;padding:8px 12px;flex-shrink:0}.play-left-rail .char-avatar-xl{width:36px;height:36px}.live-moves-card{display:none}.seat-bubble:before{left:-5px;top:50%;border-top:none;border-bottom:1px solid var(--border);transform:translateY(-50%) rotate(45deg)}.eval-spark-box{height:36px}.seat-bottom-row{align-items:flex-end}.player-seat.self{width:auto}}@media (max-width: 900px){.lobby,.archive-grid{grid-template-columns:1fr}}@media (max-width: 720px){.topbar{height:auto;flex-wrap:wrap;gap:8px}.topbar-right{width:100%;flex-wrap:wrap;gap:6px}.topbar-right .btn{height:30px;padding:0 10px;font-size:.74rem}.topbar-right .ckpt-select.compact{flex:1 1 150px;max-width:none;height:30px;font-size:.74rem}}@media (max-width: 520px){.app{padding:10px 10px 20px;gap:12px}.workspace.is-play .play-col,.workspace.is-replay .play-col{width:100%;max-width:540px}.board-frame{padding:4.8%;border-radius:12px}.coord-cols{left:4.8%;right:4.8%}.coord-rows{top:4.8%;bottom:4.8%}.lobby-head{flex-wrap:wrap;gap:8px}.master-hero-top{gap:10px;padding:11px}.ckpt-picker-head{flex-wrap:wrap;gap:4px}.ckpt-picker-controls .ckpt-select{flex:1 1 100%}.char-grid{grid-template-columns:1fr}.play-left-hero{flex-direction:row;align-items:center;gap:8px}.seat-bubble{font-size:.74rem;padding:7px 10px}.status-strip{height:auto;min-height:26px;flex-wrap:wrap;gap:4px 8px}.archive-row{padding:10px 11px;gap:8px}.archive-info{min-width:0}.archive-sub{white-space:normal}.workspace.is-replay .history-page-panel{padding:12px}}.rl-head-actions{display:flex;align-items:center;gap:6px}.replay-players-bar{display:flex;flex-direction:column;gap:4px;padding:7px 9px;border-radius:10px;background:#faf9f6;border:1px solid var(--border);font-size:.73rem}.replay-player-chip{display:flex;align-items:center;gap:6px;min-width:0;font-weight:600;color:var(--text-muted)}.replay-player-chip span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.replay-player-chip.is-turn{color:var(--text);font-weight:800}.replay-player-chip.is-winner{color:#0f766e;font-weight:800}.replay-vs{display:none}.history-mover{font-size:.7rem;color:var(--text-muted);margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.eval-judge-pill{font-size:.68rem;font-weight:800;padding:2px 7px;border-radius:99px;background:var(--surface-muted);color:var(--text)}.eval-judge-pill.black{background:#262420;color:#fff}.eval-judge-pill.white{background:#ece8df;color:#262420}.eval-tug-bar{display:flex;flex-direction:column;gap:3px;margin:4px 0 2px}.eval-tug-labels{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:.69rem;font-weight:700;color:var(--text)}.eval-tug-track{width:100%;height:7px;border-radius:99px;background:#e5e0d4;border:1px solid #d5cfc1;overflow:hidden;display:flex}.eval-tug-black{height:100%;background:#262420;transition:width .2s ease}.nn-prob-list{display:flex;flex-direction:column;gap:6px}.nn-prob-row{display:grid;grid-template-columns:24px 32px 1fr 38px auto;align-items:center;gap:6px;padding:4px 7px;border-radius:8px;background:#faf9f6;border:1px solid var(--border);font-size:.72rem;cursor:default}.nn-prob-row.is-played{background:#fff7ed;border-color:#fdba74}.nn-prob-rank{font-family:var(--font-mono);font-size:.67rem;font-weight:700;color:var(--text-muted)}.nn-prob-coord{font-family:var(--font-mono);font-weight:800;color:var(--text)}.nn-prob-bar-wrap{height:7px;border-radius:99px;background:#ece8df;overflow:hidden}.nn-prob-bar-fill{display:block;height:100%;border-radius:99px;background:#e85d2a}.nn-prob-row.is-played .nn-prob-bar-fill{background:#ea580c}.nn-prob-pct{font-family:var(--font-mono);font-size:.7rem;font-weight:700;text-align:right;color:var(--text)}.nn-played-badge{font-size:.64rem;font-weight:800;color:#9a3412;background:#ffedd5;padding:1px 5px;border-radius:5px;white-space:nowrap}.nn-played-slot{width:0}.nn-insight-box{padding:6px 9px;border-radius:8px;background:var(--surface-muted);font-size:.71rem;font-weight:600;color:var(--text);line-height:1.35}.topbar-nav{display:flex;align-items:center;gap:8px}.topbar-nav[hidden]{display:none}.master-hero-body{display:flex;flex-direction:column;gap:12px}.master-hero-top{display:flex;align-items:center;gap:14px;padding:14px;border-radius:13px;background:#faf9f6;border:1.5px solid var(--border)}.master-hero-meta{display:flex;flex-direction:column;gap:6px;min-width:0}.master-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.master-name{font-size:1.08rem;font-weight:800;color:var(--text)}.master-tier-badge{font-size:.72rem;font-weight:800;padding:3px 9px;border-radius:99px;background:var(--accent);color:#fff}.master-desc{font-size:.81rem;line-height:1.5;color:var(--text-muted)}.master-rec-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:10px;background:var(--surface-muted);font-size:.79rem;color:var(--text-muted)}.master-rec-bar strong{color:var(--text)}.ckpt-picker-bar{display:flex;flex-direction:column;gap:7px;padding:10px 12px;border-radius:11px;background:#faf9f6;border:1px solid var(--border)}.ckpt-picker-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ckpt-picker-label{font-size:.76rem;font-weight:800;color:var(--text)}.ckpt-picker-sub{font-size:.71rem;color:var(--text-muted)}.ckpt-picker-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ckpt-select{flex:1 1 220px;min-width:0;height:33px;padding:0 10px;border-radius:9px;border:1px solid var(--border);background:var(--surface);font-size:.79rem;font-weight:700;color:var(--text);cursor:pointer}.ckpt-select.compact{flex:0 1 auto;max-width:215px;height:31px;font-size:.75rem;padding:0 8px}.ckpt-mini-candidates{display:flex;flex-direction:column;gap:4px;margin-top:6px}.ckpt-cand-row{display:grid;grid-template-columns:36px 1fr 38px;align-items:center;gap:6px;font-size:.72rem}.ckpt-cand-bar-wrap{height:6px;border-radius:99px;background:var(--surface-muted);overflow:hidden}.ckpt-cand-bar-fill{display:block;height:100%;border-radius:99px;background:#0f8b8d}
