/* Caféino — « Wrapped » : stories plein écran (Spotify Wrapped × Apple).
   Plein écran sur téléphone ; sur grand écran, cadre 9:16 centré sur un fond sombre flouté.
   Les tailles du contenu suivent le cadre (unités de conteneur cqw / cqh). */

.wr {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; outline: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; color-scheme: dark;
  --wr-drag: 0;
  --wr-chrome: #F6F1EA; --wr-track: rgba(246, 241, 234, .26); --wr-chip-bg: rgba(255, 255, 255, .12); --amb: #8E4F22;
}
.wr[data-theme="copper"] { --wr-chrome: #1A0F07; --wr-track: rgba(26, 15, 7, .2); --wr-chip-bg: rgba(26, 15, 7, .1); --amb: #C8814A; }
.wr[data-theme="crema"] { --wr-chrome: #1A1210; --wr-track: rgba(26, 18, 16, .18); --wr-chip-bg: rgba(26, 18, 16, .08); --amb: #E9C9A3; }
.wr[data-theme="ok"] { --amb: #2E7A4E; }
.wr[data-theme="danger"] { --amb: #B5412A; }
html.wr-open, html.wr-open body { overflow: hidden; overscroll-behavior: none; }
.wr-open #toasts { z-index: 400; }

.wr-backdrop {
  position: absolute; inset: 0; background: rgba(8, 7, 6, .84);
  -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%);
  opacity: calc(1 - var(--wr-drag) * .75); transition: opacity .35s var(--ease-out);
}
.wr-ambient {
  display: none; position: absolute; left: 50%; top: 50%; width: 96vmin; height: 96vmin; margin: -48vmin 0 0 -48vmin;
  border-radius: 50%; background-color: var(--amb); filter: blur(120px); opacity: calc(.42 - var(--wr-drag) * .3);
  transition: background-color .9s ease; pointer-events: none;
}

/* ---------- Cadre de la story ---------- */
.wr-story {
  position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; touch-action: none;
  background: #0E0C0B; transition: transform .5s var(--ease-spring), opacity .3s ease;
  transform-origin: 50% 30%; isolation: isolate;
}
.wr-story.is-dragging { transition: none; }
.wr.is-opening .wr-story { animation: wr-open .7s var(--ease-spring) both; }
.wr.is-opening .wr-backdrop, .wr.is-opening .wr-ambient { animation: wr-fade .45s ease both; }
.wr.is-closing { pointer-events: none; }
.wr.is-closing .wr-story { opacity: 0; transform: translate3d(0, 28px, 0) scale(.94) !important; transition: transform .32s var(--ease-out), opacity .26s ease; }
.wr.is-closing.is-flung .wr-story { transform: translate3d(0, 70%, 0) scale(.86) !important; }
.wr.is-closing .wr-backdrop, .wr.is-closing .wr-ambient, .wr.is-closing .wr-arrow { opacity: 0; transition: opacity .3s ease; }
.wr-story.is-bump { animation: wr-bump .4s var(--ease-out); }
@keyframes wr-open { from { opacity: 0; transform: translate3d(0, 6%, 0) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes wr-fade { from { opacity: 0; } }
@keyframes wr-bump { 35% { transform: translateX(-10px); } 70% { transform: translateX(4px); } }

/* Grand écran : téléphone 9:16 au centre, flèches de navigation de part et d'autre. */
@media (min-width: 720px) and (min-height: 560px) {
  .wr { --wr-h: min(calc(100dvh - 56px), 900px); --wr-w: calc(var(--wr-h) * 9 / 16); }
  .wr-story {
    width: var(--wr-w); height: var(--wr-h); border-radius: 32px;
    box-shadow: 0 50px 140px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
  }
  .wr-ambient { display: block; }
  .wr .wr-arrow { display: grid; }
}

.wr-arrow {
  display: none; position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  place-items: center; color: #F6F1EA; background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background-color .2s ease, transform .15s var(--ease-out), opacity .3s ease;
}
.wr-arrow:hover { background: rgba(255, 255, 255, .17); }
.wr-arrow:active { transform: scale(.92); }
.wr-arrow-prev { left: calc(50% - var(--wr-w) / 2 - 80px); }
.wr-arrow-next { right: calc(50% - var(--wr-w) / 2 - 80px); }

/* ---------- Habillage : barres de progression, en-tête ---------- */
.wr-chrome {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: calc(10px + env(safe-area-inset-top)) 12px 0;
  pointer-events: none; transition: opacity .25s ease;
}
.wr.is-held .wr-chrome { opacity: 0; }
.wr-bars { display: flex; gap: 4px; }
.wr-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--wr-track); overflow: hidden; transition: background-color .4s ease; }
.wr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--wr-chrome); transform-origin: left center; transform: scaleX(0); transition: background-color .4s ease; }
.wr-head { display: flex; align-items: center; gap: 10px; height: 44px; margin-top: 6px; padding-left: 6px; color: var(--wr-chrome); transition: color .4s ease; }
.wr-brand { display: inline-flex; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.wr-brand .logo { font-size: 13px; padding-top: .45em; }
.wr-brand .logo-sub { display: none; }
.wr-label { font-size: 13px; font-weight: 600; letter-spacing: -.005em; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-label:not(:empty)::before { content: '·'; margin-right: 8px; opacity: .6; }
.wr-paused {
  display: none; margin-left: auto; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; background: var(--wr-chip-bg);
}
.wr.is-paused .wr-paused { display: inline-flex; }
.wr-close {
  pointer-events: auto; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--wr-chrome); background: var(--wr-chip-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .14s var(--ease-out), background-color .3s ease, color .4s ease;
}
.wr.is-paused .wr-close { margin-left: 0; }
.wr-close:active { transform: scale(.9); }

/* ---------- Une story ---------- */
.wr-stage { position: absolute; inset: 0; }
.wr-slide { position: absolute; inset: 0; z-index: 1; overflow: hidden; color: var(--wr-fg); background: var(--wr-bg); animation: wr-slide-in .55s var(--ease-out) both; }
.wr-slide.is-out { z-index: 0; pointer-events: none; animation: wr-slide-out .4s var(--ease-out) both; }
@keyframes wr-slide-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes wr-slide-out { from { opacity: 1; } to { opacity: 0; transform: scale(.95); } }

/* Fond : dégradé de marque + taches de lumière qui dérivent lentement + grain argentique. */
.wr-bg { position: absolute; inset: 0; overflow: hidden; }
.wr-blob { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); will-change: transform; animation: wr-drift-a 19s ease-in-out infinite alternate; }
.wr-b1 { --c: var(--b1); width: 125cqw; height: 125cqw; top: -45cqw; left: -50cqw; }
.wr-b2 { --c: var(--b2); width: 145cqw; height: 145cqw; bottom: -60cqw; right: -60cqw; animation-name: wr-drift-b; animation-duration: 23s; }
.wr-b3 { --c: var(--b3); width: 85cqw; height: 85cqw; top: 38%; left: 30%; animation-name: wr-drift-c; animation-duration: 16s; }
@keyframes wr-drift-a { to { transform: translate3d(24%, 30%, 0) scale(1.18); } }
@keyframes wr-drift-b { to { transform: translate3d(-22%, -26%, 0) scale(.9); } }
@keyframes wr-drift-c { 0% { transform: translate3d(-30%, -40%, 0) scale(.9); } 100% { transform: translate3d(-60%, 10%, 0) scale(1.25); } }
.wr-grain {
  position: absolute; inset: 0; opacity: .2; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wr-content {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: calc(86px + env(safe-area-inset-top)) 7.5cqw calc(44px + env(safe-area-inset-bottom));
}
.wr-l-center .wr-content { align-items: center; text-align: center; }

.wr-emoji { font-size: min(22cqw, 12cqh); line-height: 1; margin-bottom: 3cqh; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .28)); }
.wr-emoji span { display: inline-block; animation: wr-float 5.5s ease-in-out 1.2s infinite alternate; }
.wr-l-center .wr-emoji { font-size: min(30cqw, 15cqh); margin-bottom: 3.6cqh; }
@keyframes wr-float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-6%) rotate(4deg); } }

.wr-eyebrow { margin: 0 0 1.6cqh; font-size: 12px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--wr-fg-2); }
.wr-title {
  margin: 0 0 2.4cqh; font: 760 clamp(26px, 8.8cqw, 46px)/1.07 var(--font-display); letter-spacing: -.04em; text-wrap: balance;
}
.wr-l-center .wr-title { font-size: clamp(32px, 11.2cqw, 60px); letter-spacing: -.045em; }
.wr-title em, .wr-sub em { font-style: normal; color: var(--wr-em); }
.wr-t-copper .wr-title em, .wr-t-crema .wr-title em {
  color: var(--wr-em); background: var(--wr-em-bg); padding: 0 .14em .03em; margin: 0 -.02em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.wr-big { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .1em; width: 100%; margin: .4cqh 0 1.8cqh; }
.wr-l-center .wr-big { justify-content: center; }
.wr-num {
  font: 800 34cqw/.88 var(--font-display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--wr-num, var(--wr-fg)); padding: 0 .04em .06em 0; margin-left: -.04em;
}
.wr-t-espresso .wr-num, .wr-t-crema .wr-num, .wr-t-ok .wr-num, .wr-t-danger .wr-num {
  background: var(--wr-num-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wr-unit { font: 760 max(20px, 7.4cqw)/1 var(--font-display); letter-spacing: -.035em; color: var(--wr-fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-sub { margin: 0; max-width: 34ch; font-size: clamp(15px, 4.4cqw, 19px); line-height: 1.42; font-weight: 520; letter-spacing: -.012em; color: var(--wr-fg-2); text-wrap: pretty; }
.wr-html { width: 100%; margin-top: 3cqh; }
.wr-l-center .wr-html { text-align: left; }

/* Révélations échelonnées (le compteur démarre pendant l'entrée du gros chiffre). */
.wr-r { animation: wr-rise .8s var(--ease-out) both; animation-delay: calc(110ms + var(--i, 0) * 90ms); }
.wr-emoji.wr-r { animation-name: wr-pop; animation-duration: 1s; animation-timing-function: var(--ease-spring); }
.wr-big.wr-r { animation-name: wr-big-in; animation-duration: .95s; transform-origin: 0 100%; }
.wr-l-center .wr-big.wr-r { transform-origin: 50% 100%; }
@keyframes wr-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wr-pop { from { opacity: 0; transform: scale(.35) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes wr-big-in { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

.wr-hint {
  position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); margin: 0; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--wr-fg-2);
  animation: wr-rise .8s var(--ease-out) 1s both, wr-pulse 2.4s ease-in-out 2s infinite;
}
.wr-hint::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
@keyframes wr-pulse { 50% { opacity: .45; } }

/* ---------- Fragments : puce, histogramme, barres de paiement, classements, avis, bilan ---------- */
.wr-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: var(--wr-glass); color: var(--wr-fg); box-shadow: inset 0 0 0 1px var(--wr-line);
}
.wr-chip span { font-weight: 550; opacity: .74; }
.wr-t-copper .wr-chip { background: #1A0F07; color: #F6D3AE; box-shadow: 0 10px 28px rgba(60, 25, 5, .28); }
.wr-t-copper .wr-chip.is-down { color: #F3C7B8; }

.wr-hist-bars { display: flex; align-items: flex-end; gap: 1.3cqw; height: 15cqh; }
.wr-hist-bars i {
  flex: 1; height: max(5%, calc(var(--h) * 100%)); border-radius: 1.4cqw 1.4cqw .7cqw .7cqw; background: var(--wr-faint);
  transform-origin: 50% 100%; animation: wr-grow-y .9s var(--ease-spring) both; animation-delay: calc(560ms + var(--j, 0) * 38ms);
}
.wr-hist-bars i.is-peak { background: linear-gradient(180deg, #C8814A, #8A4F22); box-shadow: 0 10px 26px rgba(138, 79, 34, .4); }
.wr-hist-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 650; color: var(--wr-fg-2); font-variant-numeric: tabular-nums; }
@keyframes wr-grow-y { from { transform: scaleY(0); } }

.wr-mix { display: grid; gap: 2cqh; }
.wr-mix-row { animation: wr-rise .7s var(--ease-out) both; animation-delay: calc(520ms + var(--j, 0) * 110ms); }
.wr-mix-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.wr-mix-head b { margin-left: auto; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wr-mix-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wr-glass); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-mix-track { height: 10px; border-radius: 99px; background: var(--wr-faint); overflow: hidden; }
.wr-mix-track i {
  display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--wr-fg-2);
  transform-origin: left center; animation: wr-grow-x 1.15s var(--ease-out) both; animation-delay: calc(700ms + var(--j, 0) * 120ms);
}
.wr-mix-row.is-top .wr-mix-track { height: 16px; }
.wr-mix-row.is-top .wr-mix-track i { background: linear-gradient(90deg, #A8642F, #D9965E 55%, #F2D2AE); box-shadow: 0 0 22px rgba(200, 129, 74, .45); }
.wr-mix-row small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 550; color: var(--wr-fg-2); font-variant-numeric: tabular-nums; }
@keyframes wr-grow-x { from { transform: scaleX(0); } }

.wr-rank, .wr-team, .wr-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wr-rank li, .wr-team li, .wr-who li {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 16px 9px 10px; border-radius: 20px;
  background: var(--wr-glass); box-shadow: inset 0 0 0 1px var(--wr-line);
  animation: wr-rise .7s var(--ease-out) both; animation-delay: calc(560ms + var(--j, 0) * 100ms);
}
.wr-rank-no { width: 16px; text-align: center; font-size: 14px; font-weight: 800; color: var(--wr-fg-2); font-variant-numeric: tabular-nums; }
.wr-rank-ico { width: 40px; height: 40px; flex: none; border-radius: 30%; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.wr-rank-name, .wr-team-name { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-rank b, .wr-team b, .wr-who b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wr-av {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 800;
  background: var(--wr-faint); color: var(--wr-fg);
}
.wr-av.is-top { background: linear-gradient(160deg, #E3A06A, #A8642F); color: #1A0F07; box-shadow: 0 6px 16px rgba(138, 79, 34, .35); }
.wr-who .wr-av { background: linear-gradient(160deg, #E3A06A, #A8642F); color: #1A0F07; }
.wr-who-txt { flex: 1; min-width: 0; display: grid; font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.wr-who-txt small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wr-fg-2); }

.wr-stars { position: relative; display: inline-block; margin-bottom: 2.4cqh; }
.wr-stars > span { display: flex; gap: 6px; }
.wr-stars svg { width: 30px; height: 30px; flex: none; }
.wr-stars-base svg { fill: var(--wr-faint); }
.wr-stars-fill { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); animation: wr-stars 1.2s var(--ease-out) .6s both; }
.wr-stars-fill svg { fill: #EDBB74; }
@keyframes wr-stars { from { clip-path: inset(0 100% 0 0); } }
.wr-quote { position: relative; margin: 0; padding: 16px 20px 16px; border-radius: 22px; background: var(--wr-glass); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-quote blockquote { margin: 0; font: 620 clamp(16px, 4.7cqw, 20px)/1.36 var(--font-display); letter-spacing: -.018em; text-wrap: pretty; }
.wr-quote blockquote::before { content: '“'; display: block; height: .5em; margin: 4px 0 6px; font-size: 56px; font-weight: 800; line-height: .9; color: var(--wr-em); }
.wr-quote figcaption { margin-top: 10px; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--wr-fg-2); }

.wr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.wr-sum-tile {
  min-width: 0; padding: 14px 16px 13px; border-radius: 20px; background: var(--wr-glass); box-shadow: inset 0 0 0 1px var(--wr-line);
  animation: wr-rise .7s var(--ease-out) both; animation-delay: calc(560ms + var(--j, 0) * 80ms);
}
.wr-sum-tile span { display: block; font-size: 10.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--wr-fg-2); }
.wr-sum-tile b {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px;
  font: 780 clamp(16px, 4.9cqw, 22px)/1.15 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.wr-sum-tile small { display: block; margin-top: 3px; font-size: 12px; font-weight: 550; color: var(--wr-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wr-ledger { padding: 4px 18px; border-radius: 22px; background: var(--wr-glass); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14.5px; font-weight: 550; color: var(--wr-fg-2); font-variant-numeric: tabular-nums; animation: wr-rise .6s var(--ease-out) both; animation-delay: calc(560ms + var(--j, 0) * 80ms); }
.wr-ledger-row + .wr-ledger-row { box-shadow: inset 0 1px 0 var(--wr-line); }
.wr-ledger-row b { color: var(--wr-fg); font-weight: 700; }
.wr-ledger-row.is-strong { color: var(--wr-fg); font-weight: 700; }
.wr-ledger-row.is-strong b { font-weight: 800; }
.wr-note { margin: 12px 2px 0; font-size: 14px; line-height: 1.4; font-weight: 550; color: var(--wr-fg-2); }

.wr-actions { display: flex; gap: 10px; width: 100%; margin-top: 3.2cqh; }
.wr-btn {
  flex: 1; min-height: 54px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em; transition: transform .14s var(--ease-out), filter .2s ease;
}
.wr-btn:active { transform: scale(.96); }
.wr-btn:hover { filter: brightness(1.06); }
.wr-btn-main { background: var(--wr-fg); color: var(--wr-on-fg); box-shadow: 0 12px 32px rgba(40, 18, 4, .3); }
.wr-btn-ghost { background: var(--wr-glass); color: var(--wr-fg); box-shadow: inset 0 0 0 1px var(--wr-line); }
.wr-btn:focus-visible, .wr-close:focus-visible, .wr-arrow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(233, 201, 163, .7); }

/* ---------- Thèmes ---------- */
.wr-t-copper {
  --wr-bg: linear-gradient(165deg, #E9A86F 0%, #C8814A 44%, #94521F 100%);
  --wr-fg: #1A0F07; --wr-fg-2: rgba(26, 15, 7, .68); --wr-on-fg: #FCEBD8;
  --wr-glass: rgba(255, 243, 230, .2); --wr-line: rgba(255, 243, 230, .26); --wr-faint: rgba(26, 15, 7, .14);
  --b1: rgba(255, 218, 170, .9); --b2: rgba(110, 50, 14, .7); --b3: rgba(255, 238, 214, .5);
  --wr-num: #1A0F07; --wr-em: #F6D3AE; --wr-em-bg: #1A0F07;
}
.wr-t-espresso {
  --wr-bg: linear-gradient(180deg, #17120F 0%, #0E0C0B 100%);
  --wr-fg: #F6F1EA; --wr-fg-2: rgba(246, 241, 234, .64); --wr-on-fg: #1A0F07;
  --wr-glass: rgba(255, 255, 255, .065); --wr-line: rgba(255, 255, 255, .09); --wr-faint: rgba(255, 255, 255, .12);
  --b1: rgba(200, 129, 74, .5); --b2: rgba(168, 100, 47, .42); --b3: rgba(233, 201, 163, .16);
  --wr-num-grad: linear-gradient(172deg, #FFF1DF 0%, #E9C9A3 40%, #C8814A 100%); --wr-em: #E9C9A3;
}
.wr-t-crema {
  --wr-bg: linear-gradient(165deg, #FCEEDC 0%, #EFD3B0 52%, #DCAE80 100%);
  --wr-fg: #1A1210; --wr-fg-2: rgba(26, 18, 16, .64); --wr-on-fg: #FCEEDC;
  --wr-glass: rgba(255, 255, 255, .42); --wr-line: rgba(26, 18, 16, .07); --wr-faint: rgba(26, 18, 16, .12);
  --b1: rgba(255, 255, 255, .9); --b2: rgba(200, 129, 74, .45); --b3: rgba(255, 247, 236, .75);
  --wr-num-grad: linear-gradient(172deg, #B8743F 0%, #8A4F22 55%, #5E3214 100%); --wr-em: #F6D3AE; --wr-em-bg: #1A1210;
}
.wr-t-ok {
  --wr-bg: linear-gradient(165deg, #237A4F 0%, #135034 50%, #0A2B1C 100%);
  --wr-fg: #F1FFF6; --wr-fg-2: rgba(241, 255, 246, .7); --wr-on-fg: #06180D;
  --wr-glass: rgba(255, 255, 255, .09); --wr-line: rgba(255, 255, 255, .12); --wr-faint: rgba(255, 255, 255, .16);
  --b1: rgba(95, 189, 136, .6); --b2: rgba(20, 80, 50, .8); --b3: rgba(196, 240, 212, .22);
  --wr-num-grad: linear-gradient(172deg, #FFFFFF 0%, #D2F6E0 42%, #7FD9A4 100%); --wr-em: #A8E6C1;
}
.wr-t-danger {
  --wr-bg: linear-gradient(165deg, #B0412A 0%, #741F12 50%, #2E0B06 100%);
  --wr-fg: #FFF4F0; --wr-fg-2: rgba(255, 244, 240, .72); --wr-on-fg: #2E0B06;
  --wr-glass: rgba(255, 255, 255, .09); --wr-line: rgba(255, 255, 255, .12); --wr-faint: rgba(255, 255, 255, .16);
  --b1: rgba(239, 115, 91, .6); --b2: rgba(90, 20, 10, .8); --b3: rgba(255, 190, 170, .22);
  --wr-num-grad: linear-gradient(172deg, #FFFFFF 0%, #FFD6CA 42%, #FF9D85 100%); --wr-em: #FFC2B2;
}

/* ---------- Mouvement réduit : pas de dérive, révélations instantanées ---------- */
@media (prefers-reduced-motion: reduce) {
  .wr-blob, .wr-emoji span, .wr-hint, .wr-r, .wr-slide, .wr-slide.is-out, .wr-story, .wr-story.is-bump,
  .wr.is-opening .wr-story, .wr.is-opening .wr-backdrop, .wr.is-opening .wr-ambient,
  .wr-hist-bars i, .wr-mix-row, .wr-mix-track i, .wr-rank li, .wr-team li, .wr-who li, .wr-stars-fill, .wr-sum-tile, .wr-ledger-row {
    animation: none !important;
  }
  .wr-story, .wr-backdrop, .wr-chrome { transition: none !important; }
}
