/**
 * Game board, canvas wrapper, queue tray.
 */

.game-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: min(96vw, 520px);
  margin: 0 auto;
}

.board-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(72vw, 440px);
  border-radius: 16px;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--glow), inset 0 0 40px rgba(0, 229, 229, 0.08);
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 20, 147, 0.12), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(64, 224, 208, 0.1), transparent 50%),
    var(--bg-deep);
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

#game-canvas:active {
  cursor: grabbing;
}

.queue-tray {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  background: var(--bg-panel);
  border-radius: 14px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  width: 100%;
}

.queue-slot {
  /* Dynamic sizing - will be set by JavaScript based on piece dimensions */
  min-width: 60px;
  min-height: 60px;
  border-radius: 12px;
  border: 2px dashed rgba(135, 206, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 26, 0.6);
  transition: all 0.2s ease;
}

.queue-slot:hover {
  border-color: rgba(135, 206, 235, 0.6);
  background: rgba(10, 15, 26, 0.8);
}

.queue-slot.active {
  border-color: var(--highlight-fuchsia);
  box-shadow: 0 0 12px rgba(255, 0, 234, 0.25);
}

.queue-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.score-pill {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-teal), var(--cool-turquoise));
  color: #041018;
  font-weight: 700;
}

.status-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .queue-tray {
    gap: 0.35rem; /* Slightly smaller gap on mobile to fit better */
    padding: 0.2rem;
  }
}
