/* Le Juste Kafpoint, édition web : un plateau en largeur (présentateur · produit · mur des prix).
   Rien de flouté ni d'animé en continu à part le soleil du générique : tout reste fluide au survol. */
#justeKafpointView { --game: #2f7dff; --game-2: #ffd32e; --game-emoji: "🏷️"; }
.jw {
  --jw-blue: #0a2a8f;
  --jw-deep: #04103d;
  --jw-yellow: #ffd32e;
  --jw-red: #ff3b4f;
  --jw-green: #2fd17a;
  --jw-left: 1;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(70, 140, 255, .55), transparent 58%),
    repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, .06) 0 7deg, transparent 7deg 14deg),
    linear-gradient(180deg, #0d3bc0, var(--jw-deep) 78%);
  color: #fff;
  box-shadow: 0 30px 70px -34px rgba(0, 20, 120, .9);
}
.jw button { font: inherit; cursor: pointer; }
.jw kbd { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(0, 0, 0, .25); color: #fff; font: 800 .7rem/1 system-ui, sans-serif; }

/* Bandeau : logo, cinq manches en ampoules, score dans l'anneau du chrono. */
.jw-bar { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 20px; background: linear-gradient(180deg, rgba(0, 8, 40, .7), rgba(0, 8, 40, .2)); }
.jw-bar-logo { height: 44px; width: auto; }
.jw-steps { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jw-steps li { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid rgba(255, 211, 46, .35); border-radius: 50%; color: rgba(255, 255, 255, .55); font-weight: 900; }
.jw-steps li.is-done { border-color: var(--jw-yellow); background: var(--jw-yellow); color: #2a1b00; }
.jw-steps li.is-now { border-color: #fff; background: #fff; color: var(--jw-blue); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 0 18px rgba(255, 255, 255, .7); }
.jw-score { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.jw-score small { display: block; color: var(--jw-yellow); font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.jw-score strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1; }
.jw-score strong.is-bump { animation: jw-bump .4s cubic-bezier(.2, 1.5, .4, 1) !important; }
.jw-clock { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: conic-gradient(var(--jw-yellow) calc(var(--jw-left) * 360deg), rgba(255, 255, 255, .12) 0); font-style: normal; }
.jw-clock::before { position: absolute; inset: 5px; content: ""; border-radius: 50%; background: var(--jw-deep); }
.jw-clock span { position: relative; font-size: .85rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.jw.is-hurry .jw-clock { background: conic-gradient(var(--jw-red) calc(var(--jw-left) * 360deg), rgba(255, 255, 255, .12) 0); }
.jw:not([data-screen="game"]):not([data-screen="round"]) .jw-clock span { visibility: hidden; }

/* Plateau à trois colonnes. */
.jw-set { position: relative; display: grid; grid-template-columns: minmax(180px, 24%) minmax(0, 1fr) minmax(250px, 28%); min-height: 560px; }
.jw-host { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 0 0 12px; }
.jw-host img { position: relative; z-index: 1; display: block; width: 100%; max-height: 500px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 24px rgba(0, 0, 20, .6)); }
.jw-bubble { position: absolute; top: 18px; left: 16px; right: -12px; z-index: 2; margin: 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #0b1d63; font-size: .88rem; font-weight: 800; line-height: 1.3; box-shadow: 0 12px 26px rgba(0, 0, 30, .45); }
.jw-bubble:empty { display: none; }
.jw-center { position: relative; display: grid; place-items: center; padding: 18px 10px 26px; }
.jw-panel { display: none; width: 100%; }
.jw[data-screen="curtain"] .jw-curtain,
.jw[data-screen="menu"] .jw-menu,
.jw[data-screen="round"] .jw-round,
.jw[data-screen="game"] .jw-game,
.jw[data-screen="end"] .jw-end { display: grid; }
.jw-side { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px 24px 6px; }
.jw-side > * { display: none; }
.jw[data-screen="curtain"] .jw-side-menu, .jw[data-screen="menu"] .jw-side-menu { display: block; }
.jw[data-screen="game"] .jw-wall, .jw[data-screen="round"] .jw-wall { display: grid; }
.jw[data-screen="end"] .jw-side-end { display: grid; }
.jw[data-screen="round"] .jw-wall { visibility: hidden; }

/* Boutons. */
.jw-cta { min-height: 58px; padding: 0 34px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #ffe46a, var(--jw-yellow) 50%, #f0a500); color: #2a1600; font-size: 1.15rem !important; font-weight: 950 !important; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 0 #a76a00, 0 18px 30px -12px rgba(255, 190, 40, .8); transition: transform .12s ease; }
.jw-cta:hover:not(:disabled) { transform: translateY(-2px); }
.jw-cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #a76a00; }
.jw-cta:disabled { opacity: .6; cursor: wait; }
.jw-link { justify-self: center; border: 0; background: none; color: rgba(255, 255, 255, .75); font-size: .85rem; text-decoration: underline; }

/* Rideau d'entrée. */
.jw-curtain { justify-items: center; gap: 14px; text-align: center; }
.jw-curtain img { width: min(100%, 380px); height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 30, .6)); }
.jw-slogan { margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--jw-red); font-weight: 900; transform: rotate(-2deg); }
.jw-curtain small { color: rgba(255, 255, 255, .7); }
.jw-locked { max-width: 420px; margin: 0; color: #ffe08a; font-weight: 700; }
.jw-locked:empty { display: none; }
.jw.is-locked .jw-curtain .jw-cta { filter: grayscale(.4); }

/* Menu : les manches comme des étiquettes sur une étagère. */
.jw-menu { justify-items: center; gap: 16px; }
.jw-menu-logo { width: min(100%, 300px); height: auto; }
.jw-shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0 0 14px; border-bottom: 6px solid #b47a2a; list-style: none; }
.jw-shelf li { position: relative; display: grid; gap: 2px; width: 104px; padding: 10px 8px 8px; border-radius: 6px 6px 10px 10px; background: #fff; color: #0b1d63; text-align: center; box-shadow: 0 8px 14px rgba(0, 0, 30, .35); transform: rotate(var(--r, -2deg)); }
.jw-shelf li:nth-child(even) { --r: 2deg; }
.jw-shelf li::before { position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; content: ""; border-radius: 50%; background: #0b1d63; transform: translateX(-50%); }
.jw-shelf b { margin-top: 6px; color: var(--jw-red); font-size: 1.2rem; font-weight: 950; }
.jw-shelf span { font-size: .78rem; font-weight: 900; line-height: 1.15; }
.jw-shelf small { color: #5a6aa8; font-size: .68rem; font-weight: 800; }
.jw-me { display: flex; gap: 10px; }
.jw-me span { display: grid; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); text-align: center; }
.jw-me small { color: var(--jw-yellow); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.jw-me b { font-size: 1.1rem; }

/* Colonne de droite au menu : paliers et meilleurs clients. */
.jw-side h2 { margin: 0 0 8px; color: var(--jw-yellow); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.jw-tiers, .jw-board { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.jw-tiers li { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); font-weight: 800; }
.jw-tiers small { color: var(--jw-yellow); font-weight: 900; }
.jw-board li { display: grid; grid-template-columns: 22px 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: .88rem; }
.jw-board li.is-empty { display: block; color: rgba(255, 255, 255, .7); }
.jw-board i { color: var(--jw-yellow); font-style: normal; font-weight: 900; }
.jw-board img, .jw-board em { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); object-fit: cover; }
.jw-board span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jw-fine { margin: 0; color: rgba(255, 255, 255, .55); font-size: .72rem; }

/* Annonce de manche. */
.jw-round { justify-items: center; gap: 8px; padding: 34px 26px; border: 4px solid var(--jw-yellow); border-radius: 22px; background: linear-gradient(180deg, #0f3fcf, #061a66); text-align: center; box-shadow: 0 0 0 6px rgba(255, 211, 46, .2), 0 24px 40px rgba(0, 0, 30, .5); animation: jw-in .5s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-round small { color: var(--jw-yellow); font-weight: 900; letter-spacing: .2em; }
.jw-round strong { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 950; line-height: 1; text-transform: uppercase; }
.jw-round p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }

/* Produit sous le projecteur. */
.jw-game { place-items: center; }
.jw-stage { position: relative; display: grid; width: 100%; place-items: center; }
.jw-stage::before { position: absolute; bottom: -18px; left: 50%; width: 70%; height: 46px; content: ""; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .35), transparent 70%); transform: translateX(-50%); }
.jw-product { position: relative; display: grid; gap: 10px; margin: 0; padding: 14px; border-radius: 20px; background: #fff; color: #0b1d63; text-align: center; box-shadow: 0 22px 40px -12px rgba(0, 0, 30, .7); }
.jw-product.is-hero { width: min(100%, 340px); animation: jw-in .45s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-shot { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 12px; background: #f1f4ff; }
.jw-shot img { width: 100%; height: 100%; object-fit: contain; }
.jw-emoji { font-size: 5rem; }
.jw-product figcaption { display: grid; gap: 2px; }
.jw-product figcaption b { font-size: 1.05rem; line-height: 1.15; }
.jw-product figcaption small { color: #5a6aa8; font-size: .8rem; }
.jw-price { position: absolute; top: -12px; right: -12px; display: grid; min-width: 64px; min-height: 40px; place-items: center; padding: 4px 12px; border-radius: 10px; background: var(--jw-yellow); color: #2a1600; font-style: normal; font-weight: 950; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(6deg); }
.jw-price b { font-size: 1.3rem; }
.jw-price sup { font-size: .7rem; }
.jw-price.is-shown { background: var(--jw-red); color: #fff; animation: jw-bump .45s cubic-bezier(.2, 1.5, .4, 1) !important; }
.jw-cart { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; width: 100%; }
.jw-product.is-small { padding: 10px; }
.jw-product.is-small figcaption b { font-size: .88rem; }
.jw-product.is-small .jw-price b { font-size: 1rem; }

/* Duel : deux produits, le plus cher gagne. */
.jw-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; }
.jw-pick { position: relative; padding: 0; border: 0; border-radius: 22px; background: none; transition: transform .15s ease; }
.jw-pick:hover:not(:disabled) { transform: translateY(-4px); }
.jw-pick kbd { position: absolute; top: 10px; left: 10px; z-index: 2; border-color: rgba(11, 29, 99, .3); background: #0b1d63; }
.jw-pick.is-right .jw-product { box-shadow: 0 0 0 5px var(--jw-green), 0 22px 40px -12px rgba(0, 0, 30, .7); }
.jw-pick.is-wrong .jw-product { opacity: .55; }
.jw-vs { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--jw-red); font-size: 1.1rem; font-weight: 950; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }

/* Mur des prix (colonne de droite en partie). */
.jw-wall { gap: 14px; padding: 18px; border: 3px solid rgba(255, 211, 46, .7); border-radius: 20px; background: linear-gradient(180deg, rgba(4, 16, 61, .92), rgba(10, 42, 143, .85)); box-shadow: inset 0 0 0 3px rgba(4, 16, 61, .9); }
.jw-wall-title { margin: 0; color: var(--jw-yellow); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.jw-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jw-range span { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .7); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.jw-range b { color: #fff; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.jw-entry { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.jw-entry label { grid-column: 1; }
.jw-entry input { width: 100%; height: 64px; padding: 0 14px; border: 3px solid var(--jw-yellow); border-radius: 14px; background: #02092a; color: var(--jw-yellow); font: 900 2rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; text-align: right; outline: none; }
.jw-entry input:focus { box-shadow: 0 0 0 4px rgba(255, 211, 46, .3); }
.jw-entry > b { grid-column: 2; grid-row: 1; color: var(--jw-yellow); font-size: 1.8rem; }
.jw-entry button { grid-column: 1 / -1; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ffe46a, var(--jw-yellow) 50%, #f0a500); color: #2a1600; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 0 #a76a00; }
.jw-history { display: flex; flex-wrap: wrap; gap: 6px; }
.jw-history span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.jw-history .is-plus { color: #8fd0ff; }
.jw-history .is-moins { color: #ffb0b8; }
.jw-history .is-juste { color: #7dffb0; }
.jw-keys { margin: 0; color: rgba(255, 255, 255, .55); font-size: .74rem; text-align: center; }
.jw-options { display: grid; gap: 10px; }
.jw-options button { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border: 3px solid transparent; border-radius: 14px; background: #fff; color: #0b1d63; transition: transform .12s ease; }
.jw-options button:hover:not(:disabled) { transform: translateX(-3px); border-color: var(--jw-yellow); }
.jw-options button kbd { border-color: rgba(11, 29, 99, .3); background: #0b1d63; }
.jw-options button b { font-size: 1.4rem; font-weight: 950; }
.jw-options button.is-chosen { border-color: var(--jw-yellow); }
.jw-options button.is-right { border-color: var(--jw-green); background: #dbffe9; }
.jw-options button.is-wrong { border-color: var(--jw-red); background: #ffe0e4; }
.jw-duel-count { margin: 0; font-size: 1.1rem; text-align: center; }
.jw-duel-count b { color: var(--jw-yellow); font-size: 2.6rem; }
.jw-streak { justify-self: center; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--jw-red); font-weight: 900; }
.jw.is-busy :is(.jw-options button, .jw-pick, .jw-entry button) { pointer-events: none; }

/* Tampons, points, Juste Kafpoint. */
.jw-stamp { position: absolute; top: 42%; left: 50%; z-index: 8; padding: 10px 26px; border: 5px solid currentColor; border-radius: 12px; background: rgba(255, 255, 255, .95); color: #0b1d63; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 950; text-transform: uppercase; white-space: nowrap; pointer-events: none; animation: jw-stamp 1.4s cubic-bezier(.2, 1.4, .4, 1) both !important; }
.jw-stamp.is-plus { color: #1663ff; }
.jw-stamp.is-moins, .jw-stamp.is-bad { color: var(--jw-red); }
.jw-stamp.is-good { color: #12a15a; }
.jw-stamp.is-juste { color: #c78a00; background: #fff6cc; }
.jw-float { position: absolute; top: 30%; left: 50%; z-index: 8; color: var(--jw-yellow); font-size: 2.4rem; font-weight: 950; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); pointer-events: none; animation: jw-float 1.2s ease-out both !important; }
.jw.is-juste .jw-set::after { position: absolute; inset: 0; z-index: 7; content: ""; background: radial-gradient(circle, rgba(255, 211, 46, .35), transparent 65%); pointer-events: none; animation: jw-flash 1.2s ease-out both !important; }

/* Fin : ticket de caisse au centre, carte fidélité à droite. */
.jw-end { place-items: center; }
.jw-receipt { width: min(100%, 360px); padding: 22px 22px 16px; background: #fffdf5; color: #222; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; box-shadow: 0 24px 40px rgba(0, 0, 30, .5); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)); animation: jw-print .7s ease-out both !important; }
.jw-receipt header { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 2px dashed #bbb; text-align: center; }
.jw-receipt header b { font-size: 1.1rem; }
.jw-receipt header small { color: #666; font-size: .72rem; }
.jw-stats { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; font-size: .78rem; }
.jw-stats li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.jw-stats i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1663ff calc(var(--w) * 100%), #e6e9f5 0); }
.jw-total { display: flex; justify-content: space-between; margin: 0; padding-top: 10px; border-top: 2px dashed #bbb; font-size: 1.2rem; font-weight: 900; }
.jw-note { margin: 8px 0 0; color: #444; font-size: .76rem; }
.jw-note:empty { display: none; }
.jw-barcode { display: block; height: 34px; margin-top: 12px; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px); }
.jw-side-end { gap: 12px; }
.jw-rank { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--jw-yellow), #ff9f1c); color: #2a1600; text-align: center; box-shadow: 0 16px 30px -12px rgba(255, 180, 40, .8); }
.jw-rank small { font-size: .66rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.jw-rank b { font-size: 1.5rem; font-weight: 950; }
.jw-rank em { font-style: normal; font-weight: 800; }

/* Générique : la vidéo verticale de l'app passe dans un écran géant au milieu du plateau 16:9,
   entre le logo et Mr SkyJames, sur le soleil bleu du Juste Prix. */
.jw-intro { position: absolute; inset: 0; z-index: 9; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3%; padding: 18px 4%; overflow: hidden; background: radial-gradient(circle at 50% 50%, #2f7dff, #061a66 70%); cursor: pointer; }
.jw-intro[hidden] { display: none; }
.jw-sun { position: absolute; top: 50%; left: 50%; width: 220%; aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .13) 0 6deg, transparent 6deg 12deg); transform: translate(-50%, -50%); animation: jw-sun 40s linear infinite !important; will-change: transform; pointer-events: none; }
.jw-intro-logo { position: relative; justify-self: end; width: min(100%, 300px); height: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 40, .6)); animation: jw-in .8s .2s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-intro-screen { position: relative; height: min(520px, 62vh); aspect-ratio: 9 / 16; overflow: hidden; border: 6px solid var(--jw-yellow); border-radius: 20px; background: #000; box-shadow: 0 0 0 6px rgba(4, 16, 61, .8), 0 30px 60px rgba(0, 0, 30, .7); }
.jw-intro-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.jw-intro-host { position: relative; align-self: end; justify-self: start; width: min(100%, 260px); height: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 40, .6)); animation: jw-in .8s .4s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-intro > small { position: absolute; right: 18px; bottom: 14px; color: rgba(255, 255, 255, .8); font-size: .76rem; font-weight: 800; }

@keyframes jw-bump { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@keyframes jw-in { 0% { opacity: 0; transform: translateY(16px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes jw-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(-6deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } }
@keyframes jw-float { 0% { opacity: 0; transform: translate(-50%, 20px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px); } }
@keyframes jw-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes jw-print { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes jw-sun { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Tablette : le présentateur passe en bandeau, le mur des prix sous le produit. */
@media (max-width: 980px) {
  .jw-set { grid-template-columns: 1fr; min-height: 0; }
  .jw-host { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 10px; padding: 10px 14px 0; }
  .jw-host img { width: 96px; max-height: 120px; }
  .jw-bubble { position: static; flex: 1; margin-bottom: 12px; }
  .jw-side { padding: 0 14px 18px; }
  .jw-bar { grid-template-columns: auto 1fr; }
  .jw-steps { grid-column: 1 / -1; grid-row: 2; }
  .jw-bar-logo { height: 34px; }
  .jw-intro { grid-template-columns: 1fr; justify-items: center; }
  .jw-intro-logo, .jw-intro-host { display: none; }
  .jw-intro-screen { height: min(560px, 70vh); }
}
@media (max-width: 560px) {
  .jw-duel { grid-template-columns: 1fr 1fr; }
  .jw-vs { display: none; }
  .jw-cart { grid-template-columns: 1fr 1fr; }
  .jw-steps li { width: 30px; height: 30px; }
  .jw-shelf li { width: 92px; }
}
.jw .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jw-shelf li { width: 88px; }
.jw-tag sup { font-size: .8rem; font-weight: 900; }
@media (max-width: 560px) { .jw-product.is-hero { width: min(72%, 240px); } .jw-center { padding: 8px 10px 18px; } }
/* Écran large : le générique 16:9 passe en plein écran, le logo et Mr SkyJames sont déjà dans la vidéo. */
.jw-intro.is-wide { position: fixed; inset: 0; z-index: 60; display: block; padding: 0; background: #000; }
.jw-intro.is-wide[hidden] { display: none; }
.jw-intro.is-wide :is(.jw-intro-logo, .jw-intro-host) { display: none; }
.jw-intro.is-wide .jw-intro-screen { position: relative; z-index: 1; background: none; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.jw-intro.is-wide .jw-intro-screen video { object-fit: cover; }
.jw-beta { padding: 4px 12px; border: 2px solid var(--jw-yellow); border-radius: 6px; color: var(--jw-yellow); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: rotate(2deg); }
.jw-locked a { color: #fff; font-weight: 900; }

/* Plein écran, comme QVGDK : le plateau prend toute la page sous la barre du haut. */
body:has(#justeKafpointView:not([hidden])) .games-app { width: 100%; padding: 0; }
body:has(#justeKafpointView:not([hidden])) .games-topbar { margin: 0; }
#justeKafpointView > .game-heading, #justeKafpointView > .back-under-game { display: none; }
#justeKafpointView .jw { display: flex; flex-direction: column; min-height: calc(100svh - 72px); margin: 0; border: 0; border-radius: 0; }
#justeKafpointView .jw-set { flex: 1; }
#justeKafpointView .jw-host img { max-height: min(70vh, 720px); }

/* Fin de manche : la réponse reste affichée, le joueur passe à la suite quand il veut. */
.jw-next { position: absolute; left: 50%; bottom: 14px; z-index: 8; display: grid; justify-items: center; gap: 4px; width: min(92%, 380px); padding: 14px 18px 16px; border: 3px solid var(--jw-yellow); border-radius: 18px; background: var(--jw-deep); color: #fff; text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 30, .6); transform: translateX(-50%); animation: jw-next-in .25s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-next strong { font-size: 1.35rem; font-weight: 950; text-transform: uppercase; }
.jw-next.is-good strong { color: var(--jw-green); }
.jw-next.is-bad strong { color: var(--jw-red); }
.jw-next.is-juste strong { color: var(--jw-yellow); }
.jw-next p { margin: 0; }
.jw-next p b { color: var(--jw-yellow); font-size: 1.15rem; }
.jw-next-points { font-weight: 900; opacity: .85; }
.jw-next .jw-cta { min-height: 50px; margin-top: 8px; padding: 0 26px; font-size: 1rem !important; }
@keyframes jw-next-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Duel : la question change (plus cher / moins cher), elle doit sauter aux yeux. */
.jw-ask { margin: 0 0 14px; padding: 8px 18px; border-radius: 999px; background: var(--jw-yellow); color: #2a1600; font-size: 1.1rem; font-weight: 900; text-align: center; animation: jw-in .35s cubic-bezier(.2, 1.3, .4, 1) both !important; }
.jw-ask b { font-weight: 950; }
.jw-ask.is-cheap { background: var(--jw-green); color: #03230f; }
.jw-wall-title.is-cheap { color: var(--jw-green); font-size: 1rem; }
.jw-stage:has(.jw-ask) { display: grid; justify-items: center; }
