.game-shell[data-theme="gomoku"] {
  --game-accent: #83f8c5;
  --game-accent-2: #f8d96a;
  --game-accent-soft: rgba(131, 248, 197, 0.2);
  --game-accent-deep: rgba(248, 217, 106, 0.12);
}

.gomoku-stage {
  display: grid;
  gap: 14px;
}

.gomoku-banner {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(131, 248, 197, 0.18);
  background: rgba(131, 248, 197, 0.08);
  color: #dcfff4;
  line-height: 1.6;
}

.gomoku-banner.is-attack {
  border-color: rgba(255, 216, 106, 0.26);
  background: rgba(255, 216, 106, 0.12);
  color: #fff4c8;
}

.gomoku-banner.is-block {
  border-color: rgba(255, 116, 168, 0.24);
  background: rgba(255, 116, 168, 0.1);
  color: #ffe1ed;
}

.gomoku-board {
  grid-template-columns: repeat(9, minmax(38px, 56px));
  gap: 8px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 24, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gomoku-cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 40, 0.76);
}

.gomoku-cell::after {
  content: attr(data-coord);
  position: absolute;
  top: 5px;
  right: 7px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.gomoku-cell.is-empty:hover:not(:disabled) {
  border-color: rgba(131, 248, 197, 0.26);
  background:
    linear-gradient(180deg, rgba(131, 248, 197, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 40, 0.82);
}

.gomoku-stone {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.26);
}

.gomoku-cell.is-p1 .gomoku-stone {
  background: radial-gradient(circle at 30% 30%, #fff8d1, #f8d96a 58%, #d49522 100%);
}

.gomoku-cell.is-p2 .gomoku-stone {
  background: radial-gradient(circle at 30% 30%, #dcfff4, #83f8c5 58%, #19966d 100%);
}

.gomoku-cell.is-suggested {
  border-color: rgba(131, 248, 197, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(131, 248, 197, 0.12),
    0 18px 32px rgba(131, 248, 197, 0.1);
}

.gomoku-cell.is-last {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.gomoku-cell.is-winning {
  border-color: rgba(255, 216, 106, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 106, 0.16),
    0 18px 36px rgba(255, 216, 106, 0.12);
}

@media (max-width: 640px) {
  .gomoku-board {
    grid-template-columns: repeat(9, minmax(26px, 1fr));
    gap: 5px;
    padding: 10px;
  }

  .gomoku-cell {
    border-radius: 12px;
  }
}
