/* ==========================================================================
   Lolla — module Bonus : quiz, memes, wrapped, rivalités, tiltomètre, Discord
   DA « Vestiaire » : aplats, bordures 1px, stickers pour le fun. Pas de lueur ni de dégradé.
   ========================================================================== */

.bonus-links { margin: -6px 0 16px; }
.bonus-links .chip { text-decoration: none; }
.bonus-gap { margin-top: 4px; }

/* ==========================================================================
   ARCADE (DA v2 « Jeu ») : gros visuels, peu de texte, une seule couleur d'accent (menthe).
   ========================================================================== */
.ar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ar-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.ar-help { position: relative; margin-left: auto; }
.ar-help summary {
    list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font: 800 17px var(--f-sans); color: var(--text-2);
    border: 1px solid var(--line-2); background: var(--panel); transition: .15s;
}
.ar-help summary::-webkit-details-marker { display: none; }
.ar-help summary:hover, .ar-help[open] summary { color: var(--mint-ink); background: var(--mint); border-color: var(--mint); }
.ar-help-box {
    position: absolute; right: 0; top: 46px; z-index: 30; width: min(320px, calc(100vw - 32px));
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2);
    display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2);
}
.ar-help-box b { color: var(--text); }

/* Bouton d'action principal : menthe + ombre dure */
.ar-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--mint); color: var(--mint-ink); box-shadow: 0 4px 0 #000;
    font: 800 15px var(--f-sans); text-transform: uppercase; letter-spacing: .02em;
    transition: transform .12s, box-shadow .12s;
}
.ar-go:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #000; }
.ar-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.ar-go:disabled { opacity: .45; cursor: default; transform: none; }
.ar-go-sm { height: 38px; padding: 0 14px; font-size: 13px; }
.ar-go-lg { height: 58px; padding: 0 34px; font-size: 18px; }
.ar-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.ar-ghost:hover { box-shadow: none; border-color: var(--text-2); }

/* Défis en attente */
.ar-pending { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.ar-chal {
    flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin: 0;
    padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid var(--mint); background: var(--panel);
}
.ar-chal-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ar-chal-txt b { font-size: 14px; }
.ar-chal-txt small { color: var(--muted); font-size: 12px; }

/* Tuiles du hub */
.ar-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ar-tile-form { margin: 0; display: contents; }
.ar-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%;
    aspect-ratio: 4 / 3; padding: 16px; overflow: hidden; cursor: pointer; text-align: left;
    border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
    box-shadow: 0 5px 0 #000; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s;
    font: inherit;
}
.ar-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #000; border-color: var(--line-2); }
.ar-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.ar-tile:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.ar-tile-art { position: absolute; inset: 0; background: center 22% / cover no-repeat; transition: transform .4s var(--ease); }
.ar-tile:hover .ar-tile-art { transform: scale(1.06); }
.ar-tile-art::after { content: ""; position: absolute; inset: 55% 0 0; background: rgba(12, 13, 16, .82); }
.ar-tile-flags .ar-tile-art { background-size: 115% auto; background-position: center; filter: saturate(.9); }
.ar-tile-name { position: relative; font: 800 28px/1 var(--f-display); letter-spacing: -.03em; }
.ar-tile-best { position: relative; margin-top: 6px; font-size: 12px; color: var(--mint); }
.ar-tile-versus { grid-column: span 2; aspect-ratio: auto; }
.ar-tile-quick { grid-column: span 3; aspect-ratio: auto; min-height: 120px; }
.ar-tile-quick .ar-tile-art { background-position: center 30%; }
.ar-tile-quick .ar-tile-art::after { inset: 0; background: rgba(12, 13, 16, .6); }
@media (max-width: 760px) {
    .ar-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ar-tile { padding: 12px; }
    .ar-tile-name { font-size: 18px; }
    .ar-tile-versus { grid-column: span 2; min-height: 150px; }
    .ar-tile-quick { grid-column: span 2; min-height: 96px; }
}

/* ---------- Partie à questions ---------- */
.bq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.bq.is-duel { grid-template-columns: minmax(0, 1fr) 230px; max-width: 1020px; }
.bq.is-solo .bq-side { display: none; }
.bq-main { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.bq-top { border-radius: 14px 14px 0 0; }
.bq-form .bq-ac-list { top: auto; bottom: calc(100% + 4px); }
.bq-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.bq-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); transition: .15s; }
.bq-back:hover { color: var(--text); background: var(--panel-3); }
.bq-title { font-weight: 800; font-size: 15px; }
.bq-dots { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.bq-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); transition: .2s; }
.bq-dots i.is-now { background: var(--text); transform: scale(1.2); }
.bq-dots i.is-good { background: var(--mint); }
.bq-dots i.is-bad { background: var(--loss); }
.bq-score { min-width: 54px; text-align: right; font-size: 20px; font-weight: 800; }
.bq-timer { height: 5px; background: var(--panel-3); }
.bq-timer span { display: block; height: 100%; width: var(--w, 0%); background: var(--mint); }
.bq-timer span.is-hurry { background: var(--loss); }
.bq-clock { position: absolute; top: 58px; right: 14px; font-size: 13px; color: var(--muted); }
.bq-clock.is-hurry { color: var(--loss); }
.bq-stage { padding: 18px 16px 22px; min-height: 420px; display: flex; flex-direction: column; gap: 14px; }
.bq-stage.is-enter > * { animation: bq-in .25s var(--ease) both; }
@keyframes bq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bq-prompt { font: 800 24px/1.2 var(--f-sans); text-align: center; text-wrap: balance; }
.bq-mode-lol .bq-prompt, .bq-mode-quick .bq-prompt { font-size: 21px; }
.bq-sub { color: var(--muted); font-size: 13px; text-align: center; margin-top: -8px; }
.bq-media { display: flex; justify-content: center; }
.bq-splash { position: relative; width: 100%; max-width: calc(48vh * 16 / 9); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel-3); }
.bq-splash img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s, transform .7s cubic-bezier(.2,.8,.2,1); animation: bq-dezoom .7s cubic-bezier(.2,.8,.2,1); }
@keyframes bq-dezoom { from { transform: scale(1.35); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .bq-splash img { animation: none; } }
.bq-splash.is-loading img { opacity: .6; }
.bq-splash.is-shake { animation: bq-shake .35s; }
.bq-flag { width: min(320px, 80%); aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 4px 0 #000); }
.bq-icon { width: 104px; height: 104px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-3); object-fit: cover; }
@keyframes bq-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }

.bq-form { display: flex; gap: 8px; align-items: stretch; }
.bq-form .bq-ac { flex: 1; }
.bq-form input { width: 100%; height: 52px; font-size: 17px; border-radius: 12px; }
.bq-form .ar-go { height: 52px; }
.bq-ac { position: relative; }
.bq-ac-list {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
    margin: 0; padding: 4px; list-style: none; max-height: 264px; overflow-y: auto;
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px;
}
.bq-ac-list li { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-weight: 650; }
.bq-ac-list li img { width: 30px; height: 30px; border-radius: 6px; }
.bq-ac-list li.is-active, .bq-ac-list li:hover { background: var(--panel-3); }
.bq-tries { display: flex; justify-content: center; gap: 6px; }
.bq-tries i { width: 26px; height: 6px; border-radius: 3px; background: var(--panel-3); }
.bq-tries i.is-used { background: var(--loss); }

.bq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bq-opt {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px 14px;
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); box-shadow: 0 4px 0 #000;
    font: 750 16px/1.2 var(--f-sans); color: var(--text); cursor: pointer; text-align: center;
    transition: transform .12s, box-shadow .12s, background .15s, border-color .15s;
}
.bq-opt img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.bq-opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #000; border-color: var(--text-2); }
.bq-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.bq-opt:disabled { cursor: default; }
.bq-opt.is-picked { border-color: var(--text); }
.bq-opt.is-right { border-color: var(--mint); background: var(--mint); color: var(--mint-ink); }
.bq-opt.is-wrong { border-color: var(--loss); background: var(--loss-bg); animation: bq-shake .35s; }
.bq-opt.is-dim { opacity: .45; }

.bq-feedback { min-height: 24px; text-align: center; font-weight: 800; font-size: 16px; }
.bq-feedback.is-good { color: var(--mint); }
.bq-feedback.is-bad { color: var(--loss); }
.bq-hints { display: none; }

.bq-reveal { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); animation: bq-in .25s var(--ease) both; }
.bq-reveal img { width: 58px; height: 58px; border-radius: 10px; flex: none; }
.bq-reveal b { display: block; font: 900 22px/1.1 var(--f-sans); font-variation-settings: "wdth" 115; text-transform: uppercase; }
.bq-reveal p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.bq-reveal .bq-pts { margin-left: auto; font: 800 22px var(--f-mono); color: var(--mint); }
.bq-reveal .bq-pts.is-zero { color: var(--loss); }
.bq-results { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bq-results li { padding: 4px 9px; border-radius: 8px; background: var(--panel-2); font-size: 12.5px; }
.bq-results li.is-good { color: var(--mint); }
.bq-results li.is-bad { color: var(--loss); }

.bq-center { margin: auto; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bq-count { font: 900 96px/1 var(--f-mono); color: var(--text); }
.bq-big { font: 900 clamp(64px, 16vw, 112px)/1 var(--f-mono); }
.bq-verdict { font: 900 30px/1 var(--f-sans); font-variation-settings: "wdth" 125; text-transform: uppercase; }
.bq-lp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font: 800 16px var(--f-mono); box-shadow: 0 3px 0 #000; animation: bq-pop .4s .3s var(--ease) both; }
@keyframes bq-pop { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
.bq-stat { color: var(--muted); font: 600 13px var(--f-mono); }
.bq-mates { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bq-mate { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font: 700 13px var(--f-sans); transition: .15s; }
.bq-mate:hover:not(:disabled) { border-color: var(--mint); }
.bq-mate:disabled { opacity: .5; cursor: default; }
.bq-mate.is-sent { border-color: var(--mint); color: var(--mint); }
.bq-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bq-lobby-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bq-lobby-players span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 650; }

.bq-side { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; align-self: start; }
.bq-players { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bq-players li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bq-players li:last-child { border-bottom: 0; }
.bq-players li.is-me b { color: var(--mint); }
.bq-players .grow small { display: block; color: var(--muted); font: 500 11px var(--f-mono); }
.bq-players .bq-pts { font: 700 15px var(--f-mono); }
.bq-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); flex: none; }
.bq-dot.is-on { background: var(--mint); }
.bq-podium { margin: 0; padding: 0; list-style: none; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; }
.bq-podium li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel-2); text-align: left; }
.bq-podium .pos { font: 800 16px var(--f-mono); width: 20px; color: var(--muted); }
@media (max-width: 1023px) {
    .bq.is-duel { grid-template-columns: 1fr; }
    .bq-side { order: -1; }
    .bq-players { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .bq-players li { border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; }
}
@media (max-width: 760px) {
    .bq-main { border-radius: 12px; margin: 0 -4px; }
    .bq-prompt { font-size: 20px; }
    .bq-mode-lol .bq-prompt, .bq-mode-quick .bq-prompt { font-size: 17px; }
    .bq-options { gap: 8px; }
    .bq-opt { min-height: 58px; font-size: 14.5px; padding: 8px 10px; }
    .bq-opt img { width: 30px; height: 30px; }
    .bq-stage { min-height: 360px; padding: 14px 12px 18px; }
    .bq-dots i { width: 8px; height: 8px; }
    .bq-title { display: none; }
}

/* ---------- Lolla Fighters (jeu de combat pixel, plein écran) ---------- */
html.vf-lock, html.vf-lock body { overflow: hidden; }
.vf {
    position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text); font-family: var(--f-pixel); overflow: hidden;
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.vf button, .vf select { font-family: var(--f-sans); }
.vf-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.vf-brand { flex: 1; text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--gold); }
.vf-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; transition: .15s; }
.vf-ic:hover { border-color: var(--accent); }
.vf-ic[data-sound-toggle].is-on { color: var(--accent); }
.vf-ic b { font-size: 10px; }
.vf-ic[hidden] { display: none; }

.vf-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px; }
.vf-stage canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.6); touch-action: none; }

.vf-panel { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; overflow-y: auto; }
.vf-panel[hidden] { display: none; }
.vf-title { background: transparent; text-align: center; cursor: pointer; }
.vf-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; }
.vf-logo span { font-size: clamp(16px, 4vw, 26px); color: var(--accent); letter-spacing: .2em; }
.vf-logo b { font-size: clamp(26px, 8vw, 54px); color: var(--gold); letter-spacing: .06em; font-weight: 400; }
.vf-blink { font-size: 12px; animation: vf-blink 1s steps(2) infinite; text-shadow: 2px 2px 0 #000; }
.vf-blink[hidden] { display: none; }
@keyframes vf-blink { 50% { opacity: 0; } }
.vf-credit { font-size: 8px; color: var(--text-2); text-shadow: 1px 1px 0 #000; }
.vf-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 8px; }
.vf-modes[hidden] { display: none; }
.vf-mode {
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 12px 14px;
    background: rgba(8, 12, 22, .88); border: 1px solid var(--line); color: var(--text); cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: .15s;
}
.vf-mode b { font-size: 12px; font-weight: 400; color: var(--gold); }
.vf-mode small { font-size: 7px; color: var(--text-2); line-height: 1.5; }
.vf-mode:hover:not(:disabled), .vf-mode:focus-visible { border-color: var(--accent); background: rgba(14, 40, 40, .9); outline: none; }
.vf-mode.is-hot { border-color: var(--accent); grid-column: 1 / -1; }
.vf-mode:disabled { opacity: .45; cursor: default; }

.vf-select { background: rgba(4, 6, 12, .9); justify-content: flex-start; }
.vf-h { font-size: 11px; color: var(--gold); text-align: center; line-height: 1.5; }
.vf-pick { display: flex; gap: 16px; align-items: center; width: min(640px, 100%); }
.vf-big { position: relative; flex: none; width: 168px; height: 168px; background: var(--bg); border: 2px solid var(--gold); }
.vf-big img { width: 100%; height: 100%; image-rendering: pixelated; }
.vf-tag { position: absolute; top: -8px; left: -8px; padding: 3px 5px; background: var(--accent); color: var(--accent-ink); font-size: 8px; }
.vf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vf-info > b { font-size: 16px; font-weight: 400; color: var(--text); }
.vf-info > small { font-size: 7px; color: var(--text-2); line-height: 1.6; }
.vf-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.vf-cell { position: relative; padding: 0; aspect-ratio: 1; border: 2px solid var(--line); background: var(--bg); cursor: pointer; overflow: hidden; transition: border-color .12s, transform .12s; }
.vf-cell img { width: 100%; height: 100%; image-rendering: pixelated; }
.vf-cell span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 2px; background: rgba(0,0,0,.7); font-size: 6px; text-align: center; color: var(--text); }
.vf-cell:hover { transform: translateY(-2px); border-color: var(--muted); }
.vf-cell.is-on { border-color: var(--accent); animation: vf-cur .6s steps(2) infinite; }
@keyframes vf-cur { 50% { border-color: var(--text); } }
.vf-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vf-opt { display: flex; align-items: center; gap: 8px; font-size: 8px; color: var(--text-2); }
.vf-opt[hidden] { display: none; }
.vf-opt select, .vf-train select { height: 32px; padding: 0 28px 0 8px; font-size: 8px; color: var(--text); background-color: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.vf-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vf-btn {
    padding: 13px 20px; font-size: 11px; color: var(--accent-ink); background: var(--accent); border: 0; cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: filter .12s, transform .1s;
}
.vf-btn:hover { filter: brightness(1.1); }
.vf-btn:active { transform: translateY(2px); }
.vf-btn:disabled { opacity: .6; }
.vf-btn.is-ghost { background: var(--panel); color: var(--text); }

.vf-result, .vf-movelist { background: rgba(4, 6, 12, .86); }
.vf-res { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.vf-res-t { font-size: clamp(22px, 6vw, 34px); text-shadow: 3px 3px 0 #000; }
.vf-res-t.is-win { color: var(--accent); }
.vf-res-t.is-loss { color: var(--loss); }
.vf-res-s { font-size: 14px; color: var(--gold); }
.vf-res-lp { font-size: 18px; padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); }
.vf-res-lp.is-up { color: var(--accent); }
.vf-res-lp.is-down { color: var(--loss); }
.vf-res-sub { font-size: 8px; color: var(--text-2); line-height: 1.6; }
.vf-mates { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.vf-mate { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; font: 600 12px var(--f-sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.vf-mate:hover:not(:disabled) { border-color: var(--accent); }
.vf-mate.is-sent { color: var(--accent); border-color: var(--accent); }
.vf-ml { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.vf-ml-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.vf-ml-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2px 10px; padding: 7px 8px; background: var(--bg); border-left: 2px solid var(--line); }
.vf-ml-row b { font-size: 8px; font-weight: 400; color: var(--gold); line-height: 1.5; }
.vf-ml-row span { font-size: 9px; text-align: right; font-family: var(--f-mono, monospace); }
.vf-ml-row small { grid-column: 1 / -1; font-size: 6px; color: var(--text-2); }
.vf-tip { font-size: 7px; color: var(--text-2); line-height: 1.6; text-align: center; }
.vf-ml .vf-btn { align-self: center; }

.vf-train { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; }
.vf-train[hidden] { display: none; }
.vf-frames { pointer-events: none; padding: 6px 8px; font-size: 7px; line-height: 1.5; background: rgba(0,0,0,.72); color: var(--text); max-width: 100%; }
.vf-train-opts { pointer-events: auto; display: flex; gap: 8px; align-items: center; font-size: 7px; background: rgba(0,0,0,.72); padding: 4px 6px; }
.vf-train-opts label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

.vf-pad { display: none; }
.vf-keys { flex: none; padding: 6px 10px 10px; font-size: 7px; color: var(--muted); text-align: center; line-height: 1.6; }
.vf.is-touch .vf-keys { display: none; }
.vf.is-touch .vf-stage { align-items: flex-start; padding-top: 18px; }
.vf.is-touch .vf-pad { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 18px; }
.vf-stick { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); touch-action: none; }
.vf-stick span { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); pointer-events: none; }
.vf-btns { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 54px); gap: 7px; }
.vf-btns button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); touch-action: none; box-shadow: 0 3px 0 #000; }
.vf-btns button b { font-size: 10px; font-weight: 400; }
.vf-btns button small { font-size: 5px; color: var(--text-2); }
.vf-btns button.is-down { transform: translateY(3px); box-shadow: none; border-color: var(--accent); }
.vf-btns .is-sp { border-color: var(--accent); color: var(--accent); }
.vf-btns .is-su { border-color: var(--gold); color: var(--gold); }
.vf-btns [data-vf-btn="LP"] { grid-column: 1; grid-row: 1; } .vf-btns [data-vf-btn="HP"] { grid-column: 2; grid-row: 1; }
.vf-btns [data-vf-btn="LK"] { grid-column: 1; grid-row: 2; } .vf-btns [data-vf-btn="HK"] { grid-column: 2; grid-row: 2; }
.vf-btns .is-sp { grid-column: 3; grid-row: 2; } .vf-btns .is-su { grid-column: 3; grid-row: 1; }

@media (max-width: 760px) {
    .vf-pick { flex-direction: column; gap: 10px; align-items: center; }
    .vf-big { width: 120px; height: 120px; }
    .vf-info { align-items: center; text-align: center; width: 100%; }
    .vf-roster { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
    .vf-cell span { display: none; }
    .vf-modes { grid-template-columns: 1fr; width: min(300px, 100%); }
    .vf-panel { gap: 10px; padding: 10px; }
}
@media (orientation: landscape) and (max-height: 520px) {
    .vf.is-touch .vf-pad { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 6px 12px; pointer-events: none; }
    .vf.is-touch .vf-pad > * { pointer-events: auto; opacity: .82; }
    .vf.is-touch .vf-stick { width: 104px; height: 104px; }
    .vf-top { padding: 4px 8px; }
}

/* Lolla Fighters: écrans HTML autour du jeu, variables CSS génériques uniquement (DA v7 « Blitz × Meeko » via les variables du site : accent flamme, catégorie Versus, Bricolage Grotesque + Archivo) */
.vf { background: var(--bg); font-family: var(--f-body, var(--f-sans)); }
.vf::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), radial-gradient(50% 50% at 90% 100%, color-mix(in srgb, var(--cat-versus) 9%, transparent), transparent 70%); }
.vf-top { position: relative; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.vf-brand { font-family: var(--f-display, var(--f-sans)); font-weight: 700; font-size: 15px; letter-spacing: .01em; color: var(--text); text-shadow: none; }
.vf-ic { border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); transition: border-color .15s, color .15s, transform .15s; }
.vf-ic:hover { border-color: var(--accent); color: var(--text); box-shadow: none; transform: translateY(-1px); }
.vf-ic .ico { width: 18px; height: 18px; }
.vf-panel:not([hidden]) { animation: vf-in .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vf-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.vf-logo { gap: 4px; text-shadow: none; }
.vf-logo span { font-family: var(--f-display, var(--f-sans)); font-weight: 600; font-size: clamp(14px, 2.6vw, 18px); letter-spacing: .3em; color: var(--accent); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.vf-logo b { font-family: var(--f-display, var(--f-sans)); font-weight: 800; font-size: clamp(34px, 8vw, 64px); letter-spacing: -.035em; color: var(--text); text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.vf-blink { font-family: var(--f-body, var(--f-sans)); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--text-2); }
.vf-credit { font-family: var(--f-mono, monospace); color: var(--muted); }
.vf-modes { gap: 10px; }
.vf-mode { border-radius: 16px; clip-path: none; background: color-mix(in srgb, var(--bg) 86%, transparent); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: border-color .18s, transform .18s, background .18s; }
.vf-mode b { font-family: var(--f-display, var(--f-sans)); font-weight: 700; font-size: 15px; color: var(--text); text-transform: none; }
.vf-mode small { font-family: var(--f-body, var(--f-sans)); font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.vf-mode:hover:not(:disabled), .vf-mode:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--bg) 95%, transparent); box-shadow: 0 14px 34px rgba(0,0,0,.4); transform: translateY(-2px); }
.vf-mode.is-hot, .vf-mode.is-arcade { border-color: color-mix(in srgb, var(--cat-versus) 55%, transparent); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--cat-versus) 16%, transparent), transparent 60%), color-mix(in srgb, var(--bg) 86%, transparent); }
.vf-mode.is-ctl b { color: var(--text-2); }
.vf-btn {
    clip-path: none; border-radius: 10px; padding: 12px 22px; border: 1px solid transparent;
    background: var(--accent); color: var(--accent-ink); box-shadow: none;
    font-family: var(--f-display, var(--f-sans)); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none;
    transition: filter .15s, transform .12s;
}
.vf-btn:hover { background: var(--accent-2, var(--accent)); transform: translateY(-1px); }
.vf-btn:active { transform: translateY(1px); box-shadow: none; }
.vf-btn.is-ghost { background: transparent; color: var(--text); border-color: var(--line-2); box-shadow: none; }
.vf-btn.is-ghost:hover { border-color: var(--accent); }
.vf-select, .vf-result, .vf-movelist, .vf-controls { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.vf-h { font-family: var(--f-display, var(--f-sans)); font-weight: 800; font-size: 20px; letter-spacing: -.035em; color: var(--text); text-shadow: none; text-transform: none; }
.vf-big { border-radius: 16px; border: 1px solid var(--line-2); background: radial-gradient(80% 70% at 50% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.vf-tag { border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.vf-style { border-radius: 6px; background: color-mix(in srgb, var(--cat-versus) 18%, transparent); color: var(--text); transform: none; font-family: var(--f-mono, monospace); }
.vf-info > b { font-family: var(--f-display, var(--f-sans)); font-weight: 800; font-size: 32px; letter-spacing: -.02em; text-transform: none; }
.vf-info > small { font-family: var(--f-body, var(--f-sans)); font-size: 12px; color: var(--text-2); letter-spacing: .02em; }
.vf-tagline { font-family: var(--f-body, var(--f-sans)); font-size: 13px; font-style: normal; color: var(--accent); }
.vf-stat { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 8px; font-family: var(--f-body, var(--f-sans)); font-size: 11px; color: var(--text-2); }
.vf-stat i { display: flex; gap: 3px; }
.vf-stat b { width: 18px; height: 6px; border-radius: 3px; }
.vf-stat b { background: var(--panel-3); }
.vf-stat b.is-on { background: var(--accent); box-shadow: none; }
.vf-cell { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.vf-cell span { font-family: var(--f-body, var(--f-sans)); font-size: 9px; }
.vf-cell.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); transform: translateY(-2px); }
.vf-opt { font-family: var(--f-body, var(--f-sans)); font-size: 11px; }
.vf-opt select, .vf-train select { border-radius: 10px; background-color: var(--panel); border-color: var(--line-2); font-family: var(--f-body, var(--f-sans)); font-size: 12px; }
.vf-res-t { font-family: var(--f-display, var(--f-sans)); font-weight: 800; letter-spacing: -.035em; text-transform: none; }
.vf-res-t.is-win { color: var(--mint); text-shadow: none; }
.vf-res-t.is-loss { color: var(--loss); text-shadow: none; }
.vf-res-s { font-family: var(--f-mono, monospace); color: var(--text); }
.vf-res-lp { border-radius: 10px; font-family: var(--f-display, var(--f-sans)); background: var(--panel); border-color: var(--line-2); }
.vf-res-lp.is-up { color: var(--accent); }
.vf-res-sub { font-family: var(--f-body, var(--f-sans)); font-size: 12px; color: var(--muted); }
.vf-quote { border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); }
.vf-quote b { font-family: var(--f-display, var(--f-sans)); font-size: 13px; color: var(--accent); }
.vf-quote p { font: 500 14px/1.45 var(--f-body, var(--f-sans)); color: var(--text); }
.vf-end-art { border-radius: 16px; border: 1px solid var(--line-2); background: radial-gradient(80% 70% at 50% 60%, color-mix(in srgb, var(--cat-versus) 20%, transparent), transparent 70%), var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.vf-end-name { font-family: var(--f-display, var(--f-sans)); font-weight: 800; }
.vf-end-text { font-family: var(--f-body, var(--f-sans)); font-weight: 500; color: var(--text-2); }
.vf-ml-row b { font-family: var(--f-body, var(--f-sans)); font-weight: 700; font-size: 12px; color: var(--text); }
.vf-ml-row span { font-size: 11px; color: var(--accent); }
.vf-ml-row small { font-family: var(--f-body, var(--f-sans)); font-size: 10px; }
.vf-ml-row { border-left-color: var(--line-2); background: var(--panel); border-radius: 0 10px 10px 0; }
.vf-tip, .vf-keys { font-family: var(--f-body, var(--f-sans)); font-size: 11px; letter-spacing: .02em; }
/* Écran « Commandes » */
.vf-controls { z-index: 6; background: var(--bg) !important; }
.vf-ctl { width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px; }
.vf-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.vf-seg button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 700 14px var(--f-display, var(--f-sans)); cursor: pointer; transition: .15s; }
.vf-seg button.is-on { background: var(--accent); color: var(--accent-ink); }
.vf-ctl-tip { font: 500 12px/1.5 var(--f-body, var(--f-sans)); color: var(--text-2); }
.vf-ctl-list { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow-y: auto; }
.vf-ctl-row { display: grid; grid-template-columns: 1fr 120px 96px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--panel); font: 500 13px var(--f-body, var(--f-sans)); color: var(--text); }
.vf-ctl-row button { height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 13px var(--f-mono, monospace); cursor: pointer; }
.vf-ctl-row button:hover { border-color: var(--accent); }
.vf-ctl-row button.is-wait { border-color: var(--accent); color: var(--accent); font-size: 10px; animation: vf-blink 1s steps(2) infinite; }
.vf-ctl-row small { font: 500 10px var(--f-mono, monospace); color: var(--muted); text-align: right; }
.vf-ctl-row.is-head { background: transparent; padding-top: 0; padding-bottom: 0; font: 600 10px var(--f-body, var(--f-sans)); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vf-ctl-row.is-active { box-shadow: inset 0 0 0 1px var(--accent); }
.vf-ctl-row button.is-pad { font-size: 11px; color: var(--text-2); }
.vf-ctl-ask { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--accent);
    background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--panel); text-align: center; animation: vf-in .2s ease; }
.vf-ctl-ask b { font: 800 22px var(--f-display, var(--f-sans)); letter-spacing: -.03em; color: var(--text); }
.vf-ctl-ask small { font: 500 12px var(--f-body, var(--f-sans)); color: var(--text-2); }
.vf-ctl-pre { display: flex; flex-wrap: wrap; gap: 6px; }
.vf-ctl-pre button { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 12px var(--f-body, var(--f-sans)); cursor: pointer; transition: border-color .15s, color .15s; }
.vf-ctl-pre button:hover { border-color: var(--accent); color: var(--text); }
.vf-ctl-pre button.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.vf-ctl-pre button.is-pad::before { content: "◎ "; color: var(--muted); }
.vf-ctl .vf-row { flex-wrap: wrap; justify-content: center; }
/* Manette tactile */
.vf-btns { display: grid; gap: 8px; }
.vf-btns.is-modern { grid-template-columns: repeat(2, 64px) 44px; grid-template-rows: repeat(2, 60px); }
.vf-btns.is-classic { grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 54px); }
.vf-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); touch-action: none; cursor: pointer; transition: transform .08s, border-color .1s; }
.vf-b b { font: 700 14px var(--f-display, var(--f-sans)); }
.vf-b small { font: 600 7px var(--f-body, var(--f-sans)); color: var(--muted); letter-spacing: .04em; }
.vf-b.is-down { transform: scale(.92); border-color: var(--accent); }
.vf-b-SP { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.vf-b-SP b { color: var(--accent); }
.vf-b-HE b, .vf-b-HP b, .vf-b-HK b { color: var(--gold); }
.is-modern .vf-b-GD { grid-column: 3; grid-row: 1 / 3; border-radius: 22px; }
.vf-stick { border-color: var(--line-2); background: var(--bg-2); }
.vf-stick span { border-color: var(--accent); background: var(--panel-3); }
@media (max-width: 760px) {
    .vf-info > b { font-size: 24px; }
    .vf-ctl-row { grid-template-columns: 1fr 88px 88px; gap: 6px; padding: 5px 8px; font-size: 12px; }
    .vf-ctl-row small { font-size: 9px; }
    .vf-ctl-list { max-height: 40vh; }
    .vf-h { font-size: 18px; }
}

/* ---------- Memes ---------- */
.bm { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.bm-controls .tabs { margin-top: -6px; }
.bm-preview { position: sticky; top: calc(var(--top-h) + 12px); display: flex; flex-direction: column; gap: 10px; }
.bm-canvas-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 10px; display: flex; justify-content: center; }
.bm-canvas-wrap canvas { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.bm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 1023px) {
    .bm { grid-template-columns: 1fr; }
    .bm-preview { position: static; order: -1; }
}

/* ---------- Wrapped ---------- */
.wr-periods { margin-bottom: 6px; }
.wr-range { margin-bottom: 14px; }
.wr-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wr-progress, .wr-close, .wr-hint { display: none; }
.wr-slide {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--panel) var(--bg, none) center 20% / cover no-repeat;
}
.wr-slide::before { content: ""; position: absolute; inset: 0; background: rgba(12, 13, 16, .78); }
.wr-slide.wr-absurd, .wr-slide.wr-tribunal { background-color: var(--brand); }
.wr-slide.wr-absurd::before, .wr-slide.wr-tribunal::before, .wr-slide.wr-bets::before, .wr-slide.wr-xp::before { background: rgba(12, 13, 16, .35); }
.wr-slide.wr-bets { background-color: #3a2a00; }
.wr-slide.wr-xp { background-color: #0d3b31; }
.wr-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 16px; }
.wr-kicker { color: var(--mint); }
.wr-icon { width: 56px; height: 56px; border-radius: var(--r-sm); border: 2px solid #000; }
.wr-title { font-size: 26px; line-height: 1; overflow-wrap: anywhere; }
.wr-big { font: 800 clamp(34px, 3.6vw, 56px)/.95 var(--f-display); letter-spacing: -.03em; color: var(--yellow); margin-top: 8px; overflow-wrap: normal; white-space: nowrap; }
.wr-unit { font: 600 14px var(--f-body); color: #ece6e0; }
.wr-sub { color: var(--text); font-size: 14px; margin-top: 4px; max-width: 46ch; }
.wr-lines { margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; }
.wr-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.wr-lines dt { color: #ece6e0; }
.wr-lines dd { margin: 0; font-weight: 700; text-align: right; }
.wr-sticker { align-self: flex-start; margin-top: auto; }
.wr-tools { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 16px; }

/* Mode stories (plein écran) */
html.wr-lock, html.wr-lock body { overflow: hidden; }
.wr-deck.is-playing {
    position: fixed; inset: 0; z-index: 200; display: block;
    background: #000; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.wr-deck.is-playing .wr-slide {
    position: absolute; inset: 0; margin: auto; width: min(100vw, calc(100vh * 9 / 16 + 120px)); max-width: 560px; height: 100%;
    border-radius: 0; border: 0; min-height: 0; visibility: hidden;
}
.wr-deck.is-playing .wr-slide.is-active { visibility: visible; }
.wr-deck.is-playing .wr-inner { justify-content: center; padding: 64px 26px 24px; gap: 12px; }
.wr-deck.is-playing .wr-title { font-size: clamp(28px, 8vw, 40px); }
.wr-deck.is-playing .wr-big { font-size: clamp(56px, 18vw, 104px); }
.wr-deck.is-playing .wr-sticker { margin-top: 12px; }
.wr-deck.is-playing .wr-tools { padding-bottom: 26px; justify-content: center; }
.wr-deck.is-playing .wr-progress {
    display: flex; gap: 4px; position: absolute; z-index: 5; top: 12px; left: 50%; transform: translateX(-50%);
    width: min(calc(100vw - 24px), 536px);
}
.wr-progress i { flex: 1; height: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.wr-progress i span { display: block; height: 100%; width: 0; background: #fff; }
.wr-progress i.is-done span { width: 100%; }
.wr-deck.is-playing .wr-close { display: inline-flex; position: absolute; z-index: 6; top: 22px; right: max(12px, calc(50vw - 268px)); color: #fff; }
.wr-deck.is-playing .wr-hint { display: block; position: absolute; z-index: 5; bottom: 6px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .78); pointer-events: none; }

/* Animations d'entrée (seulement en mode stories) */
@keyframes wr-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wr-pop { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 70% { transform: scale(1.08) rotate(-3deg); } 100% { opacity: 1; transform: rotate(-2.5deg); } }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > * { animation: wr-in .5s var(--ease) both; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(2) { animation-delay: .08s; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(3) { animation-delay: .16s; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(4) { animation-delay: .32s; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(5) { animation-delay: .42s; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(6) { animation-delay: .52s; }
.wr-deck.is-playing .wr-slide.is-active .wr-inner > :nth-child(7) { animation-delay: .62s; }
.wr-deck.is-playing .wr-slide.is-active .wr-sticker { animation: wr-pop .5s .8s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
    .wr-deck.is-playing .wr-slide.is-active .wr-inner > *, .wr-deck.is-playing .wr-slide.is-active .wr-sticker { animation: none; }
}

/* ---------- Rivalités ---------- */
.rv-week { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.rv-week-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.rv-week-who h2 { font-size: 26px; }
.rv-week-sticker { margin-left: auto; }
.rv-week-stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rv-week-stats li { background: var(--panel); padding: 8px 10px; display: flex; flex-direction: column; font-size: 12px; }
.rv-week-stats b { font-size: 13.5px; }
.rv-pick { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rv-pick .field { flex: 1; min-width: 140px; }
.rv-vs { font-size: 22px; color: var(--yellow); padding-bottom: 10px; }
.rv-duel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-side b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-side small { color: var(--muted); }
.rv-side-b { justify-content: flex-end; text-align: right; }
.rv-score { font-size: 34px; display: flex; gap: 8px; align-items: baseline; }
.rv-score i { color: var(--faint); font-style: normal; }
.rv-together { margin-bottom: 10px; }
.rv-rows { margin: 0; padding: 0; list-style: none; }
.rv-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(120px, auto) minmax(0, 1fr) 72px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.rv-val { font: 600 13px var(--f-mono); color: var(--text-2); }
.rv-row .rv-val:last-child { text-align: right; }
.rv-val.is-best { color: var(--mint); font-weight: 800; }
.rv-label { text-align: center; font-size: 12.5px; font-weight: 650; }
.rv-label small { color: var(--muted); font-weight: 450; }
.rv-bar { height: 8px; background: var(--panel-3); display: flex; }
.rv-bar span { display: block; height: 100%; width: var(--w); background: var(--line-2); }
.rv-bar-a { justify-content: flex-end; }
.rv-bar.is-best span { background: var(--mint); }
.rv-table td .crown { display: inline-flex; vertical-align: middle; color: var(--yellow); }
@media (max-width: 760px) {
    .rv-week { grid-template-columns: 1fr; }
    .rv-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 56px; row-gap: 4px; }
    .rv-label { grid-column: 1 / -1; grid-row: 1; }
    .rv-duel-head { grid-template-columns: 1fr auto 1fr; }
    .rv-side .avatar { display: none; }
    .rv-side .sticker { display: none; }
    .rv-score { font-size: 26px; }
}

/* ---------- Tiltomètre ---------- */
.tl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tl-card { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.tl-card.is-total { border-color: var(--loss); }
.tl-who { display: flex; align-items: center; gap: 10px; }
.tl-gauge { height: 10px; background: var(--panel-3); border-radius: 2px; overflow: hidden; }
.tl-gauge span { display: block; height: 100%; width: var(--w); background: var(--c); }
.tl-score { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.tl-score b { font-size: 22px; }
.tl-score small { color: var(--muted); }
.tl-score span { margin-left: auto; font-weight: 700; font-size: 13px; }
.tl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tl-facts > div { display: flex; flex-direction: column; gap: 2px; }
.tl-facts small { font: 500 11px var(--f-mono); }
.tl-facts .form-strip { margin-top: 4px; }

/* ---------- Discord ---------- */
.dc-current { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dc-current code { padding: 3px 8px; border-radius: var(--r-xs); background: var(--panel-3); font-size: 12px; overflow-wrap: anywhere; }
.dc-error { color: var(--loss); margin-bottom: 12px; }
.dc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dc-row form { margin: 0; }
.dc-steps { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
