/* No Limits Agency — Extranet · thème « LED »
   L'idée : le plateau d'un créateur, la nuit. Une pièce sombre, un ruban de LED dont chacun choisit la couleur,
   et la lumière chaude d'un anneau lumineux. Ce qui compte est allumé ; le reste se tait.
   Cette feuille est complète : elle remplace styles.css sur la page qui la charge (elle ne s'y ajoute pas). */

:root {
  color-scheme: dark;
  /* ---- Mode nuit (par défaut). Le mode jour redéfinit les mêmes noms juste après : aucune règle plus bas n'écrit une couleur de fond ou de texte en dur. ---- */
  /* La pièce */
  --room: #0E0D17;
  --tint: 255, 255, 255;                    /* couleur des voiles posés sur la pièce (fonds légers, filets) : blanc la nuit, encre le jour */
  --slab: rgba(255, 255, 255, 0.045);       /* un bloc : du verre, la lumière du ruban passe à travers */
  --slab-2: rgba(255, 255, 255, 0.075);
  --slab-shadow: inset 0 1px 0 rgba(var(--led-rgb), 0.17);   /* le filet de lumière sur l'arête du haut */
  --pane: #1C1B29;                          /* ce qui flotte au-dessus de la page (fenêtres, listes) : opaque */
  --pane-2: #262536;
  --dial: #15141F;
  --inset: rgba(4, 3, 9, 0.55);             /* cases de saisie : en creux */
  --glass: 30, 29, 44;                      /* panneaux flottants translucides (pastille, bandeaux) */
  --rail: rgba(10, 9, 17, 0.7);
  --bar: rgba(14, 13, 23, 0.97);
  --sheet: rgba(12, 11, 20, 0.97);
  --login-card: rgba(24, 23, 36, 0.84);
  --veil: rgba(5, 4, 10, 0.74);
  --veil-blur: rgba(5, 4, 10, 0.6);
  --shade: rgba(0, 0, 0, 0.5);              /* ombre de ce qui flotte */
  --shade-strong: rgba(0, 0, 0, 0.62);
  --line: rgba(var(--tint), 0.075);
  --line-2: rgba(var(--tint), 0.14);
  /* Le texte : un blanc chaud, celui de l'anneau lumineux */
  --text: #F4F0E7;
  --muted: #ACAABA;
  --faint: #807E8E;
  /* L'action principale : la nuit, un bouton allumé ; le jour, un bouton d'encre */
  --key: #FEF3DE;
  --key-ink: #110D17;
  --key-hover: #FFFFFF;
  --key-glow: 254, 243, 222;
  /* L'anneau lumineux (connexion, nom de l'agence, chargement) */
  --ring: #FEF3DE;
  --ring-rgb: 254, 243, 222;
  /* Le ruban de LED (violet par défaut ; voir les autres couleurs plus bas) */
  --led: #AD98FF;
  --led-hi: #D1C9FE;                        /* la teinte pour le texte et les liens */
  --led-deep: #6C3CCD;
  --led-core: var(--led-hi);                /* le cœur du ruban */
  --led-rgb: 173, 152, 255;
  /* Les couleurs qui ont un sens */
  --ok: #44E4A4; --ok-rgb: 68, 228, 164; --on-ok: #03261A; --ok-text: #B9F6DD; --ok-hover: #6FF0BC;
  --bad: #FE7081; --bad-rgb: 254, 112, 129; --on-bad: #2A060D; --bad-text: #FFC2CA; --bad-hover: #FF8C9A;
  --warn: #FCBE54; --warn-rgb: 252, 190, 84; --on-warn: #2B1900; --warn-text: #FEE2AD; --warn-hover: #FFD27F;
  --gold: #F3C443;
  /* Le diamant, symbole des soldes : dessin à facettes, une palette pour la nuit, une pour le jour. */
  --gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.2 3.5 17.8 3.5 22.5 9.6 12 21.5 1.5 9.6z' fill='%2358C8F2'/%3E%3Cpath d='M1.5 9.6 6.2 3.5 8.4 9.6z' fill='%237FDBFA'/%3E%3Cpath d='M6.2 3.5 12 3.5 8.4 9.6z' fill='%23BDEFFF'/%3E%3Cpath d='M12 3.5 15.6 9.6 8.4 9.6z' fill='%23EAFBFF'/%3E%3Cpath d='M12 3.5 17.8 3.5 15.6 9.6z' fill='%23A6E8FD'/%3E%3Cpath d='M17.8 3.5 22.5 9.6 15.6 9.6z' fill='%2358C8F2'/%3E%3Cpath d='M1.5 9.6 8.4 9.6 12 21.5z' fill='%233FB6EA'/%3E%3Cpath d='M8.4 9.6 15.6 9.6 12 21.5z' fill='%2386DDFB'/%3E%3Cpath d='M15.6 9.6 22.5 9.6 12 21.5z' fill='%232A9FDB'/%3E%3C/svg%3E");
  --lvl-a: #E9E7F2;                         /* anneau des premiers badges */
  --lvl-b: #9C9AAE;
  /* Formes */
  --r-slab: 22px;
  --r-ctl: 14px;
  --r-sm: 10px;
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Lues par le code du site (jauge du palier) */
  --ring-on: var(--led);
  --ring-off: rgba(var(--tint), 0.1);
  /* Anciens noms, gardés par précaution */
  --accent: var(--led);
  --accent-dark: var(--led-hi);
  --ink: var(--text);
  --soft: rgba(var(--tint), 0.075);
  --danger: var(--bad);
}

/* ---- Mode jour : la même pièce, volets ouverts. Fonds clairs, texte d'encre ; la lumière du ruban reste, en plus soutenu pour se lire sur du clair. ---- */
html[data-mode="jour"] {
  color-scheme: light;
  --room: #F3F2F8;
  --tint: 23, 20, 31;
  --slab: rgba(255, 255, 255, 0.84);
  --slab-2: rgba(255, 255, 255, 0.92);
  --slab-shadow: 0 0 0 1px rgba(23, 20, 31, 0.055), 0 1px 2px rgba(40, 32, 90, 0.05), 0 16px 36px -22px rgba(40, 32, 90, 0.24);
  --pane: #FFFFFF;
  --pane-2: #FFFFFF;
  --dial: #FFFFFF;
  --inset: rgba(23, 20, 31, 0.04);
  --glass: 255, 255, 255;
  --rail: rgba(255, 255, 255, 0.58);
  --bar: rgba(246, 245, 251, 0.97);
  --sheet: rgba(246, 245, 251, 0.98);
  --login-card: rgba(255, 255, 255, 0.86);
  --veil: rgba(28, 22, 60, 0.42);
  --veil-blur: rgba(28, 22, 60, 0.3);
  --shade: rgba(40, 32, 90, 0.16);
  --shade-strong: rgba(40, 32, 90, 0.24);
  --text: #17141F;
  --muted: #5F5B70;
  --faint: #737083;
  --key: #17141F;
  --key-ink: #FFFFFF;
  --key-hover: #2E2942;
  --key-glow: 23, 20, 31;
  --ring: var(--led);
  --ring-rgb: var(--led-rgb);
  --led: #875DF0;
  --led-hi: #6431C3;
  --led-deep: #5827B1;
  --led-core: #A287FE;
  --led-rgb: 135, 93, 240;
  --ok: #0A8259; --ok-rgb: 10, 130, 89; --on-ok: #FFFFFF; --ok-text: #0B6B4A; --ok-hover: #0B9566;
  --bad: #D92D4A; --bad-rgb: 217, 45, 74; --on-bad: #FFFFFF; --bad-text: #A01230; --bad-hover: #C01F3B;
  --warn: #A8620A; --warn-rgb: 168, 98, 10; --on-warn: #FFFFFF; --warn-text: #8A4F00; --warn-hover: #8F5307;
  --gold: #9A6A12;
  --gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.2 3.5 17.8 3.5 22.5 9.6 12 21.5 1.5 9.6z' fill='%231F9AD6'/%3E%3Cpath d='M1.5 9.6 6.2 3.5 8.4 9.6z' fill='%233DB5E8'/%3E%3Cpath d='M6.2 3.5 12 3.5 8.4 9.6z' fill='%237FD6F7'/%3E%3Cpath d='M12 3.5 15.6 9.6 8.4 9.6z' fill='%23B5E9FB'/%3E%3Cpath d='M12 3.5 17.8 3.5 15.6 9.6z' fill='%2362C8F1'/%3E%3Cpath d='M17.8 3.5 22.5 9.6 15.6 9.6z' fill='%231F9AD6'/%3E%3Cpath d='M1.5 9.6 8.4 9.6 12 21.5z' fill='%231687C6'/%3E%3Cpath d='M8.4 9.6 15.6 9.6 12 21.5z' fill='%2344B7EA'/%3E%3Cpath d='M15.6 9.6 22.5 9.6 12 21.5z' fill='%230E6FAE'/%3E%3C/svg%3E");
  --lvl-a: #A7A4B8;
  --lvl-b: #6F6C82;
}

/* Couleurs du ruban : même lumière, autre teinte. D'abord pour la nuit, puis pour le jour. */
html[data-led="bleu"] { --led: #7CAAFF; --led-hi: #B9D2FE; --led-deep: #1256D8; --led-rgb: 124, 170, 255; }
html[data-led="glacier"] { --led: #18BDE7; --led-hi: #85E0FF; --led-deep: #006E89; --led-rgb: 24, 189, 231; }
html[data-led="menthe"] { --led: #19C799; --led-hi: #8CE6C4; --led-deep: #017558; --led-rgb: 25, 199, 153; }
html[data-led="lime"] { --led: #89BE47; --led-hi: #BBDF99; --led-deep: #497104; --led-rgb: 137, 190, 71; }
html[data-led="ambre"] { --led: #DC9E10; --led-hi: #F4CA84; --led-deep: #815C07; --led-rgb: 220, 158, 16; }
html[data-led="corail"] { --led: #FE825C; --led-hi: #FEC0AD; --led-deep: #AC3400; --led-rgb: 254, 130, 92; }
html[data-led="rose"] { --led: #F77CB0; --led-hi: #FEBBD4; --led-deep: #B20369; --led-rgb: 247, 124, 176; }
html[data-mode="jour"][data-led="bleu"] { --led: #3376FB; --led-hi: #064CCE; --led-deep: #0040BB; --led-core: #689CFE; --led-rgb: 51, 118, 251; }
html[data-mode="jour"][data-led="glacier"] { --led: #018EAF; --led-hi: #00657E; --led-deep: #05596E; --led-core: #05AFD7; --led-rgb: 1, 142, 175; }
html[data-mode="jour"][data-led="menthe"] { --led: #019772; --led-hi: #006B50; --led-deep: #055E47; --led-core: #05BA8D; --led-rgb: 1, 151, 114; }
html[data-mode="jour"][data-led="lime"] { --led: #5F9206; --led-hi: #426803; --led-deep: #3A5B00; --led-core: #78B31C; --led-rgb: 95, 146, 6; }
html[data-mode="jour"][data-led="ambre"] { --led: #A6770C; --led-hi: #765406; --led-deep: #694902; --led-core: #CC9313; --led-rgb: 166, 119, 12; }
html[data-mode="jour"][data-led="corail"] { --led: #D9470C; --led-hi: #9E2F00; --led-deep: #8B2A03; --led-core: #F86E42; --led-rgb: 217, 71, 12; }
html[data-mode="jour"][data-led="rose"] { --led: #D83486; --led-hi: #A40360; --led-deep: #920055; --led-core: #F167A4; --led-rgb: 216, 52, 134; }

/* ------------------------------------------------------------------ Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--room); scrollbar-color: rgba(var(--tint), 0.18) transparent; }
body { margin: 0; color: var(--text); font: 400 15px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 30px/1.12 var(--f-display); letter-spacing: -0.015em; }
h2 { font: 500 16px/1.3 var(--f-display); letter-spacing: -0.005em; }
h3 { font: 600 15px/1.35 var(--f-text); margin-top: 8px; }
a { color: var(--led-hi); text-underline-offset: 3px; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--led-rgb), 0.38); }
:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }

.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 0; color: transparent; }
.boot::before { content: ''; width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(var(--ring-rgb), 0.14); border-top-color: var(--ring); box-shadow: 0 0 24px rgba(var(--led-rgb), 0.5); }
noscript .boot { position: static; display: block; padding: 48px 24px; font-size: 15px; color: var(--muted); text-align: center; }
noscript .boot::before { content: none; }
.muted { color: var(--muted); }
.muted-light { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.strike { text-decoration: line-through; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clickable { cursor: pointer; }

/* La lumière : un ruban de LED tout en haut de l'écran, et son halo sur le mur. */
body::before { content: ''; position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--led-rgb), 0) 0%, var(--led) 16%, var(--led-core) 50%, var(--led) 84%, rgba(var(--led-rgb), 0) 100%);
  box-shadow: 0 0 16px 2px rgba(var(--led-rgb), 0.7), 0 0 54px 6px rgba(var(--led-rgb), 0.34); }
body::after { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 44% at 50% 0%, rgba(var(--led-rgb), 0.2), rgba(var(--led-rgb), 0.06) 50%, transparent 76%) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Le nom de l'agence. Le « o » de « No » est un anneau lumineux. */
.brand { display: inline-flex; align-items: center; font: 800 15px/1 var(--f-display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.brand-o { display: inline-block; width: 0.78em; height: 0.78em; margin: 0 0.06em 0 0.04em; vertical-align: -0.02em; border-radius: 50%; border: 0.185em solid var(--ring);
  box-shadow: 0 0 0.55em rgba(var(--led-rgb), 0.95), inset 0 0 0.3em rgba(var(--led-rgb), 0.85); }
.brand-2 { margin-left: 0.5em; font-weight: 300; color: var(--muted); }
.brand.light { font-size: 13.5px; }

/* ------------------------------------------------- Écrans centrés ---- */
.center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center.top { align-items: flex-start; padding-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--slab); border: 1px solid transparent; border-radius: var(--r-slab); box-shadow: var(--slab-shadow); }
/* L'accueil du tableau de bord : du texte posé sur la page, sans bloc. */
.card.hello { padding: 0 2px; background: none; box-shadow: none; gap: 6px; }
.card.hello h2 { font-size: 18px; }
.card-narrow { width: 100%; max-width: 440px; border-radius: 28px; padding: 34px; gap: 18px; }
.card-wide { width: 100%; max-width: 760px; border-radius: 28px; padding: 30px; gap: 18px; }
.card-form { max-width: 520px; }
.center > .card { background: var(--login-card); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px var(--shade); }
.center > .card h1 { font-size: 24px; }

/* Connexion : l'anneau lumineux derrière la carte. */
.login-bg { position: relative; overflow: hidden; }
.login-bg::before { content: ''; position: absolute; left: 50%; top: calc(50% - var(--lift, 0px)); width: min(1500px, 350vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--led-rgb), 0.05) 0%, rgba(var(--led-rgb), 0.13) 34%, rgba(var(--led-rgb), 0.36) 42.6%, rgba(var(--led-rgb), 0.15) 52%, rgba(var(--led-rgb), 0.04) 70%, transparent 100%); }
.login-bg::after { content: ''; position: absolute; left: 50%; top: calc(50% - var(--lift, 0px)); width: min(640px, 149.3vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 14px solid var(--ring); box-shadow: 0 0 22px 3px rgba(var(--ring-rgb), 0.6), 0 0 70px 6px rgba(var(--led-rgb), 0.55), inset 0 0 22px 3px rgba(var(--ring-rgb), 0.5), inset 0 0 70px 6px rgba(var(--led-rgb), 0.4); }
.login-bg > .card { position: relative; z-index: 1; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.login-bg .brand { font-size: 17px; }

/* Règlement à signer */
.rules-box { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--inset); }
.rules { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--muted); }
.rules-h { font-weight: 600; color: var(--text); }
.sign-card { margin: auto; }
.sign-card > .brand { align-self: center; }
.sign-card > h1, .sign-card > p { text-align: center; }
.sign-card form { align-items: center; }
.sign-card form .field { width: 100%; max-width: 420px; }
.sign-card form .row { justify-content: center; }
.sign-card form .small { text-align: center; }

/* ---------------------------------------- Formulaires et boutons ---- */
form { display: flex; flex-direction: column; gap: 14px; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
form.grid .note { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.end { justify-content: flex-end; }
label, .label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.hint { font-size: 13px; color: var(--faint); }
input[type="text"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], input[type="file"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--inset); color: var(--text); font: inherit; font-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 42px; background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ACAABA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="file"] { padding: 10px 12px; font-size: 14px; color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--led); box-shadow: 0 0 0 4px rgba(var(--led-rgb), 0.2), 0 0 22px rgba(var(--led-rgb), 0.18); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--inset) inset; caret-color: var(--text); }
.checkline { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-weight: 400; color: var(--text); cursor: pointer; }
.checkline input { width: 20px; height: 20px; flex: none; accent-color: var(--led); }
.checkline.slim { min-height: 44px; padding: 6px 12px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; margin-top: 16px; }
.row > input[type="text"] { flex: 1 1 200px; max-width: 280px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(var(--tint), 0.055); color: var(--text); font: 500 14.5px/1.2 var(--f-text); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn.primary { border-color: transparent; background: var(--key); color: var(--key-ink); font-weight: 600; box-shadow: 0 0 0 0 rgba(var(--key-glow), 0), 0 6px 22px -6px rgba(var(--key-glow), 0.5); }
.btn.dark { border-color: transparent; background: rgba(var(--tint), 0.16); font-weight: 600; }
.btn.danger { border-color: rgba(var(--bad-rgb), 0.5); background: transparent; color: var(--bad); }
.btn.danger.solid { border-color: transparent; background: var(--bad); color: var(--on-bad); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }   /* un lien en forme de bouton (page d’erreur) */
.btn.big { flex: 1 1 200px; min-height: 60px; padding: 14px 20px; font-size: 16px; font-weight: 600; }
.btn.done, .btn.primary.done { border-color: transparent; background: var(--ok); color: var(--on-ok); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.link { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--led-hi); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.pseudo { min-height: 0; font-size: inherit; font-weight: inherit; text-decoration: none; }
a.link { display: inline-flex; align-items: center; }
@media (hover: hover) {
  .btn:hover { background: rgba(var(--tint), 0.11); border-color: rgba(var(--tint), 0.22); }
  .btn.primary:hover { background: var(--key-hover); box-shadow: 0 0 0 4px rgba(var(--key-glow), 0.14), 0 8px 30px -6px rgba(var(--key-glow), 0.75); }
  .btn.dark:hover { background: rgba(var(--tint), 0.24); }
  .btn.danger:hover { background: rgba(var(--bad-rgb), 0.14); border-color: var(--bad); }
  .btn.danger.solid:hover { background: var(--bad-hover); }
  .btn.done:hover, .btn.primary.done:hover { background: var(--ok); }
  .link.pseudo:hover { text-decoration: underline; }
}

/* ------------------------------------------------------- Messages ---- */
.note { padding: 12px 14px; border-radius: var(--r-ctl); background: rgba(var(--tint), 0.055); font-size: 14px; color: var(--text); }
.note.bad { background: rgba(var(--bad-rgb), 0.13); color: var(--bad-text); box-shadow: inset 3px 0 0 var(--bad); }
.note.ok { background: rgba(var(--ok-rgb), 0.12); color: var(--ok-text); box-shadow: inset 3px 0 0 var(--ok); }
.note.warn { background: rgba(var(--warn-rgb), 0.12); color: var(--warn-text); box-shadow: inset 3px 0 0 var(--warn); }
.banner { padding: 12px 16px; border-radius: var(--r-ctl); background: rgba(var(--warn-rgb), 0.14); color: var(--warn-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--warn); }
.cred { padding: 16px; border: 1px solid rgba(var(--led-rgb), 0.6); border-radius: 16px; background: rgba(var(--led-rgb), 0.08); display: flex; flex-direction: column; gap: 8px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(var(--tint), 0.08); color: var(--muted); }
.tag.actif { background: rgba(var(--ok-rgb), 0.14); color: var(--ok); }
.tag.attente { background: rgba(var(--warn-rgb), 0.15); color: var(--warn); }
.tag.new { margin-left: 8px; background: var(--bad); color: var(--on-bad); }
.dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: var(--on-bad); font-size: 12px; font-weight: 700; vertical-align: middle; }
.danger-panel { border-color: rgba(var(--bad-rgb), 0.5) !important; background: rgba(var(--bad-rgb), 0.09) !important; }

/* --------------------------------------------- Application connectée ---- */
.shell { display: block; min-height: 100vh; }
.side { display: flex; flex-direction: column; gap: 16px; color: var(--muted); }
.side-head { padding: 0 8px; }
.home-link { display: block; cursor: pointer; border-radius: 10px; }
.home-link:focus-visible { outline: 2px solid var(--led); outline-offset: 5px; }
.side-title { margin-top: 7px; font: 400 12.5px/1 var(--f-text); color: var(--faint); }
.wallet { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(var(--tint), 0.04); color: var(--muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.wallet > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wallet b { color: var(--text); font: 600 13px/1.2 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Le diamant reste le symbole des soldes et des bonus, comme sur l'habillage d'origine. */
.wallet b::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 5px; background: var(--gem) center / contain no-repeat; vertical-align: -2px; }
.wl-short { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  position: relative; display: flex; align-items: center; min-height: 42px; padding: 9px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 500 14.5px/1.3 var(--f-text); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-item::before { content: ''; flex: none; width: 19px; height: 19px; margin-right: 12px; background: currentColor; opacity: 0.85; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.nav-item[hidden] { display: none !important; }
.nav-item.on { color: var(--text); background: rgba(var(--tint), 0.07); }
.nav-item.on::before { background: var(--led-hi); opacity: 1; }
.nav-item.on::after { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 0 3px 3px 0; background: var(--led); box-shadow: 0 0 12px 1px rgba(var(--led-rgb), 0.85); }
.nav-item[data-page="dash"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='9' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='5' rx='2'/%3E%3Crect x='13.5' y='11.5' width='7' height='9' rx='2'/%3E%3Crect x='3.5' y='15.5' width='7' height='5' rx='2'/%3E%3C/svg%3E"); }
.nav-item[data-page="stats"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-8M12 20V4M19 20v-5'/%3E%3C/svg%3E"); }
.nav-item[data-page="goals"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.3'/%3E%3Ccircle cx='12' cy='12' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.nav-item[data-page="games"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Ccircle cx='8.6' cy='8.6' r='.7' fill='%23000'/%3E%3Ccircle cx='15.4' cy='8.6' r='.7' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='.7' fill='%23000'/%3E%3Ccircle cx='8.6' cy='15.4' r='.7' fill='%23000'/%3E%3Ccircle cx='15.4' cy='15.4' r='.7' fill='%23000'/%3E%3C/svg%3E"); }
.nav-item[data-page="savings"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6.5' rx='7.5' ry='3'/%3E%3Cpath d='M4.5 6.5v5.5c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3V6.5'/%3E%3Cpath d='M4.5 12v5.5c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3V12'/%3E%3C/svg%3E"); }
.nav-item[data-page="balance"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 4h9.6l4.2 5.6L12 20.5 3 9.6 7.2 4z'/%3E%3Cpath d='M3 9.6h18M9.6 4l-1.7 5.6L12 20.5l4.1-10.9L14.4 4'/%3E%3C/svg%3E"); }
.nav-item[data-page="team"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.3'/%3E%3Cpath d='M3 19.5c.3-3.2 2.8-5.3 6-5.3s5.7 2.1 6 5.3'/%3E%3Cpath d='M15.8 4.9a3.3 3.3 0 010 6.2M18 14.7c1.7.8 2.8 2.5 3 4.8'/%3E%3C/svg%3E"); }
.nav-item[data-page="groups"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3.5' width='6' height='5' rx='1.5'/%3E%3Crect x='3.5' y='15.5' width='6' height='5' rx='1.5'/%3E%3Crect x='14.5' y='15.5' width='6' height='5' rx='1.5'/%3E%3Cpath d='M12 8.5V12M6.5 15.5V12h11v3.5'/%3E%3C/svg%3E"); }
.nav-item[data-page="accounts"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8.6' cy='10.8' r='2'/%3E%3Cpath d='M5.6 15.8c.6-1.3 1.7-2 3-2s2.4.7 3 2M14.5 10h3.5M14.5 13.5h2.5'/%3E%3C/svg%3E"); }
.nav-item[data-page="rules"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4.5 4.5v11a1.5 1.5 0 01-1.5 1.5H7A1.5 1.5 0 015.5 19V5A1.5 1.5 0 017 3.5z'/%3E%3Cpath d='M14 3.5V8h4.5M8.8 12.5h6.4M8.8 16h4.2'/%3E%3C/svg%3E"); }
.nav-item[data-page="contact"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.5c0 4.1-3.8 7.5-8.5 7.5-1.2 0-2.3-.2-3.3-.6L4 20l1.3-3.7c-1.1-1.3-1.8-3-1.8-4.8C3.5 7.4 7.3 4 12 4s8.5 3.4 8.5 7.5z'/%3E%3C/svg%3E"); }
.nav-item[data-page="inbox"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3.8 7.5l8.2 6 8.2-6'/%3E%3C/svg%3E"); }
.nav-item[data-page="account"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.3' r='3.8'/%3E%3Cpath d='M4.5 20c.6-3.5 3.6-5.8 7.5-5.8s6.9 2.3 7.5 5.8'/%3E%3C/svg%3E"); }
.nav-item[data-page="admin"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h8.5M17.5 7H20M4 12h2.5M11.5 12H20M4 17h10.5M19.5 17h.5'/%3E%3Ccircle cx='15' cy='7' r='2.2'/%3E%3Ccircle cx='9' cy='12' r='2.2'/%3E%3Ccircle cx='17' cy='17' r='2.2'/%3E%3C/svg%3E"); }
.nav-item .dot { margin-left: auto; }
.side-foot { padding: 14px 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.side-foot .btn { min-height: 40px; font-size: 14px; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.content { max-width: 1080px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.menu-btn { display: none; }
@media (hover: hover) {
  .nav-item:hover { color: var(--text); background: rgba(var(--tint), 0.045); }
  .nav-item.on:hover { background: rgba(var(--tint), 0.085); }
  .wallet:hover { border-color: rgba(var(--led-rgb), 0.45); background: rgba(var(--tint), 0.06); }
}

/* Ordinateur : le menu est fixé à gauche, la liste des pages défile si l'écran est petit. */
@media (min-width: 761px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 256px; padding: 26px 14px 18px; overflow: hidden; background: var(--rail); border-right: 1px solid var(--line); }
  .side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(var(--tint), 0.2) transparent; }
  /* S'il reste des pages plus bas (ou plus haut), la liste s'estompe de ce côté. */
  .side .nav.cut-bot { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent); }
  .side .nav.cut-top { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 46px); mask-image: linear-gradient(to bottom, transparent, #000 46px); }
  .side .nav.cut-top.cut-bot { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 46px, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 46px, #000 calc(100% - 46px), transparent); }
  .side-head, .side-foot { flex: none; }
  .main { margin-left: 256px; min-height: 100vh; padding: 44px 44px 64px; }
}
/* Écran d'ordinateur peu haut : le menu se resserre, pour que toutes les pages et le pied (déconnexion, nuit / jour)
   tiennent sans défiler. */
@media (min-width: 761px) and (max-height: 940px) {
  .side { padding-top: 20px; padding-bottom: 14px; gap: 12px; }
  .side-title { display: none; }
  .wallet { margin-top: 14px; padding: 9px 12px; gap: 5px; }
  .nav-item { min-height: 36px; padding: 6px 14px; }
  .side-foot { padding-top: 10px; gap: 6px; }
  .side-foot > .muted-light { display: none; }
  .side-foot .btn { min-height: 36px; }
  .side-foot .mode-sw { margin-top: 2px; }
  .side-foot .mode-sw button { min-height: 30px; }
}
/* Plus bas encore, sauf sur un écran tactile, où les lignes doivent rester faciles à toucher. */
@media (min-width: 761px) and (max-height: 770px) and (pointer: fine), (min-width: 761px) and (max-height: 770px) and (pointer: none) {
  .side { padding-top: 14px; gap: 10px; }
  .side .nav { gap: 1px; }
  .nav-item { min-height: 32px; padding: 4px 14px; font-size: 14px; }
}

/* ------------------------------------------ Lignes, volets, encarts ---- */
.acc { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.acc-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acc-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.acc-edit.four { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.acc > .top-track { display: block; margin: 6px 0 4px; }
.line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.line.plain { border-top: 0; padding: 0; align-items: baseline; }
.line.mid { align-items: center; }
.news { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.goal { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-ctl); background: rgba(var(--tint), 0.045); }
.goal .top-bar { transition: none; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid rgba(var(--led-rgb), 0.4); border-radius: 18px; background: rgba(var(--led-rgb), 0.055); }
.card.inner { margin-top: 16px; background: rgba(var(--tint), 0.035); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
.fold-head { border-top: 0; padding: 0; align-items: center; flex-wrap: nowrap; gap: 12px; }
.fold-head h2, .fold-head h3 { margin: 0; min-width: 0; }
.fold-head .btn { flex: none; min-height: 38px; padding: 0 15px; font-size: 13.5px; }
.fold-sub { gap: 10px; }
/* Des volets qui se suivent forment une seule liste (un filet de lumière les sépare), au lieu d'une pile de blocs. */
.card.fold { padding: 17px 24px; }
.card.fold + .card.fold { margin-top: -16px; border-top-left-radius: 0; border-top-right-radius: 0; }
.card.fold:has(+ .card.fold) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card .fold-sub { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(var(--tint), 0.03); }
.stat-head { flex-wrap: wrap; gap: 8px 16px; }
.stat-head > strong { min-width: 150px; }
.stat-head > strong .tag { margin-left: 8px; }
.stat-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1 1 260px; font-size: 14px; color: var(--muted); }
.stat-sum b { color: var(--text); font-weight: 600; }
.todo { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.todo .line { font-size: 14px; }
.month { min-width: 150px; text-align: center; text-transform: capitalize; font-family: var(--f-display); font-weight: 500; font-size: 14px; }
.savebar { position: sticky; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: rgba(var(--glass), 0.88); border: 1px solid var(--line-2); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 40px var(--shade); }
.banner.view { position: sticky; top: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: rgba(var(--glass), 0.94); color: var(--led-hi);
  border: 1px solid rgba(var(--led-rgb), 0.6); box-shadow: 0 14px 40px var(--shade); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (hover: hover) {
  .fold-head.clickable:hover h2, .fold-head.clickable:hover h3, .stat-head.clickable:hover > strong { color: var(--led-hi); }
}

/* ------------------------------------ Chiffres, tableaux, graphiques ---- */
/* Les cases de chiffres forment un seul panneau, séparé par des traits fins (pas une rangée de cartes identiques). */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; overflow: hidden; border-radius: var(--r-slab); background: var(--slab); box-shadow: var(--slab-shadow); }
.card .kpis { background: rgba(var(--tint), 0.035); box-shadow: none; border-radius: 18px; }
.kpis > .card { margin: 0 -1px -1px 0; padding: 20px; gap: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.kpis > .card:only-child { grid-column: 1 / -1; }
.kpi-v { font: 600 23px/1.18 var(--f-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.kpi-v .unit { font: 500 13px/1 var(--f-text); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.kpi-btn { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kpi-btn:disabled { cursor: default; }
.kpi-btn.open { background: rgba(var(--tint), 0.055); box-shadow: inset 0 -2px 0 var(--led); }
.kpi-hint { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--led-hi); }
.kpi-btn.has-ring > div:nth-child(-n+2) { padding-right: 62px; }
.ring { position: absolute; top: 16px; right: 16px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ring-off); box-shadow: 0 0 22px rgba(var(--led-rgb), 0.28); }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--dial); }
.ring > span { position: relative; font: 600 10.5px/1 var(--f-display); color: var(--text); }
.trend b { display: inline-block; font-weight: 700; }
.trend.up b { color: var(--ok); }
.trend.down b { color: var(--bad); }
@media (hover: hover) {
  .kpi-btn:not(:disabled):hover { background: rgba(var(--tint), 0.035); }
  .kpi-btn:not(:disabled):hover .kpi-hint { color: var(--text); }
}

.scroll { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
thead th { border-top: 0; color: var(--faint); font-weight: 500; font-size: 12.5px; }
tbody th { font-weight: 600; }
tfoot th, tfoot td { font-weight: 600; background: rgba(var(--tint), 0.045); }
tr.on th, tr.on td { background: rgba(var(--led-rgb), 0.13); font-weight: 600; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td { padding: 13px 10px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats-table thead th { border-top: 0; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.stats-table th:first-child { text-align: left; }
.stats-table tbody td { font: 500 16px/1.2 var(--f-display); }
.stats-table tbody tr:last-child th, .stats-table tbody tr:last-child td { background: rgba(var(--led-rgb), 0.09); }

.top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.top li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.top-rank { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--tint), 0.07); color: var(--muted); font: 600 11.5px/1 var(--f-display); }
/* Podium : le chiffre du rang dans un disque (or chaud, argent, bronze), à la place des médailles dessinées. */
.top-rank.medal { font-size: 0; }
.top-rank.medal::before { font: 700 12px/1 var(--f-display); }
.top li:nth-child(1) .top-rank.medal { background: var(--key); color: var(--key-ink); box-shadow: 0 0 0 4px rgba(var(--key-glow), 0.12), 0 0 22px rgba(var(--key-glow), 0.45); }
.top li:nth-child(1) .top-rank.medal::before { content: '1'; }
.top li:nth-child(2) .top-rank.medal { background: #C4C6D4; color: #14131C; }
.top li:nth-child(2) .top-rank.medal::before { content: '2'; }
.top li:nth-child(3) .top-rank.medal { background: #C9976A; color: #1B120A; }
.top li:nth-child(3) .top-rank.medal::before { content: '3'; }
.top-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; overflow-wrap: anywhere; }
.top-track { display: block; height: 6px; border-radius: 3px; background: rgba(var(--tint), 0.07); }
.top-bar { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--led-deep), var(--led)); box-shadow: 0 0 12px rgba(var(--led-rgb), 0.45); }
.top-val { flex: none; font: 500 14px/1 var(--f-display); }
.top-up { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ok); }
.top-track.big { height: 12px; border-radius: 6px; }
.top-track.big .top-bar { height: 12px; border-radius: 6px; }

.chart { display: flex; align-items: stretch; gap: 4px; height: 190px; padding-top: 4px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chart-val { height: 14px; font-size: 10px; line-height: 14px; color: var(--faint); white-space: nowrap; }
.chart-track { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.bar { display: block; width: 72%; max-width: 30px; border-radius: 6px 6px 0 0; background: rgba(var(--led-rgb), 0.3); }
.bar.now { background: var(--led); box-shadow: 0 0 16px rgba(var(--led-rgb), 0.6); }
.chart-day { font-size: 11px; color: var(--faint); text-transform: uppercase; }
.chart-date { font-size: 11px; font-weight: 600; color: var(--muted); }
.tchart-wrap { display: flex; flex-direction: column; gap: 6px; }
.tchart { position: relative; height: 300px; border-bottom: 1px solid var(--line-2); margin-top: 8px; }
.tbars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; padding: 0 2px; }
.tbar { flex: 1 1 0; min-width: 0; border-radius: 3px 3px 0 0; }
.tbar.real { background: rgba(var(--led-rgb), 0.75); }
.tbar.real.today { background: var(--key); box-shadow: 0 0 16px rgba(var(--key-glow), 0.5); }
.tbar.fore { background: rgba(var(--tint), 0.1); }
.tline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(var(--tint), 0.13); z-index: 1; pointer-events: none; }
.tline.strong { border-top-color: rgba(var(--led-rgb), 0.6); }
.tline.ref { border-top: 2px dashed var(--gold); }
.tline.done { border-top-style: solid; }
.tl-left, .tl-right { position: absolute; top: -17px; font-size: 11px; font-weight: 600; line-height: 14px; padding: 0 5px; background: rgba(var(--glass), 0.9); border-radius: 4px; }
.tl-left { left: 0; color: var(--gold); }
.tl-right { right: 0; color: var(--led-hi); }
.taxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.tlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.tlegend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.tlegend i.real { background: rgba(var(--led-rgb), 0.75); }
.tlegend i.fore { background: rgba(var(--tint), 0.14); }
.tlegend i.line { height: 0; border-top: 2px dashed rgba(var(--led-rgb), 0.6); border-radius: 0; vertical-align: 4px; }

/* ----------------------------------- Fenêtres, listes, enregistrement ---- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--veil); }
@media (hover: hover) and (pointer: fine) { .overlay { background: var(--veil-blur); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); } }
.overlay.mid { align-items: center; }
.modal { width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; background: var(--pane); border: 1px solid var(--line-2); border-radius: 26px; padding: 24px 24px 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 90px var(--shade-strong); }
.modal h2 { margin: 0 0 10px; font-size: 17px; }
.modal p { margin: 6px 0; overflow-wrap: anywhere; color: var(--muted); }
.modal.wide { max-width: 720px; }
.modal.wide .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.modal.wide .kpi { padding: 14px; }
.modal.wide .kpi-v { font-size: 17px; }

.combo { position: relative; }
.combo .combo-input { padding-right: 44px; font-weight: 500; }
.combo .combo-input::placeholder { font-weight: 400; }
.combo-caret { position: absolute; right: 16px; top: 25px; transform: translateY(-50%); color: var(--faint); font-size: 15px; pointer-events: none; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto;
  background: var(--pane-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 22px 60px var(--shade-strong); }
.content > * > *:has(.combo-list:not([hidden])) { position: relative; z-index: 4; }
.combo-list li { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
.combo-list li:hover, .combo-list li.act { background: rgba(var(--led-rgb), 0.16); }
.combo-list li.sel { font-weight: 600; color: var(--led-hi); }
.combo-list li.sel::after { content: '✓'; margin-left: auto; padding-left: 10px; }
.combo-list li.none { color: var(--faint); cursor: default; background: none; }

.rate-row { flex-wrap: nowrap; align-items: center; gap: 6px; }
.rate-row .btn { min-width: 46px; min-height: 46px; padding: 0; font-size: 20px; font-weight: 600; }
input[type="text"].rate-input { width: 76px; min-width: 0; min-height: 46px; padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
.rate-pct { font-weight: 600; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }

/* Chargement : des blocs sombres traversés par une lueur. */
.skel-wrap { display: flex; flex-direction: column; gap: 14px; }
.skel { border-radius: var(--r-slab); background: linear-gradient(90deg, rgba(var(--tint), 0.035) 25%, rgba(var(--tint), 0.085) 37%, rgba(var(--tint), 0.035) 63%); background-size: 200% 100%; }
.skel.s1 { height: 84px; } .skel.s2 { height: 150px; } .skel.s3 { height: 110px; width: 70%; }
.stale { pointer-events: none; }

/* ----------------------------------------------------------- Annonces ---- */
.toast-slot { position: sticky; top: 12px; z-index: 31; display: flex; flex-direction: column; gap: 8px; }
.toast-slot:empty { display: none; }
/* Confirmations : elles flottent en haut de l'écran, par-dessus la page, sans pousser son contenu vers le bas. */
.toast-slot.float { position: fixed; z-index: 66; top: 16px; left: 0; right: 0; align-items: center; padding: 0 16px; pointer-events: none; }
.toast-slot.float.in-shell { left: 256px; }
.toast-slot.float > .banner.alert { position: static; pointer-events: auto; width: auto; min-width: min(320px, 100%); max-width: min(560px, 100%); background: rgba(var(--glass), 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px var(--shade-strong), 0 0 0 4px rgba(var(--led-rgb), 0.07), 0 0 40px rgba(var(--led-rgb), 0.14); }
/* Bandeau « nouvelle version » : le même habit que les confirmations, avec son bouton. Il reste jusqu'au clic. */
.maj-bar { align-items: center; cursor: default; }
.maj-bar .btn { flex: none; }
.ban-follow, .ban-pinned { display: flex; flex-direction: column; gap: 8px; }
.ban-follow { position: sticky; top: 12px; z-index: 29; }
.ban-follow:empty, .ban-pinned:empty, .ban-follow:not(:has(> :not([hidden]))), .ban-pinned:not(:has(> :not([hidden]))) { display: none; }
.banner.alert { position: sticky; top: 12px; z-index: 29; display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 18px; color: #FFFFFF; font-weight: 600;
  background: linear-gradient(180deg, #C42E46, #9A1D33); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 14px 34px rgba(154, 29, 51, 0.4); }
.banner.alert.flat, .ban-follow > .banner.alert, .ban-pinned > .banner.alert { position: static; }
button.banner.alert { width: 100%; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
button.banner.alert.fixed { cursor: default; }
.alert-ico { font-size: 26px; line-height: 1; }
.alert-body { display: block; flex: 1; min-width: 0; }
.alert-title { display: block; font: 600 12.5px/1.2 var(--f-text); opacity: 0.85; }
.alert-text { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.alert-hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; opacity: 0.75; }
.banner.alert.s-attention { background: linear-gradient(180deg, #C7741B, #9C560B); box-shadow: 0 14px 34px rgba(156, 86, 11, 0.4); }
.banner.alert.s-normale, .toast-slot .banner.alert.notice { color: var(--text); background: rgba(var(--glass), 0.95); border: 1px solid rgba(var(--led-rgb), 0.55);
  box-shadow: 0 14px 40px var(--shade), 0 0 0 4px rgba(var(--led-rgb), 0.07), 0 0 40px rgba(var(--led-rgb), 0.14); }
.banner.alert.s-normale .alert-title, .toast-slot .banner.alert.notice .alert-title { color: var(--led-hi); opacity: 1; }
.banner.alert.bye { pointer-events: none; opacity: 0; transform: scale(0.94) translateY(-14px); filter: blur(4px); transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .banner.alert.bye { transition: opacity 0.15s linear; transform: none; filter: none; } }

/* ------------------------------------------------------------- Jetons ---- */
.coin { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font: 700 10px/1 var(--f-display); color: #6B4A00; background: radial-gradient(circle at 35% 30%, #FFE9A6, #F2B01E 60%, #C98A00); border: 1.5px solid #B77C00; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); vertical-align: -4px; }
.coin.bonus { color: #2A1A7A; background: radial-gradient(circle at 35% 30%, #E4DEFF, #A99BF5 60%, #6F5BE0); border-color: #4B32D6; }
.tok-chip { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 6px 14px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--tint), 0.05); color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tok-chip strong { font: 600 13.5px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tok-part { display: inline-flex; align-items: center; gap: 7px; }
@media (hover: hover) { .tok-chip:hover { border-color: rgba(var(--led-rgb), 0.6); background: rgba(var(--tint), 0.08); } }

/* --------------------------------------------------------------- Jeux ---- */
/* Les décors des jeux sont de petites scènes : ils gardent leurs couleurs en mode nuit comme en mode jour.
   Les dessins (avion, poulet, cuisinier, coupe…) sont des images dessinées pour le site, rangées ici une fois pour toutes. */
:root {
  --sp-jet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpath d='M16 30 6 37h11l10-7z' fill='%23D9D2C0'/%3E%3Cpath d='M17 23 12 6h14l15 17z' fill='%236C3CCD'/%3E%3Cpath d='M17 23 12 6h4l13 17z' fill='%238C6BE8'/%3E%3Ccircle cx='25' cy='15' r='3.6' fill='none' stroke='%23FEF3DE' stroke-width='1.8'/%3E%3Cpath d='M14 30q0-8 16-8h56q20 0 28 8-8 8-28 8H30q-16 0-16-8z' fill='%23FEF3DE'/%3E%3Cpath d='M14.6 32q2 6 15.4 6h56q17 0 26-6.4-9 2.4-26 2.4H30q-11 0-15.4-2z' fill='%23D9D2C0'/%3E%3Cpath d='M86 24.5q11 0 17.5 4.5H88.5z' fill='%236C3CCD'/%3E%3Cpath d='M88 25.6q7 .2 11.5 2.4h-10z' fill='%23C9BEFF'/%3E%3Cpath d='M22 31.2h70' stroke='%23AD98FF' stroke-width='1.8' stroke-linecap='round'/%3E%3Cg fill='%236C3CCD'%3E%3Ccircle cx='42' cy='27' r='1.5'/%3E%3Ccircle cx='51' cy='27' r='1.5'/%3E%3Ccircle cx='60' cy='27' r='1.5'/%3E%3Ccircle cx='69' cy='27' r='1.5'/%3E%3Ccircle cx='78' cy='27' r='1.5'/%3E%3C/g%3E%3Cpath d='M54 33 36 51h15l25-18z' fill='%23EDE6D4'/%3E%3Cpath d='M54 33 36 51h4l22-18z' fill='%23FFFBF0'/%3E%3Crect x='56' y='40.5' width='16' height='6.5' rx='3.2' fill='%23B9B19C'/%3E%3Crect x='69' y='41.6' width='3.4' height='4.3' rx='1.6' fill='%2315132A'/%3E%3C/svg%3E");
  --sp-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23FFF7D6'/%3E%3Cstop offset='.35' stop-color='%23FFC94D'/%3E%3Cstop offset='.75' stop-color='%23FF7A2E' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23FF3D5A' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M44 10Q28 0 0 10 28 20 44 10z' fill='url(%23f)'/%3E%3Cpath d='M44 10Q34 5 20 10 34 15 44 10z' fill='%23FFFDF2' fill-opacity='.9'/%3E%3C/svg%3E");
  --sp-hen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'%3E%3Cpath d='M15 30 5 20q7 0 9 5-1-8 5-11 1 7 5 10z' fill='%23EDE6D4'/%3E%3Cpath d='M11 40c0-12 9-19 20-19 4 0 7 1 10 2 0-8 4-13 10-13s10 5 10 11c0 4-2 7-4 9 1 2 1 5 1 8 0 11-9 18-21 18-14 0-26-6-26-16z' fill='%23FFFDF6'/%3E%3Cpath d='M12 44c2 8 13 12 25 12 11 0 19-6 21-15-4 7-12 10-22 10-11 0-20-3-24-7z' fill='%23E7DFCC'/%3E%3Cpath d='M44 10c-2-4 1-7 4-5 1-4 6-4 7 0 3-2 6 1 4 5z' fill='%23E5383B'/%3E%3Cpath d='M60 20l9 4-9 3z' fill='%23FF9F1C'/%3E%3Cpath d='M60 23.5l9 .5-9 3z' fill='%23E07A00'/%3E%3Cpath d='M56 27c3 0 4 3 3 6s-4 3-5 0 0-6 2-6z' fill='%23E5383B'/%3E%3Ccircle cx='54' cy='18.5' r='2.3' fill='%2315132A'/%3E%3Ccircle cx='54.8' cy='17.7' r='.8' fill='%23FFF'/%3E%3C/svg%3E");
  --sp-hen-wing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M2 8C8 0 24 0 29 9 23 20 8 22 2 8z' fill='%23EDE6D4'/%3E%3Cpath d='M7 9c5 3 11 3 16 0M9 13c4 2 8 2 12 0' fill='none' stroke='%23CFC6B0' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --sp-hen-leg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M7 0v11M7 11l-5 5M7 11l5 5M7 11v6' fill='none' stroke='%23FF9F1C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --sp-feather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 34'%3E%3Cpath d='M9 1C17 8 17 22 10 30 2 22 1 8 9 1z' fill='%23FFFDF6'/%3E%3Cpath d='M9 3v30M9 12l5-4M9 18l6-4M9 24l5-3M9 12 4 8M9 18l-6-4M9 24l-5-3' fill='none' stroke='%23CFC6B0' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  --sp-cook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 70'%3E%3Cpath d='M20 62V40q0-9 12-9t12 9v22z' fill='%23FFFDF6'/%3E%3Cpath d='M32 31v31' stroke='%23D9D2C0' stroke-width='1.4'/%3E%3Cg fill='%2315132A'%3E%3Ccircle cx='27' cy='42' r='1.5'/%3E%3Ccircle cx='27' cy='49' r='1.5'/%3E%3Ccircle cx='27' cy='56' r='1.5'/%3E%3Ccircle cx='37' cy='42' r='1.5'/%3E%3Ccircle cx='37' cy='49' r='1.5'/%3E%3Ccircle cx='37' cy='56' r='1.5'/%3E%3C/g%3E%3Cpath d='M24 33q8 6 16 0l-2-4H26z' fill='%23E5383B'/%3E%3Ccircle cx='31' cy='23' r='10' fill='%23FFCF4A'/%3E%3Cpath d='M21 16h20v5H21z' fill='%23FFFDF6'/%3E%3Cpath d='M19 17c-6-2-6-11 1-12 1-6 10-7 12-2 3-5 12-3 11 3 7 1 7 10 0 11z' fill='%23FFFDF6'/%3E%3Cpath d='M21 17h21' stroke='%23D9D2C0' stroke-width='1.2'/%3E%3Ccircle cx='26.5' cy='23.5' r='1.6' fill='%2315132A'/%3E%3Cpath d='M23 20.4l6 1.8' stroke='%2315132A' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M24.5 28.5q3 -1.6 6 0' fill='none' stroke='%2315132A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --sp-cook-arm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 46'%3E%3Cpath d='M37 40 19.5 19.5' stroke='%23FFFDF6' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M37 40 30 31.8' stroke='%23D9D2C0' stroke-width='8' stroke-linecap='round' stroke-opacity='.55'/%3E%3Cg transform='translate(8.5 4.5) rotate(-33.7)'%3E%3Cpath d='M0 1V30' stroke='%238A5A2B' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M1.6 2.5V11.5L-3.6 12.4Q-8 13.4-11 17Q-14.6 7.6-11-1.4Q-8 1.8-3.6 2.2Z' fill='%23C3CAD6'/%3E%3Cpath d='M-11 17Q-14.6 7.6-11-1.4l2 1.6Q-11.6 7.6-9.2 15Z' fill='%23FFFFFF'/%3E%3C/g%3E%3Ccircle cx='18.4' cy='18.6' r='4.8' fill='%23FFCF4A'/%3E%3C/svg%3E");
  --sp-cook-leg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'%3E%3Cpath d='M8 0v15' stroke='%232B2840' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M1 17.5h10q3 0 3 3H1z' fill='%2315132A'/%3E%3C/svg%3E");
  --sp-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFE9A6'/%3E%3Cstop offset='.45' stop-color='%23F5B700'/%3E%3Cstop offset='1' stop-color='%23B98200'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 12H6c0 12 4 19 13 20M48 12h10c0 12-4 19-13 20' fill='none' stroke='url(%23g)' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M14 6h36v16c0 12-8 20-18 20S14 34 14 22z' fill='url(%23g)'/%3E%3Cpath d='M19 9h5v14c0 7 2 11 5 14-6-2-10-8-10-15z' fill='%23FFF7D6' fill-opacity='.75'/%3E%3Ccircle cx='32' cy='21' r='6.4' fill='none' stroke='%236C3CCD' stroke-width='3'/%3E%3Cpath d='M28 41h8v10h-8z' fill='%23D99A00'/%3E%3Cpath d='M20 51h24v6H20z' fill='url(%23g)'/%3E%3Cpath d='M15 57h34v9H15z' fill='%2315132A'/%3E%3Cpath d='M22 60h20v3H22z' fill='%23FFC94D'/%3E%3C/svg%3E");
  --sp-swords: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg transform='rotate(45 36 36)'%3E%3Cpath d='M33 4h6v40h-6z' fill='%23E6EAF2'/%3E%3Cpath d='M36 4h3v40h-3z' fill='%23B9C0CE'/%3E%3Cpath d='M33 4l3-4 3 4z' fill='%23E6EAF2'/%3E%3Cpath d='M24 44h24v5H24z' fill='%23FFC94D'/%3E%3Cpath d='M33.5 49h5v12h-5z' fill='%236C3CCD'/%3E%3Ccircle cx='36' cy='64' r='4' fill='%23FFC94D'/%3E%3C/g%3E%3Cg transform='rotate(-45 36 36)'%3E%3Cpath d='M33 4h6v40h-6z' fill='%23E6EAF2'/%3E%3Cpath d='M36 4h3v40h-3z' fill='%23B9C0CE'/%3E%3Cpath d='M33 4l3-4 3 4z' fill='%23E6EAF2'/%3E%3Cpath d='M24 44h24v5H24z' fill='%23FFC94D'/%3E%3Cpath d='M33.5 49h5v12h-5z' fill='%236C3CCD'/%3E%3Ccircle cx='36' cy='64' r='4' fill='%23FFC94D'/%3E%3C/g%3E%3C/svg%3E");
  --sp-city: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cg fill='%232A2550'%3E%3Cpath d='M0 60V34h14V22h10v12h8V14h18v46z'/%3E%3Cpath d='M54 60V30h12V40h10V18h16v42z'/%3E%3Cpath d='M96 60V26h8V8h14v18h8v34z'/%3E%3Cpath d='M130 60V36h16V24h12v36z'/%3E%3Cpath d='M162 60V20h10V30h14V12h12v48z'/%3E%3Cpath d='M202 60V32h12V26h10v10h16v24z'/%3E%3C/g%3E%3Cg fill='%23FFD98A' fill-opacity='.75'%3E%3Cpath d='M36 20h3v4h-3zM42 28h3v4h-3zM36 36h3v4h-3zM80 24h3v4h-3zM86 34h3v4h-3zM108 14h3v4h-3zM108 24h3v4h-3zM114 34h3v4h-3zM150 30h3v4h-3zM176 34h3v4h-3zM190 18h3v4h-3zM190 30h3v4h-3zM218 32h3v4h-3z'/%3E%3C/g%3E%3C/svg%3E");
}
.sp { display: block; background: center / contain no-repeat; }
.sp-jet { background-image: var(--sp-jet); } .sp-flame { background-image: var(--sp-flame); }
.sp-hen { background-image: var(--sp-hen); } .sp-hen-wing { background-image: var(--sp-hen-wing); } .sp-hen-leg { background-image: var(--sp-hen-leg); }
.sp-cook { background-image: var(--sp-cook); } .sp-cook-arm { background-image: var(--sp-cook-arm); } .sp-cook-leg { background-image: var(--sp-cook-leg); }
.sp-cup { background-image: var(--sp-cup); } .sp-swords { background-image: var(--sp-swords); }

/* La signature : « No Limits Agency », avec son anneau lumineux, posée dans chaque décor. */
.g-sign { position: absolute; right: 13px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; font: 800 9.5px/1 var(--f-display); letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); white-space: nowrap; pointer-events: none; -webkit-user-select: none; user-select: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.g-sign i { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.6em 0 0.06em; border-radius: 50%; border: 0.19em solid #FEF3DE; box-shadow: 0 0 0.6em rgba(173, 152, 255, 0.95), inset 0 0 0.3em rgba(173, 152, 255, 0.85); }
.g-sign b { margin-left: 0.5em; font-weight: 300; opacity: 0.85; }

/* Éclats (pièces, étincelles, plumes, débris) : lancés par le code, ils retombent et se retirent tout seuls. */
.g-p { position: absolute; z-index: 6; width: 0; height: 0; pointer-events: none; }
.g-p b { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; }
.g-coin b { background: radial-gradient(circle at 35% 30%, #FFE9A6, #F5B700 60%, #B98200); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3); }
.g-spark b { left: -3px; top: -3px; width: 6px; height: 6px; background: #FFF7D6; box-shadow: 0 0 9px 2px rgba(255, 201, 77, 0.9); }
.g-debris b { left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 2px; background: #FEF3DE; }
.g-debris:nth-child(3n) b { background: #AD98FF; } .g-debris:nth-child(4n) b { background: #FF9D2E; border-radius: 50%; }
.g-feather b { left: -6px; top: -11px; width: 12px; height: 22px; border-radius: 0; background: var(--sp-feather) center / contain no-repeat; }
.g-chip b { left: -8px; top: -8px; width: 16px; height: 16px; background: repeating-conic-gradient(#FEF3DE 0 30deg, #F2B01E 30deg 60deg); box-shadow: inset 0 0 0 3px #F2B01E, inset 0 0 0 4.5px #FEF3DE, 0 2px 4px rgba(0, 0, 0, 0.45); }

/* La liste des jeux : une vignette dessinée par jeu. */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.game-tile { align-items: center; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.game-tile h2 { margin: 4px 0 0; font-weight: 700; letter-spacing: 0.02em; }
.game-tile .row { justify-content: center; }
.game-tile .note { align-self: stretch; }
.game-tile.off .g-art { opacity: 0.4; filter: grayscale(1); }
.games-grid .game-tile { height: 100%; margin: 0; }
.games-grid .game-tile > .row, .games-grid .game-tile > .note { margin-top: auto; }
.games-grid .game-tile p { font-size: 14px; color: var(--muted); }
.game-tile.go { cursor: pointer; }
.game-table { align-items: center; text-align: center; }
.game-table .row { justify-content: center; }
.game-table .note { align-self: stretch; }
@media (hover: hover) { .game-tile.go:hover { border-color: rgba(var(--led-rgb), 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px -18px rgba(var(--led-rgb), 0.55); } }

.g-art { position: relative; flex: none; width: 100%; max-width: 320px; height: 112px; border-radius: 16px; overflow: hidden; color: #FFFFFF; isolation: isolate; -webkit-user-select: none; user-select: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.g-art * { pointer-events: none; }
.g-art .g-sign { right: 9px; bottom: 7px; font-size: 6.5px; color: rgba(255, 255, 255, 0.66); }
.g-tag { position: absolute; left: 10px; top: 9px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(8, 7, 18, 0.5); color: #FFFFFF; font: 700 12px/1.3 var(--f-display); letter-spacing: 0.03em; }
.g-art-cartes { background: radial-gradient(ellipse 80% 110% at 50% 28%, #33287A 0%, #17133A 62%, #0E0C24 100%); }
.g-art-cartes .gcard { --cw: 50px; position: absolute; left: 50%; top: 17px; margin-left: -25px; }
.g-art-cartes .gcard.m1 { transform: translateX(-37px) translateY(5px) rotate(-14deg); }
.g-art-cartes .gcard.m2 { transform: translateY(-4px); z-index: 1; }
.g-art-cartes .gcard.m3 { transform: translateX(37px) translateY(5px) rotate(14deg); }
.g-art-aviator { background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px), radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 84% 46%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px), linear-gradient(180deg, #070919 0%, #161C52 58%, #4636BE 100%); }
.ga-curve { position: absolute; left: 7%; bottom: 14%; width: 62%; height: 62%; border-bottom: 2.5px solid #C9BEFF; border-right: 2.5px solid #C9BEFF; border-bottom-right-radius: 100%;
  background: radial-gradient(ellipse at 0% 0%, transparent 69.5%, rgba(173, 152, 255, 0.3) 70%, rgba(173, 152, 255, 0.05) 100%); filter: drop-shadow(0 0 6px rgba(173, 152, 255, 0.7)); }
.g-art-aviator .sp-jet { position: absolute; left: 60%; bottom: 62%; width: 58px; height: 27px; transform: rotate(-38deg); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.4)); }
.g-art-chicken { background: linear-gradient(180deg, #1C1648 0%, #4A3396 30%, #E08A6B 44%, #4A4F63 44%, #4A4F63 52%, #2B2F3E 52%, #232733 100%); }
.ga-city { position: absolute; left: 0; right: 0; top: 14%; height: 30%; background: var(--sp-city) repeat-x left bottom / auto 100%; opacity: 0.9; }
.ga-zebra { position: absolute; left: 34%; top: 56%; bottom: 8%; width: 46px; border-radius: 3px; background: repeating-linear-gradient(180deg, #F4F5F7 0 7px, transparent 7px 13px); opacity: 0.92; }
.ga-hen { position: absolute; left: 36%; bottom: 14%; width: 48px; height: 45px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.4)); }
.g-art-plinko { background: radial-gradient(120% 110% at 50% 0%, #3E2C96 0%, #1A1340 62%, #110C2B 100%); }
.ga-pegs { position: absolute; left: 50%; top: 10px; width: 140px; height: 62px; margin-left: -70px; -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: radial-gradient(circle, #E8E6FF 0 2.2px, rgba(232, 230, 255, 0) 3px) 0 0 / 20px 17px, radial-gradient(circle, #E8E6FF 0 2.2px, rgba(232, 230, 255, 0) 3px) 10px 8.5px / 20px 17px; }
.ga-ball { position: absolute; left: 56%; top: 38px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF3C4, #FFC53D 55%, #E08A00); box-shadow: 0 0 10px 2px rgba(255, 197, 61, 0.75); }
.ga-slots { position: absolute; left: 50%; bottom: 22px; width: 150px; height: 11px; margin-left: -75px; border-radius: 4px;
  background: linear-gradient(90deg, #FFB703 0 11%, #2BB673 11% 22%, #5B5878 22% 33%, #2BB673 33% 44%, #5B5878 44% 56%, #2BB673 56% 67%, #5B5878 67% 78%, #2BB673 78% 89%, #FFB703 89% 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.g-art-battle { background: linear-gradient(108deg, #4A22B4 0%, #6C3CCD 49.6%, #FEF3DE 49.6%, #FEF3DE 50.4%, #C22A3C 50.4%, #7F1524 100%); }
.g-art-battle .sp-swords { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.45)); }
.g-art-texas { background: radial-gradient(ellipse 90% 120% at 50% 60%, #1A8F60 0%, #0E6642 55%, #083F29 100%); }
.g-art-texas .tx-card { position: absolute; left: 50%; top: 20px; width: 46px; height: 64px; font-size: 17px; }
.g-art-texas .ga-c1 { margin-left: -44px; transform: rotate(-9deg); }
.g-art-texas .ga-c2 { margin-left: -6px; top: 16px; transform: rotate(8deg); }
.ga-chips { position: absolute; left: 14%; bottom: 14px; width: 22px; height: 22px; border-radius: 50%; background: repeating-conic-gradient(#FEF3DE 0 30deg, #6C3CCD 30deg 60deg);
  box-shadow: inset 0 0 0 4px #6C3CCD, inset 0 0 0 6px #FEF3DE, 0 -4px 0 -1px #4A22B4, 0 -4px 0 0 #FEF3DE, 0 -8px 0 -1px #4A22B4, 0 -8px 0 0 #FEF3DE, 0 3px 6px rgba(0, 0, 0, 0.4); }

/* Cartes à jouer du site : le dos est frappé de l'anneau et du nom de l'agence. */
.gcard { --cw: 96px; position: relative; flex: none; display: block; width: var(--cw); height: calc(var(--cw) * 1.4); padding: 0; border: 0; border-radius: calc(var(--cw) * 0.11); background: none; font: inherit; color: inherit; }
.gcard.back, .gcard .pc-back { background-color: #3B2396;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 7px), radial-gradient(circle at 50% 50%, #5A3AD0 0%, #3B2396 60%, #2A1873 100%);
  border: calc(var(--cw) * 0.052) solid #FEF3DE; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(21, 19, 42, 0.35); }
.gcard.back::before, .gcard .pc-back::before { content: ''; position: absolute; inset: 7%; border: 1px solid rgba(254, 243, 222, 0.55); border-radius: calc(var(--cw) * 0.05); }
.cb-ring { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #15132A;
  border: calc(var(--cw) * 0.05) solid #FEF3DE; box-shadow: 0 0 calc(var(--cw) * 0.16) rgba(173, 152, 255, 0.95), inset 0 0 calc(var(--cw) * 0.09) rgba(173, 152, 255, 0.85);
  color: #FEF3DE; font: 700 calc(var(--cw) * 0.2)/1 var(--f-display); }
.cb-name, .cb-sub { position: absolute; left: 0; right: 0; text-align: center; color: #FEF3DE; font: 800 calc(var(--cw) * 0.082)/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.cb-name { top: 15%; } .cb-sub { bottom: 15%; font-weight: 300; letter-spacing: 0.24em; opacity: 0.9; }
button.gcard.back { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.18s var(--ease), box-shadow 0.18s ease, filter 0.2s ease, opacity 0.2s ease; }
button.gcard.back:focus-visible { outline: none; box-shadow: 0 0 0 3px #15132A, 0 0 0 6px #C9BEFF, 0 14px 34px rgba(173, 152, 255, 0.45); }
@media (hover: hover) { button.gcard.back:hover { transform: translateY(-7px); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(201, 190, 255, 0.9), 0 0 34px rgba(173, 152, 255, 0.55); } }
.gcard.mini .cb-name, .gcard.mini .cb-sub { display: none; }
.gcard.mini .cb-ring { width: 52%; }

/* Les 3 cartes : un tapis sous un projecteur. */
.c3-stage { position: relative; width: 100%; padding: 30px 10px 38px; border-radius: 20px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse 62% 78% at 50% 44%, #3A2E88 0%, #1E1848 52%, #100D28 100%); box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.5); }
.c3-stage::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -30%; width: 120%; height: 120%; transform: translateX(-50%); background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(201, 190, 255, 0.13) 14deg, rgba(201, 190, 255, 0.13) 26deg, transparent 40deg); }
.cards { --cw: clamp(74px, 21vw, 146px); --pitch: calc(var(--cw) + 14px); display: flex; gap: 14px; justify-content: center; width: 100%; padding: 6px 0; }
.cards .gcard { --cw: inherit; }
.cards.mix { pointer-events: none; }
.cards.choosing .gcard:not(.picked) { opacity: 0.45; filter: saturate(0.6); }
.cards.choosing .gcard.picked { transform: translateY(-12px) scale(1.04); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px #FEF3DE, 0 0 44px rgba(173, 152, 255, 0.8); opacity: 1; }
/* Carte retournée : le dos (caché une fois le retournement joué) et la face. */
.gcard.turn { cursor: default; }
.gcard .pc-back, .gcard .pc-face { position: absolute; inset: 0; border-radius: inherit; }
.gcard .pc-back { display: none; }
.pc-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cw) * 0.05); overflow: hidden; background: linear-gradient(160deg, #ECEAF4 0%, #CFCBDF 100%); color: #5A5670; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 calc(var(--cw) * 0.03) #B8B3CC; }
.pc-idx { position: absolute; left: 9%; top: 6%; font: 700 calc(var(--cw) * 0.17)/1 var(--f-display); }
.pc-mark { width: 40%; aspect-ratio: 1; border-radius: 50%; border: calc(var(--cw) * 0.045) solid #A9A4BF; position: relative; }
.pc-mark::before, .pc-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 62%; height: calc(var(--cw) * 0.04); margin: calc(var(--cw) * -0.02) 0 0 -31%; border-radius: 2px; background: #A9A4BF; transform: rotate(45deg); }
.pc-mark::after { transform: rotate(-45deg); }
.pc-lbl { font: 600 calc(var(--cw) * 0.125)/1.1 var(--f-text); }
.pc-you { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 0.2em 0.7em; border-radius: 999px; background: #15132A; color: #FFFFFF; font: 600 calc(var(--cw) * 0.1)/1.3 var(--f-text); white-space: nowrap; }
.gcard.turn.good .pc-face { background: linear-gradient(160deg, #FFFBEF 0%, #FEF3DE 55%, #F6DFA8 100%); color: #3A2A00; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 calc(var(--cw) * 0.035) #F5B700, 0 0 34px rgba(245, 183, 0, 0.45); }
.gcard.turn.good .pc-mark { border: 0; background: radial-gradient(circle at 35% 30%, #FFE9A6, #F5B700 60%, #B98200); box-shadow: inset 0 0 0 calc(var(--cw) * 0.03) rgba(255, 255, 255, 0.45), 0 2px 6px rgba(120, 80, 0, 0.4); }
.gcard.turn.good .pc-mark::before { left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; background: none; border: calc(var(--cw) * 0.035) solid #7A5200; transform: none; }
.gcard.turn.good .pc-mark::after { display: none; }
.game-table.lose .gcard.turn.mine .pc-face { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 calc(var(--cw) * 0.035) #E5484D; }
.game-table.lose .gcard.turn.mine .pc-mark { border-color: #E5484D; } .game-table.lose .gcard.turn.mine .pc-mark::before, .game-table.lose .gcard.turn.mine .pc-mark::after { background: #E5484D; }

/* AVIATOR : le ciel est dessiné par le code (étoiles, graduations, trajectoire) ; l'avion est posé par-dessus. */
.avi-sky { --ms: clamp(44px, 11.5vw, 88px); position: relative; height: 330px; border-radius: 20px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, #060818 0%, #121742 54%, #3A2F9E 100%); }
.avi-sky::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 60% at 12% 112%, rgba(173, 152, 255, 0.42), transparent 70%); pointer-events: none; transition: opacity 0.4s ease; }
.avi-cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.avi-mult { position: absolute; left: 5%; top: 11%; z-index: 2; transform-origin: 0 50%; font: 700 var(--ms)/1 var(--f-display); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.22);
  font-variant-numeric: tabular-nums; pointer-events: none; -webkit-user-select: none; user-select: none; transition: color 0.25s ease; }
.avi-sky.fly .avi-mult { color: #FFFFFF; text-shadow: 0 0 44px rgba(173, 152, 255, 0.6); }
.avi-sky.won .avi-mult { color: #7CF0B0; text-shadow: 0 0 44px rgba(124, 240, 176, 0.5); }
.avi-sky.crash .avi-mult { color: #FF8A9B; text-shadow: 0 0 44px rgba(255, 90, 110, 0.45); }
.avi-sky.crash { background: linear-gradient(180deg, #1B0812 0%, #4A1424 56%, #A12D43 100%); }
.avi-sky.crash::before { opacity: 0; }
.avi-stamp { position: absolute; left: 5%; top: calc(11% + var(--ms) + 12px); z-index: 2; transform: rotate(-4deg); transform-origin: 0 50%; padding: 6px 14px 5px; border: 2px solid currentColor; border-radius: 8px;
  font: 700 12.5px/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: #7CF0B0; opacity: 0; pointer-events: none; }
.avi-sky.won .avi-stamp, .avi-sky.crash .avi-stamp { opacity: 1; }
.avi-sky.crash .avi-stamp { color: #FF8A9B; }
.avi-plane { position: absolute; left: 8%; bottom: 8%; z-index: 3; width: 78px; height: 36px; transform: translate(-50%, 50%); will-change: left, bottom, transform; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.avi-plane .sp-jet { position: absolute; inset: 0; }
.avi-flame { position: absolute; right: 88%; top: 40%; width: 36px; height: 16px; transform-origin: 100% 50%; opacity: 0; transition: opacity 0.2s ease; }
.avi-sky.fly .avi-flame { opacity: 1; }
.avi-sky.crash .avi-plane { visibility: hidden; }
.avi-boom { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.avi-boom::before, .avi-boom::after { content: ''; position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; }
.avi-boom::before { width: 120px; height: 120px; margin: -60px 0 0 -60px; background: radial-gradient(circle, #FFFDF2 0%, #FFD98A 26%, #FF7A2E 52%, rgba(255, 61, 90, 0) 72%); }
.avi-boom::after { width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 3px solid rgba(255, 220, 170, 0.9); }
.avi-actions { justify-content: center; }
.btn.primary.avi-cash { min-height: 58px; min-width: 300px; padding: 0 28px; font-size: 18px; background: var(--ok); color: var(--on-ok); box-shadow: 0 8px 30px -8px rgba(var(--ok-rgb), 0.7); font-variant-numeric: tabular-nums; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: none; }
.btn.primary.avi-cash:hover { background: var(--ok-hover); }
.btn.primary.avi-cash:active { transform: none; }
.btn.primary.avi-cash.wait { opacity: 0.7; }

/* CHICKEN : une rue au crépuscule ; la ville défile plus lentement que la route. */
.chk-scene { position: relative; height: 330px; border-radius: 20px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171243 0%, #3F2C8C 22%, #B5628F 34%, #F2A67A 38%, #565B70 38%, #565B70 44.5%, #C9CCD6 44.5%, #C9CCD6 45.5%, #2E3242 45.5%, #252936 100%); transition: filter 0.4s ease; }
.chk-scene::before { content: ''; position: absolute; right: 9%; top: 7%; width: 34px; height: 34px; border-radius: 50%; background: #FEF3DE; box-shadow: 0 0 30px 8px rgba(254, 243, 222, 0.35); }
.chk-scene.lost { filter: saturate(0.75) sepia(0.25) hue-rotate(-20deg); }
/* Le texte du résultat attend que le cuisinier ait attrapé le poulet (la place est déjà réservée : rien ne bouge). */
.chk-scene.lost:not(.hit) ~ .note { opacity: 0; animation: none; }
.chk-far { position: absolute; left: 0; top: 13%; width: 300%; height: 25%; background: var(--sp-city) repeat-x left bottom / auto 100%; opacity: 0.95; will-change: transform; }
.chk-mult { position: absolute; left: 0; right: 0; top: 5%; z-index: 3; text-align: center; font: 700 clamp(34px, 9vw, 58px)/1 var(--f-display); letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.6); pointer-events: none; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(8, 6, 30, 0.8); transition: color 0.25s ease; }
.chk-scene.go .chk-mult { color: #FFFFFF; }
.chk-scene.won .chk-mult { color: #7CF0B0; }
.chk-scene.lost .chk-mult { color: #FF8A9B; }
/* La signature est posée sur une plaque : elle reste lisible devant la route. */
.chk-scene > .g-sign { right: 8px; bottom: 6px; padding: 5px 9px; border-radius: 8px; background: rgba(13, 12, 26, 0.8); }
.chk-track { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; will-change: transform; }
.chk-lane { position: absolute; top: 38%; bottom: 0; width: 68px; }
.chk-zebra { position: absolute; left: 0; right: 0; top: 30px; bottom: 28px; border-radius: 4px; opacity: 0.92; background: repeating-linear-gradient(180deg, #F4F5F7 0, #F4F5F7 12px, transparent 12px, transparent 24px); transition: opacity 0.3s ease; }
.chk-lane.ok .chk-zebra { background: repeating-linear-gradient(180deg, #7CF0B0 0, #7CF0B0 12px, transparent 12px, transparent 24px); box-shadow: 0 0 26px rgba(124, 240, 176, 0.35); }
.chk-x { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 3px 9px; border-radius: 7px; background: #15132A; border: 1px solid rgba(255, 255, 255, 0.25); color: #FFFFFF; font: 600 11.5px/1.4 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chk-x::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 9px; margin-left: -1px; background: rgba(255, 255, 255, 0.4); }
.chk-lane.ok .chk-x { background: #1B8A4B; border-color: #7CF0B0; }
.chk-n { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); color: rgba(255, 255, 255, 0.5); font: 600 11.5px/1 var(--f-display); }
.chk-board { position: absolute; left: 6px; top: 11%; z-index: 0; padding: 8px 10px; border-radius: 8px; background: #15132A; border: 2px solid #FEF3DE; box-shadow: 0 0 22px rgba(173, 152, 255, 0.55); }
.chk-board::before, .chk-board::after { content: ''; position: absolute; top: 100%; width: 3px; height: 34px; background: #8C8FA3; }
.chk-board::before { left: 16%; } .chk-board::after { right: 16%; }
.chk-board .g-sign { position: static; font-size: 7.5px; color: #FFFFFF; text-shadow: none; }
.chk-finish { position: absolute; top: 38%; bottom: 0; width: 20px; background: repeating-conic-gradient(#15132A 0 25%, #FEF3DE 0 50%) 0 0 / 20px 20px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }
.chk-finish b { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; padding: 3px 9px; border-radius: 7px; background: #F5B700; color: #3A2A00; font: 700 11px/1.4 var(--f-display); white-space: nowrap; }
.chk-shadow { position: absolute; left: 14%; right: 14%; bottom: -5%; height: 13%; border-radius: 50%; background: rgba(0, 0, 0, 0.38); }
.chk-hen { position: absolute; left: 90px; bottom: 19%; z-index: 2; width: 62px; height: 62px; transform: translateX(-50%); will-change: left; }
.chk-hen-body { position: absolute; inset: 0; transform-origin: 50% 95%; }
.chk-hen .sp-hen, .ga-hen .sp-hen, .chk-carried .sp-hen { position: absolute; left: 0; top: 0; width: 100%; height: 86%; }
.chk-hen .sp-hen-wing, .ga-hen .sp-hen-wing, .chk-carried .sp-hen-wing { position: absolute; left: 22%; top: 40%; width: 44%; height: 32%; transform-origin: 92% 38%; }
.chk-hen .sp-hen-leg, .ga-hen .sp-hen-leg { position: absolute; top: 74%; width: 20%; height: 27%; transform-origin: 50% 0; }
.sp-hen-leg.l1 { left: 30%; } .sp-hen-leg.l2 { left: 49%; }
.chk-pop { position: absolute; z-index: 4; bottom: 46%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #1B8A4B; color: #FFFFFF; font: 700 13px/1.4 var(--f-display); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.chk-puff { position: absolute; z-index: 4; bottom: 22%; width: 0; height: 0; pointer-events: none; }
.chk-puff::before { content: ''; position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 30% 40%, #FFFFFF 0 22%, transparent 23%), radial-gradient(circle at 68% 34%, #FFFFFF 0 26%, transparent 27%), radial-gradient(circle at 52% 66%, #FFFFFF 0 28%, transparent 29%), radial-gradient(circle at 24% 70%, #F0EDE4 0 16%, transparent 17%), radial-gradient(circle at 78% 68%, #F0EDE4 0 16%, transparent 17%); }
.chk-thief { position: absolute; bottom: 18%; z-index: 3; width: 72px; height: 88px; transform: translateX(-50%); }
.chk-thief.away { transform: translateX(-50%) scaleX(-1); }   /* il repart dans l'autre sens, le poulet sous le bras */
.chk-cook { position: absolute; inset: 0; transform-origin: 50% 100%; }
.chk-cook .sp-cook { position: absolute; left: 6%; top: 0; width: 88%; height: 80%; }
.chk-cook .sp-cook-arm { position: absolute; left: -16%; top: 4%; width: 60%; height: 52%; transform-origin: 84% 87%; }
.chk-cook .sp-cook-leg { position: absolute; top: 70%; width: 22%; height: 29%; transform-origin: 50% 0; }
.sp-cook-leg.l1 { left: 32%; } .sp-cook-leg.l2 { left: 50%; }
.chk-carried { position: absolute; left: -34%; top: 36%; width: 62%; height: 52%; transform: rotate(172deg); }
.btn.primary.chk-btn { min-height: 58px; padding: 0 22px; font-size: 18px; min-width: 0; flex: 1 1 240px; font-variant-numeric: tabular-nums; touch-action: manipulation; }
.btn.primary.chk-cont { background: var(--warn); color: var(--on-warn); box-shadow: 0 8px 30px -8px rgba(var(--warn-rgb), 0.7); }
.btn.primary.chk-cont:hover { background: var(--warn-hover); }
.btn.primary.chk-btn:disabled { opacity: 0.5; cursor: default; }
.chk-odds { text-align: center; margin: 0; }

/* PLINKO */
.plk-board { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1.02; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #40309A 0%, #1C1444 58%, #110B2C 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 80px rgba(0, 0, 0, 0.35); }
/* Les deux parois, et l'anneau de l'agence en filigrane derrière les clous. */
.plk-board::before { content: ''; position: absolute; left: 50%; top: 47%; z-index: -1; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5.5vmin solid rgba(201, 190, 255, 0.055); border-width: clamp(18px, 5vw, 34px); }
.plk-board::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(201, 190, 255, 0.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 4% / 46% 80% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(201, 190, 255, 0.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 100% 4% / 46% 80% no-repeat; }
.plk-top { position: absolute; left: 0; right: 0; top: 2.2%; z-index: 1; display: flex; justify-content: center; pointer-events: none; }
.plk-top .g-sign { position: static; font-size: clamp(6.5px, 1.7vw, 9.5px); }
.plk-big { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: 700 clamp(48px, 17vw, 104px)/1 var(--f-display); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.07); pointer-events: none; font-variant-numeric: tabular-nums; }
.plk-big.top { color: rgba(255, 209, 102, 0.6); }
.plk-big.mid { color: rgba(124, 240, 176, 0.42); }
.plk-big.zero { color: rgba(255, 138, 155, 0.3); }
.plk-peg { position: absolute; width: 2.3%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #FFFFFF, #D9D4FF 55%, #9A8EE0); box-shadow: 0 0 7px rgba(200, 190, 255, 0.65); }
.plk-peg.hit { background: radial-gradient(circle at 35% 30%, #FFFDF2, #FFD166 60%, #F5A300); box-shadow: 0 0 16px 5px rgba(255, 209, 102, 0.9); transform: translate(-50%, -50%) scale(1.5); }
.plk-slot { position: absolute; top: 87%; bottom: 2%; width: 9.2%; transform: translateX(-50%); border-radius: 9px 9px 7px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #FFFFFF;
  font: 700 clamp(9px, 2.2vw, 14px)/1 var(--f-display); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.35); }
.plk-slot small { font: 500 clamp(8px, 1.7vw, 11px)/1 var(--f-text); opacity: 0.88; }
.plk-slot.top { background: linear-gradient(180deg, #FFC533, #E07A00); color: #2B1500; }
.plk-slot.mid { background: linear-gradient(180deg, #33C481, #1B8A4B); }
.plk-slot.zero { background: linear-gradient(180deg, #615E80, #3A3856); color: #D9D7EE; }
.plk-ball { position: absolute; left: 0; top: 0; z-index: 2; width: 3.8%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 34% 28%, #FFFDF2 0 9%, #FFE08A 22%, #FFC53D 55%, #D98300 100%);
  box-shadow: 0 0 14px 3px rgba(255, 197, 61, 0.7), inset 0 -2px 3px rgba(120, 70, 0, 0.35); pointer-events: none; will-change: transform; }
.plk-ghost { position: absolute; left: 0; top: 0; z-index: 1; width: 3.8%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(0.8); background: #FFC53D; opacity: 0.28; pointer-events: none; }
.plk-ghost.g2 { opacity: 0.16; transform: translate(-50%, -50%) scale(0.62); } .plk-ghost.g3 { opacity: 0.08; transform: translate(-50%, -50%) scale(0.46); }
.plk-pop { position: absolute; top: 80%; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; font: 700 12.5px/1.4 var(--f-display); white-space: nowrap; z-index: 3; pointer-events: none; }
.plk-pop.win { background: #1B8A4B; color: #FFFFFF; }
.plk-pop.lose { background: rgba(0, 0, 0, 0.55); color: #FFB3BE; }
.plk-tally { text-align: center; margin: 0; min-height: 1.4em; }
.btn.primary.plk-go { min-height: 52px; font-size: 17px; }

/* BATTLE : l'arène. */
.btl-stage { position: relative; overflow: hidden; }
.btl-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -4px 0 4px; padding: 16px 12px 14px; border-radius: 16px; overflow: hidden; isolation: isolate; text-align: center; color: #FFFFFF;
  background: linear-gradient(108deg, #4A22B4 0%, #6C3CCD 49.6%, #1A0F3A 49.6%, #1A0F3A 50.4%, #C22A3C 50.4%, #7F1524 100%); }
.btl-title { margin: 0; font: 800 clamp(26px, 7vw, 40px)/1 var(--f-display); letter-spacing: 0.04em; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 0, 0, 0.35); }
.btl-sub { font: 600 13px/1.3 var(--f-text); opacity: 0.95; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.btl-head .g-sign { right: 10px; bottom: 6px; font-size: 6.5px; color: rgba(255, 255, 255, 0.85); }
.btl-board { display: flex; gap: 12px; align-items: stretch; overflow-x: auto; padding: 6px 2px 10px; }
.btl-col { flex: 1 1 0; min-width: 138px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; transition: opacity 0.3s ease; }
.btl-col.wait { opacity: 0.22; }
.btl-round { font: 500 11.5px/1.2 var(--f-display); color: var(--faint); text-align: center; }
.btl-match { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(var(--tint), 0.04); }
.btl-vs { position: relative; align-self: center; font: 800 10px/1 var(--f-display); color: var(--faint); text-align: center; min-height: 10px; }
.btl-p { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; border-radius: 10px; background: rgba(var(--tint), 0.07); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.25s var(--ease); }
.btl-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #6C3CCD; color: #FFFFFF; font: 700 10.5px/1 var(--f-display); font-style: normal; }
.btl-p:nth-child(3) .btl-av { background: #C22A3C; }
.btl-p.bye { background: transparent; color: var(--faint); font-weight: 500; font-size: 12px; padding-left: 9px; }
.btl-p.win { background: var(--key); color: var(--key-ink); box-shadow: 0 0 18px rgba(var(--key-glow), 0.35); }
.btl-p.out { opacity: 0.4; text-decoration: line-through; }
.btl-champ { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 18px 16px 16px; border-radius: 18px; background: rgba(var(--led-rgb), 0.1); border: 1px solid rgba(var(--led-rgb), 0.55); display: flex; flex-direction: column; gap: 4px; align-items: center; box-shadow: 0 0 50px rgba(var(--led-rgb), 0.18); }
.btl-champ::before { content: ''; position: absolute; left: 50%; top: 44px; z-index: -1; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: repeating-conic-gradient(rgba(245, 183, 0, 0.16) 0 12deg, transparent 12deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 68%); mask: radial-gradient(circle, #000 0, transparent 68%); }
.btl-cup { width: 62px; height: 70px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
@keyframes btl-pulse { from { border-color: var(--line-2); transform: scale(1); } to { border-color: var(--led); transform: scale(1.03); } }

/* TEXAS */
.tx-table { position: relative; height: 480px; margin: 34px 8px 58px; }
.tx-felt { position: absolute; inset: 56px 90px; border-radius: 999px; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 11px solid #1C1522;
  background: radial-gradient(ellipse at 50% 46%, #1D9566 0%, #0F6B45 58%, #094430 100%);
  box-shadow: inset 0 0 0 2px rgba(254, 243, 222, 0.28), inset 0 0 46px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 3px #3A2E22, 0 26px 60px rgba(0, 0, 0, 0.55); }
/* Le liseré du tapis, et l'anneau de l'agence en filigrane. */
.tx-felt::before { content: ''; position: absolute; inset: 14px; z-index: -1; border-radius: 999px; border: 1.5px dashed rgba(254, 243, 222, 0.2); }
.tx-felt::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 18px solid rgba(254, 243, 222, 0.045); }
.tx-pot { display: inline-flex; align-items: center; gap: 7px; color: #FFFFFF; font: 600 13.5px/1.2 var(--f-display); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); min-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.tx-pot.has::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: repeating-conic-gradient(#FEF3DE 0 30deg, #6C3CCD 30deg 60deg);
  box-shadow: inset 0 0 0 3px #6C3CCD, inset 0 0 0 4.5px #FEF3DE, 0 -3px 0 -1px #4A22B4, 0 -3px 0 0 #FEF3DE, 0 2px 4px rgba(0, 0, 0, 0.4); }
.tx-board { display: flex; gap: 6px; min-height: 64px; }
.tx-banner { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(10, 9, 17, 0.88); border: 1px solid rgba(245, 183, 0, 0.5); color: #FFFFFF; text-align: center; max-width: 90%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.tx-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 62px; border-radius: 7px; background: linear-gradient(160deg, #FFFFFF 0%, #F1EEE6 100%); color: #15171C;
  border: 1px solid #C9C4B8; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45); font: 700 17px/1 var(--f-text); overflow: hidden; }
.tx-card b { font-weight: 700; } .tx-card i { font-style: normal; font-size: 1.05em; margin-top: 2px; }
.tx-card.red { color: #C81E3A; }
.tx-card.back { background-color: #3B2396; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 5px); border: 2.5px solid #FEF3DE; }
.tx-card.back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #15132A; border: 2px solid #FEF3DE; box-shadow: 0 0 6px rgba(173, 152, 255, 0.95); }
.tx-seat { position: absolute; width: 132px; margin: -52px 0 0 -66px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.tx-cards { display: flex; gap: 3px; min-height: 48px; }
.tx-seat .tx-card { width: 34px; height: 48px; font-size: 14px; border-radius: 6px; }
.tx-seat.me .tx-card { width: 42px; height: 58px; font-size: 17px; }
.tx-name { position: relative; max-width: 100%; padding: 3px 11px; border-radius: 999px; background: #0A0911; border: 1px solid var(--line-2); color: #FFFFFF; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-stack { padding: 1px 8px; border-radius: 999px; background: #FFFFFF; color: #15171C; border: 1px solid #DADDE3; font: 600 12px/1.4 var(--f-text); font-variant-numeric: tabular-nums; }
.tx-stack:empty { display: none; }
.tx-tag { font-size: 11px; font-weight: 600; color: #4B5160; min-height: 13px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); }
.tx-tag:empty { background: transparent; }
.tx-seat.empty .tx-name { background: transparent; color: var(--faint); border: 1px dashed var(--line-2); font-weight: 500; }
.tx-seat.folded .tx-cards, .tx-seat.folded .tx-name { opacity: 0.45; }
.tx-seat.turn .tx-name { background: #FEF3DE; color: #110D17; border-color: transparent; box-shadow: 0 0 0 3px rgba(254, 243, 222, 0.25); }
/* Le temps qui reste pour parler : un trait qui se vide sous le nom. */
.tx-seat.turn .tx-name::after { content: ''; position: absolute; left: 12%; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; width: calc(var(--t, 1) * 76%); background: var(--tc, #6C3CCD); transition: width 0.25s linear, background-color 0.3s ease; }
.tx-seat.turn .tx-clock { color: var(--tc, #4B32D6); }
.tx-seat.winner .tx-name { background: #F2B01E; color: #3A2A00; border-color: transparent; box-shadow: 0 0 22px rgba(242, 176, 30, 0.6); } .tx-seat.winner .tx-tag { color: #8A5A00; }
.tx-dealer { display: none; position: absolute; top: 46px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: #FEF3DE; color: #15132A; border: 2px solid #6C3CCD; font: 800 10px/16px var(--f-display); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.tx-seat.dealer .tx-dealer { display: block; }
.tx-clock { position: absolute; top: 50px; left: -2px; padding: 1px 5px; border-radius: 999px; background: #FFFFFF; font: 700 11px/1.3 var(--f-text); color: #4B32D6; font-variant-numeric: tabular-nums; }
.tx-clock:empty { display: none; }
.tx-bet { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: rgba(10, 9, 17, 0.82); color: #FFFFFF; font: 700 12px/1.3 var(--f-text); white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.tx-bet::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: repeating-conic-gradient(#FEF3DE 0 30deg, #F2B01E 30deg 60deg); box-shadow: inset 0 0 0 2.5px #F2B01E, inset 0 0 0 3.5px #FEF3DE; }
.tx-bet:empty { display: none; }
.tx-pos-0 { left: 50%; top: 100%; } .tx-pos-0 .tx-bet { top: -30px; }
.tx-pos-1 { left: 20%; top: 92%; } .tx-pos-1 .tx-bet { top: -28px; }
.tx-pos-2 { left: 5%; top: 52%; } .tx-pos-2 .tx-bet { top: 40px; left: 150%; }
.tx-pos-3 { left: 20%; top: 12%; } .tx-pos-3 .tx-bet { top: 118px; }
.tx-pos-4 { left: 50%; top: 5%; } .tx-pos-4 .tx-bet { top: 118px; }
.tx-pos-5 { left: 80%; top: 12%; } .tx-pos-5 .tx-bet { top: 118px; }
.tx-pos-6 { left: 95%; top: 52%; } .tx-pos-6 .tx-bet { top: 40px; left: -50%; }
.tx-pos-7 { left: 80%; top: 92%; } .tx-pos-7 .tx-bet { top: -28px; }
.tx-info { text-align: center; min-height: 22px; font-weight: 600; }
.tx-actions .row { justify-content: center; } .tx-raise { max-width: 160px; }
.tx-felt .g-sign { position: absolute; left: 0; right: 0; bottom: 13%; justify-content: center; font-size: 12px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.34); text-shadow: none; }
.tx-felt .g-sign i { margin-right: 0.7em; box-shadow: none; border-color: rgba(254, 243, 222, 0.5); }
.tx-watch { text-align: center; min-height: 18px; margin-top: -6px; }
.tx-watch:empty { display: none; }

/* Table étroite — téléphone, et tablette quand le menu reste affiché à côté : la table s'arrondit et les sièges se resserrent. */
@media (max-width: 940px) {
  .tx-table { height: 430px; margin: 30px 0 54px; }
  .tx-felt { inset: 58px 34px; border-width: 8px; } .tx-felt::before { inset: 9px; } .tx-felt::after { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-width: 12px; }
  .tx-seat { width: 96px; margin: -48px 0 0 -48px; }
  .tx-seat .tx-card { width: 26px; height: 38px; font-size: 12px; }
  .tx-seat.me .tx-card { width: 34px; height: 48px; font-size: 14px; }
  .tx-cards { min-height: 38px; } .tx-name { font-size: 11px; padding: 2px 7px; }
  .tx-board .tx-card { width: 34px; height: 48px; font-size: 14px; } .tx-board { min-height: 50px; gap: 4px; }
  .tx-pos-1 { left: 16%; } .tx-pos-3 { left: 16%; } .tx-pos-5 { left: 84%; } .tx-pos-7 { left: 84%; } .tx-pos-2 { left: 9%; } .tx-pos-6 { left: 91%; }
  /* Sur les côtés, la mise se pose sur le tapis, au-dessus des cartes du joueur : elle ne touche ni son nom ni les cartes du milieu. */
  .tx-pos-2 .tx-bet { top: -25px; left: 82%; } .tx-pos-6 .tx-bet { top: -25px; left: 18%; }
  .tx-dealer { top: 36px; } .tx-clock { top: 40px; }
  .tx-felt .g-sign { font-size: 8px; letter-spacing: 0.16em; bottom: 13%; }
}
@media (max-width: 380px) { .tx-felt .g-sign { font-size: 7px; letter-spacing: 0.12em; bottom: 16%; } }

/* Chaque décor se règle sur sa propre largeur, et non sur celle de l'écran : sur tablette, le menu reste affiché et la colonne est étroite. */
@media (min-width: 761px) and (max-width: 1100px) { .cards { --cw: clamp(74px, calc((100vw - 420px) / 3.4), 146px); } }
@supports (width: 1cqw) {
  .c3-stage, .avi-sky, .chk-scene, .plk-board { container-type: inline-size; }
  .cards { --cw: clamp(74px, min(27cqw, 23vw), 146px); }
  .avi-sky { --ms: clamp(40px, 13cqw, 88px); }
  .chk-mult { font-size: clamp(30px, 10cqw, 58px); }
  .plk-slot { font-size: clamp(9px, min(2.7cqw, 2.4vw), 14px); } .plk-slot small { font-size: clamp(8px, min(2.1cqw, 1.9vw), 11px); }
  @container (max-width: 480px) { .chk-mult { left: 16%; } }
}

/* ------------------------------- Pastille « En ligne » et messages ---- */
.on-wrap { position: fixed; left: 16px; bottom: 16px; z-index: 49; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: min(320px, calc(100vw - 24px)); pointer-events: none; }
.on-wrap > * { pointer-events: auto; }
.on-wrap [hidden] { display: none !important; }
.on-wrap.big { width: min(620px, calc(100vw - 24px)); }
.on-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--glass), 0.97); color: var(--text); font: 600 14px/1 var(--f-text); cursor: pointer;
  box-shadow: 0 12px 34px var(--shade); -webkit-tap-highlight-color: transparent; }
.on-pill.on-foot { box-shadow: none; background: rgba(var(--tint), 0.05); }
.on-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(var(--ok-rgb), 0.6); animation: on-pulse 2s infinite; }
.on-dot.off { background: var(--faint); box-shadow: none; animation: none; }
@keyframes on-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--ok-rgb), 0.6); } 70% { box-shadow: 0 0 0 8px rgba(var(--ok-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--ok-rgb), 0); } }
.on-badge { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: var(--bad); color: var(--on-bad); font-size: 12px; font-weight: 700; text-align: center; }
.on-panel { width: 100%; }
.on-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 22px; background: rgba(var(--glass), 0.96); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 70px var(--shade-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.on-box > input { width: 100%; }
.on-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.on-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.on-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-status { font-size: 12px; color: var(--faint); }
.on-status.here { color: var(--ok); }
.on-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(var(--tint), 0.09); color: var(--text); font-size: 14px; cursor: pointer; }
.on-x.wide { width: auto; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: inherit; }
.on-hint { margin: 0; color: var(--muted); font-size: 13px; }
.on-list { display: flex; flex-direction: column; gap: 4px; max-height: min(300px, 45vh); overflow-y: auto; padding: 2px; }
.on-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: rgba(var(--tint), 0.045); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.on-row .on-dot { animation: none; }
.on-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-role { color: var(--faint); font-size: 13px; }
/* Membre en mode invisible : petit rond barré, affiché au fondateur seulement. */
.on-inv { flex: none; position: relative; width: 12px; height: 12px; border: 1.5px solid var(--faint); border-radius: 50%; }
.on-inv::after { content: ''; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--faint); transform: rotate(-45deg); }
.on-msgs { display: flex; flex-direction: column; gap: 6px; max-height: min(260px, 40vh); min-height: 60px; overflow-y: auto; padding: 2px; }
.on-wrap.big .on-msgs { max-height: min(620px, 62vh); min-height: min(360px, 45vh); }
.on-msg { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: 16px 16px 16px 5px; background: rgba(var(--tint), 0.09); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.on-msg.me { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--led-deep); color: #FFFFFF; }
.on-wrap.big .on-msg { font-size: 15px; }
.on-time { display: block; margin-top: 2px; font-size: 11px; opacity: 0.65; }
.on-send { display: flex; gap: 8px; }
.on-send input { flex: 1; min-width: 0; }
.on-size { display: flex; justify-content: flex-end; }
.on-notifs { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.on-notif { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px 15px 15px; border-radius: 18px; background: rgba(var(--glass), 0.94); border: 1px solid rgba(var(--led-rgb), 0.6); color: var(--text);
  box-shadow: 0 18px 50px var(--shade-strong), 0 0 36px rgba(var(--led-rgb), 0.18); overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; animation: on-in 0.3s var(--ease); }
.on-notif.ask { cursor: default; touch-action: auto; gap: 8px; }
.on-notif.bye { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
@keyframes on-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.on-notif-who { color: var(--led-hi); font-size: 12.5px; font-weight: 600; }
.on-notif-text { font-weight: 600; overflow-wrap: anywhere; }
.on-notif-hint { font-size: 12px; opacity: 0.7; }
.on-hold { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--led); box-shadow: 0 0 12px var(--led); }
.on-notif.holding .on-hold { width: 100%; transition: width 1s linear; }
.on-foot-row { display: flex; margin-top: 28px; padding-bottom: 8px; }
.on-foot-row [hidden] { display: none !important; }
@media (hover: hover) {
  .on-pill:hover { border-color: rgba(var(--led-rgb), 0.7); }
  .on-x:hover { background: rgba(var(--tint), 0.16); }
  .on-row:hover { border-color: rgba(var(--led-rgb), 0.55); background: rgba(var(--tint), 0.07); }
}
@media (prefers-reduced-motion: reduce) { .on-dot, .on-notif { animation: none; } }

/* Messages en tickets */
.tk-msgs { display: flex; flex-direction: column; gap: 8px; max-height: min(420px, 55vh); overflow-y: auto; padding: 4px 2px; margin: 8px 0; }
.tk-msgs .on-msg { max-width: min(560px, 88%); white-space: pre-wrap; }
.tk-who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; opacity: 0.8; }

/* Fiche de profil et badges : le niveau est écrit au centre d'un anneau lumineux, de plus en plus riche. */
.pcard-head { display: flex; align-items: center; gap: 16px; }
.pcard-head h2 { margin: 0; }
h2 > .tag.new { vertical-align: 2px; font-family: var(--f-text); }
.pcard-name { font-size: 18px; }
.badge-lvl { --b1: var(--lvl-a); --b2: var(--lvl-b); position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; font: 700 17px/1 var(--f-display); color: var(--text);
  background: radial-gradient(closest-side, var(--dial) 74%, transparent 76%), conic-gradient(from 210deg, var(--b1), var(--b2), var(--b1));
  box-shadow: 0 0 20px -2px var(--b1), inset 0 0 0 1px rgba(var(--tint), 0.12); }
.badge-lvl.b2 { --b1: #5FF0BA; --b2: #0F9E79; }
.badge-lvl.b3 { --b1: #86B6FF; --b2: #2B5FD9; }
.badge-lvl.b4 { --b1: #C4B2FF; --b2: #6C3CCD; }
.badge-lvl.b5 { --b1: #FFE08A; --b2: #F2A01E; background: radial-gradient(closest-side, var(--dial) 74%, transparent 76%), conic-gradient(from 210deg, #FFE08A, #FF8AB3, #A99BFF, #7CE6FF, #8CF0B4, #FFE08A); box-shadow: 0 0 26px -2px #FFE08A, inset 0 0 0 1px rgba(var(--tint), 0.2); }
.badge-bar { height: 10px; border-radius: 999px; background: rgba(var(--tint), 0.08); overflow: hidden; }
.badge-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--led-deep), var(--led)); box-shadow: 0 0 14px rgba(var(--led-rgb), 0.6); }

/* Sur ordinateur, une lueur suit la souris sur le bloc survolé (le code donne la position dans --mx et --my). */
/* Ces deux valeurs ne se transmettent pas aux éléments contenus dans le bloc : les déplacer ne fait recalculer que le bloc lui-même. */
@property --mx { syntax: '<length-percentage>'; inherits: false; initial-value: 50%; }
@property --my { syntax: '<length-percentage>'; inherits: false; initial-value: 0px; }
@media (hover: hover) and (pointer: fine) {
  .main .card:not(.hello):not(.kpi):hover, .main .kpis:hover { background-image: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0px), rgba(var(--led-rgb), 0.085), transparent 62%); }
}

/* Changement de couleur : la nouvelle lumière se répand en cercle depuis la pastille choisie (l'animation est lancée par le code). */
html.led-wave::view-transition-old(root), html.led-wave::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.led-wave::view-transition-new(root) { z-index: 2; }

/* Couleur du ruban (Mon compte) */
.led-pick { display: flex; flex-wrap: wrap; gap: 12px; }
.led-sw { position: relative; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.led-sw::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 18px -1px var(--sw); }
.led-sw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.led-sw[aria-pressed="true"]::after { border-color: var(--key); }
.led-sw span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------- Nuit / jour ---- */
/* L'interrupteur, tout en bas à gauche : au pied du menu une fois connecté, dans le coin de l'écran avant la connexion. */
.mode-sw { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--tint), 0.07); border: 1px solid var(--line); }
.mode-sw button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px/1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mode-sw button::before { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.mode-sw .m-nuit { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5a8.5 8.5 0 1 0 10.7 10.7z'/%3E%3C/svg%3E"); }
.mode-sw .m-jour { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='%23000' stroke='none'/%3E%3Cpath d='M12 2.5v2.4M12 19.1v2.4M2.5 12h2.4M19.1 12h2.4M5.3 5.3L7 7M17 17l1.7 1.7M18.7 5.3L17 7M7 17l-1.7 1.7'/%3E%3C/svg%3E"); }
.mode-sw button[aria-pressed="true"] { background: var(--key); color: var(--key-ink); font-weight: 600; box-shadow: 0 4px 14px -6px rgba(var(--key-glow), 0.6); }
.side-foot .mode-sw { margin-top: 6px; }
.mode-sw.corner { position: relative; z-index: 5; display: flex; width: max-content; margin: -58px 0 16px 16px; background: rgba(var(--glass), 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Là où la carte peut descendre jusqu'à lui (écran étroit, règlement), la page lui garde une bande libre en bas. */
@media (max-width: 820px) { .center { --lift: 24px; padding-bottom: 72px; } }
@media (max-width: 1140px) { .center:has(> .card-wide) { padding-bottom: 72px; } }
@media (hover: hover) { .mode-sw button:not([aria-pressed="true"]):hover { color: var(--text); background: rgba(var(--tint), 0.07); } }
/* Ordinateur : la pastille « En ligne » se place au pied de la page, juste à droite du menu, pour ne recouvrir ni « Se déconnecter » ni l'interrupteur. */
@media (min-width: 761px) { .on-wrap { left: 272px; } }

/* Ce que le jour change en plus des couleurs : le halo du ruban (sans grain), la flèche des listes. */
html[data-mode="jour"] body::after { background: radial-gradient(ellipse 70% 44% at 50% 0%, rgba(var(--led-rgb), 0.2), rgba(var(--led-rgb), 0.06) 50%, transparent 76%) no-repeat; }
html[data-mode="jour"] body::before { box-shadow: 0 0 14px 1px rgba(var(--led-rgb), 0.5), 0 0 44px 5px rgba(var(--led-rgb), 0.22); }
html[data-mode="jour"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235F5B70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-mode="jour"] .login-bg::after { box-shadow: 0 0 22px 3px rgba(var(--ring-rgb), 0.45), 0 0 70px 6px rgba(var(--led-rgb), 0.35), inset 0 0 22px 3px rgba(var(--ring-rgb), 0.3), inset 0 0 70px 6px rgba(var(--led-rgb), 0.22); }
html[data-mode="jour"] .brand-o { box-shadow: 0 0 0.5em rgba(var(--led-rgb), 0.55); }
html[data-mode="jour"] .btn.primary { box-shadow: 0 6px 18px -8px rgba(var(--key-glow), 0.55); }

/* ---------------------------------------------------------- Téléphone ---- */
@media (max-width: 760px) {
  h1 { font-size: 21px; }
  h2 { font-size: 15px; }

  /* Menu : une barre en haut qui reste visible ; « Menu » ouvre la liste des pages en plein écran. */
  .side { position: sticky; top: 0; z-index: 40; padding: 12px 12px 10px; gap: 10px; max-height: 100vh; max-height: 100dvh; overflow-y: auto; background: var(--bar); border-bottom: 1px solid var(--line); }
  .side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; }
  .side-head > div:first-child { flex: none; }
  .brand.light { font-size: 11.5px; }
  .side-head .brand-2, .side-head .brand-fin { display: none; }
  .side-title { display: none; }
  /* Nom d'une autre agence : s'il est long, il se coupe (…) plutôt que d'écraser le solde. */
  .side-head > .home-link:has(.brand-mark) { flex: 0 1 auto; min-width: 0; }
  .side-head .brand:has(.brand-mark) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--tint), 0.07); color: var(--text); font: 600 13.5px/1 var(--f-text); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .wallet { flex: 1 1 0; min-width: 118px; width: auto; margin: 0; padding: 6px 11px; gap: 2px; border-radius: 13px; font-size: 11px; }
  .wallet > span { gap: 6px; }
  .wallet b { font-size: 11.5px; }
  .wallet b::after { width: 12px; height: 12px; margin-left: 4px; }
  .wallet-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wl-long { display: none; }
  .wl-short { display: inline; }
  .side:not(.open) .nav, .side:not(.open) .side-foot { display: none; }
  .side.open { position: fixed; inset: 0; z-index: 60; background: var(--sheet); padding-top: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  /* Sur un petit téléphone la liste défile : le haut du menu (soldes, « Fermer ») reste en place.
     La marge du haut est portée par cet en-tête, pas par le menu, pour qu'il colle bien au bord de l'écran. */
  .side.open .side-head { position: sticky; top: 0; z-index: 2; margin: 0 -12px; padding: 12px 12px 8px; background: var(--sheet); }
  .side.open .nav { gap: 2px; margin-top: -2px; }
  .side.open .nav-item { min-height: 52px; padding: 10px 14px; font: 500 16.5px/1.25 var(--f-display); border-radius: 14px; }
  /* Pied du menu : nuit / jour à gauche, « Se déconnecter » à côté. */
  .side.open .side-foot { margin-top: auto; flex-flow: row wrap; align-items: center; }
  .side.open .side-foot > .muted-light, .side.open .side-foot > .who { flex: 0 0 100%; }
  .side.open .side-foot .mode-sw { order: 1; margin-top: 0; }
  .side.open .side-foot .btn { order: 2; flex: 1 1 130px; min-height: 42px; }

  .main { padding: 18px 12px calc(44px + env(safe-area-inset-bottom)); gap: 14px; }
  .card { padding: 16px; gap: 12px; border-radius: 20px; }
  .card.fold { padding: 14px 16px; }
  .card.fold + .card.fold { margin-top: -12px; }
  .card-narrow, .card-wide { padding: 24px 18px; border-radius: 24px; }
  .center { --lift: 27px; padding: 14px 14px 68px; }
  .mode-sw.corner { margin: -54px 0 12px 12px; }
  .stack { gap: 12px; }

  /* Cases de chiffres : deux par ligne */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
  .kpis > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpis > .card { padding: 14px; }
  .kpi-v { font-size: 16.5px; }
  .ring { top: 12px; right: 12px; width: 48px; height: 48px; }
  .ring > span { font-size: 9px; }
  .kpi-btn.has-ring > div:nth-child(-n+2) { padding-right: 50px; }

  /* Formulaires : une case par ligne, boutons faciles à toucher */
  form.grid, .acc-edit, .acc-edit.four { grid-template-columns: 1fr; }
  .row > input[type="text"] { max-width: none; flex-basis: 100%; }
  .field.end .btn, form > .btn, .modal .row .btn { width: 100%; }
  .modal .row { flex-direction: column-reverse; align-items: stretch; }
  .modal.wide .row { flex-direction: row; align-items: center; }
  .btn { min-height: 48px; padding: 0 16px; }
  .fold-head .btn { min-height: 40px; }
  .month { min-width: 110px; }

  /* Lignes repliées : le nom, puis le résumé, puis le bouton sur toute la largeur */
  .stat-head > strong { min-width: 0; flex: 1 1 100%; }
  .stat-sum { flex-basis: 100%; }
  .stat-head > .row { flex: 1 1 100%; }
  .stat-head > .row .btn { flex: 1 1 auto; }

  /* Tableaux : ils défilent de gauche à droite dans leur cadre, sans élargir la page */
  .scroll { margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; font-size: 13px; }
  th, td { padding: 9px 8px; }

  /* Barre « Enregistrer » : sur téléphone, seulement ses boutons, côte à côte, sur un fond plein
     (sans flou d'arrière-plan à recalculer à chaque défilement) : elle ne cache plus le quart de l'écran. */
  .savebar { top: 70px; flex-wrap: nowrap; gap: 8px; padding: 8px; background: var(--bar); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .savebar > .muted { display: none; }
  .savebar .btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 6px 12px; font-size: 13.5px; }
  .banner.view { background: var(--bar); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .banner.view { top: 70px; }
  .banner.view .btn { width: 100%; }
  .toast-slot, .ban-follow, .banner.alert { top: 70px; }
  .toast-slot.float, .toast-slot.float.in-shell { left: 0; top: 68px; padding: 0 12px; }
  .ban-follow > .banner.alert, .ban-pinned > .banner.alert, .toast-slot .banner.alert { top: auto; }
  .alert-text { font-size: 15px; }
  .overlay { padding: 10px; align-items: flex-end; }
  .overlay.mid { align-items: center; }
  .modal { max-height: 90vh; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px; }
  .modal.wide .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tchart { height: 220px; }
  .rules-box { max-height: 50vh; padding: 12px; }
  .combo-list { max-height: 240px; }
  .top li { gap: 10px; }

  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .games-grid .game-tile { padding: 12px; gap: 8px; }
  .games-grid .game-tile h2 { font-size: 13.5px; }
  .games-grid .game-tile p { font-size: 12.5px; line-height: 1.35; }
  .games-grid .game-tile .btn { width: 100%; }
  .g-sign { right: 10px; bottom: 8px; font-size: 8px; }
  .g-art { height: 84px; border-radius: 13px; }
  .g-art .g-sign { right: 7px; bottom: 5px; font-size: 5.6px; }
  .g-tag { left: 7px; top: 7px; padding: 2px 7px; font-size: 10.5px; }
  .g-art-cartes .gcard { --cw: 38px; top: 13px; margin-left: -19px; }
  .g-art-cartes .gcard.m1 { transform: translateX(-28px) translateY(4px) rotate(-14deg); }
  .g-art-cartes .gcard.m2 { transform: translateY(-3px); }
  .g-art-cartes .gcard.m3 { transform: translateX(28px) translateY(4px) rotate(14deg); }
  .g-art-aviator .sp-jet { left: 58%; bottom: 60%; width: 44px; height: 21px; }
  .ga-zebra { left: 13%; width: 34px; bottom: 12%; } .ga-hen { left: 15%; bottom: 18%; width: 38px; height: 36px; }
  .ga-pegs { top: 9px; transform: scale(0.74); transform-origin: 50% 0; } .ga-ball { top: 30px; width: 10px; height: 10px; } .ga-slots { bottom: 16px; width: 116px; height: 8px; margin-left: -58px; }
  .g-art-battle .sp-swords { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .g-art-texas .tx-card { top: 14px; width: 36px; height: 50px; font-size: 14px; } .g-art-texas .ga-c1 { margin-left: -35px; } .g-art-texas .ga-c2 { top: 11px; margin-left: -4px; }
  .ga-chips { left: 9%; bottom: 10px; width: 17px; height: 17px; }
  .c3-stage { padding: 22px 6px 34px; border-radius: 16px; } .cards { gap: 10px; --pitch: calc(var(--cw) + 10px); }
  .avi-sky { height: 262px; } .avi-plane { width: 62px; height: 29px; } .avi-flame { width: 28px; height: 13px; }
  .btn.primary.avi-cash { width: 100%; min-width: 0; }
  .chk-mult { left: 16%; } .chk-board { padding: 6px 8px; } .chk-board .g-sign { font-size: 6px; }
  .chk-scene { height: 272px; } .chk-hen { width: 54px; height: 54px; } .chk-thief { width: 62px; height: 76px; }
  .btl-col { min-width: 124px; }

  .on-wrap { left: 12px; bottom: 12px; }
  .login-bg::after { border-width: 10px; }
}
/* Téléphone peu haut : les lignes du menu se resserrent un peu. */
@media (max-width: 760px) and (max-height: 700px) {
  .side.open .nav-item { min-height: 46px; padding: 8px 14px; font-size: 15.5px; }
}

@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
  .menu-btn { padding: 0 11px; }
  .brand.light { font-size: 10.5px; }
  .tok-chip { gap: 6px 10px; padding: 7px 12px; }
  .tok-chip strong { font-size: 12.5px; }
}

/* ---------------------------------------------------------- Animations ---- */
.confetti { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; border-radius: 2px; opacity: 0.95; }
.confetti.coins i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE9A6, #F5B700 60%, #B98200); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
@keyframes shuffle1 { 0%, 100% { transform: translate(0, 0) rotate(0); } 18% { transform: translate(216px, -16px) rotate(5deg); } 38% { transform: translate(108px, 10px) rotate(-3deg); } 58% { transform: translate(216px, 12px) rotate(4deg); } 80% { transform: translate(0, -12px) rotate(-4deg); } }
@keyframes shuffle2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 18% { transform: translate(-108px, 14px) rotate(-5deg); } 38% { transform: translate(108px, -14px) rotate(4deg); } 58% { transform: translate(-108px, -8px) rotate(-3deg); } 80% { transform: translate(108px, 12px) rotate(4deg); } }
@keyframes shuffle3 { 0%, 100% { transform: translate(0, 0) rotate(0); } 18% { transform: translate(-108px, -12px) rotate(4deg); } 38% { transform: translate(-216px, 14px) rotate(-5deg); } 58% { transform: translate(0, -14px) rotate(3deg); } 80% { transform: translate(-108px, 0) rotate(-4deg); } }
@keyframes flip { 0% { transform: rotateY(90deg) scale(0.92); opacity: 0; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  @keyframes nl-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes nl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes nl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes nl-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes nl-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
  @keyframes nl-fade { to { opacity: 0; } }
  @keyframes nl-dim { from { opacity: 0; } to { opacity: 1; } }
  @keyframes nl-rise { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes nl-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
  @keyframes nl-pulse { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(var(--led-rgb), 0); } 50% { box-shadow: inset 0 0 0 2px rgba(var(--led-rgb), 0.7), inset 0 0 30px rgba(var(--led-rgb), 0.2); } }
  @keyframes nl-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--bad-rgb), 0.6); } 50% { box-shadow: 0 0 0 7px rgba(var(--bad-rgb), 0); } }
  @keyframes nl-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
  @keyframes nl-bounce-d { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(4px); } }
  @keyframes nl-drop { 0% { opacity: 0; transform: scale(0.3); } 70% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
  @keyframes nl-glide { from { transform: translateY(var(--from, 0)); } to { transform: none; } }
  @keyframes nl-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 77, 0), 0 0 0 rgba(var(--led-rgb), 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 201, 77, 0.55), 0 0 30px rgba(var(--led-rgb), 0.6); } }
  @keyframes nl-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
  @keyframes nl-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  @keyframes nl-coin { 0% { transform: translate3d(0, 0, 0) rotateY(0); } 100% { transform: translate3d(var(--dx, 0), 110vh, 0) rotateY(1080deg); } }
  @keyframes nl-fall { to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(720deg); } }
  /* Le ruban : une vague de lumière le parcourt à l'arrivée sur une page ; elle tourne en boucle pendant un chargement. */
  @keyframes led-sweep { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
  /* L'anneau de la connexion s'allume comme un vrai : deux hésitations, puis la pleine lumière. */
  @keyframes ring-on { 0% { opacity: 0; } 8% { opacity: 0.75; } 13% { opacity: 0.1; } 21% { opacity: 0.9; } 26% { opacity: 0.3; } 38%, 100% { opacity: 1; } }
  @keyframes nav-slide { from { transform: translateY(var(--from, 0)); } to { transform: none; } }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-18px) scale(0.97); } to { opacity: 1; transform: none; } }
  @keyframes sheet-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes badge-up { 0% { transform: scale(0.5); filter: brightness(2.2); } 45% { transform: scale(1.32); filter: brightness(1.6); } 100% { transform: none; filter: none; } }
  .boot::before { animation: spin 0.8s linear infinite; }
  .badge-lvl.up { animation: badge-up 1.5s var(--ease) 0.3s backwards; }

  /* Les animations d'entrée s'arrêtent net une fois jouées (« backwards », pas « both ») : sinon chaque bloc garderait une transformation,
     passerait devant ses voisins du dessus, et une liste de recherche ouverte se retrouverait derrière les blocs suivants. */
  /* Une seule mise en scène à l'arrivée sur une page : la vague sur le ruban, puis les blocs qui montent l'un après l'autre. */
  .shell.arrive::before { content: ''; position: fixed; z-index: 71; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent 35%, #FFFFFF 50%, transparent 65%) no-repeat; background-size: 60% 100%; animation: led-sweep 0.75s var(--ease) both; }
  .shell:has(.skel-wrap)::before, .shell:has(.stale)::before { content: ''; position: fixed; z-index: 71; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent 35%, #FFFFFF 50%, transparent 65%) no-repeat; background-size: 60% 100%; animation: led-sweep 1.1s linear infinite; }
  .content.enter > * > * { animation: nl-in 0.5s var(--ease) backwards; }
  .content.enter > * > *:nth-child(2) { animation-delay: 0.05s; }
  .content.enter > * > *:nth-child(3) { animation-delay: 0.1s; }
  .content.enter > * > *:nth-child(4) { animation-delay: 0.15s; }
  .content.enter > * > *:nth-child(5) { animation-delay: 0.2s; }
  .content.enter > * > *:nth-child(n+6) { animation-delay: 0.25s; }
  .content.enter > .skel-wrap > * { animation: nl-skel 1.3s linear infinite, nl-dim 0.3s ease 0.15s backwards; }
  .enter .bar, .enter .tbar { transform-origin: bottom; animation: nl-grow 0.8s var(--ease) backwards; }
  .enter .top-bar { transform-origin: left; animation: nl-growx 1s var(--ease) backwards; }
  .enter .top li.podium .top-rank { animation: nl-drop 0.6s var(--ease) 0.35s backwards; }
  .enter .top li.moved { animation: nl-glide 1s var(--ease) 0.2s backwards; }
  .title-row h1 { animation: nl-reveal 0.4s var(--ease) backwards; }
  .still .title-row h1, .shell:not(.arrive) .title-row h1 { animation: none; }

  /* Volets, panneaux, messages : ils se déplient (la hauteur est animée par le code ; ici, l'apparition du contenu). */
  .reveal:not([hidden]), .panel:not([hidden]), .card.inner { animation: nl-reveal 0.3s var(--ease) backwards; }
  .note:not([hidden]) { animation: nl-reveal 0.25s ease backwards; }
  /* Mise à jour d'une page déjà affichée : ces blocs arrivent sans animation. On ne coupe pas l'animation, on lui donne une durée
     nulle : quand la page redevient « normale » un instant plus tard, elle est déjà terminée et ne se rejoue pas. (Avec
     « animation: none », elle démarrait à ce moment-là : les volets ouverts clignotaient après chaque action.) */
  .still .reveal, .still .panel, .still .card.inner, .still .note:not(.fade) { animation-duration: 0s; animation-delay: 0s; }
  .note.fade { animation: nl-fade 0.6s ease forwards; }
  .overlay { animation: nl-dim 0.2s ease backwards; }
  .modal { animation: nl-rise 0.34s var(--ease) backwards; }
  .toast-slot .banner.alert, .banner.alert:not([hidden]) { animation: drop-in 0.38s var(--ease) backwards; }
  .banner.alert .alert-ico { animation: nl-pop 0.6s ease backwards; }
  /* Une annonce déjà affichée ne rejoue pas son entrée quand la page se met à jour ou change. */
  .banner.alert.seen:not(.bye), .banner.alert.seen .alert-ico { animation: none; }
  /* Le solde vient de bouger : son chiffre s'allume un instant, sans rien déplacer. */
  .wallet b.chg { animation: wl-chg 1.4s ease backwards; }
  @keyframes wl-chg { from { color: var(--led-hi); text-shadow: 0 0 14px rgba(var(--led-rgb), 0.75); } to { color: var(--text); text-shadow: 0 0 0 rgba(var(--led-rgb), 0); } }

  /* Le repère de la page ouverte glisse depuis l'ancienne page. */
  .nav-item.on.slide::after { animation: nav-slide 0.42s var(--ease) backwards; }

  /* Boutons : ils s'enfoncent un peu sous le doigt. */
  .btn, .kpi-btn, .nav-item, .menu-btn, .wallet, .tok-chip, .on-pill, .on-row, .led-sw { transition: transform 0.12s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.2s ease, color 0.16s ease; }
  .btn:active, .menu-btn:active, .wallet:active, .tok-chip:active, .on-pill:active { transform: scale(0.96); }
  .kpi-btn:active { transform: scale(0.985); }
  .game-tile.go { transition: border-color 0.18s ease, box-shadow 0.25s ease, transform 0.25s var(--ease); }
  .game-tile.go:active { transform: scale(0.98); }
  input, select, textarea { transition: border-color 0.16s ease, box-shadow 0.2s ease; }
  .led-sw::before { transition: transform 0.2s var(--ease); }
  .led-sw:active::before { transform: scale(0.86); }
  @media (hover: hover) { .game-tile.go:hover { transform: translateY(-3px); } .led-sw:hover::before { transform: scale(1.1); } }

  /* Téléphone : le menu plein écran arrive ligne par ligne. */
  .side.open .nav-item, .side.open .side-foot { animation: sheet-in 0.34s var(--ease) backwards; }
  .side.open .nav-item:nth-child(2) { animation-delay: 0.02s; } .side.open .nav-item:nth-child(3) { animation-delay: 0.04s; } .side.open .nav-item:nth-child(4) { animation-delay: 0.06s; }
  .side.open .nav-item:nth-child(5) { animation-delay: 0.08s; } .side.open .nav-item:nth-child(6) { animation-delay: 0.1s; } .side.open .nav-item:nth-child(7) { animation-delay: 0.12s; }
  .side.open .nav-item:nth-child(8) { animation-delay: 0.14s; } .side.open .nav-item:nth-child(9) { animation-delay: 0.16s; } .side.open .nav-item:nth-child(n+10) { animation-delay: 0.18s; }
  .side.open .side-foot { animation-delay: 0.2s; }

  /* Connexion */
  .login-bg::before, .login-bg::after { animation: ring-on 1.5s linear 0.15s backwards; }
  .login-bg > .card { animation: nl-rise 0.7s var(--ease) 0.5s backwards; }

  /* Badge : l'anneau s'allume à l'ouverture d'une fiche. */
  .modal .badge-lvl { animation: ring-on 1.1s linear 0.2s backwards; }

  .confetti i { animation: nl-fall linear forwards; }
  .confetti.coins i { animation: nl-coin linear forwards; }
  .pulse { animation: nl-pulse 1.8s ease-in-out infinite; }
  .dot { animation: nl-dot 1.6s ease-in-out infinite; }
  .trend.up b { animation: nl-bounce 1.4s ease-in-out 3; }
  .trend.down b { animation: nl-bounce-d 1.4s ease-in-out 3; }
  .tag.new { animation: nl-blink 1.8s ease-in-out infinite; }

  /* Jeux */
  /* Les 3 cartes : mélange façon bonneteau. Les cartes partent d'un seul paquet, s'échangent deux fois, puis reviennent chacune à sa place. */
  @keyframes c3-mix-1 {
    0%, 10% { transform: translateX(var(--pitch)) translateY(-3px) rotate(-3deg) scale(0.96); z-index: 3; }
    22% { transform: translateX(0) translateY(0) rotate(0deg) scale(1); z-index: 3; }
    34% { transform: translateX(calc(var(--pitch) * 0.5)) translateY(-20px) rotate(4deg) scale(1.07); z-index: 3; }
    46% { transform: translateX(var(--pitch)) translateY(0) rotate(0deg) scale(1); z-index: 2; }
    58% { transform: translateX(calc(var(--pitch) * 1.5)) translateY(12px) rotate(-3deg) scale(0.94); z-index: 1; }
    70% { transform: translateX(calc(var(--pitch) * 2)) translateY(0) rotate(0deg) scale(1); z-index: 1; }
    81% { transform: translateX(var(--pitch)) translateY(-26px) rotate(-6deg) scale(1.08); z-index: 3; }
    93% { transform: translateX(0) translateY(3px) rotate(0deg) scale(1); z-index: 3; }
    100% { transform: none; z-index: auto; }
  }
  @keyframes c3-mix-2 {
    0%, 10% { transform: translateX(0) translateY(0) rotate(0deg) scale(0.96); z-index: 2; }
    22% { transform: translateX(0) translateY(0) rotate(0deg) scale(1); z-index: 1; }
    34% { transform: translateX(calc(var(--pitch) * -0.5)) translateY(12px) rotate(-3deg) scale(0.94); z-index: 1; }
    46%, 70% { transform: translateX(calc(var(--pitch) * -1)) translateY(0) rotate(0deg) scale(1); z-index: 1; }
    93% { transform: translateX(0) translateY(3px) rotate(0deg) scale(1); z-index: 1; }
    100% { transform: none; z-index: auto; }
  }
  @keyframes c3-mix-3 {
    0%, 10% { transform: translateX(calc(var(--pitch) * -1)) translateY(3px) rotate(3deg) scale(0.96); z-index: 1; }
    22%, 46% { transform: translateX(0) translateY(0) rotate(0deg) scale(1); z-index: 2; }
    58% { transform: translateX(calc(var(--pitch) * -0.5)) translateY(-20px) rotate(4deg) scale(1.07); z-index: 3; }
    70% { transform: translateX(calc(var(--pitch) * -1)) translateY(0) rotate(0deg) scale(1); z-index: 2; }
    93% { transform: translateX(0) translateY(3px) rotate(0deg) scale(1); z-index: 2; }
    100% { transform: none; z-index: auto; }
  }
  @keyframes c3-num { 0%, 90% { color: transparent; } 100% { color: #FEF3DE; } }
  .game-table.play .shuffle1 { animation: c3-mix-1 2s cubic-bezier(0.45, 0.05, 0.35, 1) backwards; }
  .game-table.play .shuffle2 { animation: c3-mix-2 2s cubic-bezier(0.45, 0.05, 0.35, 1) backwards; }
  .game-table.play .shuffle3 { animation: c3-mix-3 2s cubic-bezier(0.45, 0.05, 0.35, 1) backwards; }
  .game-table.play .cards .gcard.back .cb-ring { animation: c3-num 2s linear backwards; }
  /* Retournement : le dos pivote jusqu'à la tranche, puis la face arrive de l'autre côté. La carte choisie d'abord, les autres ensuite. */
  @keyframes c3-out { from { transform: rotateY(0deg); } to { transform: rotateY(90deg); } }
  @keyframes c3-in { from { transform: rotateY(-90deg); } to { transform: rotateY(0deg); } }
  @keyframes c3-lift { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.05); } }
  @keyframes c3-win { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.06); } }
  @keyframes c3-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
  @keyframes c3-no { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
  .game-table.play .gcard.turn { perspective: 620px; animation: c3-lift 0.56s ease backwards; }
  .game-table.play .gcard.turn .pc-back { display: block; animation: c3-out 0.26s ease-in forwards; }
  .game-table.play .gcard.turn .pc-face { animation: c3-in 0.3s ease-out 0.26s backwards; }
  .game-table.play .gcard.turn.late { animation-delay: 0.6s; }
  .game-table.play .gcard.turn.late .pc-back { animation-delay: 0.6s; }
  .game-table.play .gcard.turn.late .pc-face { animation-delay: 0.86s; }
  .game-table.play.win .gcard.turn.good { animation: c3-lift 0.56s ease backwards, c3-win 0.9s ease-in-out 0.7s 2; }
  .gcard.turn.good .pc-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.75) 50%, transparent 68%); transform: translateX(-130%); }
  .game-table.play .gcard.turn.good .pc-face::after { animation: c3-sheen 0.9s ease 0.75s; }
  .game-table.play.lose .gcard.turn.good.late .pc-face::after { animation-delay: 1.3s; }
  .game-table.play.lose .gcard.turn.mine { animation: c3-lift 0.56s ease backwards, c3-no 0.5s ease 0.62s; }
  /* Le texte du résultat n'arrive qu'une fois la carte retournée. */
  .game-table.play > .note { animation: nl-reveal 0.3s ease 0.7s backwards; }
  /* AVIATOR */
  @keyframes avi-flame { 0%, 100% { transform: scaleX(1) scaleY(1); } 50% { transform: scaleX(0.68) scaleY(0.84); } }
  @keyframes avi-flash { 0% { opacity: 1; transform: scale(0.2); } 55% { opacity: 0.95; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }
  @keyframes avi-ring { 0% { opacity: 0.95; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1.9); } }
  @keyframes avi-stamp { 0% { opacity: 0; transform: rotate(-4deg) scale(1.9); } 60% { opacity: 1; transform: rotate(-4deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
  @keyframes avi-tick { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
  .avi-sky.fly .avi-flame { animation: avi-flame 0.12s linear infinite; }
  .avi-sky.crash { animation: nl-shake 0.5s ease both; }
  .avi-sky.crash .avi-boom::before { animation: avi-flash 0.62s ease-out both; }
  .avi-sky.crash .avi-boom::after { animation: avi-ring 0.78s ease-out both; }
  .avi-sky.won .avi-stamp, .avi-sky.crash .avi-stamp { animation: avi-stamp 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  .avi-sky.won .avi-mult { animation: nl-pop 0.5s ease both; }
  .avi-mult.tick { animation: avi-tick 0.32s ease; }
  /* CHICKEN */
  @keyframes hen-idle { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(1px) scaleY(0.965); } }
  @keyframes hen-bob { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-4px) rotate(-3deg); } }
  @keyframes hen-leg-a { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(-30deg); } }
  @keyframes hen-leg-b { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } }
  @keyframes hen-wing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
  @keyframes hen-flap { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-58deg); } }
  @keyframes hen-joy { 0%, 100% { transform: translateY(0) rotate(0deg); } 38% { transform: translateY(-30px) rotate(-8deg); } 72% { transform: translateY(0) rotate(4deg); } }
  @keyframes cook-run { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
  @keyframes cook-leg-a { 0%, 100% { transform: rotate(36deg); } 50% { transform: rotate(-36deg); } }
  @keyframes cook-leg-b { 0%, 100% { transform: rotate(-36deg); } 50% { transform: rotate(36deg); } }
  @keyframes cook-chop { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(28deg); } }
  @keyframes chk-pop { 0% { opacity: 0; transform: translate(-50%, 8px) scale(0.7); } 22% { opacity: 1; transform: translate(-50%, -4px) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1); } }
  @keyframes chk-puff { 0% { opacity: 1; transform: scale(0.3); } 70% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.35); } }
  @keyframes chk-ok { 0% { filter: brightness(2.4); } 100% { filter: brightness(1); } }
  .chk-hen .chk-hen-body { animation: hen-idle 1.7s ease-in-out infinite; }
  .chk-hen.walk .chk-hen-body { animation: hen-bob 0.3s ease-in-out infinite; }
  .chk-hen.walk .sp-hen-leg.l1 { animation: hen-leg-a 0.3s linear infinite; }
  .chk-hen.walk .sp-hen-leg.l2 { animation: hen-leg-b 0.3s linear infinite; }
  .chk-hen.walk .sp-hen-wing { animation: hen-wing 0.3s ease-in-out infinite; }
  .chk-hen.happy .chk-hen-body { animation: hen-joy 0.55s ease-in-out 4; }
  .chk-hen.happy .sp-hen-wing { animation: hen-flap 0.14s linear 16; }
  .chk-thief.run .chk-cook { animation: cook-run 0.24s linear infinite; }
  .chk-thief.run .sp-cook-leg.l1 { animation: cook-leg-a 0.24s linear infinite; }
  .chk-thief.run .sp-cook-leg.l2 { animation: cook-leg-b 0.24s linear infinite; }
  .chk-thief.run .sp-cook-arm { animation: cook-chop 0.3s ease-in-out infinite; }
  .chk-thief.away .chk-carried .sp-hen-wing { animation: hen-flap 0.14s linear infinite; }
  .chk-pop { animation: chk-pop 0.95s ease-out both; }
  .chk-puff.go::before { animation: chk-puff 0.55s ease-out both; }
  .chk-lane.ok .chk-zebra { animation: chk-ok 0.5s ease backwards; }
  .chk-scene.hit { animation: nl-shake 0.5s ease both; }
  .chk-scene.won .chk-mult { animation: nl-pop 0.5s ease both; }
  /* PLINKO */
  @keyframes plk-land { 0% { transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1); } 30% { transform: translateX(-50%) translateY(7px) scale(1.12); filter: brightness(1.7); } 100% { transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1); } }
  @keyframes plk-pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
  @keyframes plk-jackpot { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 80px rgba(0, 0, 0, 0.35); } 40% { box-shadow: inset 0 0 0 4px #FFD166, inset 0 0 60px rgba(255, 209, 102, 0.55); } }
  @keyframes plk-ripple { from { opacity: 0.95; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(4.4); } }
  .plk-peg { transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease; }
  .plk-peg::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #FFD166; opacity: 0; transform: translate(-50%, -50%); }
  .plk-peg.hit::after { animation: plk-ripple 0.34s ease-out; }
  .plk-slot.land { animation: plk-land 0.5s ease both; }
  .plk-pop { animation: plk-pop 1.05s ease-out both; }
  .plk-board.jackpot { animation: plk-jackpot 0.9s ease both, nl-shake 0.5s ease both; }
  .plk-big { transition: color 0.3s ease; }
  /* BATTLE */
  @keyframes btl-slam { 0% { opacity: 0; transform: scale(2.3); } 60% { opacity: 1; transform: scale(0.94); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes btl-hit-a { from { transform: translateY(0); } to { transform: translateY(3px); } }
  @keyframes btl-hit-b { from { transform: translateY(0); } to { transform: translateY(-3px); } }
  @keyframes btl-vs { from { transform: scale(1); color: var(--faint); } to { transform: scale(1.7); color: #F5B700; } }
  @keyframes btl-cup { 0% { opacity: 0; transform: translateY(28px) scale(0.4) rotate(-14deg); } 60% { opacity: 1; transform: translateY(-6px) scale(1.12) rotate(4deg); } 100% { opacity: 1; transform: none; } }
  @keyframes btl-rays { to { transform: rotate(360deg); } }
  .btl-title { animation: btl-slam 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
  .btl-col.live .btl-match { animation: btl-pulse 0.5s ease-in-out infinite alternate; }
  .btl-col.live .btl-p:first-child { animation: btl-hit-a 0.18s ease-in-out infinite alternate; }
  .btl-col.live .btl-p:nth-child(3):not(.bye) { animation: btl-hit-b 0.18s ease-in-out infinite alternate; }
  .btl-col.live .btl-vs { animation: btl-vs 0.18s ease-in-out infinite alternate; }
  .btl-champ:not([hidden]) { animation: nl-reveal 0.35s ease backwards; }
  .btl-champ:not([hidden]) .btl-cup { animation: btl-cup 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
  .btl-champ:not([hidden])::before { animation: btl-rays 14s linear infinite; }
  /* TEXAS */
  @keyframes tx-deal { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -26px)) rotate(-16deg) scale(0.7); } to { opacity: 1; transform: none; } }
  @keyframes tx-flip { from { opacity: 0; transform: perspective(300px) rotateY(90deg) translateY(-10px); } to { opacity: 1; transform: perspective(300px) rotateY(0deg); } }
  @keyframes tx-turn { from { box-shadow: 0 0 0 2px rgba(254, 243, 222, 0.2); } to { box-shadow: 0 0 0 6px rgba(254, 243, 222, 0.38); } }
  @keyframes tx-bump { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
  .tx-card.in { animation: tx-deal 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
  .tx-card.flip { animation: tx-flip 0.45s ease backwards; }
  .tx-seat.turn .tx-name { animation: tx-turn 1s ease-in-out infinite alternate; }
  .tx-bet:not(:empty) { animation: nl-pop 0.3s ease both; }
  .tx-banner:not([hidden]) { animation: nl-reveal 0.3s ease backwards; }
  .tx-seat.winner .tx-name { animation: nl-pop 0.5s ease both; }
  .tx-pot.bump { animation: tx-bump 0.36s ease; }
  /* Vignettes de la liste des jeux : elles s'animent au survol. */
  @keyframes ga-fly { 0%, 100% { transform: rotate(-38deg) translate(0, 0); } 50% { transform: rotate(-38deg) translate(7px, 0); } }
  @keyframes ga-drop { 0% { transform: translate(0, -26px); opacity: 0; } 15% { opacity: 1; } 45% { transform: translate(8px, 0); } 75% { transform: translate(-2px, 22px); } 100% { transform: translate(6px, 40px); opacity: 0; } }
  @keyframes ga-clash { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.1) rotate(4deg); } }
  @media (hover: hover) {
    .g-art .gcard, .g-art .tx-card { transition: transform 0.3s var(--ease); }
    .game-tile.go:hover .g-art-cartes .gcard.m1 { transform: translateX(-46px) translateY(4px) rotate(-19deg); }
    .game-tile.go:hover .g-art-cartes .gcard.m2 { transform: translateY(-9px); }
    .game-tile.go:hover .g-art-cartes .gcard.m3 { transform: translateX(46px) translateY(4px) rotate(19deg); }
    .game-tile.go:hover .g-art-aviator .sp-jet { animation: ga-fly 1.1s ease-in-out infinite; }
    .game-tile.go:hover .ga-hen { animation: hen-bob 0.3s ease-in-out infinite; }
    .game-tile.go:hover .ga-hen .sp-hen-leg.l1 { animation: hen-leg-a 0.3s linear infinite; }
    .game-tile.go:hover .ga-hen .sp-hen-leg.l2 { animation: hen-leg-b 0.3s linear infinite; }
    .game-tile.go:hover .ga-ball { animation: ga-drop 1.1s ease-in infinite; }
    .game-tile.go:hover .g-art-battle .sp-swords { animation: ga-clash 0.28s ease-in-out infinite alternate; }
    .game-tile.go:hover .g-art-texas .ga-c1 { transform: rotate(-15deg) translateX(-5px); }
    .game-tile.go:hover .g-art-texas .ga-c2 { transform: rotate(14deg) translateX(5px); }
  }
}

/* ---------------------------------------------------------------- Parrainages ----
   Une seule chose est mise en avant sur la page : la barre de recherche et sa réponse. Le reste reprend les blocs du site. */
.nav-item[data-page="referrals"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9.5' cy='8' r='3.6'/%3E%3Cpath d='M3 19.8c.5-3.4 3.1-5.6 6.5-5.6 1.5 0 2.9.4 4 1.2'/%3E%3Cpath d='M18 13.2v6.6M14.7 16.5h6.6'/%3E%3C/svg%3E"); }
.ref-search { display: flex; flex-direction: row; align-items: stretch; gap: 10px; }
.ref-pill { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--inset); cursor: text; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ref-pill:focus-within { border-color: var(--led); box-shadow: 0 0 0 4px rgba(var(--led-rgb), 0.2), 0 0 26px rgba(var(--led-rgb), 0.2); }
.ref-at { flex: none; font: 600 19px/1 var(--f-display); color: var(--led-hi); }
.ref-pill input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 17px; }
.ref-pill input[type="text"]:focus-visible { border: 0; box-shadow: none; }
.ref-search .btn { flex: none; min-height: 54px; padding: 0 28px; }
.ref-out:empty { display: none; }
.ref-res { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(var(--tint), 0.04); }
.ref-res.wait { border-color: rgba(var(--led-rgb), 0.45); background: rgba(var(--led-rgb), 0.06); }
.ref-res.ok { border-color: rgba(var(--ok-rgb), 0.5); background: rgba(var(--ok-rgb), 0.08); box-shadow: 0 0 36px -14px rgba(var(--ok-rgb), 0.6); }
.ref-res.bad { border-color: rgba(var(--bad-rgb), 0.45); background: rgba(var(--bad-rgb), 0.07); }
.ref-res.warn { border-color: rgba(var(--warn-rgb), 0.45); background: rgba(var(--warn-rgb), 0.07); }
.ref-res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.ref-res-head strong { font: 500 16px/1.3 var(--f-display); letter-spacing: -0.005em; overflow-wrap: anywhere; }
.ref-res.ok .ref-res-head strong { color: var(--ok-text); }
.ref-res.bad .ref-res-head strong { color: var(--bad-text); }
.ref-res.warn .ref-res-head strong { color: var(--warn-text); }
.ref-res p { font-size: 14.5px; }
.ref-sec { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--led-hi); }
.ref-scan { display: block; height: 3px; border-radius: 2px; background: rgba(var(--led-rgb), 0.3); }
.ref-code { gap: 12px; margin-top: 2px; }
.ref-gain { color: var(--led-hi); white-space: nowrap; }
.ref-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ref-gh > strong:first-child { min-width: 0; overflow-wrap: anywhere; }
.ref-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ref-facts { display: flex; flex-direction: column; }
.ref-facts .line { align-items: baseline; padding: 9px 0; }
.ref-facts .line:first-child { border-top: 0; padding-top: 0; }
.ref-facts .line > span:last-child { flex: 1 1 220px; text-align: right; }
.ref-codeline { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.ref-codeline .btn { min-height: 34px; padding: 0 13px; font-size: 13px; }
@media (max-width: 560px) {
  .ref-search { flex-direction: column; }
  .ref-search .btn { width: 100%; }
  .ref-facts .line > span:last-child { flex-basis: 100%; text-align: left; }
  .ref-codeline { justify-content: flex-start; }
  .ref-gh { flex-wrap: wrap; gap: 2px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Pendant la recherche, la lumière du ruban parcourt la ligne ; la réponse arrive en glissant. */
  .ref-scan { background: linear-gradient(90deg, transparent 35%, var(--led) 50%, transparent 65%) no-repeat, rgba(var(--led-rgb), 0.16); background-size: 60% 100%, auto; animation: led-sweep 1.25s linear infinite; }
  .ref-res { animation: nl-reveal 0.3s var(--ease) backwards; }
  .still .ref-res { animation-duration: 0s; animation-delay: 0s; }
}

/* =============================================================================================
   Démonstration et identités d'agence
   ============================================================================================= */

/* ---- Démonstration : sélecteur de rôle (en haut à droite) et pseudos floutés ---- */
.demo-switch { position: sticky; top: 10px; z-index: 65; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: 0 0 14px auto; padding: 5px; width: fit-content; max-width: 100%;
  border-radius: 999px; background: rgba(var(--glass), 0.72); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -14px var(--shade); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.demo-switch-l { padding: 0 8px 0 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.demo-role { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 600 12.5px/1 var(--f-text); cursor: pointer; white-space: nowrap; }
.demo-role:hover { background: rgba(var(--tint), 0.08); }
.demo-role.on { background: var(--key); color: var(--key-ink); box-shadow: 0 6px 18px -6px rgba(var(--key-glow), 0.6); }
.demo-role:disabled { opacity: 0.6; cursor: progress; }
/* Sur téléphone, les cinq rôles tiennent sur une ligne, sans rien de caché à droite. */
@media (max-width: 760px) {
  .demo-switch { position: relative; top: auto; margin: 0 0 12px; width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 3px; padding: 4px; border-radius: 18px; overflow: hidden;
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bar); }
  .demo-switch-l { display: none; }
  .demo-role { flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 0 6px; font-size: clamp(10.5px, 3.2vw, 12.5px); overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 360px) { .demo-role { padding: 0 4px; } }
.demo-roles { display: flex; flex-direction: column; gap: 10px; }
.demo-roles .btn { width: 100%; }
.demo-tag { align-self: flex-start; }
/* Flou progressif dessiné par une ombre de texte (et non par un filtre par lettre, coûteux sur téléphone) :
   la lettre elle-même est transparente, seule son ombre floue reste visible. */
.flou { white-space: nowrap; }
.flou > span { -webkit-text-fill-color: transparent; }
.flou .f1 { text-shadow: 0 0 2px currentColor; text-shadow: 0 0 2px color-mix(in srgb, currentColor 95%, transparent); }
.flou .f2 { text-shadow: 0 0 3.6px currentColor; text-shadow: 0 0 3.6px color-mix(in srgb, currentColor 88%, transparent); }
.flou .f3 { text-shadow: 0 0 5.2px currentColor; text-shadow: 0 0 5.2px color-mix(in srgb, currentColor 80%, transparent); }
.flou .f4 { text-shadow: 0 0 6.8px currentColor; text-shadow: 0 0 6.8px color-mix(in srgb, currentColor 72%, transparent); }
.flou .f5 { text-shadow: 0 0 8.4px currentColor; text-shadow: 0 0 8.4px color-mix(in srgb, currentColor 62%, transparent); }

/* ---- Marque d'une agence autre que No Limits : un losange de braise devant le nom ---- */
.brand-mark { display: inline-block; flex: none; width: 0.62em; height: 0.62em; margin: 0 0.62em 0 0.12em; transform: rotate(45deg); border-radius: 0.12em;
  background: linear-gradient(135deg, var(--led-core), var(--led) 55%, var(--led-deep)); box-shadow: 0 0 0.7em rgba(var(--led-rgb), 0.85); }
.brand-fin { white-space: pre; }   /* garde l'espace avant le dernier mot du nom */
.g-sign .g-mark { display: inline-block; width: 0.7em; height: 0.7em; margin: 0 0.7em 0 0.1em; transform: rotate(45deg); border-radius: 0.1em;
  background: linear-gradient(135deg, var(--led-core), var(--led) 55%, var(--led-deep)); box-shadow: 0 0 0.6em rgba(var(--led-rgb), 0.9); }

/* ---- Identité « Braise » (Extranet Agency) : noir chaud, rouge et orange de braise, losange incandescent ---- */
html[data-skin="braise"] {
  --room: #070405;
  --slab: rgba(255, 110, 70, 0.034);
  --slab-2: rgba(255, 110, 70, 0.06);
  --slab-shadow: inset 0 1px 0 rgba(255, 77, 46, 0.24);
  --pane: #150B0A;
  --pane-2: #201110;
  --dial: #0E0707;
  --inset: rgba(0, 0, 0, 0.62);
  --glass: 24, 13, 11;
  --rail: rgba(9, 4, 4, 0.78);
  --bar: rgba(9, 5, 5, 0.97);
  --sheet: rgba(9, 5, 5, 0.97);
  --login-card: rgba(17, 9, 8, 0.86);
  --veil: rgba(4, 1, 1, 0.78);
  --veil-blur: rgba(4, 1, 1, 0.62);
  --line: rgba(255, 150, 120, 0.08);
  --line-2: rgba(255, 150, 120, 0.15);
  --text: #F7EEE8;
  --muted: #B5A39C;
  --faint: #86736C;
  --key: #FF5A36;
  --key-ink: #1C0603;
  --key-hover: #FF7652;
  --key-glow: 255, 90, 54;
  --ring: #FFB36B;
  --ring-rgb: 255, 179, 107;
  --led: #FF4D2E;
  --led-hi: #FFB199;
  --led-deep: #B5221A;
  --led-core: #FFD3AE;
  --led-rgb: 255, 77, 46;
  --lvl-a: #F3DDD2;
  --lvl-b: #A38980;
  --f-display: 'Syne', 'Manrope', system-ui, sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-slab: 18px;
}
html[data-skin="braise"][data-mode="jour"] {
  --room: #F8F1ED;
  --slab: rgba(255, 255, 255, 0.86);
  --slab-2: rgba(255, 255, 255, 0.94);
  --slab-shadow: 0 0 0 1px rgba(60, 20, 12, 0.06), 0 16px 36px -22px rgba(120, 30, 10, 0.26);
  --pane: #FFFFFF; --pane-2: #FFFFFF; --dial: #FFFFFF;
  --inset: rgba(60, 20, 12, 0.045);
  --glass: 255, 255, 255;
  --rail: rgba(255, 255, 255, 0.6);
  --bar: rgba(250, 244, 241, 0.97);
  --sheet: rgba(250, 244, 241, 0.98);
  --login-card: rgba(255, 255, 255, 0.88);
  --veil: rgba(60, 20, 12, 0.42); --veil-blur: rgba(60, 20, 12, 0.3);
  --line: rgba(60, 20, 12, 0.08); --line-2: rgba(60, 20, 12, 0.15);
  --text: #1E0F0C; --muted: #6B5550; --faint: #826C66;
  --key: #D9381A; --key-ink: #FFFFFF; --key-hover: #B92C12; --key-glow: 217, 56, 26;
  --ring: #E0401F; --ring-rgb: 224, 64, 31;
  --led: #E0401F; --led-hi: #A8270C; --led-deep: #8C1F08; --led-core: #F7774F; --led-rgb: 224, 64, 31;
}
/* L'arrière-plan : une lueur de braise qui monte du bas, et un fin quadrillage en biais. */
html[data-skin="braise"] body::after {
  background:
    radial-gradient(ellipse 95% 60% at 50% 112%, rgba(var(--led-rgb), 0.3), rgba(181, 34, 26, 0.1) 48%, transparent 76%) no-repeat,
    radial-gradient(ellipse 45% 32% at 92% -6%, rgba(var(--ring-rgb), 0.12), transparent 72%) no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 140, 100, 0.022) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(45deg, rgba(255, 140, 100, 0.014) 0 1px, transparent 1px 15px);
}
html[data-skin="braise"][data-mode="jour"] body::after {
  background:
    radial-gradient(ellipse 95% 60% at 50% 112%, rgba(var(--led-rgb), 0.14), transparent 70%) no-repeat,
    repeating-linear-gradient(135deg, rgba(120, 30, 10, 0.03) 0 1px, transparent 1px 15px);
}
/* Page d'entrée : un losange incandescent à la place de l'anneau. */
html[data-skin="braise"] .login-bg::before {
  width: min(1300px, 300vw);
  background: radial-gradient(closest-side, rgba(var(--led-rgb), 0.22) 0%, rgba(var(--led-rgb), 0.12) 30%, rgba(181, 34, 26, 0.06) 55%, transparent 80%);
}
html[data-skin="braise"] .login-bg::after {
  width: min(470px, 108vw); border-radius: 34px; transform: translate(-50%, -50%) rotate(45deg);
  border: 9px solid var(--ring);
  box-shadow: 0 0 18px 2px rgba(var(--ring-rgb), 0.55), 0 0 80px 10px rgba(var(--led-rgb), 0.5), inset 0 0 18px 2px rgba(var(--ring-rgb), 0.45), inset 0 0 70px 8px rgba(var(--led-rgb), 0.35);
}
html[data-skin="braise"] .brand { letter-spacing: 0.04em; }
html[data-skin="braise"] h1 { letter-spacing: -0.02em; }
/* Les décors des jeux, à la couleur de la braise (dos des cartes, jetons, anneaux, avatars). */
html[data-skin="braise"] .gcard.back, html[data-skin="braise"] .gcard .pc-back { background-color: #7A1A10;
  background-image: repeating-linear-gradient(45deg, rgba(255, 220, 200, 0.12) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(255, 220, 200, 0.12) 0 1px, transparent 1px 7px), radial-gradient(circle at 50% 50%, #C8361E 0%, #7A1A10 60%, #4A0D07 100%);
  border-color: #FFD3AE; }
html[data-skin="braise"] .gcard.back::before, html[data-skin="braise"] .gcard .pc-back::before { border-color: rgba(255, 211, 174, 0.55); }
html[data-skin="braise"] .cb-ring { background: #1A0806; border-color: #FFD3AE; color: #FFE6D6;
  box-shadow: 0 0 calc(var(--cw) * 0.16) rgba(255, 77, 46, 0.95), inset 0 0 calc(var(--cw) * 0.09) rgba(255, 77, 46, 0.85);
  border-radius: 18%; transform: translate(-50%, -50%) rotate(45deg); }
html[data-skin="braise"] .cb-name, html[data-skin="braise"] .cb-sub { color: #FFE6D6; }
html[data-skin="braise"] button.gcard.back:focus-visible { box-shadow: 0 0 0 3px #1A0806, 0 0 0 6px #FFB199, 0 14px 34px rgba(255, 77, 46, 0.45); }
@media (hover: hover) { html[data-skin="braise"] button.gcard.back:hover { box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 177, 153, 0.9), 0 0 34px rgba(255, 77, 46, 0.55); } }
html[data-skin="braise"] .cards.choosing .gcard.picked { box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px #FFD3AE, 0 0 44px rgba(255, 77, 46, 0.8); }
html[data-skin="braise"] .pc-you, html[data-skin="braise"] .chk-x, html[data-skin="braise"] .chk-board { background: #1A0806; }
html[data-skin="braise"] .chk-board { box-shadow: 0 0 22px rgba(255, 77, 46, 0.55); }
html[data-skin="braise"] .chk-finish { background: repeating-conic-gradient(#1A0806 0 25%, #FFE6D6 0 50%) 0 0 / 20px 20px; }
html[data-skin="braise"] .tx-card.back { background-color: #7A1A10; border-color: #FFD3AE; }
html[data-skin="braise"] .tx-card.back::after { background: #1A0806; border-color: #FFD3AE; box-shadow: 0 0 6px rgba(255, 77, 46, 0.95); border-radius: 18%; transform: translate(-50%, -50%) rotate(45deg); }
html[data-skin="braise"] .ga-chips, html[data-skin="braise"] .tx-pot.has::before { background: repeating-conic-gradient(#FFE6D6 0 30deg, #C8361E 30deg 60deg); }
html[data-skin="braise"] .tx-dealer { border-color: #C8361E; color: #1A0806; }
html[data-skin="braise"] .tx-seat.turn .tx-name::after { background: var(--tc, #FF4D2E); }
html[data-skin="braise"] .tx-seat.turn .tx-clock, html[data-skin="braise"] .tx-clock { color: var(--tc, #C8361E); }
html[data-skin="braise"] .btl-av { background: #C8361E; }
html[data-skin="braise"] .g-art-battle { background: linear-gradient(108deg, #8E1C10 0%, #D2421F 49.6%, #FFE6D6 49.6%, #FFE6D6 50.4%, #2A2A33 50.4%, #101015 100%); }
html[data-skin="braise"] .ga-curve { border-color: #FFB199; }
html[data-skin="braise"] .avi-sky::before { background: radial-gradient(ellipse 70% 60% at 12% 112%, rgba(255, 77, 46, 0.42), transparent 70%); }
html[data-skin="braise"] .avi-sky.fly .avi-mult { text-shadow: 0 0 44px rgba(255, 77, 46, 0.6); }
html[data-skin="braise"] .coin.bonus { color: #4A0D07; background: radial-gradient(circle at 35% 30%, #FFE6D6, #FF9A73 60%, #C8361E); border-color: #8E1C10; }
html[data-skin="braise"] .boot::before { border-color: rgba(255, 179, 107, 0.16); border-top-color: #FFB36B; box-shadow: 0 0 24px rgba(255, 77, 46, 0.55); }
html[data-skin="braise"] .brand.light { font-size: 11.25px; letter-spacing: 0.01em; }   /* « EXTRANET AGENCY » et son losange tiennent en entier dans le menu latéral */
html[data-skin="braise"] .side-head .brand { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { html[data-skin="braise"] .brand.light { font-size: 11px; letter-spacing: 0.02em; } }
@media (max-width: 380px) { html[data-skin="braise"] .brand.light { font-size: 10px; } }
/* Page d'entrée sur téléphone : le nom tient dans la carte (le losange ne s'écrase plus). */
@media (max-width: 480px) { html[data-skin="braise"] .login-bg .brand { font-size: clamp(13px, 4.1vw, 17px); } }
/* Le jour, les voiles et les ombres sont d'un brun chaud (et non plus d'un violet d'encre). */
html[data-skin="braise"][data-mode="jour"] { --tint: 30, 15, 12; --shade: rgba(90, 30, 15, 0.16); --shade-strong: rgba(90, 30, 15, 0.24); }
/* Les vignettes des jeux et leurs scènes : nuit chaude, horizon de braise, plus aucune trace de violet. */
html[data-skin="braise"] .g-debris:nth-child(3n) b { background: #FF9A73; }
html[data-skin="braise"] .g-art-cartes { background: radial-gradient(ellipse 80% 110% at 50% 28%, #7A2414 0%, #3A0E08 62%, #1A0605 100%); }
html[data-skin="braise"] .g-art-aviator { background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px), radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
  radial-gradient(circle at 84% 46%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px), linear-gradient(180deg, #0B0505 0%, #3A1410 58%, #B5361C 100%); }
html[data-skin="braise"] .ga-curve { border-color: #FFB199; filter: drop-shadow(0 0 6px rgba(255, 77, 46, 0.7));
  background: radial-gradient(ellipse at 0% 0%, transparent 69.5%, rgba(255, 140, 100, 0.3) 70%, rgba(255, 140, 100, 0.05) 100%); }
html[data-skin="braise"] .g-art-chicken { background: linear-gradient(180deg, #1A0806 0%, #7A2414 30%, #F2A67A 44%, #4A4F63 44%, #4A4F63 52%, #2B2F3E 52%, #232733 100%); }
html[data-skin="braise"] .g-art-plinko { background: radial-gradient(120% 110% at 50% 0%, #8E2A14 0%, #3A0E08 62%, #1A0605 100%); }
html[data-skin="braise"] .ga-pegs { background: radial-gradient(circle, #FFE6D6 0 2.2px, rgba(255, 230, 214, 0) 3px) 0 0 / 20px 17px, radial-gradient(circle, #FFE6D6 0 2.2px, rgba(255, 230, 214, 0) 3px) 10px 8.5px / 20px 17px; }
html[data-skin="braise"] .ga-slots { background: linear-gradient(90deg, #FFB703 0 11%, #2BB673 11% 22%, #5A4440 22% 33%, #2BB673 33% 44%, #5A4440 44% 56%, #2BB673 56% 67%, #5A4440 67% 78%, #2BB673 78% 89%, #FFB703 89% 100%); }
html[data-skin="braise"] .c3-stage { background: radial-gradient(ellipse 62% 78% at 50% 44%, #7A2414 0%, #3A0E08 52%, #1A0605 100%); }
html[data-skin="braise"] .c3-stage::before { background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255, 179, 107, 0.13) 14deg, rgba(255, 179, 107, 0.13) 26deg, transparent 40deg); }
html[data-skin="braise"] .pc-face { background: linear-gradient(160deg, #F7EDE8 0%, #E2CFC6 100%); color: #6B4A40; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 calc(var(--cw) * 0.03) #C9AFA5; }
html[data-skin="braise"] .avi-sky { background: linear-gradient(180deg, #0A0405 0%, #2E0F0B 54%, #9E2A17 100%); }
html[data-skin="braise"] .chk-scene { background: linear-gradient(180deg, #1A0806 0%, #7A2414 22%, #C2553A 34%, #F2A67A 38%, #565B70 38%, #565B70 44.5%, #C9CCD6 44.5%, #C9CCD6 45.5%, #2E3242 45.5%, #252936 100%); }
html[data-skin="braise"] .chk-scene > .g-sign { background: rgba(26, 8, 6, 0.8); }
html[data-skin="braise"] .plk-board { background: radial-gradient(120% 90% at 50% 0%, #8E2A14 0%, #3A0E08 58%, #1A0605 100%); }
html[data-skin="braise"] .plk-board::before { border-color: rgba(255, 179, 107, 0.06); }
html[data-skin="braise"] .plk-board::after {
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(255, 179, 107, 0.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 4% / 46% 80% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(255, 179, 107, 0.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 100% 4% / 46% 80% no-repeat; }
html[data-skin="braise"] .plk-peg { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFD9C7 55%, #E08A6B); box-shadow: 0 0 7px rgba(255, 179, 140, 0.65); }
html[data-skin="braise"] .plk-slot.zero { background: linear-gradient(180deg, #6B5550, #3E2C28); color: #EAD9D2; }
html[data-skin="braise"] .btl-head { background: linear-gradient(108deg, #8E1C10 0%, #D2421F 49.6%, #1A0806 49.6%, #1A0806 50.4%, #2A2A33 50.4%, #101015 100%); }
html[data-skin="braise"] .btl-p:nth-child(3) .btl-av { background: #3A3A46; }
/* Les dessins des jeux (avion, coupe, épées, ville, cuisinier) : leurs touches de violet passent à la braise. */
html[data-skin="braise"] {
  --sp-jet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpath d='M16 30 6 37h11l10-7z' fill='%23D9D2C0'/%3E%3Cpath d='M17 23 12 6h14l15 17z' fill='%23C8361E'/%3E%3Cpath d='M17 23 12 6h4l13 17z' fill='%23E0573A'/%3E%3Ccircle cx='25' cy='15' r='3.6' fill='none' stroke='%23FEF3DE' stroke-width='1.8'/%3E%3Cpath d='M14 30q0-8 16-8h56q20 0 28 8-8 8-28 8H30q-16 0-16-8z' fill='%23FEF3DE'/%3E%3Cpath d='M14.6 32q2 6 15.4 6h56q17 0 26-6.4-9 2.4-26 2.4H30q-11 0-15.4-2z' fill='%23D9D2C0'/%3E%3Cpath d='M86 24.5q11 0 17.5 4.5H88.5z' fill='%23C8361E'/%3E%3Cpath d='M88 25.6q7 .2 11.5 2.4h-10z' fill='%23FFB199'/%3E%3Cpath d='M22 31.2h70' stroke='%23FF9A73' stroke-width='1.8' stroke-linecap='round'/%3E%3Cg fill='%23C8361E'%3E%3Ccircle cx='42' cy='27' r='1.5'/%3E%3Ccircle cx='51' cy='27' r='1.5'/%3E%3Ccircle cx='60' cy='27' r='1.5'/%3E%3Ccircle cx='69' cy='27' r='1.5'/%3E%3Ccircle cx='78' cy='27' r='1.5'/%3E%3C/g%3E%3Cpath d='M54 33 36 51h15l25-18z' fill='%23EDE6D4'/%3E%3Cpath d='M54 33 36 51h4l22-18z' fill='%23FFFBF0'/%3E%3Crect x='56' y='40.5' width='16' height='6.5' rx='3.2' fill='%23B9B19C'/%3E%3Crect x='69' y='41.6' width='3.4' height='4.3' rx='1.6' fill='%231A0806'/%3E%3C/svg%3E");
  --sp-cook-leg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'%3E%3Cpath d='M8 0v15' stroke='%232E2220' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M1 17.5h10q3 0 3 3H1z' fill='%231A0806'/%3E%3C/svg%3E");
  --sp-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFE9A6'/%3E%3Cstop offset='.45' stop-color='%23F5B700'/%3E%3Cstop offset='1' stop-color='%23B98200'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 12H6c0 12 4 19 13 20M48 12h10c0 12-4 19-13 20' fill='none' stroke='url(%23g)' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M14 6h36v16c0 12-8 20-18 20S14 34 14 22z' fill='url(%23g)'/%3E%3Cpath d='M19 9h5v14c0 7 2 11 5 14-6-2-10-8-10-15z' fill='%23FFF7D6' fill-opacity='.75'/%3E%3Ccircle cx='32' cy='21' r='6.4' fill='none' stroke='%23C8361E' stroke-width='3'/%3E%3Cpath d='M28 41h8v10h-8z' fill='%23D99A00'/%3E%3Cpath d='M20 51h24v6H20z' fill='url(%23g)'/%3E%3Cpath d='M15 57h34v9H15z' fill='%231A0806'/%3E%3Cpath d='M22 60h20v3H22z' fill='%23FFC94D'/%3E%3C/svg%3E");
  --sp-swords: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg transform='rotate(45 36 36)'%3E%3Cpath d='M33 4h6v40h-6z' fill='%23E6EAF2'/%3E%3Cpath d='M36 4h3v40h-3z' fill='%23B9C0CE'/%3E%3Cpath d='M33 4l3-4 3 4z' fill='%23E6EAF2'/%3E%3Cpath d='M24 44h24v5H24z' fill='%23FFC94D'/%3E%3Cpath d='M33.5 49h5v12h-5z' fill='%23C8361E'/%3E%3Ccircle cx='36' cy='64' r='4' fill='%23FFC94D'/%3E%3C/g%3E%3Cg transform='rotate(-45 36 36)'%3E%3Cpath d='M33 4h6v40h-6z' fill='%23E6EAF2'/%3E%3Cpath d='M36 4h3v40h-3z' fill='%23B9C0CE'/%3E%3Cpath d='M33 4l3-4 3 4z' fill='%23E6EAF2'/%3E%3Cpath d='M24 44h24v5H24z' fill='%23FFC94D'/%3E%3Cpath d='M33.5 49h5v12h-5z' fill='%23C8361E'/%3E%3Ccircle cx='36' cy='64' r='4' fill='%23FFC94D'/%3E%3C/g%3E%3C/svg%3E");
  --sp-city: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cg fill='%233A1A14'%3E%3Cpath d='M0 60V34h14V22h10v12h8V14h18v46z'/%3E%3Cpath d='M54 60V30h12V40h10V18h16v42z'/%3E%3Cpath d='M96 60V26h8V8h14v18h8v34z'/%3E%3Cpath d='M130 60V36h16V24h12v36z'/%3E%3Cpath d='M162 60V20h10V30h14V12h12v48z'/%3E%3Cpath d='M202 60V32h12V26h10v10h16v24z'/%3E%3C/g%3E%3Cg fill='%23FFD98A' fill-opacity='.75'%3E%3Cpath d='M36 20h3v4h-3zM42 28h3v4h-3zM36 36h3v4h-3zM80 24h3v4h-3zM86 34h3v4h-3zM108 14h3v4h-3zM108 24h3v4h-3zM114 34h3v4h-3zM150 30h3v4h-3zM176 34h3v4h-3zM190 18h3v4h-3zM190 30h3v4h-3zM218 32h3v4h-3z'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-skin="braise"] .tx-felt { border-color: #1F0E0B; }
html[data-skin="braise"] .ga-chips { box-shadow: inset 0 0 0 4px #C8361E, inset 0 0 0 6px #FFE6D6, 0 -4px 0 -1px #8E1C10, 0 -4px 0 0 #FFE6D6, 0 -8px 0 -1px #8E1C10, 0 -8px 0 0 #FFE6D6, 0 3px 6px rgba(0, 0, 0, 0.4); }
html[data-skin="braise"] .badge-lvl.b4 { --b1: #FFB199; --b2: #B5221A; }
html[data-skin="braise"] .badge-lvl.b5 { background: radial-gradient(closest-side, var(--dial) 74%, transparent 76%), conic-gradient(from 210deg, #FFE08A, #FF8AB3, #FF9A73, #7CE6FF, #8CF0B4, #FFE08A); }
/* Page d'entrée de la démo : la carte « Découvrez l'extranet » et, à sa droite, « En savoir plus ». */
.demo-duo { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; gap: 20px; width: 100%; max-width: 920px; }
.demo-duo > .card { flex: 1 1 0; min-width: 0; max-width: 440px; }
.demo-info-btns { display: flex; flex-direction: column; gap: 8px; }
.demo-info-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(var(--tint), 0.03); color: var(--text); font: 600 14px/1.2 var(--f-text); text-align: left; cursor: pointer; }
.demo-info-btn::after { content: '›'; font-size: 20px; line-height: 1; color: var(--muted); transition: transform 0.2s var(--ease); }
.demo-info-btn:hover { background: rgba(var(--tint), 0.07); }
.demo-info-btn.on { border-color: rgba(var(--led-rgb), 0.6); background: rgba(var(--led-rgb), 0.12); }
.demo-info-btn.on::after { transform: rotate(90deg); color: var(--led-hi); }
.demo-info-body:empty { display: none; }
.demo-info-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); }
.demo-info-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
@media (max-width: 860px) {
  .demo-duo { flex-direction: column; align-items: center; }
  .demo-duo > .card { width: 100%; flex: none; }
}
.demo-duo > .card { background: var(--login-card); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px var(--shade);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.demo-duo > .card h1 { font-size: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-duo > .card { animation: nl-rise 0.7s var(--ease) 0.5s backwards; }
  .demo-duo > .card + .card { animation-delay: 0.62s; }
}
.demo-contact { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-contact-btns { display: flex; gap: 10px; }
.demo-contact-btns .btn { flex: 1 1 0; }
