/* =========================================================================
   Rubrique Jeux : page d'accueil des jeux + Jeu des mots
   Palette néon du site sur fond noir, une couleur par rubrique.
   ========================================================================= */
:root {
    --rub: #00ffd0; /* couleur par défaut, remplacée par les classes rub-xxx */
    --jx-cyan: #00ffd0;
    --jx-pink: #ff4d6d;
    --jx-violet: #a46bff;
    --jx-yellow: #ffc857;
    --jx-orange: #ff8a3d;
    --jx-blue: #4dd2ff;
    --jx-green: #65ff9f;
    --jx-red: #ff5d6c;

    --jx-panel: #151519;
    --jx-panel-2: #1f1f26;
    --jx-field: #0d0d11;
    --jx-border: #2e2e3a;
    --jx-text: #f4f4f8;
    --jx-muted: #a0a3b1;

    --jx-grad: linear-gradient(90deg, var(--jx-pink), var(--jx-violet) 50%, var(--jx-cyan));
    --jx-grad-btn: linear-gradient(135deg, var(--jx-cyan), var(--jx-blue) 55%, var(--jx-violet));
    --jx-radius: 16px;
}

/* Couleur de chaque rubrique */
.rub-da        { --rub: var(--jx-pink); }
.rub-series    { --rub: var(--jx-violet); }
.rub-emissions { --rub: var(--jx-yellow); }
.rub-jeux      { --rub: var(--jx-blue); }
.rub-ost       { --rub: var(--jx-orange); }
.rub-varietes  { --rub: var(--jx-green); }

.jx-body {
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(164,107,255,.16), transparent 60%),
        radial-gradient(800px 500px at 100% 0%, rgba(0,255,208,.10), transparent 60%),
        #050507;
    background-attachment: fixed;
}
.jx-main { max-width: 1120px; margin: 0 auto; padding: 12px 16px 48px; color: var(--jx-text); }
.jx-main ol, .jx-main ul { list-style: none; padding: 0; margin: 0; }
.jx-back { margin: 6px 0 10px; }
.jx-back a, .jx-intro a { color: var(--jx-cyan); text-decoration: none; font-weight: 700; }
.jx-back a:hover { text-decoration: underline; }
.jx-intro { color: var(--jx-muted); margin: 6px 0 18px; font-size: 1.05em; }

.jx-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 120px), var(--jx-panel);
    border: 1px solid var(--jx-border);
    border-radius: var(--jx-radius);
    padding: 22px;
    margin-top: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    overflow: visible;
}
.jx-card::before {
    content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 3px;
    border-radius: 3px; background: var(--jx-grad); opacity: .9;
}
.jx-card h3 { margin: 0 0 12px; color: var(--jx-cyan); font-size: 1.1em; letter-spacing: .02em; }

/* ---- Boutons ---- */
.jx-btn {
    font: inherit; font-weight: 700; letter-spacing: .02em;
    border-radius: 999px; padding: 10px 20px; cursor: pointer;
    border: 1px solid var(--jx-border); background: var(--jx-panel-2); color: var(--jx-text);
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.jx-btn:hover { border-color: var(--jx-cyan); box-shadow: 0 0 0 3px rgba(0,255,208,.12); }
.jx-btn:active { transform: translateY(1px); }
.jx-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.jx-btn-primary {
    background: var(--jx-grad-btn); border-color: transparent; color: #04121a;
    box-shadow: 0 8px 22px rgba(0,255,208,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.jx-btn-primary:hover { filter: brightness(1.08) saturate(1.1); box-shadow: 0 10px 28px rgba(77,210,255,.4), inset 0 1px 0 rgba(255,255,255,.35); }
.jx-btn-ghost { background: rgba(255,255,255,.03); }
.jx-btn-big { padding: 13px 30px; font-size: 1.08em; }
.jx-btn:focus-visible, .jm-sugg:focus-visible, .jm-track-main:focus-visible, .jm-toggle:focus-visible,
.jm-seg-opt input:focus-visible + span, .jm-chip input:focus-visible + span, .jm-seek:focus-visible, .jm-play:focus-visible {
    outline: 2px solid var(--jx-cyan); outline-offset: 2px;
}

/* ---- Accueil des jeux ---- */
.jx-section-title { margin: 30px 0 4px; font-size: 1.25em; background: var(--jx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.jx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.jx-tile {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    background: var(--jx-panel); border: 1px solid var(--jx-border); border-radius: var(--jx-radius);
    padding: 18px; color: var(--jx-text); text-decoration: none; overflow: hidden;
    transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.jx-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rub); }
.jx-tile:hover { border-color: var(--rub); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 24px color-mix(in srgb, var(--rub) 25%, transparent); }
.jx-tile h4 { margin: 0; font-size: 1.08em; color: var(--rub); }
.jx-tile p { margin: 0; color: var(--jx-muted); font-size: .92em; line-height: 1.45; }
.jx-tile .jx-tile-go { margin-top: auto; color: var(--rub); font-weight: 700; font-size: .92em; }
.jx-tile-feature {
    grid-column: 1 / -1; padding: 26px 26px 22px; border-color: rgba(0,255,208,.4);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0,255,208,.16), transparent 55%),
        radial-gradient(120% 160% at 100% 100%, rgba(255,77,109,.14), transparent 55%),
        var(--jx-panel);
}
.jx-tile-feature::before { width: 100%; height: 3px; bottom: auto; background: var(--jx-grad); }
.jx-tile-feature h4 { font-family: 'graphicdisaster', Arial, sans-serif; font-size: 2.1em; font-weight: normal; color: var(--jx-cyan); text-shadow: 0 0 20px rgba(0,255,208,.35); }
.jx-tile-feature p { font-size: 1em; max-width: 680px; }
@media (prefers-reduced-motion: reduce) { .jx-tile, .jx-btn { transition: none; } .jx-tile:hover { transform: none; } }

/* ---- Champs ---- */
.jm-field { display: block; margin-bottom: 18px; }
.jm-label { display: block; font-size: .76em; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--jx-muted); margin-bottom: 8px; }
.jm-grid { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: flex-start; }
.jm-grid > .jm-field { flex: 0 0 auto; }
.jx-main input[type="text"], .jx-main input[type="password"], .jx-main input[type="number"] {
    font: inherit; color: var(--jx-text); background: var(--jx-field); border: 1px solid var(--jx-border);
    border-radius: 10px; padding: 10px 12px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.jx-main input:focus { outline: none; border-color: var(--jx-cyan); box-shadow: 0 0 0 3px rgba(0,255,208,.15); }
.jm-small { padding: 6px 14px; font-size: .86em; }

/* Joueurs : pastille de couleur par joueur */
.jm-players { counter-reset: pl; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.jm-player-row { counter-increment: pl; display: flex; gap: 6px; align-items: center; }
.jm-player-row::before {
    content: counter(pl); flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85em; color: #0b0b0f; background: var(--pc, var(--jx-cyan));
}
.jm-player-row:nth-child(8n+1) { --pc: var(--jx-cyan); }
.jm-player-row:nth-child(8n+2) { --pc: var(--jx-pink); }
.jm-player-row:nth-child(8n+3) { --pc: var(--jx-yellow); }
.jm-player-row:nth-child(8n+4) { --pc: var(--jx-violet); }
.jm-player-row:nth-child(8n+5) { --pc: var(--jx-green); }
.jm-player-row:nth-child(8n+6) { --pc: var(--jx-orange); }
.jm-player-row:nth-child(8n+7) { --pc: var(--jx-blue); }
.jm-player-row:nth-child(8n+8) { --pc: #ff9bd2; }
.jm-player-row input { flex: 1; min-width: 0; }
.jm-player-row .jx-btn { padding: 6px 10px; }

/* Rubriques : pastilles cochables */
.jm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-chip { cursor: pointer; }
.jm-chip input, .jm-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.jm-chip span {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--rub) 45%, transparent); color: var(--jx-muted);
    background: rgba(255,255,255,.02); font-weight: 700; transition: all .15s ease;
}
.jm-chip span::before {
    content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--rub); box-sizing: border-box;
    transition: background .15s ease;
}
.jm-chip input:checked + span { color: #0b0b0f; background: var(--rub); border-color: var(--rub); box-shadow: 0 0 16px color-mix(in srgb, var(--rub) 40%, transparent); }
.jm-chip input:checked + span::before {
    border-color: #0b0b0f; background: #0b0b0f
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Choix segmentés (manches, temps, mot) */
.jm-seg { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--jx-field); border: 1px solid var(--jx-border); }
.jm-seg-opt { cursor: pointer; }
.jm-seg-opt span { display: inline-block; white-space: nowrap; min-width: 26px; text-align: center; padding: 7px 13px; border-radius: 999px; font-weight: 700; color: var(--jx-muted); transition: all .15s ease; }
.jm-seg-opt:hover span { color: var(--jx-text); }
.jm-seg-opt input:checked + span { background: var(--jx-grad-btn); color: #04121a; box-shadow: 0 4px 14px rgba(0,255,208,.3); }

/* Interrupteur */
.jm-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 4px 0 20px; color: var(--jx-text); }
.jm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.jm-switch-track { flex: 0 0 46px; height: 26px; border-radius: 999px; background: #2a2a34; position: relative; transition: background .2s; }
.jm-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.jm-switch input:checked + .jm-switch-track { background: linear-gradient(90deg, var(--jx-green), var(--jx-cyan)); }
.jm-switch input:checked + .jm-switch-track::after { transform: translateX(20px); }
.jm-switch input:focus-visible + .jm-switch-track { outline: 2px solid var(--jx-cyan); outline-offset: 2px; }

.jm-rules { margin-top: 22px; color: var(--jx-muted); line-height: 1.55; background: rgba(255,255,255,.02); border: 1px solid var(--jx-border); border-radius: 12px; padding: 10px 14px; }
.jm-rules summary { cursor: pointer; color: var(--jx-yellow); font-weight: 700; }
.jm-staff { margin-top: 14px; color: var(--jx-muted); font-size: .9em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- Barre de partie ---- */
.jm-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 8px; }
.jm-bar-left { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.jm-round { font-weight: 700; color: #0b0b0f; background: var(--jx-yellow); border-radius: 999px; padding: 5px 14px; }
.jm-rub-reminder { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-rub-center { justify-content: center; margin: 2px 0 12px; }
.jm-rub {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8em; font-weight: 700;
    color: var(--rub); border: 1px solid color-mix(in srgb, var(--rub) 55%, transparent);
    background: color-mix(in srgb, var(--rub) 12%, transparent);
}
.jm-rub-sm { font-size: .72em; padding: 1px 8px; }
.jm-scores { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-score { background: var(--jx-panel); border: 1px solid var(--jx-border); border-radius: 999px; padding: 5px 14px; display: inline-flex; gap: 8px; }
.jm-score-name { color: var(--jx-muted); }
.jm-score b { color: var(--jx-cyan); }

/* ---- Mot ---- */
#jm-word-box, .jm-answer { text-align: center; margin-bottom: 16px; }
.jm-word {
    font-family: 'graphicdisaster', Arial, sans-serif;
    font-size: clamp(2.4em, 9vw, 4.6em); letter-spacing: .04em; line-height: 1.1;
    color: var(--jx-cyan); text-shadow: 0 0 24px rgba(0,255,208,.45), 0 0 2px rgba(255,255,255,.6);
    margin: 4px 0 12px; word-break: break-word;
}
.jm-word-answer { color: var(--jx-green); text-shadow: 0 0 24px rgba(101,255,159,.5), 0 0 2px rgba(255,255,255,.6); }
.jm-total { font-size: 1.1em; font-weight: 700; margin: 0; }

/* ---- Enchères ---- */
.jm-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.jm-question { font-size: 1.15em; font-weight: 700; }
.jm-bid-current { display: inline-block; color: #0b0b0f; background: var(--jx-yellow); border-radius: 10px; padding: 6px 12px; font-weight: 700; }
.jm-bidders { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 !important; }
.jm-bidders li { border: 1px solid var(--jx-border); border-radius: 999px; padding: 4px 12px; color: var(--jx-muted); }
.jm-bidders li.is-turn { border-color: var(--jx-pink); color: #fff; background: rgba(255,77,109,.18); box-shadow: 0 0 14px rgba(255,77,109,.3); }
.jm-bidders li.is-passed { opacity: .45; text-decoration: line-through; }
.jm-stepper { display: inline-flex; align-items: stretch; border-radius: 14px; overflow: hidden; border: 1px solid var(--jx-border); background: var(--jx-field); }
.jm-stepper.is-disabled { opacity: .4; }
.jm-step { width: 46px; font: inherit; font-size: 1.5em; font-weight: 700; border: none; cursor: pointer; color: #0b0b0f; background: var(--jx-pink); }
.jm-step:last-child { background: var(--jx-cyan); }
.jm-step:hover { filter: brightness(1.12); }
.jx-main .jm-num {
    width: 76px; border: none !important; border-radius: 0 !important; background: transparent !important; text-align: center;
    font-size: 1.6em !important; font-weight: 700; color: var(--jx-yellow) !important; -moz-appearance: textfield; box-shadow: none !important;
}
.jm-num::-webkit-outer-spin-button, .jm-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jm-muted { color: var(--jx-muted); }
.jm-msg { min-height: 1.2em; color: var(--jx-muted); }
.jm-msg.is-error { color: var(--jx-red); font-weight: 700; }

/* ---- Saisie des titres ---- */
.jm-entry-head { color: var(--jx-text) !important; font-size: 1.15em !important; }
.jm-timer { display: inline-block; font-weight: 700; color: var(--jx-cyan); min-height: 1.2em; }
.jm-timer:empty { display: none; }
.jm-timer.is-low { color: var(--jx-yellow); animation: jmBlink 1s steps(2) infinite; }
.jm-timer.is-up { color: var(--jx-red); animation: none; }
@keyframes jmBlink { 50% { opacity: .4; } }
.jm-entries { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
.jm-entry { display: flex; gap: 10px; align-items: flex-start; }
.jm-entry-num {
    flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--jx-grad-btn); color: #04121a;
    display: flex; align-items: center; justify-content: center; font-weight: 700; margin-top: 3px;
}
.jm-entry-field { position: relative; flex: 1; min-width: 0; max-width: 640px; }
.jm-entry-field input { width: 100%; }
.jm-chosen {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(0,255,208,.12), rgba(164,107,255,.08)); border: 1px solid rgba(0,255,208,.45);
    border-radius: 10px; padding: 9px 12px;
}
.jm-chosen-title { font-weight: 700; color: #fff; }
.jm-free { color: var(--jx-yellow); font-size: .85em; font-style: italic; }
.jm-clear { margin-left: auto; background: none; border: none; color: var(--jx-muted); cursor: pointer; font-size: 1.05em; }
.jm-clear:hover { color: var(--jx-red); }
.jm-drop {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
    background: #0f0f14; border: 1px solid var(--jx-border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,208,.08); max-height: 340px; overflow-y: auto;
}
.jm-drop-note { margin: 0; padding: 9px 12px; color: var(--jx-yellow); font-size: .88em; background: rgba(255,200,87,.06); }
.jm-sugg {
    display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--jx-text);
    background: none; border: none; border-top: 1px solid #1c1c24; padding: 9px 12px; cursor: pointer;
}
.jm-sugg:hover, .jm-sugg.is-active { background: linear-gradient(90deg, rgba(0,255,208,.14), transparent); }
.jm-sugg-title { font-weight: 700; }
.jm-sugg-meta { color: var(--jx-muted); font-size: .82em; font-weight: 400; }
.jm-sugg-free { color: var(--jx-yellow); font-style: italic; }

/* ---- Vérification ---- */
.jm-verify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin: 14px 0 18px; }
@media (max-width: 820px) { .jm-verify-grid { grid-template-columns: 1fr; } }
.jm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px !important; }
.jm-track { display: flex; gap: 6px; align-items: stretch; }
.jm-track-main {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--jx-text);
    background: var(--jx-panel-2); border: 1px solid var(--jx-border); border-radius: 12px; padding: 9px 12px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.jm-track-main:hover { border-color: var(--jx-cyan); }
.jm-track.is-playing .jm-track-main { border-color: var(--jx-cyan); box-shadow: 0 0 0 3px rgba(0,255,208,.15); background: linear-gradient(90deg, rgba(0,255,208,.10), var(--jx-panel-2)); }
.jm-track-title { font-weight: 700; }
.jm-track-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jm-verdict { align-self: flex-start; font-size: .76em; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.v-lyrics { color: var(--jx-green); }
.v-title { color: var(--jx-cyan); }
.v-absent, .v-unknown, .v-duplicate { color: var(--jx-red); }
.v-unverifiable { color: var(--jx-yellow); }
.jm-toggle {
    flex: 0 0 auto; font: inherit; font-size: .85em; font-weight: 700; cursor: pointer; border-radius: 12px; padding: 0 12px;
    border: 1px solid var(--jx-red); background: rgba(255,93,108,.10); color: var(--jx-red); min-width: 108px;
}
.jm-toggle.is-on { border-color: var(--jx-green); background: rgba(101,255,159,.12); color: var(--jx-green); }
.jm-contract { font-weight: 700; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.jm-contract.is-ok { background: rgba(101,255,159,.10); color: var(--jx-green); border-color: rgba(101,255,159,.4); }
.jm-contract.is-ko { background: rgba(255,93,108,.10); color: var(--jx-red); border-color: rgba(255,93,108,.4); }

/* ---- Lecteur ---- */
.jm-player {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(164,107,255,.16), transparent 60%),
        radial-gradient(120% 80% at 0% 100%, rgba(0,255,208,.10), transparent 60%),
        #0c0c11;
    border: 1px solid var(--jx-border); border-radius: var(--jx-radius); padding: 16px; align-self: start; position: sticky; top: 10px;
}
.jm-player-title { margin: 0 !important; color: #fff !important; font-size: 1.25em !important; }
.jm-player-sub { margin: 2px 0 12px; color: var(--jx-muted); font-size: .9em; min-height: 1em; }
.jm-deck { display: flex; align-items: center; gap: 12px; }
.jm-play {
    flex: 0 0 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
    background: var(--jx-grad-btn); color: #04121a; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,255,208,.35);
}
.jm-play:disabled { background: #2a2a34; color: #666; box-shadow: none; cursor: default; }
.jm-play svg { width: 24px; height: 24px; fill: currentColor; }
.jm-play .i-pause, .jm-play.is-playing .i-play { display: none; }
.jm-play.is-playing .i-pause { display: block; }
.jm-seek-wrap { flex: 1; min-width: 0; }
.jm-seek { position: relative; height: 14px; border-radius: 7px; background: #24242e; cursor: pointer; }
.jm-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; background: var(--jx-grad); pointer-events: none; }
.jm-markers { position: absolute; inset: 0; pointer-events: none; }
.jm-marker {
    position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; pointer-events: auto;
    background: var(--jx-yellow); border: 2px solid #0c0c11; border-radius: 3px; transform: rotate(45deg); cursor: pointer;
    box-shadow: 0 0 10px rgba(255,200,87,.7);
}
.jm-marker:hover { background: #fff; }
.jm-times { display: flex; justify-content: space-between; font-size: .78em; color: var(--jx-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.jm-volume { flex: 0 0 80px; accent-color: var(--jx-cyan); }
@media (max-width: 480px) { .jm-volume { display: none; } }
.jm-markers-label { margin: 8px 0 0; font-size: .8em; color: var(--jx-yellow); }
.jm-note { color: var(--jx-yellow); font-size: .88em; min-height: 1em; }
.jm-lyrics {
    max-height: 420px; overflow-y: auto; line-height: 1.6; padding: 10px 12px; margin-top: 6px;
    background: rgba(0,0,0,.35); border-radius: 12px; border: 1px solid #1d1d26;
}
.jm-lyrics:empty { display: none; }
.jm-lyr-line { color: #c9c9d2; }
.jm-lyr-line.has-word { color: #fff; }
.jm-lyr-gap { height: .8em; }
.jm-lyrics mark {
    background: linear-gradient(90deg, var(--jx-yellow), var(--jx-orange)); color: #111;
    border-radius: 4px; padding: 0 3px; font-weight: 700; box-shadow: 0 0 10px rgba(255,200,87,.5);
}
.jm-fiche { margin: 10px 0 0; text-align: right; }
.jm-fiche a { color: var(--jx-cyan); font-weight: 700; text-decoration: none; }
.jm-fiche a:hover { text-decoration: underline; }

/* ---- Classement ---- */
.jm-ranking { counter-reset: rk; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px !important; }
.jm-ranking li { counter-increment: rk; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--jx-panel-2); border: 1px solid var(--jx-border); border-radius: 12px; padding: 12px 16px; }
.jm-ranking li::before { content: counter(rk); flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0b0b0f; background: #555; }
.jm-ranking li:nth-child(1) { border-color: var(--jx-yellow); box-shadow: 0 0 20px rgba(255,200,87,.25); }
.jm-ranking li:nth-child(1)::before { background: var(--jx-yellow); }
.jm-ranking li:nth-child(2)::before { background: #d9dde6; }
.jm-ranking li:nth-child(3)::before { background: var(--jx-orange); }
.jm-rank-name { flex: 1; font-weight: 700; }
.jm-rank-pts { color: var(--jx-cyan); font-weight: 700; }

[hidden] { display: none !important; }

/* Mise en page des réglages */
.jm-setup > .jm-field, .jm-setup > .jm-grid, .jm-setup > .jm-switch { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.jm-setup .jm-grid > .jm-field { margin-bottom: 0; }
.jm-seg-inf { font-size: 1.25em; line-height: 1; }
@media (max-width: 600px) {
    .jm-seg { flex-wrap: wrap; border-radius: 16px; max-width: 100%; box-sizing: border-box; }
    .jm-grid { gap: 14px; }
}

/* =========================================================================
   Commun aux jeux frise / image
   ========================================================================= */
:root {
    --pc0: var(--jx-cyan); --pc1: var(--jx-pink); --pc2: var(--jx-yellow); --pc3: var(--jx-violet);
    --pc4: var(--jx-green); --pc5: var(--jx-orange); --pc6: var(--jx-blue); --pc7: #ff9bd2;
}
.jm-score.is-active { border-color: var(--jx-pink); background: rgba(255,77,109,.16); box-shadow: 0 0 14px rgba(255,77,109,.3); }
.jm-score.is-active .jm-score-name { color: #fff; }
.fr-score {
    font-size: 1.15em; font-weight: 700; text-align: center; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
    background: rgba(0,255,208,.08); border: 1px solid rgba(0,255,208,.3); color: var(--jx-cyan);
}
.fr-score.is-perfect { background: rgba(101,255,159,.12); border-color: rgba(101,255,159,.5); color: var(--jx-green); box-shadow: 0 0 22px rgba(101,255,159,.2); }

/* Carte « réponse » (image + lecteur + lien), partagée avec les quiz */
.quiz-reveal {
    display: flex; gap: 18px; align-items: center; text-align: left; margin-top: 18px; padding: 16px;
    border-radius: var(--jx-radius); border: 1px solid var(--jx-border);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(164,107,255,.16), transparent 60%),
        radial-gradient(120% 90% at 0% 100%, rgba(0,255,208,.08), transparent 60%),
        #0c0c11;
}
.quiz-reveal-body { flex: 1; min-width: 0; }
.quiz-reveal-title { margin: 0 !important; font-size: 1.3em !important; color: #fff !important; }
.quiz-reveal-sub { margin: 2px 0 12px; color: var(--jx-muted); font-size: .92em; min-height: 1em; }
.quiz-reveal-link { display: inline-block; margin-top: 10px; font-weight: 700; color: #04121a; text-decoration: none; background: var(--jx-cyan); border-radius: 999px; padding: 7px 16px; }
.quiz-reveal-link:hover { filter: brightness(1.1); }

/* ---- Frise chronologique ---- */
.fr-turn { text-align: center; font-size: 1.25em !important; color: #fff !important; }
.fr-axis {
    display: flex; justify-content: space-between; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--jx-muted); padding: 0 4px 6px; margin-top: 6px;
    border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--jx-violet), var(--jx-cyan)) 1;
}
.fr-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 10px !important; counter-reset: fr; }
.fr-card {
    counter-increment: fr; position: relative; display: flex; flex-direction: column; background: var(--jx-panel-2);
    border: 1px solid var(--jx-border); border-radius: 14px; overflow: hidden; cursor: grab; user-select: none;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
#fr-cards .fr-card::before {
    content: counter(fr); position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85em; color: #04121a; background: var(--jx-grad-btn);
}
.fr-card:hover { border-color: var(--rub); box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 16px color-mix(in srgb, var(--rub) 25%, transparent); }
.fr-card.is-chosen { cursor: grabbing; transform: scale(1.03); }
.fr-card.is-ghost { opacity: .35; border-style: dashed; }
.fr-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0d0d12; pointer-events: none; }
.fr-img-empty { display: flex; align-items: center; justify-content: center; font-size: 2.4em; color: var(--jx-muted); }
.fr-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 8px; flex: 1; }
.fr-card-body .jm-rub { align-self: flex-start; }
.fr-card-title { font-weight: 700; line-height: 1.25; }
.fr-card-sub { color: var(--jx-muted); font-size: .82em; }
.fr-moves { display: flex; border-top: 1px solid var(--jx-border); }
.fr-move { flex: 1; font: inherit; font-weight: 700; font-size: 1.1em; padding: 6px 0; border: none; background: none; color: var(--jx-muted); cursor: pointer; }
.fr-move + .fr-move { border-left: 1px solid var(--jx-border); }
.fr-move:hover { color: var(--jx-cyan); background: rgba(0,255,208,.08); }
.fr-hint { text-align: center; color: var(--jx-muted); font-size: .88em; }
#fr-play .jx-btn-big, #fr-result > .jx-btn-big, #im-result > .jx-btn-big { display: flex; margin: 10px auto 0; }
.fr-cards-result .fr-card { cursor: pointer; }
.fr-card-btn { all: unset; display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.fr-card-btn:focus-visible { outline: 2px solid var(--jx-cyan); outline-offset: -2px; }
.fr-year {
    display: block; text-align: center; font-family: 'graphicdisaster', Arial, sans-serif; font-size: 1.6em; padding: 6px 0 8px;
    color: var(--jx-yellow); text-shadow: 0 0 12px rgba(255,200,87,.45);
}
.fr-card.is-good { border-color: var(--jx-green); box-shadow: 0 0 16px rgba(101,255,159,.25); }
.fr-card.is-good .fr-year { color: var(--jx-green); }
.fr-card.is-bad { border-color: var(--jx-red); }
.fr-card.is-bad .fr-year { color: var(--jx-red); }
.fr-card.is-playing { box-shadow: 0 0 0 3px rgba(0,255,208,.5); }
.fr-cards-right .fr-card { opacity: .9; }
.fr-cards-right .fr-img { aspect-ratio: 16 / 9; }
.fr-player { position: static; margin: 16px 0 6px; }

/* ---- Image qui se dévoile ---- */
.im-stage { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 22px; align-items: start; justify-content: center; }
@media (max-width: 860px) { .im-stage { grid-template-columns: 1fr; } }
.im-canvas-wrap { position: relative; }
#im-canvas {
    display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; background: #07070a;
    border: 1px solid var(--jx-border); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(164,107,255,.15);
}
.im-points {
    position: absolute; top: 12px; right: 12px; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: #0b0b0f;
    background: var(--jx-yellow); box-shadow: 0 0 18px rgba(255,200,87,.5);
}
.im-progress { height: 8px; border-radius: 4px; background: #24242e; margin-top: 10px; overflow: hidden; }
.im-progress-fill { height: 100%; width: 0; background: var(--jx-grad); transition: width .3s ease; }
.im-side { display: flex; flex-direction: column; gap: 14px; }
.im-buzzers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.im-buzzers:empty { display: none; }
.im-buzz {
    --pc: var(--jx-cyan);
    display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 1.05em; text-align: left; cursor: pointer;
    padding: 14px 14px; border-radius: 16px; border: 2px solid var(--pc); color: #fff;
    background: color-mix(in srgb, var(--pc) 16%, #111); box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 30%, transparent);
    transition: transform .1s ease, filter .15s ease;
}
.im-buzz:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.15); }
.im-buzz:disabled { cursor: default; opacity: .45; box-shadow: none; }
.im-buzz.is-locked { text-decoration: line-through; }
.im-buzz-key {
    flex: 0 0 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: var(--pc); color: #0b0b0f; font-size: .9em;
}
.im-answer { background: rgba(0,0,0,.3); border: 1px solid var(--jx-border); border-radius: 14px; padding: 14px; }
.im-answer .jm-question { margin-top: 0; }
.im-answer .jm-entry-field { max-width: none; }
.im-tries { color: var(--jx-muted); font-size: .88em; margin: 8px 0 0; }
.im-tries:empty { display: none; }
#im-giveup { align-self: flex-start; }
.im-reveal-img { flex: 0 0 260px; }
.im-reveal-img img { display: block; width: 260px; max-width: 100%; border-radius: 14px; border: 1px solid var(--jx-border); box-shadow: 0 12px 30px rgba(0,0,0,.55); }
@media (max-width: 620px) {
    .quiz-reveal { flex-direction: column; align-items: stretch; text-align: center; }
    .im-reveal-img { flex: none; align-self: center; }
}
.jx-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.jx-tile-game { padding: 22px; }
.jx-tile-game h4 { font-family: 'graphicdisaster', Arial, sans-serif; font-weight: normal; font-size: 1.7em; text-shadow: 0 0 16px color-mix(in srgb, var(--rub) 40%, transparent); }

/* Image : propositions (mode auto) et bouton « dévoiler » (mode clic) */
.im-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.im-choices.is-waiting { opacity: .55; }
.im-choice {
    position: relative; font: inherit; font-weight: 700; font-size: .95em; text-align: left; line-height: 1.25;
    padding: 11px 12px 11px 16px; border-radius: 12px; border: 1px solid var(--jx-border); background: var(--jx-panel-2);
    color: var(--jx-text); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.im-choice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rub); }
.im-choice:hover:not(:disabled) { border-color: var(--rub); transform: translateY(-1px); box-shadow: 0 0 14px color-mix(in srgb, var(--rub) 30%, transparent); }
.im-choice:disabled { cursor: default; }
.im-choice.is-correct { border-color: var(--jx-green); background: rgba(101,255,159,.16); color: var(--jx-green); }
.im-choice.is-wrong { border-color: var(--jx-red); background: rgba(255,93,108,.14); color: var(--jx-red); text-decoration: line-through; opacity: .8; }
@media (max-width: 420px) { .im-choices { grid-template-columns: 1fr; } }
.im-more { align-self: flex-start; }
.im-buzz.is-answering { opacity: 1; transform: scale(1.03); box-shadow: 0 0 26px color-mix(in srgb, var(--pc) 60%, transparent); }
.jm-seg.jm-seg-wrap { flex-wrap: wrap; border-radius: 18px; }

/* Image : colonne de droite pleine hauteur ; « Dévoiler » au centre, « Révéler la réponse » en bas à droite */
.im-stage { align-items: stretch; }
.im-side { min-height: 100%; }
.im-more-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 80px; }
.im-more-wrap:has(> [hidden]) { min-height: 0; }
.im-more { font-size: 1.1em; }
.im-giveup { align-self: flex-end !important; margin-top: auto; }
#im-giveup { align-self: flex-end; }
/* Champ titre avec bouton pour vider */
.jx-input-wrap { position: relative; }
.jx-input-wrap input { padding-right: 38px !important; }
.jx-input-reset {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.06); color: var(--jx-muted); cursor: pointer; font-size: .9em;
}
.jx-input-reset:hover:not(:disabled) { background: rgba(255,93,108,.2); color: var(--jx-red); }
.jx-input-wrap input:disabled { opacity: .45; }
/* Mode auto : cache avant le lancement */
.im-start-overlay {
    position: absolute; inset: 0 0 18px 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: none; border-radius: 16px; font: inherit; color: #fff;
    background:
        radial-gradient(60% 60% at 50% 45%, rgba(0,255,208,.18), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), #0a0a0f;
}
.im-start-overlay span {
    padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 1.2em; color: #04121a;
    background: var(--jx-grad-btn); box-shadow: 0 10px 30px rgba(0,255,208,.35); animation: jmPulse 1.6s ease-in-out infinite;
}
.im-start-overlay:hover span { filter: brightness(1.1); }
@keyframes jmPulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .im-start-overlay span { animation: none; } }

/* =========================================================================
   Version téléphones — console du maître de jeu
   ========================================================================= */
.jx-where-note { font-size: .85em; margin: 6px 0 0; }
.jm-seg-opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.tl-lobby-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .tl-lobby-grid { grid-template-columns: 1fr; } }
.tl-qr-box { text-align: center; }
.tl-qr { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 0 40px rgba(0,255,208,.25); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; color: #111; }
.tl-qr svg { width: 100%; height: 100%; display: block; }
.tl-join-help { font-weight: 700; margin: 14px 0 4px; }
.tl-url { color: var(--jx-muted); font-size: .85em; word-break: break-all; margin: 0; }
.tl-code {
    font-family: 'graphicdisaster', Arial, sans-serif; font-size: clamp(2.6em, 7vw, 4.4em); letter-spacing: .14em; color: var(--jx-yellow);
    text-shadow: 0 0 24px rgba(255,200,87,.45); margin: 0 0 18px;
}
.tl-players { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px !important; }
.tl-player {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 999px; font-weight: 700;
    border: 2px solid var(--pc, var(--jx-cyan)); background: color-mix(in srgb, var(--pc, var(--jx-cyan)) 15%, #111); animation: tlPop .35s ease;
}
.tl-player.is-offline { opacity: .45; border-style: dashed; }
@keyframes tlPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.tl-kick { border: none; background: rgba(0,0,0,.3); color: var(--jx-muted); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: .75em; }
.tl-kick:hover { color: var(--jx-red); }
.tl-lobby-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tl-count { font-size: 1.3em; font-weight: 700; color: var(--jx-cyan); margin: 0; }
.tl-answered { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-dot {
    padding: 4px 10px; border-radius: 999px; font-size: .85em; font-weight: 700; color: var(--jx-muted);
    border: 1px dashed var(--jx-border);
}
.tl-dot.is-done { color: #0b0b0f; background: var(--pc, var(--jx-cyan)); border: 1px solid var(--pc, var(--jx-cyan)); }
.tl-dot.is-offline { opacity: .45; }
.tl-choices-display .im-choice { cursor: default; }
.tl-choices-display .im-choice:hover { transform: none; box-shadow: none; border-color: var(--jx-border); }
.tl-results-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin: 18px 0; }
@media (max-width: 820px) { .tl-results-grid { grid-template-columns: 1fr; } }
.tl-results { display: flex; flex-direction: column; gap: 6px; }
.tl-res {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 10px; align-items: center;
    background: var(--jx-panel-2); border: 1px solid var(--jx-border); border-radius: 10px; padding: 8px 12px;
}
.tl-res.is-good { border-color: rgba(101,255,159,.5); }
.tl-res.is-good .tl-res-name, .tl-res.is-good .tl-res-pts { color: var(--jx-green); }
.tl-res.is-bad { opacity: .75; }
.tl-res.is-none { display: block; color: var(--jx-muted); }
.tl-res-name { font-weight: 700; }
.tl-res-answer { color: var(--jx-muted); font-size: .88em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-res-meta { color: var(--jx-yellow); font-size: .78em; white-space: nowrap; }
.tl-res-pts { font-size: 1.05em; }

/* =========================================================================
   Page des joueurs sur téléphone (jouer.php)
   ========================================================================= */
.jp-body { min-height: 100vh; min-height: 100dvh; }
.jp-main { max-width: 560px; margin: 0 auto; padding: 12px 14px 40px; color: var(--jx-text); }
.jp-main ol, .jp-main ul { list-style: none; padding: 0; margin: 0; }
.jp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 2px 8px; }
.jp-brand { font-family: 'graphicdisaster', Arial, sans-serif; color: var(--jx-cyan); font-size: 1.3em; }
.jp-me { font-weight: 700; font-size: .9em; padding: 4px 12px; border-radius: 999px; background: var(--jx-panel); border: 1px solid var(--jx-border); }
.jp-card { padding: 20px 18px; text-align: center; }
.jp-card .jm-field { text-align: left; }
.jp-title { font-family: 'graphicdisaster', Arial, sans-serif; font-weight: normal; font-size: 2em; color: var(--jx-cyan); margin: 4px 0 18px; }
.jp-main input[type="text"] {
    width: 100%; font: inherit; font-size: 1.1em; color: var(--jx-text); background: var(--jx-field); border: 1px solid var(--jx-border);
    border-radius: 12px; padding: 13px 14px; box-sizing: border-box;
}
.jp-main input:focus { outline: none; border-color: var(--jx-cyan); box-shadow: 0 0 0 3px rgba(0,255,208,.15); }
.jp-code { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-weight: 700; font-size: 1.5em !important; color: var(--jx-yellow) !important; }
.jp-wide { width: 100%; justify-content: center; margin-top: 6px; }
.jp-round { margin: 0 0 10px; font-weight: 700; color: #0b0b0f; background: var(--jx-yellow); display: inline-block; padding: 4px 14px; border-radius: 999px; }
.jp-round:empty { display: none; }
.jp-big { font-size: 1.3em; font-weight: 700; margin: 12px 0; }
.jp-good { color: var(--jx-green); }
.jp-bad { color: var(--jx-red); }
.jp-wait { color: var(--jx-yellow); font-weight: 700; }
.jp-sent { font-size: 1.1em; padding: 10px 14px; border-radius: 12px; background: var(--jx-panel-2); border: 1px solid var(--jx-border); }
.jp-points { display: inline-block; margin: 10px 0 4px; padding: 6px 16px; border-radius: 999px; font-weight: 700; color: #0b0b0f; background: var(--jx-yellow); box-shadow: 0 0 16px rgba(255,200,87,.4); }
.jp-points:empty { display: none; }
.jp-points.is-zero { background: #444; color: #ddd; box-shadow: none; }
.jp-choices { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
.jp-choice {
    position: relative; font: inherit; font-weight: 700; font-size: 1.05em; text-align: left; padding: 15px 14px 15px 20px;
    border-radius: 14px; border: 1px solid var(--jx-border); background: var(--jx-panel-2); color: var(--jx-text); overflow: hidden; cursor: pointer;
}
.jp-choice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--rub, var(--jx-cyan)); }
.jp-choice:active:not(:disabled) { transform: scale(.98); }
.jp-choice:disabled { opacity: .5; }
.jp-answer { font-family: 'graphicdisaster', Arial, sans-serif; font-size: 1.8em; color: var(--jx-green); margin: 0 0 8px; text-shadow: 0 0 18px rgba(101,255,159,.4); }
.jp-score { font-weight: 700; color: var(--jx-cyan); }
.jp-top { margin-top: 8px !important; text-align: left; }
.jp-card .jm-entry-field { max-width: none; text-align: left; }
.jp-spinner { width: 36px; height: 36px; margin: 18px auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--jx-cyan); animation: jpSpin 1s linear infinite; }
@keyframes jpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jp-spinner, .tl-player { animation: none; } }
.jp-body { font-family: Arial, Helvetica, sans-serif; margin: 0; color: var(--jx-text); }
.tl-player { color: #fff; }

/* =========================================================================
   Le grand quiz (console) et réponses du quiz sur téléphone
   ========================================================================= */
.qp-intro { color: var(--jx-muted); margin: 0 0 18px; }
.qp-card { text-align: center; }
.qp-timer { height: 10px; border-radius: 5px; background: #24242e; overflow: hidden; margin-bottom: 14px; }
.qp-timer-fill { height: 100%; width: 100%; background: var(--jx-grad); transition: width .2s linear; }
.qp-top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.qp-seconds { font-family: 'graphicdisaster', Arial, sans-serif; font-size: 2em; color: var(--jx-cyan); }
.qp-seconds.is-low { color: var(--jx-red); animation: jmBlink 1s steps(2) infinite; }
.qp-card .quiz-intro { color: var(--jx-yellow); font-style: italic; min-height: 1em; margin: 14px 0 4px; }
.qp-question { font-size: clamp(1.4em, 3vw, 2.1em); line-height: 1.35; margin: 6px auto 22px; max-width: 900px; color: #fff; }
.qp-question-small { font-size: 1.3em; }
.qp-question .quiz-lyrics, .qp-question .paroles {
    display: inline-block; margin-top: 10px; color: var(--jx-cyan); font-style: italic; border-left: 3px solid var(--jx-cyan);
    background: rgba(0,255,208,.08); padding: 6px 12px; border-radius: 6px;
}
.qp-question .quiz-media-img { display: block; margin: 14px auto 0; max-width: 100%; max-height: 320px; border-radius: 12px; border: 1px solid var(--jx-border); }
.qp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1000px; margin: 0 auto 18px; }
.qp-choices.is-two { max-width: 640px; }
@media (max-width: 640px) { .qp-choices { grid-template-columns: 1fr; } }
.qp-choice {
    --c: var(--jx-pink);
    position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 18px;
    border-radius: 16px; font-size: 1.25em; font-weight: 700; color: #fff; overflow: hidden;
    background: color-mix(in srgb, var(--c) 22%, #111); border: 2px solid var(--c);
}
.qp-c-0 { --c: var(--jx-pink); } .qp-c-1 { --c: var(--jx-cyan); } .qp-c-2 { --c: var(--jx-yellow); } .qp-c-3 { --c: var(--jx-violet); }
.qp-letter { flex: 0 0 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--c); color: #0b0b0f; }
.qp-label { position: relative; z-index: 1; flex: 1; }
.qp-choices-result .qp-choice.is-wrong { opacity: .45; }
.qp-choices-result .qp-choice.is-correct { --c: var(--jx-green); box-shadow: 0 0 26px rgba(101,255,159,.35); }
.qp-votes { position: absolute; left: 0; bottom: 0; height: 6px; width: var(--w, 0%); background: var(--c); transition: width .6s ease; }
.qp-votes-n { position: absolute; right: 14px; bottom: 10px; font-size: .7em; color: #fff; white-space: nowrap; }
.qp-actions { display: flex; justify-content: flex-end; }
#qp-result > .jx-btn-big { display: flex; margin: 10px auto 0; }
/* Téléphone */
.jp-question { font-size: 1.05em; line-height: 1.4; white-space: pre-line; color: #fff; margin: 8px 0 4px; }
.jp-points.is-low { background: var(--jx-red); color: #fff; }
.jp-quiz-choices { grid-template-columns: 1fr; }
.jp-qc { display: flex; align-items: center; gap: 12px; padding: 16px 14px; font-size: 1.1em; }
.jp-qc::before { display: none; }
.jp-qc { --c: var(--jx-pink); background: color-mix(in srgb, var(--c) 22%, #111); border: 2px solid var(--c); color: #fff; }
.jp-qc-0 { --c: var(--jx-pink); } .jp-qc-1 { --c: var(--jx-cyan); } .jp-qc-2 { --c: var(--jx-yellow); } .jp-qc-3 { --c: var(--jx-violet); }
.jp-qc-letter { flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--c); color: #0b0b0f; }
.jx-tile-wide { grid-column: 1 / -1; }
.qp-card .tl-results-grid, .qp-card .quiz-reveal { text-align: left; }

/* =========================================================================
   Frise sur téléphones
   ========================================================================= */
.ft-cards .fr-card { cursor: default; }
.ft-cards .fr-card::before { display: none; }
.jp-fr-axis { margin: 6px 0; font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jx-muted); }
.jp-fr-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px !important; text-align: left; }
.jp-fr-card {
    display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--jx-panel-2);
    border: 1px solid var(--jx-border); border-left: 5px solid var(--rub, var(--jx-cyan));
}
.jp-fr-card.is-ghost { opacity: .4; border-style: dashed; }
.jp-fr-img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #0d0d12; }
.jp-fr-img.is-empty { display: flex; align-items: center; justify-content: center; color: var(--jx-muted); font-size: 1.4em; }
.jp-fr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; touch-action: none; cursor: grab; }
.jp-fr-title { font-weight: 700; line-height: 1.2; }
.jp-fr-sub { font-size: .82em; }
.jp-fr-moves { display: flex; flex-direction: column; gap: 4px; }
.jp-fr-move {
    width: 44px; height: 34px; border-radius: 10px; border: 1px solid var(--jx-border); background: var(--jx-field);
    color: var(--jx-cyan); font-size: 1em; cursor: pointer;
}
.jp-fr-move:active:not(:disabled) { background: rgba(0,255,208,.15); }
.jp-fr-move:disabled { opacity: .4; }
.jp-fr-year { flex: 0 0 auto; font-family: 'graphicdisaster', Arial, sans-serif; font-size: 1.4em; color: var(--jx-yellow); min-width: 64px; text-align: center; }
.jp-fr-list.is-result .jp-fr-card.is-good { border-color: rgba(101,255,159,.6); }
.jp-fr-list.is-result .jp-fr-card.is-good .jp-fr-year { color: var(--jx-green); }
.jp-fr-list.is-result .jp-fr-card.is-bad .jp-fr-year { color: var(--jx-red); }

/* =========================================================================
   Jeu des mots sur téléphones
   ========================================================================= */
.mt-card { text-align: center; }
.mt-card .jm-word { margin-top: 0; }
.mt-help { color: var(--jx-yellow); font-weight: 700; font-size: 1.1em; }
.tl-dot.is-out { opacity: .3; text-decoration: line-through; }
.mt-bids { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 14px; }
.mt-bid { padding: 6px 14px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255,93,108,.5); color: var(--jx-red); background: rgba(255,93,108,.08); }
.mt-bid.is-ok { border-color: rgba(101,255,159,.6); color: var(--jx-green); background: rgba(101,255,159,.1); }
.mt-by { font-size: .78em; color: var(--jx-muted); }
.jp-word { font-family: 'graphicdisaster', Arial, sans-serif; font-size: 2.4em; color: var(--jx-cyan); text-shadow: 0 0 18px rgba(0,255,208,.4); margin: 0 0 6px; word-break: break-word; }
.jp-mt-bid { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.jp-mt-num { min-width: 80px; display: flex; align-items: center; justify-content: center; font-size: 2em; font-weight: 700; color: var(--jx-yellow); }
.jp-mt-bid .jm-step { width: 64px; height: 64px; font-size: 1.8em; }
.jp-mt-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 14px; text-align: left; }
.jp-mt-slot { display: flex; gap: 8px; align-items: flex-start; }
.jp-mt-holder { flex: 1; min-width: 0; position: relative; }
.jp-mt-verdicts { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-top: 6px !important; }
.jp-mt-verdicts li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--jx-panel-2); border: 1px solid var(--jx-border); }
.jp-mt-verdicts li.is-ok { border-color: rgba(101,255,159,.5); }
.jp-mt-verdicts li.is-ok .jp-mt-v-title { color: var(--jx-green); }
.jp-mt-verdicts li.is-ko .jp-mt-v-title { color: var(--jx-red); }
.jp-mt-v-title { font-weight: 700; }
.jp-pass { margin: 14px auto 0; display: flex; color: var(--jx-muted); }
.mt-bid.is-passed { border-color: var(--jx-border); color: var(--jx-muted); background: rgba(255,255,255,.03); }
