/* Lot 21 — corrections d'affichage (chargé en dernier).
   1) Défilement : une liste (.wy-list) qui dépasse doit pouvoir défiler au doigt, dans TOUS les jeux et toutes les phases.
      board-polish.css empêchait les enfants de .wy de rétrécir (flex-shrink:0) : la liste prenait toute sa hauteur
      et était coupée par .wy (overflow:hidden). Exemple : le vote des Questions profondes. */
html #app #v-play#v-play .pbody>.wy>.wy-list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
/* 2) Mémoire, fin de partie : cartes à plat (pas de 3D), parfaitement centrées dans leur case, même pendant que le plateau
      change de taille à l'apparition de « Revanche / Autre jeu ». */
html #app #v-play[data-game=memory] .mem-over .mem3 .mem-in{transition:none!important;transform:none!important;transform-style:flat;-webkit-transform-style:flat}
html #app #v-play[data-game=memory] .mem-over .mem3 .mem-f{display:none}
html #app #v-play[data-game=memory] .mem-over .mem3 .mem-b{transform:none!important;backface-visibility:visible;-webkit-backface-visibility:visible}
html #app #v-play[data-game=memory] .mem-over .mem3{perspective:none}
/* 3) Ludo : pions sur la même case -> plus petits et côte à côte (le décalage est calculé dans index.html) */
html #app #v-play[data-game=ludo] .lc-pawn.stacked{width:5.2%;height:5.2%;border-width:1.5px!important}
/* 4) Défilement de secours pour les jeux « formulaire / texte / clavier » : si l'écran est trop petit (ex. 360 × 640),
      la zone de jeu défile au doigt au lieu de cacher le bas (bouton « Envoyer », dernière ligne du clavier…).
      Pas appliqué aux jeux où l'on fait glisser des objets (Tier list, dessin, bowling, échecs…) pour ne pas gêner leurs gestes. */
html #app #v-play#v-play:is([data-game=tl],[data-game=wmyst],[data-game=hang],[data-game=anag],[data-game=wchain],[data-game=twenty],[data-game=guessnum],[data-game=ykm],[data-game=nhie],[data-game=tot],[data-game=likely],[data-game=wyr],[data-game=deep],[data-game=quiz],[data-game=speed],[data-game=mm],[data-game=hilo],[data-game=f421],[data-game=yams],[data-game=dueldice],[data-game=blind],[data-game=dots],[data-game=dobble]) .pbody>.wy{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none}
html #app #v-play#v-play .pbody>.wy::-webkit-scrollbar{display:none}
/* 5) Fin de partie avec une liste (ex. vote des Questions profondes) : la liste garde une hauteur lisible (au moins ~2 réponses) */
html #app #v-play#v-play[data-phase=result] .pbody>.wy>.wy-list{min-height:min(170px,32vh)}
/* 6) Deux vérités, un mensonge : sa zone n'est pas un bloc .wy ; c'est la zone de jeu elle-même qui défile si besoin */
html #app #v-play#v-play[data-game=tl] .pbody{overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none}
html #app #v-play#v-play[data-game=tl] .pbody::-webkit-scrollbar{display:none}
/* ===== Lot 22 ===== */
/* 7) Ludo : couleurs plus vives (rouge et bleu francs, cases, écuries, pions, flèches) */
html #app #v-play[data-game=ludo] .lc-board .red:not(.lc-pawn):not(.entrance){background-color:#e0352b}
html #app #v-play[data-game=ludo] .lc-board .blue:not(.lc-pawn):not(.entrance){background-color:#1f7fe0}
html #app #v-play[data-game=ludo] .lc-board .lc-yard.red{background-color:#d42f25}
html #app #v-play[data-game=ludo] .lc-board .lc-yard.blue{background-color:#1a72cc}
html #app #v-play[data-game=ludo] .lc-board .entrance.red{color:#e0352b}
html #app #v-play[data-game=ludo] .lc-board .entrance.blue{color:#1f7fe0}
html #app #v-play[data-game=ludo] .lc-pawn.red::after{background:radial-gradient(circle at 35% 25%,#ff9a8f,#d42f25 55%,#9e1b14)}
html #app #v-play[data-game=ludo] .lc-pawn.blue::after{background:radial-gradient(circle at 35% 25%,#9fd0ff,#1f7fe0 55%,#0f4f9c)}
html #app #v-play[data-game=ludo] .lc-pawn.red{box-shadow:0 4px 0 #9e1b14,1px 6px 3px #0005}
html #app #v-play[data-game=ludo] .lc-pawn.blue{box-shadow:0 4px 0 #0f4f9c,1px 6px 3px #0005}
/* 8) Dessine-moi : résultat de l'essai affiché tout de suite, en grand, au-dessus du jeu (3 s) */
html #app #v-play[data-game=draw] #pBody{position:relative}
html #app #v-play[data-game=draw] .dr-flash{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);z-index:30;min-width:min(86%,320px);padding:18px 20px;border-radius:18px;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;box-shadow:0 12px 30px #0007;animation:drFlashIn .25s ease-out;pointer-events:none}
html #app #v-play[data-game=draw] .dr-flash.ok{background:#e9fbe9;border:3px solid #2fb35a;color:#174d26}
html #app #v-play[data-game=draw] .dr-flash.ko{background:#fff1ec;border:3px solid #e0533b;color:#5c1f12}
html #app #v-play[data-game=draw] .dr-flash b{font:800 22px/1.2 'Bricolage Grotesque',system-ui,sans-serif}
html #app #v-play[data-game=draw] .dr-flash span{font:600 17px/1.3 system-ui,sans-serif}
@keyframes drFlashIn{from{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media (prefers-reduced-motion:reduce){html #app #v-play[data-game=draw] .dr-flash{animation:none}}
/* 9) À qui de jouer : bandeau d'état coloré quand c'est à toi, neutre quand c'est à l'autre ; pastille du joueur actif bien marquée */
html #app #v-play[data-myturn="1"] #pStatus{background:#1f9d55!important;color:#fff!important;border-color:#7ef0a8!important;font-weight:800;box-shadow:0 0 0 3px #1f9d5555,0 0 18px #1f9d5599;animation:myTurnPulse 1.8s ease-in-out infinite}
html #app #v-play[data-myturn="0"] #pStatus{opacity:.92}
@keyframes myTurnPulse{0%,100%{box-shadow:0 0 0 3px #1f9d5555,0 0 14px #1f9d5577}50%{box-shadow:0 0 0 5px #1f9d5533,0 0 24px #1f9d55aa}}
@media (prefers-reduced-motion:reduce){html #app #v-play[data-myturn="1"] #pStatus{animation:none}}
html #app #v-play .vs .vchip.on{outline:2px solid #ffd27a;outline-offset:1px}
html #app #v-play[data-myturn] .vs .vchip:not(.on){opacity:.72}
/* 10) Présence de l'adversaire sur sa pastille (téléphone compris) */
html #app #v-play .vs .vchip .vt{flex-wrap:wrap;row-gap:0}
html #app #v-play .vs .vchip .vpres{flex-basis:100%;font:700 10px/1.15 system-ui,sans-serif!important;opacity:1!important;white-space:nowrap}
html #app #v-play .vs .vchip.pr-on .vpres{color:#7ef0a8!important}
html #app #v-play .vs .vchip.pr-off .vpres{color:#ffb4a3!important}
html #app #v-play .vs .vchip.pr-on .avatar{box-shadow:0 0 0 2px #2fd06e}
html #app #v-play .vs .vchip.pr-off .avatar{filter:grayscale(.6);opacity:.8}
/* ===== Lot 23 ===== */
/* 11) Dobble : message « −1 point » bien visible */
html #app #v-play[data-game=dobble] .dob-miss{background:#e0533b;color:#fff!important;font-weight:800;border-radius:12px;padding:6px 10px;animation:drFlashIn .2s ease-out}
/* 12) Pipopipette : dernier tour de l'adversaire en jaune vif, chrono */
html #app #v-play[data-game=dots] .dt-e.lastop::after{background:#ffc400!important;box-shadow:0 0 0 2px #fff,0 0 12px #ffc400!important;animation:dtLast 1.4s ease-in-out 3}
@keyframes dtLast{50%{filter:brightness(1.35)}}
html #app #v-play[data-game=dots] .dt-clock{margin:2px auto 4px;padding:4px 12px;border-radius:999px;background:#0006;color:#fff;font:800 15px/1.2 system-ui,sans-serif;text-align:center;width:max-content}
html #app #v-play[data-game=dots] .dt-clock.mine{background:#1f9d55}
html #app #v-play[data-game=dots] .dt-clock.low{background:#e0533b;animation:dtLow .6s ease-in-out infinite alternate}
@keyframes dtLow{to{transform:scale(1.06)}}
html #app #v-play[data-game=dots] .dt-lastinfo{color:#ffe08a}
@media (prefers-reduced-motion:reduce){html #app #v-play[data-game=dots] .dt-e.lastop::after,html #app #v-play[data-game=dots] .dt-clock.low{animation:none}}
/* 13) Classement à l'aveugle en duo : place proposée bien visible, classement final */
html #app #v-play[data-game=blind] .bl-duo .bl-slot.prop{outline:3px solid #ffd23f;outline-offset:1px;background:#fff6d6}
html #app #v-play[data-game=blind] .bl-duo .bl-duo-info{font-weight:700}
html #app #v-play[data-game=blind] .bl-duo-final{display:flex;flex-direction:column;gap:6px;width:100%;overflow-y:auto;min-height:0}
html #app #v-play[data-game=blind] .bl-duo-final .bl-fr{display:flex;align-items:center;gap:10px;background:#fff8ea;color:#2b2016;border-radius:12px;padding:6px 10px;font-weight:700}
html #app #v-play[data-game=blind] .bl-duo-final .bl-fr b{width:22px;text-align:center}
html #app #v-play[data-game=blind] .bl-duo-final .bl-fr img{width:44px;height:44px;object-fit:cover;border-radius:8px}
html #app #v-play[data-game=blind] .bl-duo-final .bl-fr small{margin-left:auto;font-weight:600;opacity:.7}
