/* A sales page's "How the games play" (home/parts/home.html #games, src/home/lists-games.js): on a phone one fold,
   shut until tapped, holding a row per game; on a laptop the fold is open (home/js/folds.js) beside the heading.
   Each row opens onto its clip and three steps that light up as it plays (home/js/games.js). Colors from brand.css; sage, so it never runs into the oat keepsake above it. */
.games{background:var(--brand-glass-sage);padding:clamp(64px,8vw,96px) 0 clamp(44px,7vw,92px)}
.games .wrap{display:grid;gap:28px}
@media (min-width:900px){
  .games .wrap{grid-template-columns:.75fr 1.25fr;align-items:start;column-gap:clamp(32px,5vw,72px)}
  .games .wrap > div:first-child{position:sticky;top:110px}
}

/* the fold's card on a phone: how many, "Tap to watch" */
.fold-games > summary{background:var(--brand-card);box-shadow:var(--brand-shadow-soft);color:var(--brand-ink)}
.fold-games .fold-n{color:var(--brand-accent)}
.fold-games .fold-t small{color:var(--brand-accent)}
.fold-games .fold-x{background:var(--brand-ink);color:var(--brand-paper)}
@media (max-width:899px){
  .games{padding-top:40px;padding-bottom:36px}
  .games .wrap{gap:18px}
  .fold-games .fold-body{background:var(--brand-card);border-radius:0 0 22px 22px;padding:0 16px 10px;box-shadow:var(--brand-shadow-soft)}
  .fold-games .gm-group:first-child .gm:first-child{border-top-color:var(--brand-line)}
}

/* a group's name, when an occasion has more than one */
.gm-gh{font:600 12px/1.4 var(--brand-font-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--brand-ink-2);padding:22px 0 10px}
.gm-group:first-child .gm-gh{padding-top:14px}

/* a game's row */
.gm{border-top:1px solid var(--brand-rule)}
.gm-group:last-child .gm:last-child{border-bottom:1px solid var(--brand-rule)}
@media (max-width:899px){.fold-games .gm-group:last-child .gm:last-child{border-bottom:0}}
.gm > summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:14px 0}
.gm > summary::-webkit-details-marker{display:none}
.gm > summary:focus-visible{outline:2px solid var(--brand-ink);outline-offset:4px;border-radius:6px}
.gm-t{display:grid;gap:4px}
.gm-t b{font:400 22px/1.2 var(--brand-font-body)}
.gm-t small{font:400 17px/1.35 var(--brand-font-ui);color:var(--brand-ink-2)}
.gm-x{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px var(--brand-line);transition:background .2s,color .2s}
.gm-x svg{width:14px;height:14px}
/* its + turns to × with every open question's (site.css: details[open] > summary svg) */
.gm[open] .gm-x{background:var(--brand-ink);color:var(--brand-paper);box-shadow:none}
.gm[open] .gm-t small{display:none}
.gm-body{padding:2px 0 24px}

/* the clip: its poster until the video is in, and a pause button in its corner (left: the phone stands on the right) */
.gm-clip{position:relative;aspect-ratio:1280/800;border-radius:16px;overflow:hidden;background:var(--brand-panel);box-shadow:var(--brand-shadow-soft)}
.gm-clip img,.gm-clip video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* the video over its still (it shows nothing of its own until it has a picture), the button over both */
.gm-clip video{z-index:1;background:transparent}
.gm-clip video[hidden]{display:none}
.gm-stop{z-index:2}
.gm-stop{position:absolute;left:10px;bottom:10px;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;
  background:var(--brand-glass-tint);color:var(--brand-ink);box-shadow:var(--brand-shadow-soft)}
.gm-stop[hidden]{display:none}
.gm-stop:focus-visible{outline:2px solid var(--brand-ink);outline-offset:3px}
/* two bars while it plays; a triangle once paused */
.gm-stop span{width:12px;height:14px;border-left:4px solid currentColor;border-right:4px solid currentColor}
.gm-stop b{display:none}
/* not playing: a big button in the middle of the poster, with its words */
.gm-stop[aria-pressed="true"]{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:auto;height:52px;padding:0 22px 0 18px;border-radius:26px;
  display:flex;gap:10px;align-items:center;font:600 16px/1 var(--brand-font-ui);white-space:nowrap}
.gm-stop[aria-pressed="true"] b{display:block}
.gm-stop[aria-pressed="true"] span{width:0;height:0;border-style:solid;border-width:9px 0 9px 15px;border-color:transparent transparent transparent currentColor}

/* the three steps, each lit while its part of the clip plays */
.gm-steps{list-style:none;counter-reset:gm;display:grid;gap:10px;margin-top:16px}
.gm-steps li{counter-increment:gm;display:flex;gap:12px;align-items:baseline;font:400 17px/1.4 var(--brand-font-ui);color:var(--brand-ink-2);transition:color .35s}
.gm-steps li::before{content:counter(gm);flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;transform:translateY(-1px);
  font:600 13px/1 var(--brand-font-ui);box-shadow:inset 0 0 0 1px var(--brand-line);color:var(--brand-ink-2);transition:background .35s,color .35s,box-shadow .35s}
.gm-steps li.on{color:var(--brand-ink)}
.gm-steps li.on::before{background:var(--brand-accent);color:var(--brand-accent-ink);box-shadow:none}
@media (min-width:900px){.gm-steps{grid-template-columns:repeat(3,1fr);gap:18px}.gm-steps li{font-size:16px}}

