/* ─────────────────────────────────────────────────────────────────────────────
   Club Nitro · design system (dark only) · v0.6
   Grand public, pensé pour le pouce. Sept règles :
   1. Deux voix : le DISPLAY (Mona Sans large, noir, italique, capitales) porte les lots, les prix,
      les nombres. Le texte courant reste droit, calme, lisible.
   2. Jamais de petit texte en capitales. Les capitales commencent à 24 px. En dessous : bas de casse.
      Seule exception : le libellé du CTA primaire, en capitales droites (16 px et plus).
   3. L'orange est rare : il marque l'action principale et les chances. Rien d'autre.
   4. Noir profond, surfaces lisses. Pas de trame, pas de motif ; seul le fond de page porte un grain fin.
      Le relief vient d'un dégradé discret
      et d'une arête claire en haut.
   4 bis. Pas de contour : un état se montre par un fond plein, jamais par une bordure autour d'un intérieur vide
      ou à peine teinté (les CTA font exception).
   5. Les nombres sont les héros (chances, jours restants, prix). Jamais de cote ni de probabilité.
   6. Tout ce qui se touche est gros : 52 px minimum, 64 px pour l'action principale.
   7. Le mouvement répond à un geste (survol, pression, arrivée à l'écran). Rien ne boucle.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #020202;
  --surface: #141414;     /* carte : le seul fond de carte, partout */
  --surface-2: #1c1c1c;   /* élément posé sur une carte : tuile, bouton secondaire, champ */
  --surface-3: #292929;   /* relevé fort : onglet actif, nœud du rail, en-tête de formule */
  /* Piste en creux et pouce : la paire qui porte tout choix parmi plusieurs (sélecteur, onglets).
     La piste est un noir translucide, donc elle assombrit n'importe quel fond sur lequel on la pose
     (page, carte, élément posé) sans qu'il faille un gris par contexte. Le pouce est un gris plein, toujours le même. */
  --well: rgba(0, 0, 0, 0.5);
  --well-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --thumb: #323232;
  --thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 1px 3px rgba(0, 0, 0, 0.55);
  /* La piste que les composants utilisent. Sur la page nue (noir profond) un creux ne se verrait pas :
     la piste est alors une carte. Dès qu'on est dans une surface, elle devient le creux (voir plus bas). */
  --track: var(--surface);
  --track-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --raised: var(--surface); /* carte mise en avant : même fond, elle se distingue par son arête */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  /* Texte */
  --fg: #ffffff;
  --fg-2: #b0b0b0;
  --fg-3: #767676;
  --fg-4: #4a4a4a;

  /* Orange électrique : action principale et chances, uniquement */
  --accent: #ff4d00;
  --accent-hi: #ff6a1a;
  --ring: rgba(255, 77, 0, 0.55);
  /* Orange électrique : dès qu'une surface ou un gros texte est orange, il glisse d'un orange clair à un orange profond, sans écart de teinte marqué.
     Les petits éléments (icônes, libellés, petits nombres) gardent l'aplat --accent.
     Tout élément en dégradé porte aussi une très fine arête blanche, comme le CTA primaire. */
  --accent-grad: linear-gradient(180deg, #ff7a1a 0%, #ff5200 50%, #ff3c00 100%);
  --accent-grad-x: linear-gradient(90deg, #ff3c00 0%, #ff5200 50%, #ff7a1a 100%);
  --cta-bg: linear-gradient(180deg, #ff741a 0%, #ff5000 50%, #f93c00 100%);
  /* Ordre des ombres : reliefs internes, puis la lueur, puis l'ombre noire tout en dessous */
  --cta-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 8px 20px -12px rgba(255, 77, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.6);

  /* États */
  --success: #22e06b;
  --warning: #ffc21a;
  --danger: #ff3b3b;

  /* Rayons */
  --r-1: 5px;    /* tag, badge */
  --r-2: 8px;   /* chip, petit bouton, pastille */
  --r-3: 10px;   /* bouton, champ, tuile */
  --r-4: 12px;   /* récompense, barre d'onglets, CTA */
  --r-5: 16px;   /* carte */
  --pill: 999px;

  /* Texte : peu de tailles, de grands écarts */
  --t-meta: 14px;
  --t-label: 15px;
  --t-body: 16px;
  --t-title: 22px;
  --d-md: 24px;  /* display : titre d'écran, prix */
  --d-lg: 34px;  /* display : nom d'un lot */
  --d-xl: 52px;  /* display : titre de page */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;

  --font-sans: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Grain du fond : une tuile de bruit fixe, dessinée une fois. Pas de fusion ni de masque, donc aucun coût au repos. */
html { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.6 0 0 0 -1.15'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E"); color: var(--fg); }
body { margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: var(--t-body); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input::placeholder { color: var(--fg-4); }
p, h1, h2, h3 { margin: 0; font-weight: inherit; }
img { display: block; max-width: 100%; }
/* Focus : un anneau orange vif détaché de l'élément par un vide. Le vide laisse voir le fond, quel qu'il soit. */
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
::selection { background: rgba(255, 77, 0, 0.45); }

/* ── Typographie ──────────────────────────────────────────────────────────── */
/* Display : capitales, à partir de 24 px seulement */
.nt-display { font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; font-size: var(--d-md); }
.nt-d-lg { font-size: var(--d-lg); }
.nt-d-xl { font-size: var(--d-xl); letter-spacing: -0.025em; }
/* Titre et libellé : la même énergie en bas de casse */
.nt-title { font-size: var(--t-title); font-weight: 800; font-style: italic; line-height: 1.15; letter-spacing: -0.01em; }
.nt-label { font-size: var(--t-label); font-weight: 800; font-style: italic; line-height: 1.2; }
.nt-text { font-size: var(--t-body); color: var(--fg-2); }
.nt-meta { font-size: var(--t-meta); color: var(--fg-3); }
.nt-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--fg-4); }
/* Les chances : le seul texte orange */
.nt-hot { color: var(--accent); }
/* Gros texte orange : dégradé découpé dans les lettres, arête claire sur le haut seulement, à l'intérieur des lettres (filtre #f-top-edge, défini avec les icônes). La marge compense le débord de l'italique. */
.nt-display.nt-hot, .nt-display .nt-hot { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: url(#f-top-edge); padding: 0.06em 0.14em 0.06em 0.02em; margin: -0.06em -0.14em -0.06em -0.02em; }
.nt-display .nt-hot { display: inline-block; margin-right: 0; padding-right: 0.1em; }

/* ── Icônes : Nucleo UI, duotone. Trait 1,5 + remplissage à 30 %. ─────────── */
.nt-ic { width: 1.25em; height: 1.25em; flex: none; overflow: visible; }
:is(symbol, .nt-ic) .s, :is(symbol, .nt-ic) .ds { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:is(symbol, .nt-ic) .d, :is(symbol, .nt-ic) .ds { fill: currentColor; fill-opacity: var(--duo, 0.3); }
:is(symbol, .nt-ic) .f { fill: currentColor; }
.nt-ic-tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); font-size: 21px; cursor: pointer; }

/* ── Cartes ───────────────────────────────────────────────────────────────── */
.nt-card { position: relative; overflow: hidden; border-radius: var(--r-5); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.nt-raised { background: var(--raised); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.nt-divider { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-3);
  font-size: 17px; font-weight: 800; font-style: normal; letter-spacing: -0.005em; white-space: nowrap; user-select: none;
}
.nt-btn:disabled { pointer-events: none; opacity: 0.45; }
/* L'action principale de l'écran : une seule */
.nt-btn-lg { height: 64px; padding: 0 36px; border-radius: var(--r-4); font-size: 20px; font-weight: 900; font-stretch: 118%; }
.nt-btn-sm { height: 40px; padding: 0 18px; border-radius: var(--r-2); font-size: 15px; }
.nt-btn-block { width: 100%; }
.nt-btn-primary { color: #fff; background: var(--cta-bg); box-shadow: var(--cta-shadow); text-shadow: 0 1px 0 rgba(140, 40, 0, 0.5); }
/* Le CTA primaire parle en capitales droites, jamais en italique. Le petit format reste en bas de casse. */
.nt-btn-primary { font-style: normal; text-transform: uppercase; font-stretch: 112%; letter-spacing: 0.02em; font-size: 16px; }
.nt-btn-lg.nt-btn-primary { font-size: 18px; }
.nt-btn-sm.nt-btn-primary { text-transform: none; font-stretch: 100%; letter-spacing: 0; font-size: 15px; }
.nt-btn-sm.nt-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.6); }
.nt-btn-secondary { color: var(--fg); background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.nt-btn-secondary:hover { background: #1d1d1d; }
.nt-btn-light { color: #0a0a0a; background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 50%, #e2e2e2 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 8px 20px -12px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.6); }
.nt-btn-ghost { color: var(--fg-2); }
.nt-btn-ghost:hover { color: var(--fg); background: var(--surface-2); }
.nt-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); font-size: 15px; color: var(--fg-2); }

/* ── Pastilles, chips, badges ─────────────────────────────────────────────── */
/* Pastille : le solde de chances est la seule orange, les autres sont neutres */
.nt-stat { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: var(--r-2); background: var(--surface-2); font-size: 17px; font-weight: 800; font-style: italic; color: #fff; white-space: nowrap; }
.nt-stat .nt-ic, .nt-stat small { color: var(--fg-2); }
.nt-stat small { font-size: 13px; font-weight: 800; }
.nt-stat-hot { background: #2b1205; }
.nt-stat-hot .nt-ic { color: var(--accent-hi); --duo: 1; }
/* Compte à rebours, posé sur une image ou une carte */
.nt-timer { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: var(--r-2); background: rgba(4, 4, 4, 0.72); font-size: 15px; font-weight: 800; font-style: italic; color: #fff; white-space: nowrap; }
.nt-timer .nt-ic { font-size: 13px; }
.nt-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--r-1); background: #fff; color: #0a0a0a; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.nt-chip { --tint: var(--fg-2); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--r-2); background: color-mix(in oklab, var(--tint) 14%, #080808); color: var(--tint); font-size: 14px; font-weight: 800; font-style: italic; white-space: nowrap; }
/* Badge double : les chances en orange, le bonus en blanc */
.nt-duo { display: inline-flex; height: 42px; border-radius: var(--r-2); overflow: hidden; font-size: 19px; font-weight: 800; font-style: italic; white-space: nowrap; }
.nt-duo > * { display: inline-flex; align-items: center; padding: 0 16px; }
.nt-duo > :first-child { color: #fff; background: var(--cta-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.16); padding-right: 22px; }
.nt-duo > :last-child { color: #0a0a0a; background: #fff; margin-left: -10px; padding-left: 20px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.nt-dots { display: flex; justify-content: center; gap: 6px; }
.nt-dots i { width: 7px; height: 7px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.3); }
.nt-dots i[aria-current] { width: 24px; background: #fff; }
.nt-stars { display: inline-flex; gap: 2px; font-size: 16px; color: #fff; --duo: 1; }
.nt-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--surface-3); font-size: 15px; font-weight: 800; font-style: italic; }

/* ── Contrôles ────────────────────────────────────────────────────────────── */
.nt-field { width: 100%; height: 56px; padding: 0 18px; border: 0; outline: 2px solid transparent; outline-offset: 3px; border-radius: var(--r-3); background: var(--surface-2); font-size: 16px; font-weight: 500; color: var(--fg); transition: box-shadow var(--dur-1) var(--ease), outline-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
/* Champ actif : double trait net — un filet vif sur le bord du champ, un vide, puis l'anneau. */
.nt-field:focus { background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--accent-hi); outline-color: var(--accent); }
.nt-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 56px; height: 32px; margin: 0; border-radius: var(--pill); background: var(--surface-3); cursor: pointer; transition: background var(--dur-2) var(--ease); }
.nt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #8c8c8c; transition: transform 320ms cubic-bezier(0.3, 1.5, 0.5, 1), background var(--dur-2) var(--ease); }
.nt-switch:checked { background: #fff; }
.nt-switch:checked::after { transform: translateX(24px); background: #0a0a0a; }
/* Contexte « dans une surface » : tout ce qui vit dans une carte hérite d'une piste en creux. */
.nt-card, .nt-sheet, .nt-reward { --track: var(--well); --track-shadow: var(--well-shadow); }
.nt-seg { position: relative; display: flex; padding: 5px; border-radius: var(--r-3); background: var(--track); box-shadow: var(--track-shadow); }
.nt-seg button { position: relative; z-index: 1; flex: 1; height: 44px; padding: 0 18px; border-radius: 7px; font-size: 16px; font-weight: 800; font-style: italic; color: #8c8c8c; transition: color var(--dur-2) var(--ease); }
.nt-seg button[aria-pressed="true"] { color: #fff; }
.nt-seg:not(.has-thumb) button[aria-pressed="true"], .nt-seg-thumb { background: var(--thumb); box-shadow: var(--thumb-shadow); }
.nt-seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 7px; }
.nt-info { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: var(--r-3); background: var(--surface); font-size: 15px; font-weight: 600; }
.nt-info .nt-ic { font-size: 17px; color: var(--fg-2); }

/* ── Accordéon ────────────────────────────────────────────────────────────── */
.nt-acc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 0; text-align: left; }
.nt-acc-head > .nt-ic { font-size: 19px; color: var(--fg-2); }
.nt-acc-head .nt-title { flex: 1; font-size: 19px; }
.nt-acc-body { overflow: hidden; }
.nt-acc-body > div { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.nt-acc[data-open="false"] .nt-acc-body { height: 0; }
.nt-acc[data-open="false"] .nt-icon-btn .nt-ic { transform: rotate(180deg); }

/* ── Tableau de formule : en-tête en pastille, lignes fines ───────────────── */
.nt-plan { padding: 14px 20px 8px; }
.nt-plan-head { display: grid; place-items: center; height: 58px; margin: 0 -6px 4px; border-radius: var(--r-3); background: var(--surface-3); color: #fff; font-size: 19px; font-weight: 800; font-style: italic; }
.nt-plan.is-featured .nt-plan-head { background: #fff; color: #0a0a0a; }
.nt-plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 0; font-size: 16px; color: var(--fg-2); white-space: nowrap; }
.nt-plan-row + .nt-plan-row { border-top: 1px solid var(--line-strong); }
.nt-plan-row b { font-size: 18px; font-weight: 800; font-style: italic; color: #fff; }
.nt-plan-row b.nt-hot { color: var(--accent); }

/* ── Carte lot (grande) et vignette lot (petite) ──────────────────────────── */
/* La photo est en fond perdu, sur son propre noir ; un dégradé la fond dans la carte. Aucun masque, aucun mode de fusion. */
.nt-lot-media { position: relative; background: var(--surface); }
.nt-lot-media img { width: 100%; height: 100%; object-fit: cover; }
.nt-lot-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0) 34%, rgba(13, 13, 13, 0) 62%, var(--surface) 100%); pointer-events: none; }
.nt-lot-media > .over { position: absolute; z-index: 1; }
.nt-lot-mini { position: relative; overflow: hidden; flex: none; width: 150px; height: 168px; border-radius: var(--r-4); background: var(--surface); cursor: pointer; }
.nt-lot-mini img { width: 100%; height: 100%; object-fit: cover; }
.nt-lot-mini::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(4, 4, 4, 0.92)); }
.nt-lot-mini .nt-timer { position: absolute; top: 8px; right: 8px; height: 28px; font-size: 13.5px; }
.nt-lot-mini .nt-label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; }

/* ── Récompenses et rail de progression ───────────────────────────────────── */
.nt-reward { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; height: 196px; padding: 12px; border-radius: var(--r-4); background: var(--raised); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); text-align: center; cursor: pointer; }
.nt-reward .art { position: absolute; left: 0; right: 0; top: 12px; width: 112px; height: 112px; margin: 0 auto; object-fit: contain; }
.nt-reward .nt-btn { height: 36px; }
.nt-reward.is-locked { background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); color: var(--fg-3); }
.nt-reward.is-locked .art { opacity: 0.16; }
.nt-reward .lock { position: absolute; left: 0; right: 0; top: 52px; margin: 0 auto; font-size: 28px; color: #fff; --duo: 0.4; }
.nt-rail { position: relative; display: grid; place-items: center; }
.nt-rail::before { content: ""; position: absolute; top: -7px; bottom: -7px; left: 50%; width: 4px; margin-left: -2px; background: var(--surface-3); }
.nt-rail.is-current::before { background: linear-gradient(180deg, #fff 50%, var(--surface-3) 50%); }
.nt-node { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 4px var(--bg); font-size: 15px; font-weight: 800; font-style: italic; color: var(--fg-2); }
.nt-rail.is-current .nt-node { background: #fff; color: #0a0a0a; }

/* ── Bannière ─────────────────────────────────────────────────────────────── */
.nt-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-4); overflow: hidden; }
.nt-banner > div { flex: 1; min-width: 0; }
.nt-banner img { width: 76px; height: auto; margin: -14px 0 -22px; transform: rotate(10deg); }

/* ── Barre d'onglets flottante ────────────────────────────────────────────── */
.nt-tabbar { display: flex; align-items: center; gap: 8px; }
.nt-tabs { flex: 1; display: flex; justify-content: space-between; gap: 2px; padding: 6px; border-radius: 14px; background: var(--track); box-shadow: var(--track-shadow); }
.nt-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; min-width: 52px; border-radius: var(--r-3); font-size: 16px; font-weight: 600; color: #858585; cursor: pointer; }
.nt-tab .nt-ic { font-size: 19px; }
.nt-tab span { display: none; }
.nt-tab[aria-current] { padding: 0 20px; background: var(--thumb); color: #fff; box-shadow: var(--thumb-shadow); --duo: 0.55; }
.nt-tab[aria-current] span { display: inline; }
.nt-tab-solo { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.nt-tab-action { color: #fff; background: var(--cta-bg); box-shadow: var(--cta-shadow); --duo: 1; }
.nt-tab-action .nt-ic { font-size: 23px; }

/* ── Panier ───────────────────────────────────────────────────────────────── */
.nt-cart { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.nt-line { display: flex; align-items: flex-start; gap: 14px; }
.nt-thumb { width: 76px; height: 76px; flex: none; border-radius: var(--r-3); object-fit: cover; background: #000; }
.nt-line .body { flex: 1; min-width: 0; padding-top: 4px; font-weight: 600; line-height: 1.3; }
.nt-line .body span { display: block; margin-top: 3px; font-size: var(--t-meta); font-weight: 400; color: var(--fg-3); }
.nt-line .price, .nt-total b { font-weight: 700; white-space: nowrap; }
.nt-line .price { padding-top: 4px; }
.nt-total { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }

/* ── Classement ───────────────────────────────────────────────────────────── */
.nt-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 4px; }
.nt-podium-col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.nt-podium-col .nt-avatar { position: relative; width: 64px; height: 64px; font-size: 20px; }
.nt-podium-col.is-first .nt-avatar { width: 78px; height: 78px; font-size: 24px; background: #fff; color: #0a0a0a; }
.nt-podium-col .nt-avatar b { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #0a0a0a; font-size: 13px; font-style: normal; font-weight: 800; }
.nt-podium-block { width: 100%; height: var(--h); margin-top: 6px; display: grid; place-items: center; transform-origin: bottom; background: linear-gradient(180deg, #262626 0%, rgba(20, 20, 20, 0) 100%); clip-path: polygon(9% 0, 91% 0, 100% 20px, 100% 100%, 0 100%, 0 20px); font-size: 46px; font-weight: 300; color: var(--fg-4); }
.nt-rank-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.nt-rank-row .rank { display: inline-flex; align-items: center; gap: 5px; width: 44px; flex: none; font-weight: 700; color: var(--fg-3); }
.nt-rank-row .rank .nt-ic { font-size: 14px; }
.nt-rank-row .who { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.nt-rank-row .who span { display: block; font-size: var(--t-meta); font-weight: 400; color: var(--fg-3); }
.nt-rank-row .score { text-align: right; line-height: 1.3; }
.nt-rank-row .score b { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 800; font-style: italic; }
.nt-rank-row .score b .nt-ic { font-size: 14px; color: var(--accent); --duo: 1; }
.nt-rank-row .score span { display: block; font-size: var(--t-meta); color: var(--success); }

/* ── Progression par étapes ───────────────────────────────────────────────── */
.nt-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nt-seg button .nt-ic { font-size: 14px; }
.nt-steps-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.nt-steps-bar i { height: 8px; border-radius: var(--pill); background: var(--surface-3); transform-origin: left; }
.nt-steps-bar i.is-done { background: var(--success); }
.nt-steps-bar i.is-current { background: linear-gradient(90deg, var(--success) 50%, var(--surface-3) 50%); }
.nt-steplist { padding: 0; }
.nt-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 0; font-weight: 600; }
.nt-step + .nt-step::before { content: ""; position: absolute; left: 14px; top: -9px; height: 18px; width: 1px; background: var(--line-strong); }
.nt-step .dot { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 50%; background: radial-gradient(circle, #0a0a0a 0 4.5px, #fff 5.5px); font-size: 13px; }
.nt-step.is-done { color: var(--fg-2); }
.nt-step.is-done .dot { background: var(--success); color: #06140b; }
.nt-step.is-todo { color: var(--fg-3); }
.nt-step.is-todo .dot { background: var(--surface-3); }

/* ── Graphique en barres : d'où viennent les chances ──────────────────────── */
.nt-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 190px; }
.nt-bar { display: flex; flex-direction: column; gap: 5px; height: var(--v); min-height: 22px; transform-origin: bottom; }
.nt-bar::before { content: ""; height: 10px; flex: none; border-radius: var(--pill); background: var(--accent-grad-x); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.16); }
.nt-bar::after { content: ""; flex: 1; border-radius: var(--r-2) var(--r-2) 0 0; background: linear-gradient(180deg, rgba(255, 77, 0, 0.36) 0%, rgba(255, 77, 0, 0) 100%); box-shadow: inset 0 1px 0 rgba(255, 122, 46, 0.55); }
.nt-bar-labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 10px; text-align: center; font-size: var(--t-meta); font-weight: 600; line-height: 1.3; }
.nt-bar-labels span { display: block; font-weight: 400; color: var(--fg-3); }

/* ── Feuille d'achat et vague de confirmation (v0.7) ──
   La vague part du jeton quand le paiement passe : un anneau orange s'élargit, floute ce qu'il traverse,
   révèle l'écran « ajoutées » derrière lui et laisse sa couleur sur les bords avant de s'éteindre. */
.nt-sheet { --wx: 50%; --wy: 60px; --wr: 0px; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-5); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); text-align: center; }
.nt-sheet-view { display: flex; flex-direction: column; align-items: center; padding: 30px 22px 22px; background: var(--surface); }
.nt-sheet-view[data-view="done"] { position: absolute; inset: 0; visibility: hidden; }
.nt-sheet[data-state="done"] .nt-sheet-view[data-view="done"] { visibility: visible; }
.nt-sheet.is-waving .nt-sheet-view[data-view="done"] { visibility: visible; -webkit-mask-image: radial-gradient(circle at var(--wx) var(--wy), #000 calc(var(--wr) - 12px), transparent var(--wr)); mask-image: radial-gradient(circle at var(--wx) var(--wy), #000 calc(var(--wr) - 12px), transparent var(--wr)); }
.nt-sheet-close { position: absolute; top: 16px; right: 16px; z-index: 4; }
.nt-token { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); font-size: 28px; color: var(--accent); --duo: 1; }
.nt-token.is-done { background: var(--cta-bg); box-shadow: var(--cta-shadow); color: #fff; }
.nt-kv { width: 100%; margin: 22px 0 16px; padding: 0 16px; border-radius: var(--r-4); background: var(--surface-2); text-align: left; }
.nt-kv > p { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; font-size: 16px; font-weight: 500; color: var(--fg-2); }
.nt-kv > p + p { box-shadow: inset 0 1px 0 var(--line); }
.nt-kv b { font-weight: 700; color: var(--fg); white-space: nowrap; }
.nt-kv b.nt-hot { color: var(--accent); }
.nt-wave, .nt-wave-lens, .nt-wave-edge { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.nt-wave { z-index: 3; background: radial-gradient(circle at var(--wx) var(--wy), transparent calc(var(--wr) - 96px), rgba(255, 77, 0, 0.12) calc(var(--wr) - 54px), rgba(255, 77, 0, 0.6) calc(var(--wr) - 12px), #ffa15e var(--wr), rgba(255, 77, 0, 0.4) calc(var(--wr) + 10px), transparent calc(var(--wr) + 46px)); }
.nt-wave-lens { z-index: 2; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: radial-gradient(circle at var(--wx) var(--wy), transparent calc(var(--wr) - 50px), #000 calc(var(--wr) - 8px), #000 calc(var(--wr) + 8px), transparent calc(var(--wr) + 42px)); mask-image: radial-gradient(circle at var(--wx) var(--wy), transparent calc(var(--wr) - 50px), #000 calc(var(--wr) - 8px), #000 calc(var(--wr) + 8px), transparent calc(var(--wr) + 42px)); }
.nt-wave-edge { z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 122, 46, 0.55), inset 0 0 44px 2px rgba(255, 77, 0, 0.5); }
.nt-btn[aria-busy="true"] { pointer-events: none; filter: saturate(0.75) brightness(0.86); }
.nt-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: nt-spin 0.7s linear infinite; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
/* Avec la vague officielle « distortion-waves » : les deux vues partagent une cellule de grille, la lib gère leur opacité. */
.nt-sheet.has-dw { display: grid; }
.nt-sheet.has-dw .nt-sheet-view { grid-area: 1 / 1; min-width: 0; position: static; visibility: visible; }
.nt-sheet.has-dw .nt-wave, .nt-sheet.has-dw .nt-wave-lens, .nt-sheet.has-dw .nt-wave-edge { display: none; }
.nt-podium-col.is-first .nt-avatar b { background: var(--accent); color: #fff; }
/* Sur une surface relevée (tuile de récompense, bannière), l'ombre noire du CTA se voit trop : on l'allège. */
:is(.nt-reward, .nt-raised) .nt-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 6px 14px -10px rgba(255, 77, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3); }
:is(.nt-reward, .nt-raised) .nt-btn-light { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 6px 14px -10px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3); }
/* Champ porté par le faisceau Border beam : le faisceau est l'état sélectionné, donc plus d'anneau ni de filet. */
.nt-field-beam { flex: 1; min-width: 0; }
.has-beam .nt-field, .has-beam .nt-field:focus { outline: none; box-shadow: none; }
/* Le faisceau de la lib est réglé très doux (couches à 25–40 % d'opacité). Champ sélectionné = état fort : on monte ses couches. */
.has-beam [data-beam][data-active]::before { opacity: 1 !important; }
.has-beam [data-beam][data-active]::after { opacity: 0.75 !important; }
.has-beam [data-beam][data-active] > div { opacity: 0.7 !important; }
