/* =====================================================================
   FRUITIES GAMES v.1 — Style pop & fruité
   ===================================================================== */
/* Polices hébergées sur le site (plus d'appel à Google Fonts).
   Baloo 2 est une police « variable » : un seul fichier couvre les graisses 400 à 800.
   Licence : SIL Open Font License. */
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/baloo2-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/baloo2-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lilitaone-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lilitaone-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pink: #ff4fa3;
  --pink-d: #e0307f;
  --peach: #ff9a62;
  --lemon: #ffe14d;
  --lime: #86e34a;
  --sky: #45d4ff;
  --grape: #8b4dff;
  --tomato: #ff4b4b;
  --ink: #2d0b3d;          /* aubergine très foncée : contours & texte */
  --cream: #fff7ea;
  --white: #ffffff;
  --muted: #7a5a86;
  --radius: 22px;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-title: 'Lilita One', 'Baloo 2', system-ui, sans-serif;
  --font: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  background-color: #ff8f8f;
  background:
    radial-gradient(circle at 15% 10%, #ffd1e8 0, transparent 35%),
    radial-gradient(circle at 85% 90%, #ffe9a8 0, transparent 40%),
    linear-gradient(160deg, #ff6fb5 0%, #ff8f8f 45%, #ffb26b 100%);
  background-attachment: fixed;
}
body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Fruits flottants en fond */
.bg-fruits { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-fruits span {
  position: absolute; top: 105%; font-size: 34px; opacity: .55;
  animation: floatUp linear infinite;
  filter: drop-shadow(2px 3px 0 rgba(45, 11, 61, .25));
}
@keyframes floatUp {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-130vh) rotate(360deg); }
}

/* Barre du haut */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.mini-logo {
  font-family: var(--font-title); font-size: 20px; color: var(--white); text-decoration: none;
  text-shadow: 2px 2px 0 var(--ink); letter-spacing: .5px;
}
.mini-logo span { color: var(--lemon); }
.mini-logo { white-space: nowrap; }
.mini-logo .ml-games { font-style: normal; }
@media (max-width: 420px) { .mini-logo .ml-games { display: none; } }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.room-badge {
  background: var(--lemon); border: var(--border); border-radius: 999px; padding: 2px 12px;
  font-family: var(--font-title); box-shadow: var(--shadow-sm); letter-spacing: 2px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: var(--border); background: var(--white);
  font-size: 18px; box-shadow: var(--shadow-sm);
}

.app {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px 24px;
}

.footer {
  position: relative; z-index: 1; text-align: center; padding: 14px 16px 18px;
  color: var(--white); font-weight: 700; text-shadow: 1px 1px 0 var(--ink); font-size: 14px;
}
.footer .version {
  display: inline-block; background: var(--ink); color: var(--lemon); border-radius: 999px;
  padding: 0 10px; text-shadow: none; font-family: var(--font-title); letter-spacing: 1px;
}

/* ---------- Composants ---------- */
.card {
  background: var(--cream); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 18px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; margin: 0 0 10px; letter-spacing: .5px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-title); font-size: 20px; letter-spacing: .5px;
  padding: 12px 22px; border-radius: 16px; border: var(--border); box-shadow: var(--shadow);
  background: var(--lemon); color: var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  min-height: 52px;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn.pink { background: var(--pink); color: var(--white); text-shadow: 1px 1px 0 var(--ink); }
.btn.lime { background: var(--lime); }
.btn.sky { background: var(--sky); }
.btn.white { background: var(--white); }
.btn.small { font-size: 16px; padding: 6px 14px; min-height: 40px; box-shadow: var(--shadow-sm); }
.btn.block { width: 100%; }

.input {
  width: 100%; font-size: 20px; font-weight: 700; padding: 12px 16px;
  border: var(--border); border-radius: 14px; background: var(--white); outline: none;
  box-shadow: inset 3px 3px 0 rgba(45, 11, 61, .08);
}
.input:focus { border-color: var(--grape); box-shadow: 0 0 0 4px rgba(139, 77, 255, .25); }
.input.code { text-transform: uppercase; letter-spacing: 8px; text-align: center; font-family: var(--font-title); font-size: 26px; }
label.lbl { display: block; font-weight: 800; margin: 0 0 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); font-weight: 800; font-size: 14px;
}

/* ---------- Accueil ---------- */
.hero { text-align: center; margin: 6px 0 22px; }
.logo {
  font-family: var(--font-title); line-height: .9; margin: 0;
  font-size: clamp(54px, 13vw, 110px);
}
.logo .l { display: inline-block; color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink); animation: bob 2.4s ease-in-out infinite; }
.logo .l:nth-child(7n+1) { color: var(--lemon); }
.logo .l:nth-child(7n+2) { color: var(--lime); animation-delay: .1s; }
.logo .l:nth-child(7n+3) { color: var(--sky); animation-delay: .2s; }
.logo .l:nth-child(7n+4) { color: var(--white); animation-delay: .3s; }
.logo .l:nth-child(7n+5) { color: var(--peach); animation-delay: .4s; }
.logo .l:nth-child(7n+6) { color: var(--grape); animation-delay: .5s; }
.logo .l:nth-child(7n+7) { color: var(--lemon); animation-delay: .6s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.logo-sub {
  display: inline-block; margin-top: 8px; transform: rotate(-3deg);
  background: var(--ink); color: var(--lemon); font-family: var(--font-title);
  font-size: clamp(26px, 6vw, 40px); padding: 2px 22px; border-radius: 14px; letter-spacing: 6px;
  box-shadow: 4px 4px 0 var(--white);
}
.tagline { color: var(--white); font-weight: 800; font-size: 18px; text-shadow: 1px 1px 0 var(--ink); margin-top: 16px; }

/* Bloc « créer / rejoindre » sur toute la largeur : profil à gauche, boutons à droite */
.home-card { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: center; }
.home-go { border-left: 3px dashed rgba(45, 11, 61, .15); padding-left: 26px; }
@media (max-width: 760px) {
  .home-card { grid-template-columns: 1fr; gap: 6px; }
  .home-go { border-left: 0; padding-left: 0; }
}

.avatars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 4px 0 14px; }
@media (max-width: 480px) { .avatars { grid-template-columns: repeat(6, 1fr); } }
.emo { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; object-fit: contain; }
.avatar-opt {
  aspect-ratio: 1; font-size: 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white);
  display: grid; place-items: center; padding: 0; transition: transform .1s;
}
.avatar-opt:hover { transform: scale(1.1) rotate(-6deg); }
.avatar-opt.on { background: var(--pink); transform: scale(1.12); box-shadow: var(--shadow-sm); }

.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-weight: 800; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 3px; background: var(--ink); opacity: .15; border-radius: 3px; }

/* Les jeux, présentés comme des applis */
.home-games h3 small { font-family: var(--font); font-weight: 800; font-size: 14px; margin-left: 6px; }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; max-width: 760px; margin: 6px auto 0; }
.app-tile { width: calc((100% - (var(--per, 5) - 1) * 12px) / var(--per, 5)); min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; cursor: default; }
.app-ico {
  width: 76px; height: 76px; display: grid; place-items: center; font-size: 42px; margin-bottom: 6px;
  border: var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); transition: transform .15s;
}
.app-tile:hover .app-ico { transform: translateY(-4px) rotate(-6deg); }
.app-tile b { font-family: var(--font-title); font-weight: 400; font-size: 17px; line-height: 1.1; }
.app-tile small { color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.2; }
@media (max-width: 480px) {
  .apps { gap: 14px 6px; }
  .app-tile { width: calc((100% - (var(--per-m, 3) - 1) * 6px) / var(--per-m, 3)); }
  .app-ico { width: 58px; height: 58px; font-size: 32px; border-radius: 18px; }
  .app-tile b { font-size: 14px; }
  .app-tile small { font-size: 11px; }
}
.bg-cultureg { background: var(--sky); }
.bg-fruitquiz { background: var(--lime); }
.bg-phrases { background: var(--pink); }
.bg-tower { background: var(--grape); }

/* ---------- Salon ---------- */
.code-big {
  font-family: var(--font-title); font-size: clamp(48px, 12vw, 80px); letter-spacing: 12px; line-height: 1;
  color: var(--sky); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink);
}
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
@media (max-width: 520px) {
  .players-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pcard { padding: 8px 4px; }
  .pcard .av { font-size: 32px; }
  .pcard .nm { font-size: 14px; }
}
.pcard {
  position: relative; border: var(--border); border-radius: 18px; background: var(--white);
  padding: 12px 8px 10px; text-align: center; box-shadow: var(--shadow-sm); animation: pop .35s ease;
}
.pcard .av { font-size: 42px; line-height: 1.1; display: block; }
.pcard .nm { font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 22px; }
.pcard.me { background: #ffe6f2; }
.pcard.away { opacity: .45; filter: grayscale(.6); }
.pcard.empty { background: transparent; border-style: dashed; box-shadow: none; color: rgba(45, 11, 61, .45); animation: none; }
.pcard.empty .av { opacity: .35; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: var(--border); border-radius: 999px; padding: 6px 16px; font-weight: 800; background: var(--white);
}
.pill.on { background: var(--ink); color: var(--lemon); }
.pill:disabled { cursor: default; }
.toggle-game { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-weight: 800; }
.toggle-game input { width: 22px; height: 22px; accent-color: var(--pink); }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .toggles { grid-template-columns: 1fr; } }

/* ---------- En jeu ---------- */
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stage-title { font-family: var(--font-title); color: var(--white); font-size: 22px; text-shadow: 2px 2px 0 var(--ink); }
.timer {
  position: relative; height: 22px; border: var(--border); border-radius: 999px; background: var(--white);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.timer .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--lime), var(--lemon)); transition: width .2s linear; }
.timer.hot .fill { background: linear-gradient(90deg, var(--tomato), var(--peach)); }
.timer .secs { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.question {
  font-family: var(--font-title); font-weight: 400; font-size: clamp(24px, 4.5vw, 36px); line-height: 1.15;
  text-align: center; margin: 6px 0 20px;
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  position: relative; text-align: left; font-size: 20px; font-weight: 800; padding: 16px 16px 16px 60px; min-height: 76px;
  border: var(--border); border-radius: 18px; box-shadow: var(--shadow); transition: transform .08s, opacity .2s, box-shadow .08s;
}
.choice .tag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.choice:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.choice.c0 { background: var(--pink); } .choice.c1 { background: var(--lemon); }
.choice.c2 { background: var(--lime); } .choice.c3 { background: var(--sky); }
.choice.picked { outline: 5px solid var(--ink); outline-offset: 3px; }
.choice.dim { opacity: .35; }
.choice.good { animation: wiggle .5s ease; }
.choice.good::after { content: '✔'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.choice:disabled { cursor: default; }
.choice .who { display: block; font-size: 18px; margin-top: 4px; letter-spacing: 2px; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-2deg) scale(1.03); } 75% { transform: rotate(2deg) scale(1.03); } }

.waiting-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.wav { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); opacity: .45; transition: all .3s; }
.wav.ok { opacity: 1; background: var(--lime); transform: scale(1.08); }

.gain {
  font-family: var(--font-title); font-size: 42px; text-align: center; color: var(--white);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); margin: 16px 0 0;
}

/* Intro de manche */
.intro { text-align: center; padding: 40px 20px; }
.intro .big-ico { font-size: 96px; display: inline-block; animation: spinIn .7s cubic-bezier(.2, 1.6, .4, 1); }
.intro h2 { font-size: clamp(36px, 8vw, 60px); margin: 10px 0; }
.intro .rnd { font-weight: 800; font-size: 18px; }
@keyframes spinIn { from { transform: scale(0) rotate(-200deg); } to { transform: scale(1) rotate(0); } }

/* Scores */
.board { display: grid; gap: 10px; }
.brow {
  display: grid; grid-template-columns: 44px 48px 1fr auto; align-items: center; gap: 10px;
  border: var(--border); border-radius: 16px; background: var(--white); padding: 8px 14px; box-shadow: var(--shadow-sm);
  animation: slideIn .4s ease backwards;
}
.brow .rk { font-family: var(--font-title); font-size: 22px; text-align: center; }
.brow .av { font-size: 32px; text-align: center; }
.brow .nm { font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .sc { font-family: var(--font-title); font-size: 22px; text-align: right; }
.brow .dl { display: block; font-size: 14px; color: #1f8a00; font-family: var(--font); font-weight: 800; }
.brow.me { background: #ffe6f2; }
.brow:nth-child(1) { background: var(--lemon); }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Phrases */
.prompt-card {
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px; border: var(--border);
  font-family: var(--font-title); font-size: clamp(22px, 4.2vw, 32px); line-height: 1.2; text-align: center; box-shadow: 5px 5px 0 var(--white);
  margin-bottom: 18px;
}
.prompt-card .blank { color: var(--lemon); }
textarea.input { resize: none; min-height: 96px; font-size: 20px; }
.counter { text-align: right; font-weight: 700; color: var(--muted); font-size: 14px; margin-top: 4px; }
.answers { display: grid; gap: 12px; }
.ans {
  text-align: left; font-size: 20px; font-weight: 800; padding: 16px 18px; border: var(--border); border-radius: 18px;
  background: var(--white); box-shadow: var(--shadow-sm); position: relative; line-height: 1.25; word-break: break-word;
}
.ans:nth-child(4n+1) { background: #ffe6f2; } .ans:nth-child(4n+2) { background: #fff6c7; }
.ans:nth-child(4n+3) { background: #e6ffd8; } .ans:nth-child(4n+4) { background: #dff7ff; }
.ans.mine { opacity: .55; cursor: default; }
.ans.mine::after { content: 'ta réponse'; position: absolute; right: 12px; top: -12px; background: var(--ink); color: var(--white); font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.ans.voted { outline: 5px solid var(--pink); outline-offset: 3px; }
.ans .meta { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 16px; }
.ans .votes { margin-left: auto; font-family: var(--font-title); font-weight: 400; }
.ans.gold { background: var(--lemon) !important; transform: rotate(-1deg); box-shadow: var(--shadow); }
.ans.gold::before { content: '🏆 Fruit d\'or'; position: absolute; left: 12px; top: -14px; background: var(--pink); color: var(--white); font-size: 13px; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--ink); }

/* Podium */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 30px 0 20px; }
.pod { text-align: center; width: 30%; max-width: 180px; }
.pod .av { font-size: 52px; display: block; animation: bob 2s ease-in-out infinite; }
.pod .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); text-shadow: 1px 1px 0 var(--ink); }
.pod .block {
  border: var(--border); border-radius: 16px 16px 6px 6px; box-shadow: var(--shadow);
  display: grid; place-items: center; font-family: var(--font-title); font-size: 40px;
}
.pod.p1 .block { height: 170px; background: var(--lemon); }
.pod.p2 .block { height: 120px; background: var(--sky); }
.pod.p3 .block { height: 90px; background: var(--peach); }
.pod .sc { font-family: var(--font-title); font-size: 18px; color: var(--white); text-shadow: 1px 1px 0 var(--ink); }

/* ---------- Tour fruitée ---------- */
.tower-wrap { display: grid; grid-template-columns: 1fr 190px; gap: 14px; }
@media (max-width: 760px) { .tower-wrap { grid-template-columns: 1fr; } }
.tower-main { position: relative; }
.tower-canvas-box {
  position: relative; width: 100%; height: min(68vh, 640px); min-height: 360px;
  border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #bff1ff; touch-action: none;
}
.tower-canvas-box canvas { display: block; width: 100%; height: 100%; }
.tower-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; gap: 8px; }
.hud-pill { background: var(--white); border: var(--border); border-radius: 999px; padding: 2px 12px; font-family: var(--font-title); font-size: 18px; box-shadow: var(--shadow-sm); }
.tower-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-title); font-size: 64px; color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink); text-align: center; line-height: 1;
}
.tower-overlay small { display: block; font-size: 22px; -webkit-text-stroke: 0; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); margin-top: 10px; font-family: var(--font); font-weight: 800; }
.controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; user-select: none; -webkit-user-select: none; }
.ctl {
  height: 64px; font-size: 28px; border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); background: var(--white);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.ctl:active, .ctl.held { transform: translate(3px, 3px); box-shadow: none; background: var(--lemon); }
.keys-hint { text-align: center; font-weight: 700; color: var(--white); text-shadow: 1px 1px 0 var(--ink); margin-top: 8px; font-size: 14px; }
body:not(.touch) .controls { display: none; }
body.touch .keys-hint { display: none; }
@media (max-width: 760px) {
  body.touch .tower-canvas-box { height: calc(100vh - 330px); height: calc(100dvh - 330px); min-height: 300px; }
}

.opps { display: grid; gap: 10px; align-content: start; }
@media (max-width: 760px) { .opps { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.tower-side { display: grid; gap: 12px; align-content: start; }
@media (max-width: 760px) { .tower-side { order: -1; } }
.reset-btn {
  width: 100%; border: var(--border); border-radius: 18px; background: var(--sky); box-shadow: var(--shadow);
  font-family: var(--font-title); font-size: 24px; padding: 10px 8px; line-height: 1.1; color: var(--ink);
  transition: transform .08s, box-shadow .08s, background .2s;
}
.reset-btn b { font-weight: 400; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; margin-left: 4px; }
.reset-btn small { display: block; font-family: var(--font); font-weight: 800; font-size: 12px; margin-top: 4px; }
.reset-btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.reset-btn.armed { background: var(--tomato); color: var(--white); animation: wiggle .4s ease; }
.reset-btn.armed b { color: var(--ink); }
.reset-btn:disabled { background: var(--cream); opacity: .55; box-shadow: var(--shadow-sm); cursor: default; }
.ctl-reset { display: none; background: var(--sky); font-size: 22px; line-height: 1; }
.ctl-reset small { display: block; font-family: var(--font); font-weight: 800; font-size: 13px; margin-top: 2px; }
.ctl-reset.armed { background: var(--tomato); color: var(--white); }
.ctl-reset:disabled { background: var(--cream); opacity: .55; }
@media (max-width: 760px) {
  .tower-side .reset-btn { display: none; }
  .controls { grid-template-columns: repeat(4, 1fr) 1.15fr; }
  .controls .ctl-reset { display: block; }
}
/* Bonus de la Tour Fruitée */
.controls.has-bonus { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.ctl-bonus { background: var(--cream); font-size: 28px; }
.ctl-bonus:disabled { opacity: .5; }
.ctl-bonus.ready { background: var(--lemon); animation: bonusPulse .9s ease-in-out infinite alternate; }
.bonus-btn {
  width: 100%; border: var(--border); border-radius: 18px; background: var(--cream); box-shadow: var(--shadow);
  font-family: var(--font-title); font-size: 22px; padding: 10px 8px; line-height: 1.1; color: var(--ink);
}
.bonus-btn small { display: block; font-family: var(--font); font-weight: 800; font-size: 12px; margin-top: 4px; }
.bonus-btn:disabled { opacity: .6; box-shadow: var(--shadow-sm); cursor: default; }
.bonus-btn.ready { background: var(--lemon); animation: bonusPulse .9s ease-in-out infinite alternate; cursor: pointer; }
.bonus-btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
body.touch .tower-side .bonus-btn { display: none; }
@keyframes bonusPulse { from { box-shadow: 0 0 0 0 rgba(255, 79, 163, .55), var(--shadow-sm); } to { box-shadow: 0 0 0 6px rgba(255, 79, 163, 0), var(--shadow-sm); } }

.opp { border: var(--border); border-radius: 16px; background: var(--white); padding: 6px; box-shadow: var(--shadow-sm); }
.opp .hd { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; }
.opp .hd span:last-child { overflow: hidden; text-overflow: ellipsis; }
.opp canvas { width: 100%; height: 90px; display: block; border-radius: 10px; background: #dff7ff; margin: 4px 0; }
.bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--cream); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--grape)); }
.opp.done { background: var(--lime); }
@media (max-width: 760px) { .opp canvas { height: 40px; } .opp { padding: 4px 6px; } }

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 14px; font-weight: 800; z-index: 50;
  transition: all .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: 4px 4px 0 var(--pink);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.conn {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--tomato); color: var(--white); border: var(--border); border-radius: 999px; padding: 4px 14px; font-weight: 800;
}
.err-box { background: #ffe0e0; border: var(--border); border-radius: 16px; padding: 14px; font-weight: 700; margin-bottom: 16px; }
.confetti { position: fixed; top: -40px; font-size: 28px; z-index: 40; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v.1.1 : thèmes & difficulté ---------- */
.game-blocks { display: grid; gap: 10px; }
.game-block { border: 2px solid var(--ink); border-radius: 16px; background: var(--white); overflow: hidden; }
.game-block .toggle-game { border: 0; border-radius: 0; background: transparent; }
.game-block.off { opacity: .6; }
.gb-name { flex: 1; }
.gb-count { font-size: 13px; color: var(--muted); font-weight: 800; white-space: nowrap; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.game-block.skip { border-style: dashed; }
.game-block.skip .gb-name { opacity: .55; }
.gb-min { font-size: 12px; font-weight: 800; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

/* Salon : formules, estimation, personnalisation repliable, QR code */
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
@media (max-width: 640px) { .presets { grid-template-columns: repeat(3, 1fr); } }
.preset {
  display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: var(--border); border-radius: 16px;
  background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); text-align: center; line-height: 1.1;
}
.preset .pr-ico { font-size: 28px; }
.preset b { font-family: var(--font-title); font-weight: 400; font-size: 18px; }
.preset small { font-size: 12px; font-weight: 800; color: var(--muted); }
.preset.on { background: var(--lemon); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.preset:disabled { cursor: default; }
.lobby-hint { margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.lobby-est { border: 2px dashed var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 800; margin-bottom: 12px; background: var(--cream); }
.lobby-est small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lobby-custom { border: 2px solid var(--ink); border-radius: 16px; padding: 8px 10px; background: rgba(255, 255, 255, .6); }
.lobby-custom > summary { cursor: pointer; font-weight: 800; padding: 4px 2px; }
.lobby-custom[open] > summary { margin-bottom: 8px; }
.qr-box { display: grid; justify-items: center; gap: 6px; margin-top: 14px; }
.qr-box #qrImg { padding: 10px; background: var(--white); border: var(--border); border-radius: 14px; min-width: 176px; min-height: 176px; display: grid; place-items: center; }
.qr-box small { font-weight: 800; color: var(--muted); }

/* Vote entre les manches */
.gvote { margin-bottom: 14px; }
.gvote h3 { margin: 0 0 10px; text-align: center; }
.gv-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .gv-opts { grid-template-columns: 1fr; } }
.gv-opt {
  display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: var(--border); border-radius: 18px;
  background: var(--white); box-shadow: var(--shadow); color: var(--ink); text-align: center; line-height: 1.15;
  transition: transform .08s, box-shadow .08s, background .2s;
}
.gv-opt .gv-ico { font-size: 40px; }
.gv-opt b { font-family: var(--font-title); font-weight: 400; font-size: 20px; }
.gv-opt small { font-size: 12px; font-weight: 800; color: var(--muted); }
.gv-opt .gv-who { min-height: 26px; font-size: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.gv-opt:active { transform: translate(3px, 3px); box-shadow: var(--shadow-sm); }
.gv-opt.on { background: var(--lemon); transform: translate(3px, 3px); box-shadow: var(--shadow-sm); }
.gv-hint { text-align: center; margin: 10px 0 0; font-weight: 800; font-size: 14px; }
.spectate .big-ico { font-size: 64px; display: block; }
.theme-chip {
  border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 14px;
  background: var(--cream); color: var(--muted); text-decoration: line-through; transition: transform .1s;
}
.theme-chip.on { background: var(--lemon); color: var(--ink); text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.theme-chip:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.theme-chip:disabled { cursor: default; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip.diff.d1 { background: var(--lime); }
.chip.diff.d2 { background: var(--peach); }
.chip.diff.d3 { background: var(--tomato); color: var(--white); }

/* ---------- Discord ---------- */
.discord-card {
  margin-top: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #7b6cff 0%, #5865f2 60%, #8b4dff 100%); color: var(--white);
}
.discord-card .dc-ico {
  font-size: 44px; width: 72px; height: 72px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--lemon); border: var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); transform: rotate(-6deg);
}
.discord-card .dc-txt { flex: 1; min-width: 220px; }
.discord-card h3 { margin-bottom: 4px; text-shadow: 2px 2px 0 var(--ink); font-size: 24px; }
.discord-card p { font-weight: 700; margin: 0; }
.dc-online { display: inline-block; margin-top: 8px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font-weight: 800; font-size: 14px; }
.btn.discord { background: var(--white); color: #4752c4; text-decoration: none; }
.room-actions .btn.discord, .row .btn.discord.small { background: #5865f2; color: var(--white); text-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 520px) { .discord-card .btn.discord { width: 100%; } }

/* ---------- v.1.2 : Bombe Fruitée ---------- */
.bg-bomb { background: var(--tomato); }
.bomb-settings { padding: 4px 12px 12px; display: grid; gap: 6px; }
.bset-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; flex-wrap: wrap; }
.pill.small { padding: 2px 10px; font-size: 13px; border-width: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 10px; background: var(--lemon); font-weight: 800; font-size: 18px; line-height: 1; padding: 0; }
.stepper button:disabled { background: var(--cream); cursor: default; }
.stepper b { min-width: 64px; text-align: center; }

.bomb-wrap { display: grid; gap: 14px; }
.arena {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; margin: 0 auto;
  border: var(--border); border-radius: 50%; box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 50%, #fff7ea 0, #ffe6f2 45%, #ffc4dd 100%);
}
.arena-players { position: absolute; inset: 0; }
.bp {
  position: absolute; transform: translate(-50%, -50%); width: 120px; text-align: center; z-index: 3;
  transition: filter .3s, opacity .3s;
}
.bp-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-lives { font-size: 12px; line-height: 16px; min-height: 16px; letter-spacing: -1px; }
.bp-av {
  width: 58px; height: 58px; margin: 2px auto; display: grid; place-items: center; font-size: 34px;
  background: var(--white); border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .2s;
}
.bp-word { margin-top: 4px; font-family: var(--font-title); font-size: 15px; min-height: 20px; letter-spacing: .5px; overflow-wrap: anywhere; color: var(--ink); }
.bp-word .hl, .bomb-status .hl { color: #22a000; }
.bp-word.bad { text-decoration: line-through; color: var(--muted); }
.bp-word.typing { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 0 6px; display: inline-block; min-width: 40px; }
.bp.me .bp-name::after { content: ' (toi)'; color: var(--pink-d); }
.bp.turn .bp-av { background: var(--lemon); transform: scale(1.15); box-shadow: 0 0 0 5px rgba(255, 225, 77, .6), var(--shadow-sm); }
.bp.dead { filter: grayscale(1); opacity: .5; }
.bp-av { position: relative; }
.bp-timer {
  display: none; position: absolute; right: -16px; top: -10px; z-index: 2; white-space: nowrap;
  padding: 1px 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white);
  font-family: var(--font-title); font-size: 13px; line-height: 18px; color: var(--ink);
}
.bp-timer.on { display: block; }
.bp-timer.low, .bomb-time.low { background: var(--tomato); color: var(--white); animation: tick .5s infinite alternate; }
.bomb-time { display: inline-block; padding: 0 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-family: var(--font-title); }
@keyframes tick { from { transform: scale(1); } to { transform: scale(1.12); } }
.bp.hit .bp-av { animation: hit .6s ease; }
.bp.good .bp-av { animation: goodPop .5s ease; }
@keyframes hit { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 0) rotate(-8deg); background: var(--tomato); } 40% { transform: translate(6px, 0) rotate(8deg); } 60% { transform: translate(-4px, 0); } }
@keyframes goodPop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); background: var(--lime); } }

.arrow { position: absolute; left: 50%; top: 50%; width: 60%; height: 60%; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); z-index: 1; pointer-events: none; }
.arrow i { position: absolute; left: 50%; top: 6%; width: 14px; height: 30%; margin-left: -7px; background: var(--lemon); border: 3px solid var(--ink); border-radius: 8px; }
.arrow i::before { content: ''; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); border: 16px solid transparent; border-bottom: 22px solid var(--ink); border-top: 0; }
.arrow i::after { content: ''; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); border: 10px solid transparent; border-bottom: 14px solid var(--lemon); border-top: 0; }

.grenade { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -50%); z-index: 2; }
.grenade-svg { width: 100%; display: block; filter: drop-shadow(4px 5px 0 rgba(45, 11, 61, .35)); }
.grenade .syl {
  position: absolute; left: 0; right: 0; top: 56%; transform: translateY(-50%); text-align: center;
  font-family: var(--font-title); font-size: clamp(22px, 6vw, 46px); color: var(--white); letter-spacing: 1px;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink);
}
.grenade .spark { position: absolute; top: -6%; right: 12%; font-size: clamp(18px, 4vw, 30px); animation: spark .25s infinite alternate; }
.fuse-burn { animation: fuse 0.6s linear infinite; }
@keyframes fuse { to { stroke-dashoffset: -30; } }
@keyframes spark { from { transform: scale(.8) rotate(-15deg); opacity: .7; } to { transform: scale(1.3) rotate(20deg); opacity: 1; } }
.grenade.explode { animation: explode .7s ease; }
@keyframes explode { 0% { transform: translate(-50%, -50%) scale(1); } 25% { transform: translate(-50%, -50%) scale(1.35) rotate(-6deg); } 50% { transform: translate(-50%, -50%) scale(.85) rotate(6deg); } 100% { transform: translate(-50%, -50%) scale(1); } }
.boom-fx { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); font-size: 120px; z-index: 4; pointer-events: none; opacity: 0; }
.boom-fx.show { animation: boom .8s ease-out; }
@keyframes boom { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(2.2); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; } }
#bombOverlay { border-radius: 50%; z-index: 5; }

.bomb-panel { max-width: 640px; width: 100%; margin: 0 auto; }
.bomb-status { text-align: center; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.bomb-form { display: flex; gap: 10px; }
.bomb-form .input { flex: 1; text-transform: uppercase; font-family: var(--font-title); letter-spacing: 2px; font-size: 22px; }
.bomb-form .input:disabled { opacity: .5; }
.bomb-form.active .input { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 163, .25); }
.bomb-msg { min-height: 22px; text-align: center; font-weight: 800; color: #d42a2a; margin-top: 6px; }
.bonus-letters { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.bonus-letters span { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 7px; font-weight: 800; font-size: 13px; background: var(--white); opacity: .45; }
.bonus-letters span.got { background: var(--lime); opacity: 1; }
.input.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

@media (max-width: 560px) {
  .bp { width: 23%; }
  .bp-av { width: 40px; height: 40px; font-size: 24px; border-radius: 12px; }
  .bp-name { font-size: 12px; }
  .bp-word { font-size: 12px; }
  .bp-lives { font-size: 10px; }
  .arrow i { width: 10px; margin-left: -5px; }
  .bomb-form .input { font-size: 18px; }
  .bomb-form .btn { padding: 10px 14px; }
}

/* ---------- v.1.3 : quitter / reprendre ---------- */
.quit-btn {
  height: 40px; padding: 0 14px; border: var(--border); border-radius: 999px; background: var(--lemon);
  font-family: var(--font); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.quit-btn:active { transform: translate(2px, 2px); box-shadow: none; }
@media (max-width: 480px) {
  .quit-btn .ql-long { display: none; }
  .mini-logo { font-size: 17px; }
  .topbar { padding: 10px 12px; }
  .room-badge { letter-spacing: 1px; padding: 2px 8px; }
}
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(45, 11, 61, .55); display: grid; place-items: center; padding: 16px; }
.modal { max-width: 460px; width: 100%; animation: pop .25s ease; }
.modal p { font-weight: 700; }
.modal-actions { display: grid; gap: 10px; margin-top: 14px; }
.modal-actions .btn { width: 100%; font-size: 18px; }
.modal-note { font-size: 14px; margin-top: 12px; margin-bottom: 0; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; background: var(--lemon); }

/* ---------- v.1.4 : Pépins Explosifs ---------- */
.bg-bomber { background: var(--lime); }
.bomber-box { height: auto; min-height: 0; max-height: 74vh; background: var(--ink); }
body.touch .bomber-box { height: auto; min-height: 0; max-height: calc(100dvh - 300px); }
.hud-pill.hot { background: var(--tomato); color: var(--white); }
.bm-hud { position: static; margin-bottom: 10px; }
@media (max-width: 760px) { .bm-hud .hud-pill { font-size: 15px; padding: 2px 10px; } }
.bm-controls {
  grid-template-columns: repeat(3, 60px) 1fr; grid-template-rows: 56px 56px;
  grid-template-areas: ". up . bomb" "left down right bomb"; gap: 8px;
}
.bm-controls .ctl { height: auto; }
.bm-up { grid-area: up; } .bm-left { grid-area: left; } .bm-down { grid-area: down; } .bm-right { grid-area: right; }
.bm-bomb { grid-area: bomb; background: var(--tomato); font-size: 40px; }
.bm-list { display: grid; gap: 8px; align-content: start; }
.bm-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 6px;
  border: var(--border); border-radius: 16px; background: var(--white); padding: 4px 8px; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 14px;
}
.bm-row .av { font-size: 22px; grid-row: span 2; }
.bm-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row .lv { grid-column: 2; font-size: 12px; }
.bm-row .ht { grid-column: 3; grid-row: 1 / span 2; font-size: 13px; }
.bm-row.me { background: var(--lemon); }
.bm-row.dead { opacity: .5; background: var(--cream); }
@media (max-width: 760px) {
  .bm-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .bm-row { padding: 2px 6px; font-size: 12px; }
  .bm-row .av { font-size: 18px; }
}

/* ---------- v.1.5 : Mensonges Juteux ---------- */
.bg-lies { background: var(--peach); }
.lie-vote .ans.mine::after { content: 'ton mensonge'; }
.lie-res .ans { animation: pop .4s both; }
.lie-res .ans.truth { background: var(--lime) !important; box-shadow: var(--shadow); transform: rotate(-1deg); }
.lie-res .ans.picked { outline: 5px solid var(--pink); outline-offset: 3px; }
.lie-tag {
  display: table; font-size: 13px; padding: 1px 10px; margin-bottom: 6px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); font-family: var(--font); font-weight: 800;
}
.lie-res .ans.truth .lie-tag { background: var(--ink); color: var(--white); }
.lie-res .who { font-size: 22px; letter-spacing: 2px; }
.lie-gain { animation: pop .4s both; }

/* ---------- v.1.6 : Défi Graffiti ---------- */
.bg-graffiti { background: var(--tomato); }
.gf-box { height: auto; min-height: 0; aspect-ratio: 1 / 1; width: min(100%, 66vh); margin: 0 auto; background: #c2643f; cursor: crosshair; }
body.touch .gf-box { height: auto; min-height: 0; width: min(100%, calc(100dvh - 290px)); min-width: 260px; }
.gf-box .tower-overlay { font-size: 56px; }
.gf-pop { display: inline-block; font-size: 40px; animation: pop .3s both; }
.gf-actions { display: flex; justify-content: center; margin-top: 10px; }
.gf-bar { display: block; height: 8px; border-radius: 6px; background: rgba(45, 11, 61, .15); overflow: hidden; }
.gf-bar i { display: block; height: 100%; border-radius: 6px; transition: width .25s; }
.gf-row .ht { font-family: var(--font-title); font-weight: 400; font-size: 16px; }
@media (max-width: 760px) {
  .gf-row .nm { display: none; }
  .gf-row .gf-bar { grid-row: 1 / span 2; align-self: center; }
}

/* ---------- v.1.7 : Tanks Fruités ---------- */
.bg-tanks { background: var(--sky); }
.tk-hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tk-hpbar { display: inline-block; width: 90px; height: 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); overflow: hidden; vertical-align: -1px; }
.tk-hpbar i { display: block; height: 100%; transition: width .25s; }
.tk-box { height: auto; min-height: 0; aspect-ratio: 16 / 9; background: #7fcfff; }
body.touch .tk-box { aspect-ratio: auto; height: min(100vw - 32px, calc(100dvh - 360px)); min-height: 220px; }
.tk-box .tower-overlay { font-size: 60px; }
/* Plein écran des Tanks : tout le jeu (barre d'infos, terrain, armes, commandes) occupe la fenêtre */
.tk-fsbtn { cursor: pointer; font-size: 15px; color: var(--ink); }
body.tk-fs { overflow: hidden; }
body.tk-fs .app { z-index: 45; }   /* au-dessus de la barre du haut, sous les messages (50), la connexion (60) et les fenêtres (80) */
.tk-wrap.full {
  position: fixed; inset: 0; z-index: 60; background: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
.tk-wrap.full .tk-hud { margin: 0; }
.tk-wrap.full .tk-box, body.touch .tk-wrap.full .tk-box { flex: 1 1 auto; height: auto; min-height: 0; aspect-ratio: auto; }
.tk-wrap.full .tk-weapons { margin-top: 0; }
.tk-wrap.full .tk-wname { margin-top: 0; }
.tk-wrap.full .tk-list, .tk-wrap.full .keys-hint { display: none; }
.tk-wrap.full .tk-controls { margin-top: 0; }
.tk-dead { display: block; font-size: 32px; }
.tk-weapons { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-wp {
  position: relative; display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; cursor: pointer;
  border: var(--border); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); font-family: var(--font-title); font-size: 15px;
}
.tk-wp .ico { font-size: 24px; line-height: 1; }
.tk-wp kbd { position: absolute; top: -8px; left: -6px; background: var(--ink); color: var(--lemon); border-radius: 6px; font-size: 11px; padding: 0 4px; font-family: var(--font); }
body.touch .tk-wp kbd { display: none; }
.tk-wp.on { background: var(--lemon); transform: translateY(-2px); }
.tk-wp.cool { opacity: .7; }
.tk-wp.empty { opacity: .4; }
.tk-wname { text-align: center; font-weight: 800; color: var(--white); text-shadow: 1px 1px 0 var(--ink); margin-top: 6px; font-size: 15px; }
.tk-controls {
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; grid-template-rows: 50px 50px; gap: 8px;
  grid-template-areas: "l r u w f" "l r d w f";
}
.tk-controls .ctl { height: auto; }
.tk-l { grid-area: l; } .tk-r { grid-area: r; } .tk-u { grid-area: u; } .tk-d { grid-area: d; } .tk-w { grid-area: w; }
.tk-f { grid-area: f; background: var(--tomato); color: var(--white); font-size: 34px; line-height: 1; }
.tk-f small { display: block; font-size: 11px; font-family: var(--font); font-weight: 800; }
.tk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
@media (max-width: 760px) {
  .tk-list { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .tk-hud .hud-pill { font-size: 15px; padding: 2px 10px; }
  .tk-hpbar { width: 56px; }
  .tk-weapons { gap: 4px; flex-wrap: nowrap; }
  .tk-wp { flex: 1 1 0; min-width: 0; justify-content: center; padding: 2px 3px; font-size: 13px; gap: 1px; border-radius: 12px; }
  .tk-wp .ico { font-size: 20px; }
}

/* ---------- v.1.8 : Bombe Fruitée, le cercle s'adapte à la hauteur de l'écran ---------- */
/* le cercle ne dépasse jamais la place qui reste une fois la zone de saisie affichée */
.arena { width: min(100%, 640px, calc(100vh - 350px)); width: min(100%, 640px, calc(100dvh - 350px)); min-width: 240px; container-type: inline-size; }
.grenade .syl { font-size: clamp(18px, 7cqw, 46px); }
.grenade .spark { font-size: clamp(14px, 4.5cqw, 30px); }
.boom-fx { font-size: 18cqw; }
/* bulles des joueurs proportionnelles au cercle */
@container (max-width: 520px) {
  .bp { width: 23cqw; }
  .bp-av { width: 9cqw; height: 9cqw; min-width: 30px; min-height: 30px; font-size: max(18px, 5.4cqw); border-radius: 10px; }
  .bp-name { font-size: max(10px, 2.6cqw); }
  .bp-word { font-size: max(10px, 2.6cqw); min-height: 14px; }
  .bp-lives { font-size: max(8px, 2.2cqw); min-height: 12px; line-height: 12px; }
  .arrow i { width: 10px; margin-left: -5px; }
}
/* écran large mais pas très haut (ordinateur portable) : le cercle à gauche, la saisie à droite */
@media (min-width: 900px) and (max-height: 900px) {
  .bomb-wrap { grid-template-columns: auto minmax(300px, 1fr); align-items: center; }
  .arena { width: min(600px, calc(100vh - 190px)); width: min(600px, calc(100dvh - 190px)); }
  .bomb-panel { max-width: none; }
}

/* ---------- v.1.8 : Défi Graffiti, choix de la couleur ---------- */
.gf-actions { align-items: center; gap: 12px; flex-wrap: wrap; }
.gf-palette { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gf-swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; padding: 0; box-shadow: var(--shadow-sm); transition: transform .1s; }
.gf-swatch:hover { transform: scale(1.1); }
.gf-swatch.on { transform: scale(1.18); outline: 3px solid var(--white); outline-offset: 2px; }
@media (max-width: 480px) { .gf-swatch { width: 26px; height: 26px; } }

/* ---------- v.1.8 : Petit Bac ---------- */
.bg-bac { background: var(--lemon); }
.bac-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bac-head p { margin: 0; font-weight: 800; font-size: 17px; }
.bac-letter {
  flex: none; width: 74px; height: 74px; display: grid; place-items: center; border: var(--border); border-radius: 20px;
  background: var(--lemon); box-shadow: var(--shadow-sm); font-family: var(--font-title); font-size: 50px; line-height: 1; animation: pop .4s both;
}
.bac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .bac-grid { grid-template-columns: 1fr; gap: 8px; } }
.bac-field { display: grid; gap: 2px; font-weight: 800; font-size: 14px; }
.bac-field .input { padding: 8px 12px; font-size: 17px; }
.bac-field .input.ok { border-color: #3aa500; background: #f2ffe8; }
.bac-stopmsg { min-height: 22px; margin: 8px 0 0; font-weight: 800; }
.bac-hint { font-weight: 800; color: var(--white); text-shadow: 1px 1px 0 var(--ink); font-size: 17px; }
.bac-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bac-cat { padding: 12px 14px; margin: 0; }
.bac-cat h3 { font-size: 18px; margin-bottom: 8px; }
.bac-ans { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); margin-top: 6px; font-weight: 800; }
.bac-ans .who { font-size: 18px; letter-spacing: 1px; flex: none; }
.bac-ans .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bac-ans .why { font-size: 12px; color: var(--muted); flex: none; }
.bac-ans.mine { background: #ffe6f2; }
.bac-ans.auto { opacity: .55; text-decoration: line-through; }
.bac-ans.auto .why { text-decoration: none; }
.bac-ans.good { background: #f2ffe8; }
.bac-pts { font-family: var(--font-title); color: #1f8a00; flex: none; }
.bac-flag { flex: none; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); padding: 2px 10px; font-weight: 800; cursor: pointer; }
.bac-flag.on { background: var(--tomato); color: var(--white); }
.bac-none { margin: 4px 0 0; font-weight: 700; }

/* ---------- v1.9 : mini-jeux d'adresse et La Bonne Porte ---------- */
.bg-tir { background: var(--peach); }
.bg-train { background: var(--lime); }
.bg-grenade { background: var(--tomato); }
.bg-basket { background: #ff8a3d; }
.bg-hockey { background: var(--sky); }
.bg-volley { background: linear-gradient(180deg, #ff8a6b, #ffc46b); }
body:not(.touch) .vb-pad { display: none; }
.bg-porte { background: var(--grape); }
.bg-compote { background: var(--pink); }
.bg-casse { background: var(--peach); }
.bg-invasion { background: #3b2a6b; }
.bg-grimpe { background: var(--sky); }
.bg-marche { background: var(--lemon); }
.bg-verger { background: var(--lime); }
.bg-mines { background: #7ed957; }
.bg-flipper { background: var(--grape); }
.ar-pad { max-width: 560px; margin-left: auto; margin-right: auto; }
.bg-intrus { background: var(--ink); }
.bg-jus { background: #ff9a3d; }
.bg-mixeur { background: var(--tomato); }
.bg-potager { background: #c08552; }
.bg-astero { background: #3b2a6b; }
.rt-box { cursor: default; }
.bg-croquis { background: var(--sky); }
/* L'Intrus */
.it-word { text-align: center; }
.it-word b { display: block; font-family: var(--font-title); font-size: 44px; color: var(--lemon); line-height: 1.1; margin: 4px 0; }
.it-word small { display: block; font-weight: 800; opacity: .85; }
.it-clues { display: grid; gap: 8px; }
.it-row { display: grid; grid-template-columns: 38px minmax(70px, 140px) 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: var(--cream); border: 2px solid transparent; }
.it-row.me { border-color: var(--pink); }
.it-row.odd { background: var(--lemon); border-color: var(--ink); }
.it-row .av { font-size: 26px; text-align: center; }
.it-row .av .emo { width: 30px; height: 30px; }
.it-row .nm { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-row .cl { display: flex; flex-wrap: wrap; gap: 6px; }
.it-c { background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-weight: 800; }
.it-c.empty { opacity: .4; border-style: dashed; }
.it-tag { background: var(--tomato); color: var(--white); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.it-votes { font-weight: 900; white-space: nowrap; }
.it-votes .emo { width: 20px; height: 20px; }
.it-words { font-size: 20px; font-weight: 800; }
.it-words b { background: var(--lemon); border: 2px solid var(--ink); border-radius: 10px; padding: 0 8px; }
@media (max-width: 600px) {
  .it-row { grid-template-columns: 30px 1fr auto; }
  .it-row .cl { grid-column: 1 / -1; }
}
/* Croquis Fruité */
.sk-head { text-align: center; margin: 6px 0 10px; font-weight: 900; color: var(--white); text-shadow: 1px 1px 0 var(--ink); font-size: 20px; }
.sk-head small { display: block; font-size: 13px; }
.sk-lbl { margin-right: 6px; }
.sk-word { display: inline-block; background: var(--lemon); color: var(--ink); text-shadow: none; border: var(--border); border-radius: 12px; padding: 0 12px; font-family: var(--font-title); font-size: 30px; }
.sk-mask { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; vertical-align: middle; }
.sk-mask i { display: inline-block; min-width: 22px; height: 34px; border-bottom: 4px solid var(--white); font-style: normal; font-family: var(--font-title); font-size: 26px; line-height: 34px; text-align: center; }
.sk-mask i.sp { min-width: 10px; border: 0; }
.sk-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 14px; }
@media (max-width: 760px) { .sk-wrap { grid-template-columns: 1fr; } }
.sk-box { position: relative; aspect-ratio: 8 / 5; background: var(--white); border: var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.sk-box canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.sk-colors, .sk-sizes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.sk-col { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; }
.sk-col.on { outline: 4px solid var(--pink); outline-offset: 2px; }
.sk-size { width: 38px; height: 38px; border-radius: 12px; border: 3px solid var(--ink); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.sk-size i { display: block; border-radius: 50%; background: var(--ink); }
.sk-size.on { background: var(--lemon); }
.sk-guess { display: flex; gap: 8px; margin-top: 10px; }
.sk-guess .input { flex: 1; }
.sk-feed { max-height: 300px; overflow-y: auto; display: grid; gap: 4px; align-content: start; padding: 10px; font-size: 15px; }
.sk-f { font-weight: 700; word-break: break-word; }
.sk-f.ok { color: #1f8a3a; font-weight: 900; }
.sk-f .emo { width: 18px; height: 18px; }
@media (max-width: 760px) { .sk-feed { max-height: 150px; } }
.ar-box { height: auto; min-height: 0; aspect-ratio: 8 / 5; width: min(100%, calc((100dvh - 250px) * 1.6)); margin: 0 auto; background: #2b1d3a; cursor: crosshair; }
body.touch .ar-box { height: auto; min-height: 0; width: min(100%, calc((100dvh - 230px) * 1.6)); min-width: 280px; }
.ar-overlay { font-size: 60px; }
.ar-overlay small { max-width: 80%; margin: 12px auto 0; font-size: 18px; }
@media (max-width: 760px) { .ar-overlay { font-size: 42px; } .ar-overlay small { font-size: 14px; } }

.door-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.door-menu .chip.bad, .chip.hot { background: var(--tomato); color: var(--white); }
.door-rule { text-align: center; font-weight: 700; color: var(--white); text-shadow: 1px 1px 0 var(--ink); margin: 0 0 12px; font-size: 15px; }
.doors { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.doors.n3 { --n: 3; max-width: 560px; } .doors.n4 { --n: 4; } .doors.n5 { --n: 5; }
.door {
  position: relative; aspect-ratio: 3 / 5; border: var(--border); border-radius: 18px 18px 6px 6px; box-shadow: var(--shadow);
  background: repeating-linear-gradient(90deg, #b5713d 0 18px, #a8642f 18px 36px); cursor: pointer; font: inherit; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; transition: transform .15s;
}
button.door:hover { transform: translateY(-4px); }
button.door::before { content: ''; position: absolute; inset: 12% 14% 50%; border: 3px solid rgba(45, 11, 61, .35); border-radius: 10px; }
button.door::after { content: ''; position: absolute; inset: 56% 14% 8%; border: 3px solid rgba(45, 11, 61, .35); border-radius: 10px; }
.door.mine { outline: 5px solid var(--lemon); outline-offset: 3px; }
.door-num { margin-top: 14%; font-family: var(--font-title); font-size: clamp(28px, 6vw, 48px); color: var(--white); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; position: relative; z-index: 1; }
.door-knob { position: absolute; right: 12%; top: 52%; width: 14px; height: 14px; border-radius: 50%; background: var(--lemon); border: 2px solid var(--ink); }
.door-who { position: absolute; left: 4px; right: 4px; bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; z-index: 1; }
.dav { font-size: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.dav .emo { width: 22px; height: 22px; }
.door.open { background: var(--cream); cursor: default; justify-content: center; animation: doorOpen .6s both; padding: 6px 4px 46px; }
.door.open.trap { background: #ffd0d0; }
.door-prize { font-size: clamp(40px, 8vw, 64px); line-height: 1; }
.door-name { font-weight: 800; font-size: 13px; text-align: center; line-height: 1.1; }
.door-val { font-family: var(--font-title); font-size: 26px; color: #1f8a1f; }
.door.trap .door-val { color: var(--tomato); }
@keyframes doorOpen { from { transform: perspective(600px) rotateY(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.door-tot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 8px; }
.door-tot .chip.me { background: var(--lemon); }
.door-tot small.pos { color: #1f8a1f; font-weight: 800; } .door-tot small.neg { color: var(--tomato); font-weight: 800; }
@media (max-width: 560px) { .doors { gap: 6px; } .door-num { font-size: 26px; } .dav { width: 24px; height: 24px; font-size: 16px; } .door-name { font-size: 11px; } .door-val { font-size: 18px; } }

/* ---------- v1.9 : Hockey Pastèque en duels ---------- */
.hk-list { display: grid; gap: 6px; align-content: start; }
.hk-title { margin: 0; font-weight: 800; color: var(--white); text-shadow: 1px 1px 0 var(--ink); text-align: center; }
.hk-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; background: var(--white); border: var(--border); border-radius: 14px; padding: 4px 8px; font-size: 13px; box-shadow: var(--shadow-sm); }
.hk-match.me { background: var(--lemon); }
.hk-match .hk-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-match .hk-p.r { text-align: right; }
.hk-match .hk-sc { font-family: var(--font-title); font-size: 20px; }
.hk-match .emo { width: 18px; height: 18px; vertical-align: middle; }
.hk-last { display: grid; gap: 6px; max-width: 560px; margin: 0 auto 12px; padding: 10px; }
.hk-next { font-weight: 800; color: var(--white); text-shadow: 1px 1px 0 var(--ink); font-size: 20px; margin: 4px 0; }
@media (max-width: 760px) { .hk-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.hk-link { font-size: 14px; }
.hk-link.direct { background: #c9f7b5; }
.hk-link.server { background: var(--lemon); }
.hk-link.wait { background: var(--cream); }
@media (max-width: 760px) { .hk-link { font-size: 12px; } }

/* ---------- Liens du pied de page ---------- */
.footer a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--lemon); }

/* ---------- Pages légales (mentions légales, confidentialité) ---------- */
.legal { max-width: 820px; line-height: 1.55; font-size: 17px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 22px; margin-top: 22px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--pink-d); font-weight: 700; }
.legal .legal-tldr { background: var(--lemon); border: var(--border); border-radius: 14px; padding: 12px 14px; }
.legal-table { overflow-x: auto; margin: 0 0 12px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: var(--border); border-radius: 14px; overflow: hidden; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid #f0dfe9; }
.legal-table th { background: var(--ink); color: var(--lemon); font-family: var(--font-title); font-weight: 400; letter-spacing: .5px; }
.legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .legal { font-size: 16px; }
  .legal h1 { font-size: 26px; }
  .legal-table table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border-bottom: 2px solid #f0dfe9; padding: 6px 0; }
  .legal-table tr:last-child { border-bottom: 0; }
  .legal-table td { border: 0; padding: 2px 10px; }
  .legal-table td:nth-child(3)::before { content: "⏱️ "; }
}

/* ---------- Tchat et réactions des rooms ---------- */
.chat-btn { position: relative; }
.icon-btn.on { background: var(--lemon); }
.chat-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--tomato); color: var(--white); border: 2px solid var(--ink);
  font: 800 12px/16px var(--font); text-align: center;
}
/* Petits écrans : la barre du haut garde la place pour les boutons du tchat */
@media (max-width: 480px) {
  body.in-room .mini-logo span, body.in-room .mini-logo .ml-games { display: none; }
  body.in-room .quit-btn { padding: 0 11px; }
}
@media (max-width: 380px) {
  body.in-room .quit-btn .ql-short { display: none; }
  body.in-room .topbar-right { gap: 6px; }
}

.chat-panel {
  position: fixed; z-index: 70; top: 64px; right: 12px; bottom: 12px; width: 360px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; padding: 0; overflow: hidden; animation: pop .2s ease;
}
@media (max-width: 600px) { .chat-panel { left: 8px; right: 8px; bottom: 8px; top: 60px; width: auto; max-width: none; } }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 3px solid var(--ink); background: var(--white); }
.chat-head b { font-family: var(--font-title); font-weight: 400; font-size: 19px; }
.chat-tools { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.chat-tool { border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); font: 800 13px var(--font); padding: 3px 10px; }
.chat-tool:hover { background: var(--lemon); }
.chat-x { border: 0; background: none; font-size: 20px; font-weight: 800; padding: 2px 6px; margin-left: 2px; }
.chat-tools:empty + .chat-x { margin-left: auto; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-empty { margin: auto; color: var(--muted); font-weight: 700; text-align: center; }
.chat-msg { display: flex; gap: 8px; align-items: flex-end; cursor: pointer; }
.chat-msg.mine { flex-direction: row-reverse; cursor: default; }
.chat-av { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; }
.chat-av .emo { width: 26px; height: 26px; }
.chat-bub {
  max-width: 78%; background: var(--white); border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px;
  padding: 5px 10px 6px; line-height: 1.3; overflow-wrap: anywhere;
}
.chat-msg.mine .chat-bub { background: #ffe3f1; border-radius: 14px 14px 4px 14px; }
.chat-msg.sel .chat-bub { box-shadow: var(--shadow-sm); }
.chat-bub b { display: block; font-size: 12px; color: var(--pink-d); }
.chat-msg.mine .chat-bub b { display: none; }
.chat-t { font-weight: 600; }
.chat-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-acts button { border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); font: 800 12px var(--font); padding: 2px 9px; }
.chat-acts button:hover:not(:disabled) { background: var(--lemon); }
.chat-acts button:disabled { opacity: .6; cursor: default; }
.chat-sys { align-self: center; font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.chat-react { display: flex; justify-content: space-between; gap: 2px; padding: 6px 10px 0; border-top: 3px solid var(--ink); background: var(--white); }
.chat-form { display: flex; gap: 8px; padding: 8px 10px 4px; background: var(--white); }
.chat-form .input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 16px; }
.chat-form .input:disabled { opacity: .6; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--muted); font-weight: 700; background: var(--white); }

.react-pop { position: fixed; z-index: 72; top: 60px; right: 12px; width: 320px; max-width: calc(100vw - 24px); padding: 10px; animation: pop .15s ease; }
.rp-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rp-row + .rp-row { margin-top: 8px; padding-top: 8px; border-top: 2px dashed #e7cfdd; }
.rp-emo { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px; border-radius: 10px; transition: transform .1s; }
.rp-emo:hover { transform: scale(1.25); background: #fff0f7; }
.rp-txt { border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: 800 14px var(--font); padding: 4px 10px; }
.rp-txt:hover { background: var(--lemon); }
.chat-react .rp-emo { font-size: 22px; padding: 2px 3px; }

.react-layer { position: fixed; z-index: 75; right: 0; bottom: 70px; width: 300px; height: 55vh; pointer-events: none; overflow: hidden; }
/* tchat ouvert sur grand écran : les réactions s'envolent juste à gauche du panneau */
@media (min-width: 601px) { body.chat-open .react-layer, body.radio-open .react-layer { right: 384px; } }
.react-fly {
  position: absolute; bottom: 0; display: flex; align-items: center; gap: 4px; max-width: 280px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px 3px 4px; box-shadow: var(--shadow-sm);
  animation: reactUp 3.3s ease-out forwards;
}
.react-fly .rf-av { font-size: 18px; display: grid; place-items: center; }
.react-fly .rf-av .emo { width: 20px; height: 20px; }
.react-fly .rf-emo { font-size: 30px; line-height: 1; }
.react-fly .rf-txt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.react-fly .rf-name { font-size: 11px; font-weight: 800; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes reactUp {
  0% { transform: translateY(20px) scale(.6); opacity: 0; }
  12% { transform: translateY(0) scale(1.08); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(-42vh) scale(.95); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .react-fly { animation-duration: 3.3s; animation-name: reactFade; }
  @keyframes reactFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* Messages retirés et exclusion par l'hôte */
.chat-gone { align-self: center; font-size: 13px; font-weight: 700; font-style: italic; color: var(--muted); text-align: center; }
.pc-kick {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); font: 800 13px/1 var(--font); color: var(--ink); padding: 0;
  opacity: .55; transition: opacity .15s, background .15s;
}
.pc-kick:hover, .pc-kick:focus-visible { opacity: 1; background: var(--tomato); color: var(--white); }
body.touch .pc-kick { opacity: .8; }

/* ---------- Radio de la room ---------- */
.icon-btn.live { box-shadow: 0 0 0 3px var(--lime), var(--shadow-sm); }
.radio-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; display: flex; flex-direction: column; gap: 12px; }
.radio-now { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; }
.rn-empty { text-align: center; font-weight: 800; }
.rn-empty small { font-weight: 700; color: var(--muted); }
.rn-top { display: flex; align-items: center; gap: 10px; }
.rn-flag { font-size: 24px; flex: none; width: 32px; text-align: center; }
.rn-txt { min-width: 0; }
.rn-txt b, .rp-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-txt small, .rp-info small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rn-vol { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 110px; }
.rn-vol input { flex: 1; min-width: 0; width: 100%; accent-color: var(--pink); }
.radio-h { font-family: var(--font-title); font-weight: 400; font-size: 17px; margin: 0 0 6px; }
.radio-h small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 700; }
.radio-prop, .radio-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 2px dashed #ecd8e3; }
.radio-prop:last-child, .radio-row:last-child { border-bottom: 0; }
.radio-prop { background: #fff4c2; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; margin-bottom: 6px; flex-wrap: wrap; }
.radio-prop .rp-info { min-width: 150px; }
.radio-prop .rp-acts { margin-left: auto; }
.rp-info { flex: 1; min-width: 0; }
.rp-acts { display: flex; gap: 4px; flex: none; }
.radio-prop .btn.small, .radio-row .btn.small { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.rp-voted { font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.radio-filters { display: flex; gap: 6px; }
.radio-filters .input { padding: 7px 10px; font-size: 15px; min-width: 0; }
.radio-filters select { flex: 1; }
.radio-filters input { flex: 1.2; }
.radio-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.radio-tags .pill { font-size: 13px; padding: 3px 10px; }
.radio-list { min-height: 80px; }
.radio-panel .chat-note a { color: var(--pink-d); }
/* Très petits écrans (320–360 px) : boutons du haut un peu plus petits pour que tout tienne */
@media (max-width: 360px) {
  body.in-room .topbar-right .icon-btn { width: 36px; height: 36px; font-size: 16px; }
  body.in-room .room-badge { padding: 2px 6px; letter-spacing: 0; }
  body.in-room .quit-btn { padding: 0 9px; height: 36px; }
  body.in-room .topbar-right { gap: 4px; }
}

/* ---------- « Une idée ? Un bug ? » ---------- */
.modal.fb-box { max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.fb-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.fb-type {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: var(--border); border-radius: 14px;
  background: var(--white); font: 800 14px/1.15 var(--font); box-shadow: var(--shadow-sm);
}
.fb-type span { font-size: 24px; }
.fb-type.on { background: var(--lemon); }
.fb .lbl { margin-top: 10px; }
.fb-area { width: 100%; resize: vertical; min-height: 64px; font-size: 16px; }
.fb select.input, .fb input.input { width: 100%; }
.fb-note { margin: 8px 0 0; }
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-tech { margin-top: 12px; }
.fb-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 14px; }
.fb-check input { margin-top: 3px; accent-color: var(--pink); }
.fb-tech details { margin-top: 6px; font-size: 14px; }
.fb-tech summary { cursor: pointer; font-weight: 800; color: var(--pink-d); }
.fb-tech pre {
  max-height: 220px; overflow: auto; background: var(--white); border: 2px solid var(--ink); border-radius: 10px;
  padding: 8px; font-size: 11px; white-space: pre-wrap; word-break: break-word;
}
.bug-nudge {
  position: fixed; z-index: 55; left: 12px; bottom: 12px; border: var(--border); border-radius: 999px; background: var(--white);
  font: 700 14px var(--font); padding: 8px 14px; box-shadow: var(--shadow-sm); animation: pop .25s ease;
}
.bug-nudge b { color: var(--pink-d); }

/* Notes des jeux (étoiles) */
.app-rate { font-size: 12px; font-weight: 800; color: #e0a100; line-height: 1.2; margin-top: 1px; }
.app-rate i { font-style: normal; color: var(--muted); font-weight: 700; }
.app-rate.none { color: var(--muted); opacity: .75; font-weight: 700; }
.rate-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 16px; }
.rate-card .stars { display: flex; gap: 4px; }
.rate-card .stars button { background: none; border: 0; padding: 2px 4px; font-size: 34px; line-height: 1; cursor: pointer; color: #d9d2e3; transition: transform .12s, color .12s; }
.rate-card .stars button.on { color: #ffc21a; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.rate-card .stars button:hover { transform: scale(1.15); }

/* Jeux d'adresse en hauteur (Flipper Fruité : 600 × 900) */
.ar-box.tall { aspect-ratio: 2 / 3; width: min(100%, calc((100dvh - 250px) * 0.6667)); min-width: 0; background: #120a1c; }
body.touch .ar-box.tall { width: min(100%, calc((100dvh - 250px) * 0.6667)); min-width: 260px; }

/* Icônes de jeu dessinées (pas d'emoji « flipper ») : même taille qu'un emoji */
.ico-svg { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.24em; flex: none; }

/* ---------- bandeau de consentement (mesure d'audience) ---------- */
.consent-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 95;
  width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.35;
  animation: consentIn .35s ease-out;
}
.consent-bar p { margin: 0; flex: 1 1 260px; }
.consent-bar a { color: var(--ink); text-decoration: underline; }
.consent-btns { display: flex; gap: 8px; margin-left: auto; }
.consent-btns .btn { min-width: 100px; }
@keyframes consentIn { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* ---------- page de statistiques (fruities.fr/?stats) ---------- */
.stats-login { max-width: 520px; margin: 0 auto; }
.stats-err { color: #c4002f; font-weight: 800; }
.stats-periods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.stats-periods .chip { cursor: pointer; border: 3px solid var(--ink); font: inherit; font-weight: 800; }
.stats-periods .chip.on { background: var(--pink); color: var(--white); }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-tile { background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 10px 12px; display: grid; }
.stats-tile .ico { font-size: 24px; }
.stats-tile b { font-family: var(--font-title); font-size: 30px; line-height: 1.1; }
.stats-tile small { color: var(--muted); font-weight: 800; }
.stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
.stats-chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.stats-chart .col i { display: block; width: 100%; background: var(--pink); border: 2px solid var(--ink); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.stats-chart .col small { font-size: 10px; color: var(--muted); font-weight: 800; margin-top: 2px; }
.stats-games { display: grid; gap: 6px; }
.stats-game { display: grid; grid-template-columns: 30px 32px 1fr 56px 64px; align-items: center; gap: 6px; font-weight: 800; }
.stats-game.zero { opacity: .45; }
.stats-game .rk { text-align: center; font-family: var(--font-title); }
.stats-game .ico { font-size: 22px; text-align: center; }
.stats-game .nm { display: grid; gap: 3px; min-width: 0; }
.stats-game .nm .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stats-game .sbar { display: block; height: 7px; background: rgba(45,11,61,.08); border-radius: 4px; overflow: hidden; }
.stats-game .sbar b { display: block; height: 100%; background: var(--pink); border-radius: 4px; }
.stats-game .n { text-align: right; font-family: var(--font-title); font-size: 18px; }
.stats-game .avg { text-align: right; color: var(--muted); font-size: 13px; }
.stats-note { font-size: 13px; margin-top: 10px; }
@media (max-width: 480px) { .stats-game { grid-template-columns: 24px 26px 1fr 46px 52px; font-size: 14px; } }

/* ---------- mode solo : grille de choix et écran de fin ---------- */
.solo-apps { margin-bottom: 8px; }
.solo-tile { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 6px 2px; border-radius: 14px; transition: transform .1s, background .15s; }
.solo-tile:hover { background: rgba(255,79,163,.08); }
.solo-tile:hover .app-ico { transform: translateY(-4px) rotate(-6deg); }
.solo-tile:active { transform: translate(2px, 2px); }
.solo-tile:disabled { opacity: .5; cursor: default; }
.solo-rec { font-size: 12px; font-weight: 800; color: #e0a100; line-height: 1.2; margin-top: 1px; }
.solo-rec.none { color: var(--muted); opacity: .5; }
.solo-end { padding: 10px 0 4px; }
.solo-end-ico { font-size: clamp(54px, 14vw, 90px); line-height: 1; filter: drop-shadow(3px 4px 0 rgba(45,11,61,.25)); }
.solo-score { font-family: var(--font-title); font-size: clamp(44px, 12vw, 76px); color: var(--pink); line-height: 1; margin: 6px 0; }
.solo-score small { display: block; font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 800; letter-spacing: .5px; }
.solo-rec-new { font-weight: 800; color: #1f8a00; font-size: 18px; }

/* ---------- mode streamer (jusqu'à 80 joueurs) ---------- */
.stream-banner { margin: 14px 0 0; padding: 8px 12px; border-radius: 12px; background: #e9f7ff; border: 2px dashed var(--ink); font-weight: 700; font-size: 15px; }
.players-grid.compact { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto; }
.players-grid.compact .pcard { padding: 6px 8px; flex-direction: row; gap: 6px; min-height: 0; text-align: left; }
.players-grid.compact .pcard .av { font-size: 20px; }
.players-grid.compact .pcard .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players-grid.compact .pcard small { display: none; }

/* ---------- accueil : bloc « jouer » (hiérarchie claire, deux tuiles de modes) ---------- */
.home-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }   /* deux colonnes de même largeur : bloc équilibré */
.home-card .avatars { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }   /* les fruits passent à la ligne selon la place */
@media (max-width: 760px) { .home-card { grid-template-columns: 1fr; } }
.home-go .go-main { font-size: 22px; min-height: 62px; }
.home-go .go-alt { margin-top: 12px; }
.home-go .divider { margin: 18px 0 12px; font-size: 14px; }
.join-row { display: flex; gap: 10px; }
.join-row .input { flex: 1; min-width: 0; }
.join-row .btn { flex: none; min-width: 128px; }
.btn.grape { background: var(--grape); color: var(--white); text-shadow: 1px 1px 0 var(--ink); }
/* connexion avec Twitch (sous le pseudo) */
.tw-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.tw-box:empty { display: none; }
.tw-box small { font-size: 13px; }
.btn.twitch { background: #9146ff; color: var(--white); text-shadow: 1px 1px 0 var(--ink); gap: 6px; }
.tw-ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.tw-on { font-weight: 600; font-size: 15px; color: #6b2fd6; }
.tw-on b { color: var(--ink); }
.tw-out { font-size: 14px; color: inherit; opacity: .75; }
.mode-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-tile { flex-direction: column; gap: 2px; min-height: 104px; padding: 12px 10px; font-size: 19px; line-height: 1.15; text-align: center; }
.mode-tile .mt-ico { font-size: 30px; line-height: 1; margin-bottom: 2px; }
.mode-tile b { font-weight: 400; }
.mode-tile small { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: 0; opacity: .85; text-shadow: none; }
@media (max-width: 480px) {
  .home-go .go-main { font-size: 19px; }
  .mode-tile { font-size: 16px; min-height: 96px; padding: 10px 6px; }
  .join-row .btn { min-width: 0; padding: 12px 16px; }
}
.lobby-warn { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #fff3c4; border: 2px solid var(--ink); font-weight: 700; font-size: 14px; }
/* Croquis Fruité, mode streamer : mot caché à l'écran, affiché dans une fenêtre à part */
.sk-hidden { font-weight: 800; opacity: .8; }
.sk-wordlinks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 8px; }
.sk-head .sk-wordlinks small { display: inline; font-size: 15px; }
body.mot-page .topbar-right, body.mot-page .footer, body.mot-page .bg-fruits { display: none; }
.mot-card { max-width: 520px; margin: 10px auto; text-align: center; }
.mot-word { font-family: var(--font-title, inherit); font-size: clamp(34px, 9vw, 60px); line-height: 1.1; margin: 6px 0 10px; color: var(--ink); word-break: break-word; }
.mot-word.small { font-size: clamp(26px, 7vw, 42px); }
.mot-lbl { font-weight: 700; margin: 6px 0; }
/* tchat Twitch (mode streamer) */
.twc-state { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); }
.twc-state.ok { color: #1f9d55; }
.twc-state.off { color: #d9534f; }
.twc-ini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 900; border: 2px solid var(--ink); }
.twc-emo { height: 22px; width: auto; vertical-align: -5px; margin: 0 1px; }
.twc-badges { font-size: 11px; }
.chat-msg.tw { cursor: default; }
.chat-t.twc-me { font-style: italic; }
.chat-msg.tw.mine .chat-bub b { display: block; }   /* tchat Twitch : son propre pseudo aussi, comme sur Twitch */
/* écran des règles : « Je suis prêt » / « Lancer le jeu » */
.intro-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.intro-foot .intro-go { max-width: 360px; font-size: 20px; }
.intro-foot .intro-go.hot { animation: introHot 0.9s ease-in-out infinite alternate; }
@keyframes introHot { from { transform: scale(1); } to { transform: scale(1.05); } }
.intro-note { margin: 0; font-weight: 800; }
.intro-note.small { font-size: 13px; color: var(--muted); }
.intro-note.big { font-size: 18px; }
/* records solo : choix de jeu (3 vies), bloc « Records » de l'accueil, fin de partie */
.solo-note { margin: -4px 0 12px; font-weight: 700; font-size: 14px; }
.solo-lives { display: block; font-size: 10px; letter-spacing: 1px; margin-top: 2px; }
.solo-rank { margin: 10px 0 0; font-weight: 800; font-size: 18px; }
.solo-rank-note { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
#soloRank .btn { margin-top: 12px; }
.home-rec h3 { margin-top: 0; }
.rec-games { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.rec-g { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; font: inherit; }
.rec-g .app-ico { width: 40px; height: 40px; font-size: 22px; }
.rec-g small { font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; color: var(--muted); }
.rec-g.on { border-color: var(--ink); background: var(--lemon); }
.rec-g.on small { color: var(--ink); }
.rec-list { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: none; }
.rec-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-weight: 700; }
.rec-list li:nth-child(odd) { background: rgba(0, 0, 0, .04); }
.rec-list li.me { background: #ffe3f1; outline: 2px solid var(--pink); }
.rec-r { width: 34px; text-align: center; font-weight: 900; flex: none; }
.rec-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b2fd6; font-weight: 800; text-decoration: none; }
.rec-n:hover { text-decoration: underline; }
.rec-sc { font-family: var(--font-title); font-size: 18px; flex: none; }
.rec-empty { margin: 12px 0 4px; font-weight: 700; text-align: center; }
.rec-more { margin-top: 10px; }
.rec-me { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.rec-me .tw-ico { color: #9146ff; }
.rec-top50 { max-height: 60vh; overflow-y: auto; }
.rec-del { border: 0; background: none; color: #d9534f; font-weight: 900; cursor: pointer; padding: 0 4px; }
.intro-lives { margin: 4px auto 10px; padding: 6px 14px; display: inline-block; border-radius: 999px; background: #ffe3f1; border: 2px solid var(--ink); font-weight: 700; }
.rec-title { margin: 6px 0 0; font-family: var(--font-title); font-size: 20px; display: flex; align-items: center; gap: 8px; }
.rec-title .ico-svg { width: 26px; height: 26px; }
.rec-title small { font-family: var(--font); font-size: 12px; font-weight: 700; margin-left: auto; }
/* Top Fruities : les jeux en grille d'icônes (plus de barre de défilement) */
.rec-games { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 2px 0 10px; justify-items: center; }
@media (max-width: 760px) { .rec-games { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rec-g { width: auto; padding: 4px; border-radius: 12px; justify-content: center; }
.rec-g small { display: none; }
.rec-g .app-ico { width: 42px; height: 42px; font-size: 22px; }
.rec-g:hover:not(.on) { background: rgba(0, 0, 0, .05); }
@media (max-width: 480px) { .rec-g .app-ico { width: 38px; height: 38px; font-size: 20px; } }
@media (max-width: 480px) { .rec-title { flex-wrap: wrap; } .rec-title small { margin-left: 0; width: 100%; } }
/* accueil : carrousel des jeux sur une ligne (glisser, flèches) et fiche d'un jeu */
.car-wrap { position: relative; margin: 6px -6px 0; }
#homeApps.car { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; max-width: none; margin: 0; padding: 10px 28px 6px;
  overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); }
#homeApps.car::-webkit-scrollbar { display: none; }
#homeApps.car.dragging { cursor: grabbing; }
#homeApps.car .app-tile { flex: none; width: 128px; border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; }
#homeApps.car.dragging .app-tile { cursor: grabbing; }
#homeApps.car .app-tile img, #homeApps.car .app-tile svg { pointer-events: none; }
.car-arr { position: absolute; top: 46px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: var(--border); background: var(--white);
  box-shadow: var(--shadow-sm); font-size: 14px; display: grid; place-items: center; cursor: pointer; transition: opacity .2s; }
.car-arr.l { left: 0; } .car-arr.r { right: 0; }
.car-arr.off { opacity: 0; pointer-events: none; }
@media (max-width: 480px) { #homeApps.car .app-tile { width: 100px; } #homeApps.car { gap: 8px; } .car-arr { top: 36px; width: 30px; height: 30px; } }
.gcard { text-align: center; }
.gcard .app-ico { margin: 0 auto 6px; }
.gcard h3 { margin: 4px 0; }
.gcard-rate { margin: 0 0 8px; font-weight: 800; color: var(--muted); }
.gcard-rule { font-weight: 600; }
.gcard-acts { flex-wrap: wrap; justify-content: center; }
