/* === PHOTO PIXELISÉE (SOLO) ===
   Photo, saisie, suggestions et interrupteur d'effet : shared/css/pixelphoto.css */

html { font-size: clamp(12px, 1.1vw, 19px); }

body { font-family: 'Nunito', -apple-system, sans-serif; }

a { text-decoration: none; }

.top-bar-right { gap: 0.75rem; }

/* ---- DIFFICULTÉ (comme Retrouvez-les tous) ---- */
.diff-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.diff-lock { font-size: 0.8rem; line-height: 1; cursor: default; }
.diff-control {
  display: flex;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.175rem;
  gap: 0.175rem;
}
.diff-control.locked { opacity: 0.4; pointer-events: none; }
.diff-opt {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.diff-opt:hover:not(.active) { color: var(--text-primary); }
.diff-opt.active[data-val="facile"] { background: #14532d; color: #22c55e; }
.diff-opt.active[data-val="tous"]   { background: #78350f; color: #f59e0b; }

/* ---- ZONE DE JEU ---- */
.game-area {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.pix-solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Série et record */
.pix-stats {
  display: flex;
  gap: 0.75rem;
}
.pix-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(170, 190, 215, 0.18);
  border-radius: 0.75rem;
}
.pix-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.pix-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

/* Essais restants */
.pix-tries {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.2rem;
}
.pix-try {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(182, 216, 242, 0.5);
}
.pix-try.used { background: #334155; box-shadow: none; }
.pix-tries-label {
  margin-left: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Mauvaises réponses de la photo en cours */
.pix-guesses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.pix-guesses:empty { display: none; }
.pix-guess {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pix-guess.wrong {
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid #ef4444;
  color: #fecaca;
  text-decoration: line-through;
}

.pix-giveup-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pix-giveup-btn:not(:disabled):hover { color: var(--text-primary); border-color: var(--text-secondary); }
.pix-giveup-btn:disabled { opacity: 0.4; cursor: default; }

/* Fin de série */
.pix-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 2rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(170, 190, 215, 0.18);
  border-radius: 1rem;
  text-align: center;
}
.pix-end-title { font-size: 1.3rem; font-weight: 800; }
.pix-end-score { color: var(--text-secondary); }
.pix-end-record { color: #fbbf24; font-weight: 700; }
.pix-end .replay-btn { margin-top: 0.6rem; }

.replay-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.replay-btn:hover { background: #9dc8e8; }

.pix-effect { margin-top: 0.5rem; }

/* Téléphone */
@media (max-width: 700px) {
  .game-area { padding: 1.25rem 1rem 4rem; }
  .pix-solo { gap: 0.8rem; }
  .pix-stat { min-width: 5.5rem; padding: 0.4rem 0.8rem; }
  .pix-stat strong { font-size: 1.35rem; }
}
