/* =============================================================
   ARCADE · gomoku.css
   ============================================================= */

.game-page--gomoku {
  --accent: var(--coral);
  --accent-soft: rgba(255, 107, 74, 0.16);
  --board-w: 640px;
}

/* -------------------------------------------------------------
   Canvas board
   ------------------------------------------------------------- */
.gomo-canvas {
  width: min(100%, 640px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #13141d;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.gomo-canvas.is-idle {
  cursor: default;
}

/* -------------------------------------------------------------
   HUD / toolbar
   ------------------------------------------------------------- */

.gomo-hud .hud__v.is-hot {
  color: var(--accent);
}

.gomo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 660px;
}

.gomo-toolbar .hint {
  font-size: 0.78rem;
  color: var(--dim);
}

.gomo-toolbar .hint b {
  color: var(--muted);
  font-weight: 600;
}

.gomo-toolbar__btns {
  display: flex;
  gap: 0.55rem;
}

.gomo-toolbar .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.82rem;
}

.diff--gomo button {
  font-size: 0.74rem;
}

/* thinking indicator */
.gomo-hud .hud__item.is-thinking .hud__v::after {
  content: "…";
  animation: think 1.1s steps(3) infinite;
}

@keyframes think {
  0% { content: "·"; }
  33% { content: "··"; }
  66% { content: "···"; }
}

/* -------------------------------------------------------------
   Responsive / motion
   ------------------------------------------------------------- */
@media (max-width: 560px) {
  .gomo-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .gomo-toolbar__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gomo-toolbar .hint {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gomo-hud .hud__item.is-thinking .hud__v::after {
    animation: none;
    content: "…";
  }
}
