/* Babi — interface moderne et épurée.
   Deux matières seulement : le « verre sombre » posé sur le monde en 3D (heure, besoins, barre du bas, messages),
   et le « papier clair » pour tout ce qu'on lit (fiches, téléphone, formulaires).
   Une couleur d'action (latérite), un accent (jaune), des coins de 16 px, aucune inclinaison, aucune texture. */
@font-face { font-family: "DM Sans"; src: url("/vendor/fonts/dmsans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/vendor/fonts/dmsans-latin-ext.woff2") format("woff2"); font-weight: 100 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
:root {
  --ink: #1a1423; --ink-2: #4b4458; --mute: #7a7286; --paper: #ffffff; --sand: #f6f2ea; --line: rgba(26, 20, 35, .1);
  --orange: #e4572e; --orange-d: #c2441f; --blue: #1e6fd9; --yellow: #f6b400; --green: #0f8b8d; --red: #d63a4a;
  --glass: rgba(26, 20, 35, .8); --r: 16px; --r-sm: 12px; --r-lg: 24px;
  --shadow: 0 10px 30px rgba(26, 20, 35, .18); --shadow-sm: 0 2px 10px rgba(26, 20, 35, .12);
  --edge: 1.5px solid var(--line); --bg: var(--sand); --solid: var(--paper);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #ffd9a0; color: var(--ink); font: 500 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font-family: var(--font); }
[hidden] { display: none !important; }
button { font-size: inherit; font-weight: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
small { color: var(--mute); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.glass { background: var(--glass); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- boutons et champs ---------- */
.btn { display: block; width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r); background: var(--orange); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.01em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); transition: transform .08s, filter .15s; }
.btn:active { transform: scale(.98); filter: brightness(.94); }
.btn:disabled { opacity: .45; }
.btn.ghost { background: var(--sand); color: var(--ink); margin-top: 10px; box-shadow: none; font-weight: 600; }
.link { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 16px; color: var(--mute); font-weight: 600; }
.err { color: var(--red); min-height: 1.2em; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
#authForm label, .sheet-body label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
#authForm input, .sheet-body input, .inline input, .send input { display: block; width: 100%; padding: 13px 14px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 500; }
#authForm input, .sheet-body input { margin-top: 6px; }

/* ---------- accueil ---------- */
#auth { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; padding: calc(20px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(26, 20, 35, .55), rgba(26, 20, 35, 0) 36%, rgba(26, 20, 35, 0) 54%, rgba(26, 20, 35, .6)); overflow-y: auto; }
#auth > * { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
.l-top { display: flex; justify-content: flex-end; min-height: 28px; }
.l-badge { background: var(--glass); color: #fff; font-weight: 600; font-size: 12.5px; padding: 6px 12px; border-radius: 20px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.l-title { margin: 6px 0 auto; }
.l-kicker { margin: 0 0 14px; color: rgba(255, 255, 255, .92); font-weight: 600; font-size: 14.5px; max-width: 300px; }
.l-title h1 { margin: 0; font-size: clamp(84px, 27vw, 148px); line-height: .84; font-weight: 900; letter-spacing: -.06em; color: #fff; text-transform: uppercase; text-shadow: 0 6px 30px rgba(26, 20, 35, .35); }
.l-title h1 span { display: block; font-size: .2em; font-weight: 700; letter-spacing: 0; color: var(--yellow); text-transform: none; margin-bottom: .5em; text-shadow: none; }
.l-slogan { display: inline-block; margin: 18px 0 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: var(--r-sm); }
.l-slogan::before { content: "« "; } .l-slogan::after { content: " »"; }
.l-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 18px; }
.l-card > div:not(.wax), .l-card form { padding: 18px 18px 20px; }
.l-card p { margin: 0 0 16px; color: var(--ink-2); }
.l-card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
/* la seule touche de couleur décorative : un filet aux trois couleurs de la maison */
.wax { height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--green) 66.6%); }

/* ---------- création du personnage ---------- */
#creator { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; }
#creator > * { pointer-events: auto; }
.c-head { text-align: center; padding: calc(16px + env(safe-area-inset-top)) 16px 0; }
.c-head b { display: inline-block; font-size: 17px; font-weight: 700; background: var(--glass); color: #fff; border-radius: 20px; padding: 7px 16px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.c-quit { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 12px; background: var(--glass); color: #fff; border-radius: 20px; min-height: 40px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(26, 20, 35, .18); }
.dots i.on { background: var(--orange); }
.c-panel { background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 58vh; display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
#cBody { overflow-y: auto; margin-bottom: 14px; }
.c-row { margin-bottom: 16px; }
.c-row > small { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { padding: 9px 15px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); font-weight: 600; font-size: 14px; }
.opts button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts button.sw { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.opts button.sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.opts button.pick-perso { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 13px; text-align: left; }
.opts button.pick-perso small { font-size: 11.5px; font-weight: 500; opacity: .72; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards.one { grid-template-columns: 1fr; }
.pick { text-align: left; background: var(--paper); border: var(--edge); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pick b { font-size: 14.5px; font-weight: 700; }
.pick small { font-size: 12.5px; line-height: 1.35; }
.pick.on { border-color: var(--orange); background: #fdf1ec; box-shadow: inset 0 0 0 1px var(--orange); }
.lot { text-align: center; padding: 4px 0; }
.lot .big { font-size: 44px; }
.lot h3 { display: block; margin: 6px 0 4px; font-size: 28px; font-weight: 900; color: var(--ink); text-transform: none; letter-spacing: -.03em; }
.lot ul { text-align: left; padding-left: 20px; color: var(--ink-2); }
.lot li { margin: 5px 0; }

/* ---------- le jeu : verre sombre sur le monde ---------- */
#game > * { position: fixed; z-index: 5; }
#top { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
#top > * { pointer-events: auto; padding: 8px 12px; border-radius: 20px; background: var(--glass); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#hOnline { color: #7fe0c8; }
#hMoney { margin-left: auto; background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.01em; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-sm); }
.pill { top: calc(54px + env(safe-area-inset-top)); left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--glass); color: #fff; border-radius: 20px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; text-align: left; max-width: 66vw; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.news { top: calc(98px + env(safe-area-inset-top)); left: 10px; margin: 0; cursor: pointer; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 20px; max-width: 74vw; }
.hint-bar { bottom: calc(100px + env(safe-area-inset-bottom)); right: 10px; margin: 0; background: var(--glass); color: #fff; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; max-width: 44vw; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hint-bar.above { bottom: calc(158px + env(safe-area-inset-bottom)); }
.pill.guide { top: auto; left: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; padding: 11px 16px; border-radius: var(--r); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill.buy { display: flex; align-items: center; gap: 8px; top: auto; left: auto; right: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* les besoins : six anneaux qui se vident */
#needs { left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.need { --c: #35c9a5; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .16) 0); }
.need span { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.need .ico { width: 17px; height: 17px; }
.need.mid { --c: var(--yellow); }
.need.low { --c: #ff5a6b; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }

/* la barre du bas : un dock en verre sombre */
#nav { bottom: calc(10px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0 auto; width: min(420px, calc(100vw - 20px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
#nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .72); position: relative; padding: 2px 0; }
#nav button .ico { width: 44px; height: 36px; padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); transition: background .15s; }
#nav button.on { color: #fff; }
#nav button.on .ico { background: var(--yellow); }
#nav button:disabled { opacity: .35; }
#nav em { position: absolute; top: -2px; right: 18%; width: 11px; height: 11px; border-radius: 50%; background: #ff5a6b; border: 2px solid var(--ink); }
.ico { width: 22px; height: 22px; flex: none; display: block; }
.etoiles { display: inline-flex; gap: 2px; vertical-align: -3px; }
.etoiles .ico { width: 16px; height: 16px; }
.etoiles .ico.vide { opacity: .22; filter: grayscale(1); }
.note-opt { display: flex; align-items: center; gap: 12px; }
.note-opt .etoiles .ico { width: 24px; height: 24px; }

/* la rue : qui est là, et de quoi parler */
#place { left: 0; right: 0; margin: 0 auto; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 20px)); border-radius: 22px; padding: 12px; background: var(--glass); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.place-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.place-head b { font-size: 15px; font-weight: 700; }
.place-head small { font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-chat { font-size: 13px; max-height: 40px; overflow: hidden; margin-bottom: 8px; color: rgba(255, 255, 255, .9); }
.place-chat p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-chat b { color: var(--yellow); font-weight: 700; }
.send { display: flex; gap: 8px; }
.send input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; }
.send button { background: var(--orange); color: #fff; border-radius: var(--r-sm); width: 46px; font-weight: 800; flex: none; }
.chips { display: none; }

/* ---------- fiches : papier clair ---------- */
h3 { margin: 20px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.list { background: var(--paper); border: var(--edge); border-radius: var(--r); overflow: hidden; }
.act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; border-top: 1px solid var(--line); }
.act:first-child { border-top: 0; }
.act:active { background: var(--sand); }
.act .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.act .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act .tx b { font-weight: 600; font-size: 15px; }
.act .tx small { font-size: 12.5px; }
/* le volume du jeu (Réglages) : la barre à glisser dans la ligne */
.vol-row .vol-range { width: 100%; margin-top: 6px; accent-color: var(--accent, #1e6fd9); height: 28px; }
.vol-row > b { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; font-size: 14px; }
.act .pr { font-weight: 700; font-size: 13.5px; white-space: nowrap; color: var(--orange-d); }
.act .pr.gain { color: var(--green); }
.act.off { opacity: .5; }
.act.off .tx small { color: var(--red); }
.act.info { cursor: default; background: var(--sand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--sand); border-radius: var(--r-sm); padding: 10px 12px; }
.stat small { display: block; font-size: 11.5px; margin-bottom: 1px; }
.stat b { font-size: 14px; font-weight: 700; }
.note { color: var(--mute); font-size: 13.5px; margin: 8px 0; }
.inline { display: flex; gap: 8px; margin: 8px 0 12px; }
.inline input { flex: 1; min-width: 0; }
.inline button { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 0 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.home-card { background: var(--paper); border: var(--edge); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; display: block; width: 100%; text-align: left; }
.home-card.mine { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.home-card.off { opacity: .6; }
.home-art { display: block; width: 100%; height: auto; }
.home-card div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.home-card b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.home-card .pr { color: var(--orange-d); font-weight: 700; margin-top: 2px; }
.tier { align-self: flex-start; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; margin-bottom: 4px; }
.tier.cite { background: var(--blue); }

/* ---------- le téléphone ---------- */
#phone { position: fixed; inset: 0; z-index: 20; background: rgba(26, 20, 35, .5); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.phone-close { align-self: center; background: var(--paper); border-radius: 20px; min-height: 40px; padding: 8px 18px; font-weight: 600; font-size: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.phone-body { width: min(380px, 100%); height: min(720px, calc(100vh - 78px)); background: var(--ink); border-radius: 40px; padding: 10px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.phone-bar { display: flex; justify-content: space-between; padding: 8px 20px 6px; font-size: 12px; font-weight: 600; color: #fff; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); border-radius: 30px 30px 0 0; }
.phone-head button { font-size: 22px; line-height: 1; font-weight: 600; width: 36px; height: 36px; background: var(--sand); border-radius: 12px; }
.phone-head b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.phone-screen { flex: 1; overflow-y: auto; padding: 4px 14px 22px; background: var(--paper); border-radius: 0 0 30px 30px; }
.phone-screen.home { background: linear-gradient(160deg, #2a7de8, #174f9c 70%); color: #fff; padding: 22px 16px; border-radius: 30px; }
.ph-clock { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.ph-date { font-weight: 500; opacity: .85; margin: 4px 0 26px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 6px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #fff; position: relative; }
.app i { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .08s; }
.app:active i { transform: scale(.94); }
.app i .ico { width: 34px; height: 34px; }
.app em, .badge { position: absolute; top: -5px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff5a6b; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.badge { position: static; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; background: var(--sand); padding: 4px; border-radius: var(--r-sm); }
.seg button { padding: 9px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--mute); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.msgs { background: var(--sand); border-radius: var(--r); padding: 12px; height: 330px; overflow-y: auto; margin-bottom: 10px; }
.msg { margin: 0 0 8px; overflow-wrap: anywhere; font-size: 14.5px; }
.msg b { color: var(--orange-d); font-weight: 700; }
.msg span { display: inline-block; background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 8px 12px; max-width: 86%; text-align: left; }
.msg.mine { text-align: right; }
.msg.mine span { background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.sys { background: var(--paper); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .rk { width: 26px; font-weight: 700; text-align: center; color: var(--mute); }
.row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row .vl { font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ---------- la fiche qui monte du bas ---------- */
#sheet { position: fixed; inset: 0; background: rgba(26, 20, 35, .45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { background: var(--paper); width: 100%; max-width: 520px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 84vh; overflow-y: auto; box-shadow: var(--shadow); }
.sheet-body::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.sheet-body h4 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sheet-body > div > p, .sheet-body form > p { margin: 0 0 16px; color: var(--ink-2); }
.sheet-body .list { margin: 12px 0 4px; }
.sheet-body .btn { margin-top: 12px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: var(--edge); border-radius: var(--r); background: var(--paper); margin-bottom: 8px; text-align: left; font-weight: 600; }
.opt:active { background: var(--sand); }
.opt .ic { font-size: 22px; }
.opt .ic .ico { width: 32px; height: 32px; }
.opt .tx { flex: 1; display: flex; flex-direction: column; }
.opt .tx small { font-weight: 500; }
.opt .pr { font-weight: 700; white-space: nowrap; color: var(--orange-d); }
.opt.off { opacity: .5; }
/* la fiche d'un animal : son ventre, sa santé */
.anibar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; font-size: 14px; }
.anibar > span:first-child { width: 58px; color: var(--ink-2); }
.anibar > span:last-child { width: 44px; text-align: right; }
.anibar i { flex: 1; height: 10px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.anibar i b { display: block; height: 100%; border-radius: 6px; }
.anisheet .muted { color: var(--mute); margin: 4px 0 10px; }

/* ---------- l'éventail : les gestes possibles autour de ce qu'on touche ---------- */
#fan { position: fixed; inset: 0; z-index: 25; background: rgba(26, 20, 35, .28); }
.fan-item { position: absolute; width: 0; height: 0; animation: fan .22s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 28ms); }
.fan-item i { position: absolute; left: -31px; top: -31px; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 27px; box-shadow: var(--shadow); }
.fan-item span { position: absolute; top: 36px; left: -46px; width: 92px; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.2; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fan-item.off i { opacity: .55; }
.fan-item:active i { transform: scale(.93); }
.fan-title { position: absolute; transform: translate(-50%, 0); background: var(--glass); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 20px; white-space: nowrap; }
@keyframes fan { from { transform: scale(.3); opacity: 0; } }

/* ---------- ce que tu fais, et ce qui attend ---------- */
#busy { position: fixed; left: 0; right: 0; top: calc(98px + env(safe-area-inset-top)); z-index: 35; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; }
.busy-box { pointer-events: auto; background: var(--glass); color: #fff; border-radius: 20px; padding: 10px 14px 12px; width: 100%; max-width: 360px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.busy-box p { margin: 0 0 8px; font-weight: 600; font-size: 13.5px; }
.track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
#busyBar { height: 100%; width: 0; background: var(--yellow); border-radius: 3px; }
#queue { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.q-item { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 5px 8px 5px 10px; font-size: 12px; font-weight: 600; color: #fff; max-width: 100%; }
.q-item i { font-style: normal; }
.q-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.q-item b { opacity: .7; font-weight: 600; padding-left: 2px; }
/* les notifications : de petites cartes sombres en haut, une pastille de couleur dit si c'est bon, mauvais ou juste une info */
#toasts { position: fixed; top: calc(176px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
body.driving #toasts { top: calc(250px + env(safe-area-inset-top)); }
.toast { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; display: flex; align-items: center; gap: 9px; width: max-content; max-width: min(380px, 100%); box-sizing: border-box;
  background: rgba(24, 26, 38, .86); color: #fff; padding: 7px 12px 7px 7px; border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: toastIn .24s cubic-bezier(.2, .9, .3, 1.2); transition: transform .22s ease, opacity .22s ease, margin .22s ease; }
.toast .ti { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #3b82f6; }
.toast.good .ti { background: var(--green); }
.toast.bad .ti { background: var(--red); }
.toast .ti.emo { background: rgba(255, 255, 255, .12); font-size: 14px; }
.toast.bad { box-shadow: 0 0 0 1.5px var(--red), 0 6px 18px rgba(0, 0, 0, .22); }
.toast .tx { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* (2026-11-24) touchée, la notification coupée s'ouvre en entier */
.toast.full .tx { display: block; -webkit-line-clamp: unset; overflow: visible; }
.nw-row .hi-x { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.toast .tn { flex: none; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 9px; background: rgba(255, 255, 255, .16); }
.toast .tn[hidden] { display: none; }
.toast .tg { flex: none; font-size: 18px; line-height: 1; opacity: .6; margin-left: -2px; }
.toast.out { opacity: 0; transform: translateY(-10px) scale(.96); pointer-events: none; }
.toast.bump { animation: toastBump .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastBump { 40% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.bump { animation: none; transition: opacity .2s; } }
/* sur ordinateur, le haut de l'écran, au milieu, est libre */
@media (min-width: 900px) and (min-height: 501px) { #toasts { top: calc(14px + env(safe-area-inset-top)); } }
@keyframes pop { from { transform: translateY(-10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 430px) { #hMood { display: none; } }

/* ---------- mode Meubler : la pièce en haut, le catalogue sur papier clair en bas ---------- */
#build { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
#build > * { pointer-events: auto; }
.b-tool { display: flex; flex-direction: column; gap: 8px; margin: 0 10px 10px; padding: 10px; border-radius: 22px; background: var(--glass); color: #fff; width: min(540px, calc(100vw - 20px)); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.b-tool[hidden] { display: none; }
.b-name { min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 0 6px; }
.b-name b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.b-name small { font-size: 12px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; text-align: right; }
.b-name small.bad { color: #ffb4a2; }
.b-acts { display: flex; gap: 6px; }
.b-act { flex: 1 1 auto; min-height: 42px; padding: 0 10px; border-radius: 14px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap; }
.b-act.main { background: var(--yellow); color: var(--ink); }
.b-act.warn { background: rgba(228, 87, 46, .92); }
.b-act:disabled { opacity: .4; }
.b-panel { width: 100%; max-width: 560px; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow); padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); }
.b-head { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; }
.b-stand { flex: 1; min-width: 0; display: grid; gap: 1px; }
.b-stand b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-stand small { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-btn { min-height: 40px; padding: 0 14px; border: var(--edge); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; }
.b-btn.main { background: var(--ink); border-color: var(--ink); color: #fff; }
.b-tabs, .b-list { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b-tabs::-webkit-scrollbar, .b-list::-webkit-scrollbar { display: none; }
.b-tabs { gap: 6px; padding: 0 14px 12px; }
.b-tab { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.b-tab.on { background: var(--ink); color: #fff; }
.b-list { gap: 8px; padding: 0 14px 2px; min-height: 176px; }
.b-card { flex: none; width: 118px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 8px; border: var(--edge); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.b-card img, .b-card i { width: 100%; height: 78px; object-fit: contain; border-radius: 10px; background: var(--sand); display: grid; place-items: center; font-style: normal; font-size: 30px; }
.b-card b { font-size: 12.5px; line-height: 1.2; font-weight: 700; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-card small { font-size: 11.5px; line-height: 1.2; color: var(--mute); min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-card .pr { font-size: 13px; font-weight: 800; color: var(--orange-d); margin-top: auto; }
.b-card.poor { opacity: .5; }
.b-empty { margin: 0; padding: 26px 8px; color: var(--mute); font-size: 13.5px; }
.sheet-body h5 { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--mute); text-transform: none; }
.prec, .peche { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; touch-action: none; color: #fff; }
.prec { background: rgba(10,30,60,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.prec h3 { margin: 0; font-size: 26px; color: #fff; letter-spacing: 0; text-transform: none; }
.prec p, .peche .p-tip { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.prec-bar { position: relative; width: min(420px, 100%); height: 34px; border-radius: 17px; background: rgba(255,255,255,.18); overflow: hidden; }
.prec-ok { position: absolute; top: 0; bottom: 0; background: #2fe07a; border-radius: 17px; }
.prec-cur { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 10px #fff; }
.prec-notes { display: flex; gap: 10px; min-height: 40px; }
.prec-notes span { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 18px; }
.prec-notes .top { background: #2fe07a; color: #0b2a17; } .prec-notes .bien { background: #f6b400; color: #2a1d00; } .prec-notes .rate { background: #e4572e; }
.prec-quit { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; border: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font: inherit; font-weight: 700; }
.peche { background: linear-gradient(#0d4f6e, #0a3550); }
.p-eau { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.35); }
.p-bouchon { position: absolute; top: calc(50% - 30px); left: calc(50% - 14px); width: 28px; height: 40px; border-radius: 14px 14px 10px 10px; background: linear-gradient(#e4572e 0 50%, #fff 50%); animation: pflot 1.6s ease-in-out infinite; }
.p-bouchon.mord { animation: pmord .25s ease-in-out infinite; }
@keyframes pflot { 50% { transform: translateY(4px) rotate(4deg); } }
@keyframes pmord { 50% { transform: translateY(26px); } }
.peche .p-tip { position: absolute; top: 30%; left: 16px; right: 16px; }
/* les soins du bébé, au doigt */
.bbj { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; touch-action: none; color: #fff; background: linear-gradient(180deg, #2a1d4a, #4b2a6e); }
.bbj.devoirs { background: linear-gradient(180deg, #14532d, #1f7a45); }
.dv-cahier { width: min(340px, 100%); padding: 22px 16px; border-radius: 14px; background: #fffdf5; color: #1d3a8a; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); background-image: repeating-linear-gradient(180deg, transparent 0 27px, #c9d8f2 27px 28px); }
.dv-cahier b { display: block; font-size: 32px; font-family: 'Comic Sans MS', 'DM Sans', sans-serif; margin-bottom: 16px; }
.dv-btns { display: flex; gap: 10px; justify-content: center; }
.dv-btns .btn { min-width: 110px; }
.fam-kid .tx small { display: block; }
.fam-kid .inline { margin-top: 8px; flex-wrap: wrap; }
.fam-kid.alerte { border-left: 3px solid #e4572e; }
.bbj.bain { background: linear-gradient(180deg, #0f6fb0, #49a6de); }
.bbj h3 { margin: 0; font-size: 26px; color: #fff; text-transform: none; letter-spacing: 0; }
.bbj p { margin: 0; font-size: 17px; font-weight: 700; text-align: center; min-height: 24px; }
.bbj-scene { position: relative; width: min(340px, 100%); height: 300px; border-radius: 28px; background: rgba(255,255,255,.12); overflow: hidden; display: grid; place-items: center; }
.bbj-bebe { font-size: 110px; line-height: 1; user-select: none; transition: transform .2s; }
.bbj-bebe.rit { transform: scale(1.15); }
.bbj-scene.balance .bbj-bebe { animation: bbjBal 2.5s ease-in-out infinite; transform-origin: 50% -60%; }
@keyframes bbjBal { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
.bbj-bulle { position: absolute; bottom: -60px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 40%, rgba(160,220,255,.25)); animation: bbjMonte linear forwards; }
.bbj-bulle.pop { transform: scale(1.6); opacity: 0; transition: .18s; }
@keyframes bbjMonte { to { transform: translateY(-420px); } }
.bbj-bib { position: absolute; right: 22%; top: 30%; font-size: 64px; transform: rotate(40deg); transition: transform .2s; }
.bbj-bib.on { transform: rotate(70deg) translate(-30px, 10px); }
.bbj-j { width: min(340px, 100%); height: 14px; border-radius: 7px; background: rgba(255,255,255,.2); overflow: hidden; }
.bbj-j i { display: block; height: 100%; width: 0; background: #ffd84d; border-radius: 7px; transition: width .15s; }
@media (prefers-reduced-motion: reduce) { .bbj-scene.balance .bbj-bebe { animation-duration: 5s; } }
/* l'appli Carrière */
.cr-hero { margin: 0 -14px 12px; padding: 14px 16px; background: linear-gradient(135deg, #1a1423, #3a2a52); color: #fff; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.cr-hero small { color: inherit; opacity: .8; font-size: 12px; }
.cr-titre { font-size: 22px; }
.cr-paie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0; }
.cr-paie span { background: rgba(255,255,255,.1); border-radius: 12px; padding: 7px 8px; display: flex; flex-direction: column; line-height: 1.2; }
.cr-paie b { color: #ffd84d; font-size: 14px; }
.cr-warn { margin: 0; background: #d7263d; border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.cr-go { margin: 4px 0 0; width: 100%; } .cr-go.ghost { background: rgba(255,255,255,.14); color: #fff; }
.cr-exam { margin: 0; width: 100%; background: #f6b400; color: #1a1423; }
.cr-dem { align-self: flex-end; color: rgba(255,255,255,.6); font-size: 12.5px; text-decoration: underline; min-height: 30px; }
.cr-path { border: var(--edge); border-radius: var(--r); padding: 12px; margin-bottom: 12px; background: var(--paper); }
.cr-path.on { box-shadow: 0 0 0 2px #7b4bb8; }
.cr-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cr-ph i { font-style: normal; font-size: 26px; width: 44px; height: 44px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; }
.cr-ph span { display: flex; flex-direction: column; } .cr-ph small { color: var(--mute); font-size: 12px; }
.cr-steps { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; border-left: 3px solid var(--sand); display: flex; flex-direction: column; gap: 6px; }
.cr-steps li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0 4px 8px; opacity: .55; }
.cr-steps li::before { content: ''; position: absolute; left: -22px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--paper); border: 3px solid var(--sand); }
.cr-steps li.fait { opacity: 1; } .cr-steps li.fait::before { background: #1f9d55; border-color: #1f9d55; }
.cr-steps li.ici { opacity: 1; } .cr-steps li.ici::before { background: #7b4bb8; border-color: #7b4bb8; box-shadow: 0 0 0 4px rgba(123,75,184,.25); }
.cr-steps span { display: flex; flex-direction: column; line-height: 1.2; } .cr-steps small { color: var(--mute); font-size: 11.5px; }
.cr-steps em { font-style: normal; font-weight: 800; font-size: 13px; color: #0f8b4c; white-space: nowrap; }
.cr-next { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: #7b4bb8; }
/* (2026-11-21) le dossier d’une plainte, sous les yeux du juge */
.dos { margin: 8px 0 12px; padding: 12px; border-radius: 14px; background: rgba(123, 75, 184, .08); display: grid; gap: 6px; font-size: 13px; }
.dos-t { font-size: 14px; }
.dos-l { display: flex; justify-content: space-between; gap: 10px; }
.dos-l span { opacity: .75; }
.dos-l b { text-align: right; }
.dos-v { display: grid; gap: 4px; margin-top: 4px; }
.dos-v small { display: block; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .05); line-height: 1.35; overflow-wrap: anywhere; }
.dos-v i { opacity: .6; font-style: normal; }
.dos-decl { margin: 4px 0; line-height: 1.4; overflow-wrap: anywhere; }
.dos summary { cursor: pointer; font-weight: 700; }
.cr-offre { display: flex; flex-direction: column; gap: 8px; background: var(--sand); border-radius: var(--r); padding: 12px; margin-top: 8px; }
.cr-offre label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; }
.cr-offre input, .cr-offre select { padding: 10px; border-radius: 10px; border: var(--edge); font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.cj { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; color: #fff; background: linear-gradient(180deg, #1a1423, #3a2a52); }
.cj.ent { background: linear-gradient(180deg, #0b3d2a, #0f8b4c); }
.cj-head { display: flex; align-items: center; justify-content: space-between; width: min(420px, 100%); gap: 10px; }
.cj-head h3 { margin: 0; font-size: 22px; color: #fff; text-transform: none; letter-spacing: 0; }
.cj-n { font-weight: 800; opacity: .8; }
.cj-t { width: min(420px, 100%); height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; } .cj-t i { display: block; height: 100%; background: #ffd84d; transition: width .1s linear; }
.cj-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.cj-e { font-size: 64px; text-align: center; line-height: 1; }
.cj-q { margin: 0; font-size: 17px; font-weight: 700; text-align: center; line-height: 1.35; }
.cj-o { min-height: 52px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-align: left; border: 2px solid transparent; }
.cj-o.bon { background: #1f9d55; border-color: #7dffb5; } .cj-o.faux { background: #d7263d; } .cj-o.off { opacity: .45; }
.cj-fin { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .cj-fin b { font-size: 54px; color: #ffd84d; } .cj-fin small { color: #fff; font-size: 15px; max-width: 320px; }
.mai-chip { position: fixed; left: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 15; border: 0; font: inherit; font-size: 13.5px; font-weight: 800; padding: 10px 14px; border-radius: 999px; background: #fff3c4; color: #2a1d00; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mai-chip.off { background: #1a1f33; color: #fff; }
.mai-chip.wc { bottom: calc(198px + env(safe-area-inset-bottom)); background: #ffffff; color: #1a1423; }
.mai-chip.wc.pris { background: #d7263d; color: #fff; }
.mai-chip.piscine { bottom: calc(198px + env(safe-area-inset-bottom)); background: #1e88e5; color: #fff; }
.mai-chip.piscine2 { bottom: calc(246px + env(safe-area-inset-bottom)); }
.mai-chip.piscine.plage { bottom: calc(272px + env(safe-area-inset-bottom)); }
.mai-chip.piscine2.plage { bottom: calc(320px + env(safe-area-inset-bottom)); }
.drive-btn { border: 0; font-family: inherit; white-space: nowrap; position: fixed; top: auto; left: auto; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 40; background: #1e6fd9; color: #fff; font-size: 15px; font-weight: 800; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(30,111,217,.35); }
body[data-view="home"] .drive-btn { bottom: auto; top: calc(104px + env(safe-area-inset-top)); }
body.driving #needs, body.driving #nav, body.driving #place, body.driving #goal, body.driving #stick, body.driving #vueBtn, body.driving #top, body.driving #une, body.driving #news { display: none !important; }
/* au volant : GPS en haut à gauche, plan en haut à droite, volant à gauche, pédales à droite */
.drive-hud { position: fixed; inset: 0; z-index: 45; pointer-events: none; user-select: none; -webkit-user-select: none; color: #fff; }
.drive-hud button, .dh-steer { pointer-events: auto; touch-action: none; border: 0; font: inherit; font-weight: 800; color: #fff; -webkit-tap-highlight-color: transparent; }
.dh-gps { position: absolute; left: 12px; right: 136px; top: calc(12px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 22px; background: rgba(16,20,30,.78); text-align: left; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dh-gps.on { background: #1556b0; }
.dh-gps.fin { background: #0f7a45; }
.dh-gps i { font-style: normal; font-size: 22px; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.dh-gps span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dh-gps b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dh-gps small { color: inherit; font-size: 12.5px; font-weight: 600; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-map { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); width: 112px; height: 112px; border-radius: 26px; background: #e9e4d8; box-shadow: 0 4px 16px rgba(0,0,0,.3); border: 3px solid rgba(255,255,255,.85); }
.dh-shout { position: absolute; left: 50%; top: calc(140px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px; background: #fff; color: #1a1423; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: dhshout .25s ease-out; }
@keyframes dhshout { from { transform: translate(-50%, -8px) scale(.9); opacity: 0; } }
.dh-arrive { position: absolute; left: 50%; bottom: calc(250px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: auto; }
.dh-arrive p { margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(16,20,30,.78); font-weight: 700; font-size: 14px; }
.dh-arrive button { padding: 12px 20px; border-radius: 999px; background: #0f7a45; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.dh-speed { position: absolute; left: 12px; bottom: calc(108px + env(safe-area-inset-bottom)); min-width: 92px; display: flex; flex-direction: column; align-items: center; padding: 6px 16px 7px; border-radius: 18px; background: rgba(16,20,30,.72); line-height: 1.05; }
.dh-speed b { font-size: 28px; font-variant-numeric: tabular-nums; }
.dh-speed b + small { color: inherit; font-size: 10.5px; opacity: .75; margin-top: -2px; }
.dh-speed span { margin-top: 2px; font-size: 11.5px; font-weight: 700; opacity: .85; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (2026-11-13) Radio, Garer, Klaxon en rang au-dessus des pédales, « Descendre » en long dessous : un bloc de la largeur des pédales, il ne déborde plus sur la vitesse */
.dh-acts { position: absolute; right: 12px; bottom: calc(146px + env(safe-area-inset-bottom)); width: 172px; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 8px; align-items: center; }
.dh-acts .dh-out { order: -1; flex: 1 0 100%; }
.dh-horn { width: 52px; height: 52px; border-radius: 50%; background: rgba(16,20,30,.78) !important; font-size: 11.5px !important; letter-spacing: .02em; border: 2px solid rgba(255,255,255,.3) !important; }
.dh-radio, .dh-park { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 19px !important; line-height: 1; }
.dh-radio small, .dh-park small { font-size: 8.5px; font-weight: 700; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.dh-radio.on { border-color: #2fe07a !important; box-shadow: 0 0 0 3px rgba(47,224,122,.25); }
.dh-out { padding: 11px 16px; border-radius: 999px; background: #fff !important; color: #1a1423 !important; font-size: 14px; }
.dh-steer { position: absolute; left: 12px; bottom: calc(22px + env(safe-area-inset-bottom)); width: min(46vw, 210px); height: 72px; border-radius: 24px; background: rgba(16,20,30,.55); border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.dh-steer i { font-style: normal; font-size: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #1e6fd9; }
.dh-steer span { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .12s ease-out; }
.dh-steer.on span { transition: none; }
.dh-pedals { position: absolute; right: 12px; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: flex-end; }
.dh-brake, .dh-gas { width: 72px; height: 112px; border-radius: 18px; font-size: 13px !important; letter-spacing: .04em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; border: 2px solid rgba(255,255,255,.4) !important; }
.dh-brake { height: 100px; background: #b8232f; }
.dh-gas { background: #17a35a; }
.dh-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.dh-flash.on { animation: dhflash .5s ease-out; }
@keyframes dhflash { 0% { opacity: .9; } 100% { opacity: 0; } }
.drive-hud button.on { filter: brightness(1.25); transform: scale(.95); }
.jongle { position: fixed; inset: 0; z-index: 90; background: linear-gradient(#7cc8f0 0%, #bfe6f7 62%, #e9d3a0 62%); touch-action: none; overflow: hidden; }
.j-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: repeating-linear-gradient(90deg, #e9d3a0 0 18px, #e3cb94 18px 36px); }
.j-ball { position: absolute; left: 0; bottom: 150px; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #f4f4f0 19% 40%, #1a1423 41% 48%, #f4f4f0 49%); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.j-ball.hit { animation: jhit .18s ease-out; }
@keyframes jhit { 50% { scale: 1.15 0.85; } }
.j-score { position: absolute; top: 18%; left: 0; right: 0; text-align: center; font-size: 72px; font-weight: 800; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.j-quit { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(26,20,35,.75); color: #fff; font: 700 15px/1 inherit; }
.j-tip { position: absolute; top: 32%; left: 16px; right: 16px; text-align: center; font-size: 18px; font-weight: 700; color: #1a1423; }
.teintes { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 4px; }
.pal { aspect-ratio: 1; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: none; }
.pal i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line); }
.pal.on { border-color: var(--ink); }
.pal.orig i { background-image: linear-gradient(135deg, transparent 46%, rgba(255,255,255,.85) 46% 54%, transparent 54%) !important; }
.teinte-sheet .row2 { margin-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.swatch { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 8px; border: var(--edge); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.swatch i { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line); }
.swatch b { font-size: 12.5px; font-weight: 700; }
.swatch small { font-size: 12px; color: var(--orange-d); font-weight: 700; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.swatch.on small { color: var(--green); }

/* ---------- l'atelier du garagiste : même tiroir que le mode Meubler ---------- */
#garage { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
#garage > * { pointer-events: auto; }
#gList { min-height: 138px; }
.g-card { width: 132px; }
.g-card i { height: 46px; border: 1px solid var(--line); }
.g-card.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.g-card.on .pr { color: var(--green); }
.g-card.try { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.g-slogan { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: start; }
.g-slogan p { margin: 0; font-size: 13px; color: var(--ink-2); }
.g-slogan input { width: 100%; padding: 13px 14px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; }
.g-ideas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.g-ideas::-webkit-scrollbar { display: none; }

/* ---------- inscription en deux étapes ---------- */
#authForm label { margin: 0 0 6px; }
#authForm input, #authForm select { margin: 0 0 14px; }
#authForm select { display: block; width: 100%; padding: 13px 12px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
#authForm input:focus-visible, #authForm select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.auth-sub { margin: -8px 0 16px !important; font-size: 14px; }
.steps { display: flex; gap: 6px; margin: 0 0 14px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i:first-child, .steps[data-s="2"] i { background: var(--orange); }
.pw { position: relative; }
.pw input { padding-right: 76px !important; }
.pw button { position: absolute; right: 6px; top: 6px; height: calc(100% - 26px); min-height: 36px; padding: 0 12px; border-radius: 9px; background: var(--sand); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-note { margin: -4px 0 12px !important; font-size: 12.5px; color: var(--mute) !important; }
/* ---------- petits boutons d'action (contacts, mises) ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.tools button { min-height: 38px; padding: 0 13px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 13px; font-weight: 700; border: var(--edge); }
.tools button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* ---------- machine à sous ---------- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 12px; }
.reel { aspect-ratio: 1; display: grid; place-items: center; font-size: 44px; border-radius: var(--r); background: var(--sand); border: var(--edge); }
.slot-out { min-height: 1.5em; margin: 0 0 8px !important; font-weight: 700; color: var(--ink) !important; text-align: center; }
.slot-out.win { color: var(--green) !important; } .slot-out.lose { color: var(--mute) !important; }
.slot-pay { margin: 14px 0 0 !important; font-size: 12.5px; color: var(--mute) !important; text-align: center; white-space: pre-wrap; }
#authErr { color: var(--red) !important; margin: 0 0 10px !important; }

/* ---------- jeux entre contacts ---------- */
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.g-head b { font-size: 15px; } .g-head small { color: var(--orange-d); font-weight: 700; white-space: nowrap; }
.g-turn { margin: 0 0 2px; font-weight: 800; font-size: 15px; color: var(--mute); } .g-turn.me { color: var(--green); }
.g-result { margin: 12px 0; font-size: 20px; font-weight: 800; } .g-result.win { color: var(--green); } .g-result.lose { color: var(--ink-2); }
.g-table { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: #0f6b4f; color: #fff; margin: 8px 0; }
.g-opp { font-size: 13px; font-weight: 600; opacity: .9; }
.g-mid { display: flex; align-items: center; gap: 14px; }
.g-suit { display: grid; gap: 2px; } .g-suit b { font-size: 18px; } .g-suit.red b { color: #ffb4a2; } .g-suit small { font-size: 11.5px; opacity: .8; }
.g-hand { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.card { width: 44px; height: 62px; border-radius: 8px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 0; font-weight: 800; padding: 0; opacity: .55; }
.card b { font-size: 16px; line-height: 1; } .card i { font-style: normal; font-size: 20px; line-height: 1; }
.card.red { color: #d63a4a; } .card.ok { opacity: 1; border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); transform: translateY(-4px); }
.card.big { width: 58px; height: 82px; opacity: 1; } .card.big b { font-size: 21px; } .card.big i { font-size: 27px; }
.ludo { display: grid; grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); aspect-ratio: 1; width: 100%; max-width: 330px; margin: 8px auto; background: #f6f2ea; border-radius: 10px; border: var(--edge); overflow: hidden; }
.l-base { border-radius: 10px; margin: 6px; opacity: .28; } .l-base.p0, .l-cell.p0 { background: #e4572e; } .l-base.p1, .l-cell.p1 { background: #1e6fd9; }
.l-cell { background: #fff; border: 1px solid rgba(26, 20, 35, .14); } .l-cell.p0, .l-cell.p1 { opacity: .55; }
.l-cell.safe { background: #fdf0c2; }
.l-tok { z-index: 2; margin: 2px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); padding: 0; }
.l-tok.p0 { background: #e4572e; } .l-tok.p1 { background: #1e6fd9; }
.l-tok.can { box-shadow: 0 0 0 3px var(--yellow), 0 1px 3px rgba(0, 0, 0, .4); animation: tok 0.9s ease-in-out infinite; }
@keyframes tok { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .l-tok.can { animation: none; } }
.g-dice { display: flex; align-items: center; gap: 12px; margin: 8px 0; } .g-dice .btn { margin: 0; flex: 1; }
.die { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: none; }

/* ---------- nos icônes dans les listes, l'éventail et le haut de l'écran ---------- */
.act .ic svg, .opt .ic svg { width: 26px; height: 26px; display: block; margin: 0 auto; }
.fan-item i svg { width: 32px; height: 32px; }
#top span svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
#hMood::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--yellow); }
#hMood[data-m="hi"]::before { background: #3ecf8e; } #hMood[data-m="lo"]::before { background: var(--red); }
.place-head b svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
/* l'éventail : quatre choix au plus, chaque libellé sur sa pastille sombre */
.fan-item span { top: 38px; left: 0; width: max-content; max-width: 132px; transform: translateX(-50%); background: var(--glass); padding: 5px 9px; border-radius: 10px; text-shadow: none; font-size: 11.5px; }
/* ---------- le panneau de la rue : raccourcis, puis une ligne de discussion ---------- */
#place { padding: 10px 12px; }
.place-go { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 8px; padding: 0 12px; }
.place-go::-webkit-scrollbar { display: none; }
.place-go button { flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.place-row { display: flex; align-items: center; gap: 8px; }
.place-geste { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); font-size: 20px; line-height: 40px; padding: 0; cursor: pointer; }   /* (2026-11-27) les gestes */
.gestes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gestes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.gestes button b { font-size: 26px; line-height: 1; }
.place-row .place-chat { flex: 1; min-width: 0; max-height: 18px; margin: 0; }
#place.open .place-chat { max-height: 56px; }
.place-chat .quiet { color: rgba(255, 255, 255, .55); }
.place-talk { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; }
#pSay { margin-top: 8px; }
.slot-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 14px 0 0; font-size: 12.5px; color: var(--mute); font-weight: 700; }
.slot-pay span { display: inline-flex; align-items: center; gap: 3px; } .slot-pay svg { width: 18px; height: 18px; }
.reel svg { width: 58%; height: 58%; }

/* ---------- relation entre deux joueurs ---------- */
.rel { height: 10px; border-radius: 5px; background: var(--sand); overflow: hidden; margin: 4px 0 6px; }
.rel i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.rel-note { margin: 0 0 10px !important; font-size: 13px; }
/* ---------- boîte à idées, radio ---------- */
.idea { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.idea .tx { flex: 1; min-width: 0; display: grid; gap: 3px; } .idea .tx b { font-weight: 600; font-size: 14.5px; } .idea .tx small { font-size: 12px; color: var(--mute); }
.idea .st { font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-weight: 700; }
.idea .st.planned { background: #fdf0c2; } .idea .st.done { background: #d8f3e6; color: #0b6b4a; } .idea .st.refused { background: #f7dcdc; color: #8a2330; }
.vote { flex: none; width: 58px; min-height: 52px; border-radius: 14px; border: var(--edge); background: var(--paper); display: grid; place-items: center; align-content: center; color: var(--ink); }
.vote b { font-size: 17px; line-height: 1.1; } .vote small { font-size: 10.5px; color: var(--mute); font-weight: 700; }
.vote.on, .vote:disabled { background: var(--sand); } .vote.on b { color: var(--green); }
.act.playing { background: #fdf6e0; }
.rk.top { color: var(--orange-d); font-weight: 800; }
#top span svg, .place-head b svg { display: inline-block; }
#top span { white-space: nowrap; }

/* dans la feuille d'un lieu : un petit titre par raison de venir */
h5.grp { margin: 16px 2px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.list.notes { margin-top: 12px; opacity: .85; }
/* ---------- la pastille « à toi de jouer » ---------- */
.pill svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; display: inline-block; }
.pill.turn { top: calc(98px + env(safe-area-inset-top)); background: var(--orange); font-weight: 700; box-shadow: var(--shadow); animation: pulse 1.6s ease-in-out infinite; }
.pill.turn ~ .news { top: calc(142px + env(safe-area-inset-top)); }
.pill.turn[hidden] ~ .news { top: calc(98px + env(safe-area-inset-top)); }
@keyframes pulse { 50% { transform: scale(1.04); } }
.hint-bar svg { width: 15px; height: 15px; vertical-align: -3px; margin: 0 4px 0 2px; display: inline-block; }
.place-who { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 4px 0 12px; }
/* ---------- l'accueil des jeux ---------- */
.gm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.gm-card { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 12px; border-radius: var(--r); background: var(--paper); border: var(--edge); }
.gm-card i { width: 44px; height: 44px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; margin-bottom: 4px; }
.gm-card i svg { width: 28px; height: 28px; }
.gm-card b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.gm-card small { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.tools button:disabled { opacity: .38; }
.tools button.red { color: #d63a4a; }
.g-opps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.g-opp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 600; opacity: 1; }
.g-opp b { font-weight: 800; }
.g-opp.turn { box-shadow: 0 0 0 2px var(--yellow); }
.g-opp.out { opacity: .5; text-decoration: line-through; }
.g-opps > .g-opp[class*="l-p"] { background: var(--sand); color: var(--ink); }
.g-opp i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.l-p0 i { background: #e4572e; } .l-p1 i { background: #1e6fd9; } .l-p2 i { background: #0f8b8d; } .l-p3 i { background: #f6b400; }
.g-end { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px 12px; margin: 10px 0 14px; border-radius: var(--r); background: var(--sand); }
.g-end svg { width: 54px; height: 54px; }
.g-end b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.g-end small { color: var(--ink-2); font-size: 13.5px; }
.g-end.win { background: #e3f4e8; } .g-end.win b { color: var(--green); }
.g-rules { margin: 8px 0; } .g-rules summary { font-size: 13px; font-weight: 700; color: var(--ink-2); min-height: 36px; display: flex; align-items: center; cursor: pointer; }
/* le Ludo à quatre coins */
.l-base.p2, .l-cell.p2 { background: #0f8b8d; } .l-base.p3, .l-cell.p3 { background: #f6b400; }
.l-cell.p2, .l-cell.p3 { opacity: .55; }
.l-base.off { background: #d9d3c6; opacity: .22; }
.l-tok.p2 { background: #0f8b8d; } .l-tok.p3 { background: #f6b400; }
.l-cell.safe { position: relative; }
.l-cell.safe::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid #d9a400; }
.die { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 8px; gap: 2px; }
.die i { border-radius: 50%; } .die i.on { background: #fff; }
/* le damier */
.dames { display: grid; grid-template-columns: repeat(10, 1fr); aspect-ratio: 1; width: 100%; max-width: 340px; margin: 8px auto; border-radius: 10px; overflow: hidden; border: 3px solid #5a3a22; }
.d-cell { background: #f3e2bd; display: grid; place-items: center; padding: 0; position: relative; aspect-ratio: 1; }
.d-cell.dark { background: #9c6b3f; }
.d-cell.sel { background: #d9a400; }
.d-cell.to { background: #7fae5e; }
.d-pc { width: 70%; height: 70%; border-radius: 50%; display: block; box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(0, 0, 0, .12); }
.d-pc.w { background: #fbf4e2; } .d-pc.b { background: #2a2230; }
.d-pc.king { box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px var(--yellow), inset 0 0 0 6px rgba(0, 0, 0, .15); }
.d-cell.can .d-pc { box-shadow: 0 0 0 3px var(--yellow), 0 2px 0 rgba(0, 0, 0, .35); }
.d-dot { width: 30%; height: 30%; border-radius: 50%; background: rgba(255, 255, 255, .9); display: block; }
/* l'awalé */
.awale { display: grid; gap: 8px; padding: 12px; border-radius: 26px; background: #8a5a2b; margin: 8px 0; }
.a-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.a-pit { aspect-ratio: 1; border-radius: 50%; background: #5f3b19; display: grid; place-items: center; position: relative; padding: 0; color: #fff; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .45); }
.a-pit b { position: relative; font-size: 15px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.a-pit.can { box-shadow: 0 0 0 3px var(--yellow), inset 0 3px 6px rgba(0, 0, 0, .45); }
.a-pit.mine:not(.can) { opacity: .85; }
.a-seeds { position: absolute; inset: 14%; display: flex; flex-wrap: wrap; gap: 1px; align-content: center; justify-content: center; opacity: .3; }
.a-seeds i { width: 6px; height: 6px; border-radius: 50%; background: #e9d9b0; }
.a-score { display: flex; justify-content: space-between; align-items: baseline; color: #fff; font-size: 13px; font-weight: 600; padding: 0 4px; }
.a-score b { font-size: 18px; font-weight: 800; } .a-score small { opacity: .8; font-size: 11.5px; }
/* compétences, radio */
.skills { display: grid; gap: 8px; margin-bottom: 6px; }
.skill { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--paper); border: var(--edge); }
.skill .ic { width: 34px; height: 34px; flex: none; } .skill .ic svg { width: 100%; height: 100%; }
.skill .tx { flex: 1; min-width: 0; display: grid; }
.skill b { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; } .skill em { font-style: normal; font-size: 12.5px; color: var(--orange-d); font-weight: 700; }
.skill small { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.now { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; margin: 4px 0 10px; }
.now small { font-size: 11.5px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; } .now b { font-size: 16px; } .now span { font-size: 13px; opacity: .85; }
.now .b-tab { justify-self: start; margin-top: 8px; }
/* le téléphone : pas de barre de défilement grise */
.phone-screen { scrollbar-width: thin; scrollbar-color: rgba(26, 20, 35, .25) transparent; }
.phone-screen.home { scrollbar-width: none; } .phone-screen.home::-webkit-scrollbar { display: none; }
/* sur un grand écran, le panneau de la rue se range à gauche : le personnage reste au milieu, bien visible */
@media (min-width: 1240px) and (min-height: 560px) {
  #place { margin: 0; left: 72px; right: auto; bottom: 18px; width: 330px; }
}
/* l'inscription tient sur un petit écran d'ordinateur */
@media (max-height: 760px) and (min-width: 700px) {
  .l-title h1 { font-size: 88px; } .l-kicker { margin-bottom: 8px; } .l-slogan { margin-top: 10px; }
  .l-card { margin-top: 10px; } .l-card > div:not(.wax), .l-card form { padding: 14px 18px 14px; } .l-card h2 { margin-bottom: 6px; }
}

/* Le Boucan : ce que crie le DJ, et la battle de danse */
.dj-line { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 10px 18px; border-radius: 999px; background: #1a1423; color: var(--yellow); border: 1.5px solid var(--yellow); font-weight: 800; font-size: 15px; text-align: center; box-shadow: var(--shadow); pointer-events: none; }
.dj-line[hidden] { display: none; }
.dj-line.in { animation: pop .22s ease-out; }
@media (max-width: 820px) { .dj-line { top: calc(env(safe-area-inset-top, 0px) + 150px); border-radius: var(--r); font-size: 14px; } }
.battle { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(11, 8, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bt-box { width: min(560px, 100%); background: #1a1423; color: #fff; border-radius: var(--r-lg); padding: 20px 18px 16px; box-shadow: var(--shadow); text-align: center; }
.bt-box h4 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.bt-box p { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.bt-lane { position: relative; height: 64px; border-radius: 32px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 12px; }
.bt-lane.pulse { animation: btPulse .18s ease-out; }
.bt-ring { position: absolute; left: 16%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 4px solid var(--yellow); box-sizing: border-box; }
.bt-note { position: absolute; left: 0; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #ff3d8b; opacity: 0; will-change: transform; }
.bt-note.hit { background: #3df0a1; }
.bt-msg { font-size: 26px; font-weight: 800; min-height: 34px; color: var(--yellow); }
.bt-score { font-size: 14px; color: rgba(255, 255, 255, .8); margin: 4px 0 14px; }
.bt-score b { color: #fff; font-size: 18px; }
.bt-tap { width: 100%; min-height: 76px; font-size: 20px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.bt-box .bt-help { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
@keyframes btPulse { from { background: rgba(255, 210, 63, .35); } to { background: rgba(255, 255, 255, .08); } }

/* ---------- la première page : noir, blanc, et les trois couleurs du drapeau ---------- */
#auth { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow-y: auto; color: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(8, 8, 12, .96) 0%, rgba(8, 8, 12, .9) 34%, rgba(8, 8, 12, .42) 58%, rgba(8, 8, 12, .08) 76%, rgba(8, 8, 12, .5) 100%); }
#auth > * { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-mark { width: 38px; height: 38px; display: block; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.lp-word { height: 18px; width: auto; display: block; color: #fff; }
.lp-count { font-size: 12.5px; font-weight: 700; color: #fff; padding: 6px 10px; border-radius: 8px; background: rgba(8, 8, 12, .6); border: 1px solid rgba(255, 255, 255, .18); }
.lp-hero { margin-top: auto; }
.lp-flag { display: flex; width: 66px; height: 5px; }
.lp-flag i { flex: 1; } .lp-flag i:nth-child(1) { background: #f77f00; } .lp-flag i:nth-child(2) { background: #fff; } .lp-flag i:nth-child(3) { background: #009e60; }
.lp-hero h1 { margin: 14px 0 12px; font-size: clamp(46px, 14vw, 78px); line-height: .9; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.lp-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .84); max-width: 36ch; }
.lp-points { list-style: none; margin: 0 0 18px; padding: 0; }
.lp-points li { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: rgba(255, 255, 255, .84); }
.lp-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.lp-points b { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.lp-points li:nth-child(1) b { color: #ff9a2e; } .lp-points li:nth-child(3) b { color: #2fd18d; }
.lp-btn { display: block; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 12px; background: #fff; color: #0b0b0f; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.lp-btn:active { transform: scale(.985); background: #e9e9ec; }
.lp-btn:disabled { opacity: .5; }
.lp-btn.ghost { margin-top: 10px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .42); font-weight: 700; }
.lp-btn.ghost:active { background: rgba(255, 255, 255, .1); }
.lp-btn:focus-visible, #auth .link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lp-slogan { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.lp-slogan span { color: #fff; font-weight: 700; }
/* le formulaire : une feuille sombre, des champs nets */
.lp-form { margin-top: auto; padding: 20px 18px 16px; border-radius: 18px; background: rgba(14, 14, 18, .93); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lp-form h2 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -.025em; color: #fff; }
#auth .lp-form .auth-sub { margin: 0 0 16px !important; font-size: 14px; color: rgba(255, 255, 255, .7); }
#auth .lp-form label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .78); }
#auth .lp-form input, #auth .lp-form select { display: block; width: 100%; margin: 0 0 14px; padding: 14px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px; font-weight: 600; }
#auth .lp-form input::placeholder { color: rgba(255, 255, 255, .38); font-weight: 500; }
#auth .lp-form input:focus-visible, #auth .lp-form select:focus-visible { outline: none; border-color: #fff; background: rgba(255, 255, 255, .1); }
#auth .lp-form select option { color: #0b0b0f; }
#auth .lp-form .steps { margin: 0 0 16px; } #auth .lp-form .steps i { height: 4px; border-radius: 0; background: rgba(255, 255, 255, .2); }
#auth .lp-form .steps i:first-child { background: #f77f00; } #auth .lp-form .steps[data-s="2"] i:last-child { background: #009e60; }
#auth .lp-form .pw button { background: rgba(255, 255, 255, .14); color: #fff; top: 7px; height: calc(100% - 28px); }
#auth .lp-form .auth-note { margin: -4px 0 12px !important; font-size: 12.5px; color: rgba(255, 255, 255, .58) !important; }
#auth #authErr { color: #ff9c8f !important; margin: 0 0 10px !important; min-height: 1.2em; }
#auth .link { color: rgba(255, 255, 255, .7); margin-top: 14px; }
@media (max-height: 700px) { .lp-points { display: none; } .lp-hero h1 { font-size: clamp(40px, 12vw, 60px); } .lp-lead { font-size: 15px; } }
@media (min-width: 900px) {
  #auth { padding-left: 7vw; padding-right: 7vw; background: linear-gradient(to right, rgba(8, 8, 12, .95) 0%, rgba(8, 8, 12, .8) 34%, rgba(8, 8, 12, .1) 70%); }
  #auth > * { margin-left: 0; max-width: 500px; }
}

/* ---------- lancement : bandeau de connexion, premiers pas, liens vers les règles ---------- */
.net { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); max-width: 92vw; padding: 10px 16px; border-radius: 20px; background: #c81d45; color: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.list.pas .act.info .ic { font-weight: 800; color: var(--mute); }
.list.pas .act.info.done { opacity: .62; }
.list.pas .act.info.done b { text-decoration: line-through; }
#auth .lp-form .auth-note a, .lp-legal a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#auth .lp-form #authInfo { margin: 10px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9) !important; font-size: 13px; line-height: 1.45; }
.lp-legal { margin: 4px 0 0; font-size: 12.5px; text-align: center; }
.lp-legal a { display: inline-block; padding: 12px 10px; color: rgba(255, 255, 255, .72); font-weight: 600; }

/* Téléphone tenu en largeur (moins de 500 px de haut) : rien ne se chevauche, le monde reste visible au milieu.
   Les besoins à gauche, les bulles du haut décalées à côté d'eux ; le panneau du lieu en bas à gauche, la barre du bas à droite ;
   la création du personnage et les meubles passent en panneau à droite (world.js décale l'image d'autant). */
@media (orientation: landscape) and (max-height: 500px) {
  #needs { gap: 4px; padding: 5px; left: calc(8px + env(safe-area-inset-left)); }
  .need { width: 32px; height: 32px; } .need span { width: 25px; height: 25px; } .need .ico { width: 15px; height: 15px; }
  #top { left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); }
  .pill, .news { left: calc(60px + env(safe-area-inset-left)); max-width: 46vw; }
  .news { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #place { margin: 0; left: calc(60px + env(safe-area-inset-left)); right: auto; bottom: calc(8px + env(safe-area-inset-bottom)); width: min(330px, 44vw); padding: 8px 10px; }
  #nav { margin: 0; left: auto; right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); width: min(340px, 44vw); padding: 6px; }
  #nav button .ico { height: 32px; }
  .hint-bar { bottom: calc(92px + env(safe-area-inset-bottom)); right: calc(8px + env(safe-area-inset-right)); }
  .hint-bar.above { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .pill.buy { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .pill.guide { left: auto; right: calc(8px + env(safe-area-inset-right)); bottom: calc(142px + env(safe-area-inset-bottom)); }
  #toasts { top: calc(10px + env(safe-area-inset-top)); padding: 0 calc(112px + env(safe-area-inset-right)) 0 calc(min(304px, 36vw) + env(safe-area-inset-left)); }
  /* la création du personnage : le personnage à gauche, les choix à droite sur toute la hauteur */
  .c-head { padding-top: calc(10px + env(safe-area-inset-top)); width: 56vw; }
  .c-quit { top: calc(10px + env(safe-area-inset-top)); left: 12px; right: auto; }
  .c-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 44vw); max-width: none; max-height: none; margin: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) 16px; }
  #cBody { flex: 1; }
  /* le téléphone : plus large que haut, comme on le tient */
  #phone { padding: 8px; }
  .phone-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); margin: 0; z-index: 1; }
  .phone-body { width: min(620px, calc(100vw - 150px)); height: calc(100vh - 16px); border-radius: 28px; }
  .phone-screen.home { border-radius: 20px; }
  .apps { grid-template-columns: repeat(6, 1fr); gap: 14px 6px; }
  /* les meubles : un panneau à droite, la pièce reste visible à gauche */
  #build { left: auto; top: 0; width: min(420px, 48vw); justify-content: flex-end; }
  #build .b-panel { height: 100%; display: flex; flex-direction: column; border-radius: var(--r-lg) 0 0 var(--r-lg); padding-top: calc(12px + env(safe-area-inset-top)); overflow: hidden; }
  #build .b-list { flex: 1; flex-wrap: wrap; overflow-y: auto; align-content: flex-start; min-height: 0; }
  #build .b-tool { position: fixed; left: 10px; bottom: 10px; width: min(380px, 48vw); margin: 0; }
  .sheet-body { max-height: 92vh; }
}

/* Téléphone en hauteur, mais écran court (Safari et sa barre d'adresse en bas, petits téléphones) :
   les besoins se rangent juste sous les bulles du haut, un peu plus petits, et ne passent plus derrière le panneau du lieu. */
@media (orientation: portrait) and (max-height: 820px) {
  #needs { top: calc(134px + env(safe-area-inset-top)); transform: none; gap: 4px; padding: 5px; }
  .news { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 20px); }
  .need { width: 32px; height: 32px; } .need span { width: 25px; height: 25px; } .need .ico { width: 15px; height: 15px; }
}
/* le Ludo : un vrai dé, gros, qui roule avant de tomber ; la maison au milieu du plateau */
.l-mid { z-index: 1; background: conic-gradient(from -45deg, #1e6fd9 0 90deg, #0f8b8d 90deg 180deg, #f6b400 180deg 270deg, #e4572e 270deg 360deg); border: 1px solid rgba(26, 20, 35, .2); }
.ludo { max-width: 360px; }
.g-dice { flex-direction: column; align-items: stretch; gap: 10px; margin: 10px 0 6px; padding: 12px; border-radius: 16px; background: var(--sand, #f4ecdc); color: var(--ink); }
.g-die-row { display: flex; align-items: center; gap: 16px; }
.die.big { width: 92px; height: 92px; padding: 14px; gap: 6px; border-radius: 20px; background: linear-gradient(145deg, #ffffff 0%, #f1ece4 70%, #ddd5c8 100%); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .28), 0 0 0 4px #1a1423; }
.die.big { place-items: stretch; }
.die.big i { width: 100%; height: 100%; }
.die.big i.on { background: #1a1423; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .45); }
.die.big.p0 { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .28), 0 0 0 5px #e4572e; }
.die.big.p1 { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .28), 0 0 0 5px #1e6fd9; }
.die.big.p2 { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .28), 0 0 0 5px #0f8b8d; }
.die.big.p3 { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .28), 0 0 0 5px #f6b400; }
.die.big.rolling { animation: dieRoll .75s cubic-bezier(.3, .7, .4, 1) both; }
.g-dice.land .die.big { animation: dieLand .32s ease-out; }
@keyframes dieRoll { 0% { transform: translate(-30px, -26px) rotate(-200deg) scale(.7); } 35% { transform: translate(14px, 6px) rotate(40deg) scale(1.05); } 60% { transform: translate(-6px, -8px) rotate(-18deg); } 80% { transform: translate(3px, 0) rotate(8deg); } 100% { transform: none; } }
@keyframes dieLand { 0% { transform: scale(1.18); } 60% { transform: scale(.94); } 100% { transform: none; } }
.g-die-txt { display: flex; flex-direction: column; min-width: 0; }
.g-die-txt small { font-size: 14px; font-weight: 600; opacity: .75; }
.g-die-txt b { font-size: 56px; line-height: 1; font-weight: 800; }
.g-die-txt em { font-style: normal; font-weight: 800; font-size: 14px; color: #c0392b; }
.g-dice.six .g-die-txt b { color: #c0392b; }
.g-dice .btn.g-roll { margin: 0; min-height: 54px; font-size: 18px; }
.g-die-tip { margin: 0; font-weight: 700; font-size: 15px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .die.big.rolling, .g-dice.land .die.big { animation: none; } }

/* ---------- la causerie : la rue (« Ici ») et tout Babi ---------- */
.place-chat { display: block; width: 100%; text-align: left; background: none; padding: 0; cursor: pointer; }
.place-talk { position: relative; }
.place-talk em { position: absolute; top: -7px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3b4e; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px #2a2233; }
.place-talk em[hidden] { display: none; }
.place-talk em.dot { min-width: 12px; width: 12px; height: 12px; padding: 0; top: -3px; right: -2px; }
#place.talking { visibility: hidden; }
#game > .talk { z-index: 16; }
.talk { left: 0; right: 0; bottom: 0; height: min(78vh, 700px); height: min(78dvh, 700px); display: flex; flex-direction: column; background: var(--sand); color: var(--ink); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(26, 20, 35, .28); padding-bottom: env(safe-area-inset-bottom); animation: talkUp .2s ease-out; }
.talk[hidden] { display: none; }
@keyframes talkUp { from { transform: translateY(40px); opacity: .3; } }
.talk-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 6px; }
.talk-tabs { flex: 1; display: flex; gap: 4px; background: rgba(26, 20, 35, .07); border-radius: 999px; padding: 4px; }
.talk-tabs button { flex: 1; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); position: relative; }
.talk-tabs button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.talk-tabs em { position: absolute; top: 3px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b4e; color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.talk-tabs em[hidden] { display: none; }
.talk-x { width: 44px; height: 44px; border-radius: 50%; background: rgba(26, 20, 35, .07); font-size: 16px; font-weight: 700; flex: none; }
.talk-sub { margin: 2px 16px 4px; font-size: 12px; color: var(--mute); }
.talk-list { flex: 1; overflow-y: auto; padding: 4px 12px 10px; overscroll-behavior: contain; }
.talk-new { position: absolute; left: 50%; transform: translateX(-50%); bottom: 168px; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.talk-new[hidden] { display: none; }
.talk-typing { min-height: 20px; padding: 0 16px; font-size: 12.5px; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.talk-quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 8px; scrollbar-width: none; }
.talk-quick::-webkit-scrollbar { display: none; }
.talk-quick button { flex: none; padding: 8px 13px; border-radius: 999px; background: var(--paper); border: var(--edge); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.talk-quick button:active, .emos button:active { transform: scale(.94); }
.emos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 10px; background: var(--paper); border-top: var(--edge); }
.emos[hidden] { display: none; }
.emos button { font-size: 22px; height: 40px; border-radius: 10px; }
.talk-form, .th-send { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; background: var(--paper); border-top: var(--edge); }
.talk-form input, .th-send input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: var(--edge); background: var(--sand); font-size: 16px; color: var(--ink); }
.talk-form input:focus, .th-send input:focus { outline: 2px solid var(--yellow); outline-offset: 0; }
.talk-form .emo, .th-send .emo { width: 40px; height: 44px; border-radius: 50%; font-size: 21px; flex: none; }
.th-send .plus { font-size: 24px; font-weight: 600; color: var(--ink-2); }
.talk-form .go, .th-send .go { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px; flex: none; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
/* les bulles */
.tday { width: fit-content; margin: 12px auto 6px; padding: 3px 11px; border-radius: 999px; background: rgba(26, 20, 35, .07); font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: capitalize; }
.tsys { margin: 8px auto; max-width: 90%; width: fit-content; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); background: #fff1c9; border-radius: 12px; padding: 6px 11px; }
.tm { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.tm.cont { margin-top: 3px; }
.tm.me { justify-content: flex-end; }
.av { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.av.ghost { background: none; }
.av-btn { padding: 0; border-radius: 50%; flex: none; }
.tb { max-width: 80%; background: var(--paper); border-radius: 18px 18px 18px 6px; padding: 7px 12px 5px; box-shadow: 0 1px 1.5px rgba(26, 20, 35, .13); overflow-wrap: anywhere; }
.tm.cont .tb { border-top-left-radius: 6px; }
.tm.me .tb { background: #ffe7a1; border-radius: 18px 18px 6px 18px; }
.tm.me.cont .tb { border-top-right-radius: 6px; border-top-left-radius: 18px; }
.tm.pending .tb { opacity: .72; }
.tb.failed { background: #ffdfe3 !important; cursor: pointer; }
.tn { display: block; padding: 0; font-weight: 800; font-size: 12.5px; margin-bottom: 1px; text-align: left; }
.tn small { font-weight: 600; color: var(--mute); }
/* le maire, son conseil et les Guides parlent avec une autorité qu'on voit */
.rchip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 1px 7px; border-radius: 99px; margin-bottom: 2px; color: #fff; background: #1f5fbf; }
.tm.ro-maire .tb { background: #e6efff; box-shadow: inset 3px 0 0 #1f5fbf, 0 1px 1.5px rgba(26, 20, 35, .13); }
.tm.ro-maire .tn { color: #1f5fbf; }
.tm.ro-conseil .rchip { background: #4b6a96; }
.tm.ro-conseil .tb { box-shadow: inset 3px 0 0 #4b6a96, 0 1px 1.5px rgba(26, 20, 35, .13); }
.tm.ro-conseil .tn { color: #4b6a96; }
.tm.ro-guide .rchip { background: #12805c; }
.tm.ro-guide .tb { background: #e3f6ee; box-shadow: inset 3px 0 0 #12805c, 0 1px 1.5px rgba(26, 20, 35, .13); }
.tm.ro-guide .tn { color: #12805c; }
.tm.an .tb { max-width: 92%; background: #fff4d1; box-shadow: inset 0 0 0 2px #e0a800, 0 2px 6px rgba(26, 20, 35, .15); }
.tan { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #8a5a00; }
.tan .emo, .tpin .emo { width: 14px; height: 14px; font-size: 13px; }
.tpin { position: sticky; top: 0; z-index: 2; margin: 0 4px 8px; padding: 7px 11px; border-radius: 12px; background: #fff4d1; box-shadow: inset 0 0 0 1.5px #e0a800, 0 2px 6px rgba(26, 20, 35, .12); font-size: 13px; line-height: 1.35; }
.tpin b { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #8a5a00; margin-bottom: 2px; }
.tpin span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.an-btn { flex: none; align-self: center; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: #fff1c9; color: #8a5a00; }
.an-btn.on { background: #e0a800; color: #fff; }
.rchip + .tx { display: block; }
.tx { font-size: 15px; line-height: 1.38; white-space: pre-wrap; }
.tx-del { font-style: italic; color: var(--mute); }
.tb { -webkit-touch-callout: none; }
.tb time { display: block; text-align: right; font-size: 10.5px; color: var(--mute); margin-top: 1px; }
.tb.failed time { color: var(--red); font-weight: 700; }
.tick { font-style: normal; margin-left: 4px; letter-spacing: -2px; color: var(--mute); }
.tick.seen { color: #1e9bf0; }
.tempty { text-align: center; margin: 40px 18px; color: var(--mute); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.tempty b { color: var(--ink); font-size: 15.5px; }
.dots { display: inline-flex; gap: 3px; align-items: center; height: 10px; }
.dots b { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: typingDot 1.2s infinite; }
.dots b:nth-child(2) { animation-delay: .15s; } .dots b:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.tm.typing .tb { padding: 12px 14px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .dots b, .talk { animation: none; } }
@media (min-width: 900px) { .talk { left: auto; right: 16px; bottom: 16px; top: calc(70px + env(safe-area-inset-top)); width: 400px; height: auto; border-radius: 24px; } }
@media (orientation: landscape) and (max-height: 500px) { .talk { left: auto; right: 0; top: 0; bottom: 0; width: min(430px, 56vw); height: auto; border-radius: 20px 0 0 20px; } .talk-quick, .talk-sub { display: none; } }

/* ---------- messages privés, dans le téléphone ---------- */
.phone-screen.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 30px; }
.th-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 6px; background: var(--paper); border-bottom: var(--edge); border-radius: 30px 30px 0 0; }
.th-back { width: 36px; height: 44px; font-size: 30px; line-height: 1; color: var(--ink); flex: none; }
.th-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.th-who b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-who small { font-size: 12px; color: var(--mute); }
.th-who small.online, .th-who small.typing { color: var(--green); font-weight: 700; }
.th-more { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; flex: none; }
.th-list { flex: 1; overflow-y: auto; padding: 8px 10px 12px; background: var(--sand); overscroll-behavior: contain; }
.th-send { border-radius: 0 0 30px 30px; padding-bottom: 14px; }
.th-send input { height: 42px; }
.ct-av { position: relative; flex: none; display: inline-flex; }
.ct-av .on { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid var(--paper); }
.ct-av .on[hidden] { display: none; }
.ct-av .av, .dm-ask .av { width: 46px; height: 46px; font-size: 18px; }
.th-head .ct-av .av { width: 38px; height: 38px; font-size: 16px; }
.ct-list { display: flex; flex-direction: column; margin: 6px -6px 0; }
.ct { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-align: left; width: 100%; }
.ct:active { background: rgba(26, 20, 35, .06); }
.ct-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-tx b { font-size: 15px; }
.ct-tx small { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct.unread .ct-tx small { color: var(--ink); font-weight: 700; }
.ct-tx small.typing { color: var(--green); font-weight: 700; }
.ct-tx .tick { margin: 0 2px 0 0; }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.ct-side time { font-size: 11.5px; color: var(--mute); }
.ct.unread .ct-side time { color: var(--green); font-weight: 700; }
.dm-top { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.dm-top .note { flex: 1; margin: 0; font-size: 12.5px; }
.btn.small { width: auto; min-height: 0; padding: 10px 14px; margin: 0; font-size: 13.5px; flex: none; border-radius: 999px; }
.dm-add { background: var(--sand); border-radius: var(--r); padding: 10px; margin: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.dm-add small { color: var(--ink-2); }
.dm-ask { display: flex; align-items: center; gap: 10px; background: #fff1c9; border-radius: 14px; padding: 10px; margin: 10px 0 0; }
.dm-ask button { padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--paper); flex: none; }
.dm-ask .yes { background: var(--green); color: #fff; }
.dm-blocked { margin-top: 16px; font-size: 13px; }
.dm-blocked summary { color: var(--mute); cursor: pointer; padding: 8px 0; }

/* ---------- l'élection du maire ---------- */
.pill.vote { display: flex; align-items: center; gap: 0; width: max-content; min-height: 0; height: auto; padding: 8px 12px; line-height: 1.2; left: auto; right: 10px; background: #009e60; color: #fff; font-weight: 800; box-shadow: var(--shadow-sm); }
.pill.vote.done { background: var(--glass); font-weight: 700; }
.pill.vote.urgent { background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
.pill.vote[hidden] { display: none; }
#goal { max-width: calc(100vw - 182px); }
.vote-sheet .grid2 { margin: 10px 0; }
/* la fiche de l'élection */
.vt-hero { background: linear-gradient(150deg, #1e6fd9, #154f9e); color: #fff; border-radius: 18px; padding: 14px 16px 12px; }
.vt-kicker { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.vt-kicker svg { width: 20px; height: 20px; }
.vt-left { margin-top: 10px; display: flex; flex-direction: column; } .vt-left small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.vt-left b { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.vt-ends { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.vt-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.vt-facts span { background: rgba(255, 255, 255, .13); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.vt-facts small { font-size: 11px; color: rgba(255, 255, 255, .75); } .vt-facts b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-status { margin-top: 12px; border-radius: 14px; padding: 11px 13px; background: var(--sand); display: flex; flex-direction: column; gap: 4px; }
.vt-status b { font-size: 14.5px; } .vt-status small { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.vt-status.ok { background: #e3f6ec; } .vt-status.ok b { color: #0b6b45; }
.vt-status.go { background: #e6effc; } .vt-status.go b { color: #164e9a; }
.vt-meter { display: block; height: 8px; border-radius: 4px; background: rgba(26, 20, 35, .1); overflow: hidden; margin: 2px 0; }
.vt-meter i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.vt-h { margin: 18px 2px 8px; }
.vt-list { display: flex; flex-direction: column; gap: 8px; }
.vt-cand { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 9px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; background: var(--paper); border: var(--edge); }
button.vt-cand:active { transform: scale(.99); }
.vt-cand.picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 111, 217, .15); background: #f6f9ff; }
.vt-cand.mine { border-color: #009e60; box-shadow: 0 0 0 3px rgba(0, 158, 96, .12); }
.vt-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vt-rank { flex: none; width: 20px; text-align: center; font-weight: 800; font-size: 13px; color: var(--mute); }
.vt-cand .av { width: 44px; height: 44px; font-size: 18px; flex: none; }
.vt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; } .vt-name b { font-size: 15.5px; }
.vt-tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.vt-tag.lead { background: #fdf3d3; color: #8a6100; } .vt-tag.mine { background: #e3f6ec; color: #0b6b45; }
.vt-who { font-size: 12.5px; color: var(--mute); }
.vt-slogan { font-size: 14px; color: var(--ink-2); font-style: italic; line-height: 1.4; background: var(--sand); border-radius: 12px; padding: 9px 12px; }
.vt-cand.picked .vt-slogan { background: #eaf1fd; }
.vt-bar { display: block; height: 8px; border-radius: 4px; background: rgba(26, 20, 35, .08); overflow: hidden; }
.vt-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; min-width: 3px; }
.vt-cand.mine .vt-bar i { background: #009e60; }
.vt-n { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 46px; }
.vt-n b { font-size: 16px; } .vt-n small { font-size: 11.5px; color: var(--mute); }
.vt-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(26, 20, 35, .25); }
.vt-cand.picked .vt-radio { border: 7px solid var(--blue); }
.vt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 12px 8px; }
.vt-empty-ic { width: 60px; height: 60px; border-radius: 18px; background: #e6effc; display: grid; place-items: center; } .vt-empty-ic svg { width: 34px; height: 34px; }
.vt-empty b { margin-top: 6px; font-size: 16px; } .vt-empty small { color: var(--mute); font-size: 13.5px; max-width: 280px; }
.vt-foot { margin-top: 14px; }
.vt-sticky { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 2; margin: 0 -18px; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), var(--paper) 22px); }
.vt-sticky .btn { margin: 0; }
.vt-cta:disabled { background: rgba(26, 20, 35, .12); color: var(--mute); box-shadow: none; }
.vt-more { margin-top: 12px; border-radius: 14px; background: var(--sand); padding: 0 13px; }
.vt-more summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.vt-more summary::after { content: '+'; font-size: 18px; line-height: 1; color: var(--mute); } .vt-more[open] summary::after { content: '−'; }
.vt-more p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.cands { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.cand { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--sand); }
.cand.mine { box-shadow: inset 0 0 0 2px #009e60; }
.cand .av { width: 40px; height: 40px; font-size: 16px; }
.cand-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cand-tx small { color: var(--ink-2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand .bar { display: block; height: 6px; border-radius: 3px; background: rgba(26, 20, 35, .1); overflow: hidden; }
.cand .bar i { display: block; height: 100%; background: #009e60; border-radius: 3px; }
.cand-n { display: flex; flex-direction: column; align-items: center; flex: none; min-width: 34px; }
.cand-n b { font-size: 18px; line-height: 1.1; } .cand-n small { font-size: 11px; color: var(--mute); }
.cand-go { background: #009e60; color: #fff; font-weight: 800; border-radius: 999px; padding: 10px 14px; flex: none; }
.vote-ok { background: #e3f6ec; color: #0b6b45; font-weight: 700; border-radius: 12px; padding: 10px 12px; }
@media (orientation: landscape) and (max-height: 500px) { .pill.vote { right: calc(8px + env(safe-area-inset-right)); } }

/* ---------- les @citations dans la causerie ---------- */
.mention { font-weight: 800; color: #1e6fd9; }
.mention.me { color: var(--ink); background: #ffd35a; border-radius: 6px; padding: 0 3px; }
.tm.tome .tb { box-shadow: inset 0 0 0 2px #f6b400, 0 1px 1.5px rgba(26, 20, 35, .13); }
.tm:not(.me) .tb { cursor: pointer; }
.talk-tags { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 8px 12px; background: var(--paper); border-top: var(--edge); scrollbar-width: none; }
.talk-tags[hidden] { display: none; }
.talk-tags::-webkit-scrollbar { display: none; }
.talk-tags small { color: var(--mute); font-weight: 700; flex: none; }
.talk-tags button { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--sand); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.talk-tags .av { width: 26px; height: 26px; font-size: 12px; }

/* ---------- le Grand Battle du jeudi ---------- */
.pill.vote.grand { top: calc(98px + env(safe-area-inset-top)); background: #7b4bb8; }
.pill.vote.grand.done { background: var(--glass); }
.pill.vote.grand.urgent { background: var(--orange); }
.gb-poster { margin: 8px 0 12px; padding: 18px 16px; border-radius: 20px; color: #fff; text-align: center; background: radial-gradient(circle at 30% 20%, #ff7a3d 0, transparent 45%), radial-gradient(circle at 80% 80%, #1e6fd9 0, transparent 50%), #2a1640; display: flex; flex-direction: column; gap: 2px; }
.gb-poster small { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .85; font-size: 11.5px; }
.gb-poster b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.gb-poster strong { font-size: 34px; font-weight: 800; color: #ffd23f; letter-spacing: -.02em; line-height: 1.1; }
.gb-poster span { font-size: 13px; opacity: .9; }
.gb-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 10px; }
.gb-seat { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.gb-seat i { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed rgba(26, 20, 35, .2); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--mute); }
.gb-seat .av { width: 40px; height: 40px; font-size: 16px; }
.gb-seat.me .av { box-shadow: 0 0 0 3px #ffd23f; }
.gb-seat small { font-size: 10.5px; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-last { margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: #fff1c9; display: flex; flex-direction: column; gap: 3px; }
.gb-last small { color: var(--ink-2); }

/* ---------- le cadeau du jour et les missions ---------- */
.jr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0 12px; }
.jr-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--sand); text-align: center; min-width: 0; }
.jr-day small { font-size: 10px; color: var(--mute); font-weight: 700; }
.jr-day b { font-size: 12.5px; font-weight: 800; }
.jr-day i { font-style: normal; font-size: 9px; color: #7b4bb8; font-weight: 800; line-height: 1.1; }
.jr-day.got { background: #e3f6ec; color: #0b6b45; }
.jr-day.now { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.jr-day.big:not(.got):not(.now) { background: #efe4ff; }
.jr-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.jr-m { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--sand); }
.jr-m .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jr-m .tx small { color: var(--ink-2); }
.jr-m .bar { display: block; height: 6px; border-radius: 3px; background: rgba(26, 20, 35, .1); overflow: hidden; }
.jr-m .bar i { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.jr-m.ok .bar i { background: #009e60; }
.jr-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(26, 20, 35, .2); display: grid; place-items: center; font-weight: 800; flex: none; color: #fff; }
.jr-m.ok .jr-check { background: #009e60; border-color: #009e60; }
.jr-n { font-weight: 800; font-size: 13px; color: var(--ink-2); flex: none; }

/* ---------- l'agenda ---------- */
.ag-day { margin: 10px 0; padding: 10px; border-radius: 16px; background: var(--sand); }
.ag-day.today { background: #fff1c9; box-shadow: inset 0 0 0 2px var(--yellow); }
.ag-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.ag-head b { font-size: 16px; } .ag-head small { color: var(--mute); }
.ag-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; background: var(--paper); margin-top: 6px; }
.ag-item.star { box-shadow: inset 0 0 0 2px #7b4bb8; }
.ag-item .ic svg { width: 26px; height: 26px; display: block; }
.ag-item .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ag-item .tx small:first-child { font-weight: 800; color: var(--orange-d); font-size: 11.5px; }
.ag-item .tx small { color: var(--ink-2); font-size: 12.5px; }

/* ---------- les notifications (Réglages) ---------- */
.notif { margin: 8px 0 12px; padding: 12px; border-radius: 16px; background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.notif.on { background: #e3f6ec; }
.notif-head { display: flex; flex-direction: column; gap: 2px; }
.notif-head small { color: var(--ink-2); }
.notif .btn { margin: 0; }
.notif-cats { display: flex; flex-direction: column; gap: 6px; }
.notif-cats label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 6px 4px; }
.notif-cats input { width: 20px; height: 20px; accent-color: #009e60; flex: none; }

/* ---------- les jeux de table, comme en vrai ---------- */
/* les cartes : un vrai jeu, coins, grosse couleur au milieu, figures encadrées, dos à motif */
.card.real { position: relative; width: 52px; height: 74px; border-radius: 7px; background: linear-gradient(160deg, #ffffff 0%, #f7f3ea 100%); border: 1px solid rgba(0, 0, 0, .18); color: #1a1423; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); opacity: 1; padding: 0; display: block; transform-origin: 50% 120%; transition: transform .15s; }
.card.real.red { color: #c8202f; }
.card.real .cc { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.card.real .cc b { font-size: 13px; font-weight: 800; letter-spacing: -.04em; } .card.real .cc i { font-style: normal; font-size: 11px; }
.card.real .cc.tl { top: 3px; left: 4px; } .card.real .cc.br { bottom: 3px; right: 4px; transform: rotate(180deg); }
.card.real .cm { position: absolute; inset: 0; display: grid; place-items: center; }
.card.real .cm > i { font-style: normal; font-size: 26px; }
.card.real.ace .cm > i { font-size: 34px; }
.card.real .fg { display: grid; place-items: center; width: 58%; height: 62%; border: 1.5px solid currentColor; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(246, 180, 0, .18) 0 4px, rgba(255, 255, 255, 0) 4px 8px); }
.card.real .fg b { font-size: 18px; font-weight: 800; line-height: 1; } .card.real .fg i { font-style: normal; font-size: 13px; line-height: 1; }
.card.real.big { width: 66px; height: 94px; } .card.real.big .cc b { font-size: 16px; } .card.real.big .cc i { font-size: 13px; } .card.real.big .cm > i { font-size: 34px; } .card.real.big .fg b { font-size: 24px; }
.card.real.ok { box-shadow: 0 0 0 3px #ffd23f, 0 6px 10px rgba(0, 0, 0, .4); }
.card.back { opacity: 1; position: relative; display: block; width: 34px; height: 48px; border-radius: 5px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  background: repeating-linear-gradient(45deg, #b3262f 0 3px, #d83b44 3px 6px), #c8202f; display: grid; place-items: center; transform-origin: 50% 130%; }
.card.back i { font-style: normal; font-size: 7px; font-weight: 800; color: #fff; letter-spacing: .1em; background: #8f1a23; padding: 1px 3px; border-radius: 3px; }
.g-table.felt { background: radial-gradient(ellipse at 50% 40%, #1d8a5f 0%, #0f6b4a 55%, #0a4d35 100%); border: 6px solid #6b4423; box-shadow: inset 0 0 30px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .3); border-radius: 22px; padding: 12px 10px 14px; gap: 12px; }
.g-opps { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.g-opp-hand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-opp-hand .backs { display: flex; height: 54px; align-items: flex-end; }
.g-opp-hand .backs .card.back + .card.back { margin-left: -22px; }
.g-opp-hand .who { font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .3); padding: 3px 9px; border-radius: 999px; }
.g-opp-hand .who b { font-weight: 600; opacity: .85; }
.g-opp-hand.turn .who { background: #ffd23f; color: #1a1423; }
.g-opp-hand.out { opacity: .45; }
.g-table .g-mid { display: flex; align-items: center; justify-content: center; gap: 16px; }
.g-deck { position: relative; width: 58px; height: 84px; padding: 0; background: none; display: block; }
.g-deck .card.back { position: absolute; left: 0; top: 0; width: 56px; height: 80px; border-width: 3px; }
.g-deck .card.back i { font-size: 9px; }
.g-deck small { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .85); font-weight: 700; }
button.g-deck .card.back:first-child { box-shadow: 0 0 0 3px #ffd23f, 0 2px 4px rgba(0, 0, 0, .4); }
.g-pile .card.real { transform: rotate(-4deg); animation: cardIn .25s ease-out; }
@keyframes cardIn { from { transform: rotate(-20deg) translateY(-30px) scale(1.1); opacity: .3; } }
.g-table .g-suit { display: flex; flex-direction: column; align-items: center; color: #fff; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 8px 10px; min-width: 64px; }
.g-table .g-suit b { font-size: 30px; line-height: 1; color: #fff; } .g-table .g-suit.red b { color: #ff6b6b; }
.g-table .g-suit small { font-size: 10.5px; opacity: .85; }
.g-hand.fan { display: flex; justify-content: center; flex-wrap: nowrap; padding: 14px 4px 4px; margin: 0; min-height: 96px; }
.g-hand.fan .card.real + .card.real { margin-left: -18px; }
.g-hand.fan.tight .card.real + .card.real { margin-left: -30px; }
.g-hand.fan .card.real.ok { z-index: 2; margin-top: -12px; }
.g-hand.fan .card.real:not(.ok) { filter: brightness(.88); }
@media (prefers-reduced-motion: reduce) { .g-pile .card.real { animation: none; } }

/* les dames : un damier en bois verni, des pions bombés avec une rainure, la dame couronnée */
.dames { border: 0; border-radius: 6px; padding: 10px; background: linear-gradient(135deg, #6b3f1f, #8a5530 40%, #5a3318); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .12); gap: 0; box-sizing: border-box; }
.d-cell { background: linear-gradient(135deg, #f6e4bd, #ecd5a5); }
.d-cell.dark { background: linear-gradient(135deg, #8b5a33, #6f4424); box-shadow: inset 0 0 6px rgba(0, 0, 0, .25); }
.d-cell.sel { background: linear-gradient(135deg, #e0a91c, #c48a0f); }
.d-cell.to { background: linear-gradient(135deg, #6ea054, #4f7f3a); }
.d-pc { width: 78%; height: 78%; position: relative; }
.d-pc.w { background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f3e8cc 45%, #d9c49a 100%); box-shadow: 0 3px 0 #a8915f, 0 5px 6px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .5), inset 0 0 0 5px rgba(150, 120, 70, .25); }
.d-pc.b { background: radial-gradient(circle at 36% 30%, #6b5a74 0%, #3a2f42 45%, #1d1622 100%); box-shadow: 0 3px 0 #0d0a10, 0 5px 6px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(255, 255, 255, .12), inset 0 0 0 5px rgba(0, 0, 0, .25); }
.d-pc.king::after { content: '♛'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: #e5a800; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.d-pc.king { box-shadow: 0 3px 0 #a8915f, 0 6px 0 #8f7a4d, 0 8px 8px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(229, 168, 0, .7); }
.d-pc.b.king { box-shadow: 0 3px 0 #0d0a10, 0 6px 0 #000, 0 8px 8px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(229, 168, 0, .7); }
.d-cell.can .d-pc { box-shadow: 0 0 0 3px #ffd23f, 0 3px 0 rgba(0, 0, 0, .35), 0 5px 6px rgba(0, 0, 0, .4); }
.d-dot { width: 34%; height: 34%; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5)); box-shadow: 0 0 8px rgba(255, 255, 255, .8); }

/* l'awalé : la planche sculptée, les trous creusés, les vraies graines, les greniers aux deux bouts */
.awale.real { background: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.aw-label { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.aw-label small { color: var(--mute); font-weight: 600; font-size: 11.5px; }
.aw-board { display: grid; grid-template-columns: 38px 1fr 38px; gap: 6px; padding: 10px 8px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .15)), repeating-linear-gradient(90deg, #8a5228 0 7px, #94592c 7px 11px, #7d4a24 11px 19px), #8a5228;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.aw-rows { display: flex; flex-direction: column; gap: 6px; }
.aw-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.aw-pit, .aw-store { position: relative; border-radius: 50%; padding: 0; background: radial-gradient(circle at 50% 40%, #3a2210 0%, #4d2e15 55%, #6b411f 100%); box-shadow: inset 0 4px 8px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(255, 255, 255, .12), 0 1px 0 rgba(255, 255, 255, .15); aspect-ratio: 1; overflow: hidden; }
.aw-store { aspect-ratio: auto; border-radius: 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 6px; }
.aw-store b { position: relative; z-index: 1; color: #fff; font-size: 16px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.aw-store small { position: relative; z-index: 1; font-size: 8.5px; color: #f3e2bd; max-width: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-seeds { position: absolute; inset: 6%; }
.aw-store .aw-seeds { inset: 6% 10% 30%; }
.aw-seeds i { position: absolute; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #e9e1cf 0%, #b6a68a 50%, #7e6f57 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, .55); }
.aw-pit b { position: absolute; right: 2px; bottom: 1px; z-index: 1; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 8px; padding: 0 4px; line-height: 1.4; }
.aw-pit.can { box-shadow: 0 0 0 3px #ffd23f, inset 0 4px 8px rgba(0, 0, 0, .6); cursor: pointer; }
.aw-pit.mine:not(.can) { filter: brightness(.92); }
.g-opp-hand .who { position: relative; z-index: 2; margin-top: 8px; }
.g-table .g-suit small { color: rgba(255, 255, 255, .9); }

/* le GPS du trajet : en bas, au-dessus de la barre ; le plan, les quartiers traversés, le temps qui reste */
/* le trajet, en mode route : la carte compacte en haut, la vie de la route en bas, plus de menu ni de pastilles */
body.riding #nav, body.riding #goal, body.riding .pill, body.riding #busy, body.riding #houseBar, body.riding #news, body.riding #turn { display: none !important; }
body.riding #hMood, body.riding #hOnline { display: none; }
#gps { position: fixed; z-index: 34; inset: 0; pointer-events: none; color: #fff; }
.gps-card { position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(62px + env(safe-area-inset-top)); width: min(440px, calc(100vw - 20px)); pointer-events: auto;
  border-radius: 22px; padding: 12px 14px 10px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(10, 6, 20, .28); animation: gpsIn .35s ease-out; }
@keyframes gpsIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.gps-head { display: flex; align-items: center; gap: 10px; }
.gps-head .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.gps-head .ic svg, .gps-head .ic img { width: 30px; height: 30px; }
.gps-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gps-tx b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-next { font-size: 12.5px; color: var(--yellow); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-time { position: relative; flex: none; width: 46px; height: 46px; }
.gps-ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.gps-ring circle { fill: none; stroke-width: 4.5; }
.gps-ring .bg { stroke: rgba(255, 255, 255, .16); }
.gps-ring .on { stroke: var(--yellow); stroke-linecap: round; }
.gps-left { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gps-line { position: relative; height: 40px; margin: 12px 14px 0; }
.gps-rail, .gps-fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; }
.gps-rail { right: 0; background: rgba(255, 255, 255, .18); }
.gps-fill { width: 0; background: var(--yellow); }
.gps-dot { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #3a3346; border: 2px solid rgba(255, 255, 255, .5); transition: background .3s, border-color .3s, transform .3s; }
.gps-dot.passed { background: var(--yellow); border-color: var(--yellow); }
.gps-dot.next { border-color: var(--yellow); transform: scale(1.2); }
.gps-dot.end { width: 14px; height: 14px; margin-left: -7px; top: 4px; }
.gps-dot em { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: rgba(255, 255, 255, .7); }
.gps-dot:first-of-type em { left: -4px; transform: none; }
.gps-dot.end em { left: auto; right: -4px; transform: none; color: #fff; }
.gps-dot.next em { color: var(--yellow); }
.gps-me { position: absolute; top: -9px; left: 0; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; font-size: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); z-index: 1; }
.gps-me svg, .gps-me img { width: 20px; height: 20px; }
.gps-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; opacity: .85; }
.gps-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-mapbtn { flex: none; min-height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 700; }
.gps-mapbox { margin-top: 10px; }
.gps-map { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 14px; }
.gps-vie { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 20px)); display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 24px rgba(10, 6, 20, .22); }
.gps-vie .e { flex: none; font-size: 22px; }
.gps-vie.in { animation: vieIn .4s ease-out; }
@keyframes vieIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.gps-prev { margin: 0 0 12px; }
.gps-prev .gps-map { border: var(--edge); }
.gps-prev small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
/* le GPS ne doit pas cacher le véhicule : à gauche sur grand écran, en haut (sous la barre de progression) sur téléphone */
@media (min-width: 760px) { .gps-card { left: 10px; right: auto; margin: 0; width: 380px; } .gps-vie { left: 10px; right: auto; margin: 0; width: 380px; } }
@media (prefers-reduced-motion: reduce) { .gps-card, .gps-vie.in { animation: none; } }

/* « Au voleur ! » : la bande rouge en haut, avec le temps qui reste et le bouton */
.vol-bar { position: fixed; z-index: 70; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: var(--r); background: var(--red); color: #fff; box-shadow: var(--shadow); }
.vol-bar[hidden] { display: none; }
.vol-bar.in { animation: volShake .45s ease-out; }
.vol-bar b { flex: 1; font-size: 15px; line-height: 1.3; }
.vol-bar .t { font-weight: 800; font-variant-numeric: tabular-nums; opacity: .85; }
.vol-bar button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--red); font: 800 15px var(--font); cursor: pointer; }
@keyframes volShake { 0% { transform: translateX(-50%) scale(.92); } 30% { transform: translateX(calc(-50% - 6px)); } 55% { transform: translateX(calc(-50% + 6px)); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vol-bar.in { animation: none; } }
.news-h { margin: 14px 0 2px; }
/* l'appli Nouvelles : deux onglets, Babi (pour tout le monde) et Pour moi */
.news-tabs { display: flex; gap: 4px; background: rgba(26, 20, 35, .07); border-radius: 999px; padding: 4px; margin-bottom: 10px; }
.news-tabs button { flex: 1; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); position: relative; }
.news-tabs button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.news-tabs em { position: absolute; top: 3px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b4e; color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.news-item + .news-item { margin-top: 18px; }
.news-text { white-space: pre-line; line-height: 1.45; margin: 6px 0 0; }
/* le canal de la Mairie */
.nw-card.mai { border-left: 4px solid #1f8a5b; }
.nw-card.mai .nw-badge { color: #17704a; background: rgba(31, 138, 91, .12); }
.nw-card.mai.auto { border-left-color: rgba(31, 138, 91, .4); background: #f7faf8; } .nw-card.mai.auto .nw-title { font-size: 15.5px; }
.mai-by { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.mai-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mai-r { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: rgba(26, 20, 35, .06); }
.mai-r b { font-weight: 800; color: var(--ink); }
.mai-r.up.on { background: #dff3e8; color: #17704a; box-shadow: inset 0 0 0 1.5px rgba(31, 138, 91, .45); }
.mai-r.down.on { background: #fde8e9; color: #b3202f; box-shadow: inset 0 0 0 1.5px rgba(214, 58, 74, .4); }
.mai-q { min-height: 38px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--blue); background: rgba(30, 111, 217, .1); }
.mai-asked { font-size: 13px; font-weight: 700; color: #17704a; padding: 0 6px; }
.mai-rep { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--mute); padding: 8px 6px; }
.mai-qs { margin-top: 10px; background: var(--sand); border-radius: 12px; padding: 8px 12px; }
.mai-qs summary { font-weight: 700; font-size: 14px; cursor: pointer; min-height: 30px; display: flex; align-items: center; }
.mai-qrow { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mai-qrow small { grid-column: 2; color: var(--mute); font-size: 12px; } .mai-none { display: block; padding: 4px 0 6px; color: var(--mute); }
.mai-compose { margin-top: 12px; border-radius: 16px; padding: 14px; background: #eef8f2; border: 1.5px solid rgba(31, 138, 91, .25); display: flex; flex-direction: column; gap: 8px; }
.mai-compose.off { background: var(--sand); border-color: transparent; }
.mai-h { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.mai-h svg { width: 32px; height: 32px; grid-row: span 2; } .mai-h b { font-size: 16px; } .mai-h small { grid-column: 2; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.mai-compose input, .mai-compose textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .14); padding: 11px 12px; background: var(--paper); }
.mai-compose textarea { resize: vertical; min-height: 96px; }
.mai-cnt { align-self: flex-end; color: var(--mute); font-size: 12px; margin-top: -4px; }
.mai-compose .btn { margin: 2px 0 0; background: #1f8a5b; }
.news-tabs button { padding: 0 6px; }
/* répondre à l'équipe */
.reply-q { background: var(--sand, #f4efe6); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); max-height: 140px; overflow: auto; }
.reply-ta { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; border-radius: 14px; border: 1.5px solid rgba(0, 0, 0, .14); padding: 12px; resize: vertical; margin-top: 6px; }
.nw-row.tap { cursor: pointer; }
/* la police sur la fiche d'un joueur */
.ptag { display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; }
.ptag.bd { background: color-mix(in srgb, var(--bd) 16%, #fff); color: color-mix(in srgb, var(--bd) 70%, #1a1423); }
.ptag.bd i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bd); margin-right: 5px; vertical-align: 0; }
.ptag.cz { background: #fff4d1; color: #8a5a00; }
.row.dim { opacity: .62; }
.sr-card { background: var(--sand); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.sr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .sr-h b { font-size: 15px; } .sr-h .ptag { margin-left: 0; }
.sr-today { background: #fff; border-radius: 10px; padding: 8px 10px; } .sr-today small { display: block; font-size: 11.5px; } .sr-today b { font-size: 13.5px; }
.sr-today.ok b { color: #00804d; }
.sr-row { display: grid; gap: 4px; } .sr-row small { font-size: 12px; } .sr-row b { font-size: 13.5px; }
.sr-row .bar { display: block; height: 7px; border-radius: 4px; background: rgba(26, 20, 35, .1); overflow: hidden; } .sr-row .bar i { display: block; height: 100%; border-radius: 4px; }
.sr-win { text-align: center; }
.sr-medal { width: 84px; height: 84px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bd) 45%, #fff), var(--bd)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bd) 22%, #fff); }
.sr-medal span { font-size: 28px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ptag.cop { background: #e6effc; color: #164e9a; } .ptag.guide { background: #dff5e6; color: #11753a; } .ptag.wanted { background: #fde8e9; color: #b3202f; }
.pol-box { margin: 12px 0 4px; border-radius: 16px; padding: 12px 14px; background: #eef3fb; border: 1.5px solid rgba(30, 111, 217, .18); }
.pol-box.wanted { background: #fdf1f1; border-color: rgba(214, 58, 74, .3); }
.pol-h { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; }
.pol-h svg { width: 28px; height: 28px; grid-row: span 2; } .pol-h b { font-size: 15px; } .pol-h small { font-size: 13px; color: var(--ink-2); grid-column: 2; }
.pol-acts { display: flex; gap: 8px; margin-top: 10px; } .pol-acts .btn { margin: 0; flex: 1; min-height: 46px; padding: 10px 12px; font-size: 15px; }
.pol-box.wanted .pol-acts .btn:not(.ghost) { background: var(--red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
/* mise à jour du jeu sans recharger soi-même */
.upd-bar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; width: min(440px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(26, 20, 35, .92); color: #fff; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.upd-bar > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.upd-bar b { font-size: 14.5px; } .upd-bar small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.upd-cover { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(26, 20, 35, .82); color: #fff; backdrop-filter: blur(6px); }
.upd-cover b { font-size: 18px; } .upd-cover small { color: rgba(255, 255, 255, .75); }
/* l'appli Nouvelles */
.nw-top { position: sticky; top: -4px; z-index: 2; background: var(--paper); margin: 0 -14px 6px; padding: 8px 14px 6px; box-shadow: 0 1px 0 var(--line); }
.nw-top .news-tabs { margin-bottom: 6px; }
.nw-tools { display: flex; align-items: center; gap: 4px; min-height: 34px; }
.nw-count { flex: 1; font-size: 13px; font-weight: 600; color: var(--mute); }
.nw-link { font-size: 13.5px; font-weight: 700; color: var(--blue); padding: 7px 9px; border-radius: 10px; }
.nw-link:active { background: rgba(30, 111, 217, .1); } .nw-link.danger { color: var(--red); }
.nw-card { position: relative; background: var(--paper); border: var(--edge); border-radius: 16px; padding: 12px 14px 14px; margin-top: 12px; box-shadow: 0 1px 2px rgba(26, 20, 35, .04); }
.nw-card.unread { border-color: rgba(228, 87, 46, .45); box-shadow: 0 0 0 3px rgba(228, 87, 46, .08); }
.nw-meta { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.nw-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(30, 111, 217, .1); padding: 4px 9px 4px 6px; border-radius: 999px; }
.nw-badge svg { width: 15px; height: 15px; display: block; }
.nw-card.ann .nw-badge { color: var(--orange-d); background: rgba(228, 87, 46, .12); }
.nw-when { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.nw-new { font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 2px 7px; border-radius: 999px; }
.nw-title { margin: 8px 0 4px; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.nw-text { margin: 4px 0 0; white-space: pre-line; line-height: 1.5; color: var(--ink-2); }
.nw-link { color: var(--blue, #1f6feb); font-weight: 600; word-break: break-all; }
.nw-go { display: block; text-align: center; margin-top: 10px; text-decoration: none; }
.nw-items { list-style: none; margin: 8px 0 0; padding: 0; }
.nw-items li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nw-items li:first-child { border-top: 0; padding-top: 4px; }
.nw-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); }
.nw-ic svg { width: 24px; height: 24px; display: block; }
.nw-ic.red { background: #fde8e9; } .nw-ic.blue { background: #e6effc; } .nw-ic.pink { background: #fde7f0; } .nw-ic.orange { background: #fdebe3; }
.nw-ic.green { background: #e2f3f2; } .nw-ic.yellow { background: #fdf3d3; } .nw-ic.ink { background: #ece9f0; }
.nw-ic.big { width: 64px; height: 64px; border-radius: 20px; } .nw-ic.big svg { width: 36px; height: 36px; }
.nw-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-tx b { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.nw-tx small { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.nw-day h4 { margin: 16px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.nw-list { background: var(--paper); border: var(--edge); border-radius: 16px; overflow: hidden; }
.nw-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px 11px 12px; border-top: 1px solid var(--line); }
.nw-row:first-child { border-top: 0; }
.nw-row .nw-tx b { font-weight: 500; }
.nw-row .nw-tx small { color: var(--mute); font-size: 12px; }
.nw-row.unread { background: #fff8f3; } .nw-row.unread .nw-tx b { font-weight: 700; }
.nw-row.unread .nw-tx small::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
.news-x { flex: none; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; display: grid; place-items: center; color: var(--mute); }
.news-x i { position: relative; width: 14px; height: 14px; }
.news-x i::before, .news-x i::after { content: ''; position: absolute; left: 6px; top: -1px; width: 2px; height: 16px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.news-x i::after { transform: rotate(-45deg); }
.news-x:hover, .news-x:focus-visible, .news-x:active { background: var(--sand); color: var(--ink); }
.nw-meta .news-x { margin-right: -8px; }
.nw-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 42px 18px 12px; }
.nw-empty b { margin-top: 8px; font-size: 16px; } .nw-empty small { color: var(--mute); font-size: 13.5px; max-width: 260px; }
.nw-foot { margin: 18px 0 4px; text-align: center; font-size: 12.5px; color: var(--mute); }
/* dans la grande fenêtre d'annonce, la carte s'efface */
#sheet .nw-card { border: 0; box-shadow: none; padding: 0; margin: 0 0 6px; }
/* le Pari Foot : les matchs, les cotes, le coupon collé en bas, les matchs en direct */
.p-lg { margin: 16px 0 6px; }
.pm { border: var(--edge); border-radius: var(--r); padding: 10px 10px 4px; margin-bottom: 10px; background: var(--paper); }
.pm-head { display: flex; flex-direction: column; margin-bottom: 6px; }
.pm-head small { color: var(--mute); font-size: 11.5px; }
.pm-head b { font-size: 15px; }
.pm-row { margin-bottom: 6px; }
.pm-row > small { display: block; color: var(--mute); font-size: 11px; margin-bottom: 3px; }
.pm-odds { display: flex; gap: 6px; }
.po { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--sand); color: var(--ink); line-height: 1.15; }
.po small { font-size: 10.5px; color: var(--ink-2); }
.po b { font-size: 14px; }
.po.on { background: var(--green); color: #fff; }
.po.on small { color: rgba(255, 255, 255, .85); }
.p-top { display: flex; flex-direction: column; gap: 2px; background: var(--sand); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; }
.p-top small { color: var(--mute); }
.p-code input { flex: 1; min-width: 0; text-transform: uppercase; }
.p-slip { position: sticky; bottom: -22px; margin: 14px -14px -22px; padding: 10px 14px 14px; background: var(--ink); color: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(26, 20, 35, .25); }
.p-sum { display: flex; align-items: center; gap: 10px; }
.p-sum b { flex: 1; }
.p-sum span { color: var(--yellow); font-weight: 800; }
.p-clear { color: rgba(255, 255, 255, .7); font-size: 13px; text-decoration: underline; min-height: 32px; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.p-stake { display: flex; align-items: center; background: rgba(255, 255, 255, .12); border-radius: 999px; }
.p-stake button { width: 40px; height: 40px; border-radius: 999px; color: #fff; font-size: 20px; font-weight: 800; }
.p-stake input { width: 72px; height: 40px; border: 0; background: transparent; color: #fff; text-align: center; font: 800 15px var(--font); }
.p-gain { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.p-gain small { color: rgba(255, 255, 255, .7); font-size: 11.5px; }
.p-gain b { font-size: 18px; color: var(--yellow); }
.p-go { margin: 0; width: 100%; min-height: 46px; padding: 10px 16px; }
.p-go[disabled] { opacity: .55; }
.pl-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.pl-clock { font-size: 34px; font-weight: 800; color: var(--yellow); margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.pl-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pl-row { background: rgba(255, 255, 255, .07); border-radius: var(--r-sm); padding: 8px 10px; border-left: 4px solid rgba(255, 255, 255, .25); }
.pl-row.ok { border-left-color: #3ccf91; }
.pl-row.ko { border-left-color: var(--red); background: rgba(214, 58, 74, .18); }
.pl-row.goal { animation: plGoal .6s ease-out; }
@keyframes plGoal { 0% { background: rgba(246, 180, 0, .55); } 100% { background: rgba(255, 255, 255, .07); } }
.pl-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.pl-teams span:last-child { text-align: right; }
.pl-score { font-size: 18px; font-variant-numeric: tabular-nums; color: #fff; }
.pl-pick { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pl-st { font-style: normal; font-weight: 700; }
.pl-row.ok .pl-st { color: #3ccf91; }
.pl-row.ko .pl-st { color: #ff8a96; }
.pl-verdict { margin: 14px 0 4px; padding: 12px; border-radius: var(--r); display: flex; flex-direction: column; gap: 2px; }
.pl-verdict[hidden] { display: none; }
.pl-verdict.won { background: #1f9d6b; }
.pl-verdict.lost { background: var(--red); }
.pl-verdict b { font-size: 20px; }
.pl .btn { margin-top: 8px; }
.pl .btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pl-row.goal { animation: none; } }
.pl-verdict small { color: #fff; opacity: .9; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
/* le Pari Foot, nouvelle formule : l'en-tête, les écussons, le coupon qui se déplie */
.p-hero { margin: 0 -14px 4px; padding: 14px 16px 12px; background: linear-gradient(135deg, #0b6b3a, #0f8b4c 60%, #1f9d55); color: #fff; border-radius: 0 0 22px 22px; }
.p-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-hero-top b { font-size: 19px; letter-spacing: .5px; white-space: nowrap; }
.p-hero small, .p-bonus small, .p-mini small { color: inherit; }
.p-live { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.22); padding: 4px 9px; border-radius: 999px; }
.p-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; animation: pLive 1.2s infinite; }
@keyframes pLive { 50% { opacity: .25; } }
.p-hero-nb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 8px; }
.p-hero-nb span { background: rgba(255,255,255,.14); border-radius: 12px; padding: 7px 8px; display: flex; flex-direction: column; line-height: 1.15; }
.p-hero-nb small { font-size: 10.5px; opacity: .85; } .p-hero-nb b { font-size: 13px; color: #ffd84d; white-space: nowrap; }
.p-hero-nx { font-size: 11.5px; opacity: .9; }
.p-top { margin-top: 10px; }
.p-top-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.p-top-row span { flex: none; display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; padding: 6px 10px; line-height: 1.2; }
.p-top-row em { font-style: normal; font-weight: 800; color: #0f8b4c; }
.p-top-row small { font-size: 11px; color: var(--mute); }
.pm { padding: 10px 10px 6px; transition: box-shadow .2s; }
.pm.pris { box-shadow: 0 0 0 2px #1f9d55; }
.pm-head { flex-direction: row; align-items: center; gap: 6px; margin-bottom: 8px; }
.pm-head em { font-style: normal; font-size: 11px; color: var(--mute); font-weight: 700; flex: none; }
.pm-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.pm-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-t.ext { justify-content: flex-end; text-align: right; }
.pe { flex: none; width: 30px; height: 30px; border-radius: 50% 50% 46% 46%; background: var(--ec); color: #fff; display: grid; place-items: center; font: 800 11px var(--font); font-style: normal; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.po b { font-size: 15px; }
.po.on { background: #1f9d55; transform: scale(1.03); }
.pm-more { width: 100%; min-height: 34px; font-size: 12px; font-weight: 700; color: #0f8b4c; }
.p-slip { padding: 6px 14px 12px; }
.p-sum { width: 100%; min-height: 44px; color: #fff; font: inherit; text-align: left; }
.p-sum em { font-style: normal; min-width: 24px; height: 24px; border-radius: 12px; background: #1f9d55; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.p-sum i { font-style: normal; opacity: .7; }
.p-mini { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2px; }
.p-mini small { opacity: .75; } .p-mini b { color: var(--yellow); font-size: 17px; }
.p-picks { display: flex; flex-direction: column; gap: 6px; max-height: 32vh; overflow-y: auto; margin: 4px 0 8px; }
.p-pick { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 7px 8px 7px 12px; }
.p-pick span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.p-pick span small { opacity: .7; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-pick em { font-style: normal; font-weight: 800; color: var(--yellow); }
.p-pick button { width: 32px; height: 32px; border-radius: 50%; color: #fff; opacity: .7; }
.p-bonus { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.p-bonus.on { background: linear-gradient(90deg, #e4572e, #f6b400); color: #1a1423; font-weight: 800; }
.p-bonus small { font-size: 11.5px; opacity: .85; text-align: right; }
.p-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.p-quick button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 13px; }
.p-quick button.on { background: var(--yellow); color: #1a1423; }
.p-stake input { width: 96px; }
/* les championnats du Pari Foot : une rangée de boutons qu'on fait glisser, collée en haut */
.p-chips { position: sticky; top: -4px; z-index: 2; display: flex; gap: 6px; overflow-x: auto; margin: 6px -14px 0; padding: 8px 14px; background: var(--paper); scrollbar-width: none; }
.p-chips::-webkit-scrollbar { display: none; }
.p-chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-weight: 700; font-size: 13px; white-space: nowrap; position: relative; }
.p-chip.on { background: var(--ink); color: #fff; }
.p-chip em { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-style: normal; display: inline-grid; place-items: center; }

/* ---------- vague 2 : les grins, les trophées, la garde-robe ---------- */
#grinbP { top: calc(136px + env(safe-area-inset-top)); background: #0f8b8d; }
#ndcP { top: calc(136px + env(safe-area-inset-top)); background: #6b2fb8; }
#concP { top: calc(136px + env(safe-area-inset-top)); background: #c2255c; }
#concP.urgent { animation: lv-pulse 1.6s ease-in-out infinite; }
#plageP { top: calc(136px + env(safe-area-inset-top)); background: #0f8b8d; }
#plageP.urgent { animation: lv-pulse 1.6s ease-in-out infinite; }
/* la feuille de Dimanche à la plage : un bloc par concours */
.pl-jeu { border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pl-head small { color: #5d5a75; }
.btn.sm { padding: 8px 12px; font-size: 14px; align-self: flex-start; }
/* l'agenda : la carte « Ce week-end » */
.we-card { background: linear-gradient(135deg, #1d3f8f, #0f8b8d); color: #fff; border-radius: 18px; padding: 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.we-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.we-head b { font-size: 18px; } .we-card small { color: rgba(255,255,255,0.82); opacity: 1; }
.we-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12); border: 0; border-radius: 12px; padding: 10px; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.we-row .ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.we-row .ic svg, .we-row .ic img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.we-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .we-row .tx small { font-size: 12px; }
.we-st { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.2); white-space: nowrap; }
.we-row.live .we-st { background: #ffcf3f; color: #16181d; } .we-row.fini { opacity: 0.55; }
/* les concours de la plage : le canvas plein écran */
.pj { position: fixed; inset: 0; z-index: 90; background: #2f8fb8; touch-action: none; user-select: none; -webkit-user-select: none; }
.pj canvas { width: 100%; height: 100%; display: block; }
.pj-quit { position: absolute; right: max(12px, env(safe-area-inset-right)); top: calc(72px + env(safe-area-inset-top)); background: rgba(16,15,28,0.6); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 14px "DM Sans", system-ui, sans-serif; }
.grin-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.grin-chip i { width: 11px; height: 11px; border-radius: 50%; background: var(--gc, #e4572e); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); flex: none; }
.gb-poster.grin-poster { background: radial-gradient(circle at 25% 15%, var(--gc, #0f8b8d) 0, transparent 55%), radial-gradient(circle at 85% 85%, #e4572e 0, transparent 50%), #1a1423; }
.gb-poster.grin-poster span { font-style: normal; }
.grin-new { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.grin-new input { display: block; width: 100%; padding: 13px 14px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 16px; }
.grin-new .btn { margin-top: 4px; }
.grin-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.grin-cols button.sw { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.grin-cols button.sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.grin-quick { gap: 8px; margin-bottom: 8px; }
.grin-quick button { flex: 1; }
.grin-inv { flex-wrap: wrap; gap: 8px; }
.grin-inv .tx { flex: 1 1 160px; min-width: 0; }
.tros { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tro { background: var(--sand); border-radius: var(--r-sm); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .55; }
.tro.on { opacity: 1; background: #fff4d6; box-shadow: inset 0 0 0 1.5px #f6b400; }
.tro-ic { font-size: 24px; line-height: 1.2; }
.tro b { font-size: 12.5px; line-height: 1.2; }
.tro small { font-size: 11px; color: var(--mute); line-height: 1.25; }
.prof:empty { display: none; }
.prof { margin: -4px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.prof-grin { margin: 0; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.prof-tros { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 20px; }
.prof-tros small { font-size: 12px; color: var(--mute); margin-left: 4px; }
.c-sub { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tro-ic .ico { width: 30px; height: 30px; }
.tro:not(.on) .tro-ic { filter: grayscale(1); opacity: .5; }
.prof-tros { flex-direction: column; align-items: flex-start; font-size: 13px; }
.prof-tro-n { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.prof-tro-n .ico { width: 22px; height: 22px; }
.tro-tag { background: #fff4d6; color: #7a5200; }
.ptag.tro-tag { margin-left: 0; }

/* ---------- Moi : la fiche du joueur ---------- */
.moi-head { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; color: #fff; margin: 4px 0 10px;
  background: radial-gradient(circle at 15% 20%, var(--gc, #e4572e) 0, transparent 55%), radial-gradient(circle at 90% 90%, #1e6fd9 0, transparent 55%), #1a1423; }
.moi-pic { flex: none; width: 92px; height: 120px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; overflow: hidden; }
.moi-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.35); transform-origin: 50% 12%; }
.moi-pic .av { width: 56px; height: 56px; font-size: 26px; }
.moi-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.moi-id > b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.moi-id > span { font-size: 13.5px; opacity: .88; }
.moi-grin .grin-chip i { box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.moi-grin.dim { opacity: .6; }
.moi-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.moi-btns button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,.16); color: #fff; font: 700 12.5px var(--font); cursor: pointer; }
.moi-btns button .ico { width: 18px; height: 18px; }
.moi-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.moi-nums > div { background: var(--sand); border-radius: var(--r-sm); padding: 9px 6px; text-align: center; min-width: 0; }
.moi-nums b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moi-nums small { font-size: 11px; color: var(--mute); }
.moi-tabs { position: sticky; top: -1px; z-index: 2; display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: var(--sand); }
.moi-tabs button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 999px; font: 700 13px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.moi-tabs button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(26,20,35,.15); }
.moi-wear { gap: 6px; margin-bottom: 4px; } .moi-wear .ptag { margin-left: 0; background: var(--sand); color: var(--ink); }
/* partager un moment */
.mo-prev { display: grid; place-items: center; margin: 4px 0 10px; }
/* la Caméra (2026-11-19) : un cadre, deux gros boutons en bas, une croix ; le jeu reste jouable dessous */
.cam-mode { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.cam-mode > * { pointer-events: auto; }
.cam-cadre { position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.55); border-radius: 18px; pointer-events: none; }
.cam-mode.rec .cam-cadre { border-color: #e4572e; box-shadow: inset 0 0 0 2px rgba(228,87,46,.4); }
.cam-x { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(26,20,35,.7); color: #fff; font-size: 20px; }
.cam-info { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 140px); background: rgba(26,20,35,.7); color: #fff; padding: 8px 14px; border-radius: 999px; font: 600 14px "DM Sans", system-ui, sans-serif; text-align: center; pointer-events: none; }
.cam-mode.rec .cam-info { background: #e4572e; }
.cam-bar { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.cam-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #fff; font: 700 14px "DM Sans", system-ui, sans-serif; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.cam-btn:disabled { opacity: .4; }
.cam-rond { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 5px solid rgba(255,255,255,.5); background-clip: padding-box; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.cam-btn.clip .cam-rond { background: #e4572e; background-clip: padding-box; }
.cam-mode.rec .cam-btn.clip .cam-rond { border-radius: 18px; transform: scale(.8); }
.cam-share video { width: min(70%, 260px); border-radius: 14px; box-shadow: 0 6px 24px rgba(26,20,35,.25); background: #000; }
.mo-prev img { width: min(62%, 240px); border-radius: 14px; box-shadow: 0 6px 24px rgba(26,20,35,.25); }
.mo-acts { display: flex; flex-direction: column; gap: 0; }
.mo-acts a.btn { text-align: center; text-decoration: none; display: block; }
/* chercher un contact */
.ct-search { display: block; width: 100%; padding: 12px 14px; margin: 4px 0 10px; border: var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 16px; }

/* ---------- vague 4 ---------- */
#quizP { top: calc(174px + env(safe-area-inset-top)); background: #1e6fd9; }
#feteP { top: calc(212px + env(safe-area-inset-top)); background: #e4572e; }
.fete-row { display: flex; align-items: center; gap: 10px; }
.fete-row .tx { flex: 1; min-width: 0; }
.fete-row .btn { margin: 0; width: auto; padding: 9px 12px; font-size: 13px; }
.fete-mine { display: flex; flex-direction: column; gap: 6px; }
/* dans une maison : les gestes de la fête, bien visibles en bas de l'écran */
.house-bar { position: fixed; left: 10px; right: 10px; bottom: calc(206px + env(safe-area-inset-bottom)); z-index: 6; display: flex; flex-direction: column; gap: 6px; }
/* les gestes : une seule ligne qui glisse, centrée quand tout tient */
.house-bar .hb-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; margin-right: -10px; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
.house-bar .hb-row > :first-child { margin-left: auto; } .house-bar .hb-row > :last-child { margin-right: auto; }
.house-bar .hb-row::-webkit-scrollbar { display: none; }
.house-bar button { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 13px; background: var(--paper); color: var(--ink); font: 800 13.5px var(--font); box-shadow: var(--shadow-sm); cursor: pointer; }
.house-bar button.hot { background: #e4572e; color: #fff; }
.house-bar button .ico { width: 20px; height: 20px; }
.house-bar .hb-info { text-align: center; } .house-bar .hb-info span { display: inline-block; background: rgba(26,20,35,.82); color: #fff; font: 700 12px var(--font); padding: 5px 11px; border-radius: 999px; }
.house-bar { left: 84px; }
/* le quiz */
.qz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qz-head small { color: var(--mute); font-weight: 700; }
.qz-time { font-size: 26px; font-weight: 800; color: var(--ink); }
.qz-bar { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 6px 0 14px; }
.qz-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e4572e, #f6b400); transition: width .25s linear; }
.qz-q { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0 0 14px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { text-align: left; padding: 14px 16px; border-radius: var(--r-sm); border: var(--edge); background: var(--paper); font: 700 15px var(--font); color: var(--ink); cursor: pointer; }
.qz-opt:disabled { cursor: default; }
.qz-opt.mine { border-color: #1e6fd9; box-shadow: inset 0 0 0 2px #1e6fd9; }
.qz-opt.good { background: #d9f2e1; border-color: #2a9d4b; box-shadow: inset 0 0 0 2px #2a9d4b; }
.qz-opt.bad { background: #fde2e2; border-color: #c81d45; }
/* les tirs au but */
.penalty { display: flex; flex-direction: column; gap: 10px; }
.pen-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pen-score > div { background: var(--sand); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.pen-score b { font-size: 24px; font-weight: 800; }
.pen-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.pen-dots i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.pen-dots i.but { background: #2a9d4b; box-shadow: none; } .pen-dots i.rate { background: #c81d45; box-shadow: none; }
.pen-goal { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: linear-gradient(#7cc4f2 0 52%, #3e9a4a 52%); }
.pen-net { position: absolute; left: 8%; right: 8%; top: 14%; height: 52%; border: 5px solid #fff; border-bottom: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.45) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, transparent 1px 12px); }
.pen-keeper { position: absolute; top: 34%; width: 22px; height: 46px; margin-left: -11px; border-radius: 10px 10px 4px 4px; background: #f6b400; box-shadow: inset 0 -14px 0 #1a1423; transition: left .3s, transform .3s; }
.pen-keeper.dive0 { transform: rotate(-60deg); } .pen-keeper.dive2 { transform: rotate(60deg); }
.pen-ball { position: absolute; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), 0 0 0 2px #1a1423; top: 40%; transition: left .3s, top .3s; }
.pen-ball.spot { left: 50%; top: 82%; } .pen-ball.rate { top: 12%; } .pen-ball.arret { top: 48%; }
.pen-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pen-btns .btn { margin: 0; padding: 12px 6px; font-size: 13px; }
/* inviter ses amis */
.inv-link { padding: 12px 14px; border-radius: var(--r-sm); background: var(--sand); font: 700 14px var(--font); word-break: break-all; margin-bottom: 8px; }
.surp p { font-size: 15.5px; }

/* Sur la carte, en téléphone tenu en hauteur : le plan d'abord. Les besoins s'effacent (on les retrouve dans la rue),
   l'aide « touche un quartier » passe sous les bulles du haut, en petit, et s'en va toute seule après quelques secondes. */
@media (max-width: 759px) and (orientation: portrait) {
  body[data-view="map"] #needs { display: none; }
  body[data-view="map"] .hint-bar { bottom: calc(158px + env(safe-area-inset-bottom)); left: 10px; right: auto; max-width: calc(100vw - 20px); font-size: 11.5px; padding: 6px 11px; pointer-events: none; animation: hint-out .5s ease 6s forwards; }
}
@keyframes hint-out { to { opacity: 0; visibility: hidden; } }
/* Les petits téléphones (moins de 700 px de haut) : la barre du bas et le panneau du lieu se tassent, la rue reste visible */
@media (orientation: portrait) and (max-height: 700px) {
  #top { font-size: 12px; gap: 5px; } #top > * { padding: 7px 10px; }
  .pill { top: calc(48px + env(safe-area-inset-top)); font-size: 12px; padding: 7px 10px; }
  #nav { padding: 6px; border-radius: 22px; } #nav button { font-size: 10.5px; gap: 2px; } #nav button .ico { width: 40px; height: 30px; padding: 5px 9px; border-radius: 12px; }
  #place { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 8px 10px; border-radius: 20px; }
  .hint-bar, .pill.guide, .pill.buy { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hint-bar.above { bottom: calc(136px + env(safe-area-inset-bottom)); }
  body[data-view="map"] .hint-bar { bottom: calc(140px + env(safe-area-inset-bottom)); }
}

/* ---------- Babi Live : les espaces où l'on parle à voix haute ---------- */
#liveP { top: calc(250px + env(safe-area-inset-top)); background: #6c3fc5; }
#liveP.in { background: #c81d45; animation: lv-pulse 1.6s ease-in-out infinite; }
@keyframes lv-pulse { 50% { box-shadow: 0 0 0 6px rgba(200,29,69,.25); } }
.lv-open { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.lv-open input, .lv-say input { width: 100%; padding: 12px 14px; border: var(--edge); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 16px; }
.lv-open .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.lv-open .btn .ico { width: 20px; height: 20px; }
.lv-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: #1a1423; color: #fff; margin-bottom: 10px; }
.lv-head b { font-size: 17px; line-height: 1.25; } .lv-head small { opacity: .75; }
.lv-live { color: #ff5a7a; font: 800 11px var(--font); letter-spacing: .08em; }
.lv-fly { position: fixed; bottom: 120px; z-index: 60; display: flex; flex-direction: column; align-items: center; font-size: 34px; pointer-events: none; animation: lv-fly 2.6s ease-out forwards; }
.lv-fly small { font: 700 10px var(--font); color: #fff; background: rgba(26,20,35,.7); border-radius: 8px; padding: 1px 6px; }
@keyframes lv-fly { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-340px) scale(1); opacity: 0; } }

/* faroter : les billets tombent sur tout l'écran */
.billet { position: fixed; top: -40px; z-index: 55; padding: 4px 8px; border-radius: 4px; background: linear-gradient(135deg, #8fd18b, #4f9a57); color: #173b1c; font: 800 11px var(--font); box-shadow: 0 2px 6px rgba(0,0,0,.2); pointer-events: none; animation: billet 2.4s ease-in forwards; }
@keyframes billet { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(540deg); opacity: .9; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chip { border: var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 13px var(--font); padding: 7px 12px; cursor: pointer; }
.chip.on { background: #1a1423; color: #fff; border-color: #1a1423; }

/* les coins d'en face, dans les raccourcis de la rue */
#pGo button.far::before { content: '↗ '; opacity: .7; }

/* le passage piéton : le compte à rebours, le bouton Traverser */
.cross-wait { position: fixed; left: 50%; top: calc(120px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 20; background: rgba(26,20,35,.88); color: #fff; font: 800 14px var(--font); padding: 9px 16px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
#pGo button.cross { background: #2fe07a; color: #10331d; }

/* pendant le trajet : les nouvelles arrivent une à la fois, juste au-dessus de la vie de la route (plus sur la carte du trajet) */
body.riding #toasts { top: auto; bottom: calc(100px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
body.riding #toasts .toast:not(:first-child) { display: none; }
.gps-vie span:last-child { text-wrap: pretty; }

/* ---------- la vue perso : le bouton pour changer de vue, et le joystick ---------- */
.vue-btn { position: fixed; z-index: 6; right: calc(10px + env(safe-area-inset-right)); top: calc(50% + 40px); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 8px 4px 6px; border: 0; border-radius: 18px; background: var(--glass); color: #fff; font: 600 11px/1.1 inherit; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.vue-btn .ico { width: 28px; height: 28px; }
.vue-btn.on { background: rgba(26, 20, 35, .82); outline: 2px solid #f6b400; }
.stick { position: fixed; z-index: 6; left: calc(18px + env(safe-area-inset-left)); bottom: 330px; width: 92px; height: 92px; border-radius: 50%; background: rgba(26, 20, 35, .26); border: 2px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; }
.stick i { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .12s; pointer-events: none; }
.stick.on i { transition: none; background: #f6b400; }
.stick:not(.on) { opacity: .8; }
.stick[hidden], .vue-btn[hidden] { display: none; }

/* ---------- dans le train : le tableau du voyage ---------- */
#place.train { width: min(460px, calc(100vw - 20px)); }
.place-train { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.place-train > * { min-width: 0; }   /* le tableau du train tient dans le panneau, même sur un petit téléphone */
#place.train .place-head { display: none; }
.tr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-route { font-size: 15px; font-weight: 800; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-class { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.tr-class.gold { background: var(--yellow); color: var(--ink); }
.tr-phase { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tr-phase.quai { background: rgba(246, 180, 0, .22); color: #ffd666; }
.tr-phase.route { background: rgba(30, 111, 217, .4); color: #dbe9ff; }
.tr-phase.arrive { background: #1fae6b; color: #fff; }
.tr-line { position: relative; height: 34px; margin: 0 18px; }
.tr-rail, .tr-done { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; }
.tr-rail { right: 0; background: rgba(255, 255, 255, .2); }
.tr-done { width: 0; background: var(--yellow); transition: width .5s linear; }
.tr-stop { position: absolute; top: 4px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; }
.tr-stop em { width: 14px; height: 14px; border-radius: 50%; background: #3a3247; border: 3px solid rgba(255, 255, 255, .45); }
.tr-stop.passed em { background: var(--yellow); border-color: #fff; }
.tr-stop small { font-size: 10px; line-height: 1.1; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.tr-stop.passed small { color: #fff; }
.tr-me { position: absolute; top: 1px; width: 20px; height: 20px; transform: translateX(-50%); border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(30, 111, 217, .35), 0 2px 6px rgba(0, 0, 0, .4); transition: left .5s linear; }
.tr-now { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row { display: flex; gap: 6px; align-items: stretch; }
.tr-row .tr-tabs { flex: 1; min-width: 0; }
.tr-seat { flex: none; padding: 0 12px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tr-seat[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.tr-seat:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* le bateau : la vue de loin, inviter, le compte des invités */
.bt-row { display: flex; gap: 6px; align-items: center; }
.bt-btn { min-height: 36px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.bt-btn[aria-pressed="true"] { background: #45b8e0; color: var(--ink); }
.bt-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bt-n { margin-left: auto; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.tr-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .1); overflow-x: auto; scrollbar-width: none; }
.tr-tabs::-webkit-scrollbar { display: none; }
.tr-tabs button { flex: 1 0 auto; min-height: 36px; padding: 0 12px; border-radius: 10px; background: none; color: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tr-tabs button.on { background: #fff; color: var(--ink); }
.tr-tabs button.locked::after { content: "réservé"; margin-left: 6px; font-size: 10px; font-weight: 600; opacity: .6; }
.tr-acts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; scroll-snap-type: x proximity; }
.tr-acts::-webkit-scrollbar { display: none; }
.tr-acts .quiet { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.tr-act { flex: none; width: 172px; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; scroll-snap-align: start; }
.tr-act .ic { width: 26px; height: 26px; display: grid; place-items: center; }
.tr-act .ic svg, .tr-act .ic img { width: 24px; height: 24px; }
.tr-act .tx { min-width: 0; display: grid; }
.tr-act b, .tr-act small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-act b { font-size: 12.5px; line-height: 1.3; }
.tr-act small { font-size: 11px; color: rgba(255, 255, 255, .65); line-height: 1.3; }
.tr-act small em { font-style: normal; font-weight: 800; color: var(--yellow); margin-right: 6px; }
.tr-act.off { opacity: .5; }
.tr-act:focus-visible, .tr-tabs button:focus-visible, .tr-out:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tr-out { min-height: 44px; border-radius: 14px; font-size: 14.5px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer; }
.tr-out.arrive { background: #1fae6b; box-shadow: 0 6px 18px rgba(31, 174, 107, .45); animation: trPulse 1.6s ease-in-out infinite; }
.tr-out.route { display: none; }
@keyframes trPulse { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .tr-out.arrive { animation: none; } .tr-done, .tr-me { transition: none; } }
@media (min-width: 1240px) and (min-height: 560px) { #place.train { width: 420px; } }
@media (orientation: landscape) and (max-height: 500px) {
  #place.train { width: min(400px, 52vw); }
  .tr-now { display: none; } .tr-line { height: 32px; } .tr-act { width: 150px; padding: 8px; } .tr-out { min-height: 40px; }
}
@media (orientation: portrait) and (max-width: 600px) {
  /* sur téléphone, le panneau du train laisse la colonne des besoins à gauche */
  #place.train { margin: 0; left: calc(66px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); width: auto; }
  .tr-line { margin: 0 14px; } .tr-stop small { font-size: 9.5px; }
  /* sur téléphone, le tableau tient en peu de place : on voit le wagon au-dessus */
  .place-train { gap: 6px; margin-bottom: 6px; }
  .tr-now { display: none; } .tr-line { height: 28px; } .tr-stop em { width: 11px; height: 11px; border-width: 2px; } .tr-me { width: 16px; height: 16px; top: 2px; }
  .tr-rail, .tr-done { top: 7px; }
  .tr-tabs { padding: 3px; border-radius: 12px; } .tr-tabs button { min-height: 32px; padding: 0 8px; font-size: 12px; }
  .tr-act { width: 138px; padding: 6px 8px; border-radius: 12px; } .tr-act b { font-size: 12px; }
  .tr-out { min-height: 40px; }
}
/* le code de secours : plein écran, à prendre en capture */
.secours { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; display: flex; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); }
.secours-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; margin: auto 0; }
.secours-tag { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent, #e8562a); text-transform: uppercase; letter-spacing: .06em; }
.secours h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.secours p, .secours li { color: var(--ink-2); line-height: 1.45; margin: 0; }
.secours ul { margin: 4px 0; padding-left: 18px; display: grid; gap: 6px; }
.secours label { display: grid; gap: 6px; font-weight: 600; }
.secours input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.secours .btn { width: 100%; }
.secours .err { color: var(--red, #c62828); font-weight: 600; margin: 0; min-height: 1em; }
.secours-card { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: #14111c; color: #fff; text-align: center; margin: 6px 0; }
.secours-card small { color: #b9b2c8; font-size: 12px; margin-top: 6px; }
.secours-card b { font-size: 20px; }
.secours-card code { font: 800 clamp(20px, 6.4vw, 28px)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ffc61a; letter-spacing: .04em; word-break: break-all; }

/* ---------- le billard : la table en plein écran, éclairée par la lampe du dessus ---------- */
.pool { position: fixed; inset: 0; z-index: 28; display: flex; flex-direction: column; color: #fff; font-family: var(--font);
  background: radial-gradient(ellipse 70% 55% at 50% 45%, #3a2a22 0%, #1a1210 60%, #0b0807 100%);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); user-select: none; -webkit-user-select: none; touch-action: none; }
.pool[hidden] { display: none; }
.pool-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 14px 4px; }
.pool-pl { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1.5px solid transparent; min-width: 0; }
.pool-pl.opp { align-items: flex-end; text-align: right; }
.pool-pl.turn { border-color: #f6b400; background: rgba(246,180,0,.12); }
.pool-pl b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pool-pl small { font-size: 12px; color: rgba(255,255,255,.65); }
.pool-grp { display: flex; gap: 2px; flex-wrap: wrap; }
.pool-mb { width: 15px; height: 15px; border-radius: 50%; background: var(--c); display: inline-grid; place-items: center; font: 800 8px/1 var(--font); color: #111; font-style: normal;
  box-shadow: inset -2px -2px 3px rgba(0,0,0,.35), inset 1px 1px 2px rgba(255,255,255,.4); position: relative; }
.pool-mb::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fbf8f0; z-index: 0; }
.pool-mb { z-index: 0; } .pool-mb { isolation: isolate; }
.pool-mb.st { background: linear-gradient(#f7f3e8 0 24%, var(--c) 24% 76%, #f7f3e8 76%); }
.pool-mb.off { opacity: .22; filter: grayscale(1); }
.pool-mb { text-indent: 0; } .pool-mb:not(:empty) { color: transparent; }
.pool-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.pool-rerack { border: 0; border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,.14); color: #fff; font: 700 13px var(--font); cursor: pointer; }
.pool-msg { margin: 2px 16px 0; min-height: 20px; text-align: center; font-size: 14px; font-weight: 600; color: #ffe7a8; }
.pool-stage { flex: 1; position: relative; min-height: 0; margin: 4px 8px; }
.pool-cv { position: absolute; inset: 0; touch-action: none; }
.pool-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, 86%); background: rgba(16,12,10,.92); border: 1.5px solid rgba(246,180,0,.5);
  border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.pool-end[hidden] { display: none; }
.pool-end b { font-size: 22px; font-weight: 800; color: #ffd45a; }
.pool-end small { color: rgba(255,255,255,.75); font-size: 13px; }
.pool-bot { padding: 4px 14px 12px; }
.pool-hint { margin: 0 0 8px; text-align: center; font-size: 13px; color: rgba(255,255,255,.8); min-height: 18px; }
.pool-ctl { display: flex; gap: 10px; align-items: center; }
.pool-fine { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; touch-action: none; }
.pool-fine:active { background: rgba(255,255,255,.25); }
.pool-pw { flex: 1; height: 48px; position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; touch-action: none;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.14)); border: 1.5px solid rgba(255,255,255,.18); }
.pool-pw i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #2bb673, #f6b400 60%, #e4572e); }
.pool-pw.hot i { box-shadow: 0 0 18px rgba(228,87,46,.8); }
.pool-pw span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--font); color: rgba(255,255,255,.85); pointer-events: none; }
.pool-card p { margin: 0 0 10px; }
body.pool-on #toasts { top: calc(120px + env(safe-area-inset-top)); }
.pool-top, .pool-bot, .pool-msg { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
/* les premiers pas : l'étoile appelle doucement le nouveau tant qu'il n'a rien fait, et chaque étape a son « Montre-moi » */
#goal.nudge { animation: nudge 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(255, 194, 26, .8); }
@keyframes nudge { 50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(255, 194, 26, .25); } }
.list.pas + .btn, .list.pas { margin-top: 12px; }
.list.pas .act .btn.small { margin-left: auto; }
/* le rush du garba */
.rush-top { display: flex; align-items: center; justify-content: space-between; }
.rush-score { background: var(--green); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.rush-time { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; margin: 8px 0 12px; }
.rush-time i { display: block; height: 100%; width: 100%; background: var(--green); transition: width .2s linear; }
.rush-time.low i { background: var(--orange); }
.rush-client { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--sand); }
.rush-face { font-size: 40px; line-height: 1; }
.rush-want { display: flex; flex-direction: column; gap: 4px; }
.rush-want > span { display: flex; flex-wrap: wrap; gap: 6px; }
.rush-want em { font-style: normal; font-size: 22px; display: inline-flex; flex-direction: column; align-items: center; background: #fff; border-radius: 10px; padding: 4px 8px; }
.rush-want em small { font-size: 10.5px; color: var(--mute); }
.rush-plate { min-height: 52px; margin: 10px 0 4px; border: 2px dashed var(--line); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 26px; }
.rush-plate small { font-size: 13px; color: var(--mute); }
.rush-flash { min-height: 1.4em; text-align: center; font-weight: 700; font-size: 14px; }
.rush-flash.good { color: var(--green); } .rush-flash.bad { color: var(--orange); }
.rush-ing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.rush-ing button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; background: var(--paper); border: var(--edge); font-size: 26px; }
.rush-ing button small { font-size: 11px; font-weight: 600; color: var(--ink); }
.rush-ing button.on { background: #ffe9a8; border-color: #f6b400; transform: scale(.96); }
.rush-go { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.rush-go .btn { margin: 0; min-height: 52px; }
.rush-end { text-align: center; margin: 8px 0; } .rush-end b { display: block; font-size: 54px; line-height: 1; color: var(--green); } .rush-end small { color: var(--mute); }
/* la pêche */
.peche-eau { position: relative; height: 150px; border-radius: var(--r); margin: 8px 0 10px; overflow: hidden; background: linear-gradient(#7cc4e8, #2f7fb5); }
.peche-bouchon { position: absolute; left: 50%; top: 55%; width: 22px; height: 30px; margin: -15px 0 0 -11px; border-radius: 50% 50% 45% 45%; background: linear-gradient(#e63946 50%, #fff 50%); box-shadow: 0 2px 0 rgba(0,0,0,.2); transition: top .15s; }
.peche-rond { position: absolute; left: 50%; top: 62%; width: 60px; height: 14px; margin-left: -30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); opacity: 0; }
.peche-eau[data-st="pret"] .peche-bouchon, .peche-eau[data-st="fini"] .peche-bouchon { display: none; }
.peche-eau[data-st="attente"] .peche-bouchon { animation: flotte 1.8s ease-in-out infinite; }
.peche-eau[data-st="mord"] .peche-bouchon { top: 66%; animation: mord .18s linear infinite; }
.peche-eau[data-st="mord"] .peche-rond { opacity: 1; animation: rond .5s ease-out infinite; }
@keyframes flotte { 50% { transform: translateY(4px) rotate(4deg); } }
@keyframes mord { 50% { transform: translate(3px, 6px) rotate(-12deg); } }
@keyframes rond { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.peche-dit { text-align: center; font-weight: 700; min-height: 2.8em; }
.peche-eau[data-st="mord"] + .peche-dit { color: var(--orange); font-size: 20px; }
.peche-prise { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 8px; }
.peche-prise:empty { display: none; }
.peche-em { font-size: 54px; line-height: 1.1; } .peche-prise small { color: var(--green); font-weight: 800; font-size: 16px; }
/* ---------- Babi Live : la salle plein écran, comme les Spaces ---------- */
.lv2 { position: fixed; inset: 0; z-index: 24; display: flex; flex-direction: column; color: #fff; font-family: var(--font);
  background: radial-gradient(120% 60% at 50% 0%, #3a2a78 0%, #1d1640 45%, #120e24 100%); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lv2[hidden] { display: none; }
body.lv-on #nav, body.lv-on #goal, body.lv-on .pill, body.lv-on #needs { visibility: hidden; }
.lv2-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.lv2-min { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lv2-live { display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px var(--font); letter-spacing: .08em; background: #ff3b5c; padding: 5px 9px; border-radius: 6px; }
.lv2-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lvBlink 1.2s infinite; }
@keyframes lvBlink { 50% { opacity: .25; } }
.lv2-count { font-size: 13px; opacity: .75; }
.lv2-quit { margin-left: auto; border: 0; border-radius: 999px; padding: 9px 16px; background: rgba(255,59,92,.16); color: #ff6b84; font: 800 14px var(--font); cursor: pointer; }
.lv2-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.lv2-title { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 8px 0 18px; letter-spacing: -.01em; }
.lv2-sound { display: block; width: 100%; margin: 0 0 16px; padding: 14px; border: 0; border-radius: 14px; background: #7c5cff; color: #fff; font: 800 15px var(--font); cursor: pointer; animation: pulse 1.6s infinite; }
.lv2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; margin-bottom: 22px; }
.lv2-grid.big { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
.lv2-h { font-size: 13px; font-weight: 700; opacity: .7; margin: 0 0 12px; text-transform: none; }
.lv2-empty { font-size: 13.5px; opacity: .6; text-align: center; margin: 10px 0; }
.lv2-p { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: #fff; font: 600 12.5px var(--font); padding: 0; cursor: pointer; min-width: 0; }
.lv2-p b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lv2-p small { font-size: 11px; color: #b9a8ff; font-weight: 700; }
.lv2-av { --l: 0; position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); font: 800 20px var(--font); margin-bottom: 2px; }
.lv2-p.big .lv2-av { width: 72px; height: 72px; font-size: 28px; }
.lv2-ring { position: absolute; inset: -5px; border-radius: 50%; border: 3px solid #a58bff; opacity: 0; transform: scale(1); transition: transform .12s, opacity .2s; }
.lv2-p.on .lv2-ring { opacity: 1; transform: scale(calc(1 + var(--l) * .16)); box-shadow: 0 0 calc(6px + var(--l) * 18px) rgba(165,139,255,.8); }
.lv2-badge { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #120e24; font-style: normal; font-size: 14px; }
.lv2-badge.mute { background: #ff3b5c; } .lv2-badge.mute svg { width: 13px; height: 13px; filter: brightness(10); }
.lv2-tick { min-height: 0; padding: 0 16px; font-size: 13px; opacity: 0; }
.lv2-tick.go { animation: lvTick 5s ease forwards; }
.lv2-tick p { margin: 0 0 6px; background: rgba(255,255,255,.1); display: inline-block; padding: 6px 10px; border-radius: 12px; max-width: 100%; }
@keyframes lvTick { 0% { opacity: 0; transform: translateY(8px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lv2-reacts { display: flex; justify-content: space-around; padding: 8px 12px; margin: 0 12px 8px; background: rgba(255,255,255,.08); border-radius: 18px; }
.lv2-reacts button { border: 0; background: none; font-size: 26px; padding: 4px; cursor: pointer; }
.lv2-reacts button:active { transform: scale(1.3); }
.lv2-panel { margin: 0 12px 8px; padding: 10px 12px; background: rgba(10,8,22,.75); border-radius: 18px; display: flex; flex-direction: column; max-height: 42vh; }
.lv2-panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lv2-panel-h button { border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; }
.lv2-chat { flex: 1; overflow-y: auto; font-size: 14px; min-height: 60px; }
.lv2-chat p, .lv2-tick p { margin: 4px 0; } .lv2-chat b, .lv2-tick b { color: #b9a8ff; margin-right: 4px; }
.lv2-chat:empty::before { content: 'Pas encore de commentaire. Lance la discussion !'; opacity: .55; }
.lv2-say { display: flex; gap: 8px; margin-top: 8px; }
.lv2-say input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font: 15px var(--font); }
.lv2-say input::placeholder { color: rgba(255,255,255,.55); }
.lv2-say button { width: 44px; border: 0; border-radius: 50%; background: #7c5cff; color: #fff; font-size: 17px; cursor: pointer; }
.lv2-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(10,8,22,.55); }
.lv2-me { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.lv2-mic { --l: 0; position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #7c5cff; color: #fff; cursor: pointer; }
.lv2-mic svg { width: 26px; height: 26px; filter: brightness(10); position: relative; }
.lv2-meter { position: absolute; inset: 0; border-radius: 50%; background: #2fe07a; transform: scale(calc(.6 + var(--l) * .6)); opacity: calc(var(--l) * 1.4); transition: transform .1s, opacity .1s; }
.lv2-mic.on { background: #18a957; box-shadow: 0 0 0 4px rgba(47,224,122,.25); }
.lv2-mic.off { background: #4a4366; } .lv2-mic.bad { background: #c2441f; }
.lv2-slash { position: absolute; width: 34px; height: 3px; background: #ff3b5c; border-radius: 2px; transform: rotate(-45deg); box-shadow: 0 0 0 2px #4a4366; }
.lv2-state { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.lv2-state.on { color: #4ff59a; } .lv2-state.off { color: #c9c2e0; } .lv2-state.bad { color: #ff8a5c; } .lv2-state.ready { color: #fff; }
.lv2-hand { flex: 1; border: 0; border-radius: 999px; padding: 14px 16px; background: #7c5cff; color: #fff; font: 800 15px var(--font); cursor: pointer; }
.lv2-hand.up { background: rgba(255,255,255,.14); }
.lv2-tools { display: flex; gap: 8px; }
.lv2-tool { position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; }
.lv2-tool.on { background: rgba(124,92,255,.45); }
.lv2-tool em { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff3b5c; font: 800 11px/18px var(--font); font-style: normal; }
.lv2-tool em[hidden] { display: none; }
@media (min-width: 700px) { .lv2 { left: 50%; right: auto; width: 480px; transform: translateX(-50%); box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); } }
.lv2-chev { display: inline-block; width: 11px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-3px) rotate(45deg); }
.lv2-tool svg { width: 22px; height: 22px; }

.lv2-tool.txt { width: auto; padding: 0 14px; border-radius: 999px; font: 800 13px var(--font); }

/* ---------- « À la une » : en haut à droite, une seule pastille (la plus importante), « +N » pour tout voir ---------- */
body.une-on #vote, body.une-on #grandP, body.une-on #grinbP, body.une-on #ndcP, body.une-on #concP, body.une-on #plageP, body.une-on #quizP, body.une-on #feteP, body.une-on #liveP, body.une-on #turn, body.une-on #news { display: none !important; }
#une { top: calc(54px + env(safe-area-inset-top)); right: 10px; left: auto; max-width: min(48vw, 360px); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; position: fixed; }
#une[hidden] { display: none; }
#une .une-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 4px 2px 0; }
#une .une-n { flex: none; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .24); }
#une .une-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
#une:not(:has(.une-n)) { padding-right: 12px; }
body.une-vis #goal { max-width: calc(52vw - 28px); }
/* les notifications passent sous les deux pastilles, sans rien couvrir */
@media (max-width: 899px), (max-height: 500px) { #toasts { top: calc(100px + env(safe-area-inset-top)); } }
@media (orientation: landscape) and (max-height: 500px) { #toasts { top: calc(10px + env(safe-area-inset-top)); } #une { right: calc(8px + env(safe-area-inset-right)); } }

/* le dodo : se lever quand on veut */
/* (2026-11-24) « Me réveiller » : un petit bouton à droite (il gênait le téléphone quand on dort) */
#busyWake { display: block; margin: 8px 0 0 auto; width: auto; min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
/* téléphone ouvert : la barre d'occupation se range en petit, en bas à gauche, sans couvrir l'écran du téléphone */
body:has(#phone:not([hidden])) #busy { top: calc(6px + env(safe-area-inset-top)); justify-content: flex-start; }
body:has(#phone:not([hidden])) .busy-box { max-width: 132px; padding: 5px 8px 6px; border-radius: 12px; }
body:has(#phone:not([hidden])) .busy-box p { font-size: 11.5px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:has(#phone:not([hidden])) #busyWake { margin-top: 6px; min-height: 30px; padding: 3px 10px; font-size: 12px; }
body:has(#phone:not([hidden])) #queue { display: none; }
#busyWake[hidden] { display: none; }

/* la course des bouées : le chrono en haut, le compte à rebours au milieu, les deux gros boutons pour tourner */
.jet-hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); }
.jet-hud button { pointer-events: auto; }
.jet-haut { display: flex; align-items: center; gap: 10px; }
.jet-chrono { background: var(--glass); color: #fff; border-radius: var(--r-sm); padding: 6px 14px; display: flex; flex-direction: column; line-height: 1.1; }
.jet-chrono small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.jet-temps { font-size: 26px; font-variant-numeric: tabular-nums; }
.jet-porte { background: #ffd23f; color: var(--ink); font-weight: 700; border-radius: 999px; padding: 6px 12px; }
.jet-stop { margin-left: auto; background: rgba(255, 255, 255, .9); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.jet-compte { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: 84px; font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.jet-compte.on { opacity: 1; }
.jet-aide { align-self: center; margin: 0 0 10px; max-width: 420px; text-align: center; background: var(--glass); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: var(--r-sm); }
.jet-volant { display: flex; justify-content: space-between; }
.jet-volant button { width: 92px; height: 92px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 34px; box-shadow: var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none; }
.jet-volant button:active { background: #ffd23f; }
.jet-fin { pointer-events: auto; align-self: center; width: min(360px, 100%); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.jet-fin small { color: var(--mute); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.jet-fin > b { display: block; font-size: 40px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.jet-fin p { margin: 4px 0; }
.jet-rec { color: var(--ink-2); font-size: 14px; }
.jet-go { display: flex; gap: 8px; margin-top: 12px; }
.jet-go .btn { flex: 1; }
@media (pointer: fine) { .jet-volant { display: none; } }
body.jetski #top, body.jetski #toasts, body.jetski #stick, body.jetski #vueBtn, body.jetski #needs { display: none !important; }

/* le karaoké : la scène, la file, les billets (main.js karaokeRoom) */
.lv2-live.k { background: #ff3fa4; }
.lv2-bar.k { justify-content: flex-end; }
.lv2-chat p.sys, .lv2-tick p.sys { color: #ffcf3f; font-weight: 600; }
.k-scene { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; margin: 0 0 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,63,164,.22), rgba(53,208,255,.14)); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.k-scene.vide { padding: 22px 16px; }
.k-song { margin: 0; font-size: 18px; font-weight: 800; color: #ffcf3f; overflow-wrap: anywhere; }
.k-info { margin: 0; font-size: 13.5px; opacity: .85; }
.k-file { margin: 0 0 16px; padding-left: 22px; font-size: 14px; line-height: 1.7; } .k-file li.moi { color: #ffcf3f; }
.k-star { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(255,207,63,.12); font-size: 13.5px; }
.k-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 0; background: rgba(10,8,22,.55); }
.k-bar .btn { width: 100%; }
.k-bar .lv2-me { width: 100%; }
.k-billets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.k-b { min-height: 44px; border: 0; border-radius: 12px; background: #2a9d4b; color: #fff; font: 800 13px var(--font); cursor: pointer; padding: 0 4px; }
.k-b.hou { background: #3a3d45; }
/* Babi en concert : la même scène, le vote en direct (main.js concertRoom) */
.lv2-live.k.c { background: linear-gradient(90deg, #c2255c, #6b2fb8); }
.k-scene.c { background: linear-gradient(160deg, rgba(194,37,92,.3), rgba(47,216,255,.16)); }
.k-billets.c { grid-template-columns: repeat(3, 1fr); }
.c-votes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.c-vote { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.c-vote.mine { border-color: #ffcf3f; background: rgba(255,207,63,.1); }
.c-vote.scene .c-nm b::after { content: ' · sur scène'; color: #ff6fc5; font-weight: 700; font-size: 12px; }
.c-rk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-weight: 800; font-size: 13px; }
.c-vote:first-child .c-rk { background: #ffcf3f; color: #1a1423; }
.c-nm { min-width: 0; display: flex; flex-direction: column; } .c-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c-nm small { opacity: .75; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-n { font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; display: flex; flex-direction: column; } .c-n small { font-weight: 600; font-size: 11.5px; color: #7be08f; }
.c-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #c2255c; color: #fff; font: 800 13px var(--font); cursor: pointer; }
.c-btn:disabled { background: rgba(255,255,255,.14); color: rgba(255,255,255,.8); cursor: default; }
.c-tag { font-style: normal; font-size: 12px; font-weight: 800; opacity: .8; padding: 0 6px; }
.k-file small.c-ici { color: #7be08f; } .k-file small.c-loin { opacity: .6; }
.c-billet { display: flex; align-items: center; gap: 8px; font-weight: 700; } .c-billet svg { width: 22px; height: 22px; }
.k-b:active { transform: scale(.96); }

/* un moment à deux : fondu au noir, puis le matin */
.nuit-douce { position: fixed; inset: 0; z-index: 90; background: #07080c; display: grid; place-items: center; opacity: 0; transition: opacity 1.1s ease, background 1.4s ease; pointer-events: none; }
.nuit-douce.on { opacity: 1; }
.nuit-douce p { color: #f4ead8; font: 600 1.25rem 'DM Sans', system-ui, sans-serif; letter-spacing: .02em; opacity: 0; transition: opacity 1s ease .9s; }
.nuit-douce.on p { opacity: 1; }
.nuit-douce.jour { background: #ffe3b0; opacity: 0; transition: opacity 1.4s ease .2s, background .6s ease; }

/* à la maison : le bouton Famille, au-dessus de Meubler */
#famBtn.fam { right: auto; left: 10px; }

/* les réactions 👍 / 👎 sous une annonce */
.nw-vote { margin-top: 12px; }
.nw-pouces { display: flex; gap: 10px; }
.nw-pouce { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--r); border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 700 17px var(--font); }
.nw-pouce .nw-pic { font-size: 24px; line-height: 1; }
.nw-pouce.on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--paper)); }
.nw-par { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--mute); }

/* à l'ouverture, le temps que les bâtiments arrivent */
.prepa { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--sand); transition: opacity .35s ease; }
.prepa.fin { opacity: 0; pointer-events: none; }
.prepa-in { display: grid; gap: 14px; justify-items: center; font: 700 18px var(--font); color: var(--ink); }
.prepa-in i { width: 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.prepa-in i::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: 3px; background: var(--orange); animation: prepa 1.1s ease-in-out infinite; }
@keyframes prepa { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* la Campagne : écrire un long programme, et le lire replié */
.long-ta { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 1.4; border-radius: 14px; border: 1.5px solid rgba(0, 0, 0, .14); padding: 12px; resize: vertical; margin-top: 6px; max-height: 50vh; }
.long-ta:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.long-left { display: block; margin-top: 4px; text-align: right; font-size: 12px; font-weight: 600; color: var(--mute); }
.prog { display: block; white-space: pre-line; }
.prog.plie { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.prog-more { display: inline-block; margin-top: 4px; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 800; color: var(--blue); cursor: pointer; }

/* ---------- le fil de la rue : petites lignes au-dessus du panneau de la rue, sans son, elles s'effacent toutes seules ---------- */
#rue { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.rue-l { pointer-events: auto; display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 8px; border-radius: 14px; background: rgba(18, 14, 26, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: inherit; font-size: 13px; line-height: 1.3; text-align: left; box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  border-left: 3px solid transparent; opacity: 0; transform: translateX(-14px); transition: opacity .35s ease, transform .35s ease; cursor: pointer; }
.rue-l.on { opacity: 1; transform: none; }
.rue-l.out { opacity: 0; transform: translateY(-6px); }
.rue-l:not(:last-child) { opacity: .62; }
.rue-l.ici { border-left-color: #4ea1ff; }
.rue-l .rue-i { font-size: 16px; flex: none; }
.rue-l .rue-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rue-l .rue-r { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
@media (max-width: 899px) and (min-height: 501px) { #rue { left: 52px; right: 70px; } }   /* ni sur les besoins, ni sous « Vue perso » */
.rue-l:not(:last-child) .rue-t { -webkit-line-clamp: 1; }   /* la plus ancienne, pâlie, sur une ligne */
@media (prefers-reduced-motion: reduce) { .rue-l { transition: opacity .2s; transform: none; } }
body.riding #rue, body.jetski #rue { display: none; }
.rue-set { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.rue-set > span { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.rue-set .seg { grid-template-columns: 1fr 1fr 1fr; margin: 0; flex: 1; }
.notif .rue-set { margin: 10px 0 0; }
.rue-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.rue-row { display: flex; gap: 10px; padding: 10px 6px; border-radius: 12px; border-left: 3px solid transparent; }
.rue-row + .rue-row { border-top: 1px solid rgba(0, 0, 0, .06); }
.rue-row.ici { border-left-color: var(--blue); background: rgba(30, 111, 217, .06); }
.rue-row .rue-i { font-size: 20px; line-height: 1.2; }
.rue-row .rue-b { flex: 1; min-width: 0; }
.rue-row p { margin: 0; font-size: 14.5px; line-height: 1.35; }
.rue-row small { color: var(--mute); font-size: 12px; }
.rue-acts { display: flex; gap: 6px; margin-top: 6px; }
.rue-e { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 14px; }
.rue-e b { font-size: 12px; }
.rue-e.mine { background: rgba(30, 111, 217, .14); box-shadow: inset 0 0 0 1.5px var(--blue); }

/* le bouton de la chaîne WhatsApp (onglet Moi, annonce) */
a.btn { text-decoration: none; }
.btn.wa, .nw-go[href*="whatsapp.com"] { background: #1fa855; color: #fff; border-color: #1fa855; }

/* Soutenir Babi (onglet Moi → Plus) : le numéro Wave, bien lisible, à copier */
.soutien { margin: 4px 0 14px; padding: 12px 14px 14px; border-radius: 16px; background: rgba(29, 200, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(29, 200, 255, .45); }
.soutien h3 { margin-top: 0; }
.soutien-num { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 10px; }
.soutien-num span { font-size: 13px; font-weight: 700; color: #0b8fc0; text-transform: uppercase; letter-spacing: .04em; }
.soutien-num b { font-size: 24px; letter-spacing: .02em; }
.btn.soutien-btn { background: #1dc8ff; border-color: #1dc8ff; color: #0b1b2a; }
/* « On va où ? » au volant : la recherche, les lignes avec ⏩ (faire le trajet sans conduire) */
.dest-q { width: 100%; margin: 4px 0 10px; padding: 12px 14px; border: var(--edge); border-radius: 999px; font-size: 16px; background: var(--paper); }
.dest-h { margin: 12px 2px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.dest-row { display: flex; gap: 8px; align-items: stretch; }
.dest-row .opt { flex: 1; min-width: 0; }
.dest-skip { flex: none; width: 52px; border: var(--edge); border-radius: var(--r); background: var(--paper); font-size: 20px; }
.dh-arrive button.ghost { background: rgba(16,20,30,.82); }

/* le Tribunal : défendre l’accusé, représenter le prêteur */
.cr-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
/* les commandes des ingénieurs */
.cr-cmd .btn[disabled] { opacity: .45; }
.cr-client { margin: 12px 0 4px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .86); }

/* le téléphone rangé par groupes */
.ph-grp { margin: 14px 0 4px; }
.ph-grp > small { display: block; margin: 0 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
/* les appels : celui que j'ai pris ressort */
.cr-cmd.mine { box-shadow: inset 0 0 0 2px #1dc8ff; }
.cj-o.pris { background: #1556b0; color: #fff; }

/* les besoins se touchent : ce qu'ils mesurent et le bouton qui règle ça */
button.need { border: 0; padding: 0; font: inherit; cursor: pointer; }
.need-bar { height: 10px; border-radius: 6px; background: rgba(0, 0, 0, .08); overflow: hidden; margin: 6px 0 10px; }
.need-bar i { display: block; height: 100%; background: #19b46b; border-radius: 6px; }
/* « Quoi de neuf » : les autres nouveautés repliées */
.nw-plus { margin: 8px 0; border-radius: 14px; background: var(--paper, #f5f1ea); padding: 10px 12px; }
.nw-plus summary { font-weight: 700; cursor: pointer; }
/* (2026-11-22) « Pendant ton absence » : toutes les nouveautés en court */
.nw-digest .nwd-card { background: rgba(26, 20, 35, .045); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.nw-digest .nwd-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink, #1a1423); opacity: 1; }
.nw-digest .nwd-tx { margin: 0; font-size: 14px; line-height: 1.4; }
.nwd-items { list-style: none; margin: 0; padding: 0; }
.nwd-items li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.nwd-items li:first-child { border-top: 0; }
.nwd-items small { opacity: .8; }
.nw-digest .nw-plus { background: transparent; padding: 4px 0 0; margin: 4px 0 0; }
.nw-digest .nw-plus summary { font-weight: 600; font-size: 13px; opacity: .75; }
/* la barre du haut, sur téléphone : l'heure et l'argent ; le nombre en ligne est dans le classement */
/* sur téléphone : le nombre en ligne reste, en court (« ● 1 234 »), et les pastilles se serrent un peu */
#hOnline small { font-size: inherit; font-weight: inherit; }
@media (max-width: 520px) { #hOnline small { display: none; } #top { gap: 4px; } #top > * { padding: 8px 9px; } #hMoney { padding: 8px 11px; } }

/* les grands projets dans l'appli Mairie : le chantier en cours, son avancement, le bouton pour aller travailler */
.gp-chantier { background: var(--sand); border-radius: var(--r); padding: 12px; margin: 6px 0 10px; border: var(--edge); }
.gp-top { display: flex; align-items: center; gap: 10px; }
.gp-top .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-top .tx small { color: var(--ink-2); }
.gp-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; font-size: 22px; flex: none; }
.gp-pc { font-size: 20px; font-weight: 800; color: var(--ink); }
.gp-chantier .bar { display: block; height: 8px; border-radius: 4px; background: rgba(26, 20, 35, .1); overflow: hidden; margin: 10px 0 2px; }
.gp-chantier .bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.gp-chantier .btn { width: 100%; margin-top: 4px; }

/* ---------- les vocaux ---------- */
/* dans la discussion : le micro quand rien n'est écrit, ➤ dès qu'on écrit (comme sur WhatsApp) */
.th-send .go.send { display: none; }
.th-send.ecrit .go.send { display: grid; } .th-send.ecrit .go.mic { display: none; }
.th-send .go.mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .15s, background .15s; }
.th-send .go.mic .ico { width: 24px; height: 24px; }
.th-send .go.mic.rec { transform: scale(1.15); transform-origin: 70% 50%; background: #d93025; }
.th-send .go.mic.rec.loin { background: #6b6475; transform: scale(1.1); }
/* l'enregistrement en cours prend la place du champ */
.th-rec { display: none; flex: 1; min-width: 0; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 21px; background: #fdecea; color: #a1231a; }
.th-rec b { font: 800 16px var(--font); font-variant-numeric: tabular-nums; }
.th-rec small { margin-left: auto; font: 700 12.5px var(--font); color: #8a5a55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-rec.loin { background: #ece9f0; color: #4a4453; } .th-rec.loin small { color: #4a4453; }
.th-send.enreg .th-rec { display: flex; }
.th-send.enreg input, .th-send.enreg .emo, .th-send.enreg .plus { display: none; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #d93025; flex: none; animation: recPouls 1s ease-in-out infinite; }
@keyframes recPouls { 50% { opacity: .25; } }

/* la bulle d'un vocal : ▶, l'onde qui se remplit, la durée */
.vc { display: inline-flex; align-items: center; gap: 9px; min-width: 190px; max-width: 100%; padding: 2px 0; }
.vc-play { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--orange, #e4572e); color: #fff; font: 800 13px var(--font); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.vc.joue .vc-play { background: #1a1423; }
.vc-onde { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; min-width: 100px; }
.vc-onde i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(26, 20, 35, .25); transition: background .12s; }
.vc-onde i.lu { background: #1a1423; }
.vc-t { flex: none; font: 700 12px var(--font); font-variant-numeric: tabular-nums; color: rgba(26, 20, 35, .65); min-width: 30px; text-align: right; }

/* « Parler » dans la maison : un gros bouton rond au milieu, en bas */
.parler { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(330px, calc(100vw - 32px)); }
.parler[hidden] { display: none; }
/* Le dock de la maison : une seule barre au-dessus du menu — Famille · Causer · (le micro « Parler », qui reste au milieu) · Meubler · Sortir.
   Avant, ces boutons flottaient chacun dans son coin et se marchaient dessus avec le joystick. */
.house-dock { position: fixed; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: calc(92px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 20px)); height: 72px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px; border-radius: 24px; background: rgba(26, 20, 35, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.house-dock[hidden] { display: none; }
/* « #game > * » met tout au même étage (5) : le micro passe au-dessus du dock, sinon le verre du dock le floute */
#game > #parler { z-index: 6; }
.house-dock .dk { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; min-width: 0; padding: 0 2px; border: 0; border-radius: 16px; background: none;
  color: #fff; font: 700 11.5px/1.1 var(--font); text-align: center; cursor: pointer; }
.house-dock .dk[hidden] { display: none; }
.house-dock .dk:active { background: rgba(255, 255, 255, .12); }
.house-dock .dk > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-dock .dk .ico, .house-dock .dk .dk-i { width: 30px; height: 30px; padding: 4px; border-radius: 11px; background: rgba(255, 255, 255, .94); box-sizing: border-box; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.house-dock #houseTalk .dk-i { background: var(--orange); }
.house-dock #famBtn { grid-column: 1; } .house-dock #houseTalk { grid-column: 2; } .house-dock .dk-mic { grid-column: 3; } .house-dock #buyBtn { grid-column: 4; } .house-dock #dockSortir { grid-column: 5; }
.house-dock em { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b4e; color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.house-dock em[hidden] { display: none; } .house-dock em.dot { min-width: 11px; width: 11px; height: 11px; padding: 0; }
/* au-dessus du dock, en rangées : le joystick à gauche (placeStick) ; à côté de lui l'interrupteur (« 💡 Salon · éteindre »), les toilettes à droite ;
   une rangée plus haut, les gestes (s'asseoir, danser…) ; plus haut encore, la piscine */
body:has(#houseDock:not([hidden])) .mai-chip { bottom: calc(174px + env(safe-area-inset-bottom)); }
body.stick-on:has(#houseDock:not([hidden])) .mai-chip { left: 118px; }
body:has(#houseDock:not([hidden])) .mai-chip.wc { left: auto; right: 12px; bottom: calc(174px + env(safe-area-inset-bottom)); }
body:has(#houseDock:not([hidden])) .mai-chip.piscine { left: auto; right: 12px; bottom: calc(272px + env(safe-area-inset-bottom)); }
body:has(#houseDock:not([hidden])) .mai-chip.piscine2 { bottom: calc(320px + env(safe-area-inset-bottom)); }
body:has(#houseDock:not([hidden])) .house-bar { bottom: calc(222px + env(safe-area-inset-bottom)); }
body.stick-on:has(#houseDock:not([hidden])) .house-bar { left: 118px; }
.parler > * { pointer-events: auto; }
.parler-btn { width: 66px; height: 66px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .15s, background .15s, box-shadow .15s; }
.parler-btn .pb-mic .ico { width: 26px; height: 26px; }
.parler-btn b { font: 800 11px var(--font); letter-spacing: .01em; }
.parler-btn.rec { transform: scale(1.12); transform-origin: 50% 80%; background: #d93025; color: #fff; box-shadow: 0 0 0 8px rgba(217, 48, 37, .22), 0 0 0 18px rgba(217, 48, 37, .1), var(--shadow); animation: parlerOnde 1.2s ease-out infinite; }
.parler-btn.rec.loin { background: #6b6475; animation: none; box-shadow: var(--shadow); }
@keyframes parlerOnde { 50% { box-shadow: 0 0 0 12px rgba(217, 48, 37, .18), 0 0 0 26px rgba(217, 48, 37, .06), var(--shadow); } }
.parler-info { margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(26, 20, 35, .88); color: #fff; font: 800 13px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.parler-info.loin { background: #6b6475; }
.parler-info[hidden], .parler-dernier[hidden] { display: none; }
.parler-dernier { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.parler-dernier .pd-who { flex: none; font: 800 13px var(--font); max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parler-dernier .vc { flex: 1; min-width: 0; }
/* quand on parle, la barre de la maison (s'asseoir, danser…) monte un peu pour laisser la place */
body:has(.parler:not([hidden])):not(:has(#houseDock:not([hidden]))) .house-bar { bottom: calc(232px + env(safe-area-inset-bottom)); }
/* pendant qu'on parle ou qu'un vocal passe, le petit conseil « Touche un meuble · Sortir » s'efface pour ne pas chevaucher */
body.vocal-on #hint { visibility: hidden; }

/* la salle des fêtes : réserver (l'occasion, le jour, l'heure) */
.fete-occ { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.fete-occ .opt { margin: 0; padding: 11px 12px; }
.fete-occ .opt.on { border-color: var(--ink); background: var(--sand); box-shadow: inset 0 0 0 1.5px var(--ink); }
.fete-resa select { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.fete-resa label[hidden] { display: none; }
/* ---------- La Saison : la carte « Ma saison », les ligues, le Classement en onglets ---------- */
.sa-card { --lg: #8a8f98; border-radius: var(--r-sm); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--lg) 16%, #fff), #fff 70%); border: 1.5px solid color-mix(in srgb, var(--lg) 35%, transparent); }
.sa-h { display: grid; gap: 2px; } .sa-h small { font-size: 12px; color: var(--ink-2); } .sa-h b { font-size: 19px; color: color-mix(in srgb, var(--lg) 70%, #1a1423); } .sa-h .ptag { margin: 4px 0 0; justify-self: start; background: #fff4d1; color: #8a5a00; }
.sa-rang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sa-rang div { background: #fff; border-radius: 10px; padding: 8px; text-align: center; } .sa-rang b { display: block; font-size: 16px; } .sa-rang small { font-size: 11px; color: var(--mute); }
.sa-etat { margin: 0; font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: #fff; } .sa-etat.up { color: #00804d; background: #e3f6ec; } .sa-etat.down { color: #b3202f; background: #fde8e9; }
.sa-sub { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.sa-doms { display: grid; gap: 6px; }
.sa-dom { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto 6px; column-gap: 8px; row-gap: 4px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 10px; }
.sa-dom .ic { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sand); } .sa-dom .ic svg { width: 16px; height: 16px; }
.sa-dom .tx { min-width: 0; } .sa-dom .tx b { font-size: 13px; } .sa-dom .tx em { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--lg); color: #fff; }
.sa-dom .tx small { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-dom .n { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sa-dom .bar { grid-column: 2 / 4; display: block; height: 6px; border-radius: 3px; background: rgba(26, 20, 35, .08); overflow: hidden; } .sa-dom .bar i { display: block; height: 100%; border-radius: 3px; background: var(--lg); }
.sa-dom.plein .bar i { background: #00a05a; } .sa-dom.plein .n { color: #00804d; } .sa-dom.theme { box-shadow: inset 0 0 0 1.5px var(--lg); }
.sa-card .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--lg) 15%, #fff); color: color-mix(in srgb, var(--lg) 70%, #1a1423); }
.lg-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lg); }
.top-tabs { overflow-x: auto; scrollbar-width: none; border-radius: 14px; } .top-tabs::-webkit-scrollbar { display: none; } .top-tabs button { flex: 0 0 auto; padding: 9px 12px; }
.lg-ladder { display: grid; gap: 4px; margin-bottom: 6px; }
.lg-step { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--sand); }
.lg-step i { width: 10px; height: 10px; border-radius: 50%; background: var(--lg); } .lg-step b { font-size: 13.5px; } .lg-step small { font-size: 11.5px; color: var(--mute); }
.lg-step.on { background: color-mix(in srgb, var(--lg) 18%, #fff); box-shadow: inset 0 0 0 1.5px var(--lg); } .lg-step.on small { color: var(--ink); font-weight: 700; }
.list .row.me { background: #fff8e0; border-radius: 10px; } .list .row.up .rk { color: #00804d; } .list .row.down .rk { color: #b3202f; }
.list .row.up small { color: #00804d; } .list .row.down small { color: #b3202f; }
.mur { display: grid; gap: 2px; text-align: center; padding: 18px 14px; border-radius: var(--r-sm); background: linear-gradient(160deg, #2a2233, #1a1423); color: #fff; }
.mur small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #d4a017; } .mur b { font-size: 20px; } .mur span { font-size: 12.5px; opacity: .8; }
/* sortir avec ses enfants : la case cochée */
.opt.sortie-k.on { border-color: #16a34a; background: #ecfdf3; }

/* le garage de la maison (2026-11-07) : la vitrine, d'une voiture à l'autre */
.gar-vue-box { position: fixed; z-index: 8; left: 0; right: 0; margin: 0 auto; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 20px));
  padding: 14px 14px 12px; border-radius: var(--r-lg); background: var(--glass); color: #fff; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gar-vue-box[hidden] { display: none; }
.gar-vue-box .gv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gar-vue-box .gv-top b { font-size: 18px; font-weight: 700; }
.gar-vue-box .gv-top small { color: rgba(255, 255, 255, .72); font-size: 12px; text-align: right; }
.gar-vue-box .gv-row { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; }
.gar-vue-box .gv-nav { height: 48px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .14); color: #fff; font: 700 26px/1 var(--font); }
.gar-vue-box .gv-nav:disabled { opacity: .3; }
.gar-vue-box .gv-pick { height: 48px; border: 0; border-radius: var(--r); background: var(--yellow); color: var(--ink); font: 700 15px var(--font); }
.gar-vue-box .gv-on { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--r); background: rgba(15, 139, 141, .35); font-weight: 700; }
.gar-vue-box .gv-back { display: block; width: 100%; margin-top: 10px; height: 42px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px var(--font); }
body.gar-vue #houseDock, body.gar-vue #parler, body.gar-vue #nav, body.gar-vue #needs, body.gar-vue #stick, body.gar-vue #houseBar, body.gar-vue .mai-chip { display: none !important; }

.mai-chip.gar { left: auto; right: 12px; background: #ffffff; color: #1a1423; }
.mai-chip.gar[hidden] { display: none; }
/* « Cuisiner » chez soi : à droite, au-dessus du garage */
.mai-chip.cui { left: auto; right: 12px; bottom: calc(198px + env(safe-area-inset-bottom)); background: #ffffff; color: #1a1423; }
.mai-chip.cui[hidden] { display: none; }
/* (2026-11-13) dans la maison, « Cuisiner » cachait « Mon garage » (et les toilettes) : même place. Les boutons de droite s'empilent, un étage chacun */
body:has(#houseDock:not([hidden])) .mai-chip.droite { left: auto; right: 12px; bottom: calc(174px + var(--k, 0) * 48px + env(safe-area-inset-bottom)); }
/* le Guide de Babi : un sujet par carte, qui s'ouvre */
.guide-ch { border: var(--edge); border-radius: var(--r); background: var(--paper); margin-bottom: 8px; padding: 0 14px; }
.guide-ch > summary { display: flex; align-items: center; gap: 10px; padding: 13px 0; cursor: pointer; list-style: none; font-weight: 600; }
.guide-ch > summary::-webkit-details-marker { display: none; }
.guide-ch > summary::after { content: '›'; margin-left: auto; font-size: 20px; opacity: .5; transition: transform .2s; }
.guide-ch[open] > summary::after { transform: rotate(90deg); }
.guide-ch .guide-ic { font-size: 22px; width: 28px; text-align: center; }
.guide-ch .note { margin: 0 0 10px; }
.guide-ch .guide-go { flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }

/* la tenue de l'enfant */
.tenues { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.tenue { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 2px solid #e4ddd0; background: #fff; color: #1a1423; font: inherit; font-size: 14px; }
.tenue.on { border-color: #1e6fd9; background: #eaf2fd; }
.tenue i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #0002; }
.tenues.defile { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tenues.defile .tenue { flex: none; }

/* ---------- le dîner aux chandelles vécu à deux (les Moments, public/js/moment.js) ---------- */
.dn-panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 8; width: min(440px, calc(100vw - 16px));
  max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; background: rgba(16, 22, 42, .93); color: #fff8ec; border-radius: var(--r-lg);
  box-shadow: 0 14px 40px rgba(8, 10, 24, .45), inset 0 0 0 1px rgba(246, 180, 0, .25); padding: 10px 12px 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dn-panel.ferme { padding-bottom: 6px; }
.dn-head { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 2px 2px 6px; }
.dn-titre { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-temps { font: 700 13px/1 var(--font); color: #f6c453; font-variant-numeric: tabular-nums; justify-self: start; }
.dn-coeur { position: relative; width: 92px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dn-coeur i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c2255c, #ff6b8b); border-radius: 10px; transition: width .6s; }
.dn-coeur em { position: relative; display: block; text-align: center; font: 700 11px/20px var(--font); font-style: normal; }
.dn-chev { opacity: .7; }
.dn-voix { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.dn-mic { all: unset; cursor: pointer; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 14px; white-space: nowrap; }
.dn-mic.on { background: #2a9d4b; box-shadow: 0 0 0 3px rgba(42, 157, 75, .35); }
.dn-mic.plein { background: #e4572e; user-select: none; -webkit-user-select: none; touch-action: none; }
.dn-voix small { font-size: 12px; opacity: .75; line-height: 1.25; }
.dn-lui.parle { opacity: 1; color: #7be39a; font-weight: 700; }
.dn-box { background: rgba(246, 180, 0, .14); border: 1px solid rgba(246, 180, 0, .4); border-radius: var(--r); padding: 10px 12px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.dn-box b { font-size: 15px; line-height: 1.3; }
.dn-box small { font-size: 12px; opacity: .8; }
.dn-box.slow { background: rgba(194, 37, 92, .22); border-color: rgba(255, 107, 139, .5); }
.dn-box .btn { margin: 0; padding: 9px 12px; font-size: 14px; }
.dn-oui { display: flex; gap: 8px; flex-wrap: wrap; } .dn-oui .btn { flex: 1 1 40%; }
.dn-cartes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dn-carte { all: unset; cursor: pointer; flex: 0 0 96px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 1px; padding: 8px 9px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.dn-carte:active { transform: scale(.97); }
.dn-carte .dn-ic { font-size: 20px; line-height: 1; margin-bottom: 2px; min-height: 20px; }
.dn-carte b { font-size: 13.5px; line-height: 1.2; } .dn-carte small { font-size: 11.5px; opacity: .72; line-height: 1.25; }
.dn-carte.chaud { background: rgba(246, 180, 0, .2); border-color: rgba(246, 180, 0, .55); }
.dn-carte.or { background: rgba(201, 151, 42, .28); border-color: #c9972a; }
.dn-carte.off { opacity: .55; }
.dn-pied { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.dn-lien { all: unset; cursor: pointer; font-size: 12.5px; opacity: .75; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .dn-panel { left: auto; right: 16px; transform: none; bottom: 24px; } }
/* la patinoire, le ciné, la chambre, l'hélico, le bateau (vague 4, partie 2) */
.dn-film { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); }
.dn-film b { font-size: 14.5px; } .dn-film small { font-size: 12px; opacity: .78; line-height: 1.3; }
.dn-reacs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.dn-reac { all: unset; cursor: pointer; font-size: 24px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.dn-reac:active { transform: scale(.9); } .dn-reac.chaud { background: rgba(246, 180, 0, .35); box-shadow: 0 0 0 2px #f6c453; }
.dn-reacs small { flex: 1 1 100%; font-size: 12px; opacity: .8; }
.dn-qui { font-size: 12.5px; opacity: .8; white-space: nowrap; }
.dn-astuce { display: block; font-size: 12px; opacity: .78; margin: 0 0 4px; }
.dn-panel[data-kind="patin"] { box-shadow: 0 14px 40px rgba(8, 10, 24, .45), inset 0 0 0 1px rgba(91, 143, 190, .55); }
.dn-panel[data-kind="cine"] { box-shadow: 0 14px 40px rgba(8, 10, 24, .45), inset 0 0 0 1px rgba(200, 29, 69, .45); }
/* les vrais échanges dans la rue (public/js/echange.js) : la proposition, l'attente, la causerie — en haut, sous la barre */
.ech-panel { position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); z-index: 9; width: min(420px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ech-box { pointer-events: auto; background: rgba(16, 22, 42, .94); color: #fff8ec; border-radius: var(--r-lg); padding: 10px 12px; box-shadow: 0 12px 32px rgba(8, 10, 24, .42), inset 0 0 0 1px rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: 7px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ech-in .25s ease-out; }
.ech-box.ask { box-shadow: 0 12px 32px rgba(8, 10, 24, .42), inset 0 0 0 1.5px rgba(246, 180, 0, .6); }
.ech-box.cause { box-shadow: 0 12px 32px rgba(8, 10, 24, .42), inset 0 0 0 1px rgba(255, 107, 139, .45); }
.ech-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .ech-l b { font-size: 15px; line-height: 1.25; }
.ech-t { font: 700 12.5px/1 var(--font); color: #f6c453; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ech-txt { margin: 0; font-size: 15px; line-height: 1.4; background: rgba(255, 255, 255, .08); border-radius: var(--r-sm); padding: 8px 10px; }
.ech-choix { display: flex; gap: 6px; flex-wrap: wrap; } .ech-choix .btn { flex: 1 1 30%; margin: 0; padding: 9px 10px; font-size: 14px; }
.ech-choix.col { flex-direction: column; } .ech-choix.col .btn { text-align: left; }
.ech-sujet { display: flex; flex-direction: column; gap: 6px; } .ech-sujet small { font-size: 12px; opacity: .8; }
.ech-box .dn-coeur { width: 100%; }
.ech-lien { all: unset; cursor: pointer; align-self: flex-start; font-size: 12.5px; opacity: .75; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }
.ech-note { pointer-events: auto; font-size: 12px; opacity: .8; text-align: center; }
@keyframes ech-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* le petit jeu des figures sur la glace : le curseur qui file, la zone dorée */
.fig-jeu { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.fig-piste { position: relative; height: 44px; border-radius: 22px; background: linear-gradient(90deg, #1e3a6e, #5b8fbe 45%, #5b8fbe 55%, #1e3a6e); overflow: hidden; touch-action: manipulation; }
.fig-or { position: absolute; top: 0; bottom: 0; left: 42%; width: 16%; background: rgba(246, 196, 83, .55); box-shadow: inset 0 0 0 2px #f6c453; }
.fig-cur { position: absolute; top: 4px; bottom: 4px; width: 8px; margin-left: -4px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px #bfe6ff; }
.fig-pts { display: flex; justify-content: center; gap: 10px; font-size: 22px; min-height: 28px; }
.fig-tap { font-size: 17px; padding: 14px; }

/* ---------- la salle de sport vécue (vague 6, partie 1) : le panneau de la série (seance.js) ---------- */
.sea { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 8; width: min(440px, calc(100vw - 16px));
  background: rgba(16, 22, 42, .93); color: #fff8ec; border-radius: var(--r-lg); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 14px 40px rgba(8, 10, 24, .45), inset 0 0 0 1px rgba(15, 139, 141, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 760px) { .sea { left: auto; right: 16px; transform: none; bottom: 24px; } }
.sea-head { display: flex; align-items: center; gap: 8px; }
.sea-head b { font-size: 16px; }
.sea-serie { margin-left: auto; font-size: 13px; font-weight: 700; color: #7fe0d6; }
.sea-x { background: none; border: 0; color: #fff8ec; opacity: .7; font-size: 18px; padding: 2px 6px; cursor: pointer; }
.sea-aide { margin: 0; font-size: 13px; opacity: .8; }
.sea-piste { position: relative; height: 40px; border-radius: 20px; background: linear-gradient(90deg, #3b1b2a, #23324d 35%, #23324d 65%, #3b1b2a); overflow: hidden; touch-action: manipulation; cursor: pointer; }
.sea-vert { position: absolute; top: 0; bottom: 0; background: rgba(47, 191, 113, .5); box-shadow: inset 0 0 0 2px #2fbf71; transition: left .25s, width .25s; }
.sea-cur { position: absolute; top: 4px; bottom: 4px; width: 8px; margin-left: -4px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px #bfffe6; }
.sea-reps { display: flex; justify-content: center; gap: 6px; }
.sea-reps i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .2s, transform .2s; }
.sea-reps i.ok { background: #2fbf71; transform: scale(1.1); }
.sea-reps i.top { background: #f6c453; transform: scale(1.25); box-shadow: 0 0 8px #f6c453; }
.sea-reps i.rate { background: #c81d45; }
.sea-tap { font-size: 18px; padding: 14px; }
.sea-bilan { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.sea-bilan b { font-size: 20px; }
.sea-bilan span { font-size: 13px; opacity: .85; }
.sea-suite { display: flex; gap: 8px; }
.sea-suite .btn { flex: 1; }

/* ---------- le petit match du maracana (vague 6, partie 1) : maracana.js ---------- */
/* le score en haut, les gestes en bas à droite sous le pouce, le joystick à gauche ; le panneau de la rue se range pendant le match */
.mat { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
.mat > * { pointer-events: auto; }
.mat-haut { position: absolute; top: calc(110px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 16px));
  background: rgba(16, 22, 42, .9); color: #fff8ec; border-radius: var(--r-lg); padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 14px 40px rgba(8, 10, 24, .4), inset 0 0 0 1px rgba(247, 127, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mat-fin { gap: 8px; padding-bottom: 12px; }
.mat-head { display: flex; align-items: center; gap: 8px; }
.mat-head b { font-size: 15px; }
.mat-temps { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: #ffd27a; }
.mat-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mat-nous { text-align: right; font-weight: 700; color: #ffb25c; font-size: 14px; }
.mat-eux { font-weight: 700; color: #6fe0a8; font-size: 14px; }
.mat-sc { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.mat-dit { margin: 0; text-align: center; font-size: 13px; opacity: .9; min-height: 18px; }
.mat-btns { position: absolute; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.mat-btns .btn { min-width: 128px; padding: 15px 20px; font-size: 17px; border-radius: 999px; box-shadow: 0 8px 22px rgba(8, 10, 24, .35); }
.mat-aide { background: rgba(16, 22, 42, .85); color: #fff8ec; font-size: 13px; padding: 8px 12px; border-radius: 999px; }
.mat-tir { display: flex; flex-direction: column; gap: 8px; width: min(300px, 72vw); background: rgba(16, 22, 42, .9); padding: 10px; border-radius: var(--r-lg); }
body.en-match #place, body.en-match #hint, body.en-match #guideBtn { display: none !important; }
@media (min-width: 760px) { .mat-btns { right: 24px; bottom: 28px; } }
body.en-match #stick { bottom: calc(100px + env(safe-area-inset-bottom)) !important; left: 16px !important; }

/* ---------- les sorties vécues (vague 6, partie 2) : vecu.js ---------- */
.vec { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 8; width: min(440px, calc(100vw - 16px));
  background: rgba(16, 22, 42, .93); color: #fff8ec; border-radius: var(--r-lg); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 14px 40px rgba(8, 10, 24, .45), inset 0 0 0 1px rgba(247, 127, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 760px) { .vec { left: auto; right: 16px; transform: none; bottom: 24px; } }
.vec .btn { font-size: 17px; padding: 14px; }
.vec .btn.pulse { animation: btPulse .18s ease-out; }
.vec-ligne { margin: 4px 0; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.3; color: #ffd27a; min-height: 26px; }
.vec-ligne.in { animation: vecIn .5s ease-out; }
@keyframes vecIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vec-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.vec-bar i { display: block; height: 100%; width: 0; background: #f77f00; }
.vec-souffle { position: relative; height: 150px; display: grid; place-items: center; }
.vec-souffle i { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, #7fe0d6 0%, rgba(127, 224, 214, .25) 70%); transition: transform 3s ease-in-out; transform: scale(1); }
.vec-souffle.out i { transform: scale(2.2); }
.vec-souffle span { position: relative; font-weight: 700; letter-spacing: 1px; }
.vec-q { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.vec-opts { display: flex; flex-direction: column; gap: 8px; }
.vec-opts .btn { font-size: 15px; padding: 12px; text-align: left; }
.vec-photo { width: 100%; border-radius: 12px; display: block; }
.vec-alerte { text-align: center; font-weight: 900; font-size: 20px; color: #ffd27a; animation: btPulse .3s ease-out infinite alternate; }
body.en-vecu #hint, body.en-vecu #guideBtn { display: none !important; }

/* ---------- le ring de boxe (public/js/boxe.js) : le monde en 3D derrière, le score en haut, les gants en bas ---------- */
.bx { position: fixed; inset: 0; z-index: 28; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-family: var(--font);
  pointer-events: none; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); user-select: none; -webkit-user-select: none; }
.bx[hidden] { display: none; }
.bx > * { pointer-events: auto; width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.bx-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; padding: 10px 12px 0; position: relative;
  background: linear-gradient(rgba(10,8,16,.75), rgba(10,8,16,0)); max-width: none; }
.bx-pl b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-pl small { font-size: 11px; opacity: .8; }
.bx-pl.op { text-align: right; }
.bx-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 4px; }
.bx-bar.sta { height: 4px; }
.bx-bar i { display: block; height: 100%; width: 100%; transition: width .2s; background: #3ddc84; }
.bx-bar.sta i { background: #f6b400; }
.bx-pl.op .bx-bar i { margin-left: auto; }
.bx-mid { text-align: center; padding-top: 2px; }
.bx-mid b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.bx-mid span { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bx-x { position: absolute; top: calc(100% + 6px); right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; }
.bx-msg { text-align: center; font-size: 14px; margin: 46px 16px 0; text-shadow: 0 1px 3px #000; min-height: 20px; }
.bx-pop { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-size: 34px; font-weight: 900; text-shadow: 0 2px 8px #000;
  transition: transform .15s, opacity .15s; pointer-events: none; width: auto; }
.bx-pop.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bx-pop.bloque { color: #9ecbff; } .bx-pop.esquive { color: #c9f7d6; } .bx-pop.contre, .bx-pop.tapis, .bx-pop.ko { color: #ffb000; }
.bx-end { margin: auto 16px; padding: 18px; border-radius: 16px; background: rgba(16,12,24,.86); text-align: center; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.bx-end[hidden] { display: none; }
.bx-end b { font-size: 22px; }
.bx-pad, .bx-bets { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(rgba(10,8,16,0), rgba(10,8,16,.8)); }
.bx-pad[hidden], .bx-bets[hidden] { display: none; }
.bx-row { display: flex; gap: 8px; }
.bx-b { flex: 1; min-height: 52px; border: 0; border-radius: 14px; font: 700 15px var(--font); color: #fff; background: rgba(255,255,255,.16); touch-action: manipulation; }
.bx-b.coup { background: #c81d45; } .bx-b.coup:disabled { opacity: .45; }
.bx-b.garde { background: #1e5aa8; flex: 1.3; }
.bx-b:active { transform: scale(.96); }
.bx-bet { flex: 1; } .bx-bet small { display: block; margin-bottom: 4px; } .bx-amts { display: flex; gap: 6px; } .bx-amts .bx-b { min-height: 40px; font-size: 13px; }
.bx-bets p { text-align: center; margin: 4px 0; }
body.ring #toasts { display: none; }
.bx-msg.dit { color: #ffd166; }

/* Abobo, le Délestage : les fils du poteau de la CIE, et le bandeau du compte à rebours */
.fils-poteau { display: grid; gap: 10px; margin-top: 8px; }
.cj-o.fil { display: flex; align-items: center; gap: 12px; text-align: left; }
.fil-cable { flex: 0 0 64px; height: 10px; border-radius: 6px; background: var(--fil); box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset; }
.fil-nom { font-weight: 800; letter-spacing: .04em; transition: opacity .15s; }
.cj-card.noir { background: #0b0e14; color: #cfd6e4; }
.cj-card.noir .fil-nom { opacity: 0; }
.cj-card.noir .cj-o.fil { background: #151a24; border-color: #242b38; }
#dlst { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 104px); transform: translateX(-50%); z-index: 40; padding: 8px 14px; border-radius: 999px;
  background: #11141b; color: #ffd23f; font: 800 13px/1.2 "DM Sans", system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.35); animation: dlst-cl 2.4s infinite; white-space: nowrap; }
@keyframes dlst-cl { 0%, 90%, 100% { opacity: 1; } 93% { opacity: .35; } 96% { opacity: .9; } }
.cj.fils .cj-q { min-height: 2.9em; display: flex; align-items: center; justify-content: center; }
.cj-card.voir .cj-o.fil { pointer-events: none; }
.cj-card.noir .fil-cable { box-shadow: 0 0 0 2px rgba(255,255,255,.45) inset, 0 0 8px rgba(255,255,255,.18); }
/* le sermon (vague 6) : l'église en bleu et or, la mosquée en vert et or ; le gros bouton « Amen » */
.lv2-live.k.cu { background: linear-gradient(90deg, #1e5aa8, #c9972a); }
.lv2-live.k.cu.mq { background: linear-gradient(90deg, #2f7d5c, #c9972a); }
.k-scene.cu { background: linear-gradient(160deg, rgba(30,90,168,.32), rgba(201,151,42,.2)); }
.k-bar .btn.amen { font-size: 1.15rem; padding: 14px; background: #c9972a; color: #1a1423; }
/* les Testeurs de Babi : le formulaire de candidature et de rapport */
.tst-form { display: grid; gap: 10px; margin: 6px 0 14px; }
.tst-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.tst-form select, .tst-form input { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .14); background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.tst-form .long-ta { margin-top: 0; }
.act.info.off { opacity: .85; }

/* (2026-11-12) le bonhomme du feu, en grand, au bord du passage piéton */
.pieton { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 118px); left: 50%; transform: translateX(-50%); z-index: 30; pointer-events: none;
  padding: 8px 16px; border-radius: 999px; font: 800 15px/1.2 'DM Sans', system-ui, sans-serif; color: #fff; background: rgba(200, 30, 40, .92); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.pieton.vert { background: rgba(22, 160, 80, .94); }

/* (2026-11-13) la course : on ne conduit pas, pas de volant ni de pédales ni de klaxon ; « Descendre » reste */
body.course #dhSteer, body.course .dh-pedals, body.course #dhHorn, body.course #dhPark { display: none !important; }
body.course #dhWhere { font-weight: 600; }

/* ---------- Junior, le grand frère des nouveaux (2026-11-13) ---------- */
#coach { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 32; max-width: 440px; margin: 0 auto; display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 14px 14px 14px 12px; box-shadow: 0 14px 40px rgba(26, 20, 35, .35); animation: coachIn .28s ease-out; }
#coach.coach-haut { bottom: auto; top: calc(12px + env(safe-area-inset-top)); padding: 10px 14px 10px 10px; }
#coach.coach-haut .co-av { width: 40px; height: 40px; font-size: 24px; }
#coach .co-av { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 8px rgba(26, 20, 35, .25); }
#coach .co-av svg { display: block; width: 100%; height: 100%; }
#coach .co-tx { flex: 1; min-width: 0; }
#coach .co-tx > b { display: block; font-size: 12px; color: var(--mute); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
#coach .co-tx p { margin: 3px 0 0; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
#coach .co-bt { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
#coach .co-bt .btn { min-height: 46px; padding: 10px 14px; font-size: 16px; }
#coach .co-bt .btn.ghost { flex: 0 0 auto; width: auto; }
#coach .co-x { flex: none; color: var(--mute); font-size: 14px; padding: 10px 6px; text-decoration: underline; }
#coach .co-bravo { font-size: 20px !important; }
#coach .co-gain { display: inline-block; margin-left: 6px; color: #0b7a3e; animation: coachGain .9s ease-out; }
#coach.coach-fete .co-av, #coach.coach-fin .co-av { animation: coachSaut .5s ease-out 2; }
#coachRing { position: fixed; z-index: 31; pointer-events: none; border-radius: 18px; border: 3px solid #ffd23f; box-shadow: 0 0 0 9999px rgba(10, 8, 16, .42), 0 0 18px 4px rgba(255, 210, 63, .9);
  animation: coachBat 1.1s ease-in-out infinite; transition: left .2s, top .2s, width .2s, height .2s; }
#coachRing .cr-fl { position: absolute; left: 50%; top: -26px; margin-left: -11px; width: 0; height: 0; border: 11px solid transparent; border-top: 16px solid #ffd23f; border-bottom: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); animation: coachMain 1.1s ease-in-out infinite; }
body.coach-dim #sheet { background: transparent; }
@keyframes coachIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes coachBat { 50% { box-shadow: 0 0 0 9999px rgba(10, 8, 16, .42), 0 0 28px 8px rgba(255, 210, 63, 1); } }
@keyframes coachMain { 50% { transform: translateY(-7px); } }
@keyframes coachGain { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 60% { transform: translateY(-4px) scale(1.25); opacity: 1; } 100% { transform: none; } }
@keyframes coachSaut { 50% { transform: translateY(-8px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { #coach, #coachRing, #coachRing .cr-fl, #coach .co-gain, #coach .co-av { animation: none !important; } }
/* « Je fais quoi ? » */
.quoi .quoi-i .ic { font-size: 24px; }
.quoi .quoi-i .pr { font-size: 18px; }
.quoi-plus { display: grid; gap: 6px; margin-top: 10px; }
.alerte-arnaque h4 { color: var(--red); }

/* ---------- (2026-11-14) les boutons rangés : plus de monde à l'écran, même look ---------- */
/* les besoins : un anneau, celui du besoin le plus bas (il clignote s'il est dans le rouge) ; touché, les six s'ouvrent */
#needs.ferme .need:not(.bas) { display: none; }
#needs.ferme { padding: 4px; }
/* le panneau de la rue : sans message, la ligne « Personne ne parle ici » disparaît et Causer monte à côté du nom */
#place.calme .place-chat { display: none; }
#place.calme .place-row { position: absolute; top: 8px; right: 10px; }
#place.calme .place-head { padding-right: 96px; min-height: 40px; align-items: center; }
#place.calme .place-go { margin-bottom: 0; }
/* en marchant : tout ce qui flotte passe à 35 %, revient à l'arrêt (on peut toujours toucher) */
#needs, #place, #goal, #une, #houseDock, #vueBtn, #hint, #top, .mai-chip, #houseBar { transition: opacity .35s ease; }
body.en-marche #needs, body.en-marche #place, body.en-marche #goal, body.en-marche #une, body.en-marche #houseDock, body.en-marche #vueBtn, body.en-marche #hint, body.en-marche #top, body.en-marche .mai-chip, body.en-marche #houseBar { opacity: .35; }

/* (2026-11-14) le décorateur : deux boutons sur une ligne de commande */
.cr-cmd .row-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* ---------- (2026-11-15) le nouvel écran (Réglages → Nouvel écran, body.ne) : mêmes couleurs, moins de boutons ----------
   En haut une seule bande (besoins · heure · en ligne · argent), le lieu au milieu (▾ ouvre le reste), le rond à gauche,
   💬 et le bouton qui change à droite. Le panneau du lieu, le dock de la maison et les puces reviennent quand on ouvre ▾. */
body.ne #top { min-height: 48px; padding: 4px 4px 4px 54px; border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); gap: 2px; pointer-events: auto; }
body.ne #top > * { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px 8px; }
body.ne #top > #hMoney { background: var(--yellow); padding: 9px 14px; border-radius: 20px; }
body.ne #hMood { display: none; }
body.ne #needs { top: calc(12px + env(safe-area-inset-top)); left: 14px; transform: none; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 6; }
body.ne #needs:not(.ferme) { padding: 4px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.ne #needs.ferme .need { width: 40px; height: 40px; }
/* ce qui part dans le tiroir (▾) ou dans « À la une » */
body.ne #goal, body.ne #guideBtn, body.ne #vueBtn, body.ne #driveBtn, body.ne #parlerBtn, body.ne #houseTalk { display: none !important; }
body.ne:not(.ne-live) #une { display: none !important; }
body.ne #une { top: calc(108px + env(safe-area-inset-top)); left: 0; right: 0; margin: 0 auto; width: max-content; transform-origin: 50% 50%; max-width: min(80vw, 360px); background: #c8235a !important; color: #fff !important; }
body.ne.ne-sub-on #une { top: calc(142px + env(safe-area-inset-top)); }
body.ne:not(.ne-pc):not(.ne-tiroir) #place, body.ne:not(.ne-pc):not(.ne-tiroir) #houseDock, body.ne:not(.ne-pc):not(.ne-tiroir) #houseBar, body.ne:not(.ne-pc):not(.ne-tiroir) .mai-chip { display: none !important; }
body.ne.ne-tiroir #stick, body.ne.ne-tiroir #neTalk, body.ne.ne-tiroir #neAct, body.ne.ne-tiroir #une { display: none !important; }
/* le lieu, en haut au milieu */
.ne-lieu { top: calc(66px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 40px); display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 20px;
  background: var(--glass); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.ne-lieu[hidden], .ne-sub[hidden], .ne-talk[hidden], .ne-act[hidden], .ne-row[hidden] { display: none !important; }
.ne-lieu svg { width: 16px; height: 16px; flex: none; }
.ne-lieu .ne-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ne-lieu u { font-weight: 600; opacity: .85; text-underline-offset: 3px; }
.ne-lieu .ne-v { opacity: .9; }
.ne-lieu .ne-nb { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff5a6b; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--ink); }
.ne-sub { top: calc(104px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 14px; background: var(--glass); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; max-width: calc(100vw - 40px); overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ne-sub i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; flex: none; }
.ne-sub i.on { background: var(--yellow); border-color: var(--yellow); }
.ne-sub i:last-of-type { margin-right: 4px; }
/* le reste, quand on ouvre ▾ : une rangée de puces sous le lieu */
.ne-row { top: calc(108px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 8px; overflow-x: auto; justify-content: center; flex-wrap: wrap; z-index: 7; }
body.ne-sub-on .ne-row { top: calc(142px + env(safe-area-inset-top)); }
.ne-chip { padding: 9px 14px; border-radius: 20px; background: var(--glass); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.ne-chip:first-child { background: var(--yellow); color: var(--ink); }
/* aux pouces : le rond à gauche, 💬 et le bouton qui change à droite (au-dessus de la barre du bas) */
body.ne #stick { left: calc(16px + env(safe-area-inset-left)) !important; bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
.ne-talk { right: calc(16px + env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 26px;
  display: grid; place-items: center; box-shadow: var(--shadow); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ne-talk em { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff5a6b; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid var(--ink); }
.ne-talk.rec { background: #c8235a; transform: scale(1.12); }
.ne-act { right: calc(16px + env(safe-area-inset-right)); bottom: calc(178px + env(safe-area-inset-bottom)); max-width: calc(100vw - 150px); display: flex; align-items: center; gap: 8px; padding: 0 20px 0 14px; height: 56px; border-radius: 28px;
  background: #fff; color: var(--ink); font-size: 16px; font-weight: 800; box-shadow: var(--shadow); white-space: nowrap; }
.ne-act span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ne-act em { font-style: normal; font-size: 22px; }
body.driving .ne-lieu, body.driving .ne-sub, body.driving .ne-talk, body.driving .ne-act, body.driving .ne-row { display: none !important; }
/* le petit message « Lâche pour envoyer » de Parler, au-dessus de 💬 */
body.ne .parler { left: auto; right: 12px; transform: none; align-items: flex-end; bottom: calc(176px + env(safe-area-inset-bottom)); }
@media (orientation: landscape) and (max-height: 520px) {
  .ne-lieu { top: calc(10px + env(safe-area-inset-top)); }
  body.ne #top { right: auto; }
  .ne-sub, .ne-row, body.ne #une { top: calc(52px + env(safe-area-inset-top)); }
  .ne-act { bottom: calc(96px + env(safe-area-inset-bottom)); right: 90px; }
  .ne-talk { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.ne #stick { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}
/* les icônes du jeu (pas d'emoji : le même dessin partout) */
.ne-lieu > svg, .ne-lieu > .ico { width: 16px; height: 16px; flex: none; }
.ne-talk svg, .ne-talk .ico { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.ne-act > svg, .ne-act > .ico, .ne-act > .ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.ne-act > .ic svg { width: 24px; height: 24px; }
.ne-chip { display: inline-flex; align-items: center; gap: 6px; }
.ne-chip svg, .ne-chip .ico { width: 16px; height: 16px; }
body.ne #hOnline small { display: inline !important; font-weight: 600; opacity: .85; }
/* (2026-11-21) depuis la météo (« 30° » à côté de l'heure), l'argent sortait de l'écran sur téléphone : l'argent ne rétrécit jamais,
   « en ligne » se cache sur les petits écrans (● 848 suffit), l'heure et le nombre se serrent avant l'argent */
@media (max-width: 480px) {
  body.ne #hOnline small { display: none !important; }
  body.ne #top > * { padding: 8px 6px; }
  body.ne #top > #hClock, body.ne #top > #hOnline { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  body.ne #top > #hMoney { flex: none; padding: 9px 12px; }
}
@media (max-width: 360px) { body.ne #hClock .h-meteo { display: none; } }
/* (2026-11-15) le nouvel écran sur ordinateur (body.ne-pc : grand écran, souris) : la bande au milieu et pas plus large que 760 px,
   le panneau du lieu toujours ouvert en bas à gauche (on a la place, et la souris aime les listes), 💬 et le bouton qui change en bas à droite,
   les messages sous le nom du lieu */
body.ne-pc #top { left: 50%; right: auto; transform: translateX(-50%); width: min(760px, calc(100vw - 20px)); font-size: 14px; }
body.ne-pc #needs { left: calc((100vw - min(760px, calc(100vw - 20px))) / 2 + 4px); }
body.ne-pc .ne-lieu { font-size: 14.5px; padding: 9px 16px; }
body.ne-pc #place { margin: 0; left: 16px; right: auto; bottom: 16px; width: 360px; }
body.ne-pc .ne-talk { right: 24px; bottom: 24px; }
body.ne-pc .ne-act { right: 24px; bottom: 100px; max-width: 420px; }
body.ne-pc .parler { right: 24px; bottom: 170px; }
body.ne #toasts { top: calc(150px + env(safe-area-inset-top)); padding: 0 12px; }
body.ne.ne-pc #toasts { top: calc(118px + env(safe-area-inset-top)); }
/* (le pouls d'une pastille urgente fait scale() : le centrage ne passe donc pas par transform, sinon elle saute de côté à chaque battement) */

/* (2026-11-15) le filet de secours (js/secours.js) : démarrage raté, plantage, écran figé, pas de 3D — la raison, et « Recharger » */
.upd-cover.filet { padding: 24px; text-align: center; z-index: 120; background: rgba(26, 20, 35, .94); }
.upd-cover.filet small { max-width: 340px; line-height: 1.45; }
.upd-cover.filet .astuce { color: #ffd166; margin-top: 4px; }
.upd-cover.filet .btn { margin-top: 14px; padding: 12px 28px; border-radius: 24px; border: 0; background: #f5b70a; color: #1a1423; font: 800 16px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
/* (2026-11-15) la vitrine d'un vrai business d'Abidjan */
.vitrine .vt-tete { display: flex; gap: 12px; align-items: center; padding: 10px; margin: -4px 0 10px; border-radius: 14px; background: color-mix(in srgb, var(--vc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--vc) 45%, transparent); }
.vitrine .vt-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; flex: none; }
.vitrine .vt-tete h4 { margin: 0; }
.vitrine .vt-tete small { display: block; opacity: .85; }
.vitrine .vt-vrai { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--vc); color: #fff; }
.vitrine .vt-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 10px; padding-bottom: 4px; }
.vitrine .vt-photos img { flex: none; height: 300px; width: auto; max-width: 88%; object-fit: contain; background: rgba(127,127,127,.12); border-radius: 12px; scroll-snap-align: start; }
.vitrine .vt-desc { margin: 0 0 10px; line-height: 1.4; }
.vitrine .vt-reel { margin-top: 12px; }
.vitrine .vt-reel p { margin: 4px 0; }
.vitrine .vt-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.vitrine .vt-liens .btn { flex: 1 1 140px; text-align: center; text-decoration: none; }
.vitrine .vt-liens .btn:first-child { background: var(--vc); border-color: var(--vc); color: #fff; }
.vitrine .vt-note { display: block; opacity: .75; margin-bottom: 8px; }
.vitrine .vt-affiche { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin: 0 0 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.vitrine .vt-prod { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(127,127,127,.18); }

/* (2026-11-16) Babi Matin : le journal du matin */
.mt-head { text-align: center; padding: 14px 4px 10px; margin-top: 4px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.mt-nom { font-size: 34px; font-weight: 900; letter-spacing: .06em; line-height: 1; color: var(--ink); }
.mt-sous { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.mt-une { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px 16px; position: relative; overflow: hidden; }
.mt-une::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--green) 66.6%); }
.mt-kick { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.mt-une-e { font-size: 34px; line-height: 1.1; margin-top: 8px; }
.mt-une h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; }
.mt-sec { margin-top: 16px; }
.mt-sec h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.mt-sec h4 em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--mute); }
.mt-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-c { background: var(--sand); border-radius: 12px; padding: 9px 11px; }
.mt-c b { display: block; font-size: 19px; font-weight: 800; }
.mt-c small { font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }
.mt-list { list-style: none; margin: 0; padding: 0; }
.mt-list li { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.38; color: var(--ink); }
.mt-list li:last-child { border-bottom: 0; }
.mt-e { flex: 0 0 22px; text-align: center; font-size: 17px; line-height: 1.25; }
.mt-pub { background: #fdf1ec; border-radius: 14px; padding: 12px 14px; }
.mt-pub h4 { border-bottom-color: var(--orange); }
.mt-note { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.mt-bas p { font-size: 14px; line-height: 1.45; margin: 0 0 8px; }
.mt-off { margin-top: 6px; min-height: 44px; font-size: 14px; }
.mt-une-n { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.mt-titres { display: grid; gap: 8px; margin-top: 10px; }
.mt-t { background: var(--sand); border-radius: 12px; padding: 10px 12px; border-left: 4px solid var(--orange); }
.mt-t .mt-kick { color: var(--orange-d); }
.mt-t p { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.mt-n { font-style: normal; color: var(--mute); font-weight: 600; }
.mt-une h3 { color: #fff; text-transform: none; }

/* ---------- (2026-11-18) la page d'accueil, un vrai site : le film du jeu en fond, les chiffres, les scènes, les communes ---------- */
#auth { --px: 20px; --or: #ff8a1a; --vert: #2fd18d; display: block; padding: 0; gap: 0; background: #0b0b0f; scroll-behavior: smooth; overscroll-behavior: contain; }
#auth > * { width: 100%; max-width: none; margin: 0; }
.lp-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(47, 209, 141, .6); animation: lpPouls 2s infinite; }
@keyframes lpPouls { 70% { box-shadow: 0 0 0 8px rgba(47, 209, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 209, 141, 0); } }

/* la première page : le film plein écran sur téléphone */
.lp-first { position: relative; z-index: 1; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; padding: calc(14px + env(safe-area-inset-top)) var(--px) calc(28px + env(safe-area-inset-bottom)); }
.lp-first::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(11, 11, 15, .55) 0%, rgba(11, 11, 15, 0) 18%, rgba(11, 11, 15, 0) 34%, rgba(11, 11, 15, .82) 62%, #0b0b0f 100%); }
.lp-bg { display: none; }
.lp-reel { position: absolute; inset: 0; z-index: -2; }
.lp-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #15151b url(/media/accueil/poster.webp) center / cover; }
.lp-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav a { padding: 8px 10px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .86); text-decoration: none; border-radius: 10px; }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lp-nav a[href^="#"] { display: none; }
.lp-jouer { margin-left: 6px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #0b0b0f; font-size: 14px; font-weight: 800; }
.lp-jouer:active { transform: scale(.97); }
.lp-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-hero { margin-top: auto; }
.lp-hero h1 { margin: 14px 0 12px; font-size: clamp(46px, 14vw, 78px); line-height: .9; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; color: #fff; text-shadow: none; }
.lp-lead { margin: 0 0 20px; font-size: 16.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 34ch; }
.lp-ctas { display: grid; gap: 10px; }
.lp-ctas .lp-btn.ghost { margin: 0; background: rgba(11, 11, 15, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lp-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.lp-stats[hidden], .lp-stats > div[hidden] { display: none; }
.lp-stats > div { display: flex; flex-direction: column-reverse; }
.lp-stats dd { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.lp-stats dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.lp-direct { display: none; }

/* le titre qui se lève, le mot qui change */
.lp-l { display: block; overflow: hidden; padding-top: .26em; margin-top: -.26em; }
.lp-l > span { display: inline-block; animation: lpLeve 1s cubic-bezier(.16, .84, .3, 1) both; }
.lp-l:nth-child(2) > span { animation-delay: .08s; } .lp-l:nth-child(3) > span { animation-delay: .16s; }
@keyframes lpLeve { from { transform: translateY(105%); } }
.lp-hero .lp-flag { animation: lpLarge .9s .05s cubic-bezier(.16, .84, .3, 1) both; transform-origin: left; }
@keyframes lpLarge { from { transform: scaleX(0); } }
.lp-hero .lp-lead, .lp-ctas, .lp-stats { animation: lpVient .9s cubic-bezier(.16, .84, .3, 1) both; }
.lp-hero .lp-lead { animation-delay: .25s; } .lp-ctas { animation-delay: .35s; } .lp-stats { animation-delay: .5s; }
@keyframes lpVient { from { opacity: 0; transform: translateY(18px); } }
.lp-mot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-top: .26em; margin-top: -.26em; }
.lp-mot b { grid-area: 1 / 1; font-weight: inherit; background: linear-gradient(92deg, #ff8a1a, #ffc23d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-mot b.in { animation: lpMotIn .6s cubic-bezier(.16, .84, .3, 1) both; }
.lp-mot b.out { animation: lpMotOut .5s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes lpMotIn { from { transform: translateY(70%); opacity: 0; } }
@keyframes lpMotOut { to { transform: translateY(-60%); opacity: 0; } }

/* le reste de la page */
.lp-more { position: relative; padding: 0 var(--px); background: #0b0b0f; color: #fff; }
.lp-more > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.lp-band { padding-top: 76px; }
.lp-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.lp-h { margin: 0; font-size: clamp(32px, 9vw, 56px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.lp-sub { margin: 0; max-width: 36ch; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.lp-all { font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 2px solid var(--or); padding-bottom: 2px; }
/* les scènes : glisser du doigt sur téléphone, une grille sur ordinateur */
.lp-cartes { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; margin: 0 calc(-1 * var(--px)); padding: 0 var(--px) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--px); scrollbar-width: none; }
.lp-cartes::-webkit-scrollbar { display: none; }
.lp-carte { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #17171d; scroll-snap-align: start; }
.lp-carte img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .9s cubic-bezier(.16, .84, .3, 1); }
.lp-carte figcaption { position: absolute; inset: auto 0 0; padding: 48px 18px 18px; background: linear-gradient(to top, rgba(8, 8, 12, .88), rgba(8, 8, 12, 0)); }
.lp-carte b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.025em; }
.lp-carte span { display: block; margin-top: 3px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
/* le grand chiffre */
.lp-chiffre { padding: 96px 0 20px; text-align: center; }
.lp-chiffre[hidden] { display: none; }
.lp-chiffre p { margin: 0; }
.lp-chiffre b { display: block; font-size: clamp(76px, 22vw, 210px); line-height: .9; font-weight: 900; letter-spacing: -.055em; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, #ff8a1a 10%, #ffc23d 50%, #2fd18d 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-chiffre span { display: block; margin-top: 12px; font-size: clamp(20px, 5vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.lp-chiffre .lp-chiffre-sub { max-width: 40ch; margin: 12px auto 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
/* les communes */
.lp-villes { display: grid; gap: 28px; }
.lp-ville img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: #17171d; }
.lp-ville h3 { margin: 16px 0 4px; color: #fff; text-transform: none; font-size: 24px; font-weight: 900; letter-spacing: -.025em; }
.lp-ville p { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .64); }
/* les nouvelles */
.lp-news { display: grid; gap: 10px; }
.lp-post { display: block; padding: 18px 20px; border-radius: 18px; background: #16161c; border: 1px solid rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.lp-post:hover { background: #1d1d25; transform: translateY(-2px); }
.lp-post small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--or); }
.lp-post b { display: block; margin-top: 6px; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
/* la fin */
.lp-end { margin-top: 88px; padding: 56px 24px; border-radius: 28px; text-align: center; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 138, 26, .38), transparent 55%), radial-gradient(120% 90% at 100% 100%, rgba(47, 209, 141, .3), transparent 55%), #15151b; }
.lp-end h2 { margin: 0; font-size: clamp(36px, 10vw, 68px); line-height: .95; font-weight: 900; letter-spacing: -.045em; }
.lp-end p { margin: 14px 0 24px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.lp-end .lp-cta { max-width: 340px; margin: 0 auto; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 56px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }
.lp-foot span { margin-right: auto; }
/* (2026-11-22) la page des vrais business, depuis l’accueil */
.lp-biz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: #17171d; color: #fff; text-decoration: none; }
.lp-biz img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 16px; background: #0f0f14; }
.lp-biz-t { display: flex; flex-direction: column; gap: 8px; }
.lp-biz-t small { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--or); }
.lp-biz-t b { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
.lp-biz-t span { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.lp-biz-t em { font-style: normal; font-size: 15px; font-weight: 700; align-self: flex-start; border-bottom: 2px solid var(--or); padding-bottom: 2px; margin-top: 4px; }
@media (min-width: 760px) { .lp-biz { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 22px; } .lp-biz img { max-height: 360px; } }
.lp-foot a { padding: 8px 0; color: rgba(255, 255, 255, .72); text-decoration: none; }
.lp-foot a:hover { color: #fff; }
/* le formulaire seul à l'écran : le film reste derrière, plus sombre */
#auth.lp-formon .lp-first::after { background: rgba(11, 11, 15, .72); }

/* au défilement : chaque bloc monte et apparaît, l'image se pose */
#auth .rv { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, .84, .3, 1); }
#auth .rv.in { opacity: 1; transform: none; }
#auth .lp-carte.rv img, #auth .lp-ville.rv img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.16, .84, .3, 1); }
#auth .lp-carte.rv.in img, #auth .lp-ville.rv.in img { transform: none; }

@media (min-width: 900px) {
  #auth { --px: 6vw; }
  .lp-first { min-height: 100vh; min-height: 100svh; padding-top: 22px; padding-bottom: 48px; }
  .lp-first::after { background: radial-gradient(90% 80% at 75% 50%, rgba(11, 11, 15, 0), rgba(11, 11, 15, .55) 70%), linear-gradient(to bottom, rgba(11, 11, 15, 0) 70%, #0b0b0f 100%); }
  .lp-bg { display: block; position: absolute; inset: -60px; z-index: -2; background: url(/media/accueil/poster.webp) center / cover; filter: blur(60px) saturate(1.4) brightness(.42); }
  .lp-nav a[href^="#"] { display: inline-block; }
  .lp-nav a { font-size: 15px; padding: 8px 14px; }
  .lp-jouer { padding: 10px 20px; font-size: 15px; }
  .lp-stage { flex-direction: row; align-items: center; justify-content: space-between; gap: 5vw; padding-top: 24px; }
  .lp-hero { margin: 0; max-width: 600px; }
  .lp-hero h1 { font-size: clamp(66px, 6.6vw, 112px); }
  .lp-lead { font-size: 19px; margin-bottom: 28px; }
  .lp-ctas { display: flex; gap: 12px; }
  .lp-ctas .lp-btn { width: auto; padding: 0 28px; }
  .lp-stats { margin-top: 40px; padding-top: 22px; gap: 0 44px; }
  .lp-stats dd { font-size: 36px; }
  #auth .lp-form { margin: 0; width: 460px; flex: none; }
  .lp-reel { position: relative; inset: auto; z-index: 0; flex: none; height: min(76vh, 740px); aspect-ratio: 9 / 16; margin-right: 2vw; border-radius: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); transform: rotate(2.5deg); animation: lpCarteVient 1.2s .2s cubic-bezier(.16, .84, .3, 1) both; }
  .lp-video { border-radius: 30px; }
  @keyframes lpCarteVient { from { opacity: 0; transform: rotate(6deg) translateY(60px); } }
  .lp-direct { display: block; position: absolute; left: -150px; bottom: 56px; width: 320px; padding: 14px 18px 12px; border-radius: 18px; transform: rotate(-2.5deg); background: rgba(16, 16, 22, .72); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
  .lp-direct[hidden] { display: none; }
  .lp-dlabel { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vert); }
  .lp-dfil p { margin: 0; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.4; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-dfil p:first-child { border-top: 0; }
  .lp-dfil p:nth-child(n+4) { display: none; }
  .lp-dfil p.in { animation: lpFilIn .55s cubic-bezier(.16, .84, .3, 1) both; }
  .lp-dfil p.out { animation: lpFilOut .45s ease both; }
  @keyframes lpFilIn { from { opacity: 0; transform: translateY(-60%); } }
  @keyframes lpFilOut { to { opacity: 0; } }
  .lp-band { padding-top: 120px; }
  .lp-row { margin-bottom: 36px; }
  .lp-cartes { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; overflow: visible; }
  .lp-carte:hover img { transform: scale(1.05); }
  .lp-cartes .lp-carte:nth-child(4n+2) { transition-delay: .08s; } .lp-cartes .lp-carte:nth-child(4n+3) { transition-delay: .16s; } .lp-cartes .lp-carte:nth-child(4n+4) { transition-delay: .24s; }
  .lp-chiffre { padding: 150px 0 30px; }
  .lp-villes { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .lp-villes .lp-ville:nth-child(2) { transition-delay: .1s; } .lp-villes .lp-ville:nth-child(3) { transition-delay: .2s; }
  .lp-news { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lp-post { padding: 24px; min-height: 150px; }
  .lp-end { margin-top: 140px; padding: 96px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-l > span, .lp-hero .lp-flag, .lp-hero .lp-lead, .lp-ctas, .lp-stats, .lp-reel, .lp-direct, .lp-mot b, .lp-dfil p, .lp-live { animation: none !important; }
  #auth .rv, #auth .rv img { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- (2026-11-18) le titre lettre par lettre : flou → net, le mot qui pivote, le trait aux couleurs du drapeau ---------- */
.lp-split .lp-l { overflow: visible; padding-bottom: .14em; margin-bottom: -.14em; }
.lp-split .lp-l > span { animation: none; }
.lp-split .ch { display: inline-block; animation: lpCh .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 34ms + .05s); }
@keyframes lpCh { from { opacity: 0; transform: translateY(.42em) rotate(5deg); filter: blur(10px); } }
.lp-split .lp-pt { color: #ff8a1a; }
.lp-split .lp-mot { position: relative; overflow: visible; }
.lp-split .lp-mot b { background: none; color: #ff8a1a; animation: none; white-space: nowrap; perspective: 520px; }
.lp-split .lp-mot .ch { text-shadow: 0 0 34px rgba(255, 140, 30, .38); transform-origin: 50% 70%; }
.lp-split .lp-mot b.in .ch { animation: lpChIn .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.lp-split .lp-mot b.out .ch { animation: lpChOut .5s cubic-bezier(.5, 0, .75, 0) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes lpChIn { from { opacity: 0; transform: translateY(.55em) rotateX(-95deg); filter: blur(8px); } 55% { opacity: 1; filter: blur(0); } }
@keyframes lpChOut { to { opacity: 0; transform: translateY(-.5em) rotateX(95deg); filter: blur(8px); } }
.lp-trait { position: absolute; left: 0; bottom: -.1em; width: 0; height: .26em; overflow: visible; pointer-events: none; }
.lp-trait path { fill: none; stroke: url(#lpTraitG); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-trait.go path { animation: lpTrait .75s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
.lp-trait.tard path { animation-delay: .9s; }
@keyframes lpTrait { to { stroke-dashoffset: 0; } }

/* ---------- (2026-11-18) l'accueil plus calme au toucher : l'arrivée une seule fois, rien ne bouge sous le doigt ---------- */
/* au retour du formulaire : tout est déjà posé (plus de titre qui disparaît et revient) */
#authIntro.lp-deja .ch, #authIntro.lp-deja .lp-flag, #authIntro.lp-deja .lp-lead, #authIntro.lp-deja .lp-ctas, #authIntro.lp-deja .lp-stats { animation: none !important; }
.lp-split .lp-mot b.pose .ch { animation: none; }
.lp-trait.fait path { animation: none; stroke-dashoffset: 0; }
/* le formulaire glisse doucement en place */
#auth .lp-form:not([hidden]) { animation: lpVient .45s cubic-bezier(.16, .84, .3, 1) both; }
/* au défilement : un petit mouvement court (on peut toucher tout de suite) ; le bloc final apparaît sans bouger */
#auth .rv { transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16, .84, .3, 1); }
#auth .rv.in { transform: none; }
#auth .lp-end.rv { transform: none; }
#auth .lp-carte.rv img, #auth .lp-ville.rv img { transform: scale(1.06); transition: transform 1s cubic-bezier(.16, .84, .3, 1); }
#auth .lp-carte.rv.in img, #auth .lp-ville.rv.in img { transform: none; }
/* un toucher net : pas de flash gris, le bouton s'enfonce un peu */
#auth button, #auth a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#auth .lp-btn, #auth .lp-jouer { transition: transform .12s ease, background-color .12s ease; }
#auth .lp-btn:active, #auth .lp-jouer:active { transform: scale(.97); }

/* (2026-11-18) la météo : un voile sur la 3D (gris de pluie, blanc de brouillard, ocre d'harmattan, l'éclair), sous toute l'interface */
#glMeteo { position: fixed; inset: 0; pointer-events: none; }
#hClock .h-meteo { opacity: .85; }
.mt-meteo .mt-mc { padding: 8px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.mt-meteo .mt-mc:first-of-type { border-top: 0; }
.mt-meteo .mt-mc > b { font-size: 15px; }
.mt-meteo .mt-mc p { font-size: 14px; line-height: 1.4; margin: 4px 0 0; color: var(--ink-2); }
.mt-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.mt-part { background: var(--sand); border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mt-part small { font-size: 12px; color: var(--ink-2); }
.mt-part .mt-pi svg, .mt-part .mt-pi img { width: 28px; height: 28px; }
.mt-part em { font-style: normal; font-weight: 800; font-size: 15px; }
.mt-part .mt-proba { color: #2f6fd1; font-weight: 700; }
/* en mode Caméra, l'écran est propre : plus de boutons du jeu, sauf le joystick (on peut marcher en filmant) */
body.cam-on #game, body.cam-on #game * { visibility: hidden; }
body.cam-on #stick, body.cam-on #stick * { visibility: visible; }
body.cam-on .cam-info { top: calc(18px + env(safe-area-inset-top)); }
.cam-share video, .cam-share .mo-prev img { max-height: 52vh; width: auto; max-width: 80%; }
/* (2026-11-19) Le Cercle : l'appli cachée, sombre et dorée */
.ph-cercle .app i { background: #111 !important; color: #d8b45a; box-shadow: 0 0 0 1px #d8b45a55; }
.cercle-tete { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; margin: 0 0 10px; border-radius: 14px; background: linear-gradient(160deg, #0d0d0f, #1c1a14); color: #e9d28f; text-align: center; }
.cercle-tete b { font-size: 18px; letter-spacing: .06em; }
.cercle-tete small { color: #b9a56c; font-style: italic; }
.btn.mini { padding: 6px 10px; font-size: 12px; min-height: 0; margin: 0 0 0 4px; width: auto; }
/* (2026-11-19) la salle d'attente : ses messages, lisibles et avec réponse, pendant qu'on attend sa place */
.upd-cover.filet .att-msg { width: min(360px, 100%); margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.upd-cover.filet .att-msg > .btn { align-self: center; }
.att-liste { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.att-contact { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 15px 'DM Sans', system-ui, sans-serif; text-align: left; cursor: pointer; }
.att-contact em { color: #ffd166; font-style: normal; font-size: 13px; }
.att-contact small { color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-tete { display: flex; align-items: center; gap: 10px; }
.att-retour { border: 0; background: none; color: #ffd166; font: 700 15px 'DM Sans', system-ui, sans-serif; cursor: pointer; padding: 4px 0; }
.att-fil { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.att-fil p { margin: 0; max-width: 80%; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; line-height: 1.35; align-self: flex-start; }
.att-fil p.moi { background: #1e5aa8; align-self: flex-end; }
.att-ecrire { display: flex; gap: 8px; }
.att-ecrire input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 20px; border: 0; font: 15px 'DM Sans', system-ui, sans-serif; }
.upd-cover.filet .att-ecrire .btn { margin: 0; padding: 10px 16px; font-size: 14px; width: auto; flex: none; }

/* ---------- (2026-11-21) BabiTok : le fil vidéo plein écran (public/js/babitok.js) ---------- */
body.bt-on { overflow: hidden; }
.bt { position: fixed; inset: 0; z-index: 9000; background: #05070b; color: #fff; font-family: var(--font); display: flex; flex-direction: column; }
.bt-svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.bt-svg.plein { fill: currentColor; }
.bt-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.bt-top > * { pointer-events: auto; }
.bt-tabs { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 14px; }
.bt-tab { background: none; border: 0; color: rgba(255,255,255,.7); font-weight: 700; font-size: 15px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.6); padding: 6px 2px; border-bottom: 2px solid transparent; cursor: pointer; }
.bt-tab.on { color: #fff; border-bottom-color: #fff; }
.bt-top-d { display: flex; gap: 6px; align-items: center; }
.bt-ico { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.bt-ico .bt-svg { width: 22px; height: 22px; }
.bt-moi { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.12); border: 0; color: #fff; height: 40px; padding: 0 12px 0 8px; border-radius: 20px; font-weight: 700; font-size: 14px; cursor: pointer; }
.bt-moi .bt-svg { width: 20px; height: 20px; }
.bt-stars { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 0; right: 0; z-index: 3; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 0 12px; font-size: 12px; font-weight: 700; color: #ffd166; }
.bt-stars .bt-svg { width: 16px; height: 16px; }
.bt-star { background: rgba(0,0,0,.4); color: #fff; border: 1px solid rgba(255,209,102,.5); border-radius: 12px; padding: 3px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.bt-feed { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.bt-feed::-webkit-scrollbar { display: none; }
.bt-item { position: relative; height: 100%; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.bt-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (min-aspect-ratio: 3/4) { .bt-vid { object-fit: contain; } }
.bt-ombre { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.45) 55%, rgba(0,0,0,.85)); pointer-events: none; }
.bt-pause { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: rgba(255,255,255,.8); }
.bt-pause .bt-svg { width: 76px; height: 76px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.bt-pop { position: absolute; left: 50%; top: 45%; color: #ff3b5c; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.bt-pop .bt-svg { width: 110px; height: 110px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.bt-pop.go { animation: bt-pop .8s ease-out; }
@keyframes bt-pop { 0% { transform: translate(-50%,-50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-62%) scale(1); opacity: 0; } }
.bt-rail { position: absolute; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 120px); display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2; }
.bt-r { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.bt-r .bt-svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.bt-r small { font-size: 12px; font-weight: 700; color: #fff; opacity: 1; }
.bt-r.aime { color: #ff3b5c; }
.bt-r.aime small { color: #fff; }
.bt-r.petit .bt-svg { width: 24px; height: 24px; opacity: .8; }
.bt-av-w { position: relative; margin-bottom: 8px; }
.bt-av { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.bt-av.petit { width: 34px; height: 34px; font-size: 14px; border-width: 0; flex: none; }
.bt-av.grand { width: 84px; height: 84px; font-size: 36px; }
.bt-suivre { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: #ff3b5c; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.bt-suivre .bt-svg { width: 16px; height: 16px; stroke-width: 2.6; }
.bt-info { position: absolute; left: 14px; right: 78px; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.bt-pseudo { background: none; border: 0; color: #fff; font-weight: 800; font-size: 17px; padding: 0; cursor: pointer; }
.bt-cap { margin: 6px 0 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); }
.bt-meta span { display: inline-flex; align-items: center; gap: 3px; }
.bt-meta .bt-svg { width: 15px; height: 15px; }
.bt-voir { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 14px; padding: 4px 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
.bt-vide { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px 28px; }
.bt-vide > .bt-svg { width: 64px; height: 64px; color: var(--blue); }
.bt-vide h3 { margin: 6px 0 0; font-size: 22px; color: #fff; text-transform: none; letter-spacing: 0; }
.bt-vide p { margin: 0; max-width: 340px; color: rgba(255,255,255,.8); line-height: 1.45; }
.bt-vide .btn { width: auto; min-width: 220px; margin-top: 10px; }
.bt-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: bt-spin .8s linear infinite; margin: 24px auto; }
.bt-panel .bt-spin { border-color: #e4e6ea; border-top-color: var(--blue); }
@keyframes bt-spin { to { transform: rotate(360deg); } }
.bt-fond { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.35); }
.bt-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 72%; display: flex; flex-direction: column; background: #fff; color: #1a1423; border-radius: 18px 18px 0 0; padding: 4px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); animation: bt-monte .22s ease-out; }
.bt-panel.plein { top: 0; max-height: none; border-radius: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 4px); }
@keyframes bt-monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bt-panel-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 16px; }
.bt-panel .bt-ico { background: #f1f2f4; color: #1a1423; }
.bt-coms { flex: 1; overflow-y: auto; padding: 8px 0; min-height: 120px; }
.bt-com { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.bt-com > div { flex: 1; min-width: 0; }
.bt-com b { font-size: 14px; }
.bt-com small { color: #8a8f98; font-size: 12px; }
.bt-com p { margin: 2px 0 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.bt-efface { background: none; border: 0; color: #d63a4a; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; flex: none; }
.bt-ecrire { display: flex; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px solid #eee; }
.bt-ecrire .btn { width: auto; margin: 0; padding: 10px 16px; flex: none; }
.bt-champ { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 20px; border: 1px solid #d9dce1; font: 15px var(--font); background: #f7f8fa; resize: none; }
textarea.bt-champ { border-radius: 14px; margin: 6px 0; }
.bt-texte { color: #555b66; font-size: 14px; line-height: 1.45; margin: 10px 0; }
.bt-alerte { background: #fde8ea; color: #a3202f; border-radius: 10px; padding: 10px 12px; font-weight: 600; margin: 10px 0; }
.bt-vide-c { color: #8a8f98; text-align: center; padding: 24px 8px; }
.bt-billets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 6px; }
.bt-billet { border: 0; border-radius: 14px; background: linear-gradient(160deg, #1e6fd9, #1557ad); color: #fff; padding: 16px 6px; font-size: 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(30,111,217,.3); }
.bt-liste { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.bt-ligne { text-align: left; background: #f4f5f7; border: 0; border-radius: 12px; padding: 13px 14px; font-size: 15px; font-weight: 600; color: #1a1423; cursor: pointer; }
.bt-prof { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.bt-prof .btn { width: auto; }
.bt-prof-h { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 4px; }
.bt-prof-h h3 { margin: 0; font-size: 20px; color: #1a1423; text-transform: none; letter-spacing: 0; }
.bt-stats { display: flex; justify-content: center; gap: 28px; margin: 10px 0; }
.bt-stat { display: flex; flex-direction: column; align-items: center; }
.bt-stat b { font-size: 19px; }
.bt-stat small { color: #8a8f98; font-size: 13px; }
.bt-prof-a { display: flex; justify-content: center; gap: 10px; margin: 6px 0 16px; }
.bt-prof-a .btn { margin: 0; min-width: 130px; }
.bt-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.bt-case { position: relative; aspect-ratio: 9 / 14; border: 0; padding: 0; background: #1a1d24; overflow: hidden; cursor: pointer; border-radius: 4px; }
.bt-case img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-case small { position: absolute; left: 6px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.bt-case small .bt-svg { width: 13px; height: 13px; }
.bt-case-v { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.5); }
.bt-mine { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f2; }
.bt-mine img, .bt-mine .bt-case-v { width: 54px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; background: #1a1d24; }
.bt-mine > div { flex: 1; min-width: 0; }
.bt-mine b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-mine small { color: #6b717c; font-size: 13px; }
.bt-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; margin-right: 4px; }
.bt-chip.vert { background: #e3f6ef; color: #0c7a55; }
.bt-chip.jaune { background: #fff4d6; color: #8a6100; }
.bt-chip.rouge { background: #fde8ea; color: #a3202f; }
.btn.bt-publier { background: linear-gradient(135deg, #1e6fd9, #6a3fd6); color: #fff; }
/* (2026-11-21) BabiTok, le look de Babi (pas celui de TikTok) : le verre sombre des boutons du jeu, le jaune de l'argent,
   le bleu wôrô-wôrô, des cartes arrondies, le sable des fiches ; sur ordinateur, la vidéo au centre comme un téléphone, les gestes à côté */
.bt { background: radial-gradient(120% 80% at 50% 0%, #2a2140 0%, #15101f 55%, #0d0a14 100%); }
.bt-top { padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; background: linear-gradient(rgba(13, 10, 20, .7), rgba(13, 10, 20, 0)); gap: 8px; }
.bt-marque { display: none; font: 800 20px var(--font); letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.bt-marque b { display: inline-block; margin-left: 3px; padding: 1px 8px 2px; border-radius: 9px; background: var(--yellow); color: var(--ink); transform: rotate(-3deg); }
.bt-tabs { flex: 0 1 auto; margin: 0 auto; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(26, 20, 35, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bt-tab { padding: 7px 14px; border: 0; border-radius: 999px; color: rgba(255, 255, 255, .78); font: 700 14px var(--font); text-shadow: none; transition: background .15s, color .15s; }
.bt-tab.on { background: #fff; color: var(--ink); border-bottom-color: transparent; }
.bt-ico, .bt-moi { background: rgba(26, 20, 35, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bt-moi { width: 40px; padding: 0; justify-content: center; }
.bt-top-d { margin-left: auto; }
.bt-moi span { display: none; }
.bt-stars { top: calc(env(safe-area-inset-top, 0px) + 64px); }
.bt-star { background: rgba(26, 20, 35, .62); border-color: rgba(246, 180, 0, .6); }
.bt-item { background: transparent; }
.bt-vid { background: #0d0a14; }
.bt-ombre { height: 42%; background: linear-gradient(rgba(13, 10, 20, 0), rgba(13, 10, 20, .55)); }
.bt-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .16); pointer-events: none; }
.bt-prog i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s linear; }
/* les gestes : des ronds de verre, comme les boutons du jeu ; les billets en jaune (l'argent de Babi) */
.bt-rail { right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); gap: 12px; }
.bt-r { gap: 4px; text-shadow: none; }
.bt-r > .bt-svg { box-sizing: content-box; width: 24px; height: 24px; padding: 12px; border-radius: 50%; background: rgba(26, 20, 35, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); filter: none; transition: transform .12s; }
.bt-r:active > .bt-svg { transform: scale(.9); }
.bt-r small { font-size: 12px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.bt-r.aime > .bt-svg { background: #fff; color: #ff3b5c; }
.bt-r.argent > .bt-svg { background: var(--yellow); color: var(--ink); }
.bt-r.petit > .bt-svg { width: 18px; height: 18px; padding: 9px; opacity: 1; }
.bt-av { border-radius: 16px; background: var(--blue); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.bt-suivre { background: var(--yellow); color: var(--ink); width: 24px; height: 24px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
/* le créateur : une carte de verre en bas, comme les fiches du jeu */
.bt-info { left: 12px; right: 78px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); padding: 12px 14px; border-radius: 20px; background: rgba(26, 20, 35, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-shadow: none; }
.bt-pseudo { font-size: 16px; }
.bt-cap { margin-top: 4px; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-meta { gap: 6px; margin-top: 10px; font-size: 12.5px; }
.bt-meta span { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-weight: 600; }
.bt-meta .bt-mus { background: rgba(246, 180, 0, .22); color: #ffd666; }
.bt-meta .bt-quand { background: none; padding: 4px 2px; opacity: .75; }
.bt-voir { margin-left: auto; border: 0; border-radius: 999px; padding: 6px 13px; background: var(--orange); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.bt-vide > .bt-svg { color: var(--yellow); }
.bt-spin { border-top-color: var(--yellow); }
.bt-nav { display: none; }
/* les fiches (commentaires, billets, profil, signaler) : le sable de Babi */
.bt-fond { background: rgba(13, 10, 20, .45); }
.bt-panel { background: var(--sand); color: var(--ink); border-radius: 24px 24px 0 0; padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
.bt-panel::before { content: ''; display: block; width: 42px; height: 5px; margin: 4px auto 2px; border-radius: 99px; background: rgba(26, 20, 35, .18); }
.bt-panel.plein::before { display: none; }
.bt-panel-h { border-bottom: 0; padding: 6px 0 10px; font-size: 17px; }
.bt-panel-h b { font-weight: 800; }
.bt-panel .bt-ico { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-sm); }
.bt-panel .bt-spin { border-color: rgba(26, 20, 35, .1); border-top-color: var(--orange); }
.bt-coms { padding: 4px 2px 10px; }
.bt-com { padding: 5px 0; }
.bt-com > div { padding: 8px 12px 9px; border-radius: 4px 18px 18px 18px; background: #fff; box-shadow: var(--shadow-sm); }
.bt-com small { color: var(--mute); }
.bt-com .bt-av.petit { border-radius: 12px; box-shadow: none; border: 0; }
.bt-ecrire { gap: 6px; padding: 6px 6px 6px 4px; border-top: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.bt-ecrire .bt-champ { border: 0; background: transparent; padding: 10px 12px; }
.bt-ecrire .btn { min-height: 42px; padding: 8px 18px; border-radius: 999px; font-size: 15px; }
.bt-champ { border-color: var(--line); background: #fff; }
.bt-texte { color: var(--ink-2); }
.bt-billet { background: var(--yellow); color: var(--ink); border-radius: 18px; padding: 18px 6px; font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 6px 16px rgba(246, 180, 0, .35); }
.bt-billet b::after { content: ''; }
.bt-ligne { background: #fff; box-shadow: var(--shadow-sm); }
.bt-prof-h h3 { color: var(--ink); }
.bt-av.grand { border-radius: 28px; border: 3px solid #fff; }
.bt-stat small { color: var(--mute); }
.bt-grille { gap: 6px; }
.bt-case { border-radius: 14px; }
.bt-mine { background: #fff; border: 0; border-radius: 16px; padding: 8px 10px; margin-bottom: 6px; box-shadow: var(--shadow-sm); }
@media (min-width: 420px) { .bt-moi { width: auto; padding: 0 14px 0 10px; } .bt-moi span { display: inline; } }
@media (min-width: 560px) { .bt-marque { display: block; } }
/* ordinateur et tablette en largeur : la vidéo debout au centre (comme un téléphone), les gestes à sa droite, les fiches en tiroir à droite */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .bt { --bt-w: min(calc((100dvh - 48px) * 9 / 16), 500px); }
  .bt-top { padding: 16px 24px; background: none; }
  .bt-tabs { position: absolute; left: 50%; transform: translateX(-50%); }
  .bt-vid { top: 24px; bottom: auto; left: calc(50% - var(--bt-w) / 2); width: var(--bt-w); height: calc(100% - 48px); border-radius: 26px; object-fit: contain; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
  .bt-ombre { left: calc(50% - var(--bt-w) / 2); right: auto; width: var(--bt-w); bottom: 24px; border-radius: 0 0 26px 26px; }
  .bt-prog { left: calc(50% - var(--bt-w) / 2 + 18px); right: auto; width: calc(var(--bt-w) - 36px); bottom: 30px; border-radius: 99px; overflow: hidden; }
  .bt-info { left: calc(50% - var(--bt-w) / 2 + 14px); right: auto; width: calc(var(--bt-w) - 28px); box-sizing: border-box; bottom: 44px; }
  .bt-rail { right: auto; left: calc(50% + var(--bt-w) / 2 + 18px); bottom: 44px; }
  .bt-r small { text-shadow: none; }
  .bt-nav { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 3; }
  .bt-nav .bt-ico { width: 48px; height: 48px; }
  .bt-panel, .bt-panel.plein { left: auto; right: 24px; top: 24px; bottom: 24px; width: 420px; max-height: none; border-radius: 24px; padding: 8px 18px 16px; animation: bt-glisse .22s ease-out; }
  .bt-panel::before { display: none; }
  .bt-fond { background: rgba(13, 10, 20, .25); }
  .bt-stars { top: 74px; }
  /* (2026-11-21) vidéo en paysage : cadre large, centré, tout le reste suit le bas de la vidéo */
  .bt-item.large { --bt-w: min(calc(100vw - 380px), calc((100dvh - 120px) * var(--bt-r)), 1100px); --bt-h: calc(var(--bt-w) / var(--bt-r)); --bt-b: calc((100% - var(--bt-h)) / 2); }
  .bt-item.large .bt-vid { top: var(--bt-b); height: var(--bt-h); border-radius: 20px; }
  .bt-item.large .bt-ombre { bottom: var(--bt-b); height: calc(var(--bt-h) * .5); border-radius: 0 0 20px 20px; }
  .bt-item.large .bt-prog { bottom: calc(var(--bt-b) + 6px); }
  .bt-item.large .bt-info { bottom: calc(var(--bt-b) + 20px); max-width: min(var(--bt-w) - 28px, 520px); }
  .bt-item.large .bt-rail { bottom: var(--bt-b); }
}
.bt-leger * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.bt-leger .bt-r > .bt-svg, .bt-leger .bt-ico, .bt-leger .bt-moi, .bt-leger .bt-tabs { background-color: rgba(26, 20, 35, .82); }
.bt-leger .bt-r.aime > .bt-svg { background-color: #fff; } .bt-leger .bt-r.argent > .bt-svg { background-color: var(--yellow); }
.bt-leger .bt-info { background: rgba(26, 20, 35, .84); }
@keyframes bt-glisse { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Babi Matin : BabiTok du jour */
.mt-bt-l { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt-bt-c { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: #f4f5f7; border-radius: 12px; padding: 0 0 8px; overflow: hidden; text-align: left; cursor: pointer; color: inherit; }
.mt-bt-c img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; display: block; margin-bottom: 4px; }
.mt-bt-c b, .mt-bt-c small { padding: 0 8px; }
.mt-bt-c b { font-size: 13px; }
.mt-bt-c small { font-size: 11px; color: #6b717c; line-height: 1.3; }
.mt-bt-n { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
/* (2026-11-21) Live en jeu : le spectateur regarde la scène du streamer — son propre écran de jeu se cache, l'overlay du Live par-dessus */
body.regard-on #nav, body.regard-on #needs, body.regard-on #goal, body.regard-on #place, body.regard-on #stick, body.regard-on #news, body.regard-on #liveP,
body.regard-on #houseDock, body.regard-on #buyBtn, body.regard-on #hint, body.regard-on #parler, body.regard-on #driveBtn, body.regard-on #une, body.regard-on #houseBar,
body.regard-on #vote, body.regard-on #grandP, body.regard-on #grinbP, body.regard-on #ndcP, body.regard-on #plageP, body.regard-on #concP, body.regard-on #quizP, body.regard-on #feteP,
body.regard-on #neLieu, body.regard-on #neSub, body.regard-on #neTalk, body.regard-on #neAct, body.regard-on #neRow, body.regard-on #driveHud, body.regard-on #pTrain, body.regard-on #toasts .tr,
body.regard-on #guideBtn, body.regard-on #top, body.regard-on .vue-btn, body.regard-on #crossWait { display: none !important; }
.rg { position: fixed; inset: 0; z-index: 18; pointer-events: none; font-family: var(--font); color: #fff; }
.rg > * { pointer-events: auto; }
.rg small { color: rgba(255, 255, 255, .82); }
.rg.rg-ouvert .rg-chat { display: none; }   /* un panneau (réactions, cadeaux) ouvert : le chat se pousse */
.rg-top { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.rg-live { display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px var(--font); letter-spacing: .08em; background: #ff3b5c; color: #fff; padding: 6px 9px; border-radius: 8px; }
.rg-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lvBlink 1.2s infinite; }
.rg-who { display: inline-flex; align-items: center; gap: 8px; background: rgba(15, 12, 24, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; min-width: 0; }
.rg-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; } .rg-who small { font-size: 12.5px; opacity: .85; white-space: nowrap; }
.rg-quit { margin-left: auto; background: rgba(15, 12, 24, .62); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font: 700 13px var(--font); min-height: 36px; }
.rg-titre { position: absolute; top: calc(56px + env(safe-area-inset-top)); left: 12px; right: 70px; margin: 0; font: 700 14px var(--font); text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.rg-son { position: absolute; top: calc(86px + env(safe-area-inset-top)); left: 12px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--blue); color: #fff; font: 700 13px var(--font); }
.rg-carte { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 48px)); background: rgba(15, 12, 24, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 18px; text-align: center; }
.rg-carte b { font-size: 17px; } .rg-carte p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; opacity: .9; }
.rg-cote { position: absolute; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.rg-cote button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(15, 12, 24, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 22px; color: #fff; display: grid; place-items: center; }
.rg-cote button svg { width: 24px; height: 24px; } .rg-host button svg { width: 18px; height: 18px; }
.rg-reacts, .rg-cadeaux { position: absolute; right: 70px; bottom: calc(150px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px; max-width: 220px; padding: 10px; border-radius: 18px; background: rgba(15, 12, 24, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rg-reacts button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 21px; }
.rg-cadeaux { flex-direction: column; max-width: 190px; } .rg-cadeaux small { font-size: 12px; opacity: .8; }
.rg-cadeaux button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 9px 12px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 15px var(--font); }
.rg-cadeaux button b { margin-left: auto; }
.rg-chat { position: absolute; left: 12px; right: 76px; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.rg-chat p { margin: 0; align-self: flex-start; max-width: 100%; padding: 6px 10px; border-radius: 12px; background: rgba(15, 12, 24, .5); font-size: 13.5px; line-height: 1.3; text-shadow: none; }
.rg-chat p b { margin-right: 4px; } .rg-chat p.sys { background: rgba(30, 111, 217, .62); }
.rg-say { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.rg-say input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 0; background: rgba(15, 12, 24, .62); color: #fff; font: 16px var(--font); }
.rg-say input::placeholder { color: rgba(255, 255, 255, .7); }
.rg-say button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; }
/* le streamer : la barre du Live en haut, au-dessus de son jeu */
.rg-host { position: fixed; z-index: 19; top: calc(108px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 6px; border-radius: 999px; background: rgba(15, 12, 24, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 13px var(--font); white-space: nowrap; max-width: calc(100% - 24px); }
.rg-host .rg-n { padding: 0 4px; }
.rg-host button { display: inline-grid; place-items: center; border: 0; min-width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: 700 13px var(--font); padding: 0 10px; }
.rg-host .rg-mic.off { background: rgba(214, 58, 74, .85); }
.rg-host .rg-fin { background: #ff3b5c; }
/* (2026-11-21) le Live qui bouge : l'objectif, le sondage, les défis (spectateur), le panneau « Animer » (streamer) */
.rg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-tags span { padding: 4px 10px; border-radius: 99px; background: rgba(15, 12, 24, .66); font: 700 12.5px var(--font); }
.rg-tags .rg-fan { background: rgba(255, 209, 102, .95); color: #2a1a0e; }
.rg-cote .rg-defi-b { position: relative; background: #ff3b5c; margin-bottom: 12px; }
.rg-cote .rg-defi-b small { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font: 700 10.5px var(--font); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.rg-pile { position: absolute; top: calc(84px + env(safe-area-inset-top)); left: 12px; right: 72px; display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.rg-obj, .rg-sond, .rg-defis { background: rgba(15, 12, 24, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 8px 10px; }
.rg-obj-t { display: flex; align-items: baseline; gap: 8px; font-size: 13px; } .rg-obj-t small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-obj-b { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-top: 6px; overflow: hidden; }
.rg-obj-b i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd166, #ff3b5c); transition: width .6s; }
.rg-obj.fini .rg-obj-b i { background: #2fbf71; }
.rg-sond { display: flex; flex-direction: column; gap: 5px; } .rg-sond > b { font-size: 14px; }
.rg-sond-c { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 36px; border: 0; border-radius: 10px; padding: 6px 10px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 14px var(--font); text-align: left; }
.rg-sond-c:disabled { opacity: 1; } .rg-sond-c i { position: absolute; inset: 0 auto 0 0; background: rgba(30, 111, 217, .55); }
.rg-sond-c span, .rg-sond-c small { position: relative; } .rg-sond-c small { margin-left: auto; } .rg-sond-c.moi { outline: 2px solid #ffd166; }
.rg-sond-n { font-size: 11.5px; }
.rg-defis p { margin: 0; font-size: 12.5px; line-height: 1.35; } .rg-defis p + p { margin-top: 4px; } .rg-defis p.ok small { color: #7ee2a8; }
.rg-defis button { margin-left: 6px; border: 0; border-radius: 99px; padding: 3px 9px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 11.5px var(--font); }
.rg-defi-f { position: absolute; right: 70px; bottom: calc(150px + env(safe-area-inset-bottom)); width: min(260px, calc(100% - 96px)); display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(15, 12, 24, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rg-defi-f small { font-size: 12px; line-height: 1.35; }
.rg-defi-f input { padding: 10px 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 16px var(--font); }
.rg-defi-prix { display: flex; gap: 6px; } .rg-defi-prix button { flex: 1; border: 0; border-radius: 12px; padding: 10px 4px; background: #ff3b5c; color: #fff; font: 700 13px var(--font); }
.rg-host .rg-anime { position: relative; } .rg-host .rg-anime.on { background: var(--blue); }
.rg-host .rg-anime b { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 99px; background: #ff3b5c; font-size: 11px; line-height: 17px; padding: 0 4px; }
.rg-panel { position: fixed; z-index: 19; top: calc(152px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); max-height: calc(100% - 330px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; padding: 12px 14px 14px; border-radius: 20px; background: rgba(15, 12, 24, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-family: var(--font); }
.rg-panel header { display: flex; align-items: center; justify-content: space-between; } .rg-panel header b { font-size: 16px; }
.rg-panel header button { border: 0; border-radius: 99px; padding: 7px 12px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13px var(--font); }
.rg-panel h5 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.rg-p-note { margin: 0; font-size: 13px; line-height: 1.4; opacity: .8; }
.rg-p-defi { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); } .rg-p-defi + .rg-p-defi { margin-top: 6px; } .rg-p-defi.ok { background: rgba(47, 191, 113, .18); }
.rg-p-defi p { margin: 0 0 6px; font-size: 14px; line-height: 1.35; } .rg-p-defi div { display: flex; gap: 6px; }
.rg-p-defi button, .rg-p-prix button { border: 0; border-radius: 10px; padding: 8px 12px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13px var(--font); }
.rg-p-defi button.oui { background: #2fbf71; }
.rg-p-form { display: flex; flex-direction: column; gap: 6px; } .rg-p-form .btn { margin-top: 2px; }
.rg-p-form input { padding: 10px 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 16px var(--font); }
.rg-p-form input::placeholder, .rg-defi-f input::placeholder { color: rgba(255, 255, 255, .6); }
.rg-p-prix { display: flex; flex-wrap: wrap; gap: 6px; } .rg-p-prix button.on { background: var(--blue); }
/* BabiTok : la musique sous la vidéo */
.bt-mus { margin: 4px 0 0; font-size: 13px; opacity: .9; }
.bt-mus-t { margin: 10px 0 6px; font-weight: 700; font-size: 14px; }
.bt-mus-choix { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.bt-mus-choix button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 14px; padding: 8px 12px; background: transparent; color: inherit; font: 13px var(--font); text-align: left; }
.bt-mus-choix button small { font-size: 11.5px; opacity: .7; } .bt-mus-choix button.on { border-color: var(--blue); background: rgba(30, 111, 217, .12); }
/* (2026-11-22) BabiTok : chercher quelqu’un */
.bt-cherche { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; padding-top: 4px; }
.bt-cherche-l { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); color: var(--mute); }
.bt-cherche-l .bt-svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.bt-cherche-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 16px var(--font); color: var(--ink); }
.bt-cherche-in::placeholder { color: var(--mute); font-weight: 500; }
.bt-gens { overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; }
.bt-gens-l { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.bt-gens-o { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.bt-gens-o .bt-av.petit { border-radius: 12px; box-shadow: none; border: 0; }
.bt-gens-t { display: flex; flex-direction: column; min-width: 0; }
.bt-gens-t b { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-gens-t small { font-size: 12.5px; color: var(--mute); }
.bt-gens-suivre { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--blue); color: #fff; font: 700 13px var(--font); cursor: pointer; }
.bt-gens-suivre.on { background: #eef0f3; color: var(--ink-2); }
.bt-gens-moi { flex: none; color: var(--mute); font-size: 12.5px; padding-right: 4px; }
.bt-cherche-in:focus, .bt-cherche-in:focus-visible { outline: none; }
.bt-cherche-l:focus-within { box-shadow: 0 0 0 2px var(--blue), var(--shadow-sm); color: var(--blue); }
/* (la 🔍 en plus dans la barre du haut : sur un petit téléphone, tout tient sur une ligne) */
@media (max-width: 419px) { .bt-top { gap: 6px; padding-left: 10px; padding-right: 10px; } .bt-top-d { gap: 5px; } .bt-top .bt-ico, .bt-top .bt-moi { width: 36px; height: 36px; } .bt-top .bt-ico .bt-svg { width: 20px; height: 20px; } .bt-tab { padding: 7px 10px; font-size: 13px; } }
/* le Mode streamer : ce qui est privé se brouille à l'écran ; le lien « Rejoins-moi » en bas */
body.streamer-on #dmList .tb, body.streamer-on #phone .ct-tx small, body.streamer-on .toast .dm-txt { filter: blur(6px); }
body.streamer-argent #hMoney, body.streamer-argent #phone .money, body.streamer-argent #phone .wallet b { filter: blur(7px); }
.st-tag { position: fixed; z-index: 19; left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; padding: 7px 12px; border-radius: 14px; background: rgba(30, 111, 217, .92); color: #fff; font-family: var(--font); pointer-events: none; box-shadow: var(--shadow-sm); }
.st-tag small { font-size: 11px; color: rgba(255, 255, 255, .88); letter-spacing: .02em; } .st-tag b { font-size: 14px; color: #fff; }
body.regard-on .st-tag { display: none; }
/* l'appli Live : les deux sortes de Live */
.lv-btns { display: flex; gap: 8px; } .lv-btns .btn { flex: 1; }
.lv-top { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(246, 180, 0, .14); font-size: 14px; }
.lv-jeu .ic { background: rgba(255, 59, 92, .12); }
.lv-streamers { margin: 12px 0; } .lv-streamers summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.lv-streamers ol { margin: 6px 0 0; padding-left: 22px; } .lv-streamers li { padding: 3px 0; }
/* (2026-11-21) le streamer lit les commentaires en jouant : sous sa barre, ils s'effacent seuls */
.rg-hchat { position: fixed; z-index: 18; top: calc(152px + env(safe-area-inset-top)); left: 12px; width: min(300px, calc(100% - 96px)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; color: #fff; font: 500 13px/1.3 var(--font); }
.rg-hchat p { margin: 0; align-self: flex-start; max-width: 100%; padding: 5px 10px; border-radius: 12px; background: rgba(15, 12, 24, .62); transition: opacity .5s; animation: rgHc .25s ease-out; overflow-wrap: anywhere; }
.rg-hchat p b { margin-right: 4px; color: #ffd23f; } .rg-hchat p.sys { background: rgba(30, 111, 217, .7); } .rg-hchat p.va { opacity: 0; }
body:has(#rgPanel) .rg-hchat { display: none; }
@keyframes rgHc { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* (2026-11-21) Ensemble : le Tribunal (dossier, jury), la Plume, la Mémoire, l'absence, les objectifs du grin (public/js/ensemble.js) */
.ens-tx, .ens-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); margin: 6px 0; resize: vertical; }
.ens-dossier h3, .ens-absence h3 { margin: 14px 0 6px; font-size: 14px; }
.ens-verdict { font-weight: 700; color: var(--green); margin: 8px 0; }
.ens-jury { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sand); border: var(--edge); margin: 8px 0; }
.ens-raison { color: var(--ink-2); font-style: italic; }
.ens-list { display: flex; flex-direction: column; gap: 6px; }
.ens-l { padding: 8px 10px; border-radius: var(--r-sm); background: var(--sand); }
.ens-l small { display: block; color: var(--mute); }
.ens-l p { margin: 4px 0 0; overflow-wrap: anywhere; }
.ens-l em { color: var(--mute); font-style: normal; }
.ens-chat { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding: 4px; border: var(--edge); border-radius: var(--r-sm); }
.ens-m { max-width: 85%; align-self: flex-end; padding: 6px 10px; border-radius: 12px; background: rgba(30, 111, 217, .1); }
.ens-m.acc { align-self: flex-start; background: rgba(228, 87, 46, .1); }
.ens-m small { color: var(--mute); font-size: 11px; }
.ens-m p { margin: 2px 0 0; overflow-wrap: anywhere; }
.ens-plumes { display: flex; flex-direction: column; gap: 10px; }
.ens-art { padding: 12px; border-radius: var(--r-sm); background: var(--paper); border: var(--edge); }
.ens-art b { display: block; font-size: 16px; margin: 2px 0 6px; }
.ens-art p { margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.ens-kick { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-d); }
.ens-votes { font-weight: 800; margin-right: auto; }
.ens-art .inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt-plume { margin-top: 16px; }
.mt-plume h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.mt-plume .ens-art { margin-bottom: 8px; }
.ens-obj .tx { flex: 1; min-width: 0; }
.ens-obj.ok .pr { color: var(--green); font-weight: 800; }
.ens-barre { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ens-barre i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
@media (prefers-color-scheme: dark) { .ens-art, .ens-tx, .ens-in { background: var(--solid); } }

/* (2026-11-24) Gbon → Mes comptes, Mouvements */
.ar-plus { color: var(--green); font-style: normal; } .ar-moins { color: var(--red); font-style: normal; }
.stat.ar-plus b { color: var(--green); } .stat.ar-moins b { color: var(--red); } .stat.ar-plus small, .stat.ar-moins small { color: var(--ink-2); }
.ar-per button { min-height: 34px; font-size: 13px; }
.ar-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 12px 0 4px; padding: 0 2px; border-bottom: var(--edge); }
.ar-bars span { flex: 1; display: flex; align-items: flex-end; gap: 1px; height: 100%; min-width: 0; }
.ar-bars i { flex: 1; min-height: 1px; border-radius: 3px 3px 0 0; background: var(--green); }
.ar-bars i.m, .ar-leg i.m { background: var(--red); }
.ar-leg { margin: 0 0 6px; font-size: 11.5px; color: var(--mute); } .ar-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; background: var(--green); }
.ar-cats { display: flex; flex-direction: column; gap: 6px; }
.ar-cat { background: var(--sand); border-radius: var(--r-sm); }
.ar-cat summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; min-height: 44px; }
.ar-cat summary::-webkit-details-marker { display: none; }
.ar-cat summary b { flex: 1; min-width: 0; font-size: 14.5px; }
.ar-v { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 700; }
.ar-cat .list { padding: 0 8px 8px; }
.ar-jt { font-weight: 600; color: var(--mute); font-size: 12px; }
.act .pr em { white-space: nowrap; }

/* (2026-11-24) favoris, fiche depuis les messages, filtres Bara, ⓘ des meubles */
.fav-h { display: flex; align-items: flex-start; gap: 8px; } .fav-h > span { flex: 1; min-width: 0; }
.fav-btn { flex: none; width: 40px; height: 40px; margin: -8px -6px 0 0; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--mute); }
.fav-btn.on { color: var(--yellow); }
.th-who.tap, .ct-av.tap { cursor: pointer; }
.bara-f { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.bara-l { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .bara-l::-webkit-scrollbar { display: none; }
.bara-l .b-tab { flex: none; }
.b-card { position: relative; }
.b-info { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); font: italic 700 13px/1 Georgia, serif; box-shadow: var(--shadow-sm); }
.news-tabs button { white-space: nowrap; }
.news-tabs:has(> button:nth-child(5)) button { font-size: 12.5px; padding: 0 3px; }

/* (2026-11-25) Turnstile à l’inscription */
.ts-box{margin:10px 0 2px;min-height:65px}

/* (2026-11-25) le salon du Cercle */
.cercle-salon{max-height:46vh;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:12px;background:rgba(0,0,0,.25);margin-bottom:8px}
.cercle-msg{display:flex;flex-direction:column;gap:2px;max-width:85%;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.07)}
.cercle-msg.moi{align-self:flex-end;background:rgba(201,162,39,.18)}
.cercle-msg.equipe{align-self:center;max-width:95%;background:rgba(201,162,39,.28)}
.cercle-msg b{font-size:12px;color:#d9b54a}
.cercle-msg small{font-size:10px;opacity:.6;align-self:flex-end}
/* (2026-11-25) la boîte à idées : les quatre onglets (populaires, nouvelles, faites, les miennes) */
.idee-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 8px; padding-bottom: 2px; scrollbar-width: none; }
.idee-tabs::-webkit-scrollbar { display: none; }
/* (2026-11-25) en route comme passager (gbaka, wôrô, taxi, voiture avec chauffeur) : on sort son téléphone */
#ridePhone { position: fixed; right: 14px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 12px; background: #fff; color: #1a1423; font: inherit; font-size: 14px; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
#ridePhone[hidden] { display: none; }
#ridePhone .ic { width: 22px; height: 22px; display: inline-flex; }
#ridePhone .ic img, #ridePhone .ic svg { width: 100%; height: 100%; }
body.riding #phone { z-index: 45; }
body.driving #phone { z-index: 45; }
body.course #ridePhone { right: auto; left: 12px; bottom: calc(196px + env(safe-area-inset-bottom)); }
/* (2026-11-25) la vitrine des pros et l'annuaire */
.vitrine-pro { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin: 8px 0 12px; border-radius: 14px; background: var(--card, rgba(255,255,255,.06)); border: 1px solid rgba(127,127,127,.18); }
.vitrine-pro .vp-h, .annu-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.annu-st { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.annu-st.ouv { background: rgba(48,164,108,.16); color: #30a46c; }
.annu-st.fer { background: rgba(229,72,77,.14); color: #e5484d; }
.vp-qs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.vp-q { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(127,127,127,.3); font-size: 13px; }
.vp-q input { width: auto !important; margin: 0; }
.vp-hrs { display: flex; gap: 10px; } .vp-hrs label { flex: 1; } .vp-hrs select { width: 100%; }
.annu { margin: 6px 0 10px; } .annu-l { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow-y: auto; }
.annu-pro { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(127,127,127,.25); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.annu-pro.on { border-color: #3e63dd; box-shadow: 0 0 0 2px rgba(62,99,221,.35); }
.annu-pro.ferme { opacity: .72; } .annu-pro:disabled { opacity: .45; cursor: not-allowed; }
.annu-credo { font-style: italic; opacity: .85; }
.vitrine-pro .row-btns { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
.sa-metier { font-size: 13px; font-weight: 600; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(62,99,221,.08); }
/* (2026-11-25) Coup de cœur */
.cc-intro { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .cc-intro b { font-size: 18px; }
.cc-carte { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid rgba(127,127,127,.2); background: linear-gradient(160deg, rgba(229,72,77,.08), rgba(62,99,221,.06)); margin: 8px 0; }
.cc-h { display: flex; align-items: center; gap: 10px; } .cc-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; background: #e5484d; } .cc-av.m { background: #3e63dd; } .cc-qui { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc-qui b { font-size: 17px; } .cc-bio { margin: 0; font-style: italic; } .cc-amb { display: flex; flex-direction: column; gap: 4px; } .cc-ch { opacity: .8; }
.cc-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; } .cc-fiche { background: none; border: 0; color: inherit; text-decoration: underline; opacity: .75; padding: 8px; width: 100%; cursor: pointer; font: inherit; }
.cc-likes { font-weight: 700; padding: 8px 10px; border-radius: 10px; background: rgba(229,72,77,.1); } .cc-etat { font-weight: 700; }
.cc-form label { display: flex; flex-direction: column; gap: 4px; }
/* (2026-11-25) les ambitions : de vraies pastilles à toucher (pas de case visible), pleines quand elles sont choisies ; « Je cherche » au style du jeu */
.cc-form { display: flex; flex-direction: column; gap: 12px; }
.cc-form .vp-qs { gap: 8px; margin: 0; }
.cc-form label.vp-q { flex-direction: row; position: relative; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; background: rgba(127,127,127,.06); border: 1.5px solid rgba(127,127,127,.25); transition: background .15s, border-color .15s, color .15s; user-select: none; }
.cc-form label.vp-q input { position: absolute; opacity: 0; width: 1px !important; height: 1px; pointer-events: none; }
.cc-form label.vp-q:has(input:checked) { background: #e5484d; border-color: #e5484d; color: #fff; }
.cc-form label.vp-q:has(input:checked)::before { content: '✓'; font-weight: 800; }
.cc-form label.vp-q:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.cc-form .note { margin: 0; font-weight: 700; opacity: 1; }
.cc-form select { font: inherit; font-size: 16px; padding: 12px 40px 12px 14px; border-radius: 14px; border: 1.5px solid rgba(127,127,127,.3); background: var(--solid, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; color: inherit; width: 100%; margin-top: 2px; }
/* (2026-11-29) Téléphone → Rôles (public/js/roles.js) */
.role-pill { font-style: normal; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: #1a1423; color: #fff; white-space: nowrap; }
.role-doms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.role-dom { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; padding: 7px 11px; border: var(--edge); border-radius: 999px; background: var(--paper); }
.role-dom input { margin: 0; }
.role-salles { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.role-salles .chip { flex: none; }
.atelier-salon { max-height: 46vh; overflow-y: auto; display: grid; gap: 8px; padding: 10px; margin: 8px 0; background: var(--sand); border-radius: var(--r-sm); }
.atelier-msg { display: grid; gap: 2px; max-width: 86%; padding: 8px 11px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 14.5px; line-height: 1.35; }
.atelier-msg b { font-size: 12.5px; color: #3a5bd9; }
.atelier-msg small { font-size: 11px; color: var(--mute); justify-self: end; }
.atelier-msg.moi { justify-self: end; background: #1a1423; color: #fff; }
.atelier-msg.moi b { color: #ffd166; }
.atelier-msg.moi small { color: rgba(255, 255, 255, .6); }
.atelier-msg.equipe { max-width: 100%; background: #fff4d6; border: 1.5px solid #f2c94c; }
.atelier-msg.equipe b { color: #9a6b00; }
.role-lien { text-decoration: none; color: inherit; }
.tst-form .role-dom { display: inline-flex; grid-auto-flow: column; gap: 6px; font-size: 13.5px; }
.tst-form .role-dom input { width: auto; padding: 0; }

/* ---------- (2026-11-29) les longues listes du téléphone : 12 lignes, « Voir plus », « Chercher », textes repliés, « ↑ Haut » (listes.js) ---------- */
.lp-cherche { display: block; width: 100%; min-height: 44px; margin: 4px 0 10px; padding: 10px 14px; border: var(--edge); border-radius: 999px; background: var(--sand); font: 500 15px var(--font); color: var(--ink); }
.lp-cherche:focus { outline: none; border-color: var(--blue); background: var(--paper); }
.lp-plus { display: block; width: 100%; min-height: 48px; margin: 10px 0 4px; border-radius: var(--r); background: var(--sand); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.lp-plus:active { transform: scale(.98); }
.list .lp-plus { margin: 0; border-radius: 0; border-top: var(--edge); background: var(--paper); color: var(--blue); }
.lp-replie { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
ul.lp-replie { max-height: 15.5em; display: block; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.lp-suite { color: var(--blue); font-weight: 700; font-size: 14px; min-height: 40px; padding: 0; }
.lp-haut { position: absolute; right: 22px; bottom: 30px; z-index: 3; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); }
/* le logement en ligne compacte : la maison en vignette à gauche, l'essentiel à droite (avant : une grande image par logement, 36 écrans) */
.home-card { display: flex; align-items: stretch; margin-bottom: 10px; }
.home-card .home-art { width: 108px; min-width: 108px; height: auto; object-fit: cover; align-self: center; }
.home-card div { padding: 10px 12px; gap: 1px; min-width: 0; }
.home-card b { font-size: 14.5px; line-height: 1.25; }
.home-card small { font-size: 12.5px; }
.phone-body { position: relative; }
.cr-path.lp-ferme .cr-steps, .cr-path.lp-ferme .cr-next { display: none; }
.lp-echelons { display: block; margin: 6px 0 4px; padding: 6px 0; color: var(--accent, #e4572e); font-weight: 700; font-size: 14px; background: none; min-height: 36px; }
/* (2026-11-29) la semaine neuve, juste après dimanche 20 h */
.sa-avant { margin: 0; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: #fff7df; color: #5a4300; } .sa-avant b { display: block; }
.sa-dom { cursor: pointer; }
.sa-guide ul { list-style: none; margin: 8px 0; padding: 0; } .sa-guide li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; } .sa-guide li b { color: #00804d; white-space: nowrap; } .sa-guide h4 em { font-size: 12px; color: #c47a3d; font-style: normal; }
