.game-slide-puzzle .game-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--muted);
  max-width: 420px;
  width: 100%;
}

.game-slide-puzzle .game-header {
  text-align: center;
  margin-bottom: 24px;
}

.game-slide-puzzle .game-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.game-slide-puzzle .game-title span {
  color: var(--teal);
}

.game-slide-puzzle .game-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.game-slide-puzzle .game-stats {
  margin-bottom: 20px;
  gap: 28px;
}

.game-slide-puzzle .game-stat-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.game-slide-puzzle .game-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.game-slide-puzzle .board {
  background: var(--board-bg);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  aspect-ratio: 1;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.game-slide-puzzle .tile {
  position: relative;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  aspect-ratio: 1;
  color: var(--text-bright);
  background: linear-gradient(145deg, #FFFFFF, #F0F0ED);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid var(--muted);
}

.game-slide-puzzle .tile::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  right: 6px;
  height: 30%;
  border-radius: 6px 6px 50% 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

.game-slide-puzzle .tile:hover {
  transform: scale(1.04);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.game-slide-puzzle .tile:active {
  transform: scale(0.97);
}

.game-slide-puzzle .tile.empty {
  background: transparent;
  box-shadow: none;
  border: none;
  cursor: default;
}

.game-slide-puzzle .tile.empty::before {
  display: none;
}

.game-slide-puzzle .tile.empty:hover {
  transform: none;
  box-shadow: none;
}

.game-slide-puzzle .controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.game-slide-puzzle .controls .game-btn {
  flex: 1;
  font-size: 1rem;
  padding: 12px 20px;
}

.game-slide-puzzle .game-hint kbd {
  display: inline-block;
  background: var(--muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text);
  margin: 0 1px;
}

.game-slide-puzzle .game-hint {
  margin-top: 14px;
}

/* Win overlay */
.game-slide-puzzle .game-overlay {
  /* Game-specific overlay overrides go here if needed */
}

.game-slide-puzzle .game-overlay-card {
  padding: 40px 48px;
  animation: slidePuzzlePopIn 0.35s ease;
}

@keyframes slidePuzzlePopIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.game-slide-puzzle .win-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.game-slide-puzzle .win-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.game-slide-puzzle .win-message {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.game-slide-puzzle .win-message strong {
  color: var(--teal);
}

.game-slide-puzzle .game-overlay-card .game-btn {
  width: 100%;
}

@media (max-width: 480px) {
  .game-slide-puzzle .game-container {
    padding: 20px;
  }

  .game-slide-puzzle .game-title {
    font-size: 1.6rem;
  }

  .game-slide-puzzle .tile {
    font-size: 1.2rem;
    border-radius: 8px;
  }

  .game-slide-puzzle .board {
    gap: 5px;
    padding: 8px;
    border-radius: 12px;
  }

  .game-slide-puzzle .game-overlay-card {
    padding: 28px 24px;
  }
}
