/* Jocus lot 4 : Tu me connais ?, Pendu, Mot mystère, 20 questions.
   Décors PROVISOIRES (dégradés). ChatGPT : remplacer background-image par url('/assets/games/<jeu>.jpg') (+ tablet/ et mobile/). */
html #app #v-play:is([data-game=ykm],[data-game=hang],[data-game=wmyst],[data-game=twenty]){--world-ink:#fff7f0;--world-muted:#e9dcf3;--world-card:#2a1340d9;--world-line:#ffd3a3;--world-accent:#f2708a;--world-other:#ffb27a}
html #app #v-play[data-game=ykm]{background-image:linear-gradient(180deg,#3b1d5c 0%,#6a3a8f 50%,#170b2b 100%)}
html #app #v-play[data-game=hang]{background-image:linear-gradient(180deg,#14302a 0%,#2f5a47 50%,#0b1a17 100%)}
html #app #v-play[data-game=wmyst]{background-image:linear-gradient(180deg,#14214f 0%,#2f3f8f 50%,#0a0f2a 100%)}
html #app #v-play[data-game=twenty]{background-image:linear-gradient(180deg,#3a2010 0%,#8a4f24 50%,#1a0d07 100%)}
html #app .g4-in{width:100%;box-sizing:border-box;min-height:54px;border-radius:18px;border:2px solid #ffe3b3;background:#fff7f0f2;color:#3a1740;font:600 18px 'Figtree',system-ui,sans-serif;padding:0 16px;outline:none}
html #app .g4-in:focus{border-color:#f2708a}
.yk-opts,.tw-btns{width:100%;display:grid;grid-template-columns:1fr;gap:10px}
.tw-btns{grid-template-columns:1fr 1fr}
.yk .wy-card{flex-direction:row;align-items:center;gap:14px;font-size:19px;padding:16px 18px}
.yk .wy-card span,.tw .wy-card{overflow-wrap:anywhere}
/* Pendu */
.hg-svg{width:min(34vw,128px);height:auto;align-self:center;fill:none;stroke:#ffe3b3;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.hg-p{opacity:.12;transition:opacity .25s}
.hg-p.on{opacity:1}
.hg-p.on:nth-child(n+4){stroke:#ffb27a}
.hg-mask{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:100%}
.hg-l{width:30px;height:40px;border-bottom:3px solid #ffe3b3;display:grid;place-items:center;font:800 24px 'Bricolage Grotesque',system-ui,sans-serif;color:#fff7f0}
.hg-kb{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;width:100%}
.hg-key{min-height:44px;border-radius:12px;border:0;background:#fff7f0f2;color:#3a1740;font:800 16px 'Figtree',system-ui,sans-serif}
.hg-key.ok{background:#4ade9a;color:#0d2b1d}
.hg-key.ko{background:#2a1340a6;color:#f1d8e4;opacity:.6}
.hg-key[disabled]{cursor:default}
.hg-key:not([disabled]):active{transform:scale(.94)}
/* Mot mystère */
.wm-grid{display:flex;flex-direction:column;gap:6px;align-items:center}
.wm-row{display:flex;gap:6px}
.wm-c{width:48px;height:48px;border-radius:10px;border:2px solid #ffffff59;display:grid;place-items:center;font:800 24px 'Bricolage Grotesque',system-ui,sans-serif;color:#fff7f0;text-transform:uppercase}
.wm-c.typed{border-color:#ffe3b3}
.wm-c.f2,.wm-k.f2,.wm-mini i.f2{background:#4ade9a;border-color:#4ade9a;color:#0d2b1d}
.wm-c.f1,.wm-k.f1,.wm-mini i.f1{background:#ffb27a;border-color:#ffb27a;color:#3a1740}
.wm-c.f0,.wm-k.f0,.wm-mini i.f0{background:#2a1340cc;border-color:#2a1340cc;color:#cdb8e0}
.wm-op{display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:700}
.wm-mini{display:flex;flex-direction:column;gap:2px}
.wm-mrow{display:flex;gap:2px}
.wm-mini i{width:10px;height:10px;border-radius:2px;background:#ffffff26;display:block}
.wm-kb{display:flex;flex-direction:column;gap:6px;width:100%}
.wm-kr{display:flex;justify-content:center;gap:4px}
.wm-k{flex:1;max-width:38px;min-height:46px;border-radius:9px;border:0;background:#fff7f0f2;color:#3a1740;font:800 15px 'Figtree',system-ui,sans-serif;padding:0}
.wm-k.wide{max-width:56px;flex:1.5;background:#ffe3b3}
.wm-k[disabled]{opacity:.45}
/* 20 questions */
.tw-log{width:100%;display:flex;flex-direction:column;gap:6px;max-height:34vh;overflow:auto}
.tw-e{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:8px 12px;border-radius:14px;background:#2a1340cc;font-size:14px}
.tw-e.yes{box-shadow:inset 0 0 0 1.5px #4ade9a}
.tw-e.no{box-shadow:inset 0 0 0 1.5px #f2708a}
.tw-n{font-weight:800;opacity:.7}
.tw-q{overflow-wrap:anywhere}
.g4-in,.qg :is(.wy-row,.wy-pick,.wy-card,.qg-prompt){min-width:0}
@media(max-width:360px){.wm-c{width:42px;height:42px}.hg-kb{grid-template-columns:repeat(6,1fr)}}
@media(prefers-reduced-motion:reduce){.hg-p{transition:none}}
