.omok-screen {
  padding-bottom: 28px;
}

.omok-panel {
  max-width: 560px;
  margin: 0 auto;
}

.omok-hud {
  margin: 8px 0 14px;
  text-align: center;
}

.omok-hud h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 5vw, 28px);
  color: #1a1f2e;
}

.omok-lead {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.omok-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3157ff;
  font-size: 13px;
  font-weight: 700;
}

.omok-status.is-ai {
  background: #f3f4f6;
  color: #4b5563;
}

.omok-status.is-win {
  background: #ecfdf5;
  color: #059669;
}

.omok-status.is-lose {
  background: #fef2f2;
  color: #dc2626;
}

.omok-board-wrap {
  width: 100%;
  max-width: min(100%, 92vw, 480px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #f6d7a8 0%, #e8c48a 100%);
  box-shadow: 0 12px 28px rgba(120, 80, 20, 0.18);
}

.omok-board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(#c9955a, #c9955a) center / 100% 1px no-repeat,
    linear-gradient(#c9955a, #c9955a) center / 1px 100% no-repeat,
    #d8a968;
  border: 1px solid rgba(120, 70, 20, 0.25);
  border-radius: 8px;
  touch-action: manipulation;
  user-select: none;
}

.omok-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.omok-cell::before,
.omok-cell::after {
  content: "";
  position: absolute;
  background: rgba(90, 50, 10, 0.55);
  pointer-events: none;
}

.omok-cell::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.omok-cell::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.omok-cell:nth-child(-n + 15)::before {
  left: 50%;
}

.omok-cell:nth-child(15n + 1)::after {
  top: 50%;
}

.omok-cell:nth-child(15n)::after {
  bottom: 50%;
}

.omok-cell:nth-last-child(-n + 15)::before {
  right: 50%;
  left: 0;
}

.omok-cell:nth-last-child(15)::before,
.omok-cell:nth-child(15)::before {
  left: 50%;
  right: 50%;
}

.omok-stone {
  position: relative;
  z-index: 1;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.omok-stone.black {
  background: radial-gradient(circle at 32% 28%, #555 0%, #111 55%, #000 100%);
}

.omok-stone.white {
  background: radial-gradient(circle at 32% 28%, #fff 0%, #f0f0f0 45%, #d0d0d0 100%);
}

.omok-stone.last {
  outline: 2px solid #3157ff;
  outline-offset: 1px;
}

.omok-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.omok-actions .primary-button,
.omok-actions .secondary-button {
  flex: 1;
  min-height: 48px;
}

.omok-result {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.omok-result[hidden] {
  display: none !important;
}

.omok-result-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.omok-result-text {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.omok-result-actions {
  display: flex;
  gap: 10px;
}

.omok-result-actions .primary-button,
.omok-result-actions .secondary-button {
  flex: 1;
  min-height: 46px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .omok-screen .header-back {
    display: none;
  }
}
