/* ── ETVOUS.CSS — styles spécifiques à la page "et vous ?" ── */

/* ── VARIABLES & BASE (design system identique à index.html) ── */
:root {
  --ink:       #111111;
  --blanc:     #ffffff;
  --parch:     #f7f5f0;
  --muted:     #888;
  --border:    #e0ddd6;
  --classic:   #FF6B35; --classic-bg: #FFF0EA;
  --deep:      #7C5CBF; --deep-bg:    #F0EBFF;
  --wtf:       #00C2A8; --wtf-bg:     #E0FAF7;
  --brain:     #E63F6A; --brain-bg:   #FFE8EF;
  --all-col:   #FFD600; --all-bg:     #FFFBE6;
  --radius:    16px;
  --radius-sm: 8px;
  --display:   'Unbounded', sans-serif;
  --sans:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--parch);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.container      { max-width: 480px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }

/* ── SCREENS ── */
.screen { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.screen.active { display: flex; animation: popIn .28s cubic-bezier(.4,0,.2,1); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

.screen-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,245,240,.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
  padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  min-height: 56px;
}
.screen-title {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: -.01em; flex: 1; color: var(--ink);
}
.back-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: var(--muted); padding: 0; flex-shrink: 0; transition: color .15s;
}
.back-btn:hover { color: var(--ink); }
.q-counter {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
/* Code de salle visible pendant la partie — tap pour copier le lien d'invitation,
   permet à un retardataire de rejoindre une partie déjà lancée. */
.room-code-chip {
  font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); background: var(--parch);
  border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .7rem;
  cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.room-code-chip:hover { background: var(--all-bg); transform: translateY(-1px); }
.room-code-chip:empty { display: none; }
.screen-body { flex: 1; overflow-y: auto; padding: 1.5rem 0 5rem; }

/* ── TYPOGRAPHY ── */
.display { font-family: var(--display); font-size: clamp(38px,7vw,80px); font-weight: 900; line-height: .95; letter-spacing: -.03em; }
.label   { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: .8rem 1.6rem; border-radius: 50px;
  font-size: 13px; font-weight: 700; font-family: var(--sans);
  cursor: pointer; border: 2px solid var(--ink); text-decoration: none;
  transition: all .15s; white-space: nowrap; letter-spacing: .02em;
}
.btn-primary { background: var(--ink); color: var(--blanc); }
.btn-primary:hover:not(:disabled) { background: #333; transform: translateY(-2px); box-shadow: 4px 4px 0 var(--all-col); }
.btn-yellow { background: var(--all-col); color: var(--ink); border-color: var(--ink); }
.btn-yellow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--blanc); }
.btn-sm { padding: .5rem 1.1rem; font-size: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── INPUTS ── */
.input, .textarea {
  width: 100%; font-family: var(--sans); font-size: 15px;
  background: var(--blanc); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .85rem 1.1rem; outline: none; transition: box-shadow .15s;
}
.input:focus, .textarea:focus { box-shadow: 4px 4px 0 var(--all-col); }
.textarea { resize: none; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #bbb; }
.form-group  { margin-bottom: 1rem; }
.form-label  { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; display: block; }

/* ── PILLS ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid currentColor;
}
.pill-classic { background: var(--classic-bg); color: var(--classic); }
.pill-deep    { background: var(--deep-bg);    color: var(--deep); }
.pill-wtf     { background: var(--wtf-bg);     color: var(--wtf); border-color: var(--wtf); }
.pill-brain   { background: var(--brain-bg);   color: var(--brain); }

/* ── LOADER ── */
.dots { display: flex; gap: 4px; justify-content: center; padding: 2rem; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--all-col); opacity: .25; animation: dotPulse .75s ease-in-out infinite; border: 1.5px solid var(--ink); }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse { 50% { opacity: 1; transform: scale(1.4); } }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--ink); color: var(--blanc);
  padding: .65rem 1.5rem; border-radius: 50px;
  font-size: 13px; font-weight: 700; border: 2px solid var(--all-col);
  z-index: 9999; pointer-events: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.toast.up { transform: translateX(-50%) translateY(0); }

/* ── MODAL / OVERLAY ── */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,17,17,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--blanc); border-radius: 20px;
  padding: 2rem; max-width: 380px; width: 100%;
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--all-col);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--parch); border: 2px solid var(--ink); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; font-weight: 900; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--all-col); }
.modal h2 {
  font-family: var(--display); font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 1.25rem; padding-right: 2rem;
}

/* ═══════════════════════════════
   ACCUEIL
═══════════════════════════════ */
.accueil-inner { padding-top: 2rem; }
.back-link {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-decoration: none; margin-bottom: 2rem; transition: color .15s;
}
.back-link:hover { color: var(--ink); }
.accueil-hero { margin-bottom: 2.5rem; }
.accueil-eyebrow { margin-bottom: .5rem; }
.accueil-title {
  font-family: var(--display); font-size: clamp(40px, 11vw, 96px);
  font-weight: 900; line-height: .9; letter-spacing: -.04em; color: var(--ink);
  margin-bottom: .75rem;
  overflow-wrap: break-word;
}
.accueil-sub { font-size: 17px; line-height: 1.55; color: #555; max-width: 300px; overflow-wrap: break-word; }
.accueil-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2.5rem; }
.accueil-actions .btn { justify-content: center; }
.accueil-rules { display: flex; flex-direction: column; gap: .85rem; }
.rule-item { display: flex; align-items: center; gap: .85rem; font-size: 13px; color: #555; line-height: 1.5; }
.rule-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }

/* ═══════════════════════════════
   CHOIX MODE
═══════════════════════════════ */
/* ── Mood selection screen ── */
.mood-intro { margin-bottom: 1.5rem; }
.mood-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #888; }
.mood-list { display: flex; flex-direction: column; gap: 10px; }

.mood-card {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--blanc); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: 3px 3px 0 var(--border);
  transition: transform .12s, box-shadow .12s;
  border-left-width: 5px;
}
.mood-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.mood-card:active { transform: translateY(0); }

.mood-card-emoji { font-size: 28px; flex-shrink: 0; line-height: 1; }
.mood-card-body  { flex: 1; min-width: 0; }
.mood-card-label { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.mood-card-desc  { font-size: 12px; color: #666; margin-top: .2rem; line-height: 1.35; }
.mood-card-arrow { font-size: 18px; color: #bbb; flex-shrink: 0; transition: color .12s, transform .12s; }
.mood-card:hover .mood-card-arrow { color: var(--ink); transform: translateX(3px); }

.mood-card-amis      { border-left-color: #f5c842; }
.mood-card-famille   { border-left-color: #e07b4f; }
.mood-card-collegues { border-left-color: #5ba4e6; }
.mood-card-crush     { border-left-color: #e97fbf; }

/* Legacy mode-card styles (kept for backward compat) */
.mode-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
.mode-dot.on { background: var(--ink); }

/* ═══════════════════════════════
   SALLE HÔTE
═══════════════════════════════ */
.share-hint {
  font-size: 14px; line-height: 1.45; color: var(--ink); font-weight: 600;
  margin-bottom: 1rem; text-align: center;
}
.code-block {
  background: var(--ink); border-radius: var(--radius); border: 2px solid var(--ink);
  padding: 1.75rem 1.5rem; text-align: center; margin-bottom: 1.25rem;
  box-shadow: 6px 6px 0 var(--all-col);
}
.code-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: .4rem;
}
.code-value {
  font-family: var(--display); font-size: clamp(44px, 14vw, 72px);
  font-weight: 900; color: var(--all-col); letter-spacing: .12em; line-height: 1;
}
.share-row { display: flex; gap: 10px; margin-bottom: 1.25rem; align-items: stretch; }
.qr-wrap {
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 8px; flex-shrink: 0; width: 88px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-wrap canvas, .qr-wrap img { width: 68px !important; height: 68px !important; display: block; }
.share-info { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.share-url {
  font-size: 11px; color: var(--muted); word-break: break-all;
  background: var(--blanc); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .75rem; line-height: 1.4;
}

.player-section { margin-bottom: 1.5rem; }
.player-section-label {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .65rem;
}
.player-list { display: flex; flex-direction: column; gap: 6px; }
.player-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: .65rem 1rem; animation: popIn .25s ease both;
}
.player-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--all-col); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: var(--ink);
}
.player-name { font-size: 14px; font-weight: 700; flex: 1; }
.player-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.player-min { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 1rem; font-style: italic; }

/* ═══════════════════════════════
   SALLE JOUEUR
═══════════════════════════════ */
.join-waiting { text-align: center; padding: 2.5rem 0; }
.join-waiting-title { font-family: var(--display); font-size: 26px; font-weight: 700; margin-bottom: .4rem; }
.join-waiting-sub   { font-size: 14px; color: #555; line-height: 1.5; }

/* ═══════════════════════════════
   PHASE RÉPONSE
═══════════════════════════════ */
.question-display {
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: 4px 4px 0 var(--all-col);
}
.q-cat-pill { margin-bottom: .65rem; }
.q-question {
  font-family: var(--display); font-size: clamp(18px, 3vw, 22px);
  font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: -.02em;
  text-transform: lowercase;
}
.prev-answer-card {
  background: var(--all-bg); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.prev-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.prev-text  { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: .2rem; overflow-wrap: break-word; word-break: break-word; }
.prev-date  { font-size: 11px; color: var(--muted); margin-bottom: .65rem; }
.prev-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sent-state  { text-align: center; padding: 2rem; }
.sent-icon   { font-size: 36px; margin-bottom: .75rem; }
.sent-title  { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: .35rem; }

/* Hôte vue réponses */
.hote-progress {
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 2rem; text-align: center; margin-bottom: 1.25rem;
  box-shadow: 4px 4px 0 var(--border);
}
.hote-count { font-family: var(--display); font-size: 56px; font-weight: 900; line-height: 1; }
.hote-count-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.hote-bar-wrap { height: 6px; background: var(--border); border-radius: 50px; margin: 1rem 0 0; overflow: hidden; }
.hote-bar-fill { height: 100%; background: var(--ink); border-radius: 50px; transition: width .4s ease; }
.hote-wait-msg { font-size: 13px; color: var(--muted); margin-top: .75rem; }

/* ═══════════════════════════════
   PHASE DEVINETTE
═══════════════════════════════ */
.devine-q-context { font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.4; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--border); text-transform: lowercase; }
.answer-cards   { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.answer-card {
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: 3px 3px 0 var(--border); transition: box-shadow .15s;
}
.answer-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: .65rem; }
.answer-letter {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--parch); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0; color: var(--ink);
}
.answer-text-block { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: .85rem; overflow-wrap: break-word; word-break: break-word; }
/* Badge de comptage sur les cartes groupées (réponses identiques fusionnées) */
.answer-count-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: var(--all-bg); color: var(--ink);
}

/* Attribution multi-noms : chips réassignables + menu de sélection */
.assign-wrap { position: relative; }
.assign-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assign-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .5rem 1rem; border-radius: 50px; border: 2px solid var(--ink);
  background: var(--parch); font-size: 13px; font-weight: 700;
  font-family: var(--sans); cursor: pointer; transition: all .15s; color: var(--ink);
}
.assign-chip:hover { background: var(--blanc); transform: translateY(-1px); }
.assign-chip.assigned { background: var(--ink); color: var(--blanc); box-shadow: 3px 3px 0 var(--all-col); }
.assign-chip-remove { font-size: 11px; opacity: .65; font-weight: 600; }
.assign-chip-add { background: transparent; border-style: dashed; }
.assign-picker {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); animation: popIn .15s ease both;
}
.assign-picker-opt {
  text-align: left; padding: .55rem .8rem; border-radius: 10px; border: none;
  background: var(--parch); font-size: 13px; font-weight: 700;
  font-family: var(--sans); cursor: pointer; transition: background .12s; color: var(--ink);
}
.assign-picker-opt:hover:not(:disabled) { background: var(--all-bg); }
.assign-picker-opt:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.assign-picker-empty { display: block; padding: .5rem .8rem; }
.answer-reveal-row { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--border); font-size: 13px; }
.reveal-by { font-weight: 700; }
/* Verdict du joueur courant sur un groupe de réponses : toute la carte se colore
   pour que "j'ai bon / j'ai faux" saute aux yeux d'un coup d'œil. */
.answer-card.card-hit     { background: var(--wtf-bg);   border-color: var(--wtf); }
.answer-card.card-partial { background: #FFF8E6;          border-color: #E6A700; }
.answer-card.card-miss    { background: var(--brain-bg); border-color: var(--brain); }
.answer-card.card-mine    { background: var(--parch);     border-style: dashed; }
.card-verdict {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.verdict-hit     { background: var(--wtf);   color: var(--blanc); }
.verdict-partial { background: #E6A700;      color: var(--blanc); }
.verdict-miss    { background: var(--brain); color: var(--blanc); }
.verdict-mine    { background: var(--ink);   color: var(--blanc); }

/* Devinettes des AUTRES joueurs : badges compacts et secondaires sous la carte */
.other-guesses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--border); }
.other-guess-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--parch); color: var(--ink); opacity: .8;
}
.other-guess-badge.ok { color: var(--wtf); }
.other-guess-badge.no { color: var(--brain); }

/* ═══════════════════════════════
   RÉVÉLATION PAR PERSONNE (groupe)
═══════════════════════════════ */
.reveal-persons { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.5rem; }

.rp-summary {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--blanc);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem;
}
.rp-summary .rp-avatar { background: var(--all-col); color: var(--ink); }
.rp-summary-text { flex: 1; }
.rp-summary-title { font-weight: 800; font-size: 15px; }
.rp-summary-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.rp-summary-score { font-family: var(--display); font-size: 20px; font-weight: 900; color: var(--all-col); flex-shrink: 0; }

.rp-card {
  background: var(--blanc); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: 3px 3px 0 var(--border);
}
.rp-card.rp-me { border-color: var(--ink); box-shadow: 3px 3px 0 rgba(17,17,17,.15); }

.rp-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: .75rem;
}
.rp-avatars { display: flex; flex-shrink: 0; }
.rp-avatars .rp-avatar:not(:first-child) { margin-left: -10px; border: 2px solid var(--blanc); }
.rp-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
}
.rp-avatar.small { width: 22px; height: 22px; font-size: 11px; }
.rp-name { font-weight: 800; font-size: 15px; flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.rp-toi-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--blanc);
}

.rp-body { margin-bottom: .65rem; }
.rp-label {
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .25rem;
}
.rp-answer { font-size: 14px; font-weight: 600; font-style: italic; color: var(--ink); line-height: 1.4; overflow-wrap: break-word; word-break: break-word; }

.rp-guesses { display: flex; flex-direction: column; margin-top: .5rem; padding-top: .35rem; border-top: 1px solid var(--border); }

.rp-row {
  display: flex; align-items: center; gap: 8px;
  padding: .4rem 0;
}
.rp-row + .rp-row { border-top: 1px solid var(--border); }

.rp-guess-name { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.rp-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.rp-badge.hit  { background: rgba(30,180,100,.12); color: #1a7a40; }
.rp-badge.miss { background: rgba(200,60,60,.1);   color: #b83030; }

/* ═══════════════════════════════
   SCORES
═══════════════════════════════ */
.scores-context { font-size: 14px; color: var(--muted); line-height: 1.4; margin-bottom: 1.25rem; font-weight: 600; text-transform: lowercase; }
.scores-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.5rem; }
.score-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.score-row.top1 { box-shadow: 4px 4px 0 var(--all-col); }
.score-rank { font-family: var(--display); font-size: 13px; font-weight: 900; color: var(--muted); min-width: 18px; }
.score-name { font-size: 14px; font-weight: 700; flex: 1; }
.score-pts  { font-family: var(--display); font-size: 22px; font-weight: 900; }
.score-gained { font-size: 11px; font-weight: 800; color: var(--wtf); }
.scores-insight {
  background: var(--deep-bg); border: 2px solid var(--deep); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
  font-size: 14px; color: var(--deep); line-height: 1.55; font-weight: 600;
}

/* ═══════════════════════════════
   FIN
═══════════════════════════════ */
.fin-inner  { padding: 2rem 0; }
.fin-label  { margin-bottom: .5rem; }
.fin-title  { font-family: var(--display); font-size: clamp(30px, 6vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 1.75rem; }
.fin-tie-note { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--deep); background: var(--deep-bg); border-radius: 999px; padding: 6px 14px; margin: -1.25rem 0 1.25rem; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.podium-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--parch);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: var(--ink);
}
.podium-pname { font-size: 12px; font-weight: 800; text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-ppts  { font-family: var(--display); font-size: 12px; font-weight: 900; }
.podium-bar { border: 2px solid var(--ink); border-radius: var(--radius-sm) var(--radius-sm) 0 0; width: 58px; }
.podium-slot:nth-child(1) .podium-bar { height: 70px;  background: var(--deep); }
.podium-slot:nth-child(2) .podium-bar { height: 105px; background: var(--all-col); }
.podium-slot:nth-child(3) .podium-bar { height: 52px;  background: var(--classic); }
.podium-medal { font-size: 18px; }

.fin-allscores { margin-bottom: 1.5rem; }
.fin-auth-block {
  background: var(--ink); border-radius: var(--radius); padding: 1.5rem;
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--all-col);
  color: var(--blanc); margin-bottom: 1.5rem;
}
.fin-auth-title { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: .3rem; }
.fin-auth-sub   { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 1rem; line-height: 1.5; }
.fin-auth-form  { display: flex; gap: 8px; flex-wrap: wrap; }
.fin-auth-form .input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: var(--blanc); }
.fin-auth-form .input::placeholder { color: rgba(255,255,255,.3); }

/* ═══════════════════════════════
   MODAL AUTH (section connexion)
═══════════════════════════════ */
.modal-sep {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0 1rem;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.modal-sep::before, .modal-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.modal-auth-text {
  font-size: 13px; color: var(--muted); margin-bottom: .75rem; line-height: 1.4;
}
.modal-auth-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.modal-auth-row .input { flex: 1; font-size: 14px; padding: 10px 12px; }
.modal-auth-row .btn   { white-space: nowrap; font-size: 13px; padding: 10px 14px; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 400px) {
  .code-value { font-size: 40px; }
  .podium-bar { width: 46px; }
}

@media (min-width: 768px) {
  .hote-progress { padding: 2.5rem; }
}

/* ═══════════════════════════════
   TIMER — compte à rebours réponse
═══════════════════════════════ */
.answer-timer {
  text-align: center; padding: .5rem;
  font-family: var(--display); font-size: 32px; font-weight: 900;
  color: var(--ink); letter-spacing: -.03em; margin-bottom: .75rem;
}
.answer-timer.timer-urgent { color: var(--brain); animation: timerPulse .6s ease-in-out infinite alternate; }
@keyframes timerPulse { to { opacity: .5; } }

/* ═══════════════════════════════
   SALLE JOUEUR — mode card
═══════════════════════════════ */
.join-mode-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: .5rem 0 1.5rem;
  box-shadow: 3px 3px 0 var(--border);
}
.join-mode-icon { font-size: 28px; flex-shrink: 0; }
.join-mode-name { font-family: var(--display); font-size: 15px; font-weight: 700; }
.join-mode-desc { font-size: 12px; color: var(--muted); margin-top: .2rem; }

/* ═══════════════════════════════
   RÉPONSE ENVOYÉE — aperçu hôte
═══════════════════════════════ */
.sent-my-answer {
  background: var(--all-bg); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin-bottom: 1rem; text-align: left;
}
.sent-my-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.sent-my-text  { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* Carte propre — grisée */
.answer-card-own {
  opacity: .5;
  background: var(--parch);
  pointer-events: none;
}
.own-badge { color: var(--muted); }

/* Voter list */
.voter-status { margin-bottom: 1.25rem; }
.voter-status-label { margin-bottom: .6rem; display: block; }
.voter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.voter-chip {
  padding: .35rem .8rem; border-radius: 50px; border: 2px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--muted); background: var(--blanc);
  transition: all .2s;
}
.voter-chip.voted {
  background: var(--ink); color: var(--blanc); border-color: var(--ink);
}

/* ══════════════════════════════════
   SÉLECTEUR INTENSITÉ & CATÉGORIES
══════════════════════════════════ */
.intensity-btn {
  padding: .45rem 1rem; border-radius: 50px; border: 2px solid var(--ink);
  font-size: 12px; font-weight: 700; font-family: var(--sans); cursor: pointer;
  background: transparent; color: var(--muted); transition: all .15s;
}
.intensity-btn.active { background: var(--ink); color: var(--blanc); }
.intensity-btn:hover:not(.active) { color: var(--ink); background: var(--parch); }

.cat-toggle-btn {
  padding: .35rem .85rem; border-radius: 50px; border: 2px solid currentColor;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; font-family: var(--sans); opacity: .35; transition: all .15s;
}
.cat-toggle-btn.active { opacity: 1; }
.cat-toggle-btn.pill-classic { color: var(--classic); background: var(--classic-bg); }
.cat-toggle-btn.pill-deep    { color: var(--deep);    background: var(--deep-bg); }
.cat-toggle-btn.pill-wtf     { color: var(--wtf);     background: var(--wtf-bg);    border-color: var(--wtf); }
.cat-toggle-btn.pill-brain   { color: var(--brain);   background: var(--brain-bg); }

/* ══════════════════════════════════
   FIN DE PARTIE — SURPRISE + SHARE
══════════════════════════════════ */
.fin-surprise {
  background: var(--ink); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--all-col);
}
.fin-surprise-label { color: var(--all-col); margin-bottom: .6rem; display: block; }
.fin-surprise-q {
  font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--blanc);
  line-height: 1.35; margin-bottom: .5rem;
}
.fin-surprise-stat { font-size: 12px; color: rgba(255,255,255,.45); font-weight: 600; }

.fin-knowledge {
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--blanc); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: 3px 3px 0 var(--border);
}
.fin-knowledge-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.fin-knowledge-pill {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 13px; font-weight: 800; font-family: var(--display);
}
.fin-knowledge-stat { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }

.fin-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ══════════════════════════════════
   QUESTIONS MCQ — BOUTONS D'OPTIONS
══════════════════════════════════ */
.mcq-opts {
  display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 1.25rem;
}
.mcq-opt {
  display: block; width: 100%;
  text-align: left; padding: .85rem 1.1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--blanc); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .12s;
  line-height: 1.3;
  overflow-wrap: break-word; word-break: break-word; white-space: normal;
}
.mcq-opt:hover { border-color: var(--ink); background: var(--parch); }
.mcq-opt.selected {
  border-color: var(--ink); background: var(--ink); color: var(--blanc);
  box-shadow: 3px 3px 0 var(--all-col);
}

/* ══════════════════════════════════
   DUO — FORMULAIRE DOUBLE (réponse + prédiction)
══════════════════════════════════ */
.duo-form { display: flex; flex-direction: column; gap: 0; }
.duo-form-section { padding: .75rem 0 1rem; }
.duo-form-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .6rem;
}
.duo-label-me  { color: var(--ink); }
.duo-label-pred { color: var(--muted); }
.duo-form-sep {
  height: 1px; background: var(--border); margin: .25rem 0 .75rem;
}
.textarea-pred {
  border-style: dashed; background: var(--parch);
  color: var(--ink);
}
.mcq-opts-pred .mcq-opt-pred {
  border-style: dashed; background: var(--parch);
}
.mcq-opts-pred .mcq-opt-pred.selected {
  border-style: solid; background: rgba(17,17,17,.75); color: var(--blanc);
  box-shadow: 2px 2px 0 var(--all-col);
}

/* ══════════════════════════════════
   DUO — RÉVÉLATION + VALIDATION
══════════════════════════════════ */
.duo-reveal-inner { padding-bottom: 2rem; }
.duo-q-context {
  text-align: center; font-size: 13px; color: var(--muted); font-style: italic;
  margin-bottom: 1.25rem; line-height: 1.5; text-transform: lowercase;
}
.duo-cards { display: flex; flex-direction: column; gap: 1rem; }
.duo-card {
  background: var(--parch); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.duo-card-me { border-color: var(--ink); background: #fffce8; }
.duo-card-name {
  font-family: var(--display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .6rem;
}
.duo-card-me .duo-card-name { color: var(--ink); }
.duo-reveal-row {
  display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .45rem;
}
.duo-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}
.tag-real { background: rgba(17,17,17,.1); color: var(--ink); }
.tag-pred { background: rgba(255,214,0,.25); color: #7a5e00; border: 1px dashed rgba(255,190,0,.5); }
.duo-row-text {
  font-size: 14px; font-weight: 600; line-height: 1.4; font-style: italic;
}
.duo-match-row {
  margin-top: .65rem; padding-top: .6rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.match-ok {
  font-size: 12px; font-weight: 700; color: #1a7a40;
  background: rgba(30,200,100,.12); border: 1px solid rgba(30,200,100,.3);
  border-radius: 6px; padding: 3px 8px;
}
.match-no {
  font-size: 12px; font-weight: 700; color: #b83030;
  background: rgba(200,60,60,.1); border: 1px solid rgba(200,60,60,.25);
  border-radius: 6px; padding: 3px 8px;
}
.match-pts { font-size: 11px; color: var(--muted); font-weight: 600; }
.duo-waiting-val { font-size: 12px; color: var(--muted); font-style: italic; }
.duo-validate-btns { display: flex; gap: .5rem; }
.duo-validate-btns .btn { flex: 1; }

/* Recap sent */
.duo-sent-recap { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.duo-sent-row { display: flex; align-items: flex-start; gap: .5rem; }
.duo-sent-text { font-size: 13px; font-weight: 600; font-style: italic; line-height: 1.4; }
