.gm-table{position:relative;margin:12px auto;max-width:620px}.gm-board{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));aspect-ratio:1;padding:2%;background:#d6b67e;border:8px solid #987448;border-radius:14px;box-shadow:0 16px 30px #0003;touch-action:manipulation}.gm-cell{position:relative;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:linear-gradient(#755a3299,#755a3299) center/1px 100% no-repeat,linear-gradient(#755a3299,#755a3299) center/100% 1px no-repeat!important;aspect-ratio:1;cursor:pointer}.gm-cell:after{content:'';position:absolute;inset:6%;border-radius:50%;pointer-events:none}.gm-cell.stone.s1:after,.gm-cell.selected.s1:after{background:radial-gradient(circle at 35% 28%,#535c64,#101c23 65%);box-shadow:1px 2px 3px #0005}.gm-cell.stone.s2:after,.gm-cell.selected.s2:after{background:radial-gradient(circle at 35% 28%,#fff,#e6e4da 65%);box-shadow:1px 2px 3px #0005}.gm-cell.selected:after{opacity:.5;outline:2px dashed #9d3f2f;outline-offset:-2px}.gm-cell.last:before{content:'';position:absolute;z-index:2;inset:40%;border:2px solid #eb9c54;border-radius:50%;pointer-events:none}.gm-cell.winning:after{outline:3px solid #35b88e;outline-offset:-2px}.gm-cell:focus-visible{outline:3px solid #ac4535!important;z-index:3}#gm-curtain{position:absolute;inset:0;background:#102c39ec;border-radius:14px;display:grid;place-content:center;gap:12px;text-align:center;padding:24px}#gm-curtain[hidden],#gm-reset[hidden]{display:none}.gm-settings{display:flex;gap:12px;flex-wrap:wrap}.gm-settings label{flex:1;min-width:140px}.gm-settings select{width:100%}.gm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gm-actions button{min-height:48px}#gm-confirm{background:#c0dfb2;color:#173b33}#gm-status{min-height:1.5em;font-size:1.1rem;font-weight:700}#gm-hint{font-size:.85rem;min-height:2.4em}#gm-reset{border:1px solid #e6ba77;border-radius:12px;padding:14px;background:#243e47;margin:12px 0}#gm-summary{font-size:.82rem;line-height:1.7;color:#bfd1c9}.gm-rules{font-size:.9rem;line-height:1.7}@media(max-width:480px){.gm-board{border-width:5px}.game-surface{padding:12px!important}.gm-actions{gap:6px}.gm-actions button{font-size:.85rem;padding:10px 5px}}

.gm-key-dialog{box-sizing:border-box;width:min(94vw,36rem);max-width:94vw;border:1px solid #998463;border-radius:1rem;padding:clamp(.6rem,3vw,1.3rem);background:#fffaf0;color:#27221c}
.gm-key-dialog::backdrop{background:#1d1b18a0}
.gm-key-dialog .gm-board{width:100%;direction:ltr}
.gm-key-dialog .gm-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.gm-key-dialog button:disabled{opacity:1}
.gm-key-dialog [role=status]{min-height:1.5em}

.gm-result{margin:12px 0;padding:14px 16px;border:1px solid #c19b58;border-radius:14px;background:#fff5dc;color:#372813}
.gm-result[hidden]{display:none}
.gm-result h2{margin:0;color:inherit;font-size:clamp(1.25rem,4vw,1.65rem)}
.gm-result p{margin:.4rem 0 .75rem;color:inherit}
.gm-result p:empty{display:none}
.gm-result div{display:flex;flex-wrap:wrap;gap:8px}
.gm-result button{min-height:44px;padding:8px 14px;border:1px solid #956b42;border-radius:9px;background:#fff;color:#372813}
.gm-result .gm-result-primary{background:#493014;color:#fff;border-color:#493014}
#gm-status[data-turn="1"]::before,#gm-status[data-turn="2"]::before{content:'';display:inline-block;width:.7em;height:.7em;margin-inline-end:.45em;border:1px solid #806d52;border-radius:50%;background:#182631;vertical-align:baseline}
#gm-status[data-turn="2"]::before{background:#fff9e8}
#gm-status.gm-terminal-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.gm-cell.winning:after{outline:2px solid #f5bd4d;outline-offset:-2px}
.gm-cell.gm-occupied{outline:2px dashed #8b3926!important;outline-offset:-2px}
.gm-celebrate .gm-cell.winning:after{animation:gm-win-pulse 480ms ease-out var(--gm-win-delay,0ms) both}
@keyframes gm-win-pulse{0%{outline-color:#f5bd4d00}45%{outline-color:#fff3bd;transform:scale(1.07)}100%{outline-color:#f5bd4d}}
@media(prefers-reduced-motion:reduce){.gm-celebrate .gm-cell.winning:after{animation:none}}
.gm-point-actions{position:fixed;z-index:35;display:flex;gap:6px;max-width:calc(100vw - 16px);padding:5px;border-radius:12px;background:#fff8e9;border:1px solid #a07849;box-shadow:0 5px 20px #2c201b42}
.gm-point-actions[hidden]{display:none}
.gm-point-actions button{min-height:44px;padding:7px 12px;border:1px solid #a07849;border-radius:8px;background:#fff;color:#342514}
.gm-point-actions button:first-child{background:#493014;color:#fff}
.gm-responsive-surface .gm-table{max-inline-size:min(640px,max(420px,calc(100svh - 205px)))}
.gm-responsive-surface #gm-board{box-sizing:border-box}
@media(max-width:600px){
 .gm-responsive-surface.game-surface{padding-inline:6px!important}
 .gm-responsive-surface .gm-table{max-inline-size:none}
 .gm-responsive-surface #gm-board{border-width:4px;padding:1.5%}
 .gm-key-dialog .gm-board{box-sizing:border-box}
}
