@import url("css/a11y.css");
@import url("css/prep-shared.css");

/* === Jeux : dilemme, hot take, speed vote, truth meter, tier night, fil rouge, guess lie === */

:root{
  /* Layout */
  --app-max:430px;
  --page-pad:16px;
  --touch-min:44px;

  /* Couleurs - primaire rose (#ff3cac), secondaire indigo (#6366f1) */
  --color-bg: #0d0f1e;
  --color-bg-deep: #05060f;
  --color-primary: #ff3cac;
  --color-primary-hot: #ff6b6b;
  --color-secondary: #6366f1;
  --color-secondary-soft: #818cf8;
  --color-secondary-deep: #4f46e5;

  --gradient-primary: linear-gradient(135deg, var(--color-primary-hot), var(--color-primary));
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary-soft), var(--color-secondary));
  --gradient-secondary-deep: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-deep));

  --shadow-primary: 0 8px 32px rgba(255, 60, 172, 0.3);
  --shadow-secondary: 0 8px 28px rgba(99, 102, 241, 0.35);

  --focus-ring: var(--color-secondary-soft);

  /* Bannière AdMob native (surchargé par js/core/ads.js) */
  --ad-banner-height: 0px;
  --ad-banner-buffer: 0px;

  /* Espacement titre → contenu (h1 > h2 > h3) */
  --heading-gap-h1: 18px;
  --heading-gap-h2: 14px;
  --heading-gap-h3: 12px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  background:var(--color-bg-deep);
  -webkit-text-size-adjust:100%;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--color-bg);
  color:white;
  overflow-x:hidden;
  width:100%;
  max-width:var(--app-max);
  margin:0 auto;
  min-height:100dvh;
  min-height:100vh;
  -webkit-tap-highlight-color:transparent;
}

#app{
  width:100%;
  min-height:100dvh;
  min-height:100vh;
}

body.has-bottom-nav .page{
  padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px));
}

body.has-top-ad .page{
  padding-top:calc(
    var(--page-pad)
    + var(--ad-banner-height, 72px)
    + var(--ad-banner-buffer, 8px)
    + env(safe-area-inset-top, 0px)
  );
}

body.has-top-ad.has-bottom-nav .page{
  padding-top:calc(
    var(--page-pad)
    + var(--ad-banner-height, 72px)
    + var(--ad-banner-buffer, 8px)
    + env(safe-area-inset-top, 0px)
  );
}

body.has-top-ad .back{
  top:calc(
    12px
    + var(--ad-banner-height, 72px)
    + var(--ad-banner-buffer, 8px)
    + env(safe-area-inset-top, 0px)
  );
}

.privacy-section__title{
  font-size:1rem;
  font-weight:700;
  margin:0 0 var(--heading-gap-h3);
}

.privacy-section__body{
  margin:0 0 1rem;
  color:var(--color-muted, #94a3b8);
  font-size:.92rem;
  line-height:1.55;
}

.privacy-section:last-child .privacy-section__body{
  margin-bottom:0;
}

.privacy-external a{
  color:var(--color-accent, #a78bfa);
  word-break:break-all;
}

.page{
  min-height:100dvh;
  min-height:100vh;
  position:relative;
  overflow:hidden;
  padding:
    calc(var(--page-pad) + env(safe-area-inset-top, 0px))
    max(var(--page-pad), env(safe-area-inset-right, 0px))
    var(--page-pad)
    max(var(--page-pad), env(safe-area-inset-left, 0px));
}

.page--scroll{
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.container{
  width:100%;
  max-width:var(--app-max);
  margin:0 auto;
  position:relative;
  z-index:2;
}

.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(40px);
  opacity:.48;
  pointer-events:none;
}

.orb1{
  width:min(240px,58vw);
  height:min(240px,58vw);
  background:var(--color-primary);
  top:-80px;
  left:-80px;
}

.orb2{
  width:min(200px,50vw);
  height:min(200px,50vw);
  background:var(--color-secondary);
  bottom:-70px;
  right:-70px;
  opacity:.55;
}

.logo{
  text-align:center;
  margin-top:clamp(24px,7vh,48px);
}

.logo h1{
  font-size:clamp(40px,11vw,56px);
  font-weight:900;
  letter-spacing:-2px;
  background:linear-gradient(135deg,#fff,#999);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.logo--sm h1{
  font-size:clamp(32px,9vw,40px);
  letter-spacing:-1.5px;
}

.subtitle{
  color:rgba(255,255,255,.45);
  margin-top:10px;
}

.avatars{
  display:flex;
  justify-content:center;
  margin:40px 0;
}

.avatar{
  width:54px;
  height:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  border:3px solid #0D0F1E;
  margin-left:-10px;
}

.btn{
  width:100%;
  border:none;
  border-radius:18px;
  padding:16px 18px;
  min-height:var(--touch-min);
  cursor:pointer;
  font-weight:800;
  font-size:16px;
  transition:transform .15s, opacity .15s;
  text-decoration:none;
  font-family:inherit;
  -webkit-appearance:none;
  appearance:none;
  display:block;
  text-align:center;
}

@media (hover:hover){
  .btn:hover{
    transform:translateY(-2px);
  }
}

.btn:active{
  transform:scale(.98);
  opacity:.92;
}

/* Actions principales (créer lobby, lancer jeu, continuer…) */
.btn-primary{
  background:var(--gradient-primary);
  color:#fff;
  box-shadow:var(--shadow-primary);
}

/* Actions secondaires neutres (quitter, annuler, liens discrets) */
.btn-secondary{
  margin-top:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.7);
}

/* Actions de navigation / reprise - couleur secondaire indigo */
.btn-accent{
  background:var(--gradient-secondary);
  color:#fff;
  box-shadow:var(--shadow-secondary);
}

.btn-accent .muted{
  color:rgba(255,255,255,.82);
}

.card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:20px;
  margin-top:20px;
  backdrop-filter:blur(12px);
}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:30px;
}

.stat{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  padding:18px;
}

.stat-number{
  font-size:clamp(28px,8vw,34px);
  font-weight:900;
  margin-top:8px;
}

.stat-label{
  font-size:12px;
  color:rgba(255,255,255,.4);
  margin-top:5px;
}

.game-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:20px;
}

.game-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  border-radius:24px;
  cursor:pointer;
  transition:.25s;
}

@media (hover:hover){
  .game-card:hover{
    transform:scale(1.02);
  }
}

.game-card:active{
  transform:scale(.99);
}

.game-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

.hot{
  background:var(--gradient-primary);
}

.guess{
  background:linear-gradient(135deg,#4ADE80,#22D3EE);
}

.tier{
  background:linear-gradient(135deg,#FBBF24,#F97316);
}

.song{
  background:linear-gradient(135deg,#8B5CF6,#3B82F6);
}

.game-title{
  font-size:20px;
  font-weight:800;
}

.game-desc{
  font-size:13px;
  color:rgba(255,255,255,.5);
  margin-top:4px;
  line-height:1.5;
}

.vote-buttons{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:24px;
}

.vote-btn{
  padding:16px 18px;
  min-height:var(--touch-min);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:white;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  touch-action:manipulation;
}

@media (hover:hover){
  .vote-btn:hover{
    background:rgba(255,255,255,.1);
  }
}

.vote-btn:active{
  background:rgba(255,255,255,.14);
  transform:scale(.98);
}

.timer{
  text-align:center;
  font-size:clamp(36px,11vw,48px);
  font-weight:900;
  margin:16px 0;
}

.timer--paused{
  color:#FCD34D;
  opacity:.85;
}

.progress{
  width:100%;
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  margin-top:20px;
}

.progress-fill{
  height:100%;
  background:linear-gradient(90deg, var(--color-primary-hot), var(--color-primary));
}

.back{
  position:absolute;
  top:calc(12px + env(safe-area-inset-top, 0px));
  left:max(var(--page-pad), env(safe-area-inset-left, 0px));
  width:var(--touch-min);
  height:var(--touch-min);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:white;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  z-index:10;
  touch-action:manipulation;
}

.back:active{
  transform:scale(.94);
  background:rgba(255,255,255,.1);
}

.back:focus-visible,
.btn:focus-visible,
.game-card:focus-visible,
.vote-btn:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
}

.avatar--sm{
  width:42px;
  height:42px;
  margin:0;
  font-size:18px;
}

.avatar--md{
  width:48px;
  height:48px;
  margin:0;
  font-size:22px;
}

.label-upper{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:rgba(255,255,255,.45);
  margin-bottom:var(--heading-gap-h1);
  font-weight:700;
}

.container > p{
  margin-bottom:18px;
}

.container > p.game-intro{
  margin-bottom:24px;
}

.container > div{
  margin-bottom:20px;
}

.container > div:last-child{
  margin-bottom:0;
}

/* Titre d’écran : ne pas chevaucher le bouton retour */
.page:has(.back) .container > .label-upper:first-child,
.page:has(.back) .container > .game-select-header:first-child{
  padding-left:calc(var(--touch-min) + 12px);
  min-height:var(--touch-min);
  display:flex;
  align-items:center;
  margin-bottom:var(--heading-gap-h1);
}

.page:has(.back) .container > .lobby-count:first-child,
.page:has(.back) .container > .game-header:first-child{
  padding-left:calc(var(--touch-min) + 12px);
}

/* Bannière de reprise en tête d'écran : ne pas chevaucher le bouton retour */
.page:has(.back) .container > .game-resume-banner:first-child{
  margin-top:calc(var(--touch-min) + 12px);
}

/* Retour d’étape inline : ne pas chevaucher le bouton retour global */
.page:has(.back) .container > .btn-back-inline:first-child{
  margin-left:calc(var(--touch-min) + 12px);
}

.label-upper--hot{ color:rgba(255,107,107,.85); }
.label-upper--green{ color:rgba(74,222,128,.85); }
.label-upper--gold{ color:rgba(251,191,36,.85); }
.label-upper--pink{ color:rgba(244,114,182,.9); }

.card-heading{
  font-weight:700;
  margin:0 0 var(--heading-gap-h3);
}

.card--clickable{
  cursor:pointer;
  text-align:left;
  width:100%;
  color:inherit;
  margin-top:16px;
}

.card--highlight{
  border-color:rgba(74,222,128,.25);
  background:rgba(74,222,128,.08);
  margin-bottom:4px;
}

.card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.card-row__icon{ font-size:24px; }
.card-row__title{ margin:0; font-weight:700; }
.card-row__sub{ margin:4px 0 0; font-size:12px; color:rgba(255,255,255,.4); }
.card-row__chevron{ color:rgba(255,255,255,.3); font-size:20px; }

.lobby-code-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.lobby-code{
  font-size:36px;
  font-weight:900;
  letter-spacing:6px;
}

.btn-copy{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.65);
  border-radius:12px;
  padding:8px 16px;
  font-size:13px;
  cursor:pointer;
}

.btn-copy--ok{
  border-color:rgba(74,222,128,.3);
  background:rgba(74,222,128,.15);
  color:#4ADE80;
}

.player-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.player-row:last-child{ margin-bottom:0; }

.player-name{
  font-weight:600;
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.badge{
  margin-left:auto;
  font-size:11px;
  color:rgba(255,255,255,.4);
  background:rgba(255,255,255,.06);
  padding:2px 8px;
  border-radius:50px;
}

.badge--soon{
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--color-secondary-soft);
  background:rgba(99,102,241,.2);
  border:1px solid rgba(129,140,248,.35);
  padding:3px 10px;
  border-radius:50px;
}

.btn--spaced{ margin-top:20px; }
/* UX-HOST-01 - conclusion du reveal mid-round (CTA/hint) avant infos complémentaires */
.reveal-mid-action{
  margin-top:0.75rem;
  margin-bottom:0.35rem;
}
.reveal-mid-action .btn--spaced{ margin-top:0.35rem; }
.reveal-mid-action + .game-scores-box,
.reveal-mid-action + .card.game-scores-box{
  margin-top:1.1rem;
}

.game-card--disabled{
  opacity:.5;
  cursor:not-allowed;
}

button.game-card{
  width:100%;
  border:none;
  text-align:left;
  color:#fff;
}

.muted{
  color:rgba(255,255,255,.4);
  font-size:13px;
}

.hint{
  text-align:center;
  color:rgba(255,255,255,.35);
  font-size:13px;
  margin-top:12px;
}

/* Évite le double espacement quand un hint suit directement un titre */
.page-title + .hint,
.screen-title + .hint,
.section-title + .hint,
.section-title--sm + .hint,
.settings-section__title + .hint,
.privacy-section__title + .hint{
  margin-top:0;
}

.game-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.dots{ display:flex; gap:6px; }

.dot{
  width:7px;
  height:7px;
  border-radius:4px;
  background:rgba(255,255,255,.1);
  display:inline-block;
  transition:all .3s;
}

.dot--active{
  width:20px;
  background:#FF6B6B;
}

.dot--done{ background:rgba(255,255,255,.3); }

.card--hot{
  background:linear-gradient(135deg,rgba(255,107,107,.18),rgba(255,60,172,.12));
  border-color:rgba(255,107,107,.25);
  margin-bottom:20px;
}

.card--speed{
  background:linear-gradient(135deg,rgba(251,191,36,.2),rgba(245,158,11,.1));
  border-color:rgba(251,191,36,.35);
  margin-bottom:20px;
}

.timer--speed{
  color:#FBBF24;
  text-shadow:0 0 24px rgba(251,191,36,.45);
}

.speedvote-modifier{
  text-align:center;
  font-weight:800;
  font-size:13px;
  margin:0 0 12px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
}

.speedvote-modifier--double{
  color:#FDE68A;
  border:1px solid rgba(251,191,36,.35);
}

.speedvote-modifier--hidden{
  color:#C4B5FD;
  border:1px solid rgba(167,139,250,.35);
}

.speedvote-vote-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:16px 0;
}

.speedvote-vote-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:14px 10px;
  border-radius:16px;
  border:2px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  position:relative;
  min-height:88px;
  transition:border-color .15s,transform .1s;
}

.speedvote-vote-btn:active{
  transform:scale(.97);
}

.speedvote-vote-btn--active{
  border-color:var(--vote-color,#FBBF24);
  box-shadow:0 0 0 1px var(--vote-color,#FBBF24),0 8px 24px rgba(0,0,0,.25);
}

.speedvote-vote-btn__avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.speedvote-vote-btn__name{
  font-weight:700;
  font-size:13px;
  text-align:center;
  line-height:1.2;
}

.speedvote-vote-btn__check{
  position:absolute;
  top:8px;
  right:10px;
  font-size:14px;
}

.moderation-notice{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.5);
}

.pause-banner{
  text-align:center;
  font-weight:800;
  color:#FBBF24;
  margin:0 0 12px;
}

.intermission-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin:24px 0;
}

.btn--lobby-return{
  margin-bottom:12px;
}

.btn--lobby-return.btn-accent{
  box-shadow:var(--shadow-secondary);
}

.btn--leave-lobby{
  width:100%;
  margin-bottom:12px;
}

.btn--lobby-return .muted{
  font-size:13px;
  font-weight:600;
}

.hot-take-text{
  font-size:clamp(18px,4.5vw,22px);
  font-weight:800;
  line-height:1.4;
  margin:0;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}

.progress--timer{ margin-top:0; margin-bottom:20px; }

.vote-btn--active{
  border-color:var(--vote-color,#fff)!important;
  background:color-mix(in srgb,var(--vote-color) 15%,transparent)!important;
  color:var(--vote-color,#fff)!important;
}

.vote-btn:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.vote-buttons--locked .vote-btn--active{
  opacity:1;
}

.section-title{
  font-size:18px;
  font-weight:800;
  margin:0 0 var(--heading-gap-h3);
}

.section-title--sm{
  font-size:15px;
  margin:20px 0 var(--heading-gap-h3);
}

.hot-take-vote-pill{
  font-weight:800;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.hot-take-vote-pill--outsider{
  text-shadow:0 0 12px rgba(251,191,36,.35);
}

.hot-take-outsider-tip{
  color:#FBBF24;
  font-weight:600;
}

.hot-take-outsider-banner{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(251,191,36,.16), rgba(255,107,107,.12));
  border:1px solid rgba(251,191,36,.35);
  animation:consensus-rise-in .45s ease both;
}

.hot-take-outsider-banner--solo{
  background:linear-gradient(135deg, rgba(255,107,107,.18), rgba(251,191,36,.14));
  border-color:rgba(255,107,107,.4);
}

.hot-take-outsider-banner__kicker{
  margin:0 0 4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(251,191,36,.95);
}

.hot-take-outsider-banner__title{
  margin:0 0 6px;
  font-size:18px;
  font-weight:900;
  color:#fff;
}

.hot-take-outsider-banner__body{
  margin:0;
  font-size:14px;
  line-height:1.4;
  color:rgba(255,255,255,.88);
}

.hot-take-outsider-local{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  color:#FDE68A;
  background:rgba(251,191,36,.12);
  border:1px solid rgba(251,191,36,.28);
}

.hot-take-troupeau-local{
  margin:0 0 10px;
}

.hot-take-outsider-tag{
  display:inline-block;
  margin-left:4px;
  padding:2px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#FDE68A;
  background:rgba(251,191,36,.16);
  border:1px solid rgba(251,191,36,.28);
  vertical-align:middle;
}

.player-row--outsider .player-name{
  font-weight:800;
}

.result-row--outsider .progress-fill{
  box-shadow:0 0 10px rgba(251,191,36,.25);
}

.result-row{ margin-bottom:14px; }

.result-row__head{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
}

.card--votes{ margin-top:16px; }

.game-scores-box{
  margin:16px 0 20px;
}

.game-scores-box__title{
  margin-bottom:var(--heading-gap-h3);
}

.game-scores-box__game{
  margin:0 0 12px;
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.45);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.game-scores-box__row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.game-scores-box__row:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.game-scores-box__rank{
  width:1.25rem;
  flex-shrink:0;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.4);
  text-align:center;
}

.game-scores-box__name{
  flex:1;
  min-width:0;
}

.player-row--compact{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:0;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.player-row--compact .player-name{
  flex:1;
  min-width:0;
}

.player-row--compact:last-child{ border-bottom:none; }

.game-intro{
  color:rgba(255,255,255,.45);
  font-size:14px;
  margin-bottom:24px;
  line-height:1.5;
}

.statements{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:24px;
}

.statement{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px 20px;
  border-radius:20px;
  border:1.5px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.85);
  font-size:15px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  width:100%;
  transition:all .25s;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.statement__letter{
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
  flex-shrink:0;
}

.statement--picked{
  border-color:rgba(139,92,246,.85);
  background:rgba(139,92,246,.28);
  color:#fff;
  box-shadow:0 0 0 2px rgba(167,139,250,.45), 0 4px 16px rgba(139,92,246,.25);
  transform:scale(1.02);
}

.statement--lie{
  border-color:#4ADE80;
  background:rgba(74,222,128,.12);
  color:#4ADE80;
}

.statement--wrong{
  border-color:#F87171;
  background:rgba(248,113,113,.12);
  color:#F87171;
}

.card--feedback{ text-align:center; margin-bottom:20px; }
.card--ok{ border-color:rgba(74,222,128,.3); background:rgba(74,222,128,.1); }
.card--fail{ border-color:rgba(248,113,113,.3); background:rgba(248,113,113,.1); }

.feedback-emoji{ font-size:28px; margin:0 0 8px; }
.feedback-title{ font-weight:800; font-size:18px; margin:0 0 4px; }
.card--ok .feedback-title{ color:#4ADE80; }
.card--fail .feedback-title{ color:#F87171; }
.feedback-sub{ color:rgba(255,255,255,.5); font-size:13px; margin:0; }

.topic-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin-bottom:20px;
  padding-bottom:4px;
}

.topic-tab{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  border-radius:12px;
  padding:6px 14px;
  color:rgba(255,255,255,.5);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

.topic-tab--active{
  border-color:rgba(251,191,36,.4);
  background:rgba(251,191,36,.15);
  color:#FBBF24;
}

.tier-board{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
}

.tier-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
}

.tier-label{
  width:36px;
  height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:16px;
  flex-shrink:0;
  color:var(--tier-color);
  background:color-mix(in srgb,var(--tier-color) 18%,transparent);
  border:1px solid color-mix(in srgb,var(--tier-color) 35%,transparent);
}

.tier-items{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex:1;
}

.tier-chip{
  font-size:12px;
  font-weight:600;
  padding:4px 10px;
  border-radius:8px;
  color:var(--tier-color);
  background:color-mix(in srgb,var(--tier-color) 12%,transparent);
  border:1px dashed color-mix(in srgb,var(--tier-color) 28%,transparent);
  cursor:pointer;
  font-family:inherit;
  line-height:1.3;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
  -webkit-appearance:none;
}

.tier-chip:active{
  transform:scale(0.96);
  background:color-mix(in srgb,var(--tier-color) 22%,transparent);
}

.tier-chip--static{
  cursor:default;
  border-style:solid;
}

.tier-chip--static:active{
  transform:none;
  background:color-mix(in srgb,var(--tier-color) 12%,transparent);
}

.tier-consensus-card .tier-board--recap{
  margin-bottom:0;
}

.tier-board--recap .tier-row{
  min-height:44px;
  padding:8px 10px;
}

.tier-board--recap .tier-label{
  width:30px;
  height:30px;
  font-size:14px;
}

.tier-controversial-card{
  border:1px solid color-mix(in srgb,#FF6B6B 35%,transparent);
  background:color-mix(in srgb,#FF6B6B 8%,rgba(255,255,255,.02));
}

.tier-controversial__item{
  font-size:18px;
  font-weight:800;
  margin:2px 0 4px;
}

.tier-controversial__sub{
  margin:0 0 12px;
}

.tier-controversial__votes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tier-controversial__vote{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.tier-controversial__badge{
  position:absolute;
  bottom:-4px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:6px;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0D0F1E;
  background:var(--tier-color);
  border:2px solid #0D0F1E;
}

.tier-controversial__vote--outsider .recap-card__avatar{
  box-shadow:0 0 0 2px #FBBF24, 0 0 10px rgba(251,191,36,.6);
}

.tier-points-hint{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(167,139,250,.12);
  border:1px solid rgba(167,139,250,.25);
  font-size:.88rem;
}

.podium__badge{
  display:block;
  font-size:.72rem;
  margin-top:2px;
  max-width:90px;
  text-align:center;
  line-height:1.2;
}

.tier-controversial__outsider{
  margin:12px 0 0;
  font-size:13px;
  font-weight:700;
  color:#FBBF24;
}

.tier-unplace-hint{
  margin:12px 0 4px;
  font-size:12px;
}

.tier-modifier-banner{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(251,191,36,.32);
  background:color-mix(in srgb,#FBBF24 10%,rgba(255,255,255,.02));
  font-size:12.5px;
  line-height:1.35;
  color:rgba(255,255,255,.82);
}

.tier-modifier-banner__emoji{
  font-size:22px;
  flex-shrink:0;
}

.tier-live-vote{
  display:flex;
  gap:10px;
  margin:8px 0 6px;
}

.tier-live-vote__btn{
  flex:1;
  padding:18px 0;
  border-radius:16px;
  font-size:22px;
  font-weight:900;
  color:var(--tier-color);
  background:color-mix(in srgb,var(--tier-color) 14%,transparent);
  border:1px solid color-mix(in srgb,var(--tier-color) 38%,transparent);
  cursor:pointer;
  font-family:inherit;
  transition:transform .12s;
}

.tier-live-vote__btn:active{ transform:scale(.95); }

.tier-live-vote__btn--active{
  color:#0A0F1C;
  background:var(--tier-color);
  border-color:var(--tier-color);
  box-shadow:0 6px 18px color-mix(in srgb,var(--tier-color) 45%,transparent);
}

.tier-live-vote__btn:disabled:not(.tier-live-vote__btn--active){
  opacity:.4;
  cursor:default;
}

.tier-live-consensus{
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0 16px;
}

.tier-live-consensus__label{
  width:54px;
  height:54px;
  flex-shrink:0;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  font-weight:900;
  color:var(--tier-color);
  background:color-mix(in srgb,var(--tier-color) 18%,transparent);
  border:1px solid color-mix(in srgb,var(--tier-color) 40%,transparent);
}

.tier-live-consensus__item{
  font-size:18px;
  font-weight:800;
}

.tier-live-votes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:8px;
}

.tier-live-vote-chip{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.tier-live-vote-chip__tier{
  position:absolute;
  bottom:-4px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:6px;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0D0F1E;
  background:var(--tier-color);
  border:2px solid #0D0F1E;
}

.unplaced{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.unplaced-chip{
  padding:8px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  font-size:13px;
  font-weight:600;
  cursor:grab;
  user-select:none;
  touch-action:none;
}

.unplaced-chip--dragging{
  opacity:.85;
  transform:scale(1.04);
  border-color:rgba(167,139,250,.55);
  box-shadow:0 4px 16px rgba(0,0,0,.35);
  pointer-events:none;
}

.tier-row--drop-target .tier-items{
  outline:2px dashed rgba(167,139,250,.65);
  outline-offset:2px;
  border-radius:8px;
  min-height:36px;
}

.quick-place{
  position:relative;
  z-index:10;
  margin-bottom:8px;
  padding-bottom:4px;
}

.quick-place__item{
  font-weight:700;
  margin-bottom:10px;
}

.quick-place__btns{
  display:flex;
  gap:8px;
  position:relative;
  z-index:11;
}

.quick-tier-btn{
  flex:1;
  border-radius:12px;
  padding:10px 0;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  border:1px solid color-mix(in srgb,var(--tier-color) 35%,transparent);
  background:color-mix(in srgb,var(--tier-color) 12%,transparent);
  color:var(--tier-color);
}

.podium{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:10px;
  margin:24px 0 32px;
}

.podium__col{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.podium__name{ font-size:13px; font-weight:700; }

.podium__bar{
  width:70px;
  border-radius:12px 12px 0 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}

.podium__col--first .podium__bar{
  background:rgba(251,191,36,.15);
  border-color:rgba(251,191,36,.3);
}

.podium__rank{
  font-size:11px;
  color:rgba(255,255,255,.4);
  font-weight:700;
}

.podium__col--first .podium__rank{ color:#FBBF24; }

.podium__score{
  font-size:18px;
  font-weight:900;
}

.podium__col--first .podium__score{ color:#FBBF24; }

.player-row--list{
  margin-bottom:0;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.rank{
  width:20px;
  text-align:center;
  font-weight:800;
  color:rgba(255,255,255,.3);
}

.rank--gold{ color:#FBBF24; }

.player-row__info{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.player-badge{
  font-size:11px;
  color:rgba(255,255,255,.35);
}

.player-score{
  font-size:22px;
  font-weight:900;
  flex-shrink:0;
}

.player-score--gold{ color:#FBBF24; }

.game-leaderboards__heading{ margin-top:18px; }

.btn-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
  align-items:stretch;
}

.btn-row .btn{
  margin-top:0;
  width:100%;
  min-height:var(--touch-min);
  display:flex;
  align-items:center;
  justify-content:center;
}

.btn-row--stack{
  grid-template-columns:1fr;
}

.btn-row--stack .evening-recap__restart{
  margin:0;
}

.btn-row--tier-end{
  grid-template-columns:1fr 1fr;
}

.btn-row--tier-end .btn-primary{
  order:1;
}

.btn-row--tier-end .btn-secondary{
  order:2;
}

.card--create-tier{
  margin-bottom:16px;
}

.field-input--emoji{
  max-width:80px;
  text-align:center;
  font-size:22px;
}

.field-textarea{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:16px;
  font-family:inherit;
  resize:vertical;
  min-height:140px;
}

.field-textarea::placeholder{
  color:rgba(255,255,255,.3);
}

.tier-list-card--custom{
  position:relative;
  border-style:dashed;
  cursor:default;
}

.tier-list-card__delete{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  width:28px;
  height:28px;
  padding:0;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.45);
  color:rgba(255,255,255,.85);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s,color .15s,transform .15s;
}

.tier-list-card__delete:hover,
.tier-list-card__delete:focus-visible{
  background:rgba(239,68,68,.75);
  color:#fff;
  transform:scale(1.05);
}

.tier-list-card__body{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
  cursor:pointer;
  outline:none;
}

.tier-list-card__body:focus-visible{
  outline:2px solid rgba(251,191,36,.5);
  outline-offset:4px;
  border-radius:12px;
}

.btn:disabled{
  opacity:.4;
  cursor:not-allowed;
  transform:none;
}

.app-logo{
  display:block;
  width:min(280px,85vw);
  height:auto;
  margin:0 auto 12px;
}

.app-logo--sm{
  width:min(200px,70vw);
}

.logo--with-img{
  margin-top:40px;
}

.logo--with-img .subtitle{
  margin-top:16px;
}

.screen-title{
  font-size:28px;
  font-weight:900;
  text-align:center;
  margin:0 0 var(--heading-gap-h2);
  letter-spacing:-1px;
}

.field-label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:rgba(255,255,255,.45);
  margin:14px 0 8px;
  font-weight:700;
}

.field-label--spaced{ margin-top:20px; }

.field-input{
  width:100%;
  padding:14px 16px;
  min-height:var(--touch-min);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:16px;
}

.password-field{
  position:relative;
}

.password-field__input{
  padding-right:52px;
}

.password-field__toggle{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.password-field__toggle:active{
  transform:translateY(-50%) scale(.98);
}

.auth-forgot{
  margin-top:10px;
  display:inline-flex;
  justify-content:center;
  width:100%;
}

.auth-forgot--cooldown,
.auth-forgot:disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}

.field-input::placeholder{
  color:rgba(255,255,255,.3);
}

select.field-input{
  cursor:pointer;
}

/* Options rendues par l'OS : forcer un contraste lisible. */
select.field-input option{
  color:#111;
  background:#fff;
}

.lie-pick-row{
  display:flex;
  gap:12px;
  justify-content:center;
}

.lie-pick{
  width:56px;
  height:56px;
  border-radius:16px;
  border:1.5px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-weight:900;
  font-size:18px;
  cursor:pointer;
}

.lie-pick--active{
  border-color:#4ADE80;
  background:rgba(74,222,128,.15);
  color:#4ADE80;
}

.lobby-player{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  opacity:.5;
  transition:opacity .3s;
}

.lobby-player:last-child{ border-bottom:none; }

.lobby-player--ready{
  opacity:1;
}

.lobby-player__status{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  background:rgba(255,255,255,.08);
  font-size:14px;
}

.lobby-player--ready .lobby-player__status{
  background:rgba(74,222,128,.2);
  color:#4ADE80;
}

.lobby-player__name{ font-weight:600; }

.btn-back-inline{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-bottom:8px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.78);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}

.btn-back-inline:active{ transform:scale(.97); }

.tier-mode-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}

.tier-mode-card{
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  padding:18px 16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  font-family:inherit;
  transition:transform .2s,border-color .2s;
}

@media (hover:hover){
  .tier-mode-card:not(.tier-mode-card--soon):hover{
    transform:scale(1.01);
    border-color:rgba(251,191,36,.4);
  }
}

.tier-mode-card:not(.tier-mode-card--soon):active{ transform:scale(.99); }

.tier-mode-card--soon{
  opacity:.55;
  cursor:not-allowed;
}

.tier-mode-card__emoji{
  font-size:32px;
  flex-shrink:0;
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(255,255,255,.06);
}

.tier-mode-card__body{
  display:flex;
  flex-direction:column;
  gap:3px;
  flex:1;
}

.tier-mode-card__name{
  font-size:16px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
}

.tier-mode-card__badge{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(251,191,36,.2);
  color:#FBBF24;
}

.tier-mode-card__tagline{
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.8);
}

.tier-mode-card__desc{
  font-size:12px;
  color:rgba(255,255,255,.55);
  line-height:1.35;
}

.tier-mod-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:6px 0 18px;
}

.tier-mod-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.8);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  transition:border-color .15s,background .15s;
}

.tier-mod-chip--active{
  border-color:rgba(251,191,36,.6);
  background:color-mix(in srgb,#FBBF24 16%,transparent);
  color:#fff;
}

.tier-mod-chip__emoji{ font-size:15px; }

/* FEATURE-TIERNIGHT-03-F : grille roster mono (tier-roster-*) retirée — customs dans prep. */

.tier-list-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:8px;
}

.tier-list-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:20px 14px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  cursor:pointer;
  color:#fff;
  transition:transform .2s,border-color .2s;
}

@media (hover:hover){
  .tier-list-card:hover{
    transform:scale(1.02);
    border-color:rgba(251,191,36,.35);
  }
}

.tier-list-card:active{
  transform:scale(.99);
}

.tier-list-card__logo{
  position:relative;
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}

.tier-list-card__logo [data-tier-img]{
  position:relative;
  z-index:1;
}

.tier-list-card__logo .tier-list-logo--emoji{
  position:absolute;
  inset:0;
  z-index:0;
}

.tier-list-logo{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tier-list-logo--emoji{
  font-size:36px;
  line-height:1;
}

.tier-list-card__logo .tier-list-logo--emoji{
  font-size:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}

.tier-list-logo--emoji-fill{
  font-size:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}

.tier-list-logo--fill{
  width:100%;
  height:100%;
  object-fit:cover;
}

.recap-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:16px 0 24px;
}

.recap-card{
  padding:16px 18px;
}

.card--controversial{
  text-align:center;
  border-color:rgba(251,191,36,.35);
  background:rgba(251,191,36,.08);
  margin:8px 0 20px;
}

.controversial-item{
  font-size:22px;
  font-weight:900;
  margin:0;
  line-height:1.3;
}

.recap-card__head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.recap-card__avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

.recap-card__name{
  flex:1;
  font-weight:800;
  font-size:16px;
}

.recap-card__pts{
  font-weight:800;
  font-size:14px;
  color:#4ADE80;
  white-space:nowrap;
}

.recap-card--local{
  border:1px solid rgba(167,139,250,.28);
}

.recap-card__hint{
  margin:8px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.45);
}

.recap-tier{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:8px;
  font-size:13px;
  line-height:1.4;
}

.recap-tier--scored,
.recap-tier--bonus{
  display:grid;
  grid-template-columns:18px 1fr auto;
  gap:8px;
  align-items:center;
}

.recap-tier--bonus{
  margin-top:10px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(251,191,36,.08);
  border:1px solid rgba(251,191,36,.2);
}

.recap-tier__meta{
  font-size:12px;
  color:rgba(255,255,255,.5);
  white-space:nowrap;
}

.recap-tier__pts--gain{
  color:#4ADE80;
  font-weight:800;
}

.recap-tier__label{
  font-weight:900;
  min-width:18px;
}

.recap-tier__items{
  color:rgba(255,255,255,.75);
}

.chat-panel{
  margin-bottom:16px;
}

.chat-messages{
  max-height:160px;
  overflow-y:auto;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(0,0,0,.2);
  border:1px solid rgba(255,255,255,.06);
}

.chat-empty{
  font-size:13px;
  color:rgba(255,255,255,.35);
  margin:0;
}

.chat-msg{
  margin-bottom:8px;
  font-size:14px;
}

.chat-msg__from{
  font-weight:800;
  color:#C4B5FD;
  margin-right:6px;
}

.chat-msg__text{
  color:rgba(255,255,255,.8);
}

.tier-list-logo--header{
  width:56px;
  height:56px;
  border-radius:14px;
}

.tier-list-card__name{
  font-weight:800;
  font-size:15px;
  text-align:center;
  line-height:1.2;
}

.tier-list-card__count{
  font-size:11px;
  color:rgba(255,255,255,.4);
}

.tier-game-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}

.tier-game-header__title{
  font-size:26px;
  font-weight:900;
  margin:0;
  letter-spacing:-1px;
}

.tier-game-header__logo{
  width:56px;
  height:56px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}

.tier-lobby-wait{
  margin-top:16px;
}

.tier-lobby-wait__count{
  font-weight:700;
  color:var(--gold, #FBBF24);
}

.tier-lobby-wait .lobby-player__name{
  flex:1;
  min-width:0;
}

.tier-lobby-wait__status{
  margin-left:auto;
  flex-shrink:0;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.45);
  white-space:nowrap;
}

.tier-lobby-wait .lobby-player--ready .tier-lobby-wait__status{
  color:#4ADE80;
}

.settings-lobby-banner{
  margin-bottom:16px;
}

.settings-lobby-banner__text{
  margin-bottom:12px;
}

.game-select-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 12px;
}

.game-select-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:var(--heading-gap-h1);
}

.game-select-header .label-upper{
  margin-bottom:0;
  flex:1;
  min-width:0;
}

.game-select-code-chip{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:6px 10px 6px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.game-select-code-chip:active{
  transform:scale(.97);
}

.game-select-code-chip__code{
  font-size:14px;
  font-weight:900;
  letter-spacing:3px;
  background:linear-gradient(135deg,#FF6B6B,#FF3CAC);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.game-select-code-chip__icon{
  font-size:14px;
  color:rgba(255,255,255,.65);
  line-height:1;
}

.game-select-reclaim-host{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:6px 12px;
  border-radius:12px;
  border:1px solid rgba(251,191,36,.35);
  background:rgba(251,191,36,.08);
  color:rgba(253,230,138,.92);
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  text-decoration:none;
  transition:background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.game-select-reclaim-host:active{
  transform:scale(.98);
}

.game-select-transfer-host{
  display:block;
  width:100%;
  margin:0 0 16px;
}

/* ─── Landing / Auth ─── */
.logo--landing{
  margin-top:16px;
}

.logo--landing .app-logo,
.app-logo--landing{
  width:min(140px,48vw);
  margin-bottom:8px;
}

.logo--landing .subtitle{
  margin-top:8px;
  font-size:13px;
  color:var(--muted, #64748b);
}

/* ─── Welcome (landing) ─── */
.welcome{
  --pink: var(--color-primary);
  --coral: var(--color-primary-hot);
  --indigo: var(--color-secondary);
  --violet: var(--color-secondary-soft);
  --sky: #38bdf8;
  --text: #f8fafc;
  --muted: #64748b;

  display:flex;
  flex-direction:column;
  min-height:calc(
    100dvh
    - 2 * var(--page-pad)
    - env(safe-area-inset-top, 0px)
    - env(safe-area-inset-bottom, 0px)
  );
  padding-bottom:max(8px, env(safe-area-inset-bottom, 0px));
}

.welcome__hero-area{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:0;
}

.welcome__hero{
  margin:0;
  text-align:center;
  width:100%;
}

.welcome__logo{
  width:min(168px, 57.6vw);
  margin-bottom:4px;
}

.welcome__logo-rule{
  display:block;
  width:min(200px, 58vw);
  height:auto;
  margin:6px auto 10px;
}

.welcome__baseline{
  margin-top:0;
  font-size:15.6px;
  color:var(--muted);
}

.welcome__steps{
  display:flex;
  flex-direction:column;
  flex-shrink:0;
  margin:0;
}

.welcome .step-pill{
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:22px;
  padding:20px;
  padding-right:36px;
  position:relative;
  overflow:hidden;
}

.welcome .step-pill.step-pink{
  background:rgba(255, 60, 172, 0.07);
}

.welcome .step-pill.step-indigo{
  background:rgba(99, 102, 241, 0.07);
}

.welcome .step-pill.step-sky{
  background:rgba(129, 140, 248, 0.07);
}

.welcome .step-icon{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.welcome .step-pink .step-icon{
  background:linear-gradient(135deg, var(--pink), var(--coral));
  box-shadow:0 0 16px rgba(255, 60, 172, 0.5);
}

.welcome .step-indigo .step-icon{
  background:linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow:0 0 16px rgba(99, 102, 241, 0.5);
}

.welcome .step-sky .step-icon{
  background:linear-gradient(135deg, var(--violet), var(--sky));
  box-shadow:0 0 16px rgba(56, 189, 248, 0.45);
}

.welcome .step-content{
  flex:1;
  min-width:0;
}

.welcome .step-label{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:1.2px;
  text-transform:uppercase;
  margin-bottom:2px;
}

.welcome .step-pink .step-label{
  color:rgba(255, 107, 157, 0.8);
}

.welcome .step-indigo .step-label{
  color:rgba(129, 140, 248, 0.85);
}

.welcome .step-sky .step-label{
  color:rgba(56, 189, 248, 0.85);
}

.welcome .step-title{
  display:block;
  font-size:17px;
  font-weight:700;
  line-height:1.35;
  color:var(--text);
}

.welcome .step-dot{
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:8px;
  border-radius:50%;
}

.welcome .step-pink .step-dot{
  background:var(--pink);
  box-shadow:0 0 8px var(--pink);
}

.welcome .step-indigo .step-dot{
  background:var(--violet);
  box-shadow:0 0 8px var(--violet);
}

.welcome .step-sky .step-dot{
  background:var(--sky);
  box-shadow:0 0 8px var(--sky);
}

.welcome .step-connector{
  width:2px;
  height:10px;
  margin:0 auto;
  background:linear-gradient(180deg, rgba(255, 60, 172, 0.4), rgba(99, 102, 241, 0.4));
  border-radius:1px;
}

.welcome .cta-btn{
  width:100%;
  padding:19px;
  border-radius:100px;
  background:linear-gradient(135deg, var(--pink), var(--coral));
  border:none;
  color:#fff;
  font-size:17px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  box-shadow:0 0 32px rgba(255, 60, 172, 0.4);
  animation:welcome-cta-pulse 2s ease-in-out infinite;
}

.welcome .cta-btn:active{
  transform:scale(0.98);
}

@keyframes welcome-cta-pulse{
  0%, 100%{ box-shadow:0 0 28px rgba(255, 60, 172, 0.4); }
  50%{ box-shadow:0 0 44px rgba(255, 60, 172, 0.65); }
}

.welcome__steps .step-pill:nth-child(1){
  animation:welcome-fade-in-up 0.4s ease both;
}

.welcome__steps .step-pill:nth-child(3){
  animation:welcome-fade-in-up 0.4s 0.12s ease both;
}

.welcome__steps .step-pill:nth-child(5){
  animation:welcome-fade-in-up 0.4s 0.24s ease both;
}

@keyframes welcome-fade-in-up{
  from{
    opacity:0;
    transform:translateY(16px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.welcome__footer{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  min-height:0;
  margin-top:8px;
}

.welcome__cta-wrap{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 0;
}

.welcome__privacy{
  flex-shrink:0;
  display:block;
  width:100%;
  text-align:center;
  margin-top:0;
  padding-bottom:4px;
}

@media (prefers-reduced-motion: reduce){
  .welcome .cta-btn,
  .welcome__steps .step-pill{
    animation:none;
  }
}

.auth-tabs{
  display:flex;
  gap:8px;
  margin:16px 0 12px;
}

.auth-tab--guest.auth-tab--active{
  background:rgba(96,165,250,.15);
  border-color:rgba(96,165,250,.35);
}

.auth-tab{
  flex:1;
  padding:10px 8px;
  min-height:var(--touch-min);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.5);
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  touch-action:manipulation;
}

.auth-tab:active{
  opacity:.85;
}

.auth-tab--active{
  background:rgba(255,107,107,.15);
  border-color:rgba(255,107,107,.35);
  color:#fff;
}

.auth-form .field-label:first-child{
  margin-top:0;
}

.auth-divider{
  text-align:center;
  margin:20px 0 14px;
  color:rgba(255,255,255,.35);
  font-size:12px;
}

.auth-divider span{
  background:#0D0F1E;
  padding:0 12px;
}

.auth-turnstile-wrap{
  display:flex;
  justify-content:center;
  margin:14px 0 4px;
  min-height:65px;
}

.auth-turnstile-wrap--dialog{
  margin:12px 0 8px;
}

.auth-error{
  color:#F87171;
  font-size:13px;
  line-height:1.4;
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid rgba(248,113,113,.28);
  border-radius:10px;
  background:rgba(127,29,29,.18);
  overflow-wrap:anywhere;
}

.auth-error.hidden,
.hidden{
  display:none!important;
}

.auth-form--guest{
  border-color:rgba(96,165,250,.25);
  background:linear-gradient(135deg,rgba(96,165,250,.08),rgba(139,92,246,.06));
}

.auth-form__guest-intro{
  margin:0 0 14px;
  line-height:1.45;
  color:rgba(255,255,255,.45);
}

.guest-join-meta{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:12px;
  align-items:end;
  margin-top:14px;
}

.guest-join-meta__emoji .field-label,
.guest-join-meta__code .field-label{
  margin-top:14px;
}

.guest-join-meta .emoji-picker-preview{
  margin-bottom:0;
}

.guest-join-meta .emoji-picker-preview--compact{
  display:block;
}

.guest-join-meta .emoji-picker-preview__avatar{
  width:52px;
  height:52px;
  min-height:var(--touch-min);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.guest-join-meta .emoji-picker-preview__avatar:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.2);
}

.guest-join-meta__code .field-input{
  letter-spacing:.04em;
}

.auth-welcome--guest{
  border-color:rgba(96,165,250,.3);
}

.auth-welcome{
  text-align:center;
  margin-bottom:16px;
}

.auth-welcome__hi{
  margin:0 0 8px;
}

.btn-link{
  background:none;
  border:none;
  color:rgba(255,255,255,.45);
  font-size:13px;
  cursor:pointer;
  text-decoration:underline;
}

.game-exit-bar{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
}

.game-exit-bar__btn{
  max-width:100%;
}

.app-reset-bar{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
}

.app-reset-bar__link{
  max-width:100%;
  padding:4px 8px;
  font-size:12px;
  font-weight:500;
  line-height:1.35;
  color:rgba(255,255,255,.32);
  text-align:center;
  text-wrap:balance;
}

@media (hover:hover) and (pointer:fine){
  .app-reset-bar__link:hover{
    color:rgba(255,255,255,.55);
  }
}

.game-resume{
  margin-top:12px;
  text-align:center;
}

.game-resume__countdown{
  margin-top:8px;
}

.game-resume-banner{
  margin-bottom:16px;
  border:1px solid rgba(255,200,80,.35);
  background:rgba(255,200,80,.08);
}

.game-resume-banner__title{
  font-weight:700;
  margin:0 0 6px;
}

.game-resume-banner__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.game-exit-lobby{
  display:block;
  width:100%;
  text-align:center;
  margin-top:4px;
}

.auth-welcome__actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-top:4px;
}

.page-title{
  font-size:26px;
  font-weight:800;
  margin:0 0 var(--heading-gap-h1);
  letter-spacing:-.02em;
}

.settings-section{
  margin-bottom:14px;
}

.settings-section__title{
  margin:0 0 var(--heading-gap-h2);
  font-size:16px;
  font-weight:700;
}

.settings-section__hint{
  margin:0 0 14px;
}

#btn-delete-account{
  margin-bottom:14px;
}

.settings-tabs{
  --settings-tab-index:0;
  --settings-tabs-pad:3px;
  --settings-tabs-gap:2px;
  position:relative;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:var(--settings-tabs-gap);
  margin:0 0 16px;
  padding:var(--settings-tabs-pad);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
}

.settings-tabs__cursor{
  position:absolute;
  z-index:0;
  top:var(--settings-tabs-pad);
  bottom:var(--settings-tabs-pad);
  left:var(--settings-tabs-pad);
  width:calc((100% - 2 * var(--settings-tabs-pad) - 2 * var(--settings-tabs-gap)) / 3);
  border-radius:11px;
  background:rgba(99,102,241,.28);
  border:1px solid rgba(129,140,248,.45);
  box-shadow:0 0 18px rgba(99,102,241,.22);
  transform:translateX(calc(var(--settings-tab-index) * (100% + var(--settings-tabs-gap))));
  transition:transform .22s ease;
  pointer-events:none;
}

.settings-tabs__btn{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:44px;
  padding:8px 4px;
  border:none;
  border-radius:11px;
  background:transparent;
  color:rgba(255,255,255,.55);
  font-size:12px;
  font-weight:650;
  font-family:inherit;
  line-height:1.15;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:color .15s, opacity .15s;
}

.settings-tabs__icon{
  flex-shrink:0;
  font-size:14px;
  line-height:1;
}

.settings-tabs__label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.settings-tabs__btn--active{
  color:#fff;
}

.settings-tabs__btn--disabled,
.settings-tabs__btn:disabled{
  opacity:.38;
  cursor:not-allowed;
  pointer-events:none;
}

@media (hover:hover) and (pointer:fine){
  .settings-tabs__btn:not(:disabled):not(.settings-tabs__btn--disabled):hover{
    color:rgba(255,255,255,.85);
  }
}

.settings-party__actions{
  display:flex;
  flex-direction:column;
  gap:0;
}

.settings-party__danger{
  margin-top:10px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.settings-party__btn--danger{
  color:#fecaca;
  border-color:color-mix(in srgb,var(--color-primary-hot) 45%,transparent);
  background:color-mix(in srgb,var(--color-primary-hot) 12%,rgba(255,255,255,.02));
}

.settings-party__btn--danger:disabled{
  opacity:.45;
}

.feedback-prompt__hint{
  text-align:left;
  margin:0 0 16px;
  color:rgba(255,255,255,.55);
  line-height:1.45;
}

.feedback-prompt__hint strong{
  color:rgba(255,255,255,.82);
  font-weight:700;
}

.feedback-prompt__btn{
  margin-top:0;
}

.settings-instagram-link{
  color:rgba(255,255,255,.55);
  font-weight:650;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media (hover:hover) and (pointer:fine){
  .settings-instagram-link:hover{
    color:rgba(255,255,255,.85);
  }
}

.settings-social-hint{
  margin:0 0 20px;
  text-align:center;
}

.settings-ok{
  margin:0 0 10px;
  font-size:13px;
  color:#6EE7B7;
}

.btn--compact{
  width:auto;
  margin:12px 0 0;
  padding:10px 18px;
  font-size:14px;
}

.settings-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:4px;
  cursor:pointer;
}

.settings-toggle__label{
  font-size:15px;
  font-weight:600;
}

.settings-toggle__input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
  pointer-events:none;
}

.settings-toggle__track{
  position:relative;
  flex-shrink:0;
  width:48px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  transition:background .2s;
}

.settings-toggle__track::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s;
}

.settings-toggle__input:checked + .settings-toggle__track{
  background:var(--gradient-secondary);
}

.settings-toggle__input:checked + .settings-toggle__track::after{
  transform:translateX(20px);
}

.screen-bottom-spacer{
  min-height:max(72px, env(safe-area-inset-bottom, 0px));
  pointer-events:none;
}

.emoji-picker-preview{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.emoji-picker-preview__avatar{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  font-size:28px;
  background:rgba(96,165,250,.25);
  border:1px solid rgba(96,165,250,.35);
}

button.emoji-picker-preview__avatar{
  padding:0;
  margin:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s, border-color .15s, transform .1s;
}

button.emoji-picker-preview__avatar:hover{
  background:rgba(96,165,250,.35);
  border-color:rgba(96,165,250,.55);
}

button.emoji-picker-preview__avatar:active{
  transform:scale(.96);
}

.emoji-picker{
  display:grid;
  width:100%;
  box-sizing:border-box;
  grid-template-columns:repeat(auto-fit, minmax(min(44px, 100%), 1fr));
  gap:8px;
  margin-bottom:14px;
  overflow-x:hidden;
  padding:4px 2px;
}

.emoji-picker__btn{
  aspect-ratio:1;
  min-height:0;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  padding:0;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  font-size:clamp(18px, 5vw, 22px);
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color:transparent;
}

.emoji-picker__btn--active{
  background:rgba(139,92,246,.28);
  border-color:rgba(167,139,250,.5);
}

.emoji-picker__btn:active{
  transform:scale(.92);
}

.social-row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:20px;
}

.social-btn{
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
  font-size:18px;
  cursor:pointer;
}

.social-btn--facebook{
  background:#1877F2;
  border-color:rgba(24,119,242,.5);
  font-family:Georgia,serif;
  font-size:22px;
}

.social-btn--instagram{
  background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color:rgba(220,39,67,.4);
  font-size:20px;
}

.auth-social-hint{
  text-align:center;
  margin:-8px 0 16px;
}

.lobby-actions__intro{
  margin:4px 0 12px;
}

.lobby-actions{
  margin:8px 0 28px;
}

.join-row{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.join-input{
  flex:1;
  margin:0;
}

.join-btn{
  width:auto;
  margin:0;
  padding:14px 20px;
  white-space:nowrap;
}

.stats--global{
  grid-template-columns:1fr 1fr;
}

.stats--global .stat--banner{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 20px;
}

.stats--global .stat--banner > div:first-child{
  font-size:28px;
  line-height:1;
  flex-shrink:0;
}

.stats--global .stat--banner .stat-number{
  margin-top:0;
  font-size:clamp(32px,9vw,40px);
}

.stats--global .stat--banner .stat-label{
  margin-top:0;
  margin-left:auto;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.5);
}

.label-upper--muted{
  color:rgba(255,255,255,.3);
  margin-top:8px;
}

/* ─── Lobby v2 ─── */
.lobby-count{
  font-size:14px;
  color:rgba(255,255,255,.45);
  margin:8px 0 20px;
}

.participants-wrap{
  margin-bottom:20px;
}

.participants-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:clamp(12px,4vw,20px);
  padding:4px 0;
}

.participant{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:72px;
  opacity:.7;
  transition:opacity .25s;
}

.participant--ready{
  opacity:1;
}

.participant__avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  position:relative;
  border:3px solid rgba(255,255,255,.1);
}

.participant--ready .participant__avatar{
  border-color:#4ADE80;
  box-shadow:0 0 20px rgba(74,222,128,.25);
}

.participant__check{
  position:absolute;
  bottom:-2px;
  right:-2px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#4ADE80;
  color:#0D0F1E;
  font-size:12px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

.participant__avatar--editable{
  padding:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .15s, transform .1s, box-shadow .15s;
}

.participant__avatar--editable:hover{
  border-color:rgba(167,139,250,.6);
  box-shadow:0 0 18px rgba(139,92,246,.3);
}

.participant__avatar--editable:active{
  transform:scale(.94);
}

.participant__edit{
  position:absolute;
  bottom:-2px;
  right:-2px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#8B5CF6;
  color:#fff;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #0D0F1E;
}

.participant--ready .participant__edit{
  display:none;
}

.participant__name{
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.8);
}

.participant__kick{
  appearance:none;
  border:0;
  background:rgba(248,113,113,.18);
  color:#fecaca;
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  cursor:pointer;
  line-height:1.2;
}

.participant__kick:active{
  transform:scale(.97);
}

.invite-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:16px 18px;
  margin-bottom:14px;
}

.invite-card__label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:rgba(255,255,255,.4);
  margin:0 0 8px;
}

.invite-card__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.invite-code{
  font-size:32px;
  font-weight:900;
  letter-spacing:8px;
  background:linear-gradient(135deg,#FF6B6B,#FF3CAC);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.btn-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.7);
  font-size:18px;
  cursor:pointer;
}

.chat-box{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.chat-box__input{
  flex:1;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:15px;
}

.chat-box__send{
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  background:var(--gradient-secondary);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  flex-shrink:0;
  box-shadow:var(--shadow-secondary);
}

.btn-ready{
  width:100%;
  padding:18px;
  border-radius:18px;
  border:none;
  background:var(--gradient-secondary-deep);
  color:#fff;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:12px;
  box-shadow:var(--shadow-secondary);
}

.btn-ready--active{
  background:linear-gradient(135deg,#4ADE80,#22C55E);
  box-shadow:0 8px 28px rgba(74,222,128,.3);
}

.btn-start{
  width:100%;
  padding:18px;
  border-radius:18px;
  border:none;
  background:linear-gradient(135deg,#166534,#22C55E);
  color:#fff;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 8px 28px rgba(34,197,94,.25);
}

.btn-start--waiting{
  opacity:.45;
  cursor:not-allowed;
  transform:none!important;
}

.lobby-host-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

.lobby-host-hint{
  margin:0;
  text-align:center;
}

.lobby-footer{
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,.35);
  margin-top:16px;
}

/* ─── Récap soirée (menu jeux) ─── */
.evening-recap{
  margin-bottom:18px;
  padding:14px 16px;
}

.evening-recap--empty{
  text-align:center;
}

.evening-recap__title{
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(255,255,255,.55);
  margin:0 0 var(--heading-gap-h3);
}

.evening-recap__empty{
  font-size:14px;
  color:rgba(255,255,255,.75);
  margin:0 0 6px;
}

.evening-recap__meta{
  font-size:12px;
  color:rgba(255,255,255,.4);
  margin:0 0 10px;
}

.evening-recap__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.evening-recap__chip{
  font-size:12px;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.85);
}

.evening-recap__leader{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:rgba(255,255,255,.8);
  margin-bottom:6px;
}

.evening-recap__leader strong{
  color:#fff;
}

.evening-recap__leader-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  flex-shrink:0;
}

.evening-recap__last{
  font-size:12px;
  color:rgba(255,255,255,.45);
  margin:0 0 8px;
}

.evening-recap__restart{
  width:100%;
  margin:10px 0 24px;
}

.evening-recap__link{
  display:block;
  width:100%;
  margin-top:4px;
  padding:0;
  border:none;
  background:none;
  color:#C4B5FD;
  font-size:13px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

@media (hover:hover){
  .evening-recap__link:hover{
    color:#E9D5FF;
  }
}

/* ─── Jeux vignettes ─── */
.game-grid__label{
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.42);
  margin:20px 0 10px;
}

.game-grid__label:first-of-type{
  margin-top:16px;
}

.game-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:12px;
  row-gap:8px;
  margin-top:0;
  margin-bottom:4px;
  align-items:start;
}

.game-tile{
  border:none;
  border-radius:24px;
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  text-align:center;
  cursor:pointer;
  color:#fff;
  transition:transform .2s;
  position:relative;
  overflow:visible;
  min-width:0;
  width:100%;
  box-sizing:border-box;
}

.game-grid .game-tile.hot,
.game-grid .game-tile.traitre,
.game-grid .game-tile.guess,
.game-grid .game-tile.speed,
.game-grid .game-tile.trivia,
.game-grid .game-tile.dilemma,
.game-grid .game-tile.truth,
.game-grid .game-tile.consensus,
.game-grid .game-tile.tier,
.game-grid .game-tile.blindtest,
.game-grid .game-tile.wrong,
.game-grid .game-tile.clutch{
  background:transparent;
}

@media (hover:hover){
  .game-tile:hover:not(:disabled){
    transform:scale(1.03);
  }
}

.game-tile:active:not(:disabled){
  transform:scale(.97);
}

.game-tile--disabled{
  opacity:.72;
  cursor:not-allowed;
  filter:saturate(.55);
  pointer-events:none;
}

.game-tile--disabled .game-tile__logo-wrap{
  opacity:.85;
}

.game-tile--disabled .game-tile__title,
.game-tile--disabled .game-tile__desc{
  color:rgba(255,255,255,.55);
}

.game-tile__emoji{
  font-size:40px;
  z-index:1;
}

.game-tile__logo-wrap{
  --logo-border:linear-gradient(135deg, #FF6B6B 0%, #2B2D66 100%);
  position:relative;
  width:100%;
  flex-shrink:0;
  aspect-ratio:5 / 3;
  height:auto;
  padding:3.5px;
  border-radius:20px;
  background:var(--logo-border);
  border:none;
  z-index:1;
  box-sizing:border-box;
}

.game-tile__logo-inner{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  box-sizing:border-box;
  border-radius:16px;
  background:#0D0F1E;
  overflow:hidden;
}

.game-tile__logo-wrap--hot{
  --logo-border:linear-gradient(145deg, #FF6B6B 0%, #FF3CAC 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--guess{
  --logo-border:linear-gradient(200deg, #4ADE80 0%, #22D3EE 42%, #2B2D66 100%);
}

.game-tile__logo-wrap--tier{
  --logo-border:linear-gradient(320deg, #FBBF24 0%, #F97316 38%, #2B2D66 100%);
}

.game-tile__logo-wrap--speed{
  --logo-border:linear-gradient(145deg, #FBBF24 0%, #FF3CAC 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--trivia{
  --logo-border:linear-gradient(145deg, #A78BFA 0%, #22D3EE 44%, #2B2D66 100%);
}

.game-tile__logo-wrap--truth{
  --logo-border:linear-gradient(145deg, #34D399 0%, #60A5FA 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--consensus{
  --logo-border:linear-gradient(145deg, #22D3EE 0%, #A78BFA 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--dilemma{
  --logo-border:linear-gradient(145deg, #60A5FA 0%, #FF3CAC 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--blindtest{
  --logo-border:linear-gradient(145deg, #6366F1 0%, #818CF8 48%, #2B2D66 100%);
}

.game-tile__logo-wrap--traitre{
  --logo-border:linear-gradient(145deg, #F97316 0%, #EF4444 48%, #2B2D66 100%);
}

.game-tile__logo-inner--emoji{
  align-items:center;
  justify-content:center;
}

.game-tile__emoji--framed{
  font-size:36px;
  line-height:1;
}

.game-tile__logo{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.game-tile__emoji--fallback{
  font-size:32px;
  line-height:1;
}

.game-tile__text{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  z-index:1;
}

.game-tile__title{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
  width:100%;
  word-break:break-word;
}

.game-tile__desc{
  font-size:10px;
  color:rgba(255,255,255,.75);
  line-height:1.35;
  width:100%;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  overflow:hidden;
}

.game-tile .badge--soon{
  z-index:1;
  margin:0;
}

/* ─── Barre de navigation basse (persistante) ─── */
.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  z-index:100;
  display:grid;
  grid-template-columns:1fr 1fr auto 1fr 1fr;
  align-items:end;
  gap:2px;
  width:100%;
  max-width:var(--app-max);
  transform:translateX(-50%);
  padding:8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left:max(10px, env(safe-area-inset-left, 0px));
  padding-right:max(10px, env(safe-area-inset-right, 0px));
  background:linear-gradient(180deg, rgba(13,15,30,0) 0%, rgba(13,15,30,.97) 24%, #0D0F1E 100%);
  border-top:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.bottom-nav.bottom-nav--hidden{
  display:none !important;
}

.bottom-nav__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-height:52px;
  padding:4px 2px 2px;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.42);
  cursor:pointer;
  transition:color .2s;
  -webkit-tap-highlight-color:transparent;
}

@media (hover:hover){
  .bottom-nav__item:hover{
    color:rgba(255,255,255,.7);
  }
}

.bottom-nav__item--active{
  color:#fff;
}

.bottom-nav__item--active .bottom-nav__icon-wrap{
  background:rgba(99,102,241,.24);
  border-color:rgba(129,140,248,.4);
}

.bottom-nav__item--active .bottom-nav__label{
  color:var(--color-secondary-soft);
  font-weight:700;
}

/* Onglets scores verrouillés (joueur en prépa / en jeu) : grisés + non cliquables. */
.bottom-nav__item--disabled{
  opacity:.38;
  pointer-events:none;
  cursor:default;
}

.bottom-nav__icon-wrap{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  transition:background .2s, border-color .2s, transform .15s;
}

.bottom-nav__item:active .bottom-nav__icon-wrap{
  transform:scale(.94);
}

.bottom-nav__icon{
  font-size:22px;
  line-height:1;
}

.bottom-nav__label{
  font-size:10px;
  font-weight:600;
  letter-spacing:.03em;
  line-height:1.1;
  text-align:center;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Bouton central REVEAL - centré verticalement dans la barre */
.bottom-nav__item--logo{
  align-self:center;
  justify-content:center;
  min-height:0;
  height:auto;
  padding:4px 6px;
  gap:0;
}

.bottom-nav__logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex-shrink:0;
}

@media (hover:hover){
  .bottom-nav__item--logo:hover .bottom-nav__logo{
    opacity:.85;
  }
}

.bottom-nav__logo{
  display:block;
  width:auto;
  height:36px;
  max-width:40px;
  object-fit:contain;
  object-position:center;
}

.bottom-nav__item--logo:active .bottom-nav__logo{
  transform:scale(.94);
}

/* ─── Bouton chat soirée (FAB) ─── */
.feedback-fab{
  position:fixed;
  right:max(var(--page-pad), env(safe-area-inset-right, 0px));
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  z-index:110;
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(145deg, rgba(88,28,135,.92), rgba(13,15,30,.94));
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:transform .15s ease, opacity .2s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color:transparent;
}

.feedback-fab__icon{
  display:block;
  line-height:1;
}

.feedback-fab__badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:var(--color-primary);
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:18px;
  text-align:center;
  box-sizing:border-box;
  pointer-events:none;
}

body.has-bottom-nav .feedback-fab{
  bottom:calc(100px + env(safe-area-inset-bottom, 0px));
}

.feedback-fab--hidden{
  opacity:0;
  pointer-events:none;
  transform:scale(.85);
}

.feedback-fab:active{
  transform:scale(.92);
}

@media (hover:hover){
  .feedback-fab:hover{
    box-shadow:0 10px 28px rgba(0,0,0,.45);
  }
}

.feedback-modal__text{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.82);
}

/* ─── Chat sheet (Vague A) ─── */
.chat-sheet{
  position:fixed;
  inset:0;
  z-index:1400;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

.chat-sheet--in{
  opacity:1;
  pointer-events:auto;
}

.chat-sheet__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,6,15,.6);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.chat-sheet__panel{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:var(--app-max);
  height:min(65vh, 560px);
  max-height:calc(100dvh - 48px);
  margin:0 auto;
  border-radius:20px 20px 0 0;
  border:1px solid rgba(255,255,255,.12);
  border-bottom:none;
  background:linear-gradient(165deg, rgba(255,60,172,.1) 0%, rgba(13,15,30,.98) 42%);
  box-shadow:0 -12px 40px rgba(0,0,0,.45);
  transform:translateY(16px);
  transition:transform .22s ease;
  padding-bottom:max(10px, env(safe-area-inset-bottom, 0px));
  outline:none;
}

.chat-sheet--in .chat-sheet__panel{
  transform:translateY(0);
}

.chat-sheet__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 10px;
  flex-shrink:0;
}

.chat-sheet__title{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#fff;
}

.chat-sheet__close{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.85);
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.chat-sheet__messages{
  flex:1;
  min-height:0;
  max-height:none;
  margin:0 12px 10px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.chat-sheet__box{
  flex-shrink:0;
  margin:0 12px 8px;
}

/* ─── Actions chat (sondage + jeu aléatoire) ─── */
.chat-sheet__actions{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 12px 8px;
}

.chat-sheet__poll{
  flex-shrink:0;
  margin:0;
  overflow:visible;
}

.chat-sheet__poll[hidden]{
  display:none !important;
}

/* Liste / formulaire longs : borne vs viewport (pas % du parent actions,
   sinon hauteur trop basse → options coupées + mini-scrollbar). */
.chat-sheet__poll--scrollable{
  max-height:min(38vh, 280px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

.chat-sheet__random{
  flex-shrink:0;
  margin:0;
  overflow:visible;
}

.chat-sheet__random[hidden]{
  display:none !important;
}

/* CTA chat partagées : même layout, styles distincts (primary ≠ secondary) */
.lobby-poll-cta,
.chat-random-cta{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.lobby-poll__cta,
.chat-random-cta__btn{
  width:100%;
  margin-top:0;
  font-size:15px;
  font-weight:700;
  letter-spacing:0.01em;
  padding:12px 14px;
  min-height:var(--touch-min);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1.25;
  box-sizing:border-box;
}

/* Jeu aléatoire : rose adouci, opaque (lisible sur fond sombre) */
.chat-sheet__actions .chat-random-cta__btn.btn-primary{
  background:linear-gradient(135deg, #ff7a8a, #e84aad);
  box-shadow:0 6px 20px rgba(255, 60, 172, 0.22);
  color:#1a0a14;
  text-shadow:none;
  border:none;
}

/* Sondage : indigo color-secondary, opaque - même contraste texte sombre */
.chat-sheet__actions .lobby-poll__cta.btn-accent{
  margin-top:0;
  background:linear-gradient(135deg, #8b93f7, #6b6ff0);
  box-shadow:0 6px 20px rgba(99, 102, 241, 0.28);
  color:#1a0a14;
  text-shadow:none;
  border:none;
}

.chat-random-cta__icon{
  font-size:1.05em;
  line-height:1;
}

.chat-random-cta__label{
  font-size:inherit;
  font-weight:inherit;
}

/* Invité : visible mais atténué, sans rose saturé */
.chat-sheet__actions .chat-random-cta__btn.btn-primary:disabled{
  opacity:1;
  cursor:not-allowed;
  filter:none;
  transform:none;
  background:rgba(255, 90, 150, 0.28);
  box-shadow:none;
  color:rgba(255,255,255,.55);
}

/* ─── FEATURE-CHAT-03 roulette ─── */
.chat-roulette{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.chat-roulette--in{
  opacity:1;
  pointer-events:auto;
}

.chat-roulette--out{
  opacity:0;
  pointer-events:none;
}

.chat-roulette__backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,6,18,.72);
  backdrop-filter:blur(6px);
}

.chat-roulette__panel{
  position:relative;
  z-index:1;
  width:min(92vw, 360px);
  margin:16px;
  padding:22px 18px 20px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(165deg, rgba(28,22,58,.96), rgba(10,12,28,.98));
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  text-align:center;
  outline:none;
  transform:translateY(12px) scale(.98);
  transition:transform .22s ease;
}

.chat-roulette--in .chat-roulette__panel{
  transform:translateY(0) scale(1);
}

.chat-roulette__close{
  position:absolute;
  top:10px;
  right:12px;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.7);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:6px;
}

.chat-roulette__icon{
  margin:0 0 8px;
  font-size:34px;
  line-height:1;
}

.chat-roulette__headline{
  margin:0 0 18px;
  font-size:22px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.02em;
  color:#fff;
}

.chat-roulette__wait{
  margin:12px 0 0;
}

.chat-roulette__btn{
  min-width:160px;
}

.chat-roulette__actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  margin-top:16px;
}

.chat-roulette__actions--bridge{
  gap:8px;
}

.chat-roulette__voice{
  margin:14px 0 0;
  font-size:15px;
  font-weight:600;
  line-height:1.35;
  color:rgba(255,255,255,.82);
  text-align:center;
}

.chat-roulette__voice--bridge{
  margin-top:14px;
}

.chat-roulette__voice-title{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:rgba(255,255,255,.92);
}

.chat-roulette__voice-sub{
  margin:4px 0 0;
  font-size:14px;
  font-weight:500;
  color:rgba(255,255,255,.72);
}

.chat-roulette__reroll-link{
  margin-top:2px;
  padding:8px;
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.55);
  text-align:center;
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
}

.chat-roulette__reroll-link:hover{
  color:rgba(255,255,255,.8);
}

.chat-roulette__actions--bridge .btn-accent{
  /* Indigo adouci, lisible (même esprit que CTA chat) */
  background:linear-gradient(135deg, #8b93f7, #6b6ff0);
  color:#1a0a14;
  box-shadow:0 6px 18px rgba(99, 102, 241, 0.22);
}

.chat-roulette__actions--bridge .btn-primary{
  background:linear-gradient(135deg, #ff7a8a, #e84aad);
  color:#1a0a14;
  box-shadow:0 6px 18px rgba(255, 60, 172, 0.2);
}

.chat-roulette__result-label{
  margin:0 0 12px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
}

.chat-roulette__winner{
  display:flex;
  justify-content:center;
  align-items:stretch;
  width:100%;
  margin:0 auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  background:linear-gradient(90deg, rgba(255,60,172,.18), rgba(167,139,250,.2));
  box-shadow:0 0 0 1px rgba(255,60,172,.12) inset;
}

.chat-roulette__winner .chat-roulette__card,
.chat-roulette__winner .chat-roulette__card--winner{
  width:100%;
  background:transparent;
}

.chat-roulette__winner--pop{
  animation:chat-roulette-pop .55s cubic-bezier(.2,.9,.2,1) both;
}

.chat-roulette__winner--pop .chat-roulette__card{
  animation:none;
}

@keyframes chat-roulette-pop{
  0%{ transform:scale(.92); filter:brightness(.9); }
  60%{ transform:scale(1.06); filter:brightness(1.08); }
  100%{ transform:scale(1); filter:brightness(1); }
}

.chat-roulette__viewport{
  position:relative;
  overflow:hidden;
  margin:4px auto 0;
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.28);
}

.chat-roulette__reel{
  will-change:transform;
}

.chat-roulette__card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:76px;
  padding:0 14px;
  box-sizing:border-box;
  font-size:18px;
  font-weight:800;
  color:#fff;
}

.chat-roulette__card-emoji{
  font-size:22px;
  line-height:1;
}

.chat-roulette__card--winner{
  background:linear-gradient(90deg, rgba(255,60,172,.18), rgba(167,139,250,.2));
}

.chat-roulette__fade{
  position:absolute;
  left:0;
  right:0;
  height:28px;
  pointer-events:none;
  z-index:2;
}

.chat-roulette__fade--top{
  top:0;
  background:linear-gradient(to bottom, rgba(8,10,24,.92), transparent);
}

.chat-roulette__fade--bottom{
  bottom:0;
  background:linear-gradient(to top, rgba(8,10,24,.92), transparent);
}

.chat-roulette__center-line{
  position:absolute;
  left:8px;
  right:8px;
  top:50%;
  height:76px;
  margin-top:-38px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 0 0 1px rgba(255,60,172,.12) inset;
  pointer-events:none;
  z-index:1;
}

.chat-roulette__reactions{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
  max-width:320px;
  margin:12px auto 4px;
}

.chat-roulette__reactions--disabled{
  opacity:.55;
  pointer-events:none;
}

.chat-roulette__reaction{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.chat-roulette__reaction:hover:not(:disabled){
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.07);
}

.chat-roulette__reaction:focus-visible{
  outline:2px solid rgba(255,120,200,.85);
  outline-offset:2px;
}

.chat-roulette__reaction--active{
  border-color:rgba(255,60,172,.65);
  background:rgba(255,60,172,.14);
  box-shadow:0 0 0 1px rgba(255,60,172,.2) inset;
}

.chat-roulette__reaction-label{
  flex:1;
  min-width:0;
}

.chat-roulette__reaction-count{
  flex:0 0 auto;
  min-width:1.5em;
  font-variant-numeric:tabular-nums;
  font-weight:800;
  opacity:.9;
}

.chat-roulette__reaction-count--pop{
  animation:chat-roulette-reaction-pop .18s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes chat-roulette-reaction-pop{
  0%{ transform:scale(1); }
  45%{ transform:scale(1.22); }
  100%{ transform:scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .chat-roulette__reaction-count--pop{
    animation:none;
  }
}

.lobby-poll{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,10,24,.72);
}

.lobby-poll__question{
  margin:0 0 4px;
  font-size:14px;
  font-weight:800;
  color:#fff;
}

.lobby-poll__hint,
.lobby-poll__tally,
.lobby-poll__leader{
  margin:0 0 8px;
  font-size:12px;
}

.lobby-poll__picks,
.lobby-poll__votes{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:8px;
}

.lobby-poll__opt{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#fff;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.lobby-poll__opt--pick{
  cursor:pointer;
}

.lobby-poll__opt--vote:disabled,
.lobby-poll__submit:disabled,
.lobby-poll__close:disabled{
  opacity:.55;
  cursor:default;
}

.lobby-poll__opt--mine{
  border-color:rgba(255,60,172,.55);
  background:rgba(255,60,172,.14);
}

.lobby-poll__emoji{
  flex-shrink:0;
  font-size:16px;
}

.lobby-poll__title{
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:650;
}

.lobby-poll__count{
  flex-shrink:0;
  font-size:13px;
  font-weight:800;
  color:rgba(255,255,255,.85);
}

.lobby-poll__submit{
  width:100%;
}

.lobby-poll__actions{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:stretch;
}

.lobby-poll__cancel{
  font-size:12px;
  align-self:center;
}

.lobby-poll__close{
  display:inline-block;
  margin-top:2px;
  font-size:12px;
}

.feedback-fab__badge--poll{
  min-width:14px;
  width:14px;
  height:14px;
  padding:0;
  border-radius:50%;
  background:#FF3CAC;
  box-shadow:0 0 0 2px rgba(10,12,28,.9);
}


/* ─── Game enhancements ─── */
.hot-take-author{
  font-size:12px;
  color:rgba(255,255,255,.55);
  margin:0 0 8px;
}

.theme-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.theme-chip{
  padding:10px 14px;
  min-height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.7);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  touch-action:manipulation;
}

.theme-chip:active{
  transform:scale(.97);
}

.theme-chip:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.theme-chips--rounds{
  margin-bottom:12px;
}

.hot-take-duration{
  font-size:15px;
  font-weight:700;
  margin:0 0 8px;
  line-height:1.4;
}

.hot-take-duration .muted{
  font-weight:500;
  font-size:12px;
}

.theme-chip--active{
  background:rgba(255,107,107,.2);
  border-color:rgba(255,107,107,.4);
  color:#fff;
}

.vote-buttons--wrap{
  flex-wrap:wrap;
}

.vote-buttons--wrap .vote-btn{
  flex:1 1 45%;
  min-width:120px;
}

.statements--readonly .statement{
  cursor:default;
}

.text-ok{ color:#4ADE80; font-weight:800; }
.text-fail{ color:#F87171; }

.lobby-status-hint{
  margin-bottom:12px;
}

.intermission-label{
  text-align:center;
  color:rgba(255,255,255,.5);
  font-size:14px;
  margin:8px 0 4px;
}

.intermission-wrap--hot{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:20px 0 8px;
}

.intermission-wrap--hot .intermission-ring{
  display:block;
}

.intermission-wrap__title{
  margin:12px 0 4px;
  font-size:16px;
  font-weight:800;
  color:#fff;
}

/* ─── Guess Lie : menteur en attente ─── */
.liar-stage{
  position:relative;
  text-align:center;
  padding:28px 16px 24px;
  margin:12px 0;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(167,139,250,.15),rgba(244,114,182,.08));
  border:1px solid rgba(167,139,250,.35);
  overflow:hidden;
}

.liar-stage__pulse{
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle,rgba(167,139,250,.25) 0%,transparent 65%);
  animation:liar-pulse 2s ease-in-out infinite;
  pointer-events:none;
}

.liar-stage__badge{
  position:relative;
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#C4B5FD;
  margin:0 0 8px;
  animation:liar-nervous 1.2s ease-in-out infinite;
}

.liar-stage__title{
  position:relative;
  font-size:20px;
  font-weight:800;
  margin:0 0 12px;
}

.liar-stage__secret{
  position:relative;
  font-size:14px;
  color:rgba(255,255,255,.75);
  margin:12px 0 16px;
}

.liar-stage__secret strong{
  color:#FBBF24;
}

.timer--liar{
  position:relative;
  font-size:clamp(32px,10vw,42px);
  font-weight:900;
  line-height:1;
  margin:8px 0;
}

.timer--urgent{
  color:#F87171;
  animation:timer-shake .4s ease-in-out infinite;
}

.liar-stage__detectives{
  position:relative;
  display:flex;
  justify-content:center;
  gap:20px;
  font-size:28px;
  margin-top:8px;
}

.liar-detective{
  display:inline-block;
  animation:liar-bounce 1.4s ease-in-out infinite;
}

.liar-detective--2{ animation-delay:.25s; }
.liar-detective--3{ animation-delay:.5s; }

.liar-stage__scan{
  position:absolute;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,transparent,rgba(96,165,250,.8),transparent);
  animation:liar-scan 2.2s linear infinite;
  pointer-events:none;
}

@keyframes liar-pulse{
  0%,100%{ transform:scale(.9); opacity:.6; }
  50%{ transform:scale(1.1); opacity:1; }
}

@keyframes liar-nervous{
  0%,100%{ transform:rotate(-1deg); }
  50%{ transform:rotate(1deg); }
}

@keyframes liar-bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}

@keyframes liar-scan{
  0%{ top:0; opacity:0; }
  10%{ opacity:1; }
  90%{ opacity:1; }
  100%{ top:100%; opacity:0; }
}

@keyframes timer-shake{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.06); }
}

/* ─── Mobile only (fin) ─── */
@media (min-width:431px){
  body{
    box-shadow:
      0 0 0 1px rgba(255,255,255,.07),
      0 24px 80px rgba(0,0,0,.45);
  }
}

@media (max-width:360px){
  .game-grid{
    column-gap:10px;
    row-gap:6px;
  }

  .game-tile{
    padding:12px;
    border-radius:20px;
  }

  .game-tile__emoji{
    font-size:32px;
  }

  .game-tile__logo-wrap{
    width:100%;
    padding:3px;
    border-radius:18px;
  }

  .game-tile__logo-inner{
    padding:6px 12px;
    border-radius:14px;
  }

  .game-tile__title{
    font-size:13px;
  }

  .auth-tabs{
    gap:6px;
  }

  .auth-tab{
    font-size:12px;
    padding:8px 6px;
  }

  .card{
    padding:16px;
    border-radius:20px;
  }

  .participants-grid{
    gap:10px;
  }

  .participant{
    min-width:64px;
  }

  .participant__avatar{
    width:56px;
    height:56px;
    font-size:24px;
  }
}

body{
  overscroll-behavior-y:none;
}

.join-input,
.chat-box__input{
  font-size:16px;
}

.lie-pick{
  min-width:var(--touch-min);
  min-height:var(--touch-min);
}

.quick-tier-btn{
  min-height:var(--touch-min);
}

.game-card,
.game-tile,
.theme-chip,
.lie-pick{
  -webkit-tap-highlight-color:transparent;
}

@supports (height:100dvh){
  .page,
  #app,
  body{
    min-height:100dvh;
  }
}

/* -- Pop-up REVEAL -- */
.app-dialog{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}

.app-dialog--in{ opacity:1; pointer-events:auto; }
.app-dialog--out{ opacity:0; }

.app-dialog__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,6,15,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.app-dialog__panel{
  position:relative;
  z-index:1;
  width:100%;
  max-width:340px;
  padding:28px 24px 24px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(
    165deg,
    rgba(255,107,107,.18) 0%,
    rgba(255,60,172,.08) 28%,
    rgba(13,15,30,.97) 55%
  );
  box-shadow:
    0 0 0 1px rgba(255,60,172,.12),
    0 24px 64px rgba(0,0,0,.55);
  text-align:center;
  transform:scale(.94) translateY(8px);
  transition:transform .28s cubic-bezier(.34,1.4,.64,1);
}

.app-dialog--in .app-dialog__panel{
  transform:scale(1) translateY(0);
}

.app-dialog--out .app-dialog__panel{
  transform:scale(.96) translateY(4px);
}

.app-dialog__glow{
  position:absolute;
  top:-40px;
  right:-30px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:#ff3cac;
  filter:blur(48px);
  opacity:.35;
  pointer-events:none;
}

.app-dialog__icon{
  font-size:32px;
  line-height:1;
  margin:0 0 12px;
}

.app-dialog__title{
  margin:0 0 10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#FF6B6B;
}

.app-dialog__message{
  margin:0 0 22px;
  font-size:15px;
  font-weight:500;
  line-height:1.55;
  color:rgba(255,255,255,.88);
  white-space:pre-line;
}

.app-dialog__btn{
  max-width:200px;
  margin:0 auto;
}

.app-dialog__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.app-dialog__actions .app-dialog__btn{
  flex:1 1 120px;
  max-width:none;
  margin:0;
}

.app-dialog__input{
  width:100%;
  margin:0 0 10px;
  text-align:left;
}

.app-dialog__field-error{
  margin:-4px 0 14px;
  font-size:13px;
  font-weight:600;
  color:#f87171;
  text-align:left;
}

/* ─── Modale Règles (contenu riche) ─── */
.app-dialog__panel--rich{
  max-width:420px;
  text-align:left;
}

.app-dialog__panel--rich .app-dialog__icon,
.app-dialog__panel--rich .app-dialog__title{
  text-align:center;
}

.app-dialog__panel--rich .app-dialog__title{
  color:#fff;
  font-size:15px;
  letter-spacing:.02em;
  text-transform:none;
}

.app-dialog__rich{
  max-height:min(56vh, 460px);
  overflow-y:auto;
  margin:4px 0 20px;
  padding-right:6px;
  -webkit-overflow-scrolling:touch;
}

.app-dialog__menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.app-dialog__menu-btn{
  width:100%;
  max-width:none;
  margin:0;
  justify-content:flex-start;
  text-align:left;
}

.app-dialog__menu-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.app-dialog__menu-btn--danger{
  color:#fecaca;
  border-color:color-mix(in srgb,var(--color-primary-hot) 45%,transparent);
  background:color-mix(in srgb,var(--color-primary-hot) 12%,rgba(255,255,255,.02));
}

.lobby-manage__count{
  margin:-4px 0 8px !important;
  font-size:14px;
  color:rgba(255,255,255,.65);
}

.lobby-manage__list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.lobby-manage__row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.lobby-manage__avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:18px;
}

.lobby-manage__name{
  flex:1;
  min-width:0;
  font-weight:600;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.lobby-manage__badge{
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(167,139,250,.95);
  background:rgba(167,139,250,.18);
  padding:2px 7px;
  border-radius:999px;
}

.lobby-manage__kick{
  flex-shrink:0;
}

.rules-modal__but{
  margin:0 0 16px;
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  color:rgba(255,255,255,.92);
}

.rules-modal__section{
  margin:16px 0 6px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#FF6B6B;
}

.rules-modal__list{
  margin:0;
  padding-left:20px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.rules-modal__list li{
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.85);
}

.rules-modal__example{
  margin:0;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  font-size:14px;
  line-height:1.5;
  font-style:italic;
  color:rgba(255,255,255,.82);
}

/* ─── Bouton Règles (en-tête des écrans de paramétrage) ─── */
.screen-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.rules-btn{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.9);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}

.rules-btn:active{ transform:scale(.95); }

@media (hover:hover){
  .rules-btn:hover{ background:rgba(255,255,255,.14); }
}

.rules-btn__icon{ font-size:14px; line-height:1; }

/* ─── Icône Règles sur les cartes de jeu ─── */
.game-tile-cell{
  position:relative;
  display:flex;
}

.game-tile-cell .game-tile{
  width:100%;
}

.rules-icon-btn{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  width:24px;
  height:24px;
  border-radius:50%;
  border:none;
  background:rgba(5,6,15,.5);
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.rules-icon-btn:active{ transform:scale(.9); }

@media (hover:hover){
  .rules-icon-btn:hover{ background:rgba(5,6,15,.75); }
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ─── TruthMeter ─── */
.truth-meter__affirmation-card{
  text-align:center;
  margin-bottom:16px;
}

.truth-meter__slider-wrap{
  margin:20px 0;
  text-align:center;
  /* pan-y : on laisse le scroll vertical de la page, le réglage horizontal est géré en JS. */
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
}

.truth-meter__question{
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.75);
  margin:0 0 12px;
}

.truth-meter__pct{
  font-size:42px;
  font-weight:900;
  line-height:1;
  margin:0 0 4px;
  color:#fff;
}

.truth-meter__pct--lg{
  font-size:52px;
}

.truth-meter__label{
  font-size:16px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#34D399;
  margin:0 0 16px;
}

.truth-meter__range-labels{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.45);
  margin:0 0 8px;
  padding:0 4px;
}

.truth-meter__range{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:36px;
  margin:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  touch-action:pan-y;
}

.truth-meter__range:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.truth-meter__range::-webkit-slider-runnable-track{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
}

.truth-meter__range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:28px;
  height:28px;
  margin-top:-10px;
  border-radius:50%;
  background:#34D399;
  border:3px solid #fff;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
  cursor:grab;
}

.truth-meter__range:active::-webkit-slider-thumb{
  cursor:grabbing;
  transform:scale(1.06);
}

.truth-meter__range::-moz-range-track{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
}

.truth-meter__range::-moz-range-thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#34D399;
  border:3px solid #fff;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
  cursor:grab;
}

.truth-meter__range:focus{
  outline:none;
}

.truth-meter__range:focus-visible::-webkit-slider-thumb{
  box-shadow:0 0 0 3px rgba(52,211,153,.45),0 2px 10px rgba(0,0,0,.35);
}

.truth-meter__hint{
  margin-top:12px;
}

.truth-meter__waiting{
  text-align:center;
  padding:24px 0;
}

.truth-meter__suspense{
  text-align:center;
  padding:40px 16px;
}

.truth-meter__suspense-title{
  font-size:20px;
  font-weight:800;
  margin:0 0 20px;
}

.truth-meter__suspense-pulse{
  width:64px;
  height:64px;
  margin:0 auto;
  border-radius:50%;
  background:linear-gradient(135deg,#34D399,#60A5FA);
  animation:truth-meter-pulse 1s ease-in-out infinite;
}

@keyframes truth-meter-pulse{
  0%,100%{ transform:scale(.9); opacity:.7; }
  50%{ transform:scale(1.08); opacity:1; }
}

.truth-meter__gauge{
  padding:20px 16px 24px;
  margin-bottom:16px;
}

.truth-meter__gauge-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:rgba(255,255,255,.45);
  margin:0 0 8px;
  text-align:center;
}

.truth-meter__gauge-track{
  position:relative;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  margin:16px 0 8px;
  overflow:visible;
}

.truth-meter__gauge-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#EF4444 0%,#FBBF24 50%,#34D399 100%);
  transition:none;
}

.truth-meter__gauge-pin{
  position:absolute;
  top:50%;
  width:18px;
  height:18px;
  margin:-9px 0 0 -9px;
  border-radius:50%;
  background:#fff;
  border:3px solid #A78BFA;
  box-shadow:0 0 12px rgba(167,139,250,.8);
  z-index:2;
  transition:opacity .35s ease;
}

.truth-meter__spread{
  margin:16px 0;
}

.truth-meter__spread-row{
  display:grid;
  grid-template-columns:minmax(72px,1fr) 1fr 40px;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.truth-meter__spread-row--author{
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.12);
}

.truth-meter__spread-name{
  font-size:13px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.truth-meter__spread-track{
  position:relative;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.truth-meter__spread-dot{
  position:absolute;
  top:50%;
  width:12px;
  height:12px;
  margin:-6px 0 0 -6px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.35);
}

.truth-meter__spread-dot--author{
  background:#fff;
  border-color:#A78BFA;
  width:14px;
  height:14px;
  margin:-7px 0 0 -7px;
}

.truth-meter__spread-val{
  font-size:12px;
  font-weight:700;
  text-align:right;
  color:rgba(255,255,255,.55);
}

/* -- Dilemma -- */
.timer--dilemma{
  color:#FF3CAC;
  text-shadow:0 0 24px rgba(255,60,172,.4);
}

.dilemma__card{
  text-align:center;
  padding:20px 16px;
  margin-bottom:16px;
}

.dilemma__label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:rgba(255,255,255,.45);
  margin:0 0 6px;
}

.dilemma__option{
  font-size:clamp(18px,5vw,22px);
  font-weight:900;
  line-height:1.25;
  margin:0 0 12px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.dilemma__option--a{ color:#60A5FA; }
.dilemma__option--b{ color:#FF6B6B; }

.dilemma__vs{
  display:block;
  margin:8px auto 12px;
  width:45px;
  height:45px;
  object-fit:contain;
}

.dilemma__taps{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}

.dilemma__tap{
  min-height:72px;
  border-radius:16px;
  border:2px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  position:relative;
  transition:transform .1s,border-color .15s,background .15s;
}

.dilemma__tap:active:not(:disabled){ transform:scale(.97); }

.dilemma__tap--a.dilemma__tap--picked{
  border-color:#60A5FA;
  background:rgba(96,165,250,.18);
  box-shadow:0 0 20px rgba(96,165,250,.25);
}

.dilemma__tap--b.dilemma__tap--picked{
  border-color:#FF6B6B;
  background:rgba(255,107,107,.18);
  box-shadow:0 0 20px rgba(255,107,107,.25);
}

.dilemma__tap:disabled{ opacity:.85; cursor:default; }

.dilemma__tap-check{
  position:absolute;
  top:8px;
  right:10px;
  font-size:18px;
}

.dilemma__result-row{
  margin-bottom:14px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.dilemma__result-row--winner{
  border:1px solid rgba(255,60,172,.45);
  background:rgba(255,60,172,.08);
}

.dilemma__result-head{
  display:flex;
  justify-content:space-between;
  font-weight:800;
  margin-bottom:8px;
}

.dilemma__pct{ font-size:18px; color:#FF3CAC; }

.dilemma__bar-a{ background:linear-gradient(90deg,#60A5FA,#3B82F6); }
.dilemma__bar-b{ background:linear-gradient(90deg,#FF6B6B,#FF3CAC); }

.dilemma__divided{
  text-align:center;
  font-weight:900;
  font-size:14px;
  color:#FBBF24;
  margin:0 0 12px;
  animation:dilemma-pulse 1s ease infinite;
}

@keyframes dilemma-pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.65; }
}

.dilemma__choice-tag{
  font-weight:900;
  font-size:12px;
  padding:2px 8px;
  border-radius:8px;
}

.dilemma__choice-tag--A{ background:rgba(96,165,250,.25); color:#93C5FD; }
.dilemma__choice-tag--B{ background:rgba(255,107,107,.25); color:#FCA5A5; }

.take-list,
.dilemma-custom-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.dilemma-custom-list li,
.dilemma-custom-list__item{
  font-size:13px;
  line-height:1.4;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}

.dilemma-custom-list__item{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
}

.dilemma-custom-list__remove{
  margin-left:auto;
  font-size:12px;
  color:rgba(255,255,255,.55);
}

.dilemma-custom-list__a{ color:#93C5FD; font-weight:700; }
.dilemma-custom-list__b{ color:#FCA5A5; font-weight:700; }
.dilemma-custom-list__vs{
  font-size:10px;
  font-weight:900;
  color:rgba(255,60,172,.85);
  margin:0 4px;
}

.host-notice-toast{
  position:fixed;
  top:calc(8px + env(safe-area-inset-top, 0px));
  left:50%;
  z-index:1300;
  box-sizing:border-box;
  width:calc(100% - 2 * max(var(--page-pad), env(safe-area-inset-left, 0px)));
  max-width:var(--app-max);
  transform:translateX(-50%) translateY(-12px);
  pointer-events:none;
  opacity:0;
  transition:opacity .3s ease, transform .3s ease;
}

.host-notice-toast--in{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.host-notice-toast__inner{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(250,204,21,.5);
  background:linear-gradient(135deg, rgba(16,24,40,.96), rgba(120,53,15,.92));
  box-shadow:0 8px 32px rgba(0,0,0,.45);
  pointer-events:auto;
}

.host-notice-toast__emoji{
  font-size:24px;
  flex-shrink:0;
}

.host-notice-toast__text{
  flex:1;
  min-width:0;
}

.host-notice-toast__title{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#FACC15;
}

.host-notice-toast__sub{
  margin:2px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.65);
}

.host-notice-toast__close{
  flex-shrink:0;
  width:32px;
  height:32px;
  border:none;
  border-radius:8px;
  background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.8);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

/* Bandeau min joueurs (Traître) */
.prep-min-players{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:14px 0 18px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(251,191,36,.45);
  background:linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.08));
  box-shadow:0 0 24px rgba(251,191,36,.12);
}

.prep-min-players--ok{
  border-color:rgba(110,231,183,.4);
  background:linear-gradient(135deg, rgba(110,231,183,.14), rgba(74,222,128,.06));
  box-shadow:0 0 20px rgba(110,231,183,.1);
}

.prep-min-players__icon{
  font-size:28px;
  line-height:1;
  flex-shrink:0;
}

.prep-min-players__title{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  color:#FCD34D;
}

.prep-min-players--ok .prep-min-players__title{
  color:#6EE7B7;
}

.prep-min-players__detail{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.88);
}

.prep-min-players__detail strong{
  color:#FDE68A;
  font-weight:800;
}

.prep-min-players--ok .prep-min-players__detail strong{
  color:#A7F3D0;
}

/* -- Trivia -- */
.trivia-question-card{
  margin-bottom:14px;
}

.trivia-question-card__theme{
  margin:0 0 10px;
  font-size:12px;
  font-weight:800;
  color:#A78BFA;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.trivia-question-card__wait{
  margin:14px 0 0;
  text-align:center;
}

.trivia-answer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:16px;
}

.trivia-answer-btn{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:16px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:#fff;
  text-align:left;
  transition:transform .14s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.trivia-answer-btn:active{
  transform:scale(.98);
}

.trivia-answer-btn--correct{
  border-color:rgba(74,222,128,.75);
  background:rgba(74,222,128,.14);
  box-shadow:0 0 0 1px rgba(74,222,128,.25);
}

.trivia-answer-btn--wrong{
  border-color:rgba(248,113,113,.75);
  background:rgba(248,113,113,.12);
  box-shadow:0 0 0 1px rgba(248,113,113,.22);
}

.trivia-answer-btn__mark{
  margin-left:auto;
  font-weight:800;
  font-size:18px;
  line-height:1;
}

.trivia-answer-btn__mark--ok{
  color:#4ADE80;
}

.trivia-answer-btn__mark--ko{
  color:#F87171;
}

.trivia-your-result{
  margin-bottom:14px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.1);
}

.trivia-your-result--ok{
  background:rgba(74,222,128,.1);
  border-color:rgba(74,222,128,.35);
}

.trivia-your-result--ko{
  background:rgba(248,113,113,.08);
  border-color:rgba(248,113,113,.3);
}

.trivia-your-result__title{
  margin:0 0 6px;
  font-weight:800;
  font-size:1.05rem;
}

.trivia-your-result--ok .trivia-your-result__title{
  color:#4ADE80;
}

.trivia-your-result--ko .trivia-your-result__title{
  color:#F87171;
}

.trivia-your-result__points{
  margin:8px 0 0;
  font-weight:700;
  color:#4ADE80;
}

.trivia-your-result__points--none{
  color:rgba(255,255,255,.55);
  font-weight:600;
}

.trivia-answer-btn--active{
  border-color:rgba(167,139,250,.95);
  background:rgba(167,139,250,.32);
  box-shadow:0 0 0 2px rgba(167,139,250,.5), 0 4px 16px rgba(139,92,246,.3);
  transform:scale(1.02);
}

.trivia-answer-btn__letter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex-shrink:0;
  border-radius:999px;
  background:rgba(34,211,238,.18);
  color:#67E8F9;
  font-weight:900;
}

.trivia-answer-btn__text{
  flex:1;
  min-width:0;
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}

.trivia-answer-btn__check{
  color:#4ADE80;
  font-size:18px;
  font-weight:900;
}

.trivia-timer-wrap{
  margin-bottom:12px;
}

.trivia-reveal-card{
  margin-bottom:16px;
}

.trivia-reveal-card__answer{
  margin:8px 0 12px;
  font-size:24px;
  line-height:1.25;
  font-weight:900;
  color:#67E8F9;
}

.trivia-delta-list{
  display:grid;
  gap:8px;
  margin-top:14px;
}

.trivia-delta-list__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.trivia-scoreboard{
  margin-top:12px;
}

.trivia-scoreboard__row--bump{
  animation:trivia-score-bump .35s ease;
}

.trivia-scoreboard__delta{
  margin-right:10px;
  font-size:12px;
  font-weight:900;
  color:#4ADE80;
}

.trivia-results__podium{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.trivia-results__summary{
  margin:8px 0 0;
}

.trivia-results__row{
  position:relative;
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  overflow:hidden;
}

.trivia-results__row--winner{
  border:1px solid rgba(251,191,36,.35);
  background:linear-gradient(135deg, rgba(251,191,36,.12), rgba(167,139,250,.12));
}

.trivia-results__row--champion{
  box-shadow:0 12px 36px rgba(251,191,36,.18);
}

.trivia-results__medal{
  position:relative;
  z-index:1;
  font-size:20px;
  line-height:1;
}

.trivia-results__name{
  position:relative;
  z-index:1;
  min-width:0;
}

.trivia-results__score,
.trivia-results__bonus{
  position:relative;
  z-index:1;
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.78);
}

.trivia-results__confetti{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.9;
}

.trivia-results__confetti span{
  position:absolute;
  top:-10px;
  width:8px;
  height:14px;
  border-radius:999px;
  animation:trivia-confetti-fall 2.4s ease-in infinite;
}

.trivia-results__confetti span:nth-child(1){
  left:8%;
  background:#FBBF24;
  animation-delay:0s;
}

.trivia-results__confetti span:nth-child(2){
  left:24%;
  background:#22D3EE;
  animation-delay:.25s;
}

.trivia-results__confetti span:nth-child(3){
  left:41%;
  background:#A78BFA;
  animation-delay:.5s;
}

.trivia-results__confetti span:nth-child(4){
  left:58%;
  background:#FB7185;
  animation-delay:.15s;
}

.trivia-results__confetti span:nth-child(5){
  left:74%;
  background:#4ADE80;
  animation-delay:.4s;
}

.trivia-results__confetti span:nth-child(6){
  left:90%;
  background:#F59E0B;
  animation-delay:.65s;
}

.trivia-results__bonus{
  grid-column:4;
}

.trivia-results__actions{
  margin-top:18px;
}

@keyframes trivia-score-bump{
  0%{ transform:translateY(0); }
  50%{ transform:translateY(-4px); }
  100%{ transform:translateY(0); }
}

@keyframes trivia-confetti-fall{
  0%{ transform:translateY(-18px) rotate(0deg); opacity:0; }
  12%{ opacity:1; }
  100%{ transform:translateY(88px) rotate(240deg); opacity:0; }
}

@media (min-width:640px){
  .trivia-answer-grid{
    grid-template-columns:1fr 1fr;
  }
}

.consensus-question-card{
  background:linear-gradient(135deg, rgba(34,211,238,.16), rgba(167,139,250,.14));
  border-color:rgba(34,211,238,.26);
}

.consensus-question-card__objective{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(15,23,42,.28);
  border:1px solid rgba(255,255,255,.08);
}

.consensus-question-card__objective-title{
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#FDE68A;
}

.consensus-question-card__objective-body{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.45;
}

.consensus-slider{
  margin-top:8px;
}

.consensus-slider__sub{
  text-align:center;
  color:rgba(255,255,255,.55);
  font-size:13px;
  margin:-4px 0 10px;
}

.consensus-slider__ticks{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:6px;
  margin:8px 0 0;
  font-size:11px;
  color:rgba(255,255,255,.36);
}

.consensus-slider__ticks span:nth-child(2),
.consensus-slider__ticks span:nth-child(3),
.consensus-slider__ticks span:nth-child(4){
  text-align:center;
}

.consensus-slider__ticks span:last-child{
  text-align:right;
}

.consensus-timer{
  color:#22D3EE;
  text-shadow:0 0 24px rgba(34,211,238,.35);
}

.consensus-pending{
  margin-top:20px;
}

.consensus-reveal-card{
  margin-top:18px;
}

.consensus-stage{
  position:relative;
  overflow:hidden;
  margin-top:14px;
  background:
    radial-gradient(circle at top center, rgba(34,211,238,.12), transparent 52%),
    rgba(255,255,255,.05);
}

.consensus-stage::before{
  content:"";
  position:absolute;
  inset:-40% -10% auto;
  height:120px;
  background:radial-gradient(circle, rgba(167,139,250,.12), transparent 62%);
  pointer-events:none;
}

.consensus-stage__hero{
  position:relative;
  text-align:center;
  margin-bottom:18px;
  z-index:1;
}

.consensus-stage__hero-value{
  font-size:52px;
  font-weight:900;
  line-height:1;
  letter-spacing:-2px;
  color:#22D3EE;
  text-shadow:0 0 26px rgba(34,211,238,.22);
  margin:0;
}

.consensus-stage__hero-sub{
  margin:8px 0 0;
  color:rgba(255,255,255,.54);
  font-size:13px;
}

.consensus-stage__track-wrap{
  position:relative;
  z-index:1;
}

.consensus-stage__track{
  position:relative;
  height:92px;
  border-radius:18px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.05) 0%,
      rgba(255,255,255,.02) 25%,
      rgba(255,255,255,.08) 50%,
      rgba(255,255,255,.02) 75%,
      rgba(255,255,255,.05) 100%);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}

.consensus-stage__track::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  background:rgba(255,255,255,.12);
}

.consensus-stage__band{
  position:absolute;
  top:18px;
  bottom:18px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(34,211,238,.12), rgba(167,139,250,.18));
  box-shadow:0 0 18px rgba(34,211,238,.12);
}

.consensus-stage__guide{
  position:absolute;
  top:8px;
  bottom:8px;
  width:2px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.2);
}

.consensus-stage__guide--mean{
  background:#22D3EE;
  box-shadow:0 0 14px rgba(34,211,238,.4);
}

.consensus-stage__guide--median{
  background:#FBBF24;
}

.consensus-stage__guide--mode{
  background:#A78BFA;
}

.consensus-stage__guide-label{
  position:absolute;
  top:-2px;
  left:50%;
  transform:translate(-50%, -100%);
  padding:3px 6px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  color:#fff;
  background:rgba(13,15,30,.88);
  border:1px solid rgba(255,255,255,.12);
}

.consensus-stage__marker{
  position:absolute;
  top:calc(14px + (var(--lane, 0) * 18px));
  width:22px;
  height:22px;
  transform:translateX(-50%);
  animation:consensus-pop-in .36s ease both;
  animation-delay:var(--delay, 0ms);
}

.consensus-stage__marker-core{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:12px;
  background:var(--marker-color, #A78BFA);
  box-shadow:
    0 0 0 2px rgba(13,15,30,.92),
    0 8px 18px rgba(0,0,0,.25);
}

.consensus-stage__scale{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:6px;
  margin-top:8px;
  font-size:11px;
  color:rgba(255,255,255,.4);
}

.consensus-stage__scale span:nth-child(2),
.consensus-stage__scale span:nth-child(3),
.consensus-stage__scale span:nth-child(4){
  text-align:center;
}

.consensus-stage__scale span:last-child{
  text-align:right;
}

.consensus-stage__legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
  position:relative;
  z-index:1;
}

.consensus-stage__pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}

.consensus-stage__pill--mean{
  color:#67E8F9;
  border-color:rgba(34,211,238,.28);
}

.consensus-stage__pill--median{
  color:#FCD34D;
  border-color:rgba(251,191,36,.3);
}

.consensus-stage__pill--mode{
  color:#C4B5FD;
  border-color:rgba(167,139,250,.3);
}

.consensus-highlights{
  margin-top:14px;
}

.consensus-highlights__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.consensus-highlights__item{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}

.consensus-highlights__label{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
  color:rgba(255,255,255,.45);
  margin-bottom:6px;
}

.consensus-highlights__value{
  display:block;
  line-height:1.35;
}

.consensus-answer-list{
  margin-top:14px;
}

.consensus-answer-list__row{
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  animation:consensus-rise-in .45s ease both;
  animation-delay:var(--delay, 0ms);
}

.consensus-answer-list__row:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.consensus-answer-list__head,
.consensus-answer-list__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.consensus-answer-list__head{
  margin-bottom:4px;
}

.consensus-answer-list__name{
  font-weight:800;
}

.consensus-answer-list__delta{
  font-weight:900;
  color:#4ADE80;
}

.consensus-answer-list__meta{
  font-size:12px;
  color:rgba(255,255,255,.5);
}

.consensus-answer-list__imputed{
  color:#FBBF24;
  font-weight:600;
}

.consensus-force-hint{
  margin-top:10px;
  margin-bottom:12px;
  color:#FBBF24;
}

.consensus-answer-list__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.consensus-answer-list__tag{
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  color:#C4B5FD;
  background:rgba(167,139,250,.14);
  border:1px solid rgba(167,139,250,.22);
}

.consensus-scoreboard__row--bump{
  animation:trivia-score-bump .35s ease;
}

.consensus-scoreboard__delta{
  font-size:13px;
  font-weight:800;
  color:#4ADE80;
}

.consensus-final{
  margin-top:18px;
}

.consensus-final__summary{
  margin-bottom:12px;
}

.consensus-final__actions{
  margin-top:18px;
}

@keyframes consensus-rise-in{
  0%{
    opacity:0;
    transform:translateY(8px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes consensus-pop-in{
  0%{
    opacity:0;
    transform:translateX(-50%) scale(.65);
  }
  100%{
    opacity:1;
    transform:translateX(-50%) scale(1);
  }
}

@media (max-width:360px){
  .consensus-highlights__grid{
    grid-template-columns:1fr;
  }
}

/* Le Traître */
.traitre-word {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.06);
}

.traitre-speak-collective__lead {
  margin-top: 0.35rem;
}

.traitre-speak-collective__players {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.traitre-speak-collective__player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04);
}

.traitre-speak-collective__player .recap-card__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.traitre-order__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  counter-reset: traitre-speak;
}

.traitre-order__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04);
}

.traitre-order__item::before {
  content: counter(traitre-speak) ".";
  counter-increment: traitre-speak;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  min-width: 1.25rem;
  flex-shrink: 0;
}

.traitre-order__item--active {
  background: rgba(255, 200, 80, 0.15);
  border: 1px solid rgba(255, 200, 80, 0.35);
  font-weight: 600;
}

.traitre-order__item--done {
  opacity: 0.55;
}

.traitre-order__item .recap-card__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.traitre-order__now {
  margin-top: 0.75rem;
}

.traitre-vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.traitre-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  min-height: 88px;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  transition: border-color 0.15s, transform 0.1s;
}

.traitre-vote-btn:active {
  transform: scale(0.97);
}

.traitre-vote-btn--active {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fbbf24, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.traitre-vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.traitre-vote-btn .recap-card__avatar {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.traitre-vote-btn span:last-child {
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 1.2;
}

.traitre-tie-speak-banner {
  margin-bottom: 0.75rem;
}

.traitre-vote-tie {
  margin-top: 0.5rem;
}

.traitre-decision-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.traitre-decision-btns .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.traitre-host-hint {
  text-align: center;
  margin-bottom: 0.35rem;
}

.traitre-deal-banner {
  margin-bottom: 0.75rem;
}

.traitre-deal-progress {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 700;
}

.traitre-deal-wait {
  color: rgba(74, 222, 128, 0.85);
}

.traitre-decision {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Spot the fake - écran résultat */
.traitre-final {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.traitre-final--fake-caught {
  border-color: rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.traitre-final--fake-wins {
  border-color: rgba(248, 113, 113, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 113, 113, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.traitre-final__hero {
  text-align: center;
  padding: 1.35rem 1rem 0.85rem;
}

.traitre-final__emoji {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 2.6rem;
  line-height: 1;
}

.traitre-final__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.traitre-final__impostor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 1rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.traitre-final__impostor-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.traitre-final__impostor-text {
  min-width: 0;
}

.traitre-final__impostor-label {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.traitre-final__impostor-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fde68a;
}

.traitre-final--fake-caught .traitre-final__impostor-name {
  color: #fca5a5;
}

.traitre-final__words {
  margin: 0 1rem 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.traitre-final__words-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.traitre-final__word-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.traitre-final__word {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  text-align: center;
}

.traitre-final__word--majority {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.traitre-final__word--fake {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.24);
}

.traitre-final__word-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.traitre-final__word-value {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  overflow-wrap: anywhere;
}

.traitre-final__theme {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.46);
}

.traitre-final__scores {
  padding: 0 1rem 1.1rem;
}

.traitre-final__points-rule {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.traitre-final__no-points {
  margin: 0;
  text-align: center;
}

.traitre-final__fake-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.18);
}

.traitre-delta-list {
  display: grid;
  gap: 0.45rem;
}

.traitre-delta-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.traitre-delta-list__row--scored {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.07);
}

.traitre-delta-list__row--fake {
  opacity: 0.82;
}

.traitre-delta-list__player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.traitre-delta-list__player .recap-card__avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.traitre-delta-list__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.traitre-delta-list__score-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  max-width: 52%;
  text-align: right;
}

.traitre-delta-list__detail {
  font-size: 0.72rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.55);
}

.traitre-delta-list__pts {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
}

.traitre-delta-list__pts--gain {
  color: #4ade80;
}

.traitre-delta-list__pts--zero {
  color: rgba(255, 255, 255, 0.28);
}

/* ===== CLUTCH 💥 ===== */
.clutch-clock {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 0.3rem 0;
  letter-spacing: 0.02em;
}

/* Phase aveugle : la carte du chrono « respire » légèrement (vitesse fixe, sans fuite de timing). */
.clutch-clock-card--blind {
  animation: clutch-card-tense 1.1s ease-in-out infinite;
}

@keyframes clutch-card-tense {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Bouton TAP qui pulse pendant la phase aveugle pour créer la tension. */
.clutch-tap--blind {
  animation: clutch-tap-pulse 0.85s ease-in-out infinite;
}

@keyframes clutch-tap-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(255, 60, 172, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 16px 54px rgba(255, 60, 172, 0.6);
  }
}

/* Pop satisfaisant quand le tap est validé (bouton qui passe au vert). */
.clutch-tap--tapped {
  animation: clutch-tap-pop 0.32s ease-out;
}

@keyframes clutch-tap-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Chips « X a tapé ! » (uniquement en phase aveugle). */
.clutch-tapped {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.6rem;
  min-height: 0.2rem;
}

.clutch-tapped:empty {
  margin-top: 0;
}

.clutch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--clutch-chip, #a78bfa) 32%, transparent);
  border: 1px solid color-mix(in srgb, var(--clutch-chip, #a78bfa) 55%, transparent);
  animation: clutch-chip-in 0.25s ease-out;
}

@keyframes clutch-chip-in {
  from { opacity: 0; transform: translateY(4px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Classement du verdict de manche. */
.clutch-rank {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.4rem 0 1rem;
}

.clutch-rank__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: clutch-chip-in 0.28s ease-out;
}

.clutch-rank__row--out {
  opacity: 0.5;
}

.clutch-rank__pos {
  width: 1.9rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.clutch-rank__num {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.clutch-rank__avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  background: color-mix(in srgb, var(--clutch-chip, #a78bfa) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--clutch-chip, #a78bfa) 55%, transparent);
}

.clutch-rank__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.clutch-rank__name {
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clutch-rank__detail {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.clutch-rank__pts {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.3);
}

.clutch-rank__pts--gain {
  color: #4ade80;
}

@media (prefers-reduced-motion: reduce) {
  .clutch-clock-card--blind,
  .clutch-tap--blind,
  .clutch-tap--tapped,
  .clutch-chip,
  .clutch-rank__row {
    animation: none;
  }
}

/* ===== WRONG ANSWER ONLY ↩️ ===== */
.wrong-prompt{
  text-align:center;
  background:linear-gradient(145deg, rgba(244,114,182,.16), rgba(167,139,250,.12));
}
.wrong-prompt__q{
  font-size:1.25rem;
  font-weight:800;
  line-height:1.3;
  margin:6px 0 0;
}

.wrong-answer-form{ margin-top:14px; }
.wrong-input{
  width:100%;
  box-sizing:border-box;
  border-radius:16px;
  border:2px solid rgba(244,114,182,.35);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:1.05rem;
  font-weight:600;
  padding:14px 16px;
  resize:none;
  outline:none;
}
.wrong-input:focus{ border-color:rgba(244,114,182,.8); }
.wrong-input__count{ text-align:right; margin:6px 2px 0; }
.field-char-count{ text-align:right; margin:4px 2px 10px; }

.wrong-vote-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:14px 0;
}
.wrong-vote-card{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  text-align:left;
  border:2px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:14px 16px;
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  transition:border-color .15s, transform .15s, background .15s;
}
.wrong-vote-card:active:not(:disabled){ transform:scale(.99); }
.wrong-vote-card--picked{
  border-color:rgba(244,114,182,.95);
  background:rgba(244,114,182,.16);
}
.wrong-vote-card--mine{
  opacity:.6;
  cursor:default;
  border-style:dashed;
}
.wrong-vote-card__num{
  flex:0 0 auto;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  font-weight:800;
  font-size:.85rem;
}
.wrong-vote-card__text{ flex:1 1 auto; font-weight:600; }
.wrong-vote-card__tag{
  flex:0 0 auto;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.7;
}

.wrong-reveal-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:14px 0;
}
.wrong-reveal-row{
  display:flex;
  align-items:center;
  gap:12px;
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.wrong-reveal-row--worst{
  border-color:rgba(244,114,182,.7);
  background:rgba(244,114,182,.14);
}
.wrong-reveal-row__avatar{
  flex:0 0 auto;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--wrong-chip, #A78BFA);
  font-size:1.1rem;
}
.wrong-reveal-row__body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.wrong-reveal-row__text{ font-weight:600; }
.wrong-reveal-row__author{ font-size:.85rem; font-weight:700; }
.wrong-reveal-row__votes{
  flex:0 0 auto;
  font-size:.8rem;
  opacity:.8;
}
.wrong-reveal-row__pts{
  flex:0 0 auto;
  font-weight:800;
  opacity:.5;
}
.wrong-reveal-row__pts--gain{ color:#34D399; opacity:1; }
