@font-face{font-family:p;src:url(en.woff2)}@font-face{font-family:z;src:url(zh.woff2)}*{box-sizing:border-box}body{margin:0;color:#534b42;background:#f5f0e6;font:16px p,z,system-ui,sans-serif;height:100svh;display:flex;flex-direction:column}button,input{font:inherit}button{cursor:pointer;color:inherit}header{height:52px;flex:none;display:flex;gap:10px;align-items:center;padding:0 3%}header img{width:96px;height:33px;object-fit:contain}header strong{flex:1;font-size:14px}header button{border:none;background:transparent;min-width:34px;height:34px;font-size:20px}main{flex:1;min-height:0;display:grid;place-items:center;padding:6px 3% 12px}form{width:min(100%,460px);max-height:100%;overflow:auto;background:white;border:1px solid #eee4d3;border-radius:22px;padding:clamp(12px,3vw,22px)}h2{margin:0 0 12px}.top-field{border:0;margin:0 0 12px;padding:0}.top-label,legend{font-weight:700;font-size:15px;margin-bottom:5px}.top-choices{display:flex;gap:4px}.top-choice{flex:1;text-align:center;position:relative}.top-choice input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.top-choice span{display:block;border:1px solid #d9cdbd;border-radius:10px;padding:6px 0}.top-choice input:checked+span{background:#ffefda;color:#9d5206;border-color:#df8a31}.top-choice input:focus-visible+span{outline:2px solid #865614}input[type=range]{width:100%;accent-color:#db7c09}.top-ends{display:flex;justify-content:space-between;font-size:12px}summary{cursor:pointer;margin-bottom:8px}.top-start,.buttons button,#actions button{border:0;border-radius:24px;padding:9px;background:#df810e;color:white;font-weight:bold}.top-start{width:100%;margin-top:10px}.top-start svg{vertical-align:middle}#match{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}[hidden]{display:none!important}.scores,.buttons{width:min(100%,calc(100svh - 150px));display:flex;align-items:center;justify-content:space-around}.scores{height:clamp(46px,10vh,78px);background:white;border-radius:22px;border:1px solid #eadfcb;box-shadow:0 4px 14px #543e1712}.side{display:flex;align-items:center;gap:9px}.side img{width:clamp(32px,6vh,47px)}.side span{display:grid;text-align:center}.side b{font-size:24px;line-height:1}.side small{font-size:12px}.active small{color:#28804a;font-weight:bold}#board{width:min(100%,calc(100svh - 192px));aspect-ratio:1;border-radius:7%;overflow:hidden;background:#dcb085 url(goban_texture.webp) center/cover;box-shadow:inset 0 0 0 5px #f2dfb7,0 6px 14px #53321c28}svg.board{display:block;width:100%;height:100%;touch-action:manipulation}.cell{cursor:pointer;outline:0}.cell:focus-visible{stroke:#2988c3;stroke-width:.6}.stone{transform-box:fill-box;transform-origin:center;animation:settle .2s ease-out}@keyframes settle{from{transform:scale(.65,1.18)}70%{transform:scale(1.08,.94)}}#status{font-size:13px;min-height:1.3em;text-align:center}.buttons{gap:6px}.buttons button{flex:1;padding:9px 3px;font-size:14px;background:#399dde}.buttons #resign{background:#fae8e7;color:#c6423a}.buttons #fresh{background:#fff1db;color:#aa610d}.buttons button:disabled{opacity:.55}dialog{border:1px solid #e4d9c5;border-radius:18px;max-width:min(90vw,400px);color:inherit;text-align:center}dialog::backdrop{background:#3e352c65}#actions{display:flex;justify-content:center;gap:8px;margin-top:12px}#actions button{padding:8px 17px}
