.omok-play {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  --omok-ink: #183d37;
  --omok-black: radial-gradient(ellipse at 33% 23%, #62625e 0%, #313230 31%, #151714 74%, #292924 100%);
  --omok-white: radial-gradient(ellipse at 34% 24%, #fffefa 0%, #fbf7ed 45%, #dcd4bf 90%, #cbbfa7 100%);
}
.omok-frame {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1;
  padding: 3%;
  border: 1px solid #b48046;
  border-radius: 12px;
  background:
    repeating-linear-gradient(5deg, transparent 0 11px, #8e57200a 12px, transparent 13px 22px),
    linear-gradient(120deg, #efd19b, #e7be83 55%, #dbaf74);
  box-shadow: inset 0 1px 2px #fff8, 0 5px 15px #402d1515;
}
.omok-grid { position: relative; display: flex; flex-flow: column; width: 100%; height: 100%; }
.omok-grid::before {
  content: ""; position: absolute; inset: 3.33333333%;
  background-image: linear-gradient(to right,#876434 1px,transparent 1px),linear-gradient(to bottom,#876434 1px,transparent 1px);
  background-size: calc(100% / 14) 100%, 100% calc(100% / 14);
  box-shadow: inset -1px -1px #876434;
  pointer-events: none;
}
.omok-row { position: relative; display: flex; flex: 1; min-height: 0; }
.omok-grid .omok-point {
  position: relative; display: block; flex: 1; min-width: 0; min-height: 0;
  touch-action: manipulation;
  margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.omok-grid .omok-point::before, .omok-grid .omok-point::after { position: absolute; pointer-events: none; }
.omok-star::before { content: ""; width: 16%; height: 16%; inset: 42%; background: #70502a; border-radius: 50%; }
.omok-point[data-color="1"]::after, .omok-point[data-color="2"]::after,
.omok-point.omok-selected::after {
  content: ""; inset: 4%; border-radius: 50%; box-shadow: 1px 2px 3px #4e361b70;
}
.omok-point[data-color="1"]::after, .omok-play[data-next="black"] .omok-selected::after { background: var(--omok-black); }
.omok-point[data-color="2"]::after, .omok-play[data-next="white"] .omok-selected::after { background: var(--omok-white); }
.omok-point.omok-selected::after { opacity: .57; }
.omok-grid .omok-last::before {
  content: ""; z-index: 1; box-sizing: border-box; width: 26%; height: 26%; inset: 37%;
  border-radius: 50%; border: 1.5px solid #fff; background: transparent;
}
.omok-grid .omok-last[data-color="2"]::before { border-color: #37473e; }
.omok-grid .omok-win::after { outline: 2px solid #08735c; outline-offset: -1px; }
.omok-grid .omok-point:focus-visible { z-index: 2; outline: 2px solid #056c64; outline-offset: -1px; border-radius: 3px; }
@media (hover:hover) {
  .omok-play[data-playable="true"] .omok-point[data-color="0"]:hover::after {
    content: ""; inset: 6%; border-radius: 50%; background: var(--omok-black); opacity: .32; cursor: pointer;
  }
  .omok-play[data-playable="true"][data-next="white"] .omok-point[data-color="0"]:hover::after { background: var(--omok-white); }
}
.omok-touch, .omok-replay-controls { display: flex; gap: .7rem; align-items: center; margin-top: .8rem; }
.omok-touch[hidden] { display: none; }
.omok-touch .omok-hint { flex: 1; color: #4a5149; font-size: .9rem; }
.omok-touch .omok-confirm, .omok-replay-controls button {
  min-height: 44px; padding: .6rem 1.15rem; border: 1px solid #a4b1a5; border-radius: 8px; cursor: pointer;
  color: #163d34; background: #f8f6ed; font: inherit; font-weight: 650;
}
.omok-touch .omok-confirm { background: #164d43; color: white; border-color: #164d43; }
.omok-touch button:disabled, .omok-replay-controls button:disabled { opacity: .48; cursor: default; }
.omok-replay-controls { flex-wrap: wrap; justify-content: center; }
.omok-replay-controls input { flex: 1; min-width: 70px; accent-color: #164d43; }
.omok-replay-controls output { color: #425048; font-variant-numeric: tabular-nums; }
.omok-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
