/* Jocus lot 9 : Pipopipette, Course de rapidité, Dessine-moi.
   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=dots],[data-game=speed],[data-game=draw]){--world-ink:#fffaf2;--world-muted:#ecdfcf;--world-card:#2a1d12d9;--world-line:#ffd98a;--world-accent:#ffb347}
html #app #v-play[data-game=dots]{background-image:linear-gradient(180deg,#1b2a4a 0%,#3a5fa8 55%,#0c1630 100%)}
html #app #v-play[data-game=speed]{background-image:linear-gradient(180deg,#3d1414 0%,#c4452b 55%,#220a08 100%)}
html #app #v-play[data-game=draw]{background-image:linear-gradient(180deg,#4a3a14 0%,#c79a2f 55%,#2a2008 100%)}
.dt,.sp,.dr{width:100%;max-width:420px;margin-inline:auto}
/* Pipopipette */
.dt-grid{display:grid;grid-template-columns:repeat(5,14px 1fr) 14px;grid-template-rows:repeat(5,14px 1fr) 14px;width:100%;aspect-ratio:1;padding:6px;border-radius:14px;background:#0c1630cc;box-sizing:border-box}
.dt-dot{width:14px;height:14px;border-radius:50%;background:#f4f8ff;align-self:center;justify-self:center}
.dt-e{border:0;padding:0;margin:0;background:transparent;position:relative;cursor:pointer;min-width:0;min-height:0}
.dt-e::after{content:'';position:absolute;border-radius:4px;background:#ffffff33}
.dt-h::after{left:2px;right:2px;top:50%;height:6px;transform:translateY(-50%)}
.dt-v::after{top:2px;bottom:2px;left:50%;width:6px;transform:translateX(-50%)}
.dt-e.me::after{background:#ffd98a}.dt-e.op::after{background:#7fd4ff}
.dt-e.sel::after{background:#ffffff;box-shadow:0 0 0 3px #ffd98a}
.dt-e.lastmv::after{box-shadow:0 0 0 2px #fff}
.dt-e[disabled]{cursor:default}
.dt-b{display:grid;place-items:center;font-weight:800;font-size:clamp(14px,4vw,22px);border-radius:6px;color:#0c1630}
.dt-b.me{background:#ffd98a}.dt-b.op{background:#7fd4ff}
/* Course de rapidité */
.sp-q{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:800;font-size:46px;text-align:center;color:#fffaf2;background:#ffffff1f;border-radius:16px;padding:18px 10px}
.sp-in{text-align:center;font-size:28px;font-weight:800;letter-spacing:.08em}
.sp-flash{text-align:center;font-weight:800;margin:0}.sp-flash.ok{color:#9af0c0}.sp-flash.ko{color:#ffb0a0}
.sp-ans{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.sp-a{padding:6px 10px;border-radius:10px;background:#ffffff1f;font-weight:700;color:#fffaf2}
/* Dessine-moi */
.dr-canvas{width:100%;aspect-ratio:1;border-radius:14px;background:#fffdf7;touch-action:none;display:block;box-shadow:0 2px 10px #0006}
.dr-word{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:800;font-size:30px;text-align:center;color:#fffaf2}
.dr-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dr-pal,.dr-wd{display:flex;gap:6px}
.dr-c{width:36px;height:36px;border-radius:50%;border:2px solid #ffffff66;cursor:pointer;padding:0}
.dr-c.er{border-style:dashed}
.dr-c.sel{border:3px solid #fff;box-shadow:0 0 0 2px #ffd98a}
.dr-w{width:40px;height:36px;border-radius:10px;border:2px solid #ffffff55;background:#ffffff1a;display:grid;place-items:center;cursor:pointer;padding:0}
.dr-w.sel{border-color:#ffd98a;background:#ffd98a40}
.dr-dot{display:block;border-radius:50%;background:#fffaf2}.dr-dot1{width:5px;height:5px}.dr-dot2{width:10px;height:10px}.dr-dot3{width:18px;height:18px}
.dr-last{text-align:center;font-weight:800;margin:0}.dr-last.ok{color:#9af0c0}.dr-last.ko{color:#ffb0a0}
.dr-gs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.dr-g{padding:4px 10px;border-radius:999px;background:#ffffff1f;color:#ffb0a0;font-weight:700}
.dr-res{display:flex;flex-direction:column;gap:6px}
.dr-r{padding:8px 12px;border-radius:12px;background:#ffffff1a;font-weight:700;color:#fffaf2}.dr-r.ok{border-left:4px solid #9af0c0}.dr-r.ko{border-left:4px solid #ffb0a0}
@media (prefers-reduced-motion:reduce){.dr-c.sel{box-shadow:none}}
