/* Layout : un téléphone au centre (entrée + funnel écran par écran) posé sur le décor flouté de Hustle City ;
   l'app passe ensuite en plein écran, panneaux en verre dépoli. Monde unique, sombre, assumé. */
:root {
  color-scheme: dark;
  --night: #07050c;
  --ink: #0d0916;
  --fg: #f6f1fb;
  --muted: rgba(246, 241, 251, .62);
  --faint: rgba(246, 241, 251, .38);
  --pink: #ff4f8b;
  --sun: #ff9a4a;
  --teal: #2fd6c4;
  --cash: #7dffa1;
  --gold: #f7c548;
  --danger: #ff5a5a;

  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .13);
  --glass-hi: rgba(255, 255, 255, .22);
  --blur: 22px;

  --f-display: 'Big Shoulders Display', 'Impact', 'Arial Narrow', sans-serif;
  --f-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --grad: linear-gradient(100deg, #ffd27a 0%, var(--sun) 30%, var(--pink) 75%, #c94dff 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--night); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.mode-device {
  display: grid; place-items: center; min-height: 100svh;
  padding: 24px var(--gutter-r) 24px var(--gutter-l);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px -20px rgba(0,0,0,.6);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .08em; font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; }
.logo span { color: #fff; }
.logo b { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.xl { font-size: clamp(4rem, 18vw, 7rem); filter: drop-shadow(0 0 30px rgba(255,79,139,.35)); }

/* ---------- Décor de fond ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.backdrop canvas, .backdrop .cover { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(26px) saturate(120%); opacity: .75; }
.backdrop .cover { opacity: 0; transition: opacity .6s; }
.backdrop .cover.ok { opacity: .8; }
.backdrop-veil { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 40%, rgba(7,5,12,.25), rgba(7,5,12,.85)); }
body.mode-app .backdrop canvas, body.mode-app .backdrop .cover { filter: blur(40px) saturate(130%); }
body.mode-app .backdrop-veil { background: linear-gradient(180deg, rgba(7,5,12,.55), rgba(7,5,12,.88)); }

/* ---------- Chargement ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 28px; background: var(--night); transition: opacity .5s, visibility .5s; }
.loader.out { opacity: 0; visibility: hidden; }
.loader-bar { width: 180px; height: 2px; background: var(--glass-2); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: load .9s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- Téléphone ---------- */
.device {
  position: relative; z-index: 2; width: min(430px, 100%); height: min(900px, calc(100svh - 48px)); min-height: 620px;
  border-radius: 40px; overflow: hidden; overflow: clip; background: var(--night);
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 0 8px rgba(255,255,255,.03), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 80px -30px rgba(255,79,139,.35);
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: clip; }

/* ---------- Bouton hexagonal ---------- */
.hexbtn {
  position: relative; isolation: isolate; width: 100%; height: 62px; border: 0; background: none; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .22em; text-transform: uppercase;
  filter: drop-shadow(0 0 16px rgba(255,79,139,.35));
  transition: filter .2s, transform .15s;
}
.hexbtn::before, .hexbtn::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
}
.hexbtn::before { inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.95), rgba(255,180,210,.8) 50%, rgba(255,255,255,.95)); }
.hexbtn::after { inset: 1.5px; background: linear-gradient(180deg, rgba(40,26,52,.92), rgba(14,9,22,.96)); clip-path: polygon(21px 0, calc(100% - 21px) 0, 100% 50%, calc(100% - 21px) 100%, 21px 100%, 0 50%); }
.hexbtn span { font-size: .7rem; color: var(--pink); }
.hexbtn b { font-weight: 800; }
.hexbtn:hover { filter: drop-shadow(0 0 24px rgba(255,79,139,.6)); }
.hexbtn:active { transform: scale(.985); }
.hexbtn:disabled { opacity: .45; filter: none; cursor: not-allowed; }
.textbtn { background: none; border: 0; padding: 8px; color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; }
.textbtn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.textbtn.dim { color: var(--faint); font-size: .85rem; padding: 2px 8px; }

/* ---------- Entrée ---------- */
.entry-media { position: absolute; inset: 0; }
.entry-media canvas, .entry-media .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-media .cover { opacity: 0; transition: opacity .8s; }
.entry-media .cover.ok { opacity: 1; }
.entry-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,5,12,.55) 0%, rgba(7,5,12,0) 22%, rgba(7,5,12,0) 38%, rgba(7,5,12,.78) 58%, var(--night) 82%); }
.entry-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: calc(22px + env(safe-area-inset-top, 0px)) 22px 0; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(7,5,12,.35); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .62rem; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cash); box-shadow: 0 0 10px var(--cash); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.entry-body { position: relative; margin-top: auto; padding: 0 24px 6px; display: grid; gap: 14px; justify-items: center; }
.kicker { color: var(--teal); justify-self: start; margin: 0; }
.entry-title {
  justify-self: start; margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.8rem, 12.5vw, 3.7rem); line-height: .9; letter-spacing: .005em; text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.entry-title > span:last-child { display: table; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(255,79,139,.35)); }
.entry-sub { margin: 0; justify-self: start; color: rgba(246,241,251,.78); font-weight: 300; font-size: 1.02rem; max-width: 34ch; }
.entry-tags { list-style: none; margin: 2px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; }
.entry-tags li { padding: 6px 10px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .6rem; color: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.entry-legal { position: relative; margin: 6px 0 0; padding: 0 24px calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .68rem; color: var(--faint); }

/* ---------- Funnel ---------- */
.funnel { background: radial-gradient(90% 50% at 50% 0%, rgba(255,79,139,.16), transparent 70%), radial-gradient(80% 40% at 50% 100%, rgba(47,214,196,.08), transparent 70%), var(--night); }
.f-top { display: flex; align-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 8px; }
.f-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); color: #fff; flex: none; }
.f-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--glass-2); overflow: hidden; }
.f-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.f-count { color: var(--faint); font-size: .62rem; min-width: 3.4em; text-align: right; }
.f-stage { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 24px 8px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.f-stage.center { justify-content: center; }
.f-stage > * { animation: stepIn .45s cubic-bezier(.2,.8,.2,1) both; }
.f-stage > *:nth-child(2) { animation-delay: .05s; }
.f-stage > *:nth-child(3) { animation-delay: .1s; }
.f-stage > *:nth-child(4) { animation-delay: .15s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.f-foot { padding: 10px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; justify-items: center; }
.f-error { margin: 0 0 4px; color: var(--danger); font-weight: 600; font-size: .9rem; text-align: center; }

.q-kicker { color: var(--pink); margin: 0; }
.q-title { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.1rem, 9vw, 2.7rem); line-height: .94; text-wrap: balance; }
.q-title.xl { font-size: clamp(2.6rem, 11vw, 3.3rem); }
.q-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q-sub { margin: -6px 0 0; color: var(--muted); font-weight: 300; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 12px 18px; width: 100%;
  border-radius: 16px; text-align: left; font-weight: 500; font-size: 1.02rem;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg);
  transition: border-color .15s, background .15s, transform .12s;
}
.opt:hover { border-color: var(--glass-hi); background: var(--glass-2); }
.opt:active { transform: scale(.99); }
.opt small { display: block; color: var(--muted); font-weight: 300; font-size: .82rem; margin-top: 2px; }
.opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--glass-hi); flex: none; display: grid; place-items: center; }
.opt.multi .tick { border-radius: 6px; }
.opt[aria-pressed="true"] { border-color: var(--pink); background: linear-gradient(90deg, rgba(255,79,139,.18), rgba(255,79,139,.06)); box-shadow: 0 0 24px -8px rgba(255,79,139,.6); }
.opt[aria-pressed="true"] .tick { background: var(--pink); border-color: var(--pink); }
.opt[aria-pressed="true"] .tick::after { content: ""; width: 9px; height: 5px; border: solid #1a0610; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) translate(1px, -1px); }

.bigfield { display: grid; gap: 8px; }
.bigfield input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--glass-hi); border-radius: 0; padding: 8px 0 10px;
  font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; text-transform: uppercase; letter-spacing: .02em; color: #fff;
}
.bigfield input::placeholder { color: rgba(255,255,255,.18); }
.bigfield input:focus { outline: none; border-bottom-color: var(--pink); }
.bigfield .mono { color: var(--faint); }

/* sélection du perso */
.pick { display: grid; gap: 14px; min-height: 0; }
.pick-card { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 52svh; width: 100%; justify-self: center; border: 1px solid var(--glass-line); background: #0b0812; touch-action: pan-y; }
.pick-card .portrait { position: absolute; inset: 0; }
.pick-info { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; background: linear-gradient(180deg, transparent, rgba(7,5,12,.92) 65%); display: grid; gap: 6px; }
.pick-classe { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: .95; }
.pick-line { color: var(--muted); font-size: .92rem; font-weight: 300; }
.pick-bonus { display: flex; gap: 6px; flex-wrap: wrap; }
.pick-bonus span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); }
.pick-bonus span b { color: var(--cash); font-weight: 600; }
.pick-nav { position: absolute; top: 42%; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(7,5,12,.45); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pick-nav.prev { left: 10px; } .pick-nav.next { right: 10px; }
.pick-num { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(7,5,12,.5); border: 1px solid var(--glass-line); font-size: .6rem; }
.pick-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.pick-thumbs::-webkit-scrollbar { display: none; }
.pick-thumbs button { flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 0; overflow: hidden; border: 2px solid transparent; background: #0b0812; position: relative; opacity: .6; transition: opacity .15s, border-color .15s; }
.pick-thumbs button[aria-pressed="true"] { border-color: var(--pc, var(--pink)); opacity: 1; box-shadow: 0 0 14px -2px var(--pc, var(--pink)); }
.pick-thumbs .portrait { position: absolute; inset: 0; }

/* portraits */
.portrait { position: relative; overflow: hidden; background: #0b0812; }
.portrait .pt-sil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0; transition: opacity .5s; }
.portrait img.ok { opacity: 1; }

/* scan */
.scan { display: grid; gap: 18px; }
.scan-frame { position: relative; width: 150px; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-line); justify-self: center; }
.scan-frame .portrait { position: absolute; inset: 0; }
.scan-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(47,214,196,.45), transparent); animation: scan 1.3s linear infinite; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.scan-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scan-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .92rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.scan-lines li.on { opacity: 1; transform: none; }
.scan-lines b { font-family: var(--f-mono); font-size: .72rem; color: var(--cash); letter-spacing: .08em; text-transform: uppercase; }

/* carte du perso */
.charcard { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-line); background: #0b0812; }
.charcard .portrait { aspect-ratio: 1; max-height: 42svh; width: 100%; }
.charcard-info { position: relative; margin-top: -96px; padding: 40px 18px 18px; display: grid; gap: 12px; background: linear-gradient(180deg, transparent, #0b0812 70px); }
.charcard-name { font-family: var(--f-display); font-weight: 900; font-size: 2.8rem; line-height: .9; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.charcard-sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { padding: 5px 9px; border-radius: 7px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); }
.tag.hot { background: var(--pc, var(--pink)); color: #120a12; border-color: transparent; font-weight: 600; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.statrow { display: grid; gap: 5px; }
.statrow .lab { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statbar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.statbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), #a6fff4); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.charcard-foot { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--glass-line); color: var(--muted); }

/* business */
.bizlist { display: grid; gap: 12px; }
.bizc { position: relative; display: grid; gap: 8px; padding: 18px; border-radius: 20px; text-align: left; width: 100%; color: var(--fg); background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .15s, background .15s; }
.bizc:hover { border-color: var(--glass-hi); }
.bizc[aria-pressed="true"] { border-color: var(--pink); background: linear-gradient(160deg, rgba(255,79,139,.16), rgba(255,255,255,.03)); box-shadow: 0 0 30px -10px rgba(255,79,139,.7); }
.bizc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bizc-tag { color: var(--teal); }
.bizc-match { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--cash); line-height: 1; }
.bizc-match small { font-family: var(--f-mono); font-size: .55rem; letter-spacing: .12em; color: var(--faint); margin-left: 4px; font-weight: 400; }
.bizc h4 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: .95; }
.bizc p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 300; }
.bizc-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.bizc-facts div { display: grid; gap: 2px; min-width: 0; }
.bizc-facts span { font-family: var(--f-mono); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bizc-facts b { font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.reco { position: absolute; top: -9px; left: 16px; padding: 3px 8px; border-radius: 6px; background: var(--pink); color: #1a0610; font-size: .55rem; font-weight: 600; }
.diff { display: flex; gap: 2px; }
.diff i { width: 10px; height: 10px; background: rgba(255,255,255,.15); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.diff i.on { background: var(--sun); }

/* paywall */
.paysum { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; }
.paysum .portrait { width: 74px; aspect-ratio: 4/5; border-radius: 14px; }
.paysum h4 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.paysum p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; }
.perks li::before { content: "★"; color: var(--gold); text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; display: grid; gap: 4px; padding: 16px 14px; border-radius: 18px; text-align: left; color: var(--fg); background: var(--glass); border: 1px solid var(--glass-line); }
.plan[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 30px -10px rgba(255,79,139,.8); background: linear-gradient(160deg, rgba(255,79,139,.14), rgba(255,255,255,.03)); }
.plan-name { font-weight: 600; font-size: .92rem; }
.plan-price { font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; }
.plan-price small { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.plan-feat { font-size: .78rem; color: var(--muted); font-weight: 300; }
.plan .reco { background: var(--gold); color: #1a1000; left: auto; right: 12px; }
.fine { margin: 0; text-align: center; font-size: .72rem; color: var(--faint); }

/* ---------- App ---------- */
.view-app { position: relative; z-index: 2; min-height: 100svh; }
.hud {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; margin: 12px var(--gutter-r) 0 var(--gutter-l); border-radius: 22px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 10px 14px 10px 10px;
}
.hud-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.hud-avatar { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex: none; border: 1.5px solid var(--pc, var(--pink)); box-shadow: 0 0 16px -4px var(--pc, var(--pink)); }
.hud-avatar .portrait { width: 100%; height: 100%; }
.hud-who { min-width: 0; }
.hud-name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-biz { color: var(--teal); margin-top: 4px; font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-level { display: flex; gap: 12px; align-items: center; max-width: 440px; width: 100%; justify-self: center; }
.lvl { display: grid; justify-items: center; line-height: 1; width: 48px; height: 48px; align-content: center; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--glass-line); flex: none; }
.lvl .mono { font-size: .5rem; color: var(--muted); }
.lvl b { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; }
.xp { flex: 1; min-width: 0; }
.xpbar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(255,79,139,.6); }
.xp-text { color: var(--muted); margin-top: 6px; font-size: .58rem; font-variant-numeric: tabular-nums; }
.hud-right { display: flex; gap: 14px; align-items: center; }
.stars { display: flex; gap: 3px; }
.stars i { width: 17px; height: 17px; display: block; background: rgba(255,255,255,.16); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: var(--gold); filter: drop-shadow(0 0 6px rgba(247,197,72,.8)); }
.hud-cash { font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--cash); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 20px rgba(125,255,161,.35); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .9rem; }
.pill.cash { background: var(--cash); color: #062312; box-shadow: 0 0 22px -4px rgba(125,255,161,.6); }
.pill.ghost { background: var(--glass); border-color: var(--glass-line); color: var(--fg); }
.pill.ghost:hover { background: var(--glass-2); }
.pill.neon { background: var(--grad); color: #1a0610; box-shadow: 0 0 22px -6px rgba(255,79,139,.8); }
.pill.danger { background: var(--danger); color: #250606; }
.demo-banner { position: relative; z-index: 2; margin: 10px var(--gutter-r) 0 var(--gutter-l); text-align: center; padding: 8px; border-radius: 12px; background: rgba(247,197,72,.12); color: var(--gold); border: 1px solid rgba(247,197,72,.3); font-size: .62rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--pink); text-decoration: underline; font: inherit; text-transform: inherit; letter-spacing: inherit; }

.app-grid {
  max-width: 1360px; margin: 0 auto; padding: 18px var(--gutter-r) 60px var(--gutter-l);
  display: grid; gap: 16px; grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-areas: "daily map stats" "district map phone" "district map phone"; align-items: start;
}
.panel { border-radius: 24px; padding: 18px; min-width: 0; }
.panel-daily { grid-area: daily; } .panel-map { grid-area: map; } .panel-district { grid-area: district; } .panel-stats { grid-area: stats; }
.panel-phone { grid-area: phone; display: grid; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.panel-head .mono { font-size: .58rem; text-align: right; }
.streak { color: var(--sun); }

.daily, .story, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.daily li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; transition: border-color .15s, background .15s; }
.daily li:hover { border-color: var(--glass-hi); background: var(--glass-2); }
.daily li.done { cursor: default; }
.daily li.done .txt { color: var(--faint); text-decoration: line-through; }
.daily li b { font-family: var(--f-mono); font-size: .7rem; color: var(--teal); }
.chk { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--glass-hi); display: grid; place-items: center; }
.daily li.done .chk { background: var(--teal); border-color: var(--teal); }
.daily li.done .chk::after { content: ""; width: 10px; height: 6px; border: solid #04211d; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }

.story li { padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); display: grid; gap: 6px; position: relative; overflow: hidden; }
.story li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--dc, var(--glass-hi)); }
.story li.done { opacity: .6; }
.story li.done::before { background: var(--teal); }
.st-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.story h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.story .xp-tag { font-family: var(--f-mono); font-size: .68rem; color: var(--teal); white-space: nowrap; }
.story p { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 300; }
.st-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.st-foot .mono { color: var(--faint); font-size: .55rem; }
.story .pill { min-height: 32px; padding: 0 14px; font-size: .8rem; }
.story .ok { color: var(--teal); font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }

.stats { display: grid; gap: 12px; }
.goal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--glass-line); display: grid; gap: 8px; }
.goal-head { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.goal-head b { font-variant-numeric: tabular-nums; color: var(--cash); }
.goalbar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.goalbar i { display: block; height: 100%; width: 0; background: var(--cash); border-radius: 8px; transition: width .6s ease; }

.feed { max-height: 380px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .86rem; }
.feed .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.feed .ic.cash { background: var(--cash); color: #062312; }
.feed .ic.xp { background: var(--pink); color: #1a0610; }
.feed .ic.lvl { background: var(--gold); color: #1a1000; }
.feed .ic.city { background: var(--teal); color: #04211d; }
.feed time { display: block; color: var(--faint); font-size: .72rem; }

/* carte SVG */
.citysvg { width: 100%; height: auto; display: block; max-width: 100%; border-radius: 18px; }
.citysvg .district { cursor: pointer; transition: filter .2s ease; }
.citysvg .district:hover, .citysvg .district:focus-visible { filter: brightness(1.25); outline: none; }
.citysvg .district.locked { cursor: not-allowed; }
.citysvg .blip { animation: blip 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blip { 50% { transform: scale(1.35); opacity: .6; } }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,3,10,.6); padding: 20px var(--gutter-r) 20px var(--gutter-l); }
.modal-card { width: min(420px, 100%); border-radius: 24px; padding: 24px; display: grid; gap: 14px; background: linear-gradient(180deg, rgba(40,28,56,.85), rgba(18,12,28,.92)); }
.modal-card h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.modal-card p { margin: 0; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.3); font-size: 1rem; width: 100%; }
.field input:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(255,79,139,.2); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Mission réussie ---------- */
.passed { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; }
.passed-band { width: 100%; padding: 28px 16px; text-align: center; background: linear-gradient(90deg, transparent, rgba(0,0,0,.72) 20%, rgba(0,0,0,.72) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: band 2.3s ease forwards; }
.passed-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; color: var(--gold); font-size: clamp(2.8rem, 10vw, 6rem); line-height: .95; -webkit-text-stroke: 2px #1a1000; paint-order: stroke fill; text-shadow: 0 4px 0 #1a1000, 0 0 40px rgba(247,197,72,.35); }
.passed-sub { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(1.1rem, 3vw, 1.6rem); margin-top: 6px; letter-spacing: .12em; }
.passed.level .passed-title { color: var(--pink); }
.passed.cash .passed-title { color: var(--cash); }
@keyframes band { 0% { opacity: 0; transform: scaleY(.2); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "daily map" "district stats" "district phone"; }
}
@media (max-width: 760px) {
  .hud { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .hud-level { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .hud-right .stars { display: none; }
  .hud-cash { font-size: 1.6rem; }
  .app-grid { grid-template-columns: 1fr; grid-template-areas: "daily" "map" "district" "stats" "phone"; }
}
@media (max-width: 520px) {
  body.mode-device { padding: 0; }
  .device { width: 100%; height: 100svh; min-height: 0; border-radius: 0; border: 0; box-shadow: none; }
  .hud-right .pill { padding: 0 12px; }
}
@media (max-height: 700px) and (min-width: 521px) {
  .device { min-height: 0; height: calc(100svh - 24px); }
  body.mode-device { padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .passed-band { animation: none; }
}

/* ==========================================================
   v3 : son, centrage, animations, éditeur de look, paywall
   ========================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* bouton son */
.top-right { display: flex; gap: 8px; align-items: center; }
.snd { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(7,5,12,.35); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.snd .x { display: none; }
.snd[aria-pressed="false"] .w { display: none; }
.snd[aria-pressed="false"] .x { display: block; }
.snd[aria-pressed="false"] { color: var(--faint); }

/* entrée : tout centré, titre mot par mot */
.entry-top, .entry-body, .entry-legal { z-index: 2; }
.entry-body { justify-items: center; text-align: center; }
.kicker, .entry-title, .entry-tags { justify-self: center; }
.entry-title span.wd { display: inline-block; }
.entry-title .wd { animation: wordIn .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1s + var(--i) * 90ms); }
.entry-title > span:last-child { display: table; margin: 4px auto 0; }
.entry-tags { justify-content: center; }
.entry-tags li { animation: fadeUp .5s ease both; animation-delay: calc(1.6s + var(--n, 0) * 80ms); }
.entry-tags li:nth-child(2) { --n: 1; } .entry-tags li:nth-child(3) { --n: 2; } .entry-tags li:nth-child(4) { --n: 3; }
.entry-body .hexbtn { animation: fadeUp .6s ease both 1.9s, glowPulse 2.8s ease-in-out infinite 2.6s; }
.kicker { animation: fadeUp .6s ease both .8s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(26px) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 50% { filter: drop-shadow(0 0 28px rgba(255,79,139,.75)); } }
.glitch { animation: glitch 6s infinite 3s; }
@keyframes glitch {
  0%, 93%, 100% { transform: none; text-shadow: none; }
  94% { transform: translate(-2px, 1px) skewX(-8deg); text-shadow: 2px 0 var(--teal), -2px 0 var(--pink); }
  95% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--teal), 2px 0 var(--pink); }
  96% { transform: none; }
}

/* reflet qui traverse le bouton hexagonal */
.hexbtn.shine::after, .hexbtn::after {
  background:
    linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%) no-repeat,
    linear-gradient(180deg, rgba(40,26,52,.92), rgba(14,9,22,.96));
  background-size: 250% 100%, 100% 100%;
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 150% 0, 0 0; } 60%, 100% { background-position: -60% 0, 0 0; } }

/* funnel : contenu centré au milieu, entrée animée selon le sens */
.f-stage { justify-content: flex-start; }
.f-inner { margin-block: auto; width: 100%; display: grid; gap: 20px; text-align: center; justify-items: center; }
.f-inner > * { width: 100%; }
.f-stage[data-dir="fwd"] .f-inner > * { animation: inR .5s cubic-bezier(.2,.8,.2,1) both; }
.f-stage[data-dir="back"] .f-inner > * { animation: inL .5s cubic-bezier(.2,.8,.2,1) both; }
.f-inner > *:nth-child(2) { animation-delay: .07s !important; }
.f-inner > *:nth-child(3) { animation-delay: .14s !important; }
@keyframes inR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.f-stage > * { animation: none; }
.q-title { text-align: center; }
.q-sub { margin: -10px 0 0; text-align: center; font-size: .92rem; }
.f-stage.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.opts .opt { position: relative; overflow: hidden; animation: optIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.12s + var(--i) * 55ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.opt[aria-pressed="true"] { animation: optIn .45s both, pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.03); } }
.opt-l { flex: 1; }
.opt-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; }
.opts.grid { grid-template-columns: 1fr 1fr; }
.opts.grid .opt { flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 92px; gap: 8px; padding: 14px 10px; }
.opts.grid .tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,79,139,.45); pointer-events: none; animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.bigfield input { text-align: center; }
.intro-orb { position: relative; width: 150px; height: 150px; justify-self: center; }
.intro-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,79,139,.6); animation: orb 2.4s ease-out infinite; }
.intro-orb i:nth-child(2) { animation-delay: .8s; border-color: rgba(255,154,74,.6); }
.intro-orb i:nth-child(3) { animation-delay: 1.6s; border-color: rgba(47,214,196,.6); }
.intro-orb::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--grad); box-shadow: 0 0 40px rgba(255,79,139,.8); animation: breathe 2.4s ease-in-out infinite; }
@keyframes orb { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.15); } }

/* sélection */
.pick-info { text-align: left; }
.pick-card.from-right { animation: cardR .45s cubic-bezier(.2,.8,.2,1); }
.pick-card.from-left { animation: cardL .45s cubic-bezier(.2,.8,.2,1); }
@keyframes cardR { from { opacity: .2; transform: translateX(40px) rotate(2deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cardL { from { opacity: .2; transform: translateX(-40px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
.pick-card .portrait img.ok, .look-fig img.ok { animation: kenburns 9s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.06) translateY(-1%); } }

/* analyse */
.scan-frame { width: 170px; }
.scan-pct { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; font-family: var(--f-display); font-weight: 900; font-size: 2rem; text-shadow: 0 0 20px rgba(47,214,196,.8); }
.scan-lines li { text-align: left; }
.scan-lines li b { text-align: right; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--cash); }

/* éditeur de look */
.look { display: grid; gap: 16px; }
.look-stage { position: relative; height: min(46svh, 400px); perspective: 900px; display: grid; place-items: end center; }
.look-beam { position: absolute; left: 50%; top: -20px; width: 120%; height: 120%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, color-mix(in srgb, var(--pc) 35%, transparent) 180deg, transparent 200deg); filter: blur(6px); animation: beam 5s ease-in-out infinite; pointer-events: none; }
@keyframes beam { 50% { opacity: .55; } }
.look-fig { position: relative; z-index: 1; height: 94%; aspect-ratio: 9 / 16; max-width: 100%; transform-style: preserve-3d; animation: turn 6s ease-in-out infinite; }
.look-fig .portrait { position: absolute; inset: 0; background: transparent; }
.look-fig .portrait img { object-fit: cover; object-position: 50% 30%; border-radius: 18px; }
.look-fig.swap { animation: swap .5s ease, turn 6s ease-in-out infinite .5s; }
@keyframes turn { 0%, 100% { transform: rotateY(-7deg); } 50% { transform: rotateY(7deg); } }
@keyframes swap { 0% { filter: brightness(3) blur(4px); transform: scale(.96); } 100% { filter: none; transform: none; } }
.podium { position: absolute; bottom: 0; left: 50%; width: 70%; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 70%, transparent), transparent); filter: blur(2px); box-shadow: 0 0 40px color-mix(in srgb, var(--pc) 50%, transparent); }
.look-ctrl { display: grid; gap: 10px; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--grad); color: #1a0610; box-shadow: 0 0 18px -4px rgba(255,79,139,.8); }

/* carte du perso : arrivée en 3D */
.charcard { animation: flipIn .9s cubic-bezier(.2,.8,.2,1) both .1s; transform-origin: 50% 60%; }
@keyframes flipIn { from { opacity: 0; transform: perspective(900px) rotateY(80deg) scale(.9); } to { opacity: 1; transform: none; } }
.charcard .sparks { z-index: 3; }
.charcard .portrait.tall { aspect-ratio: 1; max-height: 40svh; width: 100%; }
.charcard-info { text-align: left; }
.statgrid { grid-template-columns: 1fr 1fr 1fr; gap: 10px 12px; }
.statbar i { transition: width .9s cubic-bezier(.2,.8,.2,1); }

/* business */
.bizc { text-align: left; animation: optIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * 90ms); overflow: hidden; }
.bizc-match { font-size: 1.7rem; }

/* app : arrivée, quêtes, effets */
.view-app.enter .hud { animation: dropIn .6s cubic-bezier(.2,.8,.2,1) both; }
.view-app.enter .panel { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
.view-app.enter .panel-map { animation-delay: .1s; } .view-app.enter .panel-stats { animation-delay: .2s; }
.view-app.enter .panel-district { animation-delay: .25s; } .view-app.enter .panel-phone { animation-delay: .35s; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
.daily-ring { display: flex; align-items: center; gap: 14px; margin: -4px 0 14px; }
.daily-ring b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.8rem; line-height: 1; }
.daily-ring .mono { color: var(--muted); font-size: .58rem; }
.ring-fill { transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.daily li { grid-template-columns: 24px 30px 1fr auto; animation: fadeUp .4s ease both; animation-delay: calc(var(--i) * 50ms); }
.daily li.locked { opacity: .5; }
.daily li.locked .chk { border-style: dashed; }
.dom { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--muted); }
.dom-business { color: var(--pink); } .dom-sport { color: var(--sun); } .dom-priere { color: var(--gold); } .dom-lecture { color: var(--teal); }
.dom-sommeil { color: #9aa6ff; } .dom-food { color: var(--cash); } .dom-ecran { color: #ff7a7a; } .dom-meditation { color: #c08cff; }
.daily li.done .chk { animation: pop .35s ease; }
.story li { animation: fadeUp .4s ease both; animation-delay: calc(var(--i) * 45ms); }
.story li.note { border-style: dashed; }
.xpbar i.flash { animation: xpflash .9s ease; }
@keyframes xpflash { 30% { filter: brightness(2.2); box-shadow: 0 0 24px rgba(255,79,139,1); } }
.stars i.on { animation: pop .4s ease; }
.fx-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-txt { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 900; font-size: 1.8rem; color: var(--gold); -webkit-text-stroke: 1.5px #1a1000; paint-order: stroke fill; animation: floatUp 1.3s cubic-bezier(.2,.8,.2,1) forwards; white-space: nowrap; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* paywall */
.paywall { z-index: 70; background: rgba(5,3,10,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pay-card { position: relative; overflow: hidden auto; width: min(430px, 100%); max-height: calc(100svh - 32px); border-radius: 28px; padding: 26px 22px 18px; display: grid; gap: 14px; justify-items: center; text-align: center; background: linear-gradient(180deg, rgba(48,24,56,.92), rgba(14,9,22,.96)); animation: payIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes payIn { from { opacity: 0; transform: translateY(40px) scale(.95); } to { opacity: 1; transform: none; } }
.pay-card > *:not(.sparks) { position: relative; z-index: 2; width: 100%; }
.pay-hero { width: 120px !important; aspect-ratio: 1; border-radius: 30px; overflow: hidden; border: 2px solid var(--pc, var(--pink)); box-shadow: 0 0 40px -6px var(--pc, var(--pink)); animation: floaty 3s ease-in-out infinite; }
.pay-hero .portrait { width: 100%; height: 100%; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.pay-kicker { color: var(--cash); margin: 0; }
.pay-title { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.3rem; line-height: .95; text-wrap: balance; }
.pay-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-stats div { padding: 12px 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); display: grid; gap: 2px; }
.pay-stats b { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.pay-stats .mono { font-size: .52rem; color: var(--muted); }
.pay-card .plans { text-align: left; }
.dom-proches { color: #ffb36b; }

/* ==========================================================
   v4 : persos 3D
   ========================================================== */
.char-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.char-canvas:active { cursor: grabbing; }
.pick-card { background: radial-gradient(70% 55% at 50% 45%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%), linear-gradient(180deg, #120c1c, #07050c); }
.pick-3d { position: absolute; inset: 0 0 64px 0; }
.pick-floor { position: absolute; left: 50%; bottom: 78px; width: 62%; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 65%, transparent), transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--pc) 45%, transparent); }
.pick-info { z-index: 2; pointer-events: none; padding-top: 30px; }
.pick-nav { z-index: 3; }
.pick-num { z-index: 3; }
.pick-thumbs .portrait img { object-position: 50% 50%; }

.look-stage { height: min(44svh, 380px); }
.look-3d { position: absolute; inset: 0; z-index: 1; }
.podium { z-index: 0; bottom: 4px; }
.look-hint { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; color: var(--faint); font-size: .55rem; pointer-events: none; }
.look-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.look-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: .85rem; }
.look-tabs button[aria-selected="true"] { background: rgba(255,255,255,.12); color: #fff; }
.look-panel { display: grid; gap: 8px; text-align: left; min-height: 120px; align-content: start; }
.look-panel.swap { animation: fadeUp .35s ease; }
.lk { color: var(--faint); font-size: .58rem; margin-top: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 2px solid rgba(255,255,255,.18); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--pink), 0 0 16px rgba(255,79,139,.6); }
.seg.scroll { overflow-x: auto; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }
.seg.scroll button { flex: none; padding: 0 14px; }
.charcard-3d { position: relative; width: 100%; aspect-ratio: 1; max-height: 40svh; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%), linear-gradient(180deg, #140d1e, #0b0812); }

/* ==========================================================
   v5 : questions visuelles du funnel
   ========================================================== */
.illu { width: 34px; height: 34px; color: currentColor; filter: drop-shadow(0 0 8px currentColor); }
.illu.big { width: 64px; height: 64px; }
.q-hint { color: var(--faint); font-size: .58rem; margin: -6px 0 0; }

/* carte de résident */
.idcard { position: relative; overflow: hidden; border-radius: 20px; padding: 14px 16px 12px; text-align: left; display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03)), linear-gradient(135deg, color-mix(in srgb, var(--pc) 30%, #120c1c), #0b0812 70%);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--pc) 70%, transparent);
  transform: perspective(900px) rotateX(8deg); animation: cardFloat 5s ease-in-out infinite; }
@keyframes cardFloat { 50% { transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-4px); } }
.idc-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .55rem; }
.idc-body { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.idc-photo { width: 92px; aspect-ratio: 4/5; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); }
.idc-fields { display: grid; gap: 1px; min-width: 0; }
.idc-fields .mono { font-size: .5rem; color: var(--faint); margin-top: 5px; }
.idc-fields b { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.idc-fields b.type { animation: typeIn .25s ease; }
@keyframes typeIn { from { transform: translateY(4px); filter: blur(3px); opacity: .5; } }
.idc-fields i { font-style: normal; font-size: .85rem; }
.idc-code { display: flex; gap: 2px; height: 22px; align-items: stretch; opacity: .7; }
.idc-code i { background: #fff; display: block; }
.idc-holo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,140,220,.25) 45%, rgba(120,255,240,.25) 55%, transparent 70%); background-size: 250% 100%; animation: holo 4s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes holo { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* molette d'âge */
.wheel-wrap { position: relative; }
.wheel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px calc(50% - 32px); scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel span { flex: none; width: 64px; scroll-snap-align: center; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; color: rgba(255,255,255,.35); transform: scale(calc(1.35 - var(--d, 1) * .5)); transition: color .15s; user-select: none; }
.wheel span.on { color: #fff; text-shadow: 0 0 24px rgba(255,79,139,.8); }
.wheel-glass { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 22px; background: var(--glass); border: 1px solid var(--pink); box-shadow: 0 0 30px -6px rgba(255,79,139,.8), inset 0 1px 0 rgba(255,255,255,.15); pointer-events: none; }
.wheel-unit { color: var(--muted); margin-top: -8px; }

/* cases illustrées */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--fg); font-weight: 600; background: var(--glass); border: 1px solid var(--glass-line); animation: optIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.12s + var(--i) * 70ms); transition: transform .2s, border-color .2s, background .2s; }
.tile .illu { width: 54px; height: 54px; color: var(--muted); transition: color .2s, transform .3s; }
.tile:hover .illu { transform: translateY(-3px) scale(1.06); color: #fff; }
.tile[aria-pressed="true"] { border-color: var(--pink); background: radial-gradient(80% 80% at 50% 30%, rgba(255,79,139,.3), rgba(255,255,255,.03)); transform: scale(1.03); }
.tile[aria-pressed="true"] .illu { color: var(--pink); animation: bounce .5s ease; }
.tile .stamp { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; background: var(--pink); color: #1a0610; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.tile[aria-pressed="true"] .stamp { transform: scale(1); }
@keyframes bounce { 40% { transform: translateY(-8px) scale(1.12); } }

/* cadran */
.dial { position: relative; width: min(250px, 72vw); aspect-ratio: 1; justify-self: center; touch-action: none; cursor: grab; }
.dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
#dialArc { transition: stroke-dashoffset .18s ease; filter: drop-shadow(0 0 8px rgba(255,79,139,.7)); }
#dialKnob { filter: drop-shadow(0 0 10px rgba(255,255,255,.9)); transition: cx .18s, cy .18s; }
.dial-mid { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; pointer-events: none; }
.dial-mid b { font-family: var(--f-display); font-weight: 900; font-size: 2.8rem; line-height: 1; }
.dial-mid .mono { color: var(--muted); font-size: .58rem; }

/* liasse de billets + curseur */
.cash-vis { position: relative; height: 170px; display: grid; place-items: end center; }
.bills { position: relative; width: 150px; height: 130px; }
.bills i { position: absolute; left: 0; bottom: calc(var(--k) * 6px); width: 150px; height: 70px; border-radius: 8px; transform: rotate(var(--r)); background: linear-gradient(135deg, #8dffb0, #2f9a5a); border: 2px solid #c9ffd8; box-shadow: 0 4px 0 rgba(0,0,0,.35); animation: billIn .35s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--k) * 30ms); }
.bills i::after { content: "€"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: rgba(6,40,20,.55); }
.bills em { position: absolute; bottom: 30px; left: 0; right: 0; color: var(--faint); font-style: normal; }
@keyframes billIn { from { transform: translateY(-40px) rotate(0); opacity: 0; } }
.cash-num { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--cash); text-shadow: 0 0 24px rgba(125,255,161,.45); font-variant-numeric: tabular-nums; }
.cash-num.big { font-size: 3.2rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--sun), var(--pink) var(--p, 50%), rgba(255,255,255,.1) var(--p, 50%)); outline: none; margin: 6px 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,79,139,.35), 0 0 20px rgba(255,79,139,.8); cursor: grab; }
.range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(255,79,139,.35), 0 0 20px rgba(255,79,139,.8); }
.range:focus-visible { box-shadow: 0 0 0 3px var(--teal); }
.range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: .55rem; margin-top: -10px; }

/* cartes à swiper */
.deck { position: relative; height: min(46svh, 340px); }
.scard { position: absolute; inset: 0; margin: auto; width: 86%; border-radius: 26px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; touch-action: none; cursor: grab; user-select: none;
  background: linear-gradient(160deg, #2a1838, #120c1c); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  transform: translateY(calc(var(--n) * 10px)) scale(calc(1 - var(--n) * .05)); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; color: var(--pink); }
.scard.drag { transition: none; }
.scard b { font-family: var(--f-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; color: #fff; line-height: 1; }
.scard p { margin: 0; color: var(--muted); font-size: .92rem; }
.scard.gone { pointer-events: none; opacity: 0; }
.scard.gone.right { transform: translate(140%, -20px) rotate(24deg) !important; }
.scard.gone.left { transform: translate(-140%, -20px) rotate(-24deg) !important; }
.stamp-yes, .stamp-no { position: absolute; top: 22px; padding: 4px 12px; border-radius: 8px; font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; border: 3px solid; }
.stamp-yes { left: 20px; color: var(--cash); transform: rotate(-12deg); opacity: var(--yes, 0); }
.stamp-no { right: 20px; color: #ff5a6a; transform: rotate(12deg); opacity: var(--no, 0); }
.deck-end { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; opacity: 0; transform: scale(.8); transition: .4s; pointer-events: none; }
.deck-end b { font-family: var(--f-display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--cash); }
.deck.done .deck-end { opacity: 1; transform: none; }
.swipe-btns { display: flex; align-items: center; justify-content: center; gap: 22px; }
.swipe-btns .mono { color: var(--faint); font-size: .55rem; }
.swipe-btns button { width: 60px; height: 60px; border-radius: 50%; font-size: 1.4rem; font-weight: 700; background: var(--glass); border: 1px solid var(--glass-line); transition: transform .15s; }
.swipe-btns button:active { transform: scale(.9); }
.sw-no { color: #ff5a6a; } .sw-yes { color: var(--cash); }

/* carrousel de voies */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px calc(50% - 39%); scrollbar-width: none; margin-inline: -24px; }
.carousel::-webkit-scrollbar { display: none; }
.ccard { position: relative; overflow: hidden; flex: none; width: 78%; scroll-snap-align: center; aspect-ratio: 3 / 4; max-height: 44svh; border-radius: 26px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 22px; text-align: center; color: var(--teal);
  background: linear-gradient(160deg, #241634, #0d0916); border: 1px solid var(--glass-line); transform: scale(calc(1 - var(--d, 1) * .12)); opacity: calc(1 - var(--d, 1) * .5); transition: border-color .2s; }
.ccard[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 40px -10px rgba(47,214,196,.8); }
.ccard b { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; text-transform: uppercase; color: #fff; line-height: 1; }
.ccard p { margin: 0; color: var(--muted); font-size: .9rem; }
.ccard .illu.big { width: 80px; height: 80px; animation: floaty 3s ease-in-out infinite; }
.ccard-glow { position: absolute; inset: auto -30% -40% -30%; height: 70%; background: radial-gradient(closest-side, rgba(47,214,196,.35), transparent); pointer-events: none; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--teal); }

/* objectif */
.goal-vis { height: 150px; display: grid; place-items: center; }
.goal-card { display: grid; justify-items: center; gap: 10px; color: hsl(calc(30 + var(--lvl) * 50) 100% 65%); animation: goalIn .45s cubic-bezier(.2,.8,.2,1); }
.goal-card .illu.big { width: calc(70px + var(--lvl) * 8px); height: calc(70px + var(--lvl) * 8px); }
.goal-card span { color: #fff; font-weight: 600; font-size: 1rem; }
@keyframes goalIn { from { opacity: 0; transform: scale(.7) rotate(-8deg); filter: blur(6px); } }
.goal-per { color: var(--muted); font-size: .58rem; margin-top: -14px; }

/* badges de vie */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.badge { position: relative; display: grid; justify-items: center; gap: 8px; background: none; border: 0; color: var(--muted); padding: 0; animation: optIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.1s + var(--i) * 50ms); }
.badge-ic { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); transition: .25s; }
.badge-ring { position: absolute; top: -4px; left: 50%; width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; background: conic-gradient(var(--sun), var(--pink), #c94dff, var(--teal), var(--sun)); opacity: 0; transition: opacity .25s; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.badge-l { font-size: .75rem; font-weight: 600; }
.badge[aria-pressed="true"] { color: #fff; }
.badge[aria-pressed="true"] .badge-ring { opacity: 1; }
.badge[aria-pressed="true"] .badge-ic { background: #1a0f24; border-color: transparent; color: #fff; animation: pop .35s ease; box-shadow: 0 0 24px rgba(255,79,139,.6); }

/* boss */
.bosses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bosscard { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 18px 12px 14px; border-radius: 22px; text-align: center; color: #ff6a7a; background: linear-gradient(180deg, #2a1220, #120a14); border: 1px solid rgba(255,90,106,.25); animation: optIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.12s + var(--i) * 70ms); }
.bosscard b { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; color: #fff; line-height: 1; }
.bosscard > span:not(.hp) { color: var(--muted); font-size: .78rem; line-height: 1.25; min-height: 2.5em; }
.bosscard .illu.big { width: 54px; height: 54px; animation: menace 2.4s ease-in-out infinite; }
@keyframes menace { 50% { transform: translateY(-3px) scale(1.05); } }
.hp { width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3a4a, #ff9a4a); transition: width .5s ease; }
.bosscard[aria-pressed="true"] { border-color: #ff5a6a; box-shadow: 0 0 30px -8px rgba(255,90,106,.9); }
.bosscard.hit { animation: hit .5s ease; }
.bosscard.hit .hp i { width: 62%; }
@keyframes hit { 15% { transform: translateX(-6px) rotate(-2deg); background: #5a1020; } 30% { transform: translateX(6px) rotate(2deg); } 45% { transform: translateX(-4px); } 60% { transform: none; } }
.f-inner { grid-template-columns: minmax(0, 1fr); } .f-inner > * { min-width: 0; }

/* =========================================================================
   v7 — l'app en format téléphone : barre du haut, 4 onglets, bouton chrono
   ========================================================================= */
.app { background:
  radial-gradient(120% 50% at 50% -10%, rgba(255,79,139,.18), transparent 60%),
  radial-gradient(80% 40% at 100% 30%, rgba(47,214,196,.08), transparent 70%),
  linear-gradient(180deg, #120b1d, var(--night) 40%); }
.a-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px; position: relative; z-index: 3;
  background: linear-gradient(180deg, rgba(18,11,29,.95), rgba(18,11,29,.7)); border-bottom: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.a-me { position: relative; padding: 0; border: 0; background: none; }
.a-avatar { display: block; width: 48px; height: 48px; border-radius: 15px; overflow: hidden; border: 1.5px solid var(--pc, var(--pink)); box-shadow: 0 0 18px -4px var(--pc, var(--pink)); background: #1a1226; }
.a-avatar .portrait { width: 100%; height: 100%; }
.a-lvl { position: absolute; right: -6px; bottom: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #1a0610; font-family: var(--f-display); font-weight: 900; font-size: .9rem; border: 2px solid #120b1d; }
.a-who { min-width: 0; display: grid; gap: 5px; }
.a-name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-xp { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.a-xp i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); box-shadow: 0 0 10px rgba(255,79,139,.7); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.a-xp i.flash { animation: xpflash .9s ease; }
.a-xptext { color: var(--faint); font-size: .52rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-cash { display: grid; justify-items: end; gap: 3px; border: 0; background: none; padding: 0; }
.a-cash b { font-family: var(--f-display); font-weight: 900; font-size: 1.55rem; line-height: 1; color: var(--cash); text-shadow: 0 0 18px rgba(125,255,161,.4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-cash .stars i { width: 11px; height: 11px; }
.app .demo-banner { margin: 8px 16px 0; }

.a-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px calc(110px + env(safe-area-inset-bottom, 0px)); scroll-behavior: smooth; overscroll-behavior: contain; }
.tab { display: grid; gap: 14px; animation: tabIn .4s cubic-bezier(.2,.8,.2,1); }
.tab > * { min-width: 0; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }
.a-h { margin: 2px 0 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.1rem; line-height: .95; }
.a-h em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { border-radius: 22px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.card-head .mono { color: var(--faint); font-size: .55rem; text-align: right; }

/* barre d'onglets */
.a-nav { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 4; height: 68px; border-radius: 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(20,13,32,.78); border: 1px solid var(--glass-line); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1); }
.a-nav button { height: 100%; border: 0; background: none; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: .66rem; font-weight: 600; position: relative; transition: color .2s; }
.a-nav svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.2,.8,.2,1.4); }
.a-nav button[aria-current] { color: #fff; }
.a-nav button[aria-current] svg { transform: translateY(-2px) scale(1.1); color: var(--pink); filter: drop-shadow(0 0 8px rgba(255,79,139,.8)); }
.a-nav button[aria-current]::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.a-nav .a-focus { width: 60px; height: 60px; margin: -26px auto 0; border-radius: 20px; color: #1a0610; background: var(--grad); box-shadow: 0 10px 30px -6px rgba(255,79,139,.8), inset 0 1px 0 rgba(255,255,255,.5); transform: rotate(45deg); }
.a-nav .a-focus svg { transform: rotate(-45deg); width: 28px; height: 28px; }
.a-nav .a-focus.running { animation: focusPulse 1.6s ease-in-out infinite; }
@keyframes focusPulse { 50% { box-shadow: 0 0 0 8px rgba(255,79,139,.18), 0 10px 30px -6px rgba(255,79,139,.8); } }

/* QG */
.qg-hello { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.qg-hello .mono { font-size: .56rem; }
.flame { display: grid; justify-items: center; padding: 8px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--faint); min-width: 64px; }
.flame b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--fg); }
.flame .mono { font-size: .48rem; }
.flame.on { color: var(--sun); border-color: rgba(255,154,74,.4); background: radial-gradient(80% 80% at 50% 20%, rgba(255,154,74,.25), rgba(255,154,74,.04)); }
.flame.on svg { filter: drop-shadow(0 0 8px rgba(255,154,74,.9)); animation: flick 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 30% { transform: scale(1.08, .94) rotate(-2deg); } 60% { transform: scale(.95, 1.06) rotate(2deg); } }

.boss-card { --bc: var(--pink); position: relative; overflow: hidden; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 22px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--bc) 30%, transparent), transparent 60%), linear-gradient(135deg, #1d1029, #0f0a18);
  border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent); box-shadow: 0 0 40px -18px var(--bc); }
.boss-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); pointer-events: none; }
.boss-art { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; color: var(--bc); background: radial-gradient(circle, color-mix(in srgb, var(--bc) 30%, transparent), transparent 70%); animation: bossIdle 3s ease-in-out infinite; }
.boss-art .illu { width: 74px; height: 74px; filter: drop-shadow(0 0 12px var(--bc)); }
@keyframes bossIdle { 50% { transform: translateY(-4px) scale(1.03); } }
.boss-info { display: grid; gap: 6px; min-width: 0; }
.boss-info .mono { margin: 0; color: var(--bc); font-size: .54rem; }
.boss-info h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: .95; }
.boss-hp { height: 10px; border-radius: 3px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); overflow: hidden; }
.boss-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ff3b3b, var(--bc)); box-shadow: 0 0 10px var(--bc); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.boss-txt { margin: 0; font-size: .82rem; color: var(--muted); }
.boss-txt b { color: #fff; }
.boss-card.ko .boss-art { filter: grayscale(1) opacity(.5); animation: none; transform: rotate(-12deg); }
.boss-card.ko h3 { text-decoration: line-through; text-decoration-color: var(--bc); }

.daily li { grid-template-columns: 24px 30px 1fr auto; }
.daily li.locked { opacity: .55; }
.dom { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--teal); }
.dom-business { color: var(--pink); } .dom-sport { color: var(--sun); } .dom-priere, .dom-meditation { color: #b69cff; } .dom-perso { color: #e08cff; } .dom-sommeil { color: #7fa8ff; } .dom-food { color: var(--cash); }
.daily .rm { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--glass-line); background: none; color: var(--faint); font-size: 1.1rem; line-height: 1; }
.addq { display: flex; gap: 8px; margin-top: 10px; }
.addq input { flex: 1; min-width: 0; height: 42px; border-radius: 14px; border: 1px dashed var(--glass-hi); background: rgba(0,0,0,.2); padding: 0 14px; font-size: .9rem; }
.addq input:focus { outline: none; border-style: solid; border-color: var(--pink); }
.addq .pill { min-height: 42px; }

.next-card { --dc: var(--pink); position: relative; padding: 18px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--dc) 22%, #120b1d), #0e0916 70%); border: 1px solid color-mix(in srgb, var(--dc) 50%, transparent); }
.next-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--dc) 45%, transparent), transparent 70%); }
.next-card .mono { margin: 0 0 6px; color: var(--dc); font-size: .55rem; position: relative; }
.next-card h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.8rem; line-height: .95; position: relative; }
.nm-d { margin: 8px 0 0; color: var(--muted); font-size: .9rem; position: relative; }
.nm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; position: relative; }
.nm-foot b { font-family: var(--f-mono); color: var(--dc); font-size: .8rem; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 130px; align-items: end; }
.wbar { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; }
.wbar b { font-family: var(--f-mono); font-size: .52rem; color: var(--faint); font-weight: 400; min-height: 1em; }
.wbar i { width: 100%; max-width: 28px; align-self: end; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); animation: grow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms); transform-origin: bottom; }
.wbar.full i { background: linear-gradient(180deg, var(--sun), var(--pink)); box-shadow: 0 0 14px -2px rgba(255,79,139,.7); }
.wbar.today span { color: #fff; background: var(--pink); }
.wbar span { font-family: var(--f-mono); font-size: .6rem; color: var(--faint); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; }
@keyframes grow { from { transform: scaleY(0); } }
.feed { max-height: none; }

/* Carte */
.map-wrap { position: relative; margin: -16px -16px 0; }
.map-wrap .citysvg { width: 100%; height: auto; display: block; border-radius: 0 0 28px 28px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); }
.map-hud { position: absolute; left: 14px; top: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(11,8,20,.8); border: 1px solid var(--glass-line); font-size: .52rem; color: var(--muted); }
.citysvg .district { cursor: pointer; outline: none; }
.citysvg .district:focus-visible .sel-line, .citysvg .district:hover > polygon:first-child { fill: rgba(255,255,255,.05); }
.citysvg .district.locked { cursor: not-allowed; }
.citysvg .wave { animation: drift 5s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes drift { to { transform: translateX(8px); opacity: .4; } }
.citysvg .route-live { stroke-dasharray: 8 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.citysvg .beacon { animation: pulse 1.4s infinite; }
.citysvg .pin { animation: none; }
.citysvg .pin > *:not(.pin-pulse) { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.citysvg .pin-pulse { transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.citysvg .sel-line { animation: selGlow 1.8s ease-in-out infinite; }
@keyframes selGlow { 50% { stroke-opacity: .5; } }
.district-card { --dc: var(--pink); border-color: color-mix(in srgb, var(--dc) 40%, transparent); scroll-margin-top: 10px; }
.district-card h3 { color: var(--dc); }
.st-n { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; font-family: var(--f-mono); font-size: .62rem; background: color-mix(in srgb, var(--dc) 25%, transparent); color: var(--dc); vertical-align: 2px; }
.story li.note { background: rgba(255,255,255,.03); border-style: dashed; }
.story li.note::before { display: none; }

/* Cash */
.cash-hero { display: grid; gap: 16px; justify-items: center; padding: 6px 0 4px; }
.goal-ring { position: relative; width: 210px; height: 210px; }
.goal-ring svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(125,255,161,.3)); }
.gr-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; }
.gr-in .mono { color: var(--faint); font-size: .55rem; }
.gr-in b { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--cash); text-shadow: 0 0 20px rgba(125,255,161,.4); }
.gr-of { font-size: .78rem; color: var(--muted); }
.cash-chart svg { width: 100%; height: 130px; display: block; }
.cash-chart .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cc-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: .5rem; margin-top: 4px; }
.proj { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(125,255,161,.07); border: 1px solid rgba(125,255,161,.2); font-size: .86rem; color: var(--muted); }
.proj b { color: var(--cash); }
.rep, .sales { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rep li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); opacity: .5; }
.rep li.on { opacity: 1; border-color: rgba(247,197,72,.35); background: rgba(247,197,72,.06); }
.rep li.next { opacity: 1; }
.rs { color: var(--gold); font-size: .8rem; letter-spacing: -1px; text-shadow: 0 0 8px rgba(247,197,72,.6); }
.rep li:not(.on) .rs { color: rgba(255,255,255,.25); text-shadow: none; }
.rep b { display: block; font-size: .92rem; }
.rep .mono { color: var(--faint); font-size: .52rem; }
.rep-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); margin-top: 6px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.sales li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .88rem; }
.sales .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cash); color: #062312; font-weight: 700; }
.sales b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales time { color: var(--faint); font-size: .72rem; }
.sales .amt { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; color: var(--cash); }
.sales .empty { display: block; text-align: center; color: var(--faint); }

/* Perso */
.me-hero { --pc: var(--pink); position: relative; height: 380px; margin: -16px -16px 0; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 60%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%), linear-gradient(180deg, #1a0f28, #0c0815); }
.me-hero::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -10px; height: 140px; background:
  linear-gradient(90deg, rgba(255,79,139,.25) 1px, transparent 1px) 0 0 / 28px 100%, linear-gradient(0deg, rgba(255,79,139,.25) 1px, transparent 1px) 0 0 / 100% 22px;
  transform: perspective(240px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(0deg, #000, transparent); -webkit-mask-image: linear-gradient(0deg, #000, transparent); }
.me-3d { position: absolute; inset: 0 0 40px; }
.me-3d .char-canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.me-id { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 6px; }
.me-name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; line-height: .9; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.me-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.radar svg { width: 100%; height: auto; display: block; }
.radar .rl { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.2px; fill: rgba(246,241,251,.55); }
.radar .rv { font-family: var(--f-display); font-weight: 900; font-size: 14px; fill: #fff; }
.radar .radar-shape { transform-origin: 150px 128px; animation: radarIn .8s cubic-bezier(.2,.8,.2,1.2) both; filter: drop-shadow(0 0 10px rgba(255,79,139,.6)); }
@keyframes radarIn { from { transform: scale(.2); opacity: 0; } }
.trophies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trophies li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); opacity: .4; filter: grayscale(1); }
.trophies li.on { opacity: 1; filter: none; border-color: rgba(247,197,72,.4); background: radial-gradient(90% 70% at 50% 0%, rgba(247,197,72,.18), rgba(255,255,255,.02)); animation: fadeUp .5s both; animation-delay: calc(var(--i) * 40ms); }
.tr-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); background: rgba(255,255,255,.05); }
.trophies li.on .tr-ic { color: #1a1000; background: linear-gradient(135deg, #ffe29a, var(--gold) 50%, #d89a24); box-shadow: 0 0 18px -2px rgba(247,197,72,.8), inset 0 1px 0 rgba(255,255,255,.6); }
.trophies b { font-size: .74rem; line-height: 1.15; }
.trophies span:last-child { font-size: .62rem; color: var(--faint); line-height: 1.2; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-family: var(--f-mono); font-size: .55rem; color: var(--faint); }
.cal-grid { margin-top: 6px; }
.cal-grid i, .cal-legend i { display: block; aspect-ratio: 1; border-radius: 7px; background: rgba(255,255,255,.05); }
.cal-grid i.l1, .cal-legend i.l1 { background: rgba(255,79,139,.25); }
.cal-grid i.l2, .cal-legend i.l2 { background: rgba(255,79,139,.45); }
.cal-grid i.l3 { background: rgba(255,79,139,.7); }
.cal-grid i.l4, .cal-legend i.l4 { background: var(--pink); box-shadow: 0 0 10px -2px var(--pink); }
.cal-grid i.full, .cal-legend i.full { outline: 2px solid var(--gold); outline-offset: -2px; }
.cal-grid i.today { outline: 2px solid #fff; outline-offset: 1px; }
.cal-grid i.future { opacity: .25; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--faint); font-size: .5rem; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.danger-txt { color: var(--danger) !important; }

/* Chrono */
.focus-card { width: min(400px, 100%); border-radius: 28px; padding: 26px 22px 18px; display: grid; gap: 14px; justify-items: center; text-align: center; background: linear-gradient(180deg, rgba(40,24,58,.92), rgba(14,9,22,.96)); }
.focus-kicker { margin: 0; color: var(--sun); font-size: .6rem; }
.focus-card h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.8rem; line-height: 1; }
.focus-dial { position: relative; width: 230px; height: 230px; }
.focus-dial svg { width: 100%; height: 100%; filter: drop-shadow(0 0 20px rgba(201,77,255,.35)); }
.focus-dial.live svg { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 34px rgba(255,79,139,.55)); } }
.fd-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; }
.fd-in b { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fd-in .mono { color: var(--teal); font-size: .55rem; }
.focus-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.focus-pick button { height: 42px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); font-weight: 600; font-size: .85rem; }
.focus-pick button[aria-pressed="true"] { background: var(--grad); color: #1a0610; border-color: transparent; box-shadow: 0 0 18px -4px rgba(255,79,139,.8); }

@media (max-width: 520px) {
  .app .a-body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================================
   v7 — funnel plus riche : décor néon animé, cartes colorées, halos, reflets
   ========================================================================= */
.funnel { isolation: isolate; overflow: hidden; }
.funnel::before { /* sol quadrillé qui défile */
  content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -2%; height: 34%;
  background:
    linear-gradient(90deg, rgba(255,79,139,.35) 1px, transparent 1px) 0 0 / 36px 100%,
    linear-gradient(0deg, rgba(255,79,139,.35) 1px, transparent 1px) 0 0 / 100% 30px;
  transform: perspective(260px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(0deg, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
  animation: gridRun 2.4s linear infinite; opacity: .55; }
@keyframes gridRun { to { background-position: 0 30px, 0 30px; } }
.funnel::after { /* soleil + étoiles */
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 62% 28%, #ffd27a, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent),
    radial-gradient(1px 1px at 88% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 6% 46%, #9fe8ff, transparent),
    radial-gradient(60% 28% at 50% 78%, rgba(255,120,80,.32), transparent 70%),
    radial-gradient(40% 18% at 50% 74%, rgba(255,79,139,.35), transparent 70%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .75; } }
.f-top, .f-stage, .f-foot { position: relative; z-index: 1; }

/* couleurs par option (sans JS) */
.tile:nth-child(1), .bosscard:nth-child(1), .ccard:nth-child(1) { --tc: #2fd6c4; }
.tile:nth-child(2), .bosscard:nth-child(2), .ccard:nth-child(2) { --tc: #ff4f8b; }
.tile:nth-child(3), .bosscard:nth-child(3), .ccard:nth-child(3) { --tc: #f7c548; }
.tile:nth-child(4), .bosscard:nth-child(4), .ccard:nth-child(4) { --tc: #c94dff; }
.bosscard:nth-child(1) { --tc: #ff9a4a; } .bosscard:nth-child(2) { --tc: #ff4f8b; } .bosscard:nth-child(3) { --tc: #9a8cff; } .bosscard:nth-child(4) { --tc: #2fd6c4; }

/* tuiles illustrées */
.tile { --tc: var(--pink); isolation: isolate; color: #fff;
  background: radial-gradient(90% 70% at 50% 25%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 50%, rgba(0,0,0,.25));
  border: 1px solid color-mix(in srgb, var(--tc) 30%, rgba(255,255,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 14px 30px -18px color-mix(in srgb, var(--tc) 80%, transparent);
  transition: transform .25s cubic-bezier(.2,.8,.2,1.3), border-color .2s, box-shadow .25s; }
.tile::before { content: ""; position: absolute; z-index: -1; width: 92px; height: 92px; top: 18%; left: 50%; margin-left: -46px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc) 45%, transparent), transparent 68%); animation: halo 3s ease-in-out infinite; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%); transform: translateX(-120%); }
.tile:hover::after, .tile[aria-pressed="true"]::after { transform: translateX(120%); transition: transform .8s ease; }
@keyframes halo { 50% { transform: scale(1.18); opacity: .75; } }
.tile .illu { color: var(--tc); filter: drop-shadow(0 0 10px var(--tc)); width: 58px; height: 58px; }
.tile:hover .illu { color: var(--tc); }
.tile:active { transform: scale(.96) rotateX(6deg); }
.tile[aria-pressed="true"] { border-color: var(--tc); background: radial-gradient(90% 80% at 50% 25%, color-mix(in srgb, var(--tc) 45%, transparent), color-mix(in srgb, var(--tc) 8%, #120b1d)); box-shadow: 0 0 36px -8px var(--tc), inset 0 1px 0 rgba(255,255,255,.25); }
.tile[aria-pressed="true"] .illu { color: #fff; }
.tile .stamp { background: var(--tc); }

/* carrousel */
.ccard { --tc: var(--teal); isolation: isolate;
  background: radial-gradient(100% 60% at 50% 0%, color-mix(in srgb, var(--tc) 35%, transparent), transparent 70%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 12px), linear-gradient(180deg, #1c1129, #0d0816);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, rgba(255,255,255,.1)); }
.ccard .illu.big { color: var(--tc); width: 92px; height: 92px; filter: drop-shadow(0 0 16px var(--tc)); }
.ccard::before { content: ""; position: absolute; z-index: -1; top: 14%; left: 50%; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); box-shadow: 0 0 0 22px color-mix(in srgb, var(--tc) 6%, transparent), 0 0 0 44px color-mix(in srgb, var(--tc) 4%, transparent); animation: halo 4s ease-in-out infinite; }
.ccard-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 45%, transparent), transparent); }
.ccard[aria-pressed="true"] { border-color: var(--tc); box-shadow: 0 0 50px -10px var(--tc), inset 0 1px 0 rgba(255,255,255,.2); }

/* objectif : halo à rayons autour du visuel */
.goal-vis { height: 190px; position: relative; }
.goal-vis::before { content: ""; position: absolute; width: 180px; height: 180px; left: 50%; top: 50%; margin: -100px 0 0 -90px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,210,122,.16) 0 6deg, transparent 6deg 18deg); mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.goal-card { position: relative; }
.goal-card .illu.big { filter: drop-shadow(0 0 18px currentColor); }

/* boss */
.bosscard { --tc: #ff5a6a; color: var(--tc);
  background: radial-gradient(90% 60% at 50% 20%, color-mix(in srgb, var(--tc) 28%, transparent), transparent 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #1d1029, #0e0916);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, rgba(255,255,255,.08)); }
.bosscard .illu.big { width: 62px; height: 62px; filter: drop-shadow(0 0 12px var(--tc)); }
.bosscard .hp i { background: linear-gradient(90deg, #ff3b3b, var(--tc)); }
.bosscard[aria-pressed="true"] { border-color: var(--tc); box-shadow: 0 0 34px -8px var(--tc); }

/* badges de vie : couleur d'icône */
.badge-ic { color: var(--muted); }
.badge:hover .badge-ic { transform: translateY(-3px); }

/* éditeur de look : socle néon */
.look-stage::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 210px; height: 46px; margin-left: -105px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,79,139,.45), rgba(255,79,139,.08) 70%, transparent); border: 1.5px solid rgba(255,79,139,.6); box-shadow: 0 0 30px rgba(255,79,139,.5), inset 0 0 20px rgba(255,79,139,.4); }
.look-stage::before { content: ""; position: absolute; left: 50%; bottom: 26px; width: 170px; height: 70%; margin-left: -85px; z-index: 0;
  background: linear-gradient(0deg, rgba(255,79,139,.18), transparent); clip-path: polygon(8% 100%, 92% 100%, 70% 0, 30% 0); pointer-events: none; }
.cal-grid i { aspect-ratio: 1.35; }

/* =========================================================================
   v8 — persos illustrés (remplacent la 3D)
   ========================================================================= */
.av-stage { position: absolute; inset: 0; overflow: visible; }
.av-img { position: absolute; left: 0; right: 0; bottom: 0; margin: auto; height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)) drop-shadow(0 0 26px color-mix(in srgb, var(--pc, #ff4f8b) 30%, transparent));
  transform-origin: 50% 100%; animation: avBreath 4.2s ease-in-out infinite; }
.av-bust .av-img { object-position: 50% 50%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
@keyframes avBreath { 50% { transform: scale(1.012, 1.018) translateY(-2px); } }
.av-img.in { animation: avIn .45s cubic-bezier(.2,.8,.2,1) both, avBreath 4.2s ease-in-out .45s infinite; }
.av-img.in.from-r { --dx: 40%; } .av-img.in.from-l { --dx: -40%; }
@keyframes avIn { from { opacity: 0; transform: translateX(var(--dx)) scale(.94); } }
.av-img.out { animation: avOut .35s ease forwards; }
.av-img.out.to-l { --dx: -40%; } .av-img.out.to-r { --dx: 40%; }
@keyframes avOut { to { opacity: 0; transform: translateX(var(--dx)) scale(.94); } }
.pick-3d { inset: 8px 0 70px 0; }
.charcard-3d { overflow: hidden; }
.me-3d { inset: 12px 0 70px; }
.portrait img { object-fit: cover; object-position: 50% 15%; }

/* choix de la tenue */
.outfits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.outfit { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 18px; text-align: center; color: var(--fg);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--glass-line); transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: optIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.1s + var(--i) * 70ms); }
.outfit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%); }
.outfit b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.05rem; margin-top: 4px; }
.outfit span { font-size: .62rem; color: var(--faint); line-height: 1.2; }
.outfit[aria-pressed="true"] { border-color: var(--pc); box-shadow: 0 0 26px -6px var(--pc); transform: translateY(-3px); background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--pc) 28%, transparent), rgba(255,255,255,.02)); }

/* =========================================================================
   v10 — funnel en images peintes (img/vis) : tuiles, billets, cartes, objectif, boss, business
   ========================================================================= */
.pic { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* tuiles de situation : image plein cadre, titre en bas */
.tile.has-pic { padding: 0; place-items: end stretch; align-content: end; background: #120c1c; }
.tile.has-pic .pic { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s; filter: saturate(.85) brightness(.8); }
.tile.has-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,5,14,.92)); }
.tile.has-pic > span { position: relative; z-index: 1; padding: 0 14px 14px; text-align: left; font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.tile.has-pic:hover .pic { transform: scale(1.05); filter: none; }
.tile.has-pic[aria-pressed="true"] { transform: none; border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 0 30px -6px var(--pink); }
.tile.has-pic[aria-pressed="true"] .pic { filter: none; transform: scale(1.06); }
.tile.has-pic .stamp { z-index: 2; }

/* budget : vraie pile de liasses qui monte */
.cash-vis { height: 190px; place-items: end center; }
.cash-vis::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 280px; height: 120px; margin-left: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125,255,161,.35), transparent); opacity: calc(.2 + var(--glow, 0) * .8); transition: opacity .4s; }
.stack { position: relative; width: 300px; height: 180px; }
.stack img { position: absolute; left: 50%; bottom: var(--y); width: 92px; margin-left: -46px; z-index: var(--z); transform: translateX(var(--x)) rotate(var(--r)); filter: drop-shadow(0 6px 6px rgba(0,0,0,.55));
  animation: dropBill .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--k) * 40ms); }
@keyframes dropBill { from { opacity: 0; transform: translateX(var(--x)) translateY(-140px) rotate(calc(var(--r) * 4)); } }
.stack em { position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; color: var(--faint); font-style: normal; }

/* compétences : cartes avec image */
.deck { height: min(50svh, 380px); }
.scard { padding: 0; overflow: hidden; place-content: stretch; grid-template-rows: 1fr auto; gap: 0; background: #120c1c; }
.scard-pic { height: 100%; min-height: 0; }
.scard-txt { display: grid; gap: 4px; padding: 14px 18px 18px; background: linear-gradient(180deg, #1c1129, #0e0916); }
.scard b { font-size: 1.7rem; }
.scard p { font-size: .88rem; }
.stamp-yes, .stamp-no { z-index: 2; background: rgba(8,5,14,.6); }

/* voies : carte image plein cadre */
.ccard { padding: 0; place-content: end stretch; text-align: left; background: #120c1c; }
.ccard::before, .ccard-glow { display: none; }
.ccard .pic { position: absolute; inset: 0; }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,5,14,.95) 88%); }
.ccard-txt { position: relative; z-index: 1; display: grid; gap: 6px; padding: 20px; }
.ccard b { font-size: 2.1rem; }
.ccard p { color: rgba(255,255,255,.75); }

/* objectif : grande carte image qui change avec le montant */
.goal-vis { height: auto; aspect-ratio: 4 / 3.4; max-height: 36svh; position: relative; display: block; }
.goal-vis::before { display: none; }
.goal-card { position: absolute; inset: 0; display: block; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); }
.goal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,5,14,.9)); }
.goal-card span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; line-height: 1; text-align: left; }
.goal-card.in { animation: goalIn2 .45s cubic-bezier(.2,.8,.2,1) both; }
.goal-card.out { animation: goalOut .45s ease both; }
.goal-card .pic { animation: kenburns 8s ease-out both; }
@keyframes goalIn2 { from { opacity: 0; transform: scale(1.06); } }
@keyframes goalOut { to { opacity: 0; transform: scale(.96); } }
@keyframes kenburns { from { transform: scale(1.12); } }
.goal-num { display: grid; justify-items: center; gap: 4px; }
.goal-num .goal-per { margin: 0; }

/* boss : portraits de créatures */
.bosscard { padding: 0; aspect-ratio: 1 / 1.12; place-items: end stretch; align-content: end; gap: 0; text-align: left; background: #120c1c; }
.bosscard .pic { position: absolute; inset: 0; filter: saturate(.9) brightness(.85); transition: transform .4s, filter .3s; }
.bosscard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,5,14,.95) 85%); }
.boss-txt { position: relative; z-index: 1; display: grid; gap: 4px; padding: 12px; }
.boss-txt > span:not(.hp) { color: rgba(255,255,255,.72); font-size: .74rem; line-height: 1.2; }
.bosscard b { font-size: 1.25rem; }
.bosscard[aria-pressed="true"] .pic { filter: none; transform: scale(1.06); }

/* business : rail de grandes cartes, une à la fois */
.biz-hint { margin: -10px 0 0; text-align: center; color: var(--faint); font-size: .58rem; }
.bizrail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8%; margin-inline: -24px; scrollbar-width: none; }
.bizrail::-webkit-scrollbar { display: none; }
.bizc2 { flex: none; width: 84%; scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; border-radius: 24px; text-align: left; color: var(--fg);
  background: linear-gradient(180deg, #1c1129, #0e0916); border: 1px solid var(--glass-line); transition: border-color .2s, box-shadow .2s, opacity .2s; opacity: .55; }
.bizc2[aria-pressed="true"] { opacity: 1; border-color: var(--pink); box-shadow: 0 0 40px -12px var(--pink); }
.bizc2-media { position: relative; height: 128px; display: block; }
.bizc2-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #1c1129); }
.bizc2-top { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 9px; border-radius: 8px; background: var(--grad); color: #1a0610; font-size: .58rem; font-weight: 600; }
.bizc2-match { position: absolute; z-index: 1; right: 12px; top: 12px; width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #0e0916 78%, transparent 80%), conic-gradient(var(--cash) calc(var(--m) * 1%), rgba(255,255,255,.12) 0); }
.bizc2-match b { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; color: var(--cash); line-height: 1; }
.bizc2-match small { font-size: .42rem; color: var(--faint); letter-spacing: .08em; }
.bizc2-body { display: grid; align-content: start; gap: 8px; padding: 2px 16px 16px; }
.bizc2-tag { color: var(--teal); font-size: .6rem; }
.bizc2-name { font-family: var(--f-display); font-weight: 900; font-size: 1.75rem; text-transform: uppercase; line-height: .95; }
.bizc2-pitch { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.bizc2-why { display: grid; gap: 5px; }
.bizc2-why i { font-style: normal; font-size: .8rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.bizc2-why i::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; background: rgba(125,255,161,.15); color: var(--cash); }
.bizc2-why i.ko { color: var(--muted); font-weight: 400; }
.bizc2-why i.ko::before { content: "!"; background: rgba(255,154,74,.15); color: var(--sun); }
.bizc2-facts { display: grid; grid-template-columns: 1fr 1.3fr .9fr; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.bizc2-facts > span { display: grid; gap: 3px; min-width: 0; }
.bizc2-facts small { font-size: .5rem; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.bizc2-facts b { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bizc2-facts b.cash { color: var(--cash); }
.bizc2-facts em { font-style: normal; color: var(--faint); font-weight: 400; font-size: .7rem; }
.bizc2 .diff { display: flex; gap: 3px; align-items: center; height: 1.2em; }
.bizc2 .diff i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.15); }
.bizc2 .diff i.on { background: var(--sun); }
.carousel { --cw: min(74%, 34svh); padding-inline: 0; }
.ccard { width: var(--cw); max-height: none; }
.bizrail { --cw: 84%; padding-inline: 0; }
/* espaceurs : la première et la dernière carte peuvent venir au centre */
.carousel::before, .carousel::after, .bizrail::before, .bizrail::after { content: ""; flex: none; width: calc((100% - var(--cw)) / 2 - 14px); }
.bizc2 { width: var(--cw); }

/* =========================================================================
   v11 — campagne guidée, mentor, Business (clients, scripts, prix), habitudes, ta vie, partage
   ========================================================================= */
.pill.gold { background: linear-gradient(135deg, #ffd27a, #ff9a4a); color: #1a1000; box-shadow: 0 0 20px -6px rgba(247,197,72,.8); }
.pill.wide { width: 100%; }
.ms-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--teal), var(--cash)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
mark { background: rgba(255,154,74,.22); color: #ffd2a8; border-radius: 4px; padding: 0 3px; }

/* prochaine étape */
.next-card .chapter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.next-card .chapter i { display: block; height: 100%; background: var(--dc); }
.next-card .ms-bar { margin: 2px 0; }
.nm-left { color: var(--faint); font-size: .56rem; }
.next-card.pulse { animation: nmPulse 2s ease-in-out infinite; }
@keyframes nmPulse { 50% { box-shadow: 0 0 0 2px var(--dc), 0 0 40px -6px var(--dc); } }

/* défi du jour */
.chal { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(247,197,72,.16), rgba(255,79,139,.08)); border: 1px solid rgba(247,197,72,.35); }
.chal-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); background: rgba(247,197,72,.14); }
.chal-t p { margin: 0 0 2px; color: var(--gold); font-size: .55rem; }
.chal-t b { font-size: .92rem; font-weight: 600; line-height: 1.25; display: block; }
.chal.done { opacity: .6; }
.chal .ok, .crm .ok { color: var(--teal); font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; }

/* routines */
.rt-row { display: grid; gap: 8px; }
.rt-row button, .ms-steps button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); font-size: .9rem; }
.rt-row .chk, .ms-steps .chk { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: .2s; }
.rt-row [aria-pressed="true"], .ms-steps [aria-pressed="true"] { color: var(--muted); }
.rt-row [aria-pressed="true"] .chk, .ms-steps [aria-pressed="true"] .chk { background: var(--teal); border-color: var(--teal); }
.rt-row [aria-pressed="true"] .chk::after, .ms-steps [aria-pressed="true"] .chk::after { content: "✓"; color: #04211d; font-size: .75rem; font-weight: 700; }
.rt-ok { color: var(--teal); font-size: .58rem; margin: 2px 0 0; }
.mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood button { padding: 10px 0; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--muted); font-size: .74rem; font-weight: 600; }
.mood [aria-pressed="true"] { background: var(--grad); color: #1a0610; border-color: transparent; }
.rt-win { margin: 0; font-size: 1rem; font-style: italic; color: var(--fg); }
.flame .joker { font-style: normal; color: var(--teal); font-size: .7rem; letter-spacing: 2px; }

/* carte : missions */
.story li { cursor: pointer; transition: border-color .2s, transform .15s; }
.story li:active { transform: scale(.98); }
.story li.next { border-color: var(--dc); box-shadow: 0 0 24px -10px var(--dc); }
.story li.blur p { filter: blur(4px); user-select: none; }
.story li.note.pay { display: grid; gap: 10px; border-color: rgba(247,197,72,.4); }
.st-prog { color: var(--faint); font-size: .62rem; white-space: nowrap; }

/* fiche mission */
.sheet { place-items: end center; padding: 0; }
.sheet-card { position: relative; width: min(430px, 100%); max-height: 88svh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px;
  background: linear-gradient(180deg, rgba(40,26,58,.97), rgba(14,9,22,.98)); animation: sheetUp .35s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); color: var(--muted); }
.ms-k { margin: 0; color: var(--dc); font-size: .6rem; }
.sheet-card h3 { margin: 0; padding-right: 40px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.1rem; line-height: .95; }
.ms-d { margin: 0; color: var(--muted); }
.ms-h { margin: 6px 0 0; color: var(--faint); font-size: .56rem; }
.ms-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-req { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.ms-req b { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--cash); }
.ms-note { margin: 0; color: var(--faint); font-size: .82rem; }
.ms-done { margin: 0; text-align: center; color: var(--teal); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.ms-foot .hexbtn { width: 100%; }
.hexbtn:disabled { opacity: .45; filter: grayscale(.6); }
.tpl, .sc { display: grid; gap: 8px; }
.tpl pre, .sc pre { margin: 0; white-space: pre-wrap; font-family: var(--f-body, inherit); font-size: .88rem; line-height: 1.45; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); color: var(--fg); }
.tpl .pill, .sc .pill { justify-self: start; min-height: 34px; }

/* appel du mentor */
.call { background: rgba(5,3,10,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.call-card { width: min(380px, 100%); display: grid; justify-items: center; gap: 6px; text-align: center; }
.call-ring { position: relative; width: 150px; height: 150px; margin-bottom: 14px; }
.call-ring img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.2); }
.call-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: ringOut 2s ease-out infinite; }
.call-ring i + i { animation-delay: 1s; }
@keyframes ringOut { to { transform: scale(1.7); opacity: 0; } }
.call-k { margin: 0; color: var(--teal); font-size: .6rem; }
.call-card h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 3rem; text-transform: uppercase; line-height: 1; }
.call-role { margin: 0; color: var(--muted); }
.call-btns { display: flex; gap: 70px; margin-top: 40px; }
.call-btns button { width: 72px; height: 72px; border-radius: 50%; font-size: 1.6rem; color: #fff; border: 0; }
.call-no { background: #e5484d; }
.call-yes { background: #30c46b; animation: callBob 1.2s ease-in-out infinite; }
@keyframes callBob { 50% { transform: translateY(-6px) rotate(-12deg); } }
.call-card.live { justify-items: stretch; text-align: left; gap: 14px; background: linear-gradient(180deg, rgba(40,26,58,.95), rgba(14,9,22,.98)); border: 1px solid var(--glass-line); border-radius: 28px; padding: 18px; }
.call-top { display: flex; gap: 12px; align-items: center; }
.call-top img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.call-top b { display: block; font-size: 1.05rem; }
.call-top .mono { color: #30c46b; font-size: .55rem; }
.bubbles { display: grid; gap: 8px; max-height: 46svh; overflow-y: auto; }
.bubbles p { margin: 0; justify-self: start; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.08); font-size: .95rem; line-height: 1.4; }
.bubbles p.new { animation: bubbleIn .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.95); } }
.call-card .hexbtn { width: 100%; }

/* Business : segments */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); position: sticky; top: 0; z-index: 3; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.seg button { padding: 10px 0; border-radius: 12px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .82rem; }
.seg [aria-selected="true"] { background: var(--grad); color: #1a0610; }
.segp { display: grid; gap: 14px; }
.wgoals { display: grid; gap: 12px; margin-bottom: 4px; }
.wg-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: .86rem; }
.wg-top b { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; }
.wg-top small { color: var(--faint); font-size: .8rem; }
.wg-crea .ms-bar i { background: linear-gradient(90deg, var(--sun), var(--pink)); }
.addp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addp input { min-width: 0; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); color: var(--fg); font: inherit; font-size: .88rem; }
.addp button { grid-column: 1 / -1; }
.stages { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 0 4px; }
.stages::-webkit-scrollbar { display: none; }
.stages button { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--muted); font-size: .76rem; font-weight: 600; }
.stages button b { color: var(--fg); margin-left: 4px; }
.stages [aria-pressed="true"] { border-color: var(--teal); color: var(--fg); background: rgba(47,214,196,.12); }
.crm { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crm li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); position: relative; }
.crm li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--glass-hi); }
.crm li.st1::before { background: var(--sun); } .crm li.st2::before { background: var(--pink); } .crm li.st3::before { background: #c94dff; } .crm li.st4::before { background: var(--cash); }
.crm-who { min-width: 0; display: grid; gap: 2px; }
.crm-who b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-who span { color: var(--faint); font-size: .56rem; }
.crm .pill { min-height: 32px; padding: 0 12px; font-size: .76rem; }
.crm .rm { width: 28px; height: 28px; border-radius: 50%; background: none; border: 1px solid var(--glass-line); color: var(--faint); }
.crm .empty { display: block; grid-template-columns: none; color: var(--muted); font-size: .9rem; }
.crm .empty::before { display: none; }
.scripts { display: grid; gap: 12px; }
.sc-intro { margin: 0; font-size: .88rem; }
.sc-d { margin: 0; color: var(--faint); font-size: .8rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiers div { display: grid; gap: 4px; padding: 12px 8px; border-radius: 14px; text-align: center; background: var(--glass); border: 1px solid var(--glass-line); }
.tiers .mid { border-color: var(--pink); background: rgba(255,79,139,.1); }
.tiers span { color: var(--faint); font-size: .52rem; }
.tiers b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; }
.calc { display: grid; gap: 12px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-out div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(125,255,161,.07); border: 1px solid rgba(125,255,161,.2); }
.calc-out b { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; color: var(--cash); line-height: 1; }
.calc-out span { color: var(--faint); font-size: .52rem; }

/* ta vie */
.lifegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.life { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 18px; border: 1px solid var(--glass-line); display: grid; align-content: end; }
.life .pic { position: absolute; inset: 0; filter: grayscale(1) brightness(.35) blur(1.5px); transform: scale(1.06); transition: filter .4s; }
.life.on .pic { filter: none; transform: none; }
.life::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,5,14,.92)); }
.life-t { position: relative; z-index: 1; display: grid; gap: 4px; padding: 12px; }
.life-t b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.life-t span { color: rgba(255,255,255,.7); font-size: .72rem; }
.life-t .ms-bar { height: 5px; }
.life-lock { position: absolute; z-index: 1; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: var(--gold); }
.invite p { margin: 0 0 10px; font-size: .88rem; }
.invite .code { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px dashed rgba(47,214,196,.5); background: rgba(47,214,196,.06); }
.invite .code b { font-size: 1.1rem; letter-spacing: .14em; color: var(--teal); }
.share-card img { width: 100%; border-radius: 16px; }

/* paywall */
.pay-what { margin: 4px 0 0; color: var(--faint); font-size: .56rem; text-align: center; }
.pay-locked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay-locked li { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); text-align: left; }
.pay-locked b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1rem; color: var(--dc); }
.pay-locked span { color: var(--faint); font-size: .7rem; }
.pay-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; text-align: left; }
.pay-feats li::before { content: "✓ "; color: var(--cash); font-weight: 700; }
@media (min-width: 600px) {
  .sheet { place-items: center; padding: 20px; }
  .sheet-card { border-radius: 28px; max-height: min(88svh, 820px); }
}

/* =========================================================================
   v12 — funnel : appel de Marco, missions en direct, plan 60 jours, paiement ; app : leçon, SMS, coup, compétences
   ========================================================================= */
.fcall { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 4svh; }
.fcall .call-btns { margin-top: 36px; }
.call-hint { margin: 10px 0 0; color: var(--faint); font-size: .58rem; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.fcall.live { justify-items: stretch; text-align: left; gap: 14px; padding: 16px; border-radius: 26px; background: linear-gradient(180deg, rgba(40,26,58,.9), rgba(14,9,22,.95)); border: 1px solid var(--glass-line); }
.fcall .bubbles { max-height: 52svh; }
.bubbles .typing { display: flex; gap: 4px; padding: 12px 14px; width: max-content; }
.bubbles .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typ 1s infinite; }
.bubbles .typing i:nth-child(2) { animation-delay: .15s; } .bubbles .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { transform: translateY(-4px); opacity: .4; } }
.fcall .hexbtn { width: 100%; }

.mhud { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(90deg, rgba(247,197,72,.18), rgba(255,79,139,.1)); border: 1px solid rgba(247,197,72,.4); }
.mhud .mono { color: var(--gold); font-size: .56rem; }
.mhud b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.mhud-n { padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.35); }
.offer-prev { padding: 18px; border-radius: 20px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); font-size: 1.15rem; line-height: 1.45; font-weight: 500; }
.offer-prev b { color: var(--cash); font-weight: 700; }
.offer-prev i { font-style: normal; color: var(--faint); border-bottom: 2px dashed rgba(255,255,255,.25); }
.of-h { margin: 2px 0 -8px; color: var(--faint); font-size: .58rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 10px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); font-size: .86rem; font-weight: 500; text-align: left; transition: .15s; }
.chips button[aria-pressed="true"] { background: var(--grad); color: #1a0610; border-color: transparent; font-weight: 700; }
.chips.small button { font-size: .78rem; padding: 8px 12px; color: var(--muted); }
.fp-slots { display: grid; gap: 10px; }
.fp { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .2s; }
.fp-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; background: rgba(255,255,255,.06); }
.fp input { min-width: 0; padding: 12px 0; background: none; border: 0; color: var(--fg); font: inherit; font-size: 1rem; outline: none; }
.fp-ok { font-style: normal; color: #04211d; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--teal); transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.fp.on { border-color: var(--teal); }
.fp.on .fp-n { background: var(--teal); color: #04211d; }
.fp.on .fp-ok { transform: scale(1); }
.plan-me { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.plan-me .portrait { width: 52px; height: 52px; flex: none; border-radius: 14px; overflow: hidden; }
.plan-me b { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.3rem; }
.plan-me .mono { color: var(--faint); font-size: .56rem; }
.plan-w { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.plan-w li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); opacity: 0; transform: translateX(20px); transition: .4s cubic-bezier(.2,.8,.2,1); }
.plan-w li.in { opacity: 1; transform: none; }
.plan-w li.now { border-color: var(--pink); background: rgba(255,79,139,.1); }
.pw-n { color: var(--pink); font-size: .7rem; }
.plan-w b { display: block; font-size: .92rem; }
.plan-w span { color: var(--muted); font-size: .76rem; }
.plan-w time { color: var(--faint); font-size: .56rem; }
.plan-end { margin: 0; text-align: center; color: var(--muted); }
.plan-end b { color: var(--cash); }
.ps-hero { display: grid; justify-items: center; gap: 8px; }
.ps-hero .portrait { width: 96px; height: 96px; border-radius: 26px; overflow: hidden; box-shadow: 0 0 40px -6px var(--pink); }
.ps-hero .mono { margin: 0; color: var(--teal); font-size: .6rem; }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-stats div { display: grid; gap: 2px; padding: 10px; border-radius: 14px; text-align: center; background: var(--glass); border: 1px solid var(--glass-line); }
.ps-stats b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--cash); }
.ps-stats span { color: var(--faint); font-size: .5rem; }
.f-stage .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-stage .hexbtn { width: 100%; }
.f-stage .fine { margin: -6px 0 0; text-align: center; color: var(--faint); font-size: .74rem; }

/* leçon du jour */
.lesson { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(47,214,196,.12), rgba(255,255,255,.02)); border: 1px solid rgba(47,214,196,.3); }
.ls-top { display: flex; gap: 12px; align-items: center; }
.ls-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.ls-top .mono { margin: 0; color: var(--teal); font-size: .56rem; }
.ls-top b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.ls-l { margin: 0; font-size: 1rem; line-height: 1.4; }
.ls-a { margin: 0; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: .88rem; }
.ls-a .mono { color: var(--faint); font-size: .52rem; }
.ls-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ls-foot .textbtn { padding: 0; font-size: .82rem; }
.lesson .ok, .heist .ok { color: var(--teal); font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; }
.lesson.read { opacity: .8; }
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prog li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); }
.prog li .mono { color: var(--faint); font-size: .6rem; }
.prog li b { display: block; font-size: .88rem; }
.prog li span:not(.mono) { color: var(--muted); font-size: .74rem; }
.prog li.done { border-color: rgba(47,214,196,.4); }
.prog li.done .mono { color: var(--teal); }
.prog li.today { border-color: var(--pink); background: rgba(255,79,139,.1); }
.prog li.locked { opacity: .45; }

/* SMS */
.sms { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); }
.sms.unread { border-color: rgba(48,196,107,.5); animation: smsIn .6s cubic-bezier(.3,1.4,.5,1); }
@keyframes smsIn { from { transform: translateY(-10px); opacity: 0; } }
.sms-top { display: flex; gap: 10px; align-items: center; }
.sms-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, #30c46b, #2fd6c4); color: #04211d; }
.sms-top b { display: block; font-size: .95rem; }
.sms-top .mono { color: var(--faint); font-size: .52rem; }
.sms-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #30c46b; box-shadow: 0 0 10px #30c46b; animation: blink 1.2s steps(2) infinite; }
.sms-in, .sms-out { margin: 0; max-width: 86%; padding: 10px 14px; font-size: .92rem; line-height: 1.4; }
.sms-in { justify-self: start; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.09); }
.sms-out { justify-self: end; border-radius: 18px 18px 6px 18px; background: #2b7cff; color: #fff; }
.sms-c { display: grid; gap: 8px; }
.sms-c button { padding: 12px 14px; border-radius: 14px; text-align: left; background: rgba(43,124,255,.12); border: 1px solid rgba(43,124,255,.45); color: var(--fg); font-size: .88rem; font-weight: 500; }
.sms-c button:active { transform: scale(.98); }
.sms-res { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); color: var(--muted); font-size: .84rem; }
.sms-res b { color: var(--fg); }

/* coup de la semaine */
.heist { display: grid; gap: 12px; padding: 16px; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(247,197,72,.18), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 10px), linear-gradient(180deg, #1c1129, #0e0916); border: 1px solid rgba(247,197,72,.35); }
.hs-top .mono { margin: 0; color: var(--gold); font-size: .56rem; }
.hs-top h3 { margin: 2px 0 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.hs-g { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-g li.ok .ms-bar i { background: linear-gradient(90deg, var(--gold), var(--cash)); }
.heist .hexbtn { width: 100%; }
.heist.ready { box-shadow: 0 0 40px -10px var(--gold); }

/* compétences */
.perks2 { display: grid; gap: 12px; }
.pk-br { display: grid; gap: 6px; }
.pk-br > .mono { margin: 0; color: var(--faint); font-size: .56rem; }
.pk { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; text-align: left; background: var(--glass); border: 1px solid var(--glass-line); color: var(--muted); }
.pk b { color: var(--fg); font-size: .92rem; }
.pk span { grid-column: 1; font-size: .78rem; }
.pk em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: .58rem; color: var(--faint); }
.pk.can { border-color: var(--gold); box-shadow: 0 0 20px -10px var(--gold); }
.pk.can em { color: var(--gold); }
.pk.own { border-color: rgba(47,214,196,.5); background: rgba(47,214,196,.08); }
.pk.own em { color: var(--teal); }
.plan-w li, .plan-me, .pay-feats { text-align: left; }

/* =========================================================================
   v13 — ton business ?, recherche, mission en direct, visite guidée, grind en images
   ========================================================================= */
.hb { display: grid; gap: 12px; }
.hb-c { position: relative; overflow: hidden; height: 128px; border-radius: 22px; padding: 0; display: grid; align-content: end; text-align: left; color: #fff; background: #120c1c; border: 1px solid var(--glass-line); animation: optIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.1s + var(--i) * 80ms); }
.hb-c .pic { position: absolute; inset: 0; filter: brightness(.7) saturate(.9); transition: transform .5s, filter .3s; }
.hb-c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,5,14,.92) 20%, rgba(8,5,14,.2)); }
.hb-t { position: relative; z-index: 1; display: grid; gap: 4px; padding: 16px 18px; }
.hb-t b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.55rem; line-height: 1; }
.hb-t span { color: rgba(255,255,255,.75); font-size: .86rem; }
.hb-c .stamp { position: absolute; z-index: 2; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; background: var(--pink); color: #1a0610; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.hb-c[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 0 30px -6px var(--pink); }
.hb-c[aria-pressed="true"] .pic { filter: none; transform: scale(1.05); }
.hb-c[aria-pressed="true"] .stamp { transform: scale(1); }
.search { display: flex; gap: 10px; align-items: center; padding: 0 16px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); color: var(--muted); }
.search:focus-within { border-color: var(--teal); }
.search input { flex: 1; min-width: 0; padding: 15px 0; background: none; border: 0; color: var(--fg); font: inherit; font-size: 1rem; outline: none; }
.bq { display: grid; gap: 8px; }
.bq-i { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 16px; text-align: left; background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); }
.bq-i .pic, .bq-plus { width: 52px; height: 52px; border-radius: 12px; }
.bq-plus { display: grid; place-items: center; font-size: 1.6rem; background: var(--grad); color: #1a0610; font-weight: 700; }
.bq-i b { display: block; font-size: .95rem; }
.bq-i small { color: var(--faint); font-size: .74rem; }
.bq-i[aria-pressed="true"] { border-color: var(--pink); background: rgba(255,79,139,.1); }
.custom { display: grid; gap: 12px; }
.fld { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); color: var(--fg); font: inherit; font-size: .95rem; }
.lifepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lifepick .tile { aspect-ratio: 4 / 3; border-radius: 18px; }
.lifepick .tile > span { font-size: 1.1rem; padding: 0 12px 12px; }

/* mission en direct */
.fm { display: grid; gap: 14px; }
.fm.shake { animation: shake .4s; }
.fm-card { display: grid; gap: 14px; padding: 22px 18px; border-radius: 26px; text-align: left; background: radial-gradient(120% 70% at 50% 0%, rgba(247,197,72,.2), transparent 60%), linear-gradient(180deg, #24152f, #0e0916); border: 1px solid rgba(247,197,72,.4); }
.fm-card > .mono { margin: 0; color: var(--gold); font-size: .62rem; letter-spacing: .2em; }
.fm-card h2 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 3.4rem; line-height: .88; background: linear-gradient(180deg, #fff, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; animation: fmTitle .7s cubic-bezier(.2,.8,.2,1); }
@keyframes fmTitle { from { letter-spacing: .3em; opacity: 0; filter: blur(8px); } }
.fm-brief { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: o; }
.fm-brief li { counter-increment: o; display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.fm-brief li::before { content: counter(o); width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; background: rgba(247,197,72,.15); color: var(--gold); }
.fm-rew { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.3); font-size: .86rem; }
.fm-rew span { color: var(--faint); }
.fm-rew b { color: var(--cash); }
.fm-hud { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid rgba(247,197,72,.35); }
.fm-hud span { color: var(--gold); font-size: .56rem; }
.fm-hud b { color: #fff; font-size: .8rem; }
.fm-obj { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; }
.fm-obj li { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--faint); }
.fm-obj li i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; flex: none; }
.fm-obj li.now { color: #fff; font-weight: 600; }
.fm-obj li.now i { border-color: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 1s steps(2) infinite; }
.fm-obj li.ok { color: var(--teal); text-decoration: line-through; }
.fm-obj li.ok i { background: var(--teal); border-color: var(--teal); }
.fm-marco { display: flex; gap: 10px; align-items: flex-start; }
.fm-marco img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.fm-marco p { margin: 0; padding: 10px 14px; border-radius: 6px 18px 18px 18px; background: rgba(255,255,255,.08); font-size: .92rem; line-height: 1.4; animation: bubbleIn .35s cubic-bezier(.3,1.4,.5,1); }
.fm-marco p b { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 2px; }
.fm-in { display: grid; gap: 14px; }
.fm .hexbtn, .fm-card .hexbtn { width: 100%; }
.fm .hexbtn:disabled { opacity: .4; }
.fm-ch button.wrong { border-color: #e5484d; background: rgba(229,72,77,.15); text-decoration: line-through; opacity: .7; }
.fm-fb { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: .88rem; }
.fm-fb.good { background: rgba(125,255,161,.12); color: var(--cash); }
.fm-fb.bad { background: rgba(229,72,77,.14); color: #ff8a8f; }
.dm-prev { display: grid; gap: 6px; }
.dm-prev p { margin: 0; justify-self: end; max-width: 90%; padding: 9px 13px; border-radius: 16px 16px 6px 16px; background: rgba(43,124,255,.5); font-size: .86rem; }
.phone-dm { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: #0b0814; border: 1px solid var(--glass-line); }
.pd-top { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--glass-line); }
.phone-dm .sms-out { max-width: 92%; }
.fm-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fm-stats li { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: .9rem; animation: optIn .4s both; }
.fm-stats li:nth-child(2) { animation-delay: .1s; } .fm-stats li:nth-child(3) { animation-delay: .2s; } .fm-stats li:nth-child(4) { animation-delay: .3s; } .fm-stats li:nth-child(5) { animation-delay: .4s; }
.fm-stats span { color: var(--faint); }
.fm-stats b.cash { color: var(--cash); }
.fm-win { border-color: rgba(125,255,161,.4); background: radial-gradient(120% 70% at 50% 0%, rgba(125,255,161,.18), transparent 60%), linear-gradient(180deg, #16221f, #0e0916); }
.fm-win > .mono { color: var(--cash); }

/* visite guidée */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-hole { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(5,3,10,.78), 0 0 0 2px var(--teal), 0 0 40px 4px rgba(47,214,196,.5); transition: all .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-bub { position: fixed; display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(40,26,58,.98), rgba(14,9,22,.98)); border: 1px solid var(--glass-line); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.tour-bub.in { animation: bubbleIn .4s cubic-bezier(.3,1.4,.5,1); }
.tour-foot { display: flex; justify-content: space-between; align-items: center; }
.tour-foot .mono { color: var(--faint); font-size: .6rem; }

/* =========================================================================
   v14 — titre d'accueil sur 2 lignes, écran « je vais créer ton perso », prix
   ========================================================================= */
.entry-body { container-type: inline-size; }
.entry-title { white-space: nowrap; text-wrap: nowrap; font-size: 8.7cqi; line-height: .95; justify-self: center; text-align: center; }
.entry-title > span:last-child { font-size: 1.45em; margin-top: 2px; }
.cast { position: relative; height: min(40svh, 330px); margin: 0 -24px; overflow: hidden; }
.cast img { position: absolute; bottom: 18px; left: 50%; height: 92%; width: auto; transform: translateX(calc(-50% + var(--n) * 64px)) scale(calc(1 - (var(--n) * var(--n)) * .07)); transform-origin: bottom center;
  z-index: calc(10 - var(--n) * var(--n)); filter: brightness(0) drop-shadow(0 0 1.5px rgba(255,79,139,.9)) drop-shadow(0 0 10px rgba(255,79,139,.45)); opacity: .85; animation: castIn .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.1s + (var(--n) * var(--n)) * .12s); }
.cast img.mid { animation: castIn .8s cubic-bezier(.2,.8,.2,1) both, castReveal 4.2s ease-in-out 1s infinite; opacity: 1; }
@keyframes castIn { from { opacity: 0; translate: 0 30px; } }
@keyframes castReveal {
  0%, 15% { filter: brightness(0) drop-shadow(0 0 1.5px rgba(47,214,196,.9)) drop-shadow(0 0 12px rgba(47,214,196,.5)); }
  45%, 80% { filter: brightness(1) drop-shadow(0 0 18px rgba(255,79,139,.55)); }
  100% { filter: brightness(0) drop-shadow(0 0 1.5px rgba(47,214,196,.9)) drop-shadow(0 0 12px rgba(47,214,196,.5)); }
}
.cast-scan { position: absolute; z-index: 20; left: 18%; right: 18%; height: 3px; top: 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--teal), transparent); box-shadow: 0 0 18px 4px rgba(47,214,196,.6); animation: castScan 4.2s ease-in-out 1s infinite; }
@keyframes castScan { 0% { top: 6%; opacity: 0; } 8% { opacity: 1; } 45% { top: 92%; opacity: 1; } 55%, 100% { top: 92%; opacity: 0; } }
.cast-floor { position: absolute; left: 50%; bottom: 6px; width: 260px; height: 40px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,79,139,.5), transparent); border: 1px solid rgba(255,79,139,.5); box-shadow: 0 0 30px rgba(255,79,139,.4); }
.cast-q { position: absolute; z-index: 21; top: 10px; left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.5); border: 1px solid rgba(47,214,196,.4); color: var(--teal); font-size: .56rem; white-space: nowrap; }
.cast-sub { text-align: center; margin: -6px 0 0; }
.life.tour-spot .pic { filter: none; transform: none; }

/* v15 — barre du bas en icônes 3D */
.a-nav { height: 76px; border-radius: 28px; background: linear-gradient(180deg, rgba(22,18,30,.92), rgba(10,8,14,.96)); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 18px 40px -10px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.a-nav button { gap: 2px; color: rgba(255,255,255,.38); }
.nav-ic { width: 40px; height: 40px; object-fit: contain; filter: grayscale(1) brightness(.85) contrast(1.05); opacity: .75; transition: filter .3s, transform .3s cubic-bezier(.2,.8,.2,1.4); pointer-events: none; }
.a-nav button:not(.a-focus)::before { content: ""; position: absolute; top: 6px; left: 50%; width: 54px; height: 44px; margin-left: -27px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent); opacity: 0; transition: opacity .3s; }
.a-nav button[aria-current] .nav-ic { filter: grayscale(1) brightness(1.6) contrast(1.05) drop-shadow(0 0 10px rgba(255,255,255,.35)); transform: translateY(-2px) scale(1.08); }
.a-nav button[aria-current]::before { opacity: 1; }
.a-nav button[aria-current] { color: #fff; }
.a-nav button[aria-current]::after { bottom: 6px; }
.a-nav .a-focus { position: relative; width: 66px; height: 66px; margin: -30px auto 0; border-radius: 50%; transform: none; background: radial-gradient(circle at 50% 30%, #2a2236, #0c0a12 70%); box-shadow: 0 12px 30px -6px rgba(0,0,0,.9), 0 0 30px -8px rgba(255,79,139,.7); }
.a-nav .a-focus .nav-ic { width: 46px; height: 46px; filter: brightness(1.15) drop-shadow(0 0 8px rgba(255,154,74,.5)); }
.af-ring { position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--sun), var(--pink), #c94dff, var(--teal), var(--sun)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.a-nav .a-focus.running .af-ring { animation: spin 2.4s linear infinite; }
#appBody.touring { overflow: hidden; }
.a-nav button[aria-current] .nav-ic { opacity: 1; }

/* =========================================================================
   v16 — QG clair : prochain move + journée en 5 étapes ; téléphone ; roue d'actions
   ========================================================================= */
.move { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 18px; border-radius: 24px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,79,139,.35), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(255,154,74,.22), transparent 60%), linear-gradient(180deg, #24152f, #110b19);
  border: 1px solid rgba(255,79,139,.45); box-shadow: 0 20px 40px -20px rgba(255,79,139,.6); }
.mv-top { display: flex; justify-content: space-between; align-items: center; }
.mv-top .mono { color: var(--pink); font-size: .58rem; letter-spacing: .16em; }
.mv-n { padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.35); color: #fff !important; }
.move h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.1rem; line-height: .92; }
.move p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.move .hexbtn { width: 100%; margin-top: 4px; }
.move.done { border-color: rgba(125,255,161,.45); background: radial-gradient(120% 90% at 100% 0%, rgba(125,255,161,.25), transparent 60%), linear-gradient(180deg, #14221d, #0e0916); box-shadow: none; }
.move.done .mono { color: var(--cash); font-size: .58rem; }
.day { display: grid; gap: 10px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.day-head h3, .wk-h h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.day-head .mono, .wk-h .mono { color: var(--faint); font-size: .6rem; }
.day-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin: -4px 4px 2px; }
.day-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sun), var(--pink), var(--cash)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); overflow: hidden; transition: border-color .2s, background .2s; }
.step-h { width: 100%; display: grid; grid-template-columns: 34px 1fr 20px; gap: 12px; align-items: center; padding: 12px 14px; background: none; border: 0; color: var(--fg); text-align: left; }
.st-num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; background: rgba(255,255,255,.06); color: var(--muted); }
.st-t { display: grid; gap: 1px; min-width: 0; }
.st-t b { font-size: .95rem; }
.st-t small { color: var(--faint); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-chev { width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .25s; justify-self: center; margin-top: -4px; }
.step.open .st-chev { transform: rotate(225deg); margin-top: 4px; }
.step-b { display: none; padding: 0 14px 14px; }
.step.open .step-b { display: grid; gap: 12px; animation: optIn .35s both; }
.step.now { border-color: rgba(255,79,139,.55); background: rgba(255,79,139,.07); }
.step.now .st-num { background: var(--grad); color: #1a0610; }
.step.done .st-num { background: var(--teal); color: #04211d; }
.step.done .st-t b { color: var(--muted); }
.step-b > .lesson, .step-b > .next-card, .step-b > .sms, .step-b > .routine { border: 0; background: none; padding: 0; box-shadow: none; animation: none; }
.step-b > .next-card > p.mono:first-child { display: none; }
.wk-h { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; }
.wrail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.wrail::-webkit-scrollbar { display: none; }
.wrail > * { flex: none; width: 86%; scroll-snap-align: center; }

/* bouton téléphone */
.a-phone { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); }
.ph-badge { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b4a; border: 2px solid var(--night); box-shadow: 0 0 10px #ff3b4a; animation: blink 1.2s steps(2) infinite; }

/* téléphone façon jeu */
.phone { background: rgba(5,3,10,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.iphone { position: relative; width: min(330px, 92%); height: min(640px, 86svh); border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #3a3344, #121018); box-shadow: 0 30px 80px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.08); animation: phoneUp .45s cubic-bezier(.2,.8,.2,1); }
@keyframes phoneUp { from { transform: translateY(60%) rotate(4deg); opacity: 0; } }
.ip-notch { position: absolute; z-index: 3; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #000; }
.ip-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden auto; background: radial-gradient(120% 60% at 50% 0%, #4a1f45, transparent 60%), linear-gradient(180deg, #1b1027, #08060c); scrollbar-width: none; }
.ip-screen::-webkit-scrollbar { display: none; }
.ip-home { position: absolute; z-index: 3; bottom: 18px; left: 50%; width: 110px; height: 5px; margin-left: -55px; border-radius: 5px; border: 0; background: rgba(255,255,255,.7); }
.ip-bar { display: flex; justify-content: space-between; padding: 14px 24px 0; font-size: .58rem; color: rgba(255,255,255,.8); }
.ip-home-s { padding: 26px 18px 40px; display: grid; gap: 14px; }
.ip-clock { margin: 10px 0 0; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 4rem; line-height: 1; }
.ip-date { margin: -8px 0 6px; text-align: center; color: rgba(255,255,255,.7); font-size: .6rem; }
.ip-notif { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; text-align: left; background: rgba(255,255,255,.12); border: 0; color: #fff; backdrop-filter: blur(10px); animation: optIn .5s both; }
.ip-notif span { display: grid; min-width: 0; }
.ip-notif small { color: rgba(255,255,255,.75); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; margin-top: 6px; }
.ip-apps button { position: relative; display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: #fff; font-size: .7rem; font-weight: 500; }
.ap-ic { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.ap-ic.sm { width: 30px; height: 30px; border-radius: 8px; }
.ap-msg { background: linear-gradient(180deg, #5cf27e, #26b34a); }
.ap-act { background: linear-gradient(180deg, #ff6b8b, #c9254d); }
.ap-tro { background: linear-gradient(180deg, #ffe08a, #f0a72c); }
.ap-b { position: absolute; top: -5px; right: 14px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: .66rem; font-weight: 700; background: #ff3b4a; }
.ip-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 10px 10px; background: rgba(12,8,18,.85); backdrop-filter: blur(10px); }
.ip-head button { background: none; border: 0; color: #2b9bff; font-size: 1.8rem; line-height: 1; }
.ip-head b { text-align: center; }
.ip-body { display: grid; gap: 10px; padding: 8px 14px 50px; }
.ip-sec { margin: 6px 0 0; color: var(--faint); font-size: .56rem; }
.ip-thread { display: grid; gap: 8px; }
.sms-from { margin: 0; color: var(--faint); font-size: .56rem; }
.ip-old { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.ip-old small { color: var(--muted); }
.ip-old span { color: #6cb6ff; font-size: .78rem; }
.ip-contact { justify-items: center; text-align: center; padding-top: 18px; }
.ip-contact img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.15); }
.ip-contact h4 { margin: 4px 0 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; }
.ip-contact > .mono { margin: -6px 0 0; color: var(--faint); font-size: .56rem; }
.ip-actions { display: flex; gap: 14px; margin: 6px 0; }
.ip-actions button { display: grid; gap: 4px; justify-items: center; background: none; border: 0; color: #fff; font-size: .72rem; }
.ip-actions span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: #30c46b; }
.ip-actions button + button span { background: rgba(255,255,255,.12); }
.ip-tip { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); }
.ip-tip .mono { margin: 0; color: var(--teal); font-size: .54rem; }
.ip-tip p:last-child { margin: 0; color: var(--muted); font-size: .86rem; }

/* roue d'actions */
.awheel { position: fixed; z-index: 65; display: grid; place-items: end center; background: radial-gradient(circle at 50% calc(100% - 50px), rgba(5,3,10,.55), rgba(5,3,10,.88) 60%); border-radius: 40px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.wheel-in { position: relative; width: 300px; height: 300px; margin-bottom: -60px; }
.wh-it { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 0;
  background: radial-gradient(circle at 50% 30%, #2a2236, #0c0a12 75%); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: .62rem; font-weight: 600;
  transform: rotate(var(--a)) translateY(-118px) rotate(calc(var(--a) * -1)); animation: whIn .35s cubic-bezier(.2,.8,.2,1.3) both; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.wh-it:nth-child(2) { animation-delay: .04s; } .wh-it:nth-child(3) { animation-delay: .08s; } .wh-it:nth-child(4) { animation-delay: .12s; }
@keyframes whIn { from { transform: rotate(var(--a)) translateY(0) rotate(calc(var(--a) * -1)) scale(.3); opacity: 0; } }
.wh-it img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.wh-it:active { transform: rotate(var(--a)) translateY(-118px) rotate(calc(var(--a) * -1)) scale(.92); }
.wh-it:hover { border-color: var(--pink); box-shadow: 0 0 24px -4px var(--pink); }
.wh-x { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px; border-radius: 50%; border: 0; background: var(--grad); color: #1a0610; font-size: 1.2rem; font-weight: 700; }
.wh-t { position: absolute; left: 0; right: 0; top: -40px; text-align: center; color: rgba(255,255,255,.7); font-size: .6rem; }
.a-top { grid-template-columns: auto 1fr auto auto; }
.wheel-in { margin-bottom: -96px; }
.wh-it { transform: rotate(var(--a)) translateY(-128px) rotate(calc(var(--a) * -1)); }
.wh-it:active { transform: rotate(var(--a)) translateY(-128px) rotate(calc(var(--a) * -1)) scale(.92); }
.wh-t { top: -6px; }
.wh-it { width: 86px; height: 86px; margin: -43px; transform: rotate(var(--a)) translateY(-150px) rotate(calc(var(--a) * -1)); }
.wh-it:active { transform: rotate(var(--a)) translateY(-150px) rotate(calc(var(--a) * -1)) scale(.92); }
.wh-t { top: -50px; font-size: .64rem; color: #fff; letter-spacing: .2em; }
.wheel-in { margin-bottom: -104px; }
.awheel { background: radial-gradient(circle at 50% calc(100% - 50px), rgba(255,79,139,.18), rgba(5,3,10,.9) 55%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* v18 — offre libre, carte d'identité de l'âge */
.of-f { display: grid; gap: 6px; }
.of-f > .mono { color: var(--faint); font-size: .58rem; }
.of-f em { font-style: normal; color: rgba(255,255,255,.3); }
.of-f input, .of-f textarea { padding: 13px 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); color: var(--fg); font: inherit; font-size: .98rem; resize: none; }
.of-f input:focus, .of-f textarea:focus { outline: none; border-color: var(--teal); }
.fm-in .chips.small { margin-top: -6px; }
.of-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.of-tabs button { padding: 10px 6px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
.of-tabs [aria-pressed="true"] { background: var(--grad); color: #1a0610; }
.idc { position: relative; overflow: hidden; padding: 14px; border-radius: 20px; display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 40%, rgba(47,214,196,.1)), linear-gradient(180deg, #2a1838, #130c1d);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 40px -18px rgba(0,0,0,.9), 0 0 40px -18px var(--pc); animation: idIn .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: center; }
@keyframes idIn { from { opacity: 0; transform: perspective(600px) rotateX(35deg) translateY(30px); } }
.idc-top { display: flex; justify-content: space-between; color: var(--teal); font-size: .54rem; letter-spacing: .16em; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.idc-body { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.idc-ph { width: 96px; height: 116px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--pc), #120c1c 75%); border: 1px solid rgba(255,255,255,.15); }
.idc-ph img { width: 100%; height: 100%; object-fit: cover; }
.idc dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.idc dt { color: var(--faint); font-size: .52rem; }
.idc dd { margin: 0; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-age { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem !important; line-height: 1; color: #fff; text-shadow: 0 0 18px var(--pink); }
.idc-age.pop { animation: agePop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes agePop { from { transform: scale(1.5); color: var(--sun); } }
.idc-holo { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 48%, rgba(47,214,196,.15) 52%, transparent 60%); animation: holo 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes holo { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.idc-stamp { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border: 2px solid var(--cash); border-radius: 8px; color: var(--cash); font-size: .7rem; letter-spacing: .14em; transform: rotate(-12deg) scale(2); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.idc-stamp.on { transform: rotate(-12deg) scale(1); opacity: .9; }
.idc-stamp { right: auto; left: 22px; bottom: 18px; }

/* v19 — pas de zoom sur téléphone (iOS zoome sur les champs < 16 px), paywall sans chevauchement */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, textarea, select { font-size: 16px !important; }
.pay-card { grid-auto-rows: max-content; align-content: start; }
.pay-hero { height: 120px; flex: none; }
.stg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stg button { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; padding: 0; display: grid; align-content: end; text-align: left; background: #120c1c; border: 1px solid var(--glass-line); color: #fff; }
.stg .pic { position: absolute; inset: 0; filter: brightness(.6) saturate(.85); transition: filter .3s, transform .4s; }
.stg button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,5,14,.95)); }
.stg span { position: relative; z-index: 1; padding: 0 8px 9px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: .95rem; line-height: 1; }
.stg [aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 0 24px -6px var(--pink); }
.stg [aria-pressed="true"] .pic { filter: none; transform: scale(1.06); }
.of-ex { display: grid; gap: 8px; }
.of-ex button { padding: 11px 14px; border-radius: 14px; text-align: left; background: var(--glass); border: 1px dashed rgba(255,255,255,.18); color: var(--muted); font-size: .86rem; line-height: 1.35; }
.of-ex button:active { border-color: var(--teal); color: var(--fg); }
.plan-price { white-space: nowrap; font-size: clamp(1.45rem, 6.6vw, 1.9rem) !important; } .plan-price small { font-size: .5em; }

/* v20 — casting visible tout de suite : silhouettes sans délai, le perso du milieu se révèle */
.cast img { animation: castIn .35s ease-out both; animation-delay: 0s; }
.cast img.mid { animation: castIn .35s ease-out both, castReveal 4.2s ease-in-out .3s infinite; }
@keyframes castIn { from { opacity: 0; } }

/* v20 — paiement en page entière (plus de fenêtre flottante) */
.paywall { inset: auto; padding: 0; place-items: stretch; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: inherit; overflow: hidden; }
body.mode-device .paywall { border-radius: 40px; }
@media (max-width: 600px) { body.mode-device .paywall { border-radius: 0; } }
.pay-card { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 0;
  background: radial-gradient(120% 50% at 50% 0%, rgba(255,79,139,.28), transparent 60%), radial-gradient(90% 40% at 50% 100%, rgba(255,154,74,.14), transparent 70%), var(--night); animation: payPage .45s cubic-bezier(.2,.8,.2,1); }
@keyframes payPage { from { opacity: 0; transform: translateY(6%); } }
.pay-card [data-action="pay"] { position: sticky; bottom: 0; z-index: 5; margin-top: 4px; box-shadow: 0 -24px 30px 10px var(--night); }
.pay-card #payLater { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.pay-card .pay-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }

/* v21 — « je vais créer ton perso » : scène peinte, scan qui balaie */
.cre { position: relative; overflow: hidden; height: min(48svh, 400px); margin: 0 -8px; border-radius: 28px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 50px -20px rgba(47,214,196,.5); animation: creIn .5s ease-out both; }
@keyframes creIn { from { opacity: 0; transform: scale(.97); } }
.cre-img { position: absolute; inset: 0; animation: kenburns 9s ease-out both; }
.cre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,5,14,.35), transparent 30%, transparent 70%, rgba(8,5,14,.7)); pointer-events: none; }
.cre-scan { position: absolute; z-index: 2; left: 22%; right: 22%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #9fffe9, transparent); box-shadow: 0 0 22px 6px rgba(47,214,196,.55); animation: castScan 3.2s ease-in-out .4s infinite; }
.cre .cast-q { z-index: 3; top: 14px; }
.cre-dot { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b4a; box-shadow: 0 0 10px #ff3b4a; animation: blink 1s steps(2) infinite; }
.cre-img { object-position: 50% 40%; }
.cre-scan { left: 30%; right: 14%; animation: creScan 3s ease-in-out .4s infinite; }
@keyframes creScan { 0% { top: 20%; opacity: 0; } 10% { opacity: 1; } 50% { top: 72%; opacity: 1; } 60%, 100% { top: 72%; opacity: 0; } }
/* tuto : pendant la transition, on assombrit sans cadrer quoi que ce soit */
.tour.moving { background: rgba(5,3,10,.78); }
.tour.moving .tour-hole { opacity: 0; transition: none; }
.tour-hole { transition: opacity .25s, left 0s, top 0s, width 0s, height 0s; }

/* v24 — Hustle City : logo en deux mots */
.logo.xl { font-size: clamp(2.6rem, 12vw, 4.6rem); }
.entry-top .logo { font-size: 1.3rem; }

/* v25 — bouton de langue */
.lang-btn { height: 34px; min-width: 40px; padding: 0 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: #fff; font-size: .62rem; letter-spacing: .12em; }
.entry-tags { flex-wrap: wrap; row-gap: 6px; }

/* v26 — 1re mission : Le Pacte */
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-c { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 20px; padding: 0; display: grid; align-content: end; text-align: left; color: #fff; background: #120c1c; border: 1px solid var(--glass-line); animation: optIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.1s + var(--i) * 80ms); }
.pk-c .pic { position: absolute; inset: 0; filter: brightness(.65) saturate(.9); transition: transform .5s, filter .3s; }
.pk-c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,5,14,.95)); }
.pk-t { position: relative; z-index: 1; display: grid; gap: 3px; padding: 12px; }
.pk-t b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.pk-t small { color: rgba(255,255,255,.72); font-size: .74rem; }
.pk-c .stamp { position: absolute; z-index: 2; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; background: var(--pink); color: #1a0610; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.pk-c[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 0 30px -6px var(--pink); }
.pk-c[aria-pressed="true"] .pic { filter: none; transform: scale(1.06); }
.pk-c[aria-pressed="true"] .stamp { transform: scale(1); }
.pact { position: relative; display: grid; gap: 10px; padding: 20px 18px 16px; border-radius: 6px; color: #2a1a3a; text-align: left;
  background: linear-gradient(180deg, #fbf3e4, #efe2c8); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), inset 0 0 40px rgba(160,120,60,.25); transform: rotate(-.6deg); animation: pactIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pactIn { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }
.pact-k { margin: 0; color: #8a6a4a; font-size: .52rem; letter-spacing: .16em; }
.pact h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: .9; color: #1a1030; }
.pact p { margin: 0; font-size: .92rem; line-height: 1.45; }
.pact b { color: #c2185b; }
.sig { position: relative; height: 110px; margin-top: 6px; border-bottom: 2px dashed rgba(42,26,58,.35); }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-ph { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: rgba(42,26,58,.4); font-size: .62rem; pointer-events: none; }
.sig-x { position: absolute; right: 0; top: 0; padding: 4px 8px; border: 0; border-radius: 8px; background: rgba(42,26,58,.08); color: #6a5a7a; font-size: .52rem; }
.pact-foot { display: flex; justify-content: space-between; color: #8a6a4a; font-size: .52rem; }
.pact-stamp { position: absolute; right: 16px; top: 44%; padding: 6px 14px; border: 4px solid #e0245e; border-radius: 10px; color: #e0245e; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.2rem; letter-spacing: .06em; transform: rotate(-14deg) scale(3); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.pact.sealed .pact-stamp { animation: stampIn .45s cubic-bezier(.3,1.4,.5,1) forwards; }
.pact.sealed { animation: pactShake .5s ease .3s; }
@keyframes stampIn { to { transform: rotate(-14deg) scale(1); opacity: .9; } }
@keyframes pactShake { 20% { transform: translate(-6px, 3px) rotate(-1.5deg); } 40% { transform: translate(5px, -2px) rotate(.5deg); } 60% { transform: translate(-3px, 1px) rotate(-1deg); } 100% { transform: rotate(-.6deg); } }
.pact-mini { width: 60%; justify-self: center; padding: 8px 14px; border-radius: 10px; background: #fbf3e4; }
.pact-card .pc-l { margin: 0 0 10px; font-size: .95rem; }
.pc-sig { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: #fbf3e4; }
.pc-sig img { height: 46px; max-width: 60%; }
.pc-sig .mono { color: #8a6a4a; font-size: .54rem; }
