/* Polices hébergées sur le site (licence SIL OFL) : pas d'appel à Google Fonts, donc pas d'adresse IP envoyée à Google.
   Archivo est une police variable : un seul fichier couvre les graisses 500 à 800. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/anton-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/anton-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Direction « vestiaire » : noir et blanc franc, capitales condensées très grasses,
   un seul accent volt, boutons en pilule, chiffres de chrono. */
:root {
  --black: #0e0e0e; --carbon: #1b1b1b; --plate: rgba(14,14,14,.82); --rule: rgba(255,255,255,.16);
  --white: #ffffff; --ink: #ffffff; --dim: #9b9b9b; --paper: #f5f5f3; --paper-ink: #111111; --paper-dim: #6f6f6f;
  --volt: #d7ff1f; --hot: #ff6a13; --grad: #d7ff1f; --grad-ink: #0e0e0e; --card: #15181c;
  --perfect: #d7ff1f; --good: #ffffff; --ok: #ff6a13; --norep: #ff3030;
  --display: "Anton", "Oswald", "Impact", "Arial Narrow Bold", sans-serif;
  --hud: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--black); color: var(--ink); font-family: var(--hud); overflow: hidden; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
button:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.screen { position: fixed; inset: 0; display: none; }
.screen.on { display: block; }
.kicker { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.pill { border-radius: 999px; padding: 16px 28px; font-weight: 700; font-size: 16px; letter-spacing: .01em; transition: transform .15s, background .15s; }
.pill:active { transform: scale(.97); }
.pill.primary { background: var(--white); color: var(--black); }
.pill.primary:hover { background: var(--volt); }
.pill.outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.pill.dark { background: var(--paper-ink); color: var(--white); }
.pill.light-outline { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px #c9c9c9; }

/* ---------- Accueil ---------- */
/* En-tête, grande carte du défi, cartes de la semaine, exercices du tour ; barre d'onglets en bas sur téléphone. */
.home { height: 100%; overflow-y: auto; background: radial-gradient(70% 45% at 90% 0%, rgba(215,255,31,.07), transparent 70%), #0b0d10; }
.mark { display: grid; place-items: center; width: .86em; height: .86em; flex: none; border-radius: 50%; background: var(--volt); color: var(--black); text-shadow: none; }
.mark span { font-size: .6em; line-height: 1; }
.app { display: flex; flex-direction: column; gap: 14px; min-height: 100%;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-top .ld-logo { font-size: 30px; }
.app-top .ld-logo .mark { width: 32px; height: 32px; font-size: 28px; }
.app-nav { display: none; }
.app-pills { display: flex; align-items: center; gap: 8px; margin-left: auto; position: relative; }
.chip-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--rule); color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; }
.chip-pill svg { flex: none; }
.chip-pill .lab { display: none; font-weight: 700; color: var(--dim); }
.streak.off svg { opacity: .55; }
.me { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); font-family: var(--display); font-size: 18px; }
.me-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; min-width: 220px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), 0 16px 40px rgba(0,0,0,.5); }
.me-menu > * { padding: 10px 12px; border-radius: 9px; background: none; text-align: left; font: 700 14px var(--hud); color: var(--white); }
.me-menu button:hover { background: rgba(255,255,255,.07); }
.me-menu .energy-next { color: var(--dim); font-size: 12px; }
.me-menu .energy-next:empty { display: none; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sec-title { margin: 0; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.sec-dates { flex: none; font-weight: 700; font-size: 13px; color: var(--dim); }
.sec-back { flex: none; padding: 4px 0; background: none; color: var(--volt); font: 800 13px var(--hud); text-decoration: underline; text-underline-offset: 3px; }
.kick { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.kick .r { font-family: var(--display); font-size: 18px; letter-spacing: 0; color: var(--volt); line-height: 1; }

/* Carte du défi */
.week { display: grid; gap: 14px; }
.hero { --a: #e2590c; --z: #54200a; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, var(--a), var(--z) 30%, #121417 47%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .6s; }
.hero-art { position: relative; height: clamp(250px, 76vw, 340px); overflow: hidden; }
#mCanvas { position: absolute; left: 0; top: -32%; width: 100%; height: 165%; } /* téléphone : cadré sur le haut du corps */
.hero-art::after { content: ''; position: absolute; inset: 40% 0 0; z-index: 2; background: linear-gradient(transparent, #121417); pointer-events: none; }
.hero-in { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 12px; margin-top: -84px; padding: 0 20px 20px; }
.hero-t { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 15vw, 64px); line-height: .92; text-transform: uppercase; text-wrap: balance; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; font-size: 14px; color: #e6e6e6; }
.hero-meta b { font-weight: 800; color: var(--white); }
.hero-meta .rate { font-size: 14px; }
.reps-chip { padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.hero-cue { display: none; margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: #c9ced3; }
.hero-cue .cur { color: var(--volt); font-weight: 800; }
.hero-ctas { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.btn-play, .btn-demo { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 18px; transition: transform .15s, background .15s; }
.btn-play { background: var(--volt); color: var(--black); }
.btn-play:hover { background: var(--white); }
.btn-play:disabled { background: rgba(255,255,255,.12); color: var(--dim); cursor: not-allowed; }
.btn-demo { background: rgba(255,255,255,.1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-demo:hover { background: rgba(255,255,255,.16); }
.btn-play:active, .btn-demo:active { transform: scale(.97); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 28px; font-weight: 700; font-size: 14px; color: #e6e6e6; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--white); }
.check input:checked + i { background: var(--volt); }
.check input:checked + i::after { content: ''; width: 10px; height: 6px; margin-top: -2px; border: solid var(--black); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.check input:focus-visible + i { outline: 3px solid var(--volt); outline-offset: 2px; }
.check .rec-note { display: none; color: var(--dim); font-weight: 500; }
.wide { display: none; }

/* Cartes de la semaine : classement et série */
.week-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.week-cards::-webkit-scrollbar, .ex-row::-webkit-scrollbar { display: none; }
.wcard { position: relative; flex: 1 1 auto; scroll-snap-align: start; overflow: hidden; border-radius: 18px; color: var(--white); text-decoration: none; }
/* Athlète de la semaine : le prénom en très grand, un « 1 » géant en filigrane, le score en volt. */
.wcard.lead { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: 20px 22px 22px;
  background: radial-gradient(120% 70% at 100% 0%, rgba(215,255,31,.07), transparent 60%), #181a15; box-shadow: inset 0 0 0 1px var(--rule); }
.wcard.lead:hover { box-shadow: inset 0 0 0 1.5px rgba(215,255,31,.45); }
.lead-no { position: absolute; z-index: 0; top: -40px; right: 18px; font-family: var(--display); font-size: 330px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(215,255,31,.26); pointer-events: none; }
.lead-top, .lead-who, .lead-score { position: relative; z-index: 1; }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wcard .kick { font-size: 11px; }
.lead-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--volt); color: var(--black); font-weight: 800; font-size: 14px; }
.lead-who { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.lead-lab { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #9fa39a; }
/* Le prénom remplit la largeur : --fit = 1 / largeur du prénom écrit en Anton à 1 px (mesurée par le script). */
.lead-name { font-family: var(--display); font-weight: 400; line-height: .9; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(30px, calc((100cqw - 60px) * var(--fit, .4)), 104px); }
.lead-score { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.lead-pts { display: flex; align-items: baseline; gap: 8px; }
.lead-pts b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 18cqw, 64px); line-height: 1; color: var(--volt); }
.lead-pts span { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: #c9ced3; }
.lead-pts b:empty + span { display: none; }
.wc-sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 13px; color: #c9ced3; }
.wc-sub .rate { font-size: 14px; }
.wc-sub:empty { display: none; }
.wcard.lead.empty .lead-badge { display: none; }
.wcard.lead.empty .lead-lab#mLeaderLab { color: #c9ced3; letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 700; }

/* Exercices du tour */
.ex-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.excard { --card-w: 140px; position: relative; flex: none; width: var(--card-w); scroll-snap-align: start; display: block; aspect-ratio: 140 / 206; overflow: hidden; padding: 0; border-radius: 14px; background: #15181c; color: var(--white); text-align: left; box-shadow: inset 0 0 0 1px var(--rule); }
.excard canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.excard::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8,9,11,.92) 70%); }
.excard.sel { box-shadow: inset 0 0 0 2px var(--volt); }
.excard:hover canvas { transform: scale(1.03); }
.excard canvas { transition: transform .3s; }
.sess { display: grid; gap: 18px; }
.sess-sec .sec-head { margin: 0 0 10px; }
.sess-sec .sec-title { font-size: 18px; }
.ex-in { position: absolute; z-index: 1; left: 12px; right: 10px; bottom: 11px; display: flex; flex-direction: column; gap: 3px; }
.ex-n { font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ex-n b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--volt); margin-right: 3px; }
.ex-t { font-family: var(--display); font-size: 21px; line-height: .95; text-transform: uppercase; }
.ex-s { font-weight: 600; font-size: 12px; line-height: 1.3; color: #c9ced3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tip { color: var(--dim); font-size: 12px; line-height: 1.4; margin: 6px 0 0; max-width: 90ch; }

/* Barre d'onglets (téléphone) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(11,13,16,.96); box-shadow: 0 -1px 0 rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: #9b9b9b; text-decoration: none; font-weight: 700; font-size: 11px; }
.tabbar a[aria-current="page"] { color: var(--volt); }
body.tabs .screen.on > .home { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

/* Étoiles */
.rate { display: inline-flex; gap: 1px; font-size: 12px; line-height: 1; color: rgba(255,255,255,.3); white-space: nowrap; }
.rate i { font-style: normal; }
.rate i.on { color: var(--volt); }

@media (min-width: 900px) {
  .app { gap: 18px; padding: 26px 40px 32px; max-width: 1480px; margin: 0 auto; }
  .app-top { gap: 34px; }
  .app-top .ld-logo { font-size: 40px; }
  .app-top .ld-logo .mark { width: 40px; height: 40px; font-size: 36px; }
  .app-nav { display: flex; gap: 26px; }
  .app-nav a { padding: 6px 0; color: #c9ced3; text-decoration: none; font-weight: 700; font-size: 16px; }
  .app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--white); }
  .app-nav a[aria-current="page"] { font-weight: 800; }
  .chip-pill { height: 40px; padding: 0 16px; }
  .chip-pill .lab { display: inline; }
  .me { width: 42px; height: 42px; }
  .sec-title { font-size: 24px; }
  .week { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
  .wcard.lead { min-height: 0; padding: 24px 26px 26px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 460px; background: linear-gradient(100deg, #121417 18%, var(--z) 52%, var(--a)); }
  .hero-art { grid-column: 2; grid-row: 1; height: auto; }
  #mCanvas { top: 0; height: 100%; }
  .hero-art::after { display: none; }
  .hero-in { grid-column: 1; grid-row: 1; justify-content: center; margin: 0; padding: 26px 0 26px 44px; gap: 14px; }
  .hero-t { font-size: clamp(64px, 7vw, 104px); }
  .hero-cue { display: block; }
  .hero-ctas { display: flex; }
  .btn-play { min-width: 136px; }
  .check .rec-note, .wide { display: inline; }
  .week-cards { display: contents; }
  .ex-row { margin: 0; padding: 0 0 4px; gap: 14px; }
  .excard { --card-w: 190px; aspect-ratio: 180 / 268; border-radius: 16px; }
  /* Une section par catégorie, chacune sur toute la largeur, cartes en rangée. */
  #homeSections { gap: 30px; }
  .sess-sec .sec-title { font-size: 20px; }
  .ex-t { font-size: clamp(22px, 2vw, 30px); }
  .ex-s { font-size: 13px; }
  .tabbar { display: none; }
  .week-label { display: none; }
  body.tabs .screen.on > .home { padding-bottom: 0; }
}

/* Énergie et boutique */
.earned { margin-top: 2px; font-weight: 800; font-size: 13px; color: var(--volt); }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 120px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: var(--white); color: var(--black); font-weight: 800; font-size: 14px; text-align: center; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.shop { min-height: 100%; box-sizing: border-box; padding: calc(max(12px, env(safe-area-inset-top)) + 56px) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.shop h2 { margin: 4px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 15vw, 96px); text-transform: uppercase; line-height: .9; }
.shop h3 { margin: 22px 0 10px; font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; }
.shop-bal { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-bal span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 800; font-size: 14px; }
.shop-bal i { font-style: normal; color: var(--volt); }
.shop-help { margin: 10px 0 0; color: var(--dim); font-size: 13px; line-height: 1.4; max-width: 70ch; }
.shop-grid { display: grid; gap: 10px; }
.shop-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--rule); }
.shop-card.soon { opacity: .6; }
.shop-card .info { flex: 1; min-width: 0; }
.shop-card b { display: block; font-size: 15px; font-weight: 800; }
.shop-card small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.shop-act { flex: none; min-width: 84px; padding: 9px 12px; border-radius: 10px; background: var(--grad); color: var(--grad-ink); font: 800 13px var(--hud); }
.shop-act.off { background: rgba(255,255,255,.1); color: var(--dim); }
.shop-play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); font-size: 13px; }
@media (min-width: 900px) {
  .best-row { flex-direction: row; align-items: center; gap: 16px; padding-top: 0; }
  .shop { padding-left: 30px; padding-right: 30px; max-width: 1100px; margin: 0 auto; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Landing et connexion */
.ld { display: grid; gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.ld-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ld-card { padding: 18px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.ld-card h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; }
.ld-hero { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--black); box-shadow: inset 0 0 0 1px var(--rule); text-align: center; }
.ld-hero h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.02; text-transform: uppercase; text-align: left; }
.ld-hero p { margin: 8px 0 14px; font-size: 14px; line-height: 1.4; color: #c9ced3; text-align: left; }
.ld-hero small { display: block; margin-top: 9px; font-size: 12px; color: var(--dim); }
.ld-cta { width: 100%; padding: 15px; border-radius: 12px; background: var(--grad); color: var(--grad-ink); font: 800 18px var(--hud); box-shadow: 0 0 24px rgba(215,255,31,.3); cursor: pointer; }
.ld-cta:hover { filter: brightness(1.1); }
.ld-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.ld-list li { display: flex; align-items: center; gap: 11px; }
.ld-list i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(215,255,31,.1); color: var(--volt); font-style: normal; }
.ld-list b, .ld-news b { display: block; font-size: 15px; }
.ld-list span, .ld-news span { display: block; font-size: 12px; line-height: 1.3; color: var(--dim); }
.ld-foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.ld-foot a { color: #c9ced3; font-size: 13px; font-weight: 700; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-steps li { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.ld-steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: var(--grad-ink); font-family: var(--display); font-weight: 400; }
.ld-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ld-news li { display: flex; gap: 12px; align-items: center; }
.ld-news img { flex: none; width: 74px; height: 62px; object-fit: contain; border-radius: 9px; background: linear-gradient(135deg, #7fa000, #2a3700); }
.ld-news time { font-size: 11px; font-weight: 800; color: var(--volt); }
.ld-week { background: linear-gradient(165deg, #2a3700, var(--card) 68%); }
.ld-pill { display: inline-block; margin-bottom: 9px; padding: 4px 10px; border-radius: 8px; background: var(--white); color: var(--black); font-weight: 800; font-size: 12px; }
.ld-week h3 { font-size: 40px; }
.ld-art { display: grid; place-items: center; height: 150px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #b0266f, #46102d); }
.ld-art img { width: 92%; height: 92%; object-fit: contain; }
.ld-checks { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.ld-checks li::before { content: '✓'; margin-right: 8px; color: var(--volt); font-weight: 800; }
.ld-lead { margin-bottom: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.ld-lead span { display: block; font-size: 12px; color: var(--dim); }
.ld-lead b { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; }
.ld-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(12,15,20,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.ld-modal.hidden { display: none; }
.ld-box { width: min(100%, 460px); padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), 0 20px 60px rgba(0,0,0,.5); }
.ld-top { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.ld-top button { background: none; color: var(--white); font: 700 14px var(--hud); cursor: pointer; }
.ld-top h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.ld-box > p { margin: 14px 0 10px; font-size: 15px; }
.ld-terms { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--black); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13px; line-height: 1.45; cursor: pointer; }
.ld-terms input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: #d7ff1f; }
.ld-terms a { color: var(--volt); }
.ld-google { display: grid; place-items: center; min-height: 44px; margin-top: 12px; }
#ldGoogle:empty { display: none; }
.ld-gdis { width: 100%; padding: 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--dim); font: 700 14px var(--hud); }
.ld-err { margin: 10px 0 0; color: var(--norep); font-size: 13px; font-weight: 700; text-align: center; }
.shop p { font-size: 15px; line-height: 1.5; color: #c9ced3; max-width: 70ch; }
.ld-out { background: none; color: var(--dim); cursor: pointer; font-family: var(--hud); }
@media (min-width: 900px) {
  .ld { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px; max-width: 1400px; margin: 0 auto; padding: 28px; }
  .ld-col { gap: 18px; }
  .ld-card { padding: 24px; }
}

/* Landing : le personnage en grand derrière des cartes en verre sombre. */
#landing .home { background: #0b0d10; }
.land-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; --tint: #7fa000;
  background: radial-gradient(45% 55% at 50% 45%, color-mix(in srgb, var(--tint) 42%, transparent), transparent 72%), #0b0d10; transition: background .8s; }
.land-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 80% at 50% 45%, transparent 35%, rgba(11,13,16,.85)); }

/* Série, installation, tutoriel, mesures */
.streak-line { margin-top: 2px; font-weight: 800; font-size: 13px; color: #ffb547; }
.install { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; background: #15181c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); font-size: 13px; font-weight: 700; }
.install span { flex: 1; }
.install .pill { flex: none; padding: 8px 14px; font-size: 13px; }
.install-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: none; color: var(--dim); cursor: pointer; }
.install > svg { flex: none; color: var(--volt); }
.tip-link { background: none; padding: 0; color: var(--volt); font: 800 12px var(--hud); text-decoration: underline; cursor: pointer; }
.tele { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.35; color: #d6d6d6; cursor: pointer; }
.tele input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #d7ff1f; }
.tele small { color: var(--dim); }
.tuto { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgba(8,9,11,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tuto.hidden { display: none; }
.tuto-box { width: min(100%, 440px); padding: 20px; border-radius: 22px; background: #15181c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); text-align: center; }
.tuto-kick { font-weight: 800; font-size: 11px; letter-spacing: .16em; color: var(--volt); text-transform: uppercase; }
.tuto-stage { position: relative; margin: 12px 0; aspect-ratio: 320 / 190; border-radius: 16px; background: radial-gradient(70% 70% at 50% 60%, #22261c, #0e0e0e); overflow: hidden; }
.tuto-s { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.tuto-s.on { opacity: 1; }
.tuto-s.on .t-phone { animation: tPhone 1.6s cubic-bezier(.2,.9,.3,1.2) both; transform-box: fill-box; }
@keyframes tPhone { 0% { transform: translate(60px, 104px) rotate(-90deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(89px, 70px); } }
.tuto-s.on .t-walk { animation: tWalk 2.4s ease-in-out infinite alternate; }
@keyframes tWalk { from { transform: translate(110px, 158px); } to { transform: translate(250px, 158px); } }
.tuto-s.on .t-ok { animation: tOk 1.4s ease-out infinite; transform-origin: 250px 40px; }
@keyframes tOk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.tuto h3 { margin: 4px 0 4px; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.tuto p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: #c9ced3; min-height: 40px; }
.tuto-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.tuto-dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.tuto-dots i.on { background: var(--volt); }
.tuto-btns { display: flex; gap: 10px; justify-content: center; }
.tuto-btns .pill { padding: 12px 20px; }
.tuto-btns .pill.light-outline { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.res-body .pill.dark#btnShare { background: var(--volt); color: var(--black); }
@media (prefers-reduced-motion: reduce) { .tuto-s.on .t-phone, .tuto-s.on .t-walk, .tuto-s.on .t-ok { animation: none; } }

/* Landing : barre de navigation, grand visuel plein écran, sections en dessous */
.ld-nav { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 18px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: rgba(14,14,14,.92); box-shadow: 0 1px 0 rgba(255,255,255,.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ld-logo { display: flex; align-items: center; gap: 7px; color: var(--white); text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; }
.ld-logo em { font-style: normal; color: var(--volt); }
.ld-logo .mark { width: 30px; height: 30px; font-size: 26px; box-shadow: none; }
.ld-links { display: none; gap: 4px; }
.ld-links button, .ld-links a { padding: 6px 10px; background: none; color: #d6d6d6; font: 700 12px var(--hud); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.ld-links button:hover, .ld-links a:hover { color: var(--white); }
.ld-acts { display: flex; gap: 8px; margin-left: auto; }
.ld-btn-o, .ld-btn { padding: 9px 14px; border-radius: 8px; font: 800 12px var(--hud); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ld-btn-o { background: none; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.ld-btn { background: var(--volt); color: var(--black); }
.ld-btn-o, .ld-btn { white-space: nowrap; }
@media (max-width: 420px) { .ld-btn-o { display: none; } }
.ld-hx { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: flex-end; overflow: hidden; }
.ld-hx .land-bg::after { background: linear-gradient(90deg, rgba(11,13,16,.9), rgba(11,13,16,.35) 55%, rgba(11,13,16,.1)), linear-gradient(0deg, #0b0d10 3%, rgba(11,13,16,.6) 40%, transparent 70%); }
#lCanvas { position: absolute; left: 6%; top: 4%; width: 88%; height: 74%; }
.ld-hx-in { position: relative; z-index: 3; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 42px; }
.ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 700; color: #e6e6e6; }
.ld-scale { display: inline-flex; gap: 4px; }
.ld-scale i { padding: 3px 7px; border-radius: 6px; background: rgba(11,13,16,.75); box-shadow: inset 0 0 0 1px var(--rule); font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ld-hx h1 { margin: 16px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 15vw, 128px); line-height: .92; letter-spacing: .03em; text-transform: uppercase; }
.ld-hx p { margin: 0 0 22px; max-width: 34ch; font-size: clamp(16px, 4.4vw, 22px); line-height: 1.35; color: #e6e6e6; }
.ld-hx-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-white, .ld-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 8px; font: 700 17px var(--hud); cursor: pointer; }
.ld-white { background: var(--white); color: var(--black); }
.ld-white:hover { background: var(--volt); }
.ld-ghost { background: none; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.ld-ghost:hover { background: rgba(255,255,255,.08); }
.ld-hx small { display: block; margin-top: 12px; font-size: 12px; color: var(--dim); }
@media (min-width: 900px) {
  .ld-nav { padding: 14px 40px; }
  .ld-links { display: flex; }
  .ld-hx { min-height: calc(100vh - 68px); }
  #lCanvas { left: 42%; top: 2%; width: 54%; height: 96%; }
  .ld-hx-in { padding: 0 40px 70px; }
}

/* ---------- Jeu ---------- */
#stage { background: var(--black); overflow: hidden; }
.backdrop { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 40%, #232323, var(--black)); }
.bgword { font-family: var(--display); text-transform: uppercase; font-size: clamp(120px, 38vw, 380px); line-height: .8; text-align: center;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.08); transform: rotate(-90deg); white-space: nowrap; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); background: #000; }
#shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 28%, transparent 72%, rgba(0,0,0,.5)); }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.squat-clip { position: absolute; display: none; opacity: 0; pointer-events: none; }
.squat-clip.on { display: block; }
.squat-clip.ready { opacity: 1; }
#stage.shake { animation: shake .25s; }
@keyframes shake { 25% { transform: translate(-5px, 2px); } 50% { transform: translate(4px, -3px); } 75% { transform: translate(-3px, -1px); } }
.hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.hud button { pointer-events: auto; }
.bar-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.quit { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plate); color: var(--white); font-size: 16px; box-shadow: inset 0 0 0 1px var(--rule); }
.demo-tag { justify-self: end; font-weight: 800; font-size: 11px; letter-spacing: .16em; color: var(--black); background: var(--volt); padding: 5px 10px; border-radius: 999px; }
.plate { background: var(--plate); box-shadow: inset 0 0 0 1px var(--rule); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.round-chip { font-weight: 800; font-size: 11px; letter-spacing: .18em; color: var(--volt); }
.ex-name { font-family: var(--display); font-size: clamp(24px, 7vw, 38px); text-transform: uppercase; line-height: .95; margin-top: 2px; }
.timer { position: relative; width: 76px; height: 76px; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer .t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.timer.urgent .t { color: var(--norep); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.scorebox { justify-self: end; text-align: right; }
.score { font-family: var(--display); font-size: clamp(34px, 10vw, 52px); line-height: .9; }
.mult { display: inline-block; font-weight: 800; font-size: 14px; color: var(--black); background: var(--volt); padding: 3px 10px; margin-top: 4px; border-radius: 999px; }
.mult.x1 { background: rgba(255,255,255,.14); color: var(--dim); }
.strip { margin-top: 10px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 18px; }
.reps { font-family: var(--display); font-size: 40px; line-height: .9; }
.reps small { display: block; font-family: var(--hud); font-weight: 800; font-size: 10px; letter-spacing: .18em; color: var(--dim); margin-top: 3px; }
.combo { flex: 1; min-width: 0; }
.combo .lbl { display: flex; justify-content: space-between; font-weight: 800; font-size: 11px; letter-spacing: .16em; color: var(--dim); }
.combo .lbl b { color: var(--volt); }
.meter { height: 6px; margin-top: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.meter div { height: 100%; width: 0; background: var(--volt); transition: width .2s; }
.tally { display: flex; gap: 10px; font-weight: 800; font-size: 15px; }
.tally span { min-width: 20px; text-align: center; }
.tally span::after { content: ""; display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: currentColor; }
.coach { align-self: center; margin-top: 10px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--black); background: var(--white); }
.coach::before { content: "COACH  "; color: var(--hot); letter-spacing: .12em; font-size: 11px; }
.middle { flex: 1; position: relative; }
.burst { position: absolute; left: 0; right: 0; top: 32%; text-align: center; pointer-events: none; }
#grade { font-family: var(--display); font-size: clamp(64px, 21vw, 150px); line-height: .85; text-transform: uppercase; opacity: 0;
  text-shadow: 0 6px 30px rgba(0,0,0,.6); }
#grade.go { animation: slam .9s cubic-bezier(.2,.9,.3,1.15); }
@keyframes slam { 0% { transform: scale(1.9); opacity: 0; } 14% { transform: scale(1); opacity: 1; }
  72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
#pts { display: inline-block; font-weight: 800; font-size: 18px; letter-spacing: .06em; color: var(--black); background: var(--white); padding: 4px 12px; border-radius: 999px; opacity: 0; margin-top: 8px; }
#pts.go { animation: rise .9s ease-out; }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.banner { position: absolute; left: -16px; right: -16px; top: 10%; padding: 12px 20px 10px; text-align: center; opacity: 0; background: var(--volt); color: var(--black); }
.banner.go { animation: sweep 1.8s cubic-bezier(.7,0,.3,1); }
@keyframes sweep { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 18%, 78% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 100%); } }
.banner .k { font-weight: 800; letter-spacing: .3em; font-size: 12px; }
.banner .v { font-family: var(--display); font-size: clamp(40px, 13vw, 84px); text-transform: uppercase; line-height: .9; }
#count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(160px, 52vw, 300px); line-height: 1; color: var(--white); }
#count.tick { animation: tick .9s ease-out; }
@keyframes tick { 0% { transform: scale(1.6); opacity: 0; } 22% { transform: scale(1); opacity: 1; } 100% { opacity: .15; } }
.next { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; }
.next div { padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--dim); }
.next b { font-family: var(--display); font-size: 18px; color: var(--white); letter-spacing: 0; margin-left: 8px; text-transform: uppercase; }
.calib { align-self: center; width: min(100%, 440px); padding: 18px 20px; border-radius: 22px; text-align: center; }
.calib h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.calib .msg { font-size: 17px; font-weight: 700; margin: 6px 0 12px; min-height: 22px; color: var(--volt); }
.calib .msg.err { color: var(--norep); }
.sync { height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.sync div { height: 100%; width: 0; background: var(--volt); }
.calib .sub { color: var(--dim); font-size: 12px; margin-top: 10px; }

/* ---------- Résultats ---------- */
#results { overflow-y: auto; }
.res-hero { background: var(--black); padding: max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px; }
.res-hero .kicker { color: var(--volt); }
.res-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 20vw, 130px); line-height: .84; }
.rankrow { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rank { font-family: var(--display); font-size: 120px; line-height: .8; animation: stamp .5s cubic-bezier(.2,.9,.3,1.2) both .15s; }
@keyframes stamp { from { transform: scale(1.8); opacity: 0; } }
.rank-side { display: grid; gap: 6px; padding-bottom: 6px; }
.stars { font-size: 22px; letter-spacing: 3px; color: var(--volt); }
.stars .off { color: #3a3a3a; }
.final { font-family: var(--display); font-size: 44px; line-height: 1; }
.final small { font-family: var(--hud); font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--dim); margin-left: 6px; }
.record { align-self: flex-start; font-weight: 800; font-size: 11px; letter-spacing: .16em; color: var(--black); background: var(--volt); padding: 5px 10px; border-radius: 999px; }
.res-body { background: var(--paper); color: var(--paper-ink); display: flex; flex-direction: column; gap: 22px;
  padding: 24px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--paper-ink); }
.stat { padding: 12px 0 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.stat span { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--paper-dim); }
.breakdown { display: grid; gap: 12px; }
.bd-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.bd-row .nm { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.stack { display: flex; height: 14px; background: #e4e4e0; border-radius: 7px; overflow: hidden; }
.stack i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--paper-dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
/* Sur fond clair, le « blanc » de GOOD et le volt deviennent illisibles : variantes papier */
.res-body { --perfect: #587000; --good: #111111; --ok: #b84300; --norep: #c8141a; } /* ≥ 5:1 sur --paper */
details { border-top: 1px solid #dcdcd8; padding-top: 12px; }
summary { cursor: pointer; font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.log { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.log td { padding: 4px; border-bottom: 1px solid #ecece8; }
.log td.t { color: var(--paper-dim); text-align: right; width: 52px; }
.log td.d { color: var(--paper-dim); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.perfect { color: var(--perfect); } .good { color: var(--good); } .ok { color: var(--ok); } .norep { color: var(--norep); }
/* Téléphone en séance : deux bandeaux fins, le joueur reste entièrement visible entre les deux. */
@media (max-width: 899px) and (orientation: portrait) {
  #stage.live { --hud-t: calc(max(8px, env(safe-area-inset-top)) + 58px); --hud-b: calc(max(8px, env(safe-area-inset-bottom)) + 92px); }
  #stage.live #video, #stage.live #canvas { top: var(--hud-t); bottom: auto; left: 0; right: 0; width: 100%; height: calc(100% - var(--hud-t) - var(--hud-b)); }
  #stage.live #shade { display: none; }
  #stage.live .hud { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  #stage.live .bar-top { align-items: center; order: 0; min-height: 52px; }
  #stage.live .bar-top > div:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; }
  #stage.live .quit { flex: none; width: 32px; height: 32px; font-size: 13px; }
  #stage.live #roundInfo { margin-top: 0 !important; min-width: 0; }
  #stage.live .round-chip { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
  #stage.live .ex-name { font-size: 18px; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #stage.live .timer { width: 52px; height: 52px; }
  #stage.live .timer .t { font-size: 17px; }
  #stage.live .score { font-size: 28px; }
  #stage.live .mult { font-size: 11px; padding: 1px 7px; margin-top: 1px; }
  #stage.live .middle { order: 1; }
  #stage.live .repbar { order: 2; margin-top: 6px; }
  #stage.live .strip { order: 3; margin-top: 6px; padding: 5px 12px; border-radius: 13px; gap: 10px; min-height: 66px; }
  #stage.live .left { font-size: 50px; min-width: 50px; }
  #stage.live .left small { font-size: 7px; margin-top: 1px; }
  #stage.live .coach { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(var(--hud-b) + 8px); text-align: center; margin: 0; padding: 6px 12px; font-size: 13px; }
  /* La note s'affiche dans le bandeau du bas, jamais sur le corps. */
  #stage.live .burst { position: fixed; z-index: 4; left: 74px; right: 12px; top: auto; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 8px); height: 54px; }
  #stage.live #grade { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 10px; background: #0d0f12; font-size: 40px; line-height: 1; text-shadow: none; }
  #stage.live #pts { display: none; }
  #stage.live .next { display: none; }
}

/* ---------- Concept Tour ---------- */
.left { font-family: var(--display); font-size: 64px; line-height: .85; min-width: 64px; text-align: center; }
.left small { display: block; font-family: var(--hud); font-weight: 800; font-size: 9px; letter-spacing: .14em; color: var(--dim); margin-top: 4px; }
.left.pop { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(1.5); color: var(--volt); } }
.repbar { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 4px; margin-top: 8px; }
.repbar i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); }
.repbar i.on { background: var(--volt); }
#count { flex-direction: column; gap: 4px; }
#count:not(.hidden) { display: flex; align-items: center; justify-content: center; }
.count-sub { font-family: var(--display); font-size: clamp(56px, 18vw, 130px); text-transform: uppercase; color: var(--volt); line-height: .9; text-align: center;
  text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.count-sub small { display: block; font-family: var(--hud); font-weight: 800; font-size: clamp(14px, 4vw, 20px); letter-spacing: .2em; color: var(--white); margin-bottom: 6px; }
#countN { font-size: clamp(160px, 52vw, 300px); line-height: .9; }
.switch { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 24px; background: var(--volt); color: var(--black); pointer-events: none; opacity: 0; visibility: hidden; }
.switch.go { visibility: visible; animation: wipe 1.8s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes wipe { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 14%, 84% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 100%); } }
.switch.tour { background: var(--white); }
.sw-k { font-weight: 800; font-size: clamp(14px, 4vw, 22px); letter-spacing: .24em; }
.sw-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(76px, 25vw, 220px); line-height: .84; margin: 10px 0 14px; overflow-wrap: anywhere; }
.sw-reps { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); }
.sw-reps b { font-weight: 400; font-size: clamp(120px, 40vw, 300px); line-height: .8; }
.sw-reps span { font-size: clamp(34px, 10vw, 80px); }
.sw-cue { margin-top: 14px; font-weight: 700; font-size: clamp(15px, 4vw, 22px); }
.warm { align-self: center; width: min(100%, 460px); padding: 16px 20px 18px; border-radius: 22px; text-align: center; pointer-events: auto; }
.warm-top { display: flex; justify-content: space-between; align-items: center; }
.warm-t { font-family: var(--display); font-size: 30px; }
.warm-name { font-family: var(--display); font-size: clamp(38px, 11vw, 60px); text-transform: uppercase; line-height: .9; margin: 6px 0 4px; }
.warm-cue { color: #d6d6d6; font-size: 15px; margin-bottom: 12px; }
.warm-skip { margin-top: 14px; padding: 10px 18px; font-size: 14px; }
.final.tours { font-size: 64px; }
.plus { font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--dim); margin-top: -4px; }
/* ---------- Prénom + classement ---------- */
.name-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 16px; border-radius: 20px; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--rule); }
.name-card label { font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1; }
.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; font: 700 18px var(--hud); color: var(--white); background: var(--black); border: 0; border-radius: 999px;
  padding: 14px 18px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.name-row input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--volt); }
.name-row .pill { padding: 14px 20px; }
.pill.volt { background: var(--volt); color: var(--black); }
.name-skip { justify-self: start; background: none; color: var(--dim); font-size: 13px; font-weight: 700; text-decoration: underline; padding: 0; }
.placed { font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--volt); }
.placed b { font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: 0; margin-right: 6px; vertical-align: -6px; }
.board { background: var(--black); color: var(--white);
  padding: 28px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.board-back { position: absolute; z-index: 2; left: max(16px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); font-weight: 800; font-size: 13px; text-decoration: none; }
#classement .board { min-height: 100%; padding-top: calc(max(12px, env(safe-area-inset-top)) + 56px); }
.board h2 { margin: 4px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 15vw, 96px); text-transform: uppercase; line-height: .9; }
.board .kicker { color: var(--volt); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lb .pos { font-family: var(--display); font-size: 30px; color: var(--dim); }
.lb li:first-child .pos { color: var(--volt); }
.lb .who { font-family: var(--display); font-size: 24px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .who small { font-family: var(--hud); font-weight: 700; font-size: 12px; color: var(--dim); text-transform: none; margin-left: 6px; }
.lb .res { text-align: right; font-weight: 800; font-size: 13px; color: var(--dim); }
.lb .res b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--white); }
.lb li.me { background: rgba(215,255,31,.08); }
.tag { display: inline-block; font: 800 9px var(--hud); letter-spacing: .14em; color: var(--black); background: var(--dim); padding: 2px 6px; border-radius: 999px; vertical-align: 3px; margin-left: 6px; }
.lb-empty { color: var(--dim); font-size: 15px; margin: 0; }
.lb-reset { margin: -6px 0 14px; font-weight: 800; font-size: 13px; color: var(--white); }
.lb-foot { color: var(--dim); font-size: 12px; margin: 14px 0 0; }
@media (max-width: 420px) {
  .timer { width: 64px; height: 64px; } .timer .t { font-size: 26px; }
  .tally { font-size: 13px; gap: 6px; } .tally span { min-width: 16px; }
  .log td.d { display: none; }
}
/* ---------- Vidéo de session ---------- */
.rec-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: 14px; color: #d6d6d6; cursor: pointer; }
.rec-toggle input { position: absolute; opacity: 0; }
.rec-toggle i { width: 40px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; transition: background .15s; }
.rec-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rec-toggle input:checked + i { background: var(--norep); }
.rec-toggle input:checked + i::after { transform: translateX(16px); }
.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rec-toggle.voice input:checked + i { background: var(--volt); }
.rec-toggle input:focus-visible + i { outline: 3px solid var(--volt); outline-offset: 2px; }
.rec-tag { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: #fff;
  background: rgba(14,14,14,.8); padding: 6px 11px; border-radius: 999px; }
.rec-tag::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--norep); margin-right: 7px; animation: blink 1s steps(2) infinite; }
.rec-box { display: grid; gap: 10px; }
.rec-box h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1; }
.rec-box video { width: 100%; max-height: 62vh; border-radius: 16px; background: #000; }
.rec-box p { margin: 0; color: var(--paper-dim); font-size: 13px; }
.rec-box .pill { justify-self: start; }

/* ---------- YOU ARE THE BOSS ---------- */
#boss { position: fixed; inset: 0; z-index: 90; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--black); cursor: pointer; }
#boss .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.b-rays { position: absolute; left: 50%; top: 56%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: 0;
  background: repeating-conic-gradient(rgba(215,255,31,.2) 0 9deg, transparent 9deg 24deg); }
.b-ring { position: absolute; left: 50%; top: 56%; width: 50vmin; height: 50vmin; margin: -25vmin 0 0 -25vmin; border-radius: 50%; border: 10px solid var(--volt); opacity: 0; }
.b-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 3; pointer-events: none; }
.b-text { position: relative; z-index: 4; }
.b-k { font-weight: 800; font-size: clamp(14px, 4vw, 22px); letter-spacing: .3em; color: var(--volt); opacity: 0; }
.b-you, .b-the, .b-boss { font-family: var(--display); text-transform: uppercase; opacity: 0; line-height: .86; }
.b-you { font-size: clamp(76px, 25vw, 200px); color: #fff; margin-top: 10px; }
.b-the { font-size: clamp(40px, 13vw, 100px); color: #fff; margin: 2px 0; }
.b-boss { font-size: clamp(130px, 44vw, 380px); color: var(--volt); text-shadow: 0 0 60px rgba(215,255,31,.65); }
.b-score { margin-top: 14px; opacity: 0; font-family: var(--display); font-size: clamp(44px, 14vw, 90px); line-height: 1; color: #fff; }
.b-prev { opacity: 0; font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--dim); margin-top: 4px; }
#boss.world .b-k, #boss.world .b-boss { color: #ffc21a; }
#boss.world .b-boss { font-size: clamp(100px, 31vw, 280px); text-shadow: 0 0 70px rgba(255,194,26,.7); }
#boss.world .b-the { font-size: clamp(34px, 10vw, 80px); }
#boss.world .b-score { font-size: clamp(32px, 10vw, 64px); }
#boss.world .b-ring { border-color: #ffc21a; }
#boss.world .b-rays { background: repeating-conic-gradient(rgba(255,194,26,.24) 0 9deg, transparent 9deg 24deg); }
#boss.run { animation: bossOut .4s cubic-bezier(.7,0,.3,1) 4.25s forwards; }
#boss.run .b-k { animation: bFade .3s ease-out .05s forwards; }
#boss.run .b-you { animation: bSlam .4s cubic-bezier(.2,.9,.3,1.2) .25s forwards; }
#boss.run .b-the { animation: bSlam .35s cubic-bezier(.2,.9,.3,1.2) .8s forwards; }
#boss.run .b-boss { animation: bBoss .6s cubic-bezier(.15,1,.3,1.15) 1.3s forwards, bPulse 1.1s ease-in-out 2s infinite; }
#boss.run .b-flash { animation: bFlash .45s ease-out 1.3s; }
#boss.run .b-rays { animation: bFade .4s ease-out 1.35s forwards, bSpin 9s linear 1.35s infinite; }
#boss.run .b-ring { animation: bRing .9s ease-out 1.35s; }
#boss.run .b-ring.r2 { animation-delay: 1.55s; } #boss.run .b-ring.r3 { animation-delay: 1.75s; }
#boss.run .b-text { animation: bShake .5s linear 1.4s; }
#boss.run .b-score { animation: bRise .45s ease-out 2.05s forwards; }
#boss.run .b-prev { animation: bRise .45s ease-out 2.3s forwards; }
@keyframes bFade { to { opacity: 1; } }
@keyframes bSlam { 0% { opacity: 0; transform: scale(2.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bBoss { 0% { opacity: 0; transform: scale(5) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes bPulse { 50% { transform: scale(1.05); } }
@keyframes bFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes bSpin { to { transform: rotate(360deg); } }
@keyframes bRing { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes bShake { 15% { transform: translate(-12px, 7px); } 30% { transform: translate(11px, -8px); } 45% { transform: translate(-9px, -5px); } 60% { transform: translate(7px, 6px); } 80% { transform: translate(-4px, 2px); } }
@keyframes bRise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
@keyframes bossOut { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #boss.run .b-boss { animation: bFade .3s linear 1.3s forwards; } #boss.run .b-you, #boss.run .b-the { animation: bFade .3s linear .3s forwards; }
  #boss.run .b-flash, #boss.run .b-ring, #boss.run .b-rays, #boss.run .b-text { animation: none; }
  #boss.run { animation: bossGone .3s linear 4.25s forwards; }
}
@keyframes bossGone { to { opacity: 0; visibility: hidden; } }

/* ---------- Intro logo (2 s, 100 % CSS : elle disparaît même si le script ne charge pas) ---------- */
#intro { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 16px; overflow: hidden; pointer-events: none;
  background: var(--black); animation: introOut .4s cubic-bezier(.7,0,.3,1) 1.6s forwards; }
#intro::before { content: ""; position: absolute; left: -30%; right: -30%; top: 50%; height: 34%; transform: translateY(-50%) translateX(-110%);
  background: repeating-linear-gradient(-62deg, transparent 0 22px, rgba(215,255,31,.85) 22px 30px, transparent 30px 58px);
  animation: introStripes .9s cubic-bezier(.3,0,.2,1) .05s both; }
.intro-mark { position: relative; display: grid; place-items: center; width: clamp(72px, 22vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--volt); color: var(--black);
  font-family: var(--display); font-size: clamp(44px, 14vw, 80px); animation: introMark .5s cubic-bezier(.2,.9,.3,1.25) .1s both; }
.intro-word em { font-style: normal; color: var(--volt); }
.intro-word { position: relative; font-family: var(--display); font-size: clamp(64px, 20vw, 150px); line-height: 1; letter-spacing: .01em; color: var(--white);
  animation: introWord .55s cubic-bezier(.2,.8,.2,1) .5s both; }
@keyframes introMark { from { transform: scale(0) rotate(-120deg); } }
@keyframes introWord { from { clip-path: inset(0 100% 0 0); transform: translateX(-16px); } to { clip-path: inset(-10% -5% -10% 0); transform: none; } }
@keyframes introStripes { 0% { transform: translateY(-50%) translateX(-110%); } 100% { transform: translateY(-50%) translateX(110%); } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #intro { animation: introFade .3s linear 1.7s forwards; } #intro::before { display: none; } .intro-mark, .intro-word { animation: none; }
}
@keyframes introFade { to { opacity: 0; visibility: hidden; } }
/* Animations réduites : pas de secousse, de zoom ni de balayage, mais la note et les bandeaux restent affichés le temps de les lire. */
@media (prefers-reduced-motion: reduce) {
  #stage.shake { animation: none; }
  #grade.go, #pts.go { animation: calmShow .9s linear; }
  .banner.go { animation: calmShow 1.8s linear; }
  .switch.go { animation: calmShow 1.8s linear forwards; }
}
@keyframes calmShow { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Détail d'une séance ---------- */
.sd-hero { --a: #e2590c; --z: #54200a; position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--a), var(--z) 34%, #121417 56%); transition: background .6s; }
.sd-art { position: relative; height: clamp(260px, 78vw, 360px); overflow: hidden; }
#sdCanvas { position: absolute; left: 0; top: -30%; width: 100%; height: 160%; }
.sd-art::after { content: ''; position: absolute; inset: 45% 0 0; z-index: 2; background: linear-gradient(transparent, #121417); pointer-events: none; }
.sd-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.sd-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(11,13,16,.6); box-shadow: inset 0 0 0 1px var(--rule); color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sd-top .chip-pill { background: rgba(11,13,16,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sd-in { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 14px; margin-top: -70px; padding: 0 max(16px, env(safe-area-inset-left)) 24px; }
.sd-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 16vw, 120px); line-height: .9; text-transform: uppercase; text-wrap: balance; }
.sd-ctas { display: flex; gap: 10px; }
.sd-ctas .btn-play { flex: 1 1 auto; }
.sd-share { flex: none; width: 54px; padding: 0; }
.sd-body { display: grid; gap: 22px; padding: 6px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
.sd-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #181a17; box-shadow: inset 0 0 0 1px var(--rule); }
.sd-stat span { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9fa39a; }
.sd-stat b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.sd-stat b em { font-style: normal; color: var(--volt); }
.sd-stat b small { font-family: var(--hud); font-weight: 800; font-size: .6em; vertical-align: .12em; }
.sd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 14px; background: #181a17; box-shadow: inset 0 0 0 1px var(--rule); }
.sd-thumb { position: relative; width: 104px; height: 70px; overflow: hidden; border-radius: 9px; }
.sd-thumb canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.sd-thumb b { position: absolute; left: 7px; bottom: 3px; font-family: var(--display); font-weight: 400; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.sd-step h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; }
.sd-step p { margin: 4px 0 0; font-size: 13px; color: #c9ced3; }
.sd-x { font-family: var(--display); font-size: 28px; color: var(--volt); }
.sd-x small { font-family: var(--hud); font-weight: 800; font-size: .7em; margin-right: 2px; }
.sd-side { display: grid; gap: 14px; align-content: start; }
.sd-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: #181a17; box-shadow: inset 0 0 0 1px var(--rule); }
.sd-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; }
.sd-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sd-card-head a { color: var(--white); font-weight: 800; font-size: 13px; text-underline-offset: 3px; }
.sd-row { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.sd-row + .sd-row { margin-top: 10px; }
.sd-row.top { background: rgba(215,255,31,.06); box-shadow: inset 0 0 0 1.5px rgba(215,255,31,.45); }
.sd-row.you { outline: 1px dashed rgba(255,255,255,.28); outline-offset: -1px; }
.sd-row .pos { font-family: var(--display); font-size: 24px; color: var(--volt); text-align: center; }
.sd-row.you .pos { color: #9fa39a; }
.sd-row .av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--volt); color: var(--black); font-family: var(--display); font-size: 19px; }
.sd-row.you .av { background: rgba(255,255,255,.1); color: var(--white); }
.sd-row .who { min-width: 0; }
.sd-row .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 15px; }
.sd-row .who small { display: block; font-size: 12px; color: #9fa39a; }
.sd-row .who .rate { font-size: 12px; }
.sd-row .sc { font-weight: 800; font-size: 17px; }
.sd-empty { margin: 0; font-size: 14px; line-height: 1.45; color: #c9ced3; }
.sd-rec-dash { display: flex; gap: 8px; margin: 6px 0 4px; }
.sd-rec-dash i { width: 34px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.sd-rec-val { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--volt); }
.sd-rec-val small { font-size: 20px; color: #c9ced3; margin-left: 6px; }
.sd-set { display: grid; gap: 4px; }
.sd-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.sd-opt b { display: block; font-weight: 800; font-size: 15px; }
.sd-opt small { display: block; margin-top: 2px; font-size: 12px; color: #9fa39a; }
.hero-t a { color: inherit; text-decoration: none; }
.hero-t a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (min-width: 900px) {
  .sd-hero { min-height: 540px; background: linear-gradient(100deg, #121417 30%, var(--z) 62%, var(--a)); }
  .sd-art { position: absolute; inset: 0 0 0 45%; height: auto; }
  #sdCanvas { top: 0; height: 100%; }
  .sd-art::after { display: none; }
  .sd-top { padding: 26px 40px 0; }
  .sd-in { max-width: 1480px; width: 100%; margin: 0 auto; padding: 130px 40px 44px; }
  .sd-title { font-size: clamp(80px, 8vw, 128px); max-width: 9ch; }
  .sd-ctas { align-self: flex-start; }
  .sd-ctas .btn-play { flex: none; min-width: 150px; }
  .sd-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; max-width: 1480px; margin: 0 auto; padding: 10px 40px 48px; }
  .sd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .sd-stat { padding: 18px 20px; }
  .sd-stat b { font-size: 38px; }
  .sd-step { padding: 12px 22px 12px 12px; gap: 22px; }
  .sd-thumb { width: 132px; height: 84px; }
  .sd-step h3 { font-size: 28px; }
  .sd-x { font-size: 34px; }
}

/* Objectif personnel, niveaux */
.hero-goal { margin: 0; font-weight: 800; font-size: 14px; color: var(--volt); }
.hero-goal:empty { display: none; }
.sd-goal { margin: 4px 0 0; font-weight: 800; font-size: 14px; color: var(--volt); }
.sd-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sd-levels button { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--rule); color: var(--white); }
.sd-levels button b { font-weight: 800; font-size: 13px; }
.sd-levels button small { font-size: 12px; color: #9fa39a; }
.sd-levels button[aria-pressed="true"] { background: var(--volt); color: var(--black); box-shadow: none; }
.sd-levels button[aria-pressed="true"] small { color: rgba(0,0,0,.65); }

/* Série dans le menu du compte */
.me-streak { display: grid; gap: 4px; padding: 10px 12px 12px; border-bottom: 1px solid var(--rule); border-radius: 0; }
.me-streak b { font-weight: 800; font-size: 14px; }
.me-streak small { font-size: 12px; color: #c9ced3; line-height: 1.35; }
.me-bar { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.me-bar i { display: block; height: 100%; background: var(--volt); }

/* Invitation aux rappels, en fin de partie */
.remind-cta { align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: rgba(215,255,31,.12); box-shadow: inset 0 0 0 1px rgba(215,255,31,.4); color: var(--volt); font-weight: 800; font-size: 14px; }
