@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2"); }
:root {
  --bg: #0b0d14;
  --band: #0e111a;
  --band-3: #12151f;
  --bg-deep: #070910;
  --border: #2a2d3a;
  --border-strong: #3a3e4d;
  --text: #f7f4ef;
  --text-secondary: #b8b1aa;
  --text-muted: #78717a;
  --blue: #269ff0;
  --blue-deep: #0a6bac;
  --gold: #f2c94c;
  --green: #34d399;
  --success: #1d9e75;
  --red: #e05252;
  --sale: #e05252;
  --exchange: #269ff0;
  --ink: #05080f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bebas Neue", "Haettenschweiler", "Arial Narrow", var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a:hover { color: var(--blue); }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, p, figure { margin: 0; }

p { text-wrap: pretty; }

.wrap { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Display type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  z-index: 110;
  padding: 7px 0;
  overflow: hidden;
  background: var(--blue);
}

.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }

.ticker-track span {
  padding-inline: 20px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker { to { transform: translateX(-50%); } }

.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Floating pill nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(11, 13, 20, 0) 100%);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.nav-logo {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  width: 116px;
}

.brand-flies .nav-logo { visibility: hidden; }

.nav-logo img { display: block; height: auto; }
.nav-logo .brand-merry { width: 100%; }
.nav-logo .brand-tcg { width: 30%; }

.nav-menu { display: flex; align-items: center; gap: 6px; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.032em;
  text-transform: uppercase;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-links a:hover { background: var(--band-3); border-color: var(--border-strong); color: var(--text); }

/* Bouton support WhatsApp : toujours visible, hors du menu repliable */
.nav-wa {
  order: 3;
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #062b16;
  transition: transform 140ms ease, background-color 140ms ease;
}
.nav-wa:hover { background: #1ebe5a; transform: translateY(-1px); }
.nav-wa:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span { width: 16px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */

.btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.032em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:disabled { opacity: 0.5; cursor: wait; }

.btn-sm { min-height: 44px; padding-inline: 20px; font-size: 12px; }

.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 14px; }

.btn-primary { background: var(--blue); color: #fff; }

.btn-primary:hover { background: #3fabf4; color: #fff; }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }

.btn-ghost:hover { background: var(--band-3); color: var(--text); }

.btn-invert { background: var(--ink); color: var(--text); }

.btn-invert:hover { background: #101724; color: var(--text); }

/* ---------- Micro label ---------- */

.micro {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Reveal ---------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

/* Sortie par le haut quand le bloc repasse au-dessus du viewport. */
.js-reveal [data-reveal].is-above { transform: translateY(-28px); }

.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* Le téléphone arrive de plus loin, avec bascule et échelle. */
.js-reveal [data-reveal="phone"] {
  transform: translateY(72px) scale(0.9) rotateX(11deg);
  transform-origin: 50% 100%;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1) var(--delay, 0ms);
}

.js-reveal [data-reveal="phone"].is-above { transform: translateY(-56px) scale(0.94) rotateX(-8deg); }

.js-reveal [data-reveal="phone"].is-visible { transform: translateY(0) scale(1) rotateX(0deg); }

/* Les tuiles montent et se dévoilent par le haut. */
.js-reveal [data-reveal="tile"] { transform: translateY(40px); }

.js-reveal [data-reveal="tile"].is-above { transform: translateY(-24px); }

.js-reveal [data-reveal="tile"].is-visible { transform: none; }

/* ---------- Scène d'ouverture : étape 1 → étape 2 en continu ---------- */

.opening {
  position: relative;
  height: 220vh;
  height: 220dvh;
  background: var(--bg);
}

.opening-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* Étape 1 : tuiles, logo et titre en haut d'écran. */
.opening-copy {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(14px, 3vh, 40px) 20px 0;
  text-align: center;
  transform: translate3d(0, var(--c1y, 0px), 0);
  opacity: var(--c1op, 1);
  will-change: transform, opacity;
}

.hero-brand { width: min(44vw, 26vh, 500px); margin: 0 auto; }

.hero-brand { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(4px, 0.8vh, 12px); }
.hero-brand.is-flying { position: fixed; z-index: 105; transform-origin: top left; pointer-events: none; will-change: transform; backface-visibility: hidden; }
.hero-brand-spacer { flex: none; margin: 0 auto; }
.hero-brand img { height: auto; display: block; }
.hero-brand .brand-merry { width: 100%; height: auto; aspect-ratio: 1020 / 426; object-fit: contain; }
.hero-brand .brand-tcg { width: 30%; height: auto; aspect-ratio: 504 / 134; object-fit: contain; }

.opening-copy h1 {
  margin-top: clamp(20px, 4.5vh, 56px);
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, min(6.4vw, 5.8vh), 88px);
  line-height: 0.9;
  letter-spacing: 0.004em;
}

.opening-copy h1 em { font-style: normal; color: var(--blue); }

.hero-tagline {
  max-width: 22ch;
  margin: clamp(10px, 2vh, 22px) auto 0;
  font-size: clamp(16px, min(2.4vw, 3vh), 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 50ch;
  margin: clamp(8px, 1.6vh, 18px) auto 0;
  color: var(--text-secondary);
  font-size: clamp(12px, min(1vw, 1.8vh), 16px);
  line-height: 1.5;
}

.hero-actions {
  margin-top: clamp(14px, 2.6vh, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Étape 2 : le titre prend la place du bloc d'ouverture. */
.opening-step2 {
  position: absolute;
  z-index: 5;
  display: grid;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(24px, 6vh, 76px) 20px 0;
  text-align: center;
  transform: translate3d(0, var(--c2y, 24px), 0);
  opacity: var(--c2op, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

.opening-step2 h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tab-title p.tab-lead {
  max-width: 50ch;
  margin: clamp(8px, 1.6vh, 18px) auto 0;
  color: var(--text-secondary);
  font-size: clamp(12px, min(1vw, 1.8vh), 16px);
  line-height: 1.5;
}

/* Le carrousel : quatre téléphones sur un cercle, un onglet du catalogue chacun.
   Le scroll fait tourner l'anneau, Boosters d'abord (avec l'arrivée des tuiles). */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 4;
  perspective: 1700px;
  pointer-events: none;
}

.carousel-lift {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--fy, 38vh), 0) scale(var(--fs, 0.92));
  will-change: transform;
}

/* L'anneau tourne en boucle, indépendamment du scroll. Il ne démarre qu'une fois
   les sets posés sur le premier téléphone. */
.carousel-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  /* à l'arrêt, l'anneau revient à la face Boosters : l'atterrissage des tuiles
     reste ainsi cohérent quand on remonte */
  transform: rotateY(0deg);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pendant l'ouverture, la rotation est écrite par le script à chaque frame : pas
   de transition, sinon elle lisserait le pilotage. Dès qu'on remonte, la
   transformation inline est retirée et l'anneau retombe sur la face Boosters. */
.carousel.is-open .carousel-ring { transition: none; }

/* Les trois autres téléphones apparaissent d'un coup, une fois la liste remplie. */
.stage-phone[data-face="90deg"],
.carousel-ring .stage-phone:not([data-face="0"]) {
  opacity: 0;
  transition: opacity 420ms ease-out;
}

.carousel.is-open .stage-phone { opacity: 1; }

.stage-phone {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fw, min(72vw, 300px, 34dvh));
  margin-left: calc(var(--fw, 260px) / -2);
  margin-top: calc(var(--fw, 260px) * -1.0864);
  padding: 9px;
  border: 1px solid #3f4552;
  border-radius: 44px;
  /* dégradé latéral : donne du galbe à la tranche, le téléphone paraît moins plat */
  background: linear-gradient(96deg, #2b3140 0%, #0a0d13 14%, #05070c 50%, #0a0d13 86%, #2b3140 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 26px 60px rgba(0, 0, 0, 0.55);
  transform: rotateY(var(--face, 0deg)) translateZ(var(--rad, 320px));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* épaisseur du téléphone, proportionnelle à sa largeur */
  --pd: calc(var(--fw, 260px) * 0.055);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stage-phone:active { cursor: grabbing; }

/* Tranches latérales : elles relient la face avant au dos et donnent le volume
   quand l'anneau tourne. */
.phone-edge {
  position: absolute;
  top: 7%;
  bottom: 7%;
  width: var(--pd, 14px);
  border-radius: 2px;
  background: linear-gradient(90deg, #0a0d13, #2b3140 62%, #171b23);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-edge.l {
  left: 0;
  transform-origin: left center;
  transform: rotateY(90deg);
}

.phone-edge.r {
  right: 0;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, #171b23, #2b3140 38%, #0a0d13);
}

/* Dos du téléphone : sans lui, les faces vues de l'arrière disparaissent
   (backface-visibility) et le carrousel semble n'avoir que deux téléphones. */
.phone-back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateZ(calc(var(--pd, 14px) * -1)) rotateY(180deg);
  backface-visibility: hidden;
  background:
    radial-gradient(120% 80% at 30% 8%, rgba(38, 159, 240, 0.10), transparent 60%),
    linear-gradient(158deg, #191d26 0%, #0d1017 52%, #070910 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

/* Bloc caméra */
.phone-back::before {
  content: "";
  position: absolute;
  top: 4.4%;
  left: 7%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 26%;
  background: linear-gradient(150deg, #1d222c, #0b0e14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Deux objectifs dans le bloc */
.phone-back::after {
  content: "";
  position: absolute;
  top: 4.4%;
  left: 7%;
  width: 30%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 31% 30%, #2b323e 0 22%, #0a0d13 23% 30%, transparent 31%),
    radial-gradient(circle at 69% 68%, #2b323e 0 22%, #0a0d13 23% 30%, transparent 31%);
}

.stage-phone .phone-screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: 36px;
  background: #070910;
}

.stage-phone .phone-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La capture pleine prend le relais des tuiles une fois qu'elles sont posées :
   la géométrie étant identique, l'échange ne se voit pas. */
.stage-phone[data-face="0"] .screen-full { opacity: 0; transition: opacity 240ms ease-out; }

.stage-phone.is-done .screen-empty { opacity: 0; }

.stage-phone.is-done .screen-full { opacity: 1; }

.phone-speaker {
  position: absolute;
  z-index: 6;
  top: 17px;
  left: 50%;
  width: 62px;
  height: 15px;
  border-radius: var(--radius-full);
  background: #03050a;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Le liseré d'OP12 est gravé dans la capture : ce cache le masque au repos. */
.screen-band-mask {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 88.25%;
  height: 3.49%;
  background: #0b0d15;
  transition: opacity 260ms ease-out 200ms;
}

.stage-phone.is-filled .screen-band-mask,
.stage-phone.is-done .screen-band-mask { opacity: 0; }

.flight-tiles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 260ms ease-out;
}

.flight-tiles.is-done { opacity: 0; }

.flight-tiles .tile {
  position: absolute;
  top: 50%;
  left: 50%;
  --tile-w: 300px;
  margin-left: calc(var(--tile-w) / -2);
  transform-origin: top center;
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) scale(1) rotate(var(--rot0, 0deg));
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1) var(--lag, 0ms),
    opacity 200ms ease-out var(--lag, 0ms);
}

.flight-tiles.is-filled .tile {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--sc, 1)) rotate(0deg);
  opacity: 1;
}

.flight-tiles .tile:nth-child(2) { --lag: 60ms; }
.flight-tiles .tile:nth-child(3) { --lag: 120ms; }
.flight-tiles .tile:nth-child(4) { --lag: 180ms; }
.flight-tiles .tile:nth-child(5) { --lag: 240ms; }

/* Un titre par onglet, révélé quand son téléphone arrive en face. */
.tab-title { grid-area: 1 / 1; }

.tab-title h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.sec-sub {
  margin: clamp(10px, 2vh, 22px) 0 0;
  color: var(--text);
  font-size: clamp(16px, min(2.4vw, 3vh), 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.join .sec-sub { margin-inline: auto; color: var(--ink); }

.tab-title p.tab-sub {
  max-width: 22ch;
  margin: clamp(10px, 2vh, 22px) auto 0;
  color: var(--text);
  font-size: clamp(16px, min(2.4vw, 3vh), 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (max-height: 700px) {
  .hero-lead { display: none; }
  .tab-lead { display: none; }
}

@media (max-width: 900px) {
  .stage-phone { border-radius: 38px; }
  .stage-phone .phone-screen { border-radius: 30px; }
  .phone-speaker { top: 15px; width: 56px; height: 13px; }
}

@media (max-width: 420px) {
  .tab-title h2 { font-size: clamp(30px, 9vw, 44px); }
  .stage-phone { border-radius: 32px; }
  .stage-phone .phone-screen { border-radius: 25px; }
  .phone-speaker { top: 12px; width: 48px; height: 11px; }
}

@media (max-width: 600px) {
  .hero-brand { width: 60vw; }
  .hero-actions { display: grid; gap: 8px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .opening { height: auto; }
  .opening-stage { position: static; height: auto; padding: 40px 0 72px; }
  .opening-copy,
  .opening-step2 { position: static; transform: none; opacity: 1; }
  .opening-step2 { padding-top: 64px; }
  .tab-title { position: static; opacity: 1; }
  .tab-title:not(:first-child) { display: none; }
  .opening-step2 { display: block; }
  .carousel { position: static; perspective: none; }
  .carousel-lift,
  .carousel-ring { position: static; width: auto; height: auto; transform: none; animation: none; }
  .carousel.is-open .stage-phone,
  .carousel-ring .stage-phone:not([data-face="0"]) { opacity: 1; }
  .phone-back { display: none; }
  .phone-edge { display: none; }
  .stage-phone {
    position: static;
    width: min(72vw, 300px);
    margin: 32px auto 0;
    transform: none;
    filter: none;
  }
  .stage-phone:not([data-face="0"]) { display: none; }
  .flight-tiles,
  .screen-band-mask,
  .tile-row,
  .phone-screen .screen-empty { display: none; }
  .phone-screen .screen-full { opacity: 1; }
}

/* ---------- Tuiles catalogue (géométrie de CatalogueScreen.tsx) ---------- */

.tile {
  position: relative;
  width: var(--tile-w, 360px);
  flex: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--band-3);
}

.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Tuiles découpées dans les captures : l'habillage est déjà dans l'image, et le
   découpage porte déjà le bord arrondi de l'app. */
.tile-shot {
  aspect-ratio: 734 / 196;
  border: 0;
}

@media (max-width: 900px) {
  .tile { --tile-w: 320px; }
}

@media (max-width: 600px) {
  .tile { --tile-w: 300px; }
}

/* ---------- Catégories du catalogue autour du carrousel ----------
   Traitement verre : blanc translucide, liseré clair, flou d'arrière-plan.
   Les quatre groupes sont disposés symétriquement autour du cylindre et
   arrivent avec les téléphones, ligne par ligne. */

.cat-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr var(--cyl, 340px) 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: clamp(24px, 6vw, 90px);
  row-gap: clamp(12px, 2.4vh, 30px);
  padding: calc(var(--head-h, 150px) + 16px) clamp(12px, 2.4vw, 48px) clamp(16px, 3vh, 40px);
  pointer-events: none;
}

/* Colonne du milieu laissée au cylindre : les groupes se répartissent
   deux à gauche, deux à droite, à la même distance du centre. */
.cat-group {
  width: 100%;
  max-width: clamp(150px, 19vw, 260px);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* La catégorie dont l'écran est devant scintille en bleu MerryTCG, ligne à ligne. */
.cat-group.is-active .cat-tab {
  color: #a6dcff;
  text-shadow: 0 0 8px rgba(38, 159, 240, 0.85), 0 0 26px rgba(38, 159, 240, 0.6);
}

.cat-group.is-active .cat-line {
  animation: cat-shine 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes cat-shine {
  0%, 100% { color: #fff; text-shadow: 0 0 6px rgba(38, 159, 240, 0.25); }
  50% { color: #e6f5ff; text-shadow: 0 0 7px rgba(140, 210, 255, 0.9), 0 0 22px rgba(38, 159, 240, 0.85); }
}

/* pointeur réactivé sur la carte seule, pas sur la grille qui couvre la scène */
@media (hover: hover) and (pointer: fine) {
  .cat-group { pointer-events: auto; }
}

.cat-group:nth-child(1) { grid-area: 1 / 1; justify-self: end; }
.cat-group:nth-child(2) { grid-area: 2 / 1; justify-self: end; }
.cat-group:nth-child(3) { grid-area: 1 / 3; justify-self: start; }
.cat-group:nth-child(4) { grid-area: 2 / 3; justify-self: start; }

/* Survol : le texte se éclaircit, rien d'autre. Pas de cartouche. */
@media (hover: hover) and (pointer: fine) {
  .cat-group:hover .cat-line .w { opacity: 1; }
  .cat-group:hover .cat-tab { color: rgba(255, 255, 255, 0.9); }
}

.cat-tab {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 260ms ease;
}

.cat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.cat-group.is-wide .cat-list { grid-template-columns: 1fr 1fr; column-gap: 18px; }

.cat-line {
  color: #fff;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 260ms ease;
}

/* Remplissage lié au scroll : chaque mot part à 0.38 d'opacité et monte à 1,
   décalé mot par mot. L'opacité est écrite en ligne à chaque frame (pas de
   transition CSS), donc ça avance et recule avec la molette. */
.cat-line .w {
  display: inline-block;
  opacity: var(--wo, 0.38);
}

/* Arrivée : simple fondu du groupe. Le remplissage mot par mot fait le reste. */
.cat-group {
  opacity: 0;
  transform: translateY(-6px);
}

.opening-stage.is-open .cat-group {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease-out, transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* These properties are indexed directly to scroll position by the script. */
.opening-stage.is-scrubbed .flight-tiles,
.opening-stage.is-scrubbed .flight-tiles .tile,
.opening-stage.is-scrubbed .carousel-ring,
.opening-stage.is-scrubbed .carousel-ring .stage-phone,
.opening-stage.is-scrubbed .screen-empty,
.opening-stage.is-scrubbed .screen-full,
.opening-stage.is-scrubbed .screen-band-mask,
.opening-stage.is-scrubbed .cat-group {
  transition: none;
}

.opening-stage.is-scrubbed .cat-line .w { opacity: 1; }
.opening.is-offscreen .tile-row { animation-play-state: paused; }

/* Aperçu figé (index.html?p=…) : seule la scène d'ouverture est rendue, sur une
   hauteur d'écran, pour photographier une étape précise sans scroller. */
html.is-forced .ticker,
html.is-forced .nav,
html.is-forced .footer,
html.is-forced main > *:not(.opening) { display: none; }
html.is-forced .opening { height: 100vh; min-height: 0; }
html.is-forced .opening-stage { position: relative; top: 0; height: 100vh; }

/* Mobile : les quatre listes deviennent quatre courts paragraphes sous le
   cylindre — une étiquette, puis les libellés au fil du texte. Bien plus tenu
   qu'une grille de colonnes étroites. */
@media (max-width: 999px) {
  .cat-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: end;
    justify-items: center;
    row-gap: clamp(10px, 1.6vh, 16px);
    column-gap: 0;
    padding: 0 22px clamp(14px, 3vh, 28px);
  }
  /* paliers de repli : en-têtes seuls, puis bloc retiré — jamais de texte réduit */
  .cat-wrap.is-tabs .cat-list,
  .cat-wrap.is-tabs .cat-group.is-wide .cat-list { display: none; }
  .cat-wrap.is-tabs .cat-tab { margin-bottom: 0; }
  .cat-wrap.is-tabs .cat-tab::after { content: none; }
  .cat-wrap.is-off { display: none; }
  .cat-group,
  .cat-group:nth-child(n) {
    grid-area: auto;
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }
  /* chaque catégorie tient sur une seule coulée : en-tête puis ses libellés,
     séparés par des points — les quatre groupes tiennent alors sous le téléphone */
  .cat-tab {
    display: inline;
    margin: 0 6px 0 0;
    font-size: 9.5px;
    letter-spacing: 0.15em;
  }
  .cat-tab::after {
    content: "\00b7\00a0";
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0;
  }
  .cat-list,
  .cat-group.is-wide .cat-list {
    display: inline;
    grid-template-columns: none;
  }
  .cat-line {
    display: inline;
    white-space: normal;
    overflow: visible;
    font-size: 13px;
    line-height: 1.55;
  }
  .cat-line + .cat-line::before {
    content: "\00b7\00a0";
    color: rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 380px) {
  .cat-line { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-line .w { opacity: 1; }
  .cat-group,
  .cat-tab,
  .cat-line { opacity: 1; transform: none; filter: none; }
}

/* Champ de tuiles derrière l'écran 1 : rangées alternées, boucle infinie. */

.tile-field {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 56vh;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
  opacity: var(--field-op, 0.42);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 86%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 0%, #000 86%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-composite: intersect;
}

.tile-row { display: flex; gap: 14px; width: max-content; animation: tile-scroll var(--dur, 64s) linear infinite; }

.tile-row.rev { animation-direction: reverse; }

@keyframes tile-scroll { to { transform: translateX(-50%); } }

/* Voile radial : le type reste lisible par-dessus les tuiles. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(62% 48% at 50% 33%, rgba(11, 13, 20, 0.93) 0%, rgba(11, 13, 20, 0.85) 44%, rgba(11, 13, 20, 0) 100%);
}

/* ---------- Steps rail ---------- */

.rail { padding: 0; background: var(--band); }

.rail-inner { display: grid; grid-template-columns: repeat(4, 1fr); }

.rail article { padding: 36px 32px 40px 0; border-right: 1px solid var(--border); }

.rail article:last-child { border-right: 0; padding-right: 0; }

.rail article:not(:first-child) { padding-left: 32px; }

.rail-num {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 0.8;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.rail strong {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rail p { margin-top: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ---------- Feature blocks: square tile + huge type ---------- */

.section { padding: 104px 0; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.feature + .feature { margin-top: clamp(72px, 10vw, 148px); }

.feature.flip .feature-tile { order: 2; }

.feature-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--band-3);
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.js-reveal .feature-tile[data-reveal] img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.js-reveal .feature-tile[data-reveal].is-visible img { clip-path: inset(0); }

.js-reveal .feature-tile[data-reveal].is-above img { clip-path: inset(100% 0 0 0); }

.feature-copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 94px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 16ch;
}

.feature-copy > p {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.feature-meta {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.feature-meta li {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-meta li::before { content: "◆ "; color: var(--blue); }

.feature-meta li.gold::before { color: var(--gold); }

/* ---------- Section heading (full width) ---------- */

.section-heading { text-align: center; }

.section-heading h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-heading > p {
  max-width: 58ch;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Trade list ---------- */

.trade-list { max-width: 1000px; margin: 56px auto 0; border-top: 1px solid var(--border); }

.trade-row {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
}

.trade-state { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.trade-row.exchange .trade-state { color: var(--exchange); }

.trade-row.sell .trade-state { color: var(--sale); }

.trade-row h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trade-row p { margin-top: 6px; max-width: 58ch; color: var(--text-secondary); font-size: 15px; }

.trade-note { max-width: 1000px; margin: 22px auto 0; color: var(--text-muted); font-size: 12px; }

/* ---------- Pro ---------- */

.pro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(44px, 7vw, 104px); align-items: center; }

.pro-layout h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 14ch;
}

.pro-layout > div > p { max-width: 46ch; margin-top: 24px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }

.pro-panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--band-3);
}

.pro-panel h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pro-panel > p { margin-top: 10px; color: var(--text-muted); font-size: 14px; }

.pro-contact { margin-top: 24px; display: grid; gap: 14px; }

/* ---------- Join poster band ---------- */

.join { padding: 104px 0; background: var(--blue); color: var(--ink); text-align: center; }

.join h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 9.6vw, 176px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.join .micro { color: rgba(5, 8, 15, 0.85); }

.join-lead { max-width: 46ch; margin: 24px auto 0; color: rgba(5, 8, 15, 0.8); font-size: 16px; }

.join-form { max-width: 520px; margin: 36px auto 0; text-align: left; }

.capture { display: grid; gap: 14px; }

.capture-fields { display: grid; grid-template-columns: 1fr 0.85fr; gap: 12px; }

.field-group { display: grid; gap: 8px; }

.field-group label { color: var(--text-secondary); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.field-group label span { color: var(--text-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
}

.field-group input::placeholder { color: var(--text-muted); }

.field-group input:focus { outline: none; border-color: var(--blue); }

.join .field-group label { color: rgba(5, 8, 15, 0.74); }

.join .field-group label span { color: rgba(5, 8, 15, 0.85); }

.join .field-group input { border-color: rgba(5, 8, 15, 0.26); background: #fff; color: var(--ink); }

.join .field-group input::placeholder { color: rgba(5, 8, 15, 0.4); }

.join .field-group input:focus { border-color: var(--ink); }

.capture-submit { width: 100%; }

.join .capture-submit {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text);
}

.join .capture-submit:hover { background: #101724; color: var(--text); }


.capture-rgpd { color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.join .capture-rgpd { color: rgba(5, 8, 15, 0.85); }

.capture-error { color: #6d0f1e; font-size: 11px; }

.pro-contact .capture-error { color: #ff8585; }

.capture-success {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(5, 8, 15, 0.26);
  border-radius: var(--radius-lg);
}

.pro-panel .capture-success { border-color: var(--border); }

.success-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--blue);
  font-weight: 800;
}

.capture-success strong { display: block; }

.capture-success p { margin-top: 3px; font-size: 13px; opacity: 0.75; }

/* ---------- FAQ ---------- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(44px, 7vw, 104px); align-items: start; }

.faq-layout h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.faq-layout header p { margin-top: 22px; color: var(--text-secondary); font-size: 16px; }

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  min-height: 68px;
  padding: 18px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus { color: var(--text-muted); font-size: 22px; font-weight: 400; transition: transform 160ms ease; }

.faq-item[open] .faq-plus { transform: rotate(45deg); color: var(--blue); }

.faq-item p { max-width: 70ch; padding: 0 44px 22px 2px; color: var(--text-secondary); font-size: 14px; }

/* ---------- Surfaces qui s’ouvrent : menu mobile, FAQ, confirmations ---------- */

@keyframes surface-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes confirm-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.nav-menu.is-open { animation: surface-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.faq-item[open] > p { animation: answer-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.faq-item summary { transition: color 140ms ease; }

.faq-item summary:hover { color: var(--blue); }

.capture-success { animation: confirm-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .nav-menu.is-open,
  .faq-item[open] > p,
  .capture-success { animation: none; }
}


/* ---------- Scanner : command deck ----------
   Un écran, une grande scène produit. La démonstration montre ce que le moteur
   multiscan fait vraiment : plusieurs cartes détectées, balayées, verrouillées,
   regroupées en session, avec de l'XP sur une première découverte. */
.deck {
  position: relative;
  padding: clamp(64px, 9vh, 118px) 0 clamp(56px, 8vh, 104px);
  background: var(--bg);
}

.deck-head { max-width: 74ch; }

.deck-kicker {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deck-title {
  margin: clamp(8px, 1.4vh, 16px) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 122px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.deck-lede {
  max-width: 62ch;
  margin: clamp(14px, 2vh, 24px) 0 0;
  color: #fff;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* --- La scène : champ caméra + panneau de session --- */
.deck-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 25vw, 340px);
  gap: 1px;
  margin-top: clamp(28px, 4.5vh, 56px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(38, 159, 240, 0.1), 0 40px 90px rgba(0, 0, 0, 0.5);
}

.deck-field { display: grid; grid-template-rows: auto minmax(0, 1fr); background: #06080e; }

.field-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.field-modes { display: flex; gap: 6px; }

.field-modes b {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-modes b.is-on {
  border-color: rgba(38, 159, 240, 0.55);
  background: rgba(38, 159, 240, 0.12);
  color: #a6dcff;
}

.field-note { color: var(--text-muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.field-view {
  position: relative;
  container-type: size;
  aspect-ratio: 16 / 12;
  background:
    linear-gradient(180deg, rgba(38, 159, 240, 0.05), transparent 42%),
    radial-gradient(120% 90% at 50% 0%, #0d1119 0%, #06080e 68%);
  overflow: hidden;
}

/* balayage bleu : une passe par boucle */
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--blue) 18%, #cfe9ff 50%, var(--blue) 82%, transparent);
  box-shadow: 0 0 14px 1px rgba(38, 159, 240, 0.45);
  transition: opacity 180ms linear;
}

/* --- Cartes du champ : silhouettes neutres, pas de faux visuel --- */
.dcard {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  aspect-ratio: 63 / 88;
  opacity: 0;
  transform: rotate(var(--r)) scale(0.96);
  transition: opacity 300ms ease-out, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dcard.is-in { opacity: 1; transform: rotate(var(--r)) scale(1); }

.dcard-art {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0 32%, rgba(255, 255, 255, 0.02) 32% 100%),
    #141821;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 26px rgba(0, 0, 0, 0.5);
}

/* quadrilatère de détection : coins seuls, puis cadre plein au verrouillage */
.quad { position: absolute; inset: -5%; }

.quad i {
  position: absolute;
  width: 16%;
  height: 11%;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  transition: border-color 200ms ease;
}

.quad i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.quad i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.quad i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.quad i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.dcard.is-scanning .quad i { border-color: var(--blue); }

.dcard.is-matched .quad {
  border: 1px solid var(--blue);
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(38, 159, 240, 0.28);
}

.dcard.is-matched .quad i { border-color: transparent; }

.dcard.is-new.is-matched .quad {
  border-color: var(--gold);
  box-shadow: 0 0 11px rgba(242, 201, 76, 0.3);
}

.dstat {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: rgba(5, 8, 15, 0.82);
  color: rgba(255, 255, 255, 0.6);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dcard.is-matched .dstat { color: #a6dcff; }
.dcard.is-new.is-matched .dstat { color: var(--gold); }

/* --- Panneau de session --- */
.deck-session {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #080b12;
}

.ses-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.ses-label { color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.ses-count { color: #fff; font-size: 12px; font-weight: 500; }
.ses-count b { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--blue); }

.ses-list { display: grid; align-content: start; gap: 1px; margin: 0; padding: 0; list-style: none; }

.ses-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(42, 45, 58, 0.6);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 320ms ease-out, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ses-row.is-in { opacity: 1; transform: none; }

.ses-thumb {
  width: 26px;
  aspect-ratio: 63 / 88;
  border-radius: 3px;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 34%, rgba(255, 255, 255, 0.02) 34%), #141821;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ses-txt { min-width: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.3; }

.ses-txt b {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.ses-qty { color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.ses-xp {
  padding: 3px 8px;
  border: 1px solid rgba(242, 201, 76, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ses-row.is-gold.is-xp {
  border-color: rgba(242, 201, 76, 0.34);
  background: rgba(242, 201, 76, 0.07);
}

.ses-row.is-gold.is-xp .ses-xp {
  border-color: var(--gold);
  background: rgba(242, 201, 76, 0.16);
  animation: xp-pulse 1400ms ease-out 1;
}

@keyframes xp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(242, 201, 76, 0); }
}

.ses-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

/* --- Trois signaux sous la scène --- */
.deck-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  margin: clamp(22px, 3.5vh, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.deck-signals li {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: #fff;
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.deck-signals b {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .deck-scene { grid-template-columns: minmax(0, 1fr); }
  .field-view { aspect-ratio: 16 / 13; }
  .deck-session { grid-template-rows: auto auto auto; }
  .deck-signals { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  .ses-txt { font-size: 14px; }
  .ses-txt b { font-size: 16px; }
  .ses-qty { font-size: 15px; }
  .ses-foot { font-size: 13px; }
  .field-bar { flex-wrap: wrap; gap: 8px; }
  .field-note { font-size: 9px; }
  .field-view { aspect-ratio: 16 / 15; }
  .dstat { font-size: 7.5px; padding: 2px 5px; }
  .ses-txt b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .scanline { display: none; }
  .dcard, .ses-row { transition: none; }
  .ses-row.is-gold.is-xp .ses-xp { animation: none; }
}


/* ---------- Valeur · Portfolio ----------
   Constellation : le Portfolio au centre, trois satellites ancrés autour de lui.
   Trois couches de transformation distinctes : .pv-arrival (scroll), .pv-follow
   (parallaxe souris), .pv-float (respiration) — jamais deux sur le même canal. */
.pv-section {
  --shade: 0.25;
  position: relative;
  height: 160svh;
  background: var(--bg-deep);
}

.pv-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100svh;
  padding: clamp(44px, 7svh, 84px) max(20px, calc((100vw - 1320px) / 2)) clamp(20px, 4svh, 44px);
  overflow: clip;
}

.pv-copy {
  position: relative;
  z-index: 8;
  max-width: 720px;
  text-align: center;
  pointer-events: none;
}

.pv-eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pv-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.pv-desc {
  max-width: 52ch;
  margin: clamp(14px, 2.2svh, 24px) auto 0;
  color: #fff;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.pv-world {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: clamp(10px, 2svh, 26px);
  perspective: 1600px;
  transform-style: preserve-3d;
}

/* seule lumière du décor : une nappe bleue très diffuse derrière le Portfolio */
.pv-world::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 70%;
  height: 78%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(38, 159, 240, 0.13), rgba(38, 159, 240, 0.04) 58%, transparent 100%);
  pointer-events: none;
}

.pv-core,
.pv-satellite {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  transition: opacity 520ms cubic-bezier(.22, 1, .36, 1);
}

.pv-core { left: 50%; top: 50%; translate: -50% -50%; z-index: 6; cursor: zoom-in; color: inherit; font: inherit; }
.pv-scan { left: 8%; top: 24%; z-index: 4; }
.pv-market { right: 6%; top: 5%; z-index: 2; }
.pv-collection { right: 2%; bottom: 3%; z-index: 5; }

.pv-satellite { cursor: pointer; }
.pv-core:focus-visible, .pv-satellite:focus-visible { outline: 2px solid var(--blue); outline-offset: 12px; border-radius: 20px; }

.pv-arrival { transform-style: preserve-3d; will-change: transform, opacity; }

.pv-follow {
  transform: translate3d(var(--follow-x, 0px), var(--follow-y, 0px), 0) rotateX(var(--follow-rx, 0deg)) rotateY(var(--follow-ry, 0deg));
  transition: filter 220ms ease, opacity 220ms ease;
  transform-style: preserve-3d;
}

.pv-float { transform-style: preserve-3d; }

.pv-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #05070b;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, calc(0.72 * var(--shade))),
    0 0 0 1px rgba(38, 159, 240, calc(0.22 * var(--shade)));
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), var(--tz, 0px)) scale(var(--sc, 1));
  transform-origin: center;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1), box-shadow 300ms ease, filter 300ms ease;
}

.pv-core .pv-media { border-radius: 20px; }

.pv-media > video,
.pv-media > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.pv-satellite .pv-media { filter: brightness(0.78) saturate(0.94); }

.pv-tag {
  display: block;
  margin-top: 10px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

/* respiration : ancres conservées, amplitudes et phases distinctes */
@keyframes pv-drift-a { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(0.9deg); } }
@keyframes pv-drift-b { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(7px) rotate(-1.1deg); } }
@keyframes pv-drift-c { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(0.6deg); } }
@keyframes pv-drift-core { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.pv-core .pv-float { animation: pv-drift-core 9s ease-in-out infinite; }
.pv-scan .pv-float { animation: pv-drift-a 6.4s ease-in-out -1.2s infinite; }
.pv-market .pv-float { animation: pv-drift-b 7.9s ease-in-out -3.4s infinite; }
.pv-collection .pv-float { animation: pv-drift-c 5.4s ease-in-out -2.1s infinite; }

/* survol desktop : le satellite avance, les autres reculent, le Portfolio reste */
@media (hover: hover) and (pointer: fine) {
  .pv-satellite:hover .pv-media,
  .pv-satellite:focus-visible .pv-media {
    --sc: 1.08;
    --tz: 80px;
    filter: none;
    box-shadow: 0 48px 110px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(38, 159, 240, 0.38);
  }
  .pv-satellite:hover .pv-tag { color: rgba(255, 255, 255, 0.78); }
}

/* la légende du satellite droite passe au-dessus de son écran : la carte
   Collection occupe la bande qui suit, elle mangeait le libellé */
.pv-market { display: flex; flex-direction: column-reverse; }
.pv-market .pv-tag { margin: 0 0 10px; }

.pv-backdrop {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.pv-world[data-open="true"] .pv-backdrop { display: block; }
.pv-world[data-open="true"] .pv-core { opacity: 0.32; }
.pv-world[data-open="true"] .pv-satellite:not([data-expanded="true"]) { opacity: 0.12; }

.pv-satellite[data-expanded="true"] { z-index: 20; }
.pv-satellite[data-expanded="true"] .pv-float { animation: none; transition: transform 520ms cubic-bezier(.22, 1, .36, 1); }
.pv-satellite[data-expanded="true"] .pv-follow { transition: transform 520ms cubic-bezier(.22, 1, .36, 1); }
.pv-satellite[data-expanded="true"] .pv-media { filter: none; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(38, 159, 240, 0.34); }
.pv-satellite[data-expanded="true"] .pv-tag { opacity: 0; }

@media (max-width: 1100px) {
  .pv-scan { left: 4%; top: 22%; }
  .pv-market { right: 3%; top: 6%; }
  .pv-collection { right: 0%; bottom: 2%; }
}

@media (max-width: 720px) {
  .pv-section { height: 155svh; }
  .pv-core { top: 34%; }
  .pv-scan { left: 0; top: auto; bottom: 4%; }
  .pv-market { right: 36%; top: auto; bottom: 0; }
  .pv-collection { right: 0; bottom: 8%; }
  .pv-tag { display: none; }
  .pv-title { font-size: clamp(40px, 11vw, 58px); }
}

@media (prefers-reduced-motion: reduce) {
  .pv-section { --shade: 1; }
  .pv-world { perspective: none; }
  .pv-arrival { transform: none !important; opacity: 1 !important; }
  .pv-follow { transform: none; }
  .pv-float { animation: none !important; }
  .pv-media { transition: opacity 100ms linear, transform 100ms linear; }
  .pv-copy { opacity: 1 !important; transform: none !important; }
}


/* ---------- Vitrine · progression · récompenses ----------
   World: MerryTCG existing tokens. Media: unchanged app cosmetics.
   One cinematic gesture; no continuous scroll-lock or full-screen flash. */
.rw { padding: 100px 0 110px; background: var(--bg-deep); overflow: clip; }
.rw [hidden] { display: none !important; }
.rw-wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.rw-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.rw-heading h2 { font: 400 clamp(52px, 6.2vw, 88px)/.98 var(--display); letter-spacing: 0; text-wrap: balance; }
.rw-heading > p { max-width: 350px; padding-bottom: 8px; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
.rw-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; align-items: start; }
.rw-copy { padding-top: 40px; }
.rw-steps { padding: 0; margin: 0; list-style: none; }
.rw-steps li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 14px; margin-bottom: 32px; }
.rw-step-no { font-size: 12px; color: var(--blue); padding-top: 5px; font-variant-numeric: tabular-nums; }
.rw-steps h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin-bottom: 10px; letter-spacing: -.02em; }
.rw-steps p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.rw-steps strong { color: var(--text); font-weight: 600; }
.rw-join { display: inline-flex; min-height: 48px; align-items: center; gap: 24px; color: var(--text); border-bottom: 1px solid var(--blue); font-weight: 700; }
.rw-join span { color: var(--blue); font-size: 23px; }
.rw-note { color: var(--text-secondary); font-size: 12px; margin-top: 14px; }
.rw-experience { min-width: 0; position: relative; }
.rw-stage { position: relative; height: 530px; isolation: isolate; perspective: 1200px; }
.rw-progress { position: absolute; z-index: 5; top: 0; left: 4%; width: 230px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--text-secondary); }
.rw-progress strong { font-size: 22px; font-weight: 700; color: var(--text); }
.rw-progress-track { width: 100%; height: 3px; background: var(--border); overflow: hidden; }
.rw-progress-track i { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.rw-profile { width: 318px; position: absolute; right: 0; top: 72px; border-radius: 16px; background: #10151f; box-shadow: 0 24px 60px #0007; transform: rotateY(-12deg) rotateZ(5deg) scale(.88); opacity: .48; transition: transform 700ms cubic-bezier(.22,1,.36,1), opacity 450ms ease; }
.rw-profile-banner { width: 100%; aspect-ratio: 1200 / 520; overflow: hidden; border-radius: 16px 16px 0 0; }
.rw-profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.rw-profile-body { padding: 0 22px 24px; position: relative; }
.rw-profile-avatar { position: relative; margin-top: -36px; width: 76px; height: 76px; border-radius: 50%; border: 4px solid #10151f; background: #10151f; overflow: hidden; }
.rw-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rw-profile-level { position: absolute; right: 24px; top: 52px; color: var(--text-secondary); font-size: 12px; }
.rw-profile-name { font-size: 26px; letter-spacing: -.02em; font-weight: 750; margin-top: 12px; line-height: 1.15; }
.rw-profile-title { font-size: 12px; margin-top: 7px; color: var(--blue); }
.rw-profile-nav { display: flex; gap: 20px; margin-top: 24px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.rw-profile-nav span { padding-bottom: 10px; }
.rw-profile-nav span:first-child { color: var(--text); border-bottom: 2px solid var(--blue); }
.rw-profile-message { font-size: 15px; line-height: 1.5; margin-top: 19px; }
.rw-profile-modules { display: flex; gap: 18px; margin-top: 16px; color: var(--text-secondary); font-size: 12px; }
.rw-profile-caption { color: var(--text-secondary); font-size: 11px; padding: 0 22px 16px; }
.rw-pack-place { position: absolute; top: 87px; left: 10%; width: 237px; z-index: 10; transform: rotate(-9deg); }
.rw-pack { display: block; position: relative; width: 100%; aspect-ratio: 911/1495; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; touch-action: pan-y; transition: transform 200ms cubic-bezier(.22,1,.36,1); }
.rw-pack img { position: absolute; width: 100%; height: auto; max-width: none; pointer-events: none; }
.rw-pack-intact { inset: 0; }
.rw-pack-body { left: 0; top: 2.273%; opacity: 0; }
.rw-pack-strip { top: 0; left: 0; opacity: 0; }
.rw-pack-hint { position: absolute; width: max-content; max-width: 125%; bottom: -35px; left: 50%; transform: translateX(-50%) rotate(9deg); display: flex; align-items: center; gap: 22px; padding: 10px 18px; background: var(--text); color: var(--ink); border-radius: var(--radius-full); font-size: 13px; font-weight: 750; box-shadow: 0 8px 24px #0004; }
.rw-pack:disabled { cursor: progress; }
.rw-pack:disabled .rw-pack-hint { opacity: .6; }
.rw-pack:active { transform: scale(.97); }
.rw-pack:focus-visible { outline: 2px solid var(--gold); outline-offset: 12px; border-radius: 8px; }
.rw-reveal { position: absolute; top: 130px; left: 2%; width: 270px; text-align: center; z-index: 12; }
.rw-reveal-art { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; margin: 16px auto 18px; box-shadow: 0 16px 36px #0006; }
.rw-reveal-kicker { color: var(--blue); font-size: 12px; }
.rw-reveal h3 { font-size: 24px; line-height: 1.2; margin-bottom: 7px; }
.rw-reveal > p:not(.rw-reveal-kicker) { font-size: 12px; color: var(--text-secondary); }
.rw-equip { margin-top: 18px; min-height: 46px; padding: 10px 18px; background: var(--blue); color: var(--ink); border: 0; border-radius: var(--radius-full); cursor: pointer; font-size: 13px; font-weight: 750; }
.rw-equip:active, .rw-option:active { transform: scale(.97); }
.rw-equip:disabled { cursor: default; opacity: .7; }
.rw-burst { position: absolute; inset: 0; pointer-events: none; z-index: 15; }
.rw-particle { position: absolute; left: 29%; top: 46%; width: 4px; height: 12px; background: var(--blue); border-radius: 1px; }
.rw-flight { position: fixed; z-index: 200; pointer-events: none; object-fit: cover; border-radius: 50%; transform-origin: top left; }
.rw-demo-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 45px; border-bottom: 1px solid var(--border); }
.rw-demo-bar p { font-size: 11px; color: var(--text-secondary); }
.rw-replay { min-height: 44px; border: 0; padding: 6px 0 6px 16px; color: var(--text); background: none; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.rw-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rw-gallery { margin-top: 22px; }
.rw-gallery-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; align-items: center; }
.rw-gallery-heading h3 { font-size: 23px; letter-spacing: -.02em; }
.rw-gallery-heading p { font-size: 12px; color: var(--text-secondary); }
.rw-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rw-options-banners { margin-top: 15px; }
.rw-option { display: grid; gap: 5px; min-width: 0; text-align: left; border: 0; padding: 8px; border-radius: 12px; background: none; color: var(--text); cursor: pointer; transition: background-color 160ms, transform 160ms; }
.rw-option[aria-pressed="true"] { background: #162a3a; outline: 1px solid var(--blue); }
.rw-option img { width: 100%; height: auto; aspect-ratio: 1200/520; object-fit: cover; border-radius: 6px; margin-bottom: 5px; }
.rw-option-avatar img { width: 65px; height: 65px; border-radius: 50%; }
.rw-option span { font-size: 12px; font-weight: 650; line-height: 1.3; }
.rw-option small { font-size: 11px; color: var(--text-secondary); }
.rw-experience[data-rw-state="revealed"] .rw-profile { opacity: .82; transform: rotateY(-5deg) rotateZ(2deg) scale(.94); }
.rw-experience[data-rw-state="styled"] .rw-profile { opacity: 1; transform: rotateY(0deg) rotateZ(0deg) scale(1); }
.rw-experience[data-rw-state="styled"] .rw-reveal { opacity: .55; }
@media (hover:hover) and (pointer:fine) {
  .rw-pack:not(:disabled):hover { transform: translateY(-7px) rotate(3deg); }
  .rw-option:hover { background: #17212e; }
  .rw-equip:hover { background: #5cbcff; }
}
@media (max-width:1080px) {
  .rw-layout { grid-template-columns: 280px minmax(0,1fr); gap: 28px; }
  .rw-profile { width: 280px; }
  .rw-pack-place { left: 0; width: 210px; top: 110px; }
  .rw-reveal { width: 215px; left: -3%; }
  .rw-reveal-art { width: 155px; height: 155px; }
  .rw-progress { left: 0; }
  .rw-heading > p { max-width: 290px; font-size: 15px; }
}
@media (max-width:800px) {
  .rw { padding: 72px 0 80px; }
  .rw-wrap { width: min(640px,calc(100% - 40px)); }
  .rw-heading { display: block; margin-bottom: 28px; }
  .rw-heading h2 { font-size: clamp(48px,9vw,70px); }
  .rw-heading > p { margin-top: 20px; max-width: 440px; }
  .rw-layout { display: flex; flex-direction: column; gap: 30px; }
  .rw-copy { display: contents; }
  .rw-steps { order: 2; }
  .rw-steps li { margin-bottom: 20px; }
  .rw-steps h3 { font-size: 17px; margin-bottom: 6px; }
  .rw-steps p { font-size: 14px; }
  .rw-experience { order: 1; width: 100%; }
  .rw-join { order: 3; align-self: flex-start; }
  .rw-copy > .rw-note { order: 4; margin-top: -20px; }
  .rw-stage { height: 480px; }
  .rw-profile { width: 270px; top: 70px; }
  .rw-pack-place { left: 10%; top: 84px; width: 218px; }
  .rw-progress { left: 4%; }
  .rw-reveal { top: 125px; width: 230px; left: 0; }
}
@media (max-width:480px) {
  .rw-wrap { width: calc(100% - 36px); }
  .rw-heading h2 { font-size: clamp(45px,12vw,58px); }
  .rw-stage { height: 520px; }
  .rw-profile { width: 250px; right: -18px; top: 70px; transform: rotateY(-8deg) rotateZ(5deg) scale(.8); }
  .rw-profile-body { padding-inline: 18px; }
  .rw-profile-name { font-size: 23px; }
  .rw-profile-message { font-size: 14px; }
  .rw-pack-place { width: 195px; left: 30px; top: 80px; }
  .rw-progress { left: 0; width: 205px; }
  .rw-experience[data-rw-state="revealed"] .rw-profile { opacity: 0; transform: translateX(16px) rotateZ(4deg) scale(.8); }
  .rw-reveal { top: 98px; left: calc(50% - 135px); width: 270px; }
  .rw-reveal-art { width: 160px; height: 160px; margin-block: 12px; }
  .rw-experience[data-rw-state="styled"] .rw-profile { right: calc(50% - 140px); width: 280px; top: 65px; }
  .rw-experience[data-rw-state="styled"] .rw-reveal { visibility: hidden; }
  .rw-demo-bar p { max-width: 230px; line-height: 1.5; }
  .rw-gallery-heading { display: block; }
  .rw-gallery-heading p { margin-top: 8px; }
  .rw-options { gap: 6px; }
  .rw-option { padding: 7px 5px; }
  .rw-option span { font-size: 11px; }
  .rw-option small { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .rw *, .rw *::before, .rw *::after { scroll-behavior: auto; transition: none !important; animation: none !important; }
  .rw-profile { transform: none !important; }
  .rw-pack-place { transform: none; }
  .rw-pack-hint { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */

.footer { padding: 72px 0 28px; background: var(--bg-deep); border-top: 1px solid var(--border); }

.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }

.footer-logo { width: 150px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }

.footer-logo img { display: block; height: auto; }
.footer-logo .brand-merry { width: 100%; }
.footer-logo .brand-tcg { width: 30%; }

.footer-brand > p { max-width: 250px; margin-top: 8px; color: var(--text-secondary); font-size: 14px; }

.store-status { margin-top: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.store-status span {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-status small { color: var(--text-muted); font-size: 11px; }

.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

.footer-links strong { margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.footer-links a { min-height: 36px; display: inline-flex; align-items: center; color: var(--text-muted); font-size: 13px; }

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
}

/* ---------- Legal pages ---------- */

.legal-page { min-height: 70vh; padding: 64px 0 96px; }

.legal-content { max-width: 820px; }

.legal-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.032em;
  text-transform: uppercase;
}

.h-section {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}


.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead { margin-top: 22px; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }

.legal-updated { margin-top: 12px; color: var(--text-muted); font-size: 13px; }

.legal-content section { margin-top: 44px; }

.legal-content h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-content h3 { font-size: 16px; }

.legal-content p,
.legal-content li { color: var(--text-secondary); line-height: 1.75; }

.legal-content p + p { margin-top: 14px; }

.legal-content ul { display: grid; gap: 8px; }

.legal-content a:not(.btn):not(.legal-back) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 40px); }
  .nav-links a { padding-inline: 14px; font-size: 11px; }
  .pro-layout { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 900px) {
  .nav { padding: 12px 0; }
  .nav-logo { width: 96px; }
  .nav-toggle { display: flex; }
  .nav-wa { order: 0; margin-left: auto; margin-right: 4px; width: 40px; height: 40px; }
  .nav-menu {
    position: fixed;
    inset: 78px 20px auto;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--band);
  }
  .nav-menu.is-open { display: flex; z-index: 120; }
  body.menu-open .nav { z-index: 130; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-links a { justify-content: center; min-height: 48px; font-size: 12px; }
  .nav-menu .btn { width: 100%; }

  .hero { padding-top: 16px; }
  .hero-phone { margin-top: 44px; padding-bottom: 56px; }

  .rail-inner { grid-template-columns: 1fr 1fr; }
  .rail article { padding: 28px 22px 30px 0; }
  .rail article:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 22px; }
  .rail article:nth-child(2n+1) { padding-left: 0; }
  .rail article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .section { padding: 76px 0; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-tile { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .feature-tile { max-width: 520px; }
  .trade-row { grid-template-columns: 1fr; gap: 8px; }
  .pro-layout,
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .join { padding: 76px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links a { min-height: 44px; }
}

@media (max-width: 600px) {
  .opening {
    height: 250vh;
    height: 250dvh;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(11, 13, 20, 0.9) 0%, rgba(11, 13, 20, 0.82) 52%, rgba(11, 13, 20, 0.46) 76%, rgba(11, 13, 20, 0) 100%),
      radial-gradient(76% 58% at 50% 32%, rgba(11, 13, 20, 0.96) 0%, rgba(11, 13, 20, 0.84) 50%, rgba(11, 13, 20, 0) 100%);
  }

  .wrap { width: calc(100% - 28px); }
  .ticker-track span { font-size: 10px; padding-inline: 14px; }
  .hero-brand { width: 60vw; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-tagline, .sec-sub {
  margin: clamp(10px, 2vh, 22px) 0 0;
  color: var(--text);
  font-size: clamp(16px, min(2.4vw, 3vh), 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.join .sec-sub { margin-inline: auto; color: var(--ink); }

.tab-title p.tab-sub { font-size: clamp(22px, 7vw, 30px); max-width: 18ch; }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .phone-shell { width: 252px; border-radius: 38px; }
  .phone-screen { border-radius: 30px; }
  .phone-speaker { top: 15px; width: 58px; height: 13px; }
  .phone-side-button-top { top: 116px; }
  .phone-side-button-bottom { top: 186px; }
  .phone-tabbar button { font-size: 8px; }
  .rail-inner { grid-template-columns: 1fr; }
  .rail article,
  .rail article:nth-child(2n),
  .rail article:nth-child(2n+1) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
  }
  .rail article:last-child { border-bottom: 0; }
  .section { padding: 60px 0; }
  .pro-panel { padding: 22px 18px; }
  .capture-fields { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening { height: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .feature-tile[data-reveal] img,
  .feature-tile[data-reveal].is-above img { clip-path: none; }
  .ticker-track { animation: none; }
}


/* ---------- Scanner : vidéo réelle dans un téléphone ---------- */

.scanner-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1.18fr);
  align-items: center;
  gap: clamp(56px, 8vw, 132px);
  width: min(100%, 1240px);
  min-height: 760px;
  margin-inline: auto;
  padding: 96px 32px;
  overflow: hidden;
  background: transparent;
}

.scanner-showcase__copy { position: relative; z-index: 2; }

.scanner-showcase__eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scanner-showcase__copy h2 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.scanner-showcase__description {
  max-width: 43ch;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.scanner-showcase__proofs {
  display: grid;
  gap: 18px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.scanner-showcase__proofs li { padding-top: 16px; border-top: 1px solid var(--border); }

.scanner-showcase__proofs small,
.scanner-showcase__proofs strong { display: block; }

.scanner-showcase__proofs small {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scanner-showcase__proofs strong { color: var(--text); font-size: 15px; line-height: 1.35; }

.scanner-phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  perspective: 1500px;
  opacity: 0;
  transform: translate3d(110px, 54px, 0) rotate(5deg) scale(0.96);
  transform-origin: 50% 80%;
  transition: transform 680ms cubic-bezier(0.23, 1, 0.32, 1), opacity 320ms ease-out;
  will-change: transform, opacity;
}

.scanner-phone-stage.is-visible { opacity: 1; transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }

.scanner-phone-flip {
  position: relative;
  z-index: 2;
  width: min(100%, 352px);
  aspect-ratio: 736 / 1580;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.32, 0.85, 0.22, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scanner-phone-flip.is-flipped { transform: rotateY(180deg); }

.scanner-phone-flip:focus-visible { outline: none; }
.scanner-phone-flip:focus-visible .scanner-phone { border-color: var(--blue); }

.scanner-phone {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 8px solid #171d27;
  border-radius: 52px;
  background: var(--bg-deep, #080b11);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.scanner-phone--back { transform: rotateY(180deg); }

.scanner-phone__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(38, 159, 240, 0.16), transparent 62%),
    var(--bg-deep, #080b11);
}

.scanner-phone__placeholder[hidden] { display: none; }

.scanner-phone__placeholder small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scanner-phone__placeholder strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

.scanner-phone__placeholder span { color: var(--text-secondary); font-size: 13px; }

.scanner-mode-tag {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -58%) rotate(-3deg);
  pointer-events: none;
}

.scanner-mode-tag__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: var(--blue);
  color: #ffffff;
  white-space: nowrap;
  animation: scanner-tag-bob 5.2s ease-in-out infinite;
}

.scanner-mode-tag__pill.is-pop {
  animation:
    scanner-tag-pop 460ms cubic-bezier(0.22, 1, 0.36, 1),
    scanner-tag-bob 5.2s ease-in-out 460ms infinite;
}

.scanner-mode-tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: scanner-dot 1.6s ease-in-out infinite;
}

.scanner-mode-tag__text { display: grid; line-height: 1.2; text-align: left; }

.scanner-mode-tag__text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.scanner-mode-tag__text small { font-size: 10.5px; font-weight: 600; opacity: 0.72; }

@keyframes scanner-tag-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes scanner-tag-pop {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes scanner-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.scanner-phone__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep, #080b11);
}

.scanner-phone-shadow { display: none; }
.scanner-mode-tag__pill { border: 0; font: inherit; cursor: pointer; }
.scanner-playback { margin-top: 20px; text-align: center; }
.scanner-playback button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-deep, #080b11);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.scanner-playback button:hover { border-color: var(--blue); }
.scanner-playback button:focus-visible,
.scanner-mode-tag__pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.scanner-playback p { max-width: 32ch; margin: 8px auto 0; color: var(--text-secondary); font-size: 13px; }
.scanner-playback p:empty { display: none; }

@media (max-width: 800px) {
  .scanner-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 44px 18px 52px;
  }
  /* bloc de texte resserré : le téléphone entre dans le même écran */
  .scanner-showcase__eyebrow { margin-bottom: 12px; }
  .scanner-showcase__copy h2 { max-width: 16ch; font-size: clamp(26px, 7vw, 36px); }
  .scanner-showcase .sec-sub { font-size: 13.5px; }
  .scanner-showcase__description { max-width: none; margin-top: 10px; font-size: 12.5px; line-height: 1.45; }
  .scanner-showcase__proofs { gap: 10px; margin-top: 18px; }
  .scanner-showcase__proofs li { padding-top: 9px; }
  .scanner-showcase__proofs small { margin-bottom: 3px; }
  .scanner-showcase__proofs strong { font-size: 13px; }
  .scanner-phone-stage { transform: translate3d(0, 44px, 0) scale(0.97); }
  .scanner-phone-stage.is-visible { transform: translate3d(0, 0, 0) scale(1); }
  .scanner-phone-flip { width: min(58vw, 245px); }
  .scanner-phone { border-radius: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .scanner-phone-stage,
  .scanner-phone-stage.is-visible { opacity: 1; transform: none; transition: opacity 160ms ease-out; }
  .scanner-phone-flip { transition: none; }
  .scanner-mode-tag__pill,
  .scanner-mode-tag__dot { animation: none; }
  .scanner-phone-shadow { transition: none; }
}
/* Portfolio refinement — existing imagery and ratios are preserved. */
.pv-section:not(.is-pv-visible) .pv-float { animation-play-state: paused; }
.pv-core .pv-float { animation: none; }
.pv-core .pv-tag { color: var(--text-secondary); font-size: 11px; letter-spacing: .08em; }
.pv-desc { max-width: 48ch; }
.pv-backdrop { pointer-events: none; }
.pv-viewing { overflow: hidden; }
.pv-viewer {
  position: fixed; inset: 0; margin: auto;
  width: fit-content; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px);
  padding: 16px; border: 1px solid #303644; border-radius: 20px;
  background: var(--bg-deep, #070910); color: var(--text, #f7f4ef);
  box-shadow: 0 24px 90px #0009; overflow: auto;
}
.pv-viewer::backdrop { background: rgb(3 5 10 / .9); }
.pv-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.pv-viewer-bar h3 { font: 600 16px/1.3 var(--font); margin: 0; }
.pv-viewer-close { flex: none; min-height: 44px; padding: 10px 14px; border: 1px solid #3a414f; border-radius: 999px; color: inherit; background: transparent; cursor: pointer; }
.pv-viewer-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pv-viewer-content > :is(video,img) {
  display: block; width: auto; height: auto;
  max-width: min(100%, 1000px); max-height: calc(100dvh - 136px);
  margin-inline: auto; border-radius: 12px; object-fit: contain;
}
@media (max-width: 720px) {
  .pv-sticky { padding: 84px 20px 18px; }
  .pv-title { font-size: clamp(36px, 10.4vw, 46px); }
  .pv-eyebrow { margin-bottom: 12px; }
  .pv-desc { font-size: 15px; line-height: 1.45; margin-top: 16px; max-width: 38ch; }
  .pv-core .pv-tag { display: block; margin-top: 8px; font-size: 10px; }
  .pv-media { transition: transform 240ms cubic-bezier(.22,1,.36,1); }
}
@media (max-width: 720px) and (max-height: 730px) {
  .pv-section { height: auto; }
  .pv-sticky { position: relative; height: auto; min-height: 100svh; }
  .pv-world { flex: none; height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-media, .pv-core, .pv-satellite { transition: none; }
  .pv-viewer { scroll-behavior: auto; }
}


@media (max-width: 720px) { .pv-viewer { width: calc(100vw - 16px); max-width: calc(100vw - 16px); padding: 8px; } .pv-viewer-bar { gap: 12px; } .pv-viewer-bar h3 { font-size: 15px; } }

.pv-viewer-content { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
/* Text system — MerryTCG: product promise, section titles, supporting copy.
   Existing dark canvas, Bebas display and genuine app media are the reference. */
:root {
  --text-secondary: #bdc3cd;
  --text-muted: #9aa4b2;
  --type-body: clamp(1rem, .94rem + .2vw, 1.125rem);
  --type-section: clamp(2.5rem, 1.65rem + 3.1vw, 4.5rem);
  --type-label: .75rem;
}
body { font-size: 16px; font-weight: 400; }
h1, h2, h3 { text-wrap: balance; }
p { overflow-wrap: break-word; }
.btn, .nav-links a { font-weight: 600; letter-spacing: .01em; text-transform: none; font-size: 14px; }
.btn-primary { color: var(--ink); }
.btn-primary:hover { color: var(--ink); }
.btn-lg { font-size: 15px; }
.micro { font-size: var(--type-label); font-weight: 600; }
.opening-step2 { padding-top: clamp(76px, 10svh, 100px); }
.opening-step2 .tab-title h2 {
  max-width: 24ch; margin-inline: auto; font-size: var(--type-section);
  line-height: 1; letter-spacing: .005em;
}
.tab-title p.tab-sub {
  max-width: 40ch; margin: 16px auto 0;
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 600;
  line-height: 1.4; letter-spacing: -.01em;
}
.tab-title p.tab-lead {
  display: block; max-width: 50ch; margin: 12px auto 0;
  font-size: var(--type-body); font-weight: 400; line-height: 1.55;
}
.pv-eyebrow, .scanner-showcase__eyebrow, .rw-eyebrow {
  color: var(--blue); font-size: var(--type-label); font-weight: 600;
  line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px;
}
.pv-title, .scanner-showcase__copy h2, .rw-heading h2 {
  font-family: var(--display); font-size: var(--type-section); font-weight: 400;
  line-height: 1; letter-spacing: .005em;
}
.pv-copy { max-width: 760px; flex: none; }
.pv-desc { max-width: 52ch; margin: 20px auto 0; color: var(--text-secondary); font-size: var(--type-body); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.pv-sticky { padding-top: max(92px, 9svh); }
.pv-tag, .pv-core .pv-tag { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--text-secondary); }
.scanner-showcase { gap: clamp(40px, 6vw, 88px); }
.scanner-showcase__copy h2 { max-width: 16ch; }
.scanner-showcase__description { max-width: 43ch; margin-top: 24px; font-size: var(--type-body); font-weight: 400; line-height: 1.6; }
.scanner-plan-note { max-width: 43ch; margin-top: 16px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.scanner-mode-tag__pill { color: var(--ink); }
.scanner-mode-tag__dot { background: currentColor; }
.scanner-mode-tag__text strong { font-weight: 700; }
.scanner-mode-tag__text small { font-size: 12px; opacity: 1; font-weight: 400; }
.rw-heading { display: block; max-width: 760px; margin-bottom: 48px; }
.rw-heading > p:not(.rw-eyebrow) { max-width: 51ch; margin-top: 20px; padding: 0; font-size: var(--type-body); line-height: 1.6; }
.rw-heading > .rw-eyebrow { padding: 0; max-width: none; font-size: var(--type-label); line-height: 1.5; margin: 0 0 16px; color: var(--blue); }
.rw-copy { padding-top: 16px; }
.rw-layout { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.65fr); gap: 48px; }
.rw-steps li { margin-bottom: 32px; gap: 12px; }
.rw-steps h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.rw-steps p { font-size: 16px; line-height: 1.6; }
.rw-join { font-weight: 600; font-size: 15px; gap: 16px; }
.rw-note, .rw-demo-bar p, .rw-gallery-heading p { font-size: 13px; line-height: 1.5; }
.rw-option span { font-size: 13px; font-weight: 600; }
.rw-option small { font-size: 12px; }
.rw-gallery-heading h3 { font-size: 24px; line-height: 1.25; font-weight: 600; }
.rw-profile-name { font-weight: 700; }
.rw-pack-hint, .rw-equip { font-weight: 600; }
.rw-reveal-kicker { color: var(--gold); }
.join h2 { font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: .005em; }
.join-lead { font-size: var(--type-body); line-height: 1.6; max-width: 47ch; margin-top: 24px; color: var(--ink); }
.join-form { margin-top: 32px; }
.join .field-group label { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.join .field-group label span { color: #162b3a; }
.join .field-group input::placeholder { color: #636b74; opacity: 1; }
.join .capture-rgpd { font-size: 12px; line-height: 1.6; color: var(--ink); }
.footer-main { gap: 40px; }
.footer-brand > p { max-width: 30ch; font-size: 15px; line-height: 1.6; margin-top: 16px; }
.footer-links strong { color: var(--text); font-size: 12px; font-weight: 600; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom, .store-status small { font-size: 12px; line-height: 1.5; }
@media (max-width: 1100px) and (min-width: 801px) {
  .rw-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 800px) {
  .scanner-showcase { padding: 72px 24px; gap: 72px; }
  .scanner-showcase__copy { max-width: 560px; margin-inline: auto; width: 100%; }
  .scanner-showcase__description { margin-top: 20px; max-width: 44ch; font-size: 16px; line-height: 1.6; }
  .rw-heading { margin-bottom: 36px; }
  .rw-heading > p:not(.rw-eyebrow) { max-width: 45ch; }
  .rw-layout { gap: 28px; }
  .rw-steps h3 { font-size: 19px; }
  .rw-steps p { font-size: 16px; }
  .rw-steps li { margin-bottom: 28px; }
}
@media (max-width: 600px) {
.opening-copy { padding-inline: 24px; }
.opening-copy h1 { font-size: clamp(36px, 10vw, 48px); }
.hero-actions { max-width: 320px; margin: 24px auto 0; gap: 10px; }
.opening-step2 { padding-inline: 24px; }
  .tab-title p.tab-sub { max-width: 30ch; font-size: 18px; }
  .tab-title p.tab-lead { max-width: 36ch; font-size: 15px; line-height: 1.5; }
  .pv-sticky { padding-inline: 24px; }
  .pv-desc { font-size: 16px; line-height: 1.5; margin-top: 16px; }
  .pv-eyebrow, .scanner-showcase__eyebrow, .rw-heading > .rw-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .rw-wrap { width: calc(100% - 48px); }
  .rw-heading > p:not(.rw-eyebrow) { margin-top: 18px; font-size: 16px; }
  .rw-option span { font-size: 12px; }
  .rw-option small { font-size: 12px; }
  .rw-options { gap: 8px; }
  .rw-demo-bar { align-items: flex-start; }
  .rw-demo-bar p { max-width: 24ch; font-size: 12px; }
  .rw-copy > .rw-note { margin-top: -16px; }
  .join .wrap, .footer .wrap { width: calc(100% - 48px); }
  .join { padding-block: 72px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-links { min-width: 0; }
}
@media (max-height: 700px) {
.hero-brand { width: min(40vw, 140px); }
.opening-copy h1 { font-size: clamp(32px, min(10vw, 5.6svh), 42px); }
.hero-actions { margin-top: 16px; gap: 8px; }
.opening-step2 { padding-top: 76px; }
  .opening-step2 .tab-title h2 { font-size: 36px; }
  .tab-title p.tab-sub { margin-top: 12px; font-size: 17px; }
  .tab-title p.tab-lead { margin-top: 8px; font-size: 14px; }
}
@media (max-height: 600px) and (min-width: 721px) {
  .pv-section { height: auto; }
  .pv-sticky { position: relative; height: auto; }
  .pv-world { flex: none; height: 520px; }
}

/* Small labels remain readable; section introductions share a 16px beat. */
.cat-tab { color: var(--text-muted); font-size: 11px; letter-spacing: .08em; }
.cat-line { font-weight: 400; letter-spacing: 0; }
.join .micro { margin-bottom: 16px; }
.rw-gallery-heading { align-items: flex-start; }
.rw-gallery-heading p { max-width: 32ch; }
@media (max-width:380px) { .cat-line { font-size: 13px; } }

/* Preserve the original MerryTCG hero identity and its three-line signature. */
.opening-copy h1 { font-size: clamp(40px, min(6.4vw, 7.5svh), 88px); line-height: .98; }
.opening-copy .hero-tagline { margin-inline: auto; font-size: clamp(22px, min(2.4vw, 3svh), 34px); }
@media (max-height: 700px) {
  .opening-copy h1 { font-size: clamp(32px, 6svh, 42px); }
}

/* Subscription benefits follow the Portfolio scene in normal document flow. */
.pv-benefits { padding: 28px 24px 72px; background: var(--bg-deep); }
.pv-benefits-inner { max-width: 1120px; margin-inline: auto; border-top: 1px solid var(--border); padding-top: 32px; }
.pv-benefits-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 64px; list-style: none; padding: 0; margin: 24px 0 32px; }
.pv-benefits-list li { position: relative; padding-left: 20px; color: var(--text-secondary); font-size: var(--type-body); line-height: 1.6; text-wrap: pretty; }
.pv-benefits-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.pv-benefits-list strong { color: var(--text); font-weight: 600; }
.pv-benefits-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.pv-benefits-footer p { max-width: 65ch; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.pv-benefits-footer .btn { flex-shrink: 0; }
@media (max-width: 800px) {
  .pv-benefits { padding-bottom: 48px; }
  .pv-benefits-list { gap: 20px 32px; }
  .pv-benefits-footer { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  .pv-benefits-inner { padding-top: 24px; }
  .pv-benefits-list { grid-template-columns: 1fr; margin: 20px 0 24px; }
  .pv-benefits-footer { padding-top: 24px; }
  .pv-benefits-footer .btn { width: 100%; white-space: normal; text-align: center; padding-block: 12px; }
}

/* Launch preparation: download, compact FAQ and Season 1. */
.ticker-season { padding: 0; }
.ticker-link { display: flex; align-items: center; min-height: 44px; padding-right: 48px; color: var(--ink); text-decoration: none; overflow: hidden; }
.ticker-season:focus-within .ticker-track { animation-play-state: paused; }
.ticker-static { display: none; }
.ticker-pause { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border: 0; border-left: 1px solid #05080f33; background: var(--blue); color: var(--ink); cursor: pointer; font: 700 17px var(--font); }
.ticker-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.ticker-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.ticker-season[data-paused] .ticker-track { animation-play-state: paused; }
.download-area { margin-top: 28px; }
.download-pending:disabled { cursor: default; opacity: 1; transform: none; box-shadow: none; }
.download-note { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.launch-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(64px, 8vw, 112px); }
.launch-faq h2 { margin-top: 16px; font: 400 var(--type-section)/.98 var(--display); text-transform: uppercase; }
.launch-faq-item { border-top: 1px solid var(--border); }
.launch-faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.launch-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none; color: var(--text); font: 650 17px/1.45 var(--font); }
.launch-faq-item summary::-webkit-details-marker { display: none; }
.launch-faq-item summary span { color: var(--blue); font-size: 24px; line-height: 1; flex: none; transition: transform 180ms ease; }
.launch-faq-item[open] summary span { transform: rotate(45deg); }
.launch-faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
.launch-faq-item p { margin: 0 32px 24px 0; font: 400 16px/1.7 var(--font); color: var(--text-secondary); }
.launch-faq-season { margin: 24px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.launch-faq-season a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.season-page { overflow-x: clip; }
.season-page .wrap { width: calc(100% - 80px); max-width: 1160px; margin-inline: auto; }
.season-skip { position: absolute; top: 12px; left: 12px; transform: translateY(-200%); padding: 12px; background: var(--blue); color: var(--ink); z-index: 5; }
.season-skip:focus { transform: none; }
.season-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-bottom: 1px solid var(--border); }
.season-wordmark { display: flex; flex-direction: column; align-items: flex-end; width: 112px; gap: 2px; }
.season-wordmark img { width: 100%; height: auto; }
.season-wordmark img:last-child { width: 30%; }
.season-hero { display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.season-eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font: 700 12px/1.5 var(--font); }
.season-copy h1 { margin: 22px 0 28px; font: 400 clamp(56px, 6.2vw, 90px)/.95 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.season-copy h1 em { font-style: normal; color: var(--blue); }
.season-lead { max-width: 43ch; color: var(--text-secondary); font: 400 18px/1.65 var(--font); }
.season-lead strong { font-weight: 600; color: var(--text); }
.season-ranking { padding-left: 18px; border-left: 2px solid var(--gold); margin: 28px 0; color: var(--text-secondary); font: 400 14px/1.65 var(--font); }
.season-prize { margin: 0; width: 100%; max-width: 350px; justify-self: end; animation: season-enter 650ms cubic-bezier(.16,1,.3,1) both; }
.season-prize-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; color: var(--gold); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.season-prize-heading span:last-child { font: 400 36px/1 var(--display); }
.season-prize img { display: block; width: 100%; height: auto; border-radius: 12px; }
.season-prize figcaption { padding-top: 16px; font-size: 16px; line-height: 1.6; font-weight: 650; }
.season-prize figcaption span { color: var(--text-muted); font-size: 13px; font-weight: 400; }
.season-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-block: 1px solid var(--border); padding-block: 30px; }
.season-calendar span { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.season-calendar strong { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; }
.season-calendar p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-top: 8px; }
.season-how { padding-block: 80px; scroll-margin-top: 24px; }
.season-page h2 { margin: 12px 0 24px; font: 400 var(--type-section)/1 var(--display); text-transform: uppercase; }
.season-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; margin: 40px 0 0; padding: 0; }
.season-steps li { border-top: 1px solid var(--border); padding-top: 24px; }
.season-step-number { font: 400 32px/1 var(--display); color: var(--blue); }
.season-page h3 { margin: 20px 0 12px; font: 650 20px/1.3 var(--font); }
.season-steps p, .season-details p { font: 400 16px/1.7 var(--font); color: var(--text-secondary); }
.season-details { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 16px 80px; }
.season-rules-panel { padding: 28px; border: 1px solid var(--border); border-radius: 16px; }
.season-rules-panel h3 { margin-top: 0; }
.season-rules-status { margin-top: 20px; }
.season-rules-panel .season-small { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.season-rules-status a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.season-download { text-align: center; border-top: 1px solid var(--border); padding-block: 64px 80px; }
.season-download > p:last-child { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 18px; }
.season-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 28px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.season-footer a { color: var(--text); }
.season-footer span { margin-left: auto; }
@keyframes season-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .launch-faq { grid-template-columns: 1fr; gap: 28px; }
  .launch-faq-item summary { font-size: 16px; }
  .season-page .wrap { width: calc(100% - 48px); }
  .season-header { padding-block: 20px; }
  .season-wordmark { width: 94px; }
  .season-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 40px; }
  .season-copy h1 { font-size: clamp(46px, 10vw, 66px); }
  .season-lead { font-size: 16px; }
  .season-prize { max-width: 310px; justify-self: center; }
  .season-calendar, .season-steps, .season-details { grid-template-columns: 1fr; gap: 28px; }
  .season-how { padding-block: 56px; }
  .season-details { padding-bottom: 56px; }
  .season-rules-panel { padding: 22px; }
  .season-footer span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-season .ticker-track { display: none; animation: none; }
  .ticker-static { display: block; padding: 12px 20px; font-size: 12px; font-weight: 700; }
  .ticker-pause { display: none; }
  .ticker-link { padding-right: 0; }
  .season-prize { animation: none; }
  .launch-faq-item summary span { transition: none; }
}
