/* Jocus lot 6 : Mémoire, Dobble, Ludo, Bowling.
   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=memory],[data-game=dobble],[data-game=ludo],[data-game=bowling]){--world-ink:#fff7f0;--world-muted:#e6e0f3;--world-card:#14213dd9;--world-line:#ffd98a;--world-accent:#ffb347}
html #app #v-play[data-game=memory]{background-image:linear-gradient(180deg,#2b1b4a 0%,#6b3f9f 50%,#140b2a 100%)}
html #app #v-play[data-game=dobble]{background-image:linear-gradient(180deg,#0f3b5a 0%,#1f86b0 50%,#07202e 100%)}
html #app #v-play[data-game=ludo]{background-image:linear-gradient(180deg,#4a2a14 0%,#b5773a 50%,#24130a 100%)}
html #app #v-play[data-game=bowling]{background-image:linear-gradient(180deg,#1a1a3a 0%,#3a2a6f 50%,#0b0b1e 100%)}
/* Mémoire */
.mem-grid{width:100%;max-width:340px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mem-card{width:100%;min-width:0;overflow:hidden;aspect-ratio:1/1;border-radius:12px;border:2px solid #ffffff59;background:repeating-linear-gradient(45deg,#7a4fc0 0 8px,#6a40b0 8px 16px);padding:0;display:grid;place-items:center;font-size:2rem;cursor:pointer;color:inherit}
.mem-card[disabled]{cursor:default;opacity:1}
.mem-card.up{background:#fff7f0;border-color:#ffe3b3;animation:memFlip .3s ease-out}
.mem-card.found.mine{border-color:#4ade9a;box-shadow:0 0 0 2px #4ade9a99}
.mem-card.found.theirs{border-color:#ffb27a;box-shadow:0 0 0 2px #ffb27a99}
.mem-card:not([disabled]):active{transform:scale(.95)}
@keyframes memFlip{from{transform:rotateY(90deg)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.mem-card.up{animation:none}}
/* Dobble */
.dob-card{position:relative;width:min(100%,30vh,260px);aspect-ratio:1;border-radius:50%;background:#fffaf0;box-shadow:0 6px 14px #0006;margin:4px auto}
.dob-sym{position:absolute;border:0;background:none;padding:6px;line-height:1;cursor:pointer;min-width:44px;min-height:44px}
.dob-sym[disabled]{cursor:default;opacity:.55}
/* Ludo */
.lu-board{position:relative;width:min(100%,400px);aspect-ratio:1;background:#fff7e6;border-radius:14px;box-shadow:0 6px 16px #0006;overflow:hidden}
.lu-yard{position:absolute;width:40%;height:40%;border-radius:12px}
.lu-yard.p1{left:0;top:0;background:#e5484d55}
.lu-yard.p2{right:0;bottom:0;background:#2f7de155}
.lu-c{position:absolute;width:6.6667%;height:6.6667%;box-sizing:border-box;border:1px solid #c9b88f;background:#fff;display:grid;place-items:center;font-size:.7rem;color:#c98a1a}
.lu-c.st.p1{background:#e5484d}.lu-c.st.p2{background:#2f7de1}
.lu-c.home.p1{background:#f4a1a4}.lu-c.home.p2{background:#9cc2f4}
.lu-c.home.end.p1{background:#e5484d}.lu-c.home.end.p2{background:#2f7de1}
.lu-pawn{position:absolute;width:5.6%;height:5.6%;min-width:22px;min-height:22px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #fff;padding:0;box-shadow:0 2px 4px #0008;transition:left .35s ease,top .35s ease}
.lu-pawn.p1{background:#e5484d}.lu-pawn.p2{background:#2f7de1}
.lu-pawn[disabled]{opacity:1;cursor:default}
.lu-pawn.legal{cursor:pointer;animation:luPulse .9s ease-in-out infinite;outline:3px solid #4ade9a}
@keyframes luPulse{50%{box-shadow:0 0 0 7px #4ade9a99}}
@media (prefers-reduced-motion:reduce){.lu-pawn.legal{animation:none}}
.lu-zone{display:flex;align-items:center;justify-content:center;gap:12px;min-height:60px}
/* Bowling */
.bw-sheet{width:100%;display:flex;flex-direction:column;gap:4px;font-size:11px}
.bw-row{display:grid;grid-template-columns:52px repeat(10,1fr);gap:2px;align-items:stretch}
.bw-row.done .bw-name{opacity:.6}
.bw-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}
.bw-f{background:#ffffff1f;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:38px}
.bw-t{font-weight:700;letter-spacing:1px}
.bw-c{font-weight:800;font-size:12px;min-height:14px}
.bw-lane{position:relative;width:min(100%,360px);height:min(44vh,370px);background:linear-gradient(90deg,#6a3a14,#d6a05a 12%,#e8b872 50%,#d6a05a 88%,#6a3a14);border-radius:10px;overflow:hidden;box-shadow:0 6px 16px #0007;touch-action:none}
.bw-pin{position:absolute;width:8%;aspect-ratio:1;border-radius:50%;background:#fff;border:2px solid #d33;transform:translate(-50%,-50%);transition:transform .5s ease,opacity .5s ease}
.bw-pin.gone{opacity:0;pointer-events:none}
.bw-pin.fall.go{transform:translate(calc(-50% + 20px),calc(-50% - 30px)) rotate(120deg);opacity:0}
.bw-ball{position:absolute;width:9%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#6b7cff,#1a1f6b);transform:translate(-50%,-50%);box-shadow:0 3px 5px #0008;pointer-events:none}
.bw-ball.gut{opacity:.3}
.bw-pad{position:absolute;left:0;right:0;bottom:0;height:45%;touch-action:none}
.bw-pad.on{cursor:grab;background:linear-gradient(0deg,#ffffff26,transparent)}
@media (prefers-reduced-motion:reduce){.bw-pin,.mem-card,.lu-pawn{transition:none}}
