@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main:      #0f172a;
  --bg-card:      #1e293b;
  --bg-hover:     #263448;
  --border:       #334155;
  --border-light: #475569;
  --text-primary: #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:   #64748b;
  --accent:       #B6D8F2;
  --found-bg:     #14532d;
  --found-brd:    #22c55e;
}

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

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

a { text-decoration: none; }

/* ---- TOP BAR (repris de retrouvez/) ---- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-center p {
  margin-top: 0.1rem;
}

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

.score-counter { font-size: 1rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.score-counter strong { color: var(--accent); font-size: 1.15rem; }
.score-sep { color: var(--text-muted); }

.diff-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.diff-control {
  display: flex;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.175rem;
  gap: 0.175rem;
}

.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="opening"] { background: #1e293b; color: #f1f5f9; }
.diff-opt.active[data-val="ending"]  { background: #14532d; color: #22c55e; }
.diff-opt.active[data-val="tous"]    { background: #78350f; color: #f59e0b; }

.back-button {
  display: inline-block;
}

.help-btn {
  border: 1px solid var(--border-light);
}

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

/* === MODAL === */
.modal-overlay {
  z-index: 2000;
}

@keyframes popIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.modal-box {
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 520px;
  max-height: 82vh;
  overflow-y: auto;
}
.modal-box h3 {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.modal-box p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.modal-box strong { color: var(--text-primary); }
.modal-close {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
}

/* Téléphone : barre du haut et champ de réponse gérés par /shared/css/mobile.css et blindtest.css */
