.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.join-box {
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.join-box .logo.big { font-size: 3rem; margin-bottom: 12px; }
.join-box input { text-align: center; font-size: 1.3rem; }
#input-pin { letter-spacing: 0.3em; font-weight: 700; }
.join-box button { font-size: 1.2rem; padding: 16px; }

.center-box { margin: auto; text-align: center; width: 100%; }
.center-box.wide { max-width: 100%; }
.big-emoji { font-size: 4rem; margin-bottom: 16px; }

.bounce { animation: bounce 1.6s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.pulse { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Question */
.q-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.timer-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.15); overflow: hidden; }
#timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.2s linear; }
.q-text { font-size: 1.25rem; font-weight: 600; margin-bottom: 18px; text-align: center; }

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; align-content: start; }
.answers.single-col { grid-template-columns: 1fr; }
.answer-btn {
  min-height: 90px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  word-break: break-word;
  box-shadow: var(--shadow);
}
.answer-btn .symbol { font-size: 1.5rem; }

.free-answer { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.free-answer-row { display: flex; gap: 10px; }
.free-answer input { font-size: 1.2rem; }
.free-hint { font-size: 0.85rem; text-align: center; }
#my-words { justify-content: flex-start; }

.scale-answer { margin-top: 8px; }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.scale-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.scale-buttons button {
  width: 56px; height: 56px;
  font-size: 1.3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.scale-buttons button:hover { background: var(--accent); }

/* Résultat */
.points { font-size: 1.6rem; font-weight: 800; margin: 10px 0; }
.rank-chip {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.result-ok h2, .result-ok .points { color: #7dfa9c; }
.result-ko h2 { color: #ff8fa3; }

.podium-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.podium-list li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* Stats (sondage / échelle / nuage) */
.stat-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; }
.stat-bar-label { flex: 0 0 38%; font-size: 0.9rem; word-break: break-word; }
.stat-bar-track { flex: 1; background: rgba(255,255,255,0.1); border-radius: 8px; height: 26px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 0.85rem; font-weight: 700; min-width: 26px; transition: width 0.5s ease; }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.word-chip { background: var(--card); border-radius: 999px; padding: 6px 14px; }

/* Q&R */
.qa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px; height: 58px;
  border-radius: 50%;
  font-size: 1.5rem;
  background: var(--accent2);
  box-shadow: var(--shadow);
  z-index: 50;
  padding: 0;
}
.qa-drawer {
  position: fixed;
  inset: auto 0 0 0;
  max-height: 75dvh;
  background: var(--card-solid);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 18px;
  animation: slide-up 0.25s ease;
}
@keyframes slide-up { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.qa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qa-form { display: flex; gap: 8px; margin-bottom: 14px; }
.qa-form button { flex: 0 0 auto; }
.qa-list { list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.qa-item {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qa-item.answered { opacity: 0.45; }
.qa-item .txt { flex: 1; font-size: 0.95rem; }
.qa-item .author { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.qa-vote {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.qa-vote.voted { background: var(--accent); }
