/* Jocus lot 5 : Dé contre dé, Plus ou moins, Devine le nombre, 421, Yams.
   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=dueldice],[data-game=hilo],[data-game=guessnum],[data-game=f421],[data-game=yams]){--world-ink:#fff7f0;--world-muted:#e6e0f3;--world-card:#14213dd9;--world-line:#ffd98a;--world-accent:#ffb347}
html #app #v-play[data-game=dueldice]{background-image:linear-gradient(180deg,#1b2a4a 0%,#2f5d8f 50%,#0b1424 100%)}
html #app #v-play[data-game=hilo]{background-image:linear-gradient(180deg,#2a1a4a 0%,#5a3a9f 50%,#120b2a 100%)}
html #app #v-play[data-game=guessnum]{background-image:linear-gradient(180deg,#0f3a3a 0%,#1f7a6f 50%,#071a1a 100%)}
html #app #v-play[data-game=f421]{background-image:linear-gradient(180deg,#3a1414 0%,#8f2f2f 50%,#1a0707 100%)}
html #app #v-play[data-game=yams]{background-image:linear-gradient(180deg,#14402a 0%,#2f8f5a 50%,#07200f 100%)}
.dice-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.dice-row.sm{gap:6px}
.die{width:56px;height:56px;border-radius:12px;background:#fffaf0;border:0;padding:7px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);box-shadow:0 3px 0 #c9b88f,0 6px 10px #0006}
.die.sm{width:34px;height:34px;padding:4px;border-radius:8px;box-shadow:0 2px 0 #c9b88f}
.die i{display:block;border-radius:50%;margin:12%}
.die i.p{background:#1d1d2b}
button.die{cursor:pointer;transition:transform .12s}
button.die.held{transform:translateY(-8px);outline:3px solid #4ade9a;background:#eafff3}
.die.fresh{animation:dieRoll .45s ease-out}
@keyframes dieRoll{0%{transform:rotate(-200deg) scale(.5);opacity:.2}70%{transform:rotate(12deg) scale(1.08)}100%{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.die.fresh{animation:none}}
.dd-arena{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.dd-side{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px;border-radius:18px;background:#14213d80;border:2px solid transparent}
.dd-side.win{border-color:#4ade9a}
.dd-side small{font-weight:700;opacity:.85}
.dd-tot{font:800 30px 'Bricolage Grotesque',system-ui,sans-serif}
.dd-wait{font-size:30px;opacity:.5;padding:14px}
.f4-first{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 12px;border-radius:14px;background:#14213d80}
.ya-sheet{width:100%;display:flex;flex-direction:column;gap:3px}
.ya-row{display:grid;grid-template-columns:1fr 64px 64px;gap:6px;align-items:center;min-height:36px;font-size:14px;font-weight:600}
.ya-row.sel{background:#ffffff1f;border-radius:8px}
.ya-hd,.ya-sub{font-size:12px;opacity:.85}
.ya-c{min-height:34px;border-radius:8px;border:0;background:#ffffff14;color:inherit;text-align:center;line-height:34px;font:700 15px 'Figtree',system-ui,sans-serif}
.ya-c.used{background:#14213dcc}
button.ya-c.pick{background:#fff7f0f2;color:#3a1740;cursor:pointer;opacity:.9}
.ya-row.sel button.ya-c.pick{background:#4ade9a;color:#0d2b1d;opacity:1}
.ya-tot{font-size:16px;border-top:2px solid #ffffff40;padding-top:4px}
