.gf-root:has(.gomoku-game){padding-left:8px;padding-right:8px}
.gomoku-game{width:100%;max-width:480px;color:var(--ink,#f6e6e9)}
.gomoku-game .turn-help{color:var(--muted,#bda0aa)}
.gomoku-board{display:grid;grid-template-columns:repeat(var(--gomoku-size),minmax(28px,1fr));width:100%;margin:16px auto;background:var(--surface,#2a1a22)}
.gf-frame .gomoku-cell{position:relative;box-sizing:border-box;min-width:28px;min-height:28px;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:0;background:linear-gradient(#bda0aa55,#bda0aa55) center/1px 100% no-repeat,linear-gradient(#bda0aa55,#bda0aa55) center/100% 1px no-repeat;touch-action:manipulation}
.gf-frame .gomoku-cell:disabled{opacity:1;cursor:default}
.gomoku-cell::after{content:'';position:absolute;inset:16%;border-radius:50%}
.gomoku-cell.gomoku-rose::after{background:var(--p0,#e8a4a4)}
.gomoku-cell.gomoku-gold::after{background:var(--p1,#f2c777)}
.gomoku-cell.gomoku-last::after{outline:2px solid var(--pc);outline-offset:2px}
.gf-frame .gomoku-cell.gomoku-win{background-color:#67434e}
.gomoku-cell.gomoku-win::after{box-shadow:0 0 0 2px var(--bg,#1a1015),0 0 0 3px var(--pc)}
.gf-frame .gomoku-cell:focus-visible{outline:2px solid var(--ink,#f6e6e9);outline-offset:-2px;z-index:1}
@media(hover:hover){.gf-frame .gomoku-cell:not(:disabled):hover{background-color:#67434e}}

.gomoku-game .turn-help{font-size:1rem;line-height:1.5}
