/* =============================================================
   ARCADE · breakout.css
   ============================================================= */

.game-page--breakout {
  --accent: var(--rose);
  --accent-soft: rgba(255, 93, 143, 0.14);
  --board-w: 720px;
}

/* -------------------------------------------------------------
   Canvas
   ------------------------------------------------------------- */
.bko-canvas {
  display: block;
  width: min(100%, 720px);
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0c0c12;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: none;
}


/* -------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------- */
.bko-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 760px;
}

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

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

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

/* -------------------------------------------------------------
   Touch controls
   ------------------------------------------------------------- */
.bko-dpad {
  display: none;
  gap: 8px;
  width: 100%;
  max-width: 760px;
}

.bko-dpad button {
  flex: 1 1 0;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.1s var(--ease);
}

.bko-dpad button svg {
  width: 22px;
  height: 22px;
}

.bko-dpad button:active {
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(0.94);
}

@media (hover: none) and (pointer: coarse) {
  .bko-dpad {
    display: flex;
  }

  .bko-canvas {
    cursor: default;
  }
}

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

  .bko-toolbar .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .bko-dpad button {
    transition: none;
  }
}