/* TuCanción España — parcours /crear/, direction A « Décimo » (03/12/2026).
   Charte : directions/a-decimo.html. Fichier autonome (plus de system.css ni motion.css).
   Rouge profond en fond avec double filet doré, or pour les accents (logo, progression, prénom, bouton, prix),
   crème pour le texte sur rouge, encre sur crème et sur or. Prix en billets de loterie (bord perforé).
   Réponses en tuiles rectangulaires crème bordées d'or (sélection : rouge plein). Mobile d'abord (390 px).
   Polices : --display (questions, titres, prénom) = Young Serif, comme la landing ; --text (le reste) = Figtree.
   Tout chiffre lu comme une valeur (prix, montants, durées, compteurs, pourcentages) reste en Figtree 800
   (.num, prix des billets, jauge) : les chiffres « à l'ancienne » de Young Serif se lisent mal.
   Changer de police = ces lignes + le lien Google Fonts de index.html. */

:root {
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --display-weight: 400;
  --display-track: -0.01em;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --red: #9b1c1f;
  --red2: #741215;
  --red3: #5c0d0f;
  --red-hi: #b4282b;
  --gold: #e0b456;
  --gold2: #b98a2e;
  --gold-hi: #fff0c4;
  --gold-focus: #ffe08a;
  --cream: #fff3dc;
  --cream2: #f7d9a8;
  --ink: #2a0c0c;
  --ink-soft: #5e3b2b;
  --err: #ffc9b8;
  --line: rgba(224, 180, 86, 0.38);
  --line-strong: rgba(224, 180, 86, 0.7);
  --well: rgba(40, 0, 0, 0.24);
  --foil: linear-gradient(180deg, #f5d27a, var(--gold) 60%, var(--gold2));
  --ball: radial-gradient(circle at 34% 28%, #fffbea 0 12%, #f4d27f 36%, var(--gold2) 100%);
  --gold-text: linear-gradient(180deg, #fff0c4 10%, var(--gold) 55%, #a87a22 100%);
  --ground: radial-gradient(1100px 760px at 50% 0, var(--red-hi) 0%, var(--red) 45%, var(--red2) 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--red2); }
body { margin: 0; min-height: 100dvh; font-family: var(--text); font-weight: 500; color: var(--cream); background: var(--red2);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ol, ul, fieldset, legend, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--cream2); font-weight: 500; }
.num { font-family: var(--text); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.t-label { font: 800 12.5px/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------------------------------------------------------------- le carton rouge à double filet doré */
.carton { position: relative; min-height: 100dvh; padding: 14px 16px 44px; background: var(--ground); overflow-x: clip; }
.carton::before, .carton::after { content: ""; position: absolute; pointer-events: none; }
.carton::before { inset: 8px; border: 1.5px solid rgba(224, 180, 86, 0.55); border-radius: 6px; }
.carton::after { inset: 13px; border: 1px solid rgba(224, 180, 86, 0.3); border-radius: 4px; }

/* en-tête : rond doré ♪ + TuCanción */
.crear-nav { position: relative; z-index: 1; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 0; }
.nav__logo { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; font: 800 20px/1 var(--text); letter-spacing: -0.01em; color: var(--cream); text-decoration: none; }
.nav__logo i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 17px; color: var(--red2);
  background: var(--ball); box-shadow: inset 0 -2px 4px rgba(90, 50, 0, 0.35), 0 2px 0 rgba(40, 0, 0, 0.35); }
.skip-link { position: absolute; left: 12px; top: -140px; z-index: 5; padding: 10px 16px; border-radius: 8px; background: var(--foil); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* bandeau du mode maquette */
.mockbar { position: relative; width: fit-content; max-width: calc(100% - 20px); margin: 8px auto 0; padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: var(--gold); font: 700 12.5px/1.35 var(--text); letter-spacing: 0.02em; text-align: center; }

main.crear { position: relative; display: block; padding: 18px 0 0; outline: none; }
.pane[hidden] { display: none; }
.sheet { width: min(100% - 12px, 560px); margin-inline: auto; }
[data-view-pane="preview"] .sheet, [data-view-pane="done"] .sheet { width: min(100% - 12px, 720px); }
.form.sheet { display: block; }

/* entrée des écrans */
.sheet > * { animation: rise 0.45s var(--ease) both; }
.sheet > *:nth-child(2) { animation-delay: 0.04s; }
.sheet > *:nth-child(3) { animation-delay: 0.08s; }
.sheet > *:nth-child(4) { animation-delay: 0.12s; }
.sheet > *:nth-child(n+5) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 22px; border: 0; border-radius: 12px;
  font: 800 18px/1.2 var(--text); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn--primary { background: var(--foil); color: var(--ink); box-shadow: 0 4px 0 var(--red3), 0 14px 26px -14px rgba(0, 0, 0, 0.7); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red3); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: linear-gradient(180deg, #f9dc8e, #e6bd62 60%, #c29436); } }
.btn--secondary { background: rgba(40, 0, 0, 0.14); color: var(--cream); border: 1.5px solid var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { background: rgba(224, 180, 86, 0.14); border-color: var(--gold); } }
.btn--secondary:active { transform: scale(0.985); }
.btn--sm { min-height: 48px; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 180px; }

.linkbtn { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border: 0; background: none; color: var(--gold); cursor: pointer;
  font: 700 16px/1.3 var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(224, 180, 86, 0.5); }
@media (hover: hover) and (pointer: fine) { .linkbtn:hover { text-decoration-color: currentColor; color: var(--gold-hi); } }
.inline { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224, 180, 86, 0.55); font-weight: 700; }
.inline:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- barre d'étape */
.stepbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.iconbtn { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: rgba(40, 0, 0, 0.14); color: var(--gold); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.iconbtn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: rgba(224, 180, 86, 0.16); } }
.progress { flex: 1; min-width: 0; display: grid; gap: 8px; }
.progress__txt { font: 700 13.5px/1.3 var(--text); letter-spacing: 0.02em; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress__track { height: 7px; border-radius: 7px; background: rgba(40, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(224, 180, 86, 0.25); overflow: hidden; }
.progress__track i { display: block; height: 100%; border-radius: 7px; background: var(--foil); transition: width 420ms var(--ease); }

/* ---------------------------------------------------------------- question */
.q { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(29px, 1.4vw + 24px, 40px); line-height: 1.12;
  letter-spacing: var(--display-track); color: var(--cream); text-align: center; text-wrap: balance; outline: none; }
.q label { cursor: text; }
.q--top { margin-top: 6px; }
.goldname { padding-inline: 0.02em 0.04em; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; filter: drop-shadow(0 2px 0 rgba(60, 8, 8, 0.55)); }
.kicker { font: 700 15px/1.4 var(--text); color: var(--gold); text-align: center; margin-bottom: 8px; text-wrap: balance; }
.help { margin: 12px auto 0; font-size: 17px; line-height: 1.5; color: var(--cream2); text-align: center; max-width: 46ch; text-wrap: pretty; }
.help b { color: var(--gold); font-weight: 800; }
.lead { margin: 12px auto 0; font-size: 18px; line-height: 1.5; color: var(--cream); text-align: center; max-width: 42ch; text-wrap: pretty; }
.lead b { color: var(--gold); font-weight: 800; }
.note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--cream2); }

/* ---------------------------------------------------------------- tuiles (un toucher = une réponse)
   Rectangulaires, larges, crème bordées d'or ; choisie : rouge plein, texte crème, coche dorée. */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--2 > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 12px 14px 12px 16px;
  text-align: left; border: 2px solid var(--gold); border-radius: 12px; background: var(--cream); color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 rgba(40, 0, 0, 0.45);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 90ms var(--ease), box-shadow 90ms var(--ease); }
.tile__txt { display: grid; gap: 3px; min-width: 0; }
.tile__txt b { font: 700 17.5px/1.2 var(--text); }
.tile__txt small { font: 600 14px/1.3 var(--text); color: var(--ink-soft); }
.tile__tick { flex: none; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--foil); color: var(--red2); }
.tile__tick svg { width: 14px; height: 14px; }
.tile[aria-pressed="true"] { background: var(--red); border-color: var(--gold); color: var(--cream); box-shadow: 0 3px 0 rgba(40, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 240, 196, 0.35); }
.tile[aria-pressed="true"] .tile__txt small { color: var(--cream2); }
.tile[aria-pressed="true"] .tile__tick { display: inline-grid; }
@media (hover: hover) and (pointer: fine) { .tile:not([aria-pressed="true"]):hover { background: #fff8ea; border-color: var(--gold-hi); transform: translateY(-1px); } }
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(40, 0, 0, 0.45); }
.more-btn { margin-top: 16px; }

/* ---------------------------------------------------------------- champs (crème sur rouge) */
.field { display: grid; gap: 8px; margin-top: 22px; }
.field > label { font: 700 15px/1.35 var(--text); color: var(--cream); }
.field :is(input, textarea) { width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--gold); border-radius: 12px; background: var(--cream); color: var(--ink);
  font: 600 17px/1.4 var(--text); caret-color: var(--red); box-shadow: inset 0 2px 3px rgba(60, 20, 0, 0.12); appearance: none; }
.field textarea { min-height: 136px; line-height: 1.55; resize: vertical; }
.field :is(input, textarea)::placeholder { color: #8a6a58; font-weight: 500; opacity: 1; }
.field :is(input, textarea):focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 2px; border-color: var(--gold-hi); }
.field :is(input, textarea)[aria-invalid="true"] { border-color: #ff9f8a; box-shadow: 0 0 0 3px rgba(255, 159, 138, 0.45); }
.field--xl input { min-height: 62px; font-size: 21px; font-weight: 700; padding-inline: 18px; }
.field__error { font: 700 15px/1.4 var(--text); color: var(--err); }
.field__error:not([hidden]) { display: flex; align-items: flex-start; gap: 8px; }
.field__error:not([hidden])::before { content: "!"; flex: none; display: grid; place-items: center; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%;
  background: var(--err); color: var(--red3); font-size: 13px; font-weight: 900; }
.tiles + .field__error, .more-btn + .field__error, .meter .field__error { margin-top: 14px; justify-content: center; text-align: center; }
.count { justify-self: end; font: 600 14px/1.3 var(--text); color: var(--cream2); font-variant-numeric: tabular-nums; }
.echo { margin-top: 16px; font-size: 16px; color: var(--cream2); text-align: center; }
.echo b { font: var(--display-weight) 24px/1.1 var(--display); background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.1em; }

.more { margin-top: 22px; border-top: 1px solid var(--line); }
.more > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; font: 600 16px/1.3 var(--text); color: var(--cream); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.more .field { margin-top: 4px; margin-bottom: 14px; }

/* amorces d'histoire */
.starters { display: flex; flex-wrap: nowrap; gap: 8px; margin: 12px -22px 0; padding: 2px 22px 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 22px; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 34px), transparent); mask: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 34px), transparent); }
.starters::-webkit-scrollbar { display: none; }
.starter { flex: none; scroll-snap-align: start; white-space: nowrap; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px dashed var(--line-strong); background: rgba(40, 0, 0, 0.16); color: var(--cream);
  font: 600 15px/1.2 var(--text); cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .starter:hover { background: rgba(224, 180, 86, 0.16); border-color: var(--gold); } }
.starter.is-used { border-style: solid; border-color: var(--gold); background: rgba(224, 180, 86, 0.2); color: var(--gold-hi); }

/* bouton d'action */
.dock { margin-top: 28px; display: grid; gap: 10px; }
.dock__note { font-size: 15px; line-height: 1.55; color: var(--cream2); text-align: center; }
.dock__skip { justify-self: center; font-size: 16px; }
.form__status { font: 600 15px/1.4 var(--text); color: var(--cream); text-align: center; }
.form__status:empty { display: none; }

/* ---------------------------------------------------------------- styles (boutons radio natifs) */
.choices { margin-top: 26px; display: grid; gap: 10px; }
.choices--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--grid .choice { align-items: stretch; }
.choices--grid .choice__label { align-items: flex-start; min-height: 96px; padding: 12px 12px 12px 14px; }
.choices--grid .choice__dot { display: none; }
.choices--grid .choice__txt b { font-size: 17px; }
.choices--grid .choice__txt small { font-size: 14px; }
.choices--grid .badge { display: block; width: fit-content; margin: 5px 0 1px; }
/* 03/12 : extraits branchés : en grille, « Escuchar » passe sous le texte, sur toute la largeur de la carte. */
.choices--grid .choice { flex-direction: column; gap: 0; }
.choices--grid .choice__label { width: 100%; flex: 1; }
.choices--grid .listen { align-self: stretch; justify-content: center; margin: 0 10px 10px; min-height: 48px; }
.form[data-step="style"] .dock { position: sticky; bottom: 0; z-index: 2; margin-top: 18px; padding: 16px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--red2) 72%, rgba(116, 18, 21, 0)); }
.choice { position: relative; display: flex; align-items: center; gap: 8px; border: 2px solid var(--gold); border-radius: 12px; background: var(--cream); color: var(--ink);
  box-shadow: 0 3px 0 rgba(40, 0, 0, 0.45); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.choice.is-on { background: var(--red); color: var(--cream); box-shadow: 0 3px 0 rgba(40, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 240, 196, 0.35); }
.choice.is-on .choice__txt small { color: var(--cream2); }
.choice.is-on .badge { background: var(--foil); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .choice:not(.is-on):hover { background: #fff8ea; border-color: var(--gold-hi); } }
.choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__label { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 16px; cursor: pointer; border-radius: inherit; }
.choice__input:focus-visible + .choice__label { outline: 3px solid var(--gold-focus); outline-offset: 4px; }
.choice__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gold2); background: #fffaf0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.choice.is-on .choice__dot { border-color: var(--gold); background: var(--red); box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 12px var(--gold); }
.plan.is-on .choice__dot { border-color: var(--red2); background: var(--cream); box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 12px var(--red2); }
.choice__txt { display: grid; gap: 3px; }
.choice__txt b { font: 700 17.5px/1.25 var(--text); }
.choice__txt small { font: 600 14px/1.35 var(--text); color: var(--ink-soft); }
.badge { display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px; vertical-align: 2px; background: var(--red2); color: var(--cream);
  font: 800 11px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.listen { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-right: 10px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(42, 12, 12, 0.4); background: transparent; color: var(--ink); font: 700 14px/1 var(--text); cursor: pointer; }
.listen svg { width: 16px; height: 16px; }
.listen[aria-pressed="true"] { background: var(--red2); color: var(--cream); border-color: var(--red2); }
.choice.is-on .listen { color: var(--cream); border-color: rgba(255, 243, 220, 0.5); }

/* ---------------------------------------------------------------- reprise d'une chanson en cours */
.resume { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; padding: 16px 18px;
  border: 1.5px solid var(--gold); border-radius: 14px; background: var(--well); color: var(--cream); text-align: left; cursor: pointer; }
.resume > span:first-child { display: grid; gap: 3px; }
.resume b { font: 800 17px/1.3 var(--text); color: var(--gold); }
.resume .muted { font-size: 15px; }
.resume__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--foil); color: var(--red2); }
.resume__go svg { width: 20px; height: 20px; transform: rotate(180deg); }

/* ---------------------------------------------------------------- attente */
.footlink { margin-top: 26px; text-align: center; }
.linkbtn--sm { font-size: 15px; font-weight: 600; color: var(--cream2); text-decoration-color: rgba(247, 217, 168, 0.45); }
[data-view-pane="wait"] .sheet { text-align: center; }
[data-view-pane="wait"] .kicker { font-size: 17px; margin-top: 12px; }
.bigname { margin-top: 4px; padding: 0 0.08em 0.06em; font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(58px, 17vw, 132px); line-height: 1.02; letter-spacing: var(--display-track); overflow-wrap: anywhere; outline: none;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(60, 8, 8, 0.55)); }
.stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.stations li { display: grid; justify-items: center; gap: 10px; font: 700 15px/1.3 var(--text); color: rgba(255, 243, 220, 0.6); transition: color var(--dur) var(--ease); }
.stations__dot { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(224, 180, 86, 0.45); background: rgba(40, 0, 0, 0.18); }
.stations li.is-active { color: var(--gold); }
.stations li.is-active .stations__dot { border-color: var(--gold); border-top-color: transparent; animation: spin 1.1s linear infinite; }
.stations li.is-done { color: var(--cream); }
.stations li.is-done .stations__dot { border: 0; background: var(--ball); box-shadow: inset 0 -3px 6px rgba(90, 50, 0, 0.35), 0 3px 0 rgba(40, 0, 0, 0.4); }
.stations li.is-done .stations__dot::after { content: ""; position: absolute; left: 50%; top: 45%; width: 15px; height: 8px; border-left: 3px solid var(--red2); border-bottom: 3px solid var(--red2);
  transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.meter { margin-top: 28px; text-align: left; }
.meter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font: 600 15px/1.4 var(--text); color: var(--cream2); }
.meter__top b { font: 800 28px/1 var(--text); letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.meter__track { height: 12px; border-radius: 12px; background: rgba(40, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(224, 180, 86, 0.3); overflow: hidden; }
.meter__track i { display: block; height: 100%; width: 0; background: var(--foil); border-radius: 12px; transition: width 300ms linear; }
.meter .field__error { margin-bottom: 14px; }
.draft { margin-top: 30px; padding: 20px 18px 22px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--well); position: relative; }
.draft::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(224, 180, 86, 0.22); border-radius: 10px; pointer-events: none; }
.draft__lines { display: grid; gap: 4px; margin-top: 12px; }
.draft__lines span { font: 600 19px/1.45 var(--text); color: var(--cream); opacity: 0; animation: lineIn 700ms var(--ease) forwards; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
[data-view-pane="wait"] .note { text-align: center; max-width: 44ch; margin-inline: auto; }

/* ---------------------------------------------------------------- aperçu */
.player { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 18px; border: 1.5px solid var(--gold); border-radius: 16px; background: var(--well); }
.player::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(224, 180, 86, 0.25); border-radius: 12px; pointer-events: none; }
.play { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--ball); color: var(--red2); cursor: pointer;
  box-shadow: inset 0 -5px 10px rgba(90, 50, 0, 0.35), 0 4px 0 var(--red3), 0 0 0 0 rgba(224, 180, 86, 0.5);
  transition: transform 90ms var(--ease); animation: halo 2.2s ease-out infinite; }
.play[aria-pressed="true"] { animation: none; }
.play svg { width: 36px; height: 36px; }
.play__on svg { margin-left: 4px; }
.play__on, .play__off { display: grid; place-items: center; }
.play__off, .play[aria-pressed="true"] .play__on { display: none; }
.play[aria-pressed="true"] .play__off { display: grid; }
.play:active { transform: translateY(3px); box-shadow: inset 0 -5px 10px rgba(90, 50, 0, 0.35), 0 1px 0 var(--red3); }
@keyframes halo { 0% { box-shadow: inset 0 -5px 10px rgba(90, 50, 0, 0.35), 0 4px 0 var(--red3), 0 0 0 0 rgba(224, 180, 86, 0.55); }
  70%, 100% { box-shadow: inset 0 -5px 10px rgba(90, 50, 0, 0.35), 0 4px 0 var(--red3), 0 0 0 16px rgba(224, 180, 86, 0); } }
.player__meta { flex: 1; min-width: 0; display: grid; gap: 4px; }
.player__meta b { font: 800 17px/1.3 var(--text); color: var(--cream); }
.player__time { font: 700 14px/1.3 var(--text); color: var(--gold); font-variant-numeric: tabular-nums; }
.player__bar { height: 7px; margin-top: 6px; border-radius: 7px; background: rgba(40, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(224, 180, 86, 0.3); overflow: hidden; }
.player__bar i { display: block; width: 0; height: 100%; background: var(--foil); }
.ended { margin-top: 18px; padding: 4px 4px 0; text-align: center; }
.ended p { font-size: 20px; font-weight: 600; line-height: 1.45; color: var(--cream); text-wrap: balance; }
.ended p .num { color: var(--gold); font-size: 1.1em; }
.ended__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; margin-top: 16px; }
.ended .btn--secondary { background: var(--foil); color: var(--ink); border: 0; box-shadow: 0 4px 0 var(--red3); margin-bottom: 6px; }
.ended .btn--secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red3); }
.is-locked .player, .is-locked .lyrics, .is-locked .retry, .is-locked .offer, .is-locked .faq-in { opacity: 0.45; }
.gate { display: grid; gap: 14px; margin-top: 22px; padding: 20px 18px; border: 1.5px dashed var(--gold); border-radius: 16px; background: var(--well); }
.gate .field { margin-top: 0; }
.gate__txt { font-size: 16px; line-height: 1.5; color: var(--cream); text-align: center; }
.gate__txt b { display: block; margin-bottom: 4px; color: var(--gold); font-weight: 800; font-size: 18px; }

.lyrics { position: relative; margin-top: 40px; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(40, 0, 0, 0.12); padding: 0 16px; }
.lyrics__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 0; border: 0; background: none; color: var(--cream); text-align: left; cursor: pointer; }
.lyrics__toggle > span { display: grid; gap: 3px; }
.lyrics__toggle b { font: 800 16.5px/1.3 var(--text); color: var(--gold); }
.lyrics__toggle small { font: 600 14px/1.4 var(--text); color: var(--cream2); }
.lyrics__toggle i { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.lyrics__toggle[aria-expanded="true"] i { transform: rotate(-135deg) translateY(-2px); }
.lyrics__txt { padding: 4px 0 20px; white-space: pre-line; font-size: 17px; line-height: 1.75; color: var(--cream); text-align: center; }
.lyrics__txt b { font-weight: 800; color: var(--gold); }

.retry { margin-top: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(40, 0, 0, 0.12); padding: 0 16px; }
.retry__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 0;
  border: 0; background: none; color: var(--cream); text-align: left; cursor: pointer; }
.retry__toggle > span { display: grid; gap: 3px; }
.retry__toggle b { font: 800 16.5px/1.3 var(--text); color: var(--gold); }
.retry__toggle small { font: 600 14px/1.4 var(--text); color: var(--cream2); }
.retry__toggle i { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.retry__toggle[aria-expanded="true"] i { transform: rotate(-135deg) translateY(-2px); }
.retry__body { display: grid; gap: 12px; padding-bottom: 18px; }
.retry__body .t-label { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: rgba(40, 0, 0, 0.16); color: var(--cream);
  font: 700 15px/1 var(--text); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.chip[aria-pressed="true"] { background: var(--foil); border-color: var(--gold-hi); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: rgba(224, 180, 86, 0.16); } }
.retry__body .linkbtn { justify-self: center; }

/* ---------------------------------------------------------------- offre : billets de loterie */
.offer { position: relative; margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line-strong); scroll-margin-top: 18px; text-align: center; }
.offer::before { content: "♪"; position: absolute; left: 50%; top: 0; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; color: var(--red2); background: var(--ball); box-shadow: 0 0 0 6px var(--red2), inset 0 -3px 6px rgba(90, 50, 0, 0.35); }
.offer__h { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(28px, 1.1vw + 24px, 38px); line-height: 1.12; letter-spacing: var(--display-track); color: var(--cream); text-wrap: balance; }
.offer__h--sm { font-size: clamp(25px, 0.6vw + 22px, 30px); }
.plans { margin-top: 24px; display: grid; gap: 16px; text-align: left; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.plan { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 18px 26px; border-radius: 8px; color: var(--ink); cursor: pointer;
  filter: drop-shadow(0 4px 0 rgba(40, 0, 0, 0.45)); transition: transform 160ms var(--ease); }
/* le papier du billet (bord gauche perforé) ; le focus et la sélection restent hors du masque */
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cream);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 100% 16px repeat-y; mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 100% 16px repeat-y;
  transition: box-shadow var(--dur) var(--ease); }
.plan::after { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; border-left: 1.5px dashed rgba(42, 12, 12, 0.25); pointer-events: none; }
.plan--feature::before { background: linear-gradient(160deg, #ffe9b0, var(--gold)); }
.plan.is-on { transform: none; }
.plan.is-on::before { box-shadow: inset 0 0 0 3px var(--red2), inset 0 0 0 6px rgba(255, 243, 220, 0.6); }
.plan:has(input:focus-visible) { outline: 3px solid var(--gold-focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .plan:not(.is-on):hover { transform: translateY(-2px); } }
.plan__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name dot" "price price"; align-items: center; gap: 6px 12px; }
.plan__top .choice__dot { grid-area: dot; }
.plan__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.plan__name b { font: 800 12.5px/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.plan--feature .plan__name b { color: var(--red2); }
.plan__name .badge { margin-left: 0; }
.plan--feature .plan__name .badge { position: absolute; top: -11px; left: 22px; box-shadow: 0 2px 0 rgba(40, 0, 0, 0.35); }
.plan__price { grid-area: price; font: 800 40px/1 var(--text); letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: lining-nums; color: var(--ink); }
.plan__list { display: grid; gap: 8px; padding-top: 14px; border-top: 1.5px dashed rgba(42, 12, 12, 0.25); }
.plan__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font: 600 15.5px/1.4 var(--text); }
.plan__list li svg { width: 18px; height: 18px; margin-top: 1px; color: var(--red); }
.plan__list .plan__all { display: block; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.offer [data-buy] { margin-top: 24px; }
.offer .field__error { margin-top: 16px; }
.offer .form__status { margin-top: 12px; }
.offer .note { text-align: center; max-width: 52ch; margin-inline: auto; }

.faq-in { margin-top: 54px; display: grid; gap: 0; }
.faq-in .offer__h { text-align: center; margin-bottom: 14px; }
.faq-in__item { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-in__item h3 { font: 800 18px/1.3 var(--text); color: var(--gold); }
.faq-in__item p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--cream); max-width: 62ch; }
.faq-in > p:last-child { padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }

/* ---------------------------------------------------------------- fenêtre « cambia el nombre o la historia » */
.dialog { width: min(100% - 24px, 560px); max-height: calc(100svh - 24px); padding: 28px 0 0; border: 1.5px solid var(--gold); border-radius: 16px;
  background: var(--ground); background-color: var(--red2); color: var(--cream); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.dialog::backdrop { background: rgba(30, 4, 4, 0.72); }
.dialog .sheet { width: auto; margin: 0 22px; }
.dialog .offer__h { text-align: center; }
.dialog .btn-row { position: sticky; bottom: 0; z-index: 2; margin: 18px -22px 0; padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--red2) 78%, rgba(116, 18, 21, 0)); }
.dialog .field__error { margin-top: 14px; }
.dialog .btn-row .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 16.5px; }
.dialog .btn-row .btn--secondary { flex: 0 1 38%; }

/* ---------------------------------------------------------------- confirmation : la fête, sobre */
.done { position: relative; text-align: center; padding-top: 104px; }
.done::before { content: "♪"; position: absolute; left: 50%; top: 0; width: 84px; height: 84px; transform: translateX(-50%); border-radius: 50%; display: grid; place-items: center;
  font-size: 40px; color: var(--red2); background: var(--ball); box-shadow: inset 0 -6px 12px rgba(90, 50, 0, 0.35), 0 4px 0 var(--red3), 0 0 0 7px rgba(224, 180, 86, 0.18), 0 0 0 14px rgba(224, 180, 86, 0.08); }
.done::after { content: ""; position: absolute; left: 50%; top: -10px; width: 260px; height: 110px; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(circle 3px at 8% 60%, var(--gold) 98%, #0000),
    radial-gradient(circle 2px at 20% 18%, var(--gold-hi) 98%, #0000),
    radial-gradient(circle 4px at 26% 88%, var(--gold2) 98%, #0000),
    radial-gradient(circle 2.5px at 76% 12%, var(--gold) 98%, #0000),
    radial-gradient(circle 3.5px at 84% 74%, var(--gold-hi) 98%, #0000),
    radial-gradient(circle 2px at 94% 40%, var(--gold) 98%, #0000); }
.done .q { font-size: clamp(32px, 1.8vw + 26px, 46px); }
.done .lead { margin-top: 16px; }
.done .lead b { color: var(--gold); }
.done .btn { margin-top: 28px; }
.done p:last-child { margin-top: 18px; }

/* ---------------------------------------------------------------- ordinateur */
@media (min-width: 900px) {
  .carton { padding: 26px 40px 64px; }
  .carton::before { inset: 14px; }
  .carton::after { inset: 20px; }
  .nav__bar { max-width: 1180px; margin: 0 auto; padding: 4px 8px 0; }
  .nav__logo { font-size: 22px; }
  .nav__logo i { width: 36px; height: 36px; font-size: 19px; }
  .carton { display: flex; flex-direction: column; }
  main.crear { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0 10px; }
  main.crear > .pane { width: 100%; }
  .sheet { width: min(100%, 620px); }
  [data-view-pane="preview"] .sheet { width: min(100%, 820px); }
  /* questionnaire, attente, confirmation : une carte posée sur le rouge */
  .form.sheet, [data-view-pane="wait"] .sheet, [data-view-pane="done"] .sheet { width: min(100%, 700px); padding: 34px 44px 38px; border: 1.5px solid var(--line);
    border-radius: 22px; background: rgba(40, 0, 0, 0.2); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75); }
  .form[data-step="style"] .dock { margin-inline: -44px; padding-inline: 44px; border-radius: 0 0 20px 20px; }
  [data-view-pane="done"] .done { padding-top: 150px; }
  .done::before { top: 40px; }
  .done::after { top: 28px; }
  .starters { margin-inline: -44px; padding-inline: 44px; scroll-padding-inline: 44px; }
  .stepbar { margin-bottom: 36px; }
  .bigname { font-size: clamp(96px, 8.5vw, 132px); }
  .stations { max-width: 520px; margin-inline: auto; }
  .plan { padding: 22px 22px 22px 30px; }
  .plan::after { left: 16px; }
  .plan__price { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stations li.is-active .stations__dot { animation: none; border-top-color: var(--gold); background: rgba(224, 180, 86, 0.25); }
  .draft__lines span { opacity: 1; }
}

/* ---------------------------------------------------------------- attente v2 (modèle NotasInfinitas, 03/12)
   Grand titre, vidéo de réaction (chat + photo + paroles karaoké + lecture/son), pastille de durée, jauge par étape, récap. */
.wait-h { margin-top: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(32px, 8.6vw, 52px); line-height: 1.08;
  letter-spacing: var(--display-track); color: var(--cream); text-wrap: balance; outline: none; }
.wait-h em { font-style: normal; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-view-pane="wait"] .lead { margin-top: 12px; color: var(--cream2); }
.goldname { color: var(--gold); }
.reel { position: relative; margin: 24px auto 0; max-width: 420px; padding: 12px; border-radius: 22px; background: var(--cream); color: var(--ink); text-align: left;
  box-shadow: 0 18px 40px -18px rgba(20, 0, 0, 0.7), 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(224, 180, 86, 0.22); }
.reel__chat { padding: 4px 6px 12px; display: grid; gap: 2px; font: 500 15.5px/1.35 var(--text); }
.reel__chat b { font-weight: 800; }
.reel__act { font-style: italic; font-size: 13.5px; color: var(--ink-soft); }
.reel__media { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 4.4; background: var(--red3); }
.reel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transform-origin: 50% 40%; animation: kb 16s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.reel__media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(30, 4, 4, 0.75)); pointer-events: none; }
.reel__sub { position: absolute; z-index: 1; left: 50%; bottom: 62px; width: max-content; max-width: 88%; transform: translateX(-50%); padding: 5px 12px 6px; border-radius: 8px;
  background: #fff; color: #111; font: 700 18px/1.25 var(--text); text-align: center; text-wrap: balance; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.reel__sub.pop { animation: subpop 260ms var(--ease); }
@keyframes subpop { from { transform: translateX(-50%) scale(0.92); opacity: 0.4; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.reel__ctrl { position: absolute; z-index: 1; left: 10px; bottom: 10px; display: flex; gap: 8px; }
.reel__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(20, 8, 8, 0.72); color: #fff; cursor: pointer; }
.reel__btn svg { width: 22px; height: 22px; }
.reel__btn:focus-visible { outline: 3px solid var(--gold-focus); outline-offset: 2px; }
.reel__tag { position: absolute; z-index: 1; right: 10px; bottom: 16px; font: 700 11.5px/1 var(--text); color: rgba(255, 243, 220, 0.85); letter-spacing: 0.02em; }
.reel.is-playing .reel__btn[data-reel-play] { background: var(--gold); color: var(--ink); }
.eta-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 11px 20px; border-radius: 99px; background: rgba(224, 180, 86, 0.16);
  box-shadow: inset 0 0 0 1px var(--line); font: 800 16px/1.2 var(--text); color: var(--gold); }
.eta-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
[data-view-pane="wait"] .meter { margin-top: 22px; padding: 18px 18px 16px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
[data-view-pane="wait"] .meter__top span { font: 800 18px/1.3 var(--text); color: var(--cream); }
[data-view-pane="wait"] .meter__top b { font-size: 22px; }
.meter__sub { margin-top: 10px; font: 600 15px/1.4 var(--text); color: var(--cream2); }
.recap { display: grid; gap: 10px; margin-top: 16px; text-align: left; }
.recap li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: rgba(255, 243, 220, 0.1); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 16px/1.35 var(--text); color: var(--cream); }
.recap li svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.recap b { color: var(--gold); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .reel__media img, .eta-pill i { animation: none; } }

/* ---------------------------------------------------------------- aperçu + offre v2 (modèle NotasInfinitas, 03/12)
   Grande scène d'écoute (gros bouton, onde, durée), encart « solo el principio », prix unique en grand, avantages cochés,
   Prémium en option à cocher. Pas de prix barré ni de remise (règles UE). */
.pv-h { font-size: clamp(34px, 9.4vw, 56px); }
.stage { position: relative; overflow: hidden; margin-top: 22px; padding: 26px 18px 18px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #7d1a22 0%, #4a0b10 60%, #2a0507 100%); box-shadow: 0 18px 40px -20px rgba(10, 0, 0, 0.8), inset 0 0 0 1.5px var(--line-strong); }
.stage::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(224, 180, 86, 0.14) 0 1px, transparent 1px 9px); }
.play--xl { width: 112px; height: 112px; margin: 0 auto; background: var(--cream); color: var(--red); }
.play--xl svg { width: 44px; height: 44px; }
.stage__hint { margin-top: 14px; font: 600 18px/1.3 var(--text); color: var(--cream); transition: opacity var(--dur) var(--ease); }
.stage:has(.play[aria-pressed="true"]) .stage__hint { opacity: 0; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 52px; margin-top: 10px; }
.wave i { width: 3px; height: var(--h); border-radius: 3px; background: rgba(255, 243, 220, 0.45); transform-origin: center; }
.stage:has(.play[aria-pressed="true"]) .wave i { background: var(--gold); animation: wv 0.9s ease-in-out var(--d) infinite alternate; }
@keyframes wv { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.stage__foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.stage__foot .player__time { color: var(--cream2); font-size: 15px; }
.stage__pill { padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--gold2); background: rgba(224, 180, 86, 0.12); font: 800 14.5px/1 var(--text); color: var(--gold); }
.stage .player__bar { margin-top: 16px; }
.info { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 243, 220, 0.1); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 17px/1.5 var(--text); color: var(--cream); text-align: center; text-wrap: balance; }
.info b { color: var(--gold); font-weight: 800; }
.offer--v2 { margin-top: 34px; padding-top: 30px; }
.bigprice { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.bigprice .num { font: 800 clamp(48px, 14vw, 64px)/1 var(--text); letter-spacing: -0.03em; color: var(--cream); }
.bigprice small { font: 700 15px/1 var(--text); color: var(--cream2); }
.perks { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.perks li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 243, 220, 0.08); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 16.5px/1.35 var(--text); color: var(--cream); }
.perks li svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
.bump__h { margin-top: 30px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(23px, 6vw, 28px); line-height: 1.15; color: var(--gold); text-align: left; text-wrap: balance; }
.bump { position: relative; display: flex; gap: 14px; margin-top: 14px; padding: 18px 16px; border-radius: 14px; background: var(--cream); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 0 rgba(224, 180, 86, 0); transition: box-shadow var(--dur) var(--ease); }
.bump.is-on { background: linear-gradient(160deg, #ffe9b0, var(--gold)); box-shadow: inset 0 0 0 3px var(--red2), 0 0 0 4px rgba(224, 180, 86, 0.35); }
.bump__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bump__box { flex: none; width: 30px; height: 30px; margin-top: 1px; display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px rgba(42, 12, 12, 0.35); color: transparent; }
.bump__box svg { width: 18px; height: 18px; }
.bump.is-on .bump__box { background: var(--red2); box-shadow: none; color: var(--cream); }
.bump:has(.bump__input:focus-visible) { outline: 3px solid var(--gold-focus); outline-offset: 3px; }
.bump__body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.bump__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bump__top b { font: 800 18px/1.25 var(--text); }
.bump__price { font: 800 19px/1 var(--text); color: var(--red2); }
.bump small { font: 500 15px/1.4 var(--text); color: var(--ink-soft); }
.bump strong { font: 800 16px/1.3 var(--text); color: var(--red); }
.bump .badge { justify-self: start; }
.offer--v2 .btn--primary { margin-top: 20px; }

/* ================================================================ THÈME CRÈME (03/12, soir)
   David : « tout n'est-il pas too much rouge ? ». Le parcours passe sur papier crème, comme un vrai décimo (papier crème
   imprimé en rouge) et comme NotasInfinitas (page claire, un seul bloc fort : le lecteur). Le rouge devient l'accent :
   titres en partie, prénom, réponse choisie, bouton, bloc d'écoute ; l'or ne sert plus qu'aux filets et au rond ♪.
   Ce bloc surcharge les couleurs ci-dessus ; pour revenir au rouge, retirer ce bloc (copie : crear.v3-rouge.css). */
:root {
  --paper: #fbf3e3;
  --card: #ffffff;
  --tan: #e7d3ad;
  --tan2: #d9bf8f;
  --ink2: #6b4a3a;
  --red-tint: rgba(155, 28, 31, 0.07);
  --err: #b3261e;
  --red-btn: linear-gradient(180deg, #b4282b, #9b1c1f 60%, #861619);
}
html, body { background: var(--paper); color: var(--ink); }
::selection { background: rgba(155, 28, 31, 0.18); color: var(--ink); }
:focus-visible { outline-color: var(--red); }
.muted { color: var(--ink2); }
.t-label, .kicker { color: var(--red); }

/* le papier : crème, double filet rouge (billet) */
.carton { background: radial-gradient(900px 520px at 50% 0, #fffaf0 0%, var(--paper) 70%); }
.carton::before { border-color: rgba(155, 28, 31, 0.38); }
.carton::after { border-color: rgba(185, 138, 46, 0.45); }
.nav__logo { color: var(--red2); }
.nav__logo i { box-shadow: inset 0 -2px 4px rgba(90, 50, 0, 0.35), 0 2px 0 rgba(90, 50, 0, 0.25); }

/* boutons */
.btn--primary { background: var(--red-btn); color: var(--cream); box-shadow: 0 4px 0 var(--red3), 0 14px 26px -16px rgba(90, 10, 10, 0.6); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: linear-gradient(180deg, #c2302f, #a71f22 60%, #8f181b); } }
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--tan2); }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { background: #fffaf0; border-color: var(--red); } }
.linkbtn, .inline { color: var(--red); text-decoration-color: rgba(155, 28, 31, 0.4); }
@media (hover: hover) and (pointer: fine) { .linkbtn:hover { color: var(--red2); } }
.linkbtn--sm { color: var(--ink2); text-decoration-color: rgba(107, 74, 58, 0.4); }

/* barre d'étape */
.iconbtn { background: var(--card); border-color: var(--tan2); color: var(--red); }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: #fffaf0; } }
.progress__txt { color: var(--red); }
.progress__track { background: rgba(42, 12, 12, 0.08); box-shadow: none; }
.progress__track i { background: var(--red); }

/* textes */
.q, .offer__h, .wait-h { color: var(--ink); }
.goldname, .echo b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); filter: none; }
.wait-h em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); }
.help, .note, .dock__note, .count, .echo, [data-view-pane="wait"] .lead { color: var(--ink2); }
.lead, .form__status { color: var(--ink); }
.help b, .lead b { color: var(--red); }

/* tuiles, styles, champs : cartes blanches sur papier ; choisie = rouge plein */
.tile, .choice { background: var(--card); border-color: var(--tan); box-shadow: 0 2px 0 var(--tan); }
@media (hover: hover) and (pointer: fine) { .tile:not([aria-pressed="true"]):hover, .choice:not(.is-on):hover { background: #fffaf0; border-color: var(--tan2); } }
.tile:active { box-shadow: 0 1px 0 var(--tan); }
.tile[aria-pressed="true"], .choice.is-on { background: var(--red); border-color: var(--red2); color: var(--cream); box-shadow: 0 3px 0 var(--red3); }
.choice__dot { border-color: var(--tan2); background: #fff; }
.field > label, .more > summary { color: var(--ink); }
.field :is(input, textarea) { background: var(--card); border-color: var(--tan2); box-shadow: inset 0 2px 3px rgba(60, 20, 0, 0.06); }
.field :is(input, textarea):focus-visible { outline-color: rgba(155, 28, 31, 0.45); border-color: var(--red); }
.field :is(input, textarea)[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.field__error:not([hidden])::before { background: var(--err); color: #fff; }
.more { border-top-color: var(--tan); }
.more > summary::after { border-color: var(--red); }
.starter { background: var(--card); border-color: var(--tan2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .starter:hover { background: #fffaf0; border-color: var(--red); } }
.starter.is-used { background: var(--red-tint); border-color: var(--red); color: var(--red2); }
.form[data-step="style"] .dock { background: linear-gradient(to top, var(--paper) 72%, rgba(251, 243, 227, 0)); }
.listen { border-color: var(--tan2); }
.resume { background: var(--card); border-color: var(--tan2); color: var(--ink); }
.resume b { color: var(--red); }

/* attente */
.reel { background: var(--card); box-shadow: 0 18px 40px -22px rgba(90, 20, 10, 0.45), 0 0 0 1.5px var(--tan); }
.eta-pill { background: var(--red-tint); box-shadow: inset 0 0 0 1px rgba(155, 28, 31, 0.18); color: var(--red2); }
.eta-pill i { background: var(--red); }
[data-view-pane="wait"] .meter { background: var(--card); box-shadow: 0 0 0 1.5px var(--tan); }
[data-view-pane="wait"] .meter__top span { color: var(--ink); }
.meter__top b { color: var(--red); }
.meter__track { background: rgba(42, 12, 12, 0.08); box-shadow: none; }
.meter__track i { background: var(--red); }
.meter__sub { color: var(--ink2); }
.recap li { background: var(--red-tint); box-shadow: none; color: var(--ink); }
.recap li svg, .recap b { color: var(--red); }
.draft { background: var(--card); border-color: var(--tan); }
.draft::after { border-color: rgba(185, 138, 46, 0.25); }
.draft__lines span { color: var(--ink); }

/* aperçu : le bloc d'écoute reste rouge foncé (le seul aplat fort de la page) */
.info { background: var(--red-tint); box-shadow: none; color: var(--ink); }
.info b { color: var(--red); }
.ended p { color: var(--ink); }
.ended p .num { color: var(--red); }
.ended .btn--secondary { background: var(--red-btn); color: var(--cream); box-shadow: 0 4px 0 var(--red3); }
.gate { background: var(--card); border-color: var(--red); }
.gate__txt { color: var(--ink); }
.gate__txt b { color: var(--red); }
.offer { border-top-color: var(--tan); }
.offer::before { box-shadow: 0 0 0 6px var(--paper), inset 0 -3px 6px rgba(90, 50, 0, 0.35); }
.bigprice .num { color: var(--ink); }
.bigprice small { color: var(--ink2); }
.perks li { background: var(--card); box-shadow: 0 0 0 1.5px var(--tan); color: var(--ink); }
.perks li svg { color: #1f8a4c; }
.bump__h { color: var(--red); }
.bump { background: var(--card); box-shadow: inset 0 0 0 2px var(--tan2); }
.bump.is-on { background: #fff6e2; box-shadow: inset 0 0 0 3px var(--red), 0 0 0 4px rgba(155, 28, 31, 0.12); }
.bump:has(.bump__input:focus-visible) { outline-color: var(--red); }
.lyrics, .retry { background: var(--card); border-color: var(--tan); }
.lyrics__toggle, .retry__toggle { color: var(--ink); }
.lyrics__toggle b, .retry__toggle b, .lyrics__txt b { color: var(--red); }
.lyrics__toggle small, .retry__toggle small { color: var(--ink2); }
.lyrics__toggle i, .retry__toggle i { border-color: var(--red); }
.lyrics__txt { color: var(--ink); }
.chip { background: var(--card); border-color: var(--tan2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red2); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: #fffaf0; } }
.faq-in__item { border-top-color: var(--tan); }
.faq-in > p:last-child { border-top-color: var(--tan); }
.faq-in__item h3 { color: var(--red); }
.faq-in__item p { color: var(--ink); }

/* fenêtre et confirmation */
.dialog { background: var(--paper); background-color: var(--paper); color: var(--ink); border-color: var(--tan2); }
.dialog::backdrop { background: rgba(42, 12, 12, 0.55); }
.dialog .btn-row { background: linear-gradient(to top, var(--paper) 78%, rgba(251, 243, 227, 0)); }
.done .lead b { color: var(--red); }

@media (min-width: 900px) {
  .form.sheet, [data-view-pane="wait"] .sheet, [data-view-pane="done"] .sheet { background: var(--card); border-color: var(--tan); box-shadow: 0 40px 90px -60px rgba(90, 30, 10, 0.5); }
}

/* ===== BRANDING ESPAÑA (03/12, nuit) : logo cœur drapeau, bandeaux rojigualda, vinyles qui tournent ===== */
:root { --es-r: #c60b1e; --es-y: #ffc400; --flag: linear-gradient(180deg, var(--es-r) 0 25%, var(--es-y) 25% 75%, var(--es-r) 75%); }
.flag { height: 6px; background: var(--flag); }
.nav__logo { gap: 8px; }
.nav__logo img { height: 30px; width: auto; flex: none; }
.nav__logo span { font: 400 22px/1 var(--display, "Young Serif", Georgia, serif); letter-spacing: -0.01em; color: var(--red2); }
@media (min-width: 760px) { .nav__logo img { height: 34px; } .nav__logo span { font-size: 25px; } }

/* le vinyle */
.vinyl { display: block; position: relative; flex: none; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 28%, #0e0a0b 28.5%), repeating-radial-gradient(circle, #231b1d 0 1px, #0e0a0b 1px 3px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.16) 14%, transparent 20% 60%, rgba(255, 255, 255, 0.1) 64%, transparent 70%); }
.vinyl__label { position: absolute; inset: 29%; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.vinyl__label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13%; height: 13%; min-width: 4px; min-height: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #0e0a0b; }
@keyframes spin { to { transform: rotate(360deg); } }

/* attente : petit vinyle qui tourne pendant la fabrication */
[data-view-pane="wait"] .meter { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; }
[data-view-pane="wait"] .meter > .field__error, [data-view-pane="wait"] .meter > .btn { grid-column: 1 / -1; }
.meter__body { min-width: 0; }
.vinyl--sm { width: 64px; height: 64px; animation: spin 2.2s linear infinite; }

/* aperçu : la platine, le vinyle tourne pendant l'écoute */
.deck { position: relative; width: 224px; height: 224px; margin: 0 auto; }
.vinyl--xl { width: 100%; height: 100%; }
.vinyl--xl .vinyl__label { inset: 22%; }
.deck .play--xl { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: 0; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.deck .play--xl svg { width: 34px; height: 34px; }
.stage:has(.play[aria-pressed="true"]) .vinyl--xl { animation: spin 1.8s linear infinite; }
.stage__hint { margin-top: 12px; }

/* offre : petit ruban rojigualda au-dessus */
.offer--v2::before { content: ""; position: absolute; top: -5px; left: 50%; width: 56px; height: 10px; transform: translateX(-50%); border-radius: 2px; background: var(--flag); }

@media (prefers-reduced-motion: reduce) { .vinyl--sm, .stage:has(.play[aria-pressed="true"]) .vinyl--xl { animation: none; } }
[data-view-pane="wait"] [data-pct] { white-space: nowrap; }

/* 03/12/2026 : code promo d'une relance */
.promo-note { margin: 8px auto 0; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--gold3, #f6d488); }
