/* ============================================================
   Charte PixelmonWorld (reprise de pixelmonworld.fr)
   Tout se règle dans ce bloc.
   ============================================================ */
:root {
  /* surfaces sombres gris-vert du site */
  --bg: #111411;
  --surf-l: #222421;
  --surf: #333532;
  --surf-h: #454743;
  --surf-hst: #585a56;
  --on-surf: #e2e3dd;
  --on-surf-2: #a6ada3;
  --outline: #424940;

  /* accent vert + secondaire sauge */
  --acc: #23c254;
  --acc-deep: #138a3a;
  --on-acc: #003a17;
  --sec: #b9ccb5;
  --on-sec: #243424;

  /* cases de réponse (types Pokémon) */
  --fire: #e5484d;
  --water: #2e8ae6;
  --electric: #f0a800;
  --grass: #23c254;

  --ok: #23c254;
  --ko: #e5484d;
  --warn: #ffb648;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --bronze: #cd7f32;

  /* visuel d'arrière-plan (accueil, salle d'attente, podium) */
  --hero: url("https://pixelmonworld.fr/cdn-cgi/image/format=auto,width=1600/media/slide/445973a9c4234bb9a87f1cc9102d21c3.webp");

  --font: 'Inter', system-ui, sans-serif;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 28px;
  --press: rgba(0, 0, 0, 0.45); /* ombre "bouton arcade" */
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-feature-settings: 'tnum' 1;
  color: var(--on-surf);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* arrière-plan : visuel teinté vert sur les écrans "d'accueil", halo discret en jeu */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(35, 194, 84, 0.22), transparent 70%), var(--bg);
  transition: opacity 0.4s;
}
body[data-screen="pin"]::before,
body[data-screen="profile"]::before,
body[data-screen="pick"]::before,
body[data-screen="login"]::before,
body[data-screen="lobby"]::before,
body[data-screen="podium"]::before,
body[data-screen="closed"]::before,
body:not([data-screen])::before {
  background:
    linear-gradient(180deg, rgba(35, 194, 84, 0.45) 0%, rgba(17, 20, 17, 0.75) 45%, var(--bg) 85%),
    var(--hero) center top / cover no-repeat,
    var(--bg);
}

[hidden] { display: none !important; }
img.sprite, .sprite img { image-rendering: pixelated; }
.muted { color: var(--on-surf-2); }

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  text-align: center;
}

/* ---------- logo */
.logo { display: flex; justify-content: center; }
.logo-img { max-height: 160px; max-width: 80vw; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.logo-text { font-weight: 900; font-size: clamp(22px, 4vw, 40px); color: var(--acc); letter-spacing: -0.02em; }
.logo-text b { color: var(--on-surf); }

/* ---------- briques */
.card {
  background: rgba(51, 53, 50, 0.92);
  backdrop-filter: blur(8px);
  color: var(--on-surf);
  border-radius: var(--r-l);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 22px;
  width: min(100%, 440px);
}
.btn {
  display: inline-block;
  font: 800 16px/1.2 var(--font);
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border: 0;
  border-radius: 9999px;
  background: var(--acc);
  color: var(--on-acc);
  box-shadow: 0 5px 0 var(--acc-deep);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s, box-shadow 0.06s, filter 0.15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--acc-deep); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.light { background: var(--sec); color: var(--on-sec); box-shadow: 0 5px 0 #7f927b; }
.btn.light:active:not(:disabled) { box-shadow: 0 1px 0 #7f927b; }
.btn.ghost { background: rgba(69, 71, 67, 0.8); color: var(--on-surf); box-shadow: none; padding: 10px 20px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(69, 71, 67, 0.8);
  color: var(--on-surf);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surf-hst); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.input {
  width: 100%;
  font: 800 22px var(--font);
  padding: 14px;
  border: 2px solid var(--outline);
  border-radius: var(--r-m);
  text-align: center;
  color: var(--on-surf);
  background: var(--surf-l);
  outline: none;
  transition: border-color 0.15s;
}
.input::placeholder { color: var(--surf-hst); }
.input:focus { border-color: var(--acc); }
.input.pin { font-size: 30px; font-weight: 900; letter-spacing: 0.3em; }
.error { color: #ffafa5; font-weight: 700; min-height: 1.4em; margin: 6px 0; }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-surf-2); margin: 0 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 9999px;
  background: rgba(69, 71, 67, 0.8); color: var(--on-surf);
}
.chip.gold { background: var(--sec); color: var(--on-sec); }

/* ---------- couleurs de réponse */
.c-fire { --c: var(--fire); }
.c-water { --c: var(--water); }
.c-electric { --c: var(--electric); }
.c-grass { --c: var(--grass); }

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--c, var(--surf));
  color: #fff;
  box-shadow: 0 6px 0 var(--press);
  font: 800 clamp(16px, 2.2vw, 30px) / 1.15 var(--font);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, opacity 0.25s, filter 0.25s;
}
.tile .icon { width: 1.5em; height: 1.5em; opacity: 0.95; }
.tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--press); }
.tile.dim { opacity: 0.25; filter: grayscale(0.7); }
.tile .mark {
  position: absolute; right: 14px; top: 50%; translate: 0 -50%;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ok); display: grid; place-items: center;
  animation: pop 0.35s;
}
.tile .mark .icon { width: 24px; height: 24px; }

/* ============================================================
   TÉLÉPHONE
   ============================================================ */
.play .screen { max-width: 560px; margin: 0 auto; }
.play [data-screen="pin"] .logo-img, .play [data-screen="closed"] .logo-img { max-height: 200px; }
.play [data-screen="profile"] .logo-img { max-height: 90px; }
.player-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(34, 36, 33, 0.85);
  backdrop-filter: blur(8px);
  font-weight: 700;
}
.player-bar img { width: 40px; height: 40px; }
.player-bar .score { margin-left: auto; font-weight: 900; font-size: 18px; color: var(--acc); }
.play.in-game .screen { padding-top: 72px; }

.picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 44dvh;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.picker button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 2px 8px;
  border: 2px solid transparent;
  border-radius: var(--r-m);
  background: var(--surf-l);
  color: var(--on-surf-2);
  font: 600 11px var(--font);
  cursor: pointer;
}
.picker img { width: 64px; height: 64px; max-width: 100%; object-fit: contain; }
.picker button[aria-pressed="true"] { background: rgba(35, 194, 84, 0.18); border-color: var(--acc); color: var(--on-surf); }
.picker button[aria-pressed="true"] img { animation: bob 0.6s infinite; }

.big-sprite { width: min(48vw, 220px); height: auto; animation: bob 1.4s ease-in-out infinite; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)); }
.headline { font-size: clamp(22px, 6vw, 30px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.sub { font-size: 17px; font-weight: 500; margin: 0; color: var(--on-surf-2); }

.q-text { font-size: clamp(20px, 5.5vw, 28px); font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
.q-image { max-width: 100%; max-height: 22dvh; }
.q-image.silhouette { filter: brightness(0) drop-shadow(0 0 2px rgba(255, 255, 255, 0.6)); }

.timer-bar { width: 100%; height: 8px; background: var(--surf); border-radius: 99px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: var(--acc); border-radius: inherit; transform-origin: left; }

.answer-area { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.play .answers .tile { min-height: 22dvh; justify-content: center; flex-direction: column; text-align: center; font-size: clamp(16px, 4.6vw, 22px); }
.play .answers.two .tile { min-height: 34dvh; }
.play .tile.selected { transform: translateY(4px); box-shadow: 0 2px 0 var(--press), inset 0 0 0 4px #fff; }
.play .tile.selected::after {
  content: '✓'; position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--bg);
  font: 900 16px var(--font); text-shadow: none;
}

.slider-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.slider-value { font-size: 52px; font-weight: 900; color: var(--acc); min-width: 3ch; }
.nudge {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--surf-h); color: var(--on-surf);
  box-shadow: 0 4px 0 var(--press);
  font: 800 28px/1 var(--font); cursor: pointer;
}
.nudge:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }
input[type="range"] { width: 100%; accent-color: var(--acc); height: 40px; }
.range-ends { display: flex; justify-content: space-between; font-weight: 600; color: var(--on-surf-2); }

.order-slots, .order-pool { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.order-slots .slot, .order-pool button {
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 10px 16px;
  border: 0; border-radius: var(--r-m);
  font: 700 18px var(--font); text-align: left;
}
.order-slots .slot { background: transparent; outline: 2px dashed var(--outline); outline-offset: -2px; color: var(--on-surf-2); }
.order-slots .slot.filled { background: rgba(35, 194, 84, 0.18); outline: 2px solid var(--acc); color: var(--on-surf); cursor: pointer; }
.order-slots .slot b { font-weight: 900; color: var(--acc); width: 22px; }
.order-pool button { background: var(--surf-h); color: var(--on-surf); box-shadow: 0 4px 0 var(--press); cursor: pointer; }

.result { width: 100%; min-height: 100dvh; margin: 0; color: #fff; }
.result.ok { background: var(--ok); }
.result.ko { background: var(--ko); }
.result.partial { background: var(--electric); }
.result .badge {
  width: 110px; height: 110px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 0 var(--press);
  animation: pop 0.45s;
}
.result .badge .icon { width: 64px; height: 64px; }
.result.ok .badge { color: var(--ok); }
.result.ko .badge { color: var(--ko); }
.result.partial .badge { color: var(--electric); }
.result .sub { color: rgba(255, 255, 255, 0.9); }
.points-pill {
  font-size: 28px; font-weight: 900;
  background: rgba(0, 0, 0, 0.22); padding: 12px 26px; border-radius: 9999px;
  animation: rise 0.4s 0.2s both;
}
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; }
.streak .icon { width: 24px; height: 24px; }

.rank-big { font-size: 88px; font-weight: 900; letter-spacing: -0.04em; color: var(--acc); line-height: 1; }

/* ============================================================
   ÉCRAN HÔTE
   ============================================================ */
.host { --gutter: clamp(16px, 3vw, 40px); }
.host .screen { justify-content: flex-start; padding: var(--gutter); }
.topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo-img { max-height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.topbar .right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }
.host[data-screen="pick"] .topbar .logo, .host[data-screen="lobby"] .topbar .logo, .host[data-screen="login"] .topbar .logo { visibility: hidden; }
.hero-logo .logo-img { max-height: 26vh; }

.quiz-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: min(100%, 1100px); }
.quiz-list > * { width: 320px; }
.quiz-card { text-align: left; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: auto; border: 0; font: inherit; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
.quiz-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--acc), 0 25px 50px -12px rgba(0, 0, 0, 0.6); }
.quiz-card h3 { font-size: 20px; font-weight: 800; color: var(--acc); margin: 0; }
.quiz-card p { margin: 0; color: var(--on-surf-2); }
.quiz-card.broken { cursor: default; opacity: 0.6; }

.join-box {
  display: flex; align-items: stretch; gap: 24px;
  background: rgba(51, 53, 50, 0.92); backdrop-filter: blur(8px);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 18px 28px 18px 18px;
}
.join-box .qr { width: 150px; height: 150px; background: #fff; border-radius: var(--r-m); padding: 6px; }
.join-box .qr svg, .join-box .qr img { width: 100%; height: 100%; display: block; }
.join-box .info { display: flex; flex-direction: column; justify-content: center; text-align: left; gap: 2px; }
.join-box .label { margin: 0; }
.join-box .url { font-weight: 800; font-size: clamp(18px, 1.8vw, 24px); }
.join-box .pin { font-size: clamp(48px, 6vw, 80px); font-weight: 900; letter-spacing: 0.04em; color: var(--acc); line-height: 1; }

.lobby-bar { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.player-count { font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.player-count b { font-size: 40px; font-weight: 900; color: var(--acc); }

.player-grid { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; align-content: flex-start; }
.player-tag {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 18px 6px 6px;
  background: var(--surf); color: var(--on-surf);
  border: 0; border-radius: 9999px;
  box-shadow: 0 4px 0 var(--press);
  font: 800 20px var(--font);
  animation: pop 0.35s;
  cursor: pointer;
}
.player-tag img { width: 48px; height: 48px; margin: -8px 0; }
.player-tag.offline { opacity: 0.4; }
.player-tag:hover { background: #5a2a2a; text-decoration: line-through; }
.empty-lobby { color: var(--on-surf-2); font-weight: 600; font-size: 20px; margin-top: 40px; }

.q-banner {
  background: var(--on-surf); color: var(--bg);
  border-radius: var(--r-l);
  box-shadow: 0 6px 0 var(--press);
  padding: 18px 28px;
  font-size: clamp(22px, 3vw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  width: min(100%, 1300px);
}
.intro .q-banner { font-size: clamp(28px, 4.2vw, 64px); animation: pop 0.5s; }
.intro-bar { width: min(100%, 600px); height: 10px; border-radius: 99px; background: var(--surf); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--acc); animation: grow linear forwards; }
@keyframes grow { from { width: 0; } to { width: 100%; } }

.stage { flex: 1; width: 100%; display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; gap: 20px; min-height: 0; }
.stage .media { display: flex; justify-content: center; align-items: center; min-height: 0; height: 100%; }
.stage .media img { max-height: 36vh; max-width: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); transition: filter 0.6s; }
.stage .media img.silhouette { filter: brightness(0) drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)); }
#rMedia.unveil { animation: unveil 0.8s; }
@keyframes unveil { 0% { filter: brightness(0) drop-shadow(0 0 3px #fff); transform: scale(1); } 40% { filter: brightness(3); transform: scale(1.12); } 100% { transform: scale(1); } }

.timer {
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--acc) calc(var(--p, 1) * 360deg), var(--surf) 0);
  position: relative;
}
.timer::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surf-l); }
.timer span { position: relative; z-index: 1; font-size: 46px; font-weight: 900; }
.timer.hurry { --acc: var(--fire); animation: shake 0.5s infinite; }
.counter { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.counter b { font-size: 56px; font-weight: 900; color: var(--acc); line-height: 1; }
.counter span { font-weight: 600; color: var(--on-surf-2); }

.host .answers { gap: 16px; width: 100%; }
.host .answers .tile { min-height: 13vh; }
.hint-box {
  width: min(100%, 1100px);
  background: var(--surf); border-radius: var(--r-l);
  padding: 22px; font-size: clamp(18px, 2vw, 28px); font-weight: 700;
}
.order-list { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; width: 100%; }
.order-list .tile { flex: 1 1 0; min-width: 160px; justify-content: center; min-height: 12vh; }
.order-list .tile b { font-weight: 900; opacity: 0.9; }

.bottom-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* stats de révélation */
[data-screen="reveal"] { gap: 14px; }
[data-screen="reveal"] .q-banner { padding: 12px 24px; font-size: clamp(20px, 2.4vw, 36px); }
[data-screen="reveal"] .answers .tile { min-height: 8vh; padding: 10px 18px; }
#rMedia { max-height: 18vh !important; }
#rStats > * { flex: none; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 24px; height: 22vh; width: 100%; }
.bars .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; width: min(140px, 20vw); height: 100%; }
.bars .bar .fill {
  width: 100%; min-height: 8px;
  background: var(--c); border-radius: var(--r-s) var(--r-s) 0 0;
  transform-origin: bottom; animation: growUp 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes growUp { from { transform: scaleY(0); } }
.bars .bar .n { font-size: 30px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.bars .bar .n .icon { width: 28px; height: 28px; color: var(--acc); }
.bars .bar.ko { opacity: 0.3; }

.type-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: min(100%, 1100px); }
.type-cloud span {
  padding: 10px 20px; border-radius: 9999px; font-weight: 800; font-size: 22px;
  background: var(--surf); animation: pop 0.4s both;
}
.type-cloud span.ok { background: var(--ok); color: var(--on-acc); }
.type-cloud span small { font-size: 15px; margin-left: 8px; opacity: 0.75; }
.solution {
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 900; line-height: 1.3;
  background: var(--ok); color: var(--on-acc); padding: 14px 32px; border-radius: 9999px;
  box-shadow: 0 6px 0 var(--acc-deep);
  animation: pop 0.5s;
}

.scale { position: relative; width: min(100%, 1100px); height: 120px; margin-top: 40px; }
.scale .line { position: absolute; left: 0; right: 0; top: 60px; height: 8px; background: var(--surf-h); border-radius: 99px; }
.scale .zone { position: absolute; top: 52px; height: 24px; background: var(--ok); border-radius: 6px; opacity: 0.8; }
.scale .dot { position: absolute; top: 56px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--sec); border: 2px solid var(--bg); animation: pop 0.4s both; }
.scale .target { position: absolute; top: 0; translate: -50% 0; font-size: 22px; font-weight: 900; white-space: nowrap; }
.scale .target::after { content: ''; display: block; width: 4px; height: 32px; margin: 6px auto 0; background: var(--on-surf); }
.scale .end { position: absolute; top: 86px; font-weight: 600; color: var(--on-surf-2); }

/* classement */
.board { display: flex; flex-direction: column; gap: 10px; width: min(100%, 900px); }
.board .row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surf); color: var(--on-surf);
  border-radius: var(--r-l);
  padding: 8px 22px 8px 12px;
  font-size: clamp(18px, 2.2vw, 30px); font-weight: 800;
  animation: rise 0.45s both;
}
.board .row:nth-child(1) { box-shadow: inset 4px 0 0 var(--gold); }
.board .row:nth-child(2) { box-shadow: inset 4px 0 0 var(--silver); }
.board .row:nth-child(3) { box-shadow: inset 4px 0 0 var(--bronze); }
.board .row .pos { font-weight: 900; width: 40px; text-align: center; color: var(--on-surf-2); }
.board .row:nth-child(1) .pos { color: var(--gold); }
.board .row:nth-child(2) .pos { color: var(--silver); }
.board .row:nth-child(3) .pos { color: var(--bronze); }
.board .row img { width: 64px; height: 64px; margin: -8px 0; }
.board .row .score { margin-left: auto; font-weight: 900; }
.board .row .delta { font-size: 0.6em; font-weight: 800; color: var(--acc); width: 110px; text-align: right; }
.board .row .streak-mini { display: inline-flex; align-items: center; font-size: 0.65em; color: var(--warn); }

/* podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; flex: 1; width: 100%; }
.podium .spot { display: flex; flex-direction: column; align-items: center; width: min(260px, 28vw); }
.podium .spot img { width: min(160px, 16vw); animation: bob 1.4s ease-in-out infinite; }
.podium .spot .name { font-size: clamp(18px, 2.4vw, 32px); font-weight: 900; margin: 6px 0 2px; }
.podium .spot .pts { font-size: 16px; font-weight: 700; color: var(--on-surf-2); margin-bottom: 10px; }
.podium .block {
  width: 100%; display: grid; place-items: start center; padding-top: 14px;
  font-size: 56px; font-weight: 900; color: rgba(0, 0, 0, 0.55);
  border-radius: var(--r-l) var(--r-l) 0 0;
  transform-origin: bottom; animation: growUp 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.podium .p1 .block { height: 28vh; background: linear-gradient(var(--gold), #a8862a); animation-delay: 1.6s; }
.podium .p2 .block { height: 20vh; background: linear-gradient(var(--silver), #8d8d8d); animation-delay: 0.9s; }
.podium .p3 .block { height: 14vh; background: linear-gradient(var(--bronze), #9a5f25); animation-delay: 0.2s; }
.podium .p1 .who { animation: rise 0.5s 2.3s both; }
.podium .p2 .who { animation: rise 0.5s 1.6s both; }
.podium .p3 .who { animation: rise 0.5s 0.9s both; }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.confetti { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 2px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr 1fr; }
  .stage .media { grid-column: 1 / -1; order: -1; }
  .join-box { flex-direction: column; align-items: center; }
  .join-box .info { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
[data-screen="lobby"] .hero-logo .logo-img { max-height: 17vh; }

/* blindtest : égaliseur affiché pendant l'extrait */
.eq { display: flex; align-items: flex-end; gap: 10px; height: 30vh; }
.eq i { width: 26px; border-radius: 6px 6px 2px 2px; background: var(--acc); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(odd) { background: var(--sec); }
.eq i:nth-child(1) { animation-delay: -0.2s; } .eq i:nth-child(2) { animation-delay: -0.7s; }
.eq i:nth-child(3) { animation-delay: -0.4s; } .eq i:nth-child(4) { animation-delay: -0.9s; }
.eq i:nth-child(5) { animation-delay: -0.1s; } .eq i:nth-child(6) { animation-delay: -0.6s; }
.eq i:nth-child(7) { animation-delay: -0.3s; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }

/* choix du Pokémon : recherche + générations */
.dex-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.f-search {
  width: 100%; font: 600 16px var(--font); color: var(--on-surf);
  background: var(--surf-l); border: 2px solid var(--outline); border-radius: 99px;
  padding: 10px 16px; outline: none;
}
.f-search:focus { border-color: var(--acc); }
.gen-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gen-tabs::-webkit-scrollbar { display: none; }
.gen-tabs button {
  flex: none; min-width: 38px; height: 34px; padding: 0 10px;
  border: 0; border-radius: 99px; background: var(--surf-l); color: var(--on-surf-2);
  font: 800 14px var(--font); cursor: pointer;
}
.gen-tabs button[aria-selected="true"] { background: var(--acc); color: var(--on-acc); }
.picker-empty { grid-column: 1 / -1; color: var(--on-surf-2); padding: 24px 0; margin: 0; }
.chosen { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin: 8px 0 0; color: var(--on-surf-2); font-weight: 600; }
.chosen img { width: 48px; height: 48px; }
.chosen b { color: var(--on-surf); }
.card .input + .input { margin-top: 10px; }
