/* games/gomoku/style.css */

.gomoku-turn {
  font-size: var(--font-size-title);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 200px;
  text-align: center;
}

#gomoku-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  border-radius: 8px;
  touch-action: none;
}

[data-theme="dark"] #gomoku-canvas {
  filter: brightness(0.9);
}

/* ── 「查看結果」浮動按鈕（躲進棋盤後顯示） ── */
.result-back-btn {
  position: fixed;
  bottom: 88px;
  /* 避開重新開始按鈕 */
  right: 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 200;
  animation: bouncePop 0.35s ease;
}

.result-back-btn.hidden {
  display: none;
}

@keyframes bouncePop {
  from {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}