/* 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: 14px auto 0; 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; padding: 8px 12px; font-size: 12px; 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); }
.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; 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.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; }

/* 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; }
.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; padding: 8px 16px; 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; }

/* ---------- 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; }
#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: 8px; pointer-events: none; padding: 0 14px; }
.toast { background: var(--glass); color: #fff; padding: 10px 16px; border-radius: var(--r); max-width: 440px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .22s ease-out; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.toast.bad { background: var(--red); }
.toast.good { background: var(--green); }
@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; }
.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); 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: 34px; 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-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: 34px; 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: 28px; padding: 0 2px; }
/* ---------- 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: 10px 0 0; font-size: 12.5px; text-align: center; }
.lp-legal a { color: rgba(255, 255, 255, .72); font-weight: 600; }
