/* home-play.css (21 Oct 2026, Hugues: "a real section, punchy, elegant"): the home's Play section. The question as the title,
   the three color games as cards in a ring of the five ColorLoop inks (the pricing card's ring), one dot perched on each card,
   each game's small animation inside (page-games.js plays any [data-gd]). Night ground, as the hero and the community. */
@property --hp-a{syntax:"<angle>";inherits:false;initial-value:0deg}
.home-play{--hp-out:cubic-bezier(.23,1,.32,1);position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(80px,10vw,144px) var(--gutter,4.5vw) clamp(72px,9vw,120px);background:#0e0f11;color:#f5f5f7;text-align:center}
/* five soft ink lights behind the cards */
.home-play::before{content:"";position:absolute;z-index:-1;left:50%;top:58%;width:min(1400px,140%);height:70%;transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(closest-side at 12% 50%,#F50C0C55,transparent),radial-gradient(closest-side at 32% 40%,#FAA1DB4d,transparent),
    radial-gradient(closest-side at 52% 60%,#19AAE355,transparent),radial-gradient(closest-side at 72% 42%,#FBCB0545,transparent),radial-gradient(closest-side at 90% 56%,#64A9324d,transparent);
  filter:blur(60px);opacity:.55}
.hp-head{max-width:980px;margin:0 auto}
.hp-k{margin:0 0 20px;font:600 12px/1.3 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#FBCB05}
.hp-head h2{margin:0;font-size:clamp(40px,6vw,88px);line-height:.98;letter-spacing:-.05em;font-weight:600;color:#fff;text-wrap:balance}
.hp-head h2 span{background:linear-gradient(90deg,#F50C0C,#FAA1DB,#19AAE3,#FBCB05,#64A932);-webkit-background-clip:text;background-clip:text;color:transparent}
.hp-lead{margin:22px auto 0;max-width:34em;font-size:clamp(17px,1.5vw,20px);line-height:1.5;color:#a9abb1}

.hp-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,2.6vw,36px);max-width:1180px;margin:clamp(72px,8vw,104px) auto 0;padding:0}
.hp-grid li{display:flex}
/* the ring: the five inks around the card; it turns slowly under the pointer */
.hp-card{--hp-a:calc(var(--i) * 72deg);position:relative;display:block;width:100%;padding:2px;border-radius:28px;color:inherit;text-decoration:none;
  background:conic-gradient(from var(--hp-a),#F50C0C,#FAA1DB,#19AAE3,#64A932,#FBCB05,#F50C0C);
  box-shadow:0 40px 80px -44px rgba(0,0,0,.9);transition:transform .3s var(--hp-out),box-shadow .3s ease}
.hp-card::after{content:"";position:absolute;inset:6px;z-index:-1;border-radius:inherit;background:inherit;filter:blur(26px);opacity:.28;transition:opacity .3s ease}
@media (hover:hover) and (pointer:fine){
  .hp-card:hover{transform:translateY(-6px)}
  .hp-card:hover::after{opacity:.55}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hp-card:hover{animation:hp-turn 3.2s linear infinite}}
@keyframes hp-turn{to{--hp-a:calc(var(--i) * 72deg + 360deg)}}
.hp-card:active{transform:scale(.985)}
.hp-card:focus-visible{outline:2px solid #fff;outline-offset:4px}
.hp-in{display:grid;grid-template-rows:auto 1fr auto;height:100%;border-radius:26px;background:#16171a;overflow:hidden;text-align:left}
.hp-img{aspect-ratio:16/10}
.hp-t{display:grid;align-content:start;gap:8px;padding:22px 24px 0}
.hp-t b{font-size:clamp(22px,1.9vw,26px);line-height:1.1;letter-spacing:-.025em;font-weight:600;color:#fff}
.hp-t span{font-size:16px;line-height:1.45;color:#a9abb1}
.hp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 24px}
.hp-foot em{font-style:normal;font-size:13px;color:#7d8087}
.hp-go{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 18px;border-radius:999px;background:#fff;color:#141416;font-size:15px;font-weight:600;
  transition:gap .2s var(--hp-out)}
.hp-go svg{width:15px;height:15px}
.hp-card:hover .hp-go{gap:12px}
/* a dot perched on each card's top edge */
.hp-ag.agd{position:absolute;z-index:3;right:22px;top:0;width:clamp(64px,6.4vw,86px);transform:translateY(-62%)}
.hp-card:hover .hp-ag .agd-j{opacity:1}.hp-card:hover .hp-ag .agd-n{opacity:0}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.hp-card:hover .hp-ag{animation:hp-hop .5s cubic-bezier(.34,1.56,.64,1)}}
@keyframes hp-hop{0%{transform:translateY(-62%)}40%{transform:translateY(calc(-62% - 10px)) scale(1.04)}100%{transform:translateY(-62%)}}

.hp-more{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 22px;margin:clamp(40px,5vw,56px) 0 0;font-size:15px;color:#7d8087}
.hp-more a{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;color:#fff;text-decoration:none;font-weight:600;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35);transition:box-shadow .2s ease,background-color .2s ease}
.hp-more a:hover{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1.5px #fff}

/* the dots (same as page-games.css, which the home does not load) */
.home-play .agd{display:inline-block;flex:none;line-height:0;filter:drop-shadow(0 14px 18px rgba(0,0,0,.45))}
.home-play .agd img{display:block;width:100%;height:auto;margin:0;transition:opacity .15s ease}
.home-play .agd .agd-j{position:absolute;inset:0;opacity:0}

/* the three games' animations (page-games.css, re-scoped) */
.home-play .gd{position:relative;display:grid;place-items:center;background:#1d1e22;overflow:hidden}
.home-play .gd-bm,.home-play .gd-cq{position:relative;display:grid;justify-items:center;gap:14px}
.home-play .gd-logo{display:grid;place-items:center;width:clamp(150px,60%,220px);aspect-ratio:16/9;border-radius:12px;background:var(--bg);transition:background-color .25s ease}
.home-play .gd-logo img{width:70%;height:auto}
.home-play .gd-chips{display:flex;gap:10px}
.home-play .gd-chips i{width:26px;height:26px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px #1d1e22,0 0 0 3px rgba(255,255,255,.14);transition:transform .2s var(--hp-out),box-shadow .2s ease}
.home-play .gd-chips i.is-on{transform:translateY(-3px);box-shadow:0 0 0 2px #1d1e22,0 0 0 4px #fff}
.home-play .gd-ok{position:absolute;top:-6px;left:50%;padding:4px 10px;border-radius:999px;background:#2f8a1f;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;opacity:0;transform:translate(-50%,6px) scale(.94);transition:opacity .2s ease,transform .2s var(--hp-out)}
.home-play .is-ok>.gd-ok{opacity:1;transform:translate(-50%,0)}
.home-play .gd-cq{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:84%;padding-top:16px}
.home-play .gd-half{position:relative;display:grid;place-items:center;aspect-ratio:4/3;border-radius:12px;background:var(--bg);transition:box-shadow .2s ease,transform .2s var(--hp-out)}
.home-play .gd-half img{width:72%;height:auto}
.home-play .gd-half b{position:absolute;left:8px;top:8px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#141416;font-size:12px}
.home-play .gd-half.is-on{box-shadow:0 0 0 3px #fff;transform:translateY(-2px)}
.home-play .gd-cq .gd-ok{top:-14px}
.home-play .gd-ht{position:relative;width:84%;height:36px}
.home-play .gd-ht i{position:absolute;top:0;left:calc(var(--o) * 10%);width:9%;aspect-ratio:1;border-radius:50%;background:hsl(var(--h) 75% 55%);transition:left .6s cubic-bezier(.77,0,.175,1)}
.home-play .gd-ht.is-sorted i{left:calc(var(--s) * 10%)}

@media (max-width:900px){
  .hp-grid{grid-template-columns:minmax(0,1fr);max-width:460px;row-gap:64px}
}
@media (prefers-reduced-motion:reduce){.hp-card,.hp-go{transition:none}}
