:root{font-family:system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif;color:#eaf1f7;background:#0a1423;color-scheme:dark;line-height:1.65;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button,summary,select,a{-webkit-tap-highlight-color:transparent}button,select{min-height:46px;border:1px solid #42516a;border-radius:10px;background:#17273d;color:#edf5ff;padding:10px 14px}button,summary{cursor:pointer}button:hover:not(:disabled){background:#253b54}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline:3px solid #8df3d1;outline-offset:3px}a{color:#92e6d0;text-underline-offset:4px}header,main,footer{width:min(1120px,calc(100% - 40px));margin:auto}header{display:flex;justify-content:space-between;align-items:center;padding:28px 0}.brand{color:#f4f8fc;font-weight:850;font-size:1.9rem;text-decoration:none}.brand span{font-size:.875rem;font-weight:400;color:#afbdd0;margin-left:14px}header>a:last-child{font-size:.95rem}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.9rem,4vw,2.8rem);letter-spacing:-.06em;line-height:1.2;margin-bottom:12px}h2{line-height:1.4;letter-spacing:-.025em}p,li{color:#bfcbd9}p{margin-bottom:16px}.eyebrow{font-size:.875rem;font-weight:700;color:#84dfc6;letter-spacing:.04em;margin-bottom:10px}.heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:24px 0}.heading>div>p:last-child{margin-bottom:0}.tag{padding:6px 12px;border:1px solid #365b58;color:#a4ead7;border-radius:99px;white-space:nowrap;font-size:.875rem}.layout{display:grid;grid-template-columns:minmax(0,640px) minmax(240px,1fr);gap:32px;align-items:start}.board-area{background:#132238;border:1px solid #344357;border-radius:18px;padding:14px;box-shadow:0 16px 60px #0002}.side-score{display:flex;justify-content:space-between;align-items:center;padding:2px 10px 12px}.side-score.cho{padding:12px 10px 2px}.side-score strong{font-size:1.05rem}.han strong{color:#ffa3a0}.cho strong{color:#8de7f8}.side-score span{font-variant-numeric:tabular-nums;color:#c2cddd;font-size:.95rem}.board-wrap{position:relative;background:#e2e9e9;border:1px solid #d1dcdc;border-radius:9px;overflow:hidden;color:#152b40}.board-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.board-lines path{fill:none;stroke:#829395;stroke-width:2}.board{position:relative;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));aspect-ratio:9/10}.cell{display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:0;background:transparent;color:inherit;min-height:0;position:relative;touch-action:manipulation}.cell:hover:not(:disabled){background:#1a45431a}.cell:focus-visible{outline:3px solid #174f73;outline-offset:-3px;z-index:2}.piece{display:flex;align-items:center;justify-content:center;width:80%;height:80%;border-radius:24%;border:2px solid currentColor;background:#fffef8;font-size:clamp(1rem,3vw,1.85rem);line-height:1;font-weight:800;box-shadow:0 2px 2px #0003}.piece.han{color:#ad333d}.piece.cho{color:#0b6485}.cell.selected .piece{box-shadow:0 0 0 4px #087b64;background:#ddfff1}.cell.legal:empty::after{content:"";width:23%;height:23%;border-radius:50%;background:#167c67}.cell.legal .piece{outline:3px dashed #087b64;outline-offset:2px}.cell.last{background:#008a6a22}.cell.last::before{content:"";position:absolute;right:4px;bottom:4px;width:6px;height:6px;background:#005e4c;border-radius:50%}.cell.checked .piece{outline:3px solid #c71d45;outline-offset:1px}.status-card{border-bottom:1px solid #304158;padding:12px 0 20px}.status-card h2{font-size:1.75rem;margin-bottom:10px}.status-card p:last-child{margin-bottom:0;font-size:.875rem;color:#96a9c0}.notice{min-height:26px;color:#f7d999;margin:16px 0;font-size:.95rem}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.small{font-size:.875rem;color:#a8bad0;margin-top:12px}.setup{margin:24px 0;border:1px solid #344357;border-radius:12px;padding:16px}.setup label,.setup select{display:block;width:100%}.setup label{margin-top:16px;font-size:.95rem}.setup p{font-size:.875rem;margin-top:12px}.setup select{margin-top:6px}.primary{background:#7ce2c2;color:#102b29;font-weight:800;width:100%;margin-top:20px;border-color:transparent}.primary:hover:not(:disabled){background:#a2f0d8}.guide{margin:64px 0 36px;border-top:1px solid #2c3b50;padding-top:40px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:24px}.guide h3{font-size:1.15rem}.guide ul{padding-left:22px}.guide li{margin-bottom:8px}.guide details{border-top:1px solid #2c3b50;padding:18px 0}.guide details p{margin-top:14px;margin-bottom:0}.guide summary,.setup summary{font-weight:650;font-size:1rem}.guide strong{color:#e5eff6}footer{border-top:1px solid #2c3b50;display:flex;justify-content:space-between;padding:22px 0 36px;color:#9db0c5;font-size:.875rem}.skip{position:absolute;top:-100px;left:16px;background:#102a32;padding:12px;z-index:10}.skip:focus{top:10px}.noscript{position:fixed;bottom:0;background:#6d2437;color:white;width:100%;padding:16px;margin:0}@media(max-width:800px){.layout{grid-template-columns:1fr;gap:18px}.board-area{max-width:600px;width:100%;margin:auto}.controls{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.status-card{grid-column:1/-1}.notice{grid-column:1/-1}.setup{grid-column:1/-1;margin:14px 0}.controls>.small:last-child{grid-column:1/-1}.piece{font-size:clamp(1rem,5vw,1.85rem)}}@media(max-width:480px){header,main,footer{width:calc(100% - 24px)}header{padding:18px 0}.brand span{display:none}.heading{margin:16px 0 24px}.tag{font-size:.8rem;padding:5px 9px}.board-area{padding:7px;border-radius:12px}.piece{border-width:1.5px}.controls{display:block}.guide-grid{grid-template-columns:1fr;gap:16px}.guide{margin-top:40px}.cell.legal .piece{outline-width:2px;outline-offset:0}.cell.selected .piece{box-shadow:0 0 0 2px #087b64}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.legend{font-size:.875rem;line-height:1.9;margin:14px 8px 4px;color:#c3d1e0}.legend strong{color:#f2f8ff;margin-left:8px}.legend strong:first-child{margin-left:0}.piece{font-size:clamp(.8rem,2.3vw,1.3rem);letter-spacing:-.04em}.setup select{min-width:0;font-size:.875rem;padding-left:8px;padding-right:8px}.heading>div{min-width:0}@media(max-width:800px){.piece{font-size:clamp(.8rem,3.6vw,1.3rem)}}@media(max-width:480px){.heading{align-items:flex-start;flex-wrap:wrap}.brand{font-size:1.65rem}.side-score span{font-size:.8rem}}
