/* Jeux de couleurs (nom de travail « Nuance ») · style.css
   Couche « jeux » posée SUR assets/cg/cg.css (la DA négatif de Color Guesser : jetons, verre liquide, Geist, la bande).
   Ici seulement ce qui est propre aux jeux : l'ambiance teintée par le jeu, la scène graphite, les objets, l'accueil des jeux.
   Règles : la scène où l'on compare des nuances est un graphite NEUTRE (R = V = B), éclairé en blanc, ombré en noir ;
   aucune couleur d'accent ni de perso à moins de 24 px de la scène. On anime transform et opacity ; version réduite en bas. */

@property --acc{ syntax:"<color>"; inherits:true; initial-value:#20C8FF; }

:root{
  /* un accent par jeu, pris dans le spectre de Color Guesser */
  --g-tubes:#20C8FF; --g-blocks:#A8F03C; --g-gradient:#FF3DD8; --g-fusion:#FF7A1A;
  --acc:var(--g-tubes);
  --stage:#151515;
  --ease-spring:cubic-bezier(.3,1.32,.5,1);
}
[data-game="tubes"]{ --acc:var(--g-tubes); } [data-game="blocks"]{ --acc:var(--g-blocks); } [data-game="gradient"]{ --acc:var(--g-gradient); } [data-game="fusion"]{ --acc:var(--g-fusion); }

html{ background:var(--cg-bg); }
body.cg{ background:transparent; overscroll-behavior:none; }
button{ -webkit-user-select:none; user-select:none; }
.ico{ width:var(--s, 20px); height:var(--s, 20px); flex:none; fill:currentColor; }
b{ font-weight:600; font-variant-numeric:tabular-nums; }

/* ---------- ambiance : la lumière du jeu en cours, peinte une fois sur une couche fixe ---------- */
.amb{ position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; transition:opacity .5s var(--cg-ease-out), --acc .7s var(--cg-ease-out); }
.amb::before{ content:""; position:absolute; inset:-10%;
  background:
    radial-gradient(50vmax 36vmax at 6% -6%, color-mix(in oklab, var(--acc) 26%, transparent), transparent 70%),
    radial-gradient(40vmax 32vmax at 104% 34%, color-mix(in oklab, var(--acc) 12%, transparent), transparent 70%),
    radial-gradient(46vmax 30vmax at 26% 108%, rgba(46,107,255,.14), transparent 70%),
    radial-gradient(36vmax 28vmax at 96% 100%, rgba(255,176,32,.08), transparent 70%); }
body[data-screen="play"] .amb{ opacity:.28; }

/* ---------- écrans ---------- */
.screen{ display:none; flex-direction:column; min-height:100dvh; width:100%; max-width:560px; margin:0 auto;
  padding:var(--cg-safe-t) var(--cg-gutter) calc(16px + var(--cg-safe-b)); }
.screen.is-active{ display:flex; animation:cg-rise .42s var(--cg-ease-soft) both; }
.screen--play{ height:100dvh; }
.bar{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:64px; }
.bar__side{ display:flex; align-items:center; gap:8px; }
.cg-logo img{ height:22px; }

/* ---------- accueil des jeux ---------- */
.hub{ flex:1; display:flex; flex-direction:column; gap:14px; padding-bottom:8px; }
.hub__head{ padding:6px 2px 4px; }
.hub__title{ margin:0; font-size:clamp(34px, 9vw, 52px); font-weight:500; line-height:.98; letter-spacing:-.045em; text-wrap:balance; }
.hub__lead{ margin:8px 0 0; font-size:16px; color:var(--cg-fg-2); max-width:34ch; text-wrap:pretty; }

/* puzzle du jour : un vrai rendu du puzzle, la série de la semaine, l'action */
.daily{ position:relative; margin-top:48px; isolation:isolate; }
.daily__host{ position:absolute; z-index:0; right:16px; top:-76px; width:118px; height:118px; cursor:pointer; transform-origin:50% 95%; }
.daily__card{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"art art" "txt act" "week week";
  gap:12px 14px; padding:12px 12px 14px; border-radius:var(--cg-r-xl); }
.daily__art{ grid-area:art; position:relative; display:flex; align-items:flex-end; justify-content:center; gap:2px; height:124px; padding:16px 8px 6px; border-radius:20px;
  background:radial-gradient(90% 120% at 50% 0%, #232323 0%, var(--stage) 70%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); overflow:hidden; }
.daily__art .t-svg{ flex:1 1 0; min-width:0; width:auto; height:auto; max-height:100%; }
.daily__txt{ grid-area:txt; align-self:center; padding-left:6px; min-width:0; }
.daily__title{ margin:0; font-size:22px; font-weight:500; letter-spacing:-.035em; line-height:1.1; }
.daily__n{ color:var(--lg-fg-2); font-variant-numeric:tabular-nums; }
.daily__meta{ margin:3px 0 0; font-size:14px; color:var(--lg-fg-2); text-wrap:pretty; }
.daily__act{ grid-area:act; align-self:center; display:flex; gap:8px; }
.daily__week{ grid-area:week; display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 6px 0; border-top:1px solid var(--cg-line); }
.streak{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--cg-gold); white-space:nowrap; }
.streak .ico{ --s:18px; }
.streak.is-cold{ color:var(--lg-fg-2); font-weight:500; }
.week{ display:grid; grid-template-columns:repeat(7, 1fr); gap:5px; width:100%; }
.week i{ display:grid; place-items:center; height:30px; border-radius:9px; font:600 12px/1 var(--cg-font); font-style:normal; color:var(--lg-fg-2);
  background:rgba(255,255,255,.05); box-shadow:inset 0 0 0 1px var(--cg-line); }
.week i.is-done{ background:linear-gradient(180deg, #FFE27A, var(--cg-gold)); color:var(--cg-ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
.week i.is-today{ box-shadow:inset 0 0 0 1.5px var(--cg-fg); color:var(--cg-fg); }
.week i.is-today.is-done{ box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 2px var(--cg-bg), 0 0 0 3.5px var(--cg-gold); }

/* cartes de l'accueil : verre posé mais opaque (la bande se cache vraiment derrière, rien ne transparaît) */
.daily__card.cg-glass, .gcard.cg-glass{ background:var(--lg-sheen), #19191C; -webkit-backdrop-filter:none; backdrop-filter:none; }
/* les trois jeux : vrais rendus, chemin des niveaux, bouton jouer */
.games{ display:grid; gap:44px; margin:0; padding:30px 0 0; list-style:none; }
.games__h{ margin:14px 2px 0; font-size:var(--cg-fs-h3); font-weight:500; letter-spacing:-.03em; }
.gcard{ position:relative; display:grid; grid-template-columns:132px minmax(0, 1fr); gap:6px 14px; padding:10px 12px 12px 10px; border-radius:var(--cg-r-xl); isolation:isolate;
  text-align:left; transition:transform var(--cg-d-btn) var(--cg-ease-out), box-shadow var(--cg-d-bg) ease; }
.gcard__art{ grid-row:1 / span 3; position:relative; display:grid; place-items:center; width:132px; height:150px; border-radius:20px; overflow:hidden;
  background:radial-gradient(90% 110% at 50% 0%, #232323, var(--stage) 72%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.gcard__mini{ display:flex; align-items:flex-end; justify-content:center; gap:0; }
.gitem{ position:relative; isolation:isolate; padding-top:0; }
.gitem .gcard{ z-index:1; }
.gcard__host{ position:absolute; z-index:0; right:12px; top:-44px; width:84px; height:84px; cursor:pointer; transform-origin:50% 95%; }
.gcard__head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding-top:6px; min-width:0; }
.gcard__name{ margin:0; font-size:21px; font-weight:500; letter-spacing:-.035em; line-height:1.05; }
.gcard__name::before{ content:""; display:inline-block; width:10px; height:10px; margin-right:8px; border-radius:3px; vertical-align:.1em;
  background:var(--acc); box-shadow:inset 0 1px 0 rgba(255,255,255,.45); }
.gcard__meta{ margin:0; font-size:14px; color:var(--lg-fg-2); text-wrap:pretty; }
.gcard__foot{ display:flex; align-items:center; gap:10px; align-self:end; }
.gcard__lv{ font-size:13px; color:var(--lg-fg-2); white-space:nowrap; }
.gcard__lv b{ color:var(--cg-fg); font-size:16px; }
.gcard .cg-btn{ margin-left:auto; }
.gcard:has(.cg-hit:active){ transform:scale(.985); }

/* chemin des niveaux (5 étapes autour du niveau en cours) */
.path{ position:relative; display:flex; align-items:center; gap:0; margin:0; padding:0; list-style:none; }
.path li{ position:relative; display:grid; place-items:center; width:22px; height:30px; }
.path li + li::before{ content:""; position:absolute; right:50%; width:100%; top:50%; height:2px; margin-top:-1px; background:rgba(255,255,255,.14); z-index:-1; }
.path li.is-done + li::before, .path li.is-now::before{ background:var(--acc); }
.node{ display:grid; place-items:center; width:18px; height:18px; border-radius:50%; font:600 10px/1 var(--cg-font); color:var(--lg-fg-2); background:var(--cg-raised-2);
  box-shadow:inset 0 0 0 1px var(--cg-line-2); font-variant-numeric:tabular-nums; }
.is-done > .node{ background:var(--acc); box-shadow:inset 0 1px 0 rgba(255,255,255,.5); }
.is-now > .node{ width:26px; height:26px; font-size:12px; color:var(--cg-ink); background:var(--lg-drop); box-shadow:0 0 0 2px var(--cg-bg), 0 0 0 3.5px var(--acc); }
.hub__foot{ margin:6px 0 0; text-align:center; font-size:13px; color:var(--cg-fg-3); }
.hub__foot a{ color:var(--cg-fg-2); text-underline-offset:3px; }

/* la bande : en bordure, jamais sur la scène ; le saut vient de cg.css (.cg-hop) */
.host{ display:block; -webkit-user-drag:none; user-select:none; -webkit-touch-callout:none; pointer-events:auto; }

/* ---------- partie ---------- */
.bar--play{ display:grid; grid-template-columns:44px 1fr 44px; }
.play__title{ text-align:center; min-width:0; }
.play__title h2{ margin:0; font-size:17px; font-weight:500; letter-spacing:-.025em; }
.play__line{ display:inline-flex; align-items:center; gap:8px; margin:1px 0 0; font-size:13px; color:var(--lg-fg-2); }
.play__line b{ color:var(--cg-fg); }
.pars{ display:inline-flex; gap:2px; }
.pars svg{ width:13px; height:13px; color:var(--cg-gold); transition:color .3s ease, transform .3s var(--cg-ease-pop); }
.pars svg.is-off{ color:var(--cg-raised-3); transform:scale(.86); }
.stage{ flex:1; min-height:0; display:flex; padding:4px 0 12px; }
.paper{ position:relative; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 10px; overflow:hidden;
  border-radius:var(--cg-r-xl); background:radial-gradient(120% 70% at 50% -10%, #242424, var(--stage) 60%); color:var(--cg-fg);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.9); animation:cg-pop .5s var(--cg-ease-out) both; }
.coach{ position:absolute; top:16px; left:20px; right:20px; z-index:4; margin:0; text-align:center; font-size:15px; font-weight:500; color:var(--lg-fg-2); text-wrap:balance; pointer-events:none; }
.board{ position:relative; display:flex; flex-wrap:wrap; justify-content:center; align-content:center; gap:var(--gy, 28px) var(--gx, 14px); width:100%; }
.fx{ position:absolute; inset:0; pointer-events:none; z-index:6; overflow:visible; }
.stream{ position:absolute; left:0; top:0; width:7px; border-radius:4px; opacity:0; pointer-events:none; transform-origin:50% 0; z-index:5;
  background:linear-gradient(90deg, rgba(0,0,0,.2), transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%, rgba(0,0,0,.2)), var(--c); }

/* tubes : un bouton qui porte un SVG */
.tube{ position:relative; display:grid; place-items:end center; width:calc(var(--tw) + 16px); height:calc(var(--th) + 24px); margin:0 -8px; padding:0; border:0; background:none;
  border-radius:16px; z-index:1; touch-action:manipulation; }
.tube .t-svg{ overflow:visible; }
.tube:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.tube.is-bad .t-svg{ animation:shake .32s var(--cg-ease-out); }
.stopper{ position:absolute; left:50%; top:4px; width:calc(var(--tw) * .74); height:15px; margin-left:calc(var(--tw) * -.37); border-radius:7px 7px 4px 4px;
  background:linear-gradient(180deg, #FFFFFF, #D9D9DE 55%, #95959C); box-shadow:0 2px 6px rgba(0,0,0,.45), inset 0 -2px 0 rgba(0,0,0,.18);
  opacity:0; transform:translateY(-22px) scale(.9); pointer-events:none; }
.tube.is-done .stopper{ opacity:1; transform:none; transition:opacity .2s ease, transform .5s var(--cg-ease-pop); }
.tube.is-done::after{ content:""; position:absolute; inset:14px 4px 6px; border-radius:14px; pointer-events:none;
  background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%) no-repeat; background-size:260% 100%; background-position:130% 0;
  animation:sheen .9s var(--cg-ease-out) .12s both; mix-blend-mode:screen; }
.u-num{ font:700 13px var(--cg-font); font-variant-numeric:tabular-nums; }
.hint-arc{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.hint-arc path{ fill:none; stroke:#fff; stroke-width:2.5; stroke-linecap:round; stroke-dasharray:2 9; animation:dash .8s linear infinite; }
.hint-arc circle{ fill:#fff; }
.fly{ position:fixed; left:0; top:0; z-index:40; pointer-events:none; overflow:visible; will-change:transform; }
.paper.is-win .tube{ animation:wave .8s var(--cg-ease-pop) both; animation-delay:calc(var(--n) * 55ms); }

/* ----- blocs ----- */
.board--blocks{ display:block; }
.bl{ position:relative; display:flex; flex-direction:column; align-items:center; gap:calc(var(--cs) * .42); }
.bl-score{ display:flex; align-items:baseline; gap:10px; }
.bl-score b{ font-size:44px; font-weight:500; letter-spacing:-.06em; line-height:1; }
.bl-score small{ font-size:13px; color:var(--lg-fg-2); }
.bl-grid{ position:relative; display:grid; grid-template-columns:repeat(8, var(--cs)); grid-auto-rows:var(--cs); padding:5px; border-radius:18px;
  background:#0E0E0E; box-shadow:inset 0 2px 8px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.05), 0 1px 0 rgba(255,255,255,.07); }
.bl-cell{ position:relative; margin:1.5px; border-radius:calc(var(--cs) * .2); background:rgba(255,255,255,.035); box-shadow:inset 0 1px 0 rgba(0,0,0,.4), inset 0 -1px 0 rgba(255,255,255,.04); }
.bl-cell svg, .bl-piece svg, .shard svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.bl-cell > svg{ opacity:0; transform:scale(.6); }
.bl-cell.is-on > svg{ opacity:1; transform:none; color:var(--c); filter:drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.bl-cell.is-ghost > svg{ opacity:.45; transform:scale(.94); color:var(--g); filter:none; }
.bl-cell.is-ghost{ box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5); }
.bl-cell.is-cursor{ box-shadow:inset 0 0 0 2px #fff; }
.bl-cell.is-clearing-hint.is-on > svg{ filter:drop-shadow(0 0 7px rgba(255,255,255,.85)); }
.bl-cell.is-pop > svg{ animation:cell-drop .42s var(--cg-ease-pop) both; animation-delay:calc(var(--k) * 22ms); }
.bl-cell.is-clear > svg{ animation:cell-clear .3s var(--cg-ease-exit) both; animation-delay:calc(var(--k) * 26ms); }
.bl-cell.is-dim > svg{ opacity:.35; transform:scale(.9); transition:opacity .4s ease, transform .4s var(--cg-ease-out); transition-delay:calc(var(--k) * 18ms); }
.bl-sweep{ position:absolute; z-index:3; pointer-events:none; border-radius:10px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); mix-blend-mode:screen; }
.bl-tray{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; width:calc(var(--cs) * 8 + 10px); height:calc(var(--cs) * 2.9); }
.bl-slot{ position:relative; display:grid; place-items:center; padding:0; border:0; border-radius:18px; background:rgba(255,255,255,.03); box-shadow:inset 0 0 0 1px var(--cg-line);
  touch-action:none; cursor:grab; transition:opacity .2s ease, transform .3s var(--cg-ease-out); }
.bl-slot:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.bl-slot.is-picked{ box-shadow:inset 0 0 0 2px #fff; }
.bl-slot.is-lifted{ opacity:.2; }
.bl-slot.is-dead{ opacity:.32; }
.bl-slot.is-hint{ animation:cg-bump .45s var(--cg-ease-pop) 2; }
.bl-slot.is-new .bl-piece{ animation:piece-in .5s var(--cg-ease-pop) both; animation-delay:calc(var(--i) * 70ms); }
.bl-piece{ position:relative; display:block; }
.bl-piece > span{ position:absolute; display:block; }
.bl-piece > span svg{ color:var(--pc); filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.bl-float{ position:fixed; left:0; top:0; z-index:40; pointer-events:none; filter:drop-shadow(0 18px 18px rgba(0,0,0,.55)); will-change:transform; }
.bl-pop{ position:absolute; left:50%; top:44%; z-index:5; display:flex; flex-direction:column; align-items:center; transform:translate(-50%, -50%); pointer-events:none;
  animation:pop-up 1.15s var(--cg-ease-out) both; text-shadow:0 4px 18px rgba(0,0,0,.7); }
.bl-pop b{ font-size:48px; font-weight:600; letter-spacing:-.05em; }
.bl-pop span{ font-size:15px; font-weight:600; color:var(--cg-gold); }
.shard{ position:fixed; left:0; top:0; z-index:41; pointer-events:none; }

/* ----- dégradé ----- */
.board--gradient{ display:block; width:auto; }
.gr{ position:relative; margin:0 auto; border-radius:14px; touch-action:none; background:#0B0B0B; box-shadow:0 0 0 4px #0B0B0B, 0 0 0 5px rgba(255,255,255,.08); }
.gr-t{ position:absolute; left:0; top:0; width:var(--ts); height:var(--ts); padding:0; border:0; background:none; cursor:pointer; outline-offset:-3px;
  transition:transform .42s var(--ease-spring); will-change:transform; }
.gr-t::before{ content:""; position:absolute; inset:1.25px; border-radius:4px; background:var(--c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.22); transition:inset .45s var(--cg-ease-out), border-radius .45s var(--cg-ease-out), box-shadow .3s ease; }
.gr.is-whole .gr-t::before{ inset:0; border-radius:0; box-shadow:none; }
.gr-t.is-fixed::after{ content:""; position:absolute; left:50%; top:50%; width:6px; height:6px; margin:-3px; border-radius:50%; background:rgba(10,10,10,.6); box-shadow:0 0 0 1.5px rgba(255,255,255,.6); }
.gr-t.is-fixed{ cursor:default; }
.gr-t.is-sel{ z-index:3; }
.gr-t.is-sel::before{ inset:-3px; border-radius:8px; box-shadow:0 0 0 2.5px #fff, 0 10px 24px rgba(0,0,0,.6); }
.gr-t.is-drag{ z-index:5; transition:none; }
.gr-t.is-drag::before{ inset:-4px; border-radius:9px; box-shadow:0 0 0 2px #fff, 0 18px 30px rgba(0,0,0,.65); }
.gr-t.is-bad{ animation:shake .32s var(--cg-ease-out); }
.gr-t.is-hint::before{ box-shadow:0 0 0 2.5px #fff, 0 0 18px rgba(255,255,255,.6); }
.gr-t .home-flash{ position:absolute; inset:1px; border-radius:4px; background:#fff; opacity:0; animation:flash .5s ease; pointer-events:none; }
.gr.is-win .gr-t::after{ content:""; position:absolute; inset:0; background:#fff; opacity:0; animation:wave-light .9s ease both; animation-delay:calc(var(--dist) * 55ms); pointer-events:none; }
.gr.is-win{ animation:breathe-in .9s var(--cg-ease-pop) .35s both; }

/* ---------- outils ---------- */
.tools{ position:relative; display:flex; align-items:flex-end; justify-content:center; gap:10px; min-height:56px; }
.tool{ position:relative; display:flex; align-items:center; gap:10px; height:56px; padding:0 22px 0 14px; border:0; border-radius:var(--cg-r-pill); color:var(--cg-fg);
  font-size:16px; font-weight:500; transition:transform .16s var(--cg-ease-out), opacity .2s ease; }
.tool:active{ transform:scale(.95); }
.tool:disabled{ opacity:.45; cursor:default; }
.tool__ico{ position:relative; display:grid; place-items:center; width:32px; height:32px; }
.tool__cool{ position:absolute; inset:-2px; width:36px; height:36px; transform:rotate(-90deg); pointer-events:none; }
.tool__cool circle{ fill:none; stroke:var(--cg-gold); stroke-width:2.5; stroke-linecap:round; }
.badge{ position:absolute; right:-8px; top:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#fff; color:var(--cg-ink);
  font:700 12px/20px var(--cg-font); font-style:normal; text-align:center; font-variant-numeric:tabular-nums; }
.play__host{ position:absolute; left:-6px; bottom:-14px; width:78px; height:78px; cursor:pointer; transform-origin:50% 95%; }

/* ---------- feuilles (cg-sheet) ---------- */
.cg-sheet{ text-align:center; overflow:visible; }
.sheet__host{ position:absolute; left:50%; top:-118px; width:140px; height:140px; margin-left:-70px; z-index:-1; transform-origin:50% 95%; pointer-events:none; }
.sheet__title{ margin:6px 0 4px; font-size:30px; font-weight:500; letter-spacing:-.04em; line-height:1.05; text-wrap:balance; }
.sheet__meta{ margin:0 auto 20px; max-width:34ch; color:var(--lg-fg-2); text-wrap:pretty; }
.sheet__acts{ display:flex; flex-direction:column; align-items:stretch; gap:8px; max-width:420px; margin:0 auto; }
.sheet--result{ padding-top:20px; }
.stars{ position:relative; display:flex; justify-content:center; align-items:flex-end; gap:10px; height:72px; margin-top:4px; }
.star-slot{ position:relative; width:52px; height:52px; }
.star-slot:nth-child(2){ width:66px; height:66px; }
.star-slot svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.star-slot .socket{ color:#2A2A2C; }
.star-slot .gem{ color:var(--cg-gold); opacity:0; filter:drop-shadow(0 6px 14px rgba(255,190,0,.45)); }
.confetti{ position:absolute; inset:0; pointer-events:none; overflow:visible; z-index:3; }
.set{ list-style:none; margin:6px auto 16px; padding:0; display:grid; gap:8px; text-align:left; max-width:460px; }
.set li{ display:flex; align-items:center; gap:14px; min-height:64px; padding:10px 14px; border-radius:18px; }
.set .cg-toggle{ width:100%; justify-content:space-between; flex-direction:row-reverse; }
.set__txt{ flex:1; display:flex; flex-direction:column; }
.set__txt small{ color:var(--lg-fg-2); font-size:13px; font-weight:400; }
.set .cg-seg{ min-width:200px; }
.set li.is-col{ flex-direction:column; align-items:stretch; gap:10px; }
.about{ margin:0 auto 16px; max-width:40ch; font-size:13px; color:var(--cg-fg-3); }

/* ---------- mouvement ---------- */
@keyframes shake{ 20%{ transform:translateX(-6px); } 40%{ transform:translateX(5px); } 60%{ transform:translateX(-3px); } 80%{ transform:translateX(2px); } }
@keyframes wave{ 35%{ transform:translateY(-18px) scale(1.02, .98); } 70%{ transform:translateY(2px) scale(1.03, .97); } 100%{ transform:none; } }
@keyframes sheen{ to{ background-position:-130% 0; } }
@keyframes dash{ to{ stroke-dashoffset:-11; } }
@keyframes cell-drop{ 0%{ transform:scale(1.18); opacity:.6; } 55%{ transform:scale(.92); opacity:1; } 100%{ transform:none; } }
@keyframes cell-clear{ 30%{ transform:scale(1.12); } 100%{ transform:scale(.4); opacity:0; } }
@keyframes piece-in{ from{ opacity:0; transform:translateY(14px) scale(.85); } }
@keyframes pop-up{ 0%{ opacity:0; transform:translate(-50%, -30%) scale(.8); } 18%{ opacity:1; transform:translate(-50%, -50%) scale(1.06); } 30%{ transform:translate(-50%, -50%) scale(1); } 100%{ opacity:0; transform:translate(-50%, -95%); } }
@keyframes flash{ 30%{ opacity:.45; } }
@keyframes wave-light{ 35%{ opacity:.42; } 100%{ opacity:0; } }
@keyframes breathe-in{ 40%{ transform:scale(1.035); } 100%{ transform:none; } }

/* ---------- ordinateur ---------- */
@media (min-width:1024px){
  .screen--home{ max-width:1180px; padding-inline:32px; }
  .hub{ display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:16px 40px; align-items:start; padding-top:12px; }
  .hub__head{ grid-column:1 / -1; }
  .daily{ grid-column:1; grid-row:2 / span 3; margin-top:62px; }
  .daily__card{ grid-template-areas:"art art" "txt txt" "act act" "week week"; }
  .daily__art{ height:auto; padding:22px 12px 10px; }
  .daily__act .cg-btn{ flex:1; }
  .daily__host{ width:150px; height:150px; top:-100px; }
  .games__h{ grid-column:2; grid-row:2; margin-top:0; }
  .games{ grid-column:2; grid-row:3; gap:48px; padding-top:40px; }
  .gcard{ grid-template-columns:200px minmax(0, 1fr); }
  .gcard__art{ width:200px; height:170px; }
  .hub__foot{ grid-column:1 / -1; }
  .screen--play{ max-width:720px; }
}

/* ---------- préférences ---------- */
@media (prefers-reduced-motion:reduce){
  .screen.is-active, .paper{ animation:cg-fade .15s ease both; }
  .paper.is-win .tube, .gr.is-win, .bl-slot.is-hint, .tube.is-bad .t-svg, .gr-t.is-bad, .tube.is-done::after{ animation:none !important; }
  .bl-cell.is-pop > svg, .bl-cell.is-clear > svg, .bl-slot.is-new .bl-piece, .bl-pop{ animation-name:cg-fade !important; animation-duration:.15s !important; animation-delay:0s !important; }
  .gr-t, .gr-t::before{ transition-duration:.12s; }
  .tool:active, .gcard:has(.cg-hit:active){ transform:none; }
}
.cg-reduce .paper.is-win .tube, .cg-reduce .gr.is-win, .cg-reduce .tube.is-bad .t-svg{ animation:none !important; }
@media (prefers-reduced-transparency:reduce){ .amb{ display:none; } }

/* ================= intégration playcolorguesser.com/jeux (19 oct. 2026) ================= */
.play__title h1{ margin:0; font-size:17px; font-weight:500; letter-spacing:-.025em; }
a.cg-round{ display:inline-grid; place-items:center; color:inherit; text-decoration:none; }
.jx-cg{ white-space:nowrap; }
@media (max-width:400px){
  .bar .cg-logo img{ height:18px; width:auto; }
  .jx-cg{ padding-inline:12px; font-size:13px; }
}
/* texte court, lisible par les moteurs, sous les cartes de l'accueil */
.jx-about{ margin:30px 2px 0; }
.jx-about p{ margin:0; font-size:14px; line-height:1.5; color:var(--cg-fg-3); text-wrap:pretty; }

/* pages d'un jeu : le jeu occupe l'écran, le texte vient dessous */
.jx-seo{ width:100%; max-width:560px; margin:0 auto; padding:28px var(--cg-gutter) calc(48px + var(--cg-safe-b)); border-top:1px solid var(--cg-line); }
.jx-crumbs{ display:flex; flex-wrap:wrap; gap:4px; font-size:13px; color:var(--cg-fg-3); }
.jx-crumbs a{ color:var(--cg-fg-2); text-underline-offset:3px; }
.jx-lead{ margin:14px 0 0; font-size:17px; line-height:1.5; color:var(--cg-fg-2); text-wrap:pretty; }
.jx-block{ margin-top:34px; }
.jx-h{ margin:0 0 12px; font-size:var(--cg-fs-h3, 22px); font-weight:500; letter-spacing:-.03em; }
.jx-steps{ margin:0; padding:0; list-style:none; counter-reset:jx; display:grid; gap:10px; }
.jx-steps li{ position:relative; padding:12px 14px 12px 50px; border-radius:18px; background:#151517; box-shadow:inset 0 0 0 1px var(--cg-line);
  font-size:15px; line-height:1.45; color:var(--cg-fg-2); counter-increment:jx; }
.jx-steps li::before{ content:counter(jx); position:absolute; left:12px; top:11px; display:grid; place-items:center; width:26px; height:26px; border-radius:50%;
  font:600 13px/1 var(--cg-font); color:var(--cg-ink); background:var(--acc); }
.jx-faq{ display:grid; gap:8px; }
.jx-q{ border-radius:18px; background:#151517; box-shadow:inset 0 0 0 1px var(--cg-line); }
.jx-q summary{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 14px; cursor:pointer; list-style:none;
  font-size:15px; font-weight:500; }
.jx-q summary::-webkit-details-marker{ display:none; }
.jx-q summary .cg-ico{ --s:18px; flex:none; transition:transform .25s var(--cg-ease-out); }
.jx-q[open] summary .cg-ico{ transform:rotate(180deg); }
.jx-q p{ margin:0; padding:0 14px 14px; font-size:15px; line-height:1.5; color:var(--cg-fg-2); }
.jx-others{ display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.jx-other{ display:grid; gap:2px; padding:12px 14px; border-radius:18px; background:#151517; box-shadow:inset 0 0 0 1px var(--cg-line); color:var(--cg-fg); text-decoration:none;
  transition:transform .3s var(--cg-ease-out); }
.jx-other:active{ transform:scale(.985); }
.jx-other__n{ font-size:17px; font-weight:500; letter-spacing:-.025em; }
.jx-other__n::before{ content:""; display:inline-block; width:10px; height:10px; margin-right:8px; border-radius:3px; vertical-align:.08em; background:var(--acc); }
.jx-other__p{ font-size:14px; color:var(--cg-fg-2); }
.jx-links{ display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 0; }
.jx-cgline{ margin:18px 0 0; font-size:13px; line-height:1.5; color:var(--cg-fg-3); }
/* audit SEO (19 oct. 2026) : H2 de genre sous le fil d'Ariane, astuces (puces au lieu de numéros), lien vers la page du jour sur l'accueil */
.jx-kw{ margin:20px 0 0; text-wrap:balance; }
.jx-kw + .jx-lead{ margin-top:8px; }
.jx-tips li{ padding-left:40px; }
.jx-tips li::before{ content:""; left:18px; top:20px; width:9px; height:9px; border-radius:3px; box-shadow:inset 0 1px 0 rgba(255,255,255,.45); }
.jx-about .jx-hubdaily{ margin-top:10px; }
.jx-hubdaily a{ color:var(--cg-fg-2); text-underline-offset:3px; }
@media (prefers-reduced-motion:reduce){ .jx-other, .jx-q summary .cg-ico{ transition:none; } }

/* ================= la fusion (19 oct. 2026) : bocal, gouttes sur canvas, éclats ================= */
.board--fusion{ flex:1 1 auto; min-height:0; display:flex; flex-wrap:nowrap; align-items:stretch; align-content:stretch; width:100%; }
.paper--fusion .coach{ top:auto; bottom:70px; }
.paper--fusion{ padding:14px 10px 12px; }
.fu{ position:relative; flex:1; min-height:0; display:flex; flex-direction:column; gap:6px; touch-action:none; -webkit-user-select:none; user-select:none; cursor:crosshair; }
.fu-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:0 6px; }
.fu-score b{ display:block; font-size:40px; font-weight:500; letter-spacing:-.05em; line-height:1; font-variant-numeric:tabular-nums; }
.fu-next{ display:flex; align-items:center; gap:8px; padding:5px 6px 5px 12px; border-radius:var(--cg-r-pill, 999px); background:rgba(255,255,255,.05); box-shadow:inset 0 0 0 1px var(--cg-line); }
.fu-next__l{ font-size:13px; color:var(--lg-fg-2, #C8C8CC); }
.fu-next canvas{ display:block; }
.fu-jar{ position:relative; flex:1; min-height:0; }
.fu-jar canvas{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); display:block; }
.fu-bar{ display:flex; align-items:center; justify-content:center; gap:8px; padding-top:2px; cursor:default; }
.fu-seg{ flex:0 1 330px; }
.fu-seg .cg-seg__opt{ white-space:nowrap; font-size:14px; }
.fu-nums span{ font:600 13px/1 var(--cg-font); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.fu-nums[aria-pressed="true"]{ background:var(--lg-drop, #fff); color:var(--cg-ink); }
.fu-pop{ position:absolute; left:50%; top:30%; z-index:5; display:flex; flex-direction:column; align-items:center; pointer-events:none; white-space:nowrap;
  transform:translate(-50%, -50%); animation:fu-pop 1.15s var(--cg-ease-out) both; text-shadow:0 4px 18px rgba(0,0,0,.75); }
.fu-pop b{ font-size:30px; font-weight:600; letter-spacing:-.04em; }
.fu-pop span{ font-size:14px; font-weight:600; color:var(--cg-gold); }
.fu-pop.is-tier{ top:22%; }
.fu-pop.is-tier b{ font-size:26px; color:var(--cg-gold); }
.paper.fu-shine::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(70% 55% at 50% 45%, rgba(255,255,255,.16), transparent 70%); animation:fu-shine .9s var(--cg-ease-out) both; }
/* la collection dans la feuille de résultat : 11 gouttes, celles atteintes s'allument */
.fu-tiers{ display:flex; justify-content:center; align-items:flex-end; gap:5px; margin:-6px auto 20px; }
.fu-tiers i{ width:14px; height:14px; border-radius:50%; background:#232325; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.fu-tiers i.is-on{ background:radial-gradient(circle at 36% 32%, rgba(255,255,255,.75) 0 14%, transparent 34%), radial-gradient(circle at 44% 38%, transparent 58%, rgba(0,0,0,.35)), var(--c);
  box-shadow:none; animation:fu-tier .5s var(--cg-ease-pop) both; animation-delay:calc(var(--d) + 350ms); }
.fu-tiers i.is-top{ width:20px; height:20px; }
.fu-tiers i.is-top.is-on{ background:radial-gradient(circle at 36% 32%, rgba(255,255,255,.8) 0 14%, transparent 34%),
  conic-gradient(from -90deg, #FF3B30, #FF7A1A, #FFE014, #A8F03C, #1ED760, #2EF0C8, #20C8FF, #2E6BFF, #A855F7, #FF3DD8, #FF3B30); }
.gcard__mini .fu-mini{ display:block; }
@keyframes fu-pop{ 0%{ opacity:0; transform:translate(-50%, -30%) scale(.8); } 16%{ opacity:1; transform:translate(-50%, -50%) scale(1.06); } 28%{ transform:translate(-50%, -50%) scale(1); } 100%{ opacity:0; transform:translate(-50%, -110%); } }
@keyframes fu-shine{ 0%{ opacity:0; } 25%{ opacity:1; } 100%{ opacity:0; } }
@keyframes fu-tier{ from{ transform:scale(.6); opacity:0; } to{ transform:none; opacity:1; } }
@media (min-width:1024px){ .fu-score b{ font-size:46px; } }
@media (prefers-reduced-motion:reduce){
  .fu-pop{ animation:cg-fade .15s ease both; transform:translate(-50%, -50%); }
  .fu-tiers i.is-on{ animation:cg-fade .15s ease both; }
  .paper.fu-shine::after{ animation:none; display:none; }
}
