/* ===== round 2 (17 Nov): chosen options only =====
   A) hero: silver holo sticker pack glides in, tears open, stickers land (once per visit)
   B) how it works: stacking cards, one step per scroll gesture, unpins once step 4 has been seen
   All motion is transform + opacity. */

/* ---------- hero: always one screen, stickers as big as the room allows ----------
   Words column is exactly as wide as the words. The sticker rows take everything from there to the right margin.
   Sticker width = the smaller of "what two rows can be in this screen height" and "a fifth of the rows' own width" (container units),
   so they grow with the window in both directions. The headline also yields to short screens. */
@media (min-width:701px){
  .hero{--hp:clamp(16px,4vh,38px);--hb:calc((100vh - 76px - 2 * var(--hp) - 26px) / 3.196);
    max-height:none;grid-template-columns:auto minmax(0,1fr);gap:24px;padding:var(--hp) 20px calc(var(--hp) + 2px) var(--gut)}
  /* headline on three lines, wider; it takes about 7.5em, the sticker columns close up to make the room */
  .hero h1{font-size:clamp(40px,min(4.5vw,calc((100vh - 76px - 2 * var(--hp) - 268px) / 2.76)),150px)}
  .hero .txt{justify-content:center;gap:clamp(14px,2.4vh,28px)}
  .hero .slogan{font-size:clamp(34px,min(3.5vw,6.2vh),80px)}
  .album{container-type:inline-size;grid-template-columns:repeat(5,auto);justify-content:space-between;align-content:center;gap:22px 0}
  .album .foil{--w:min(var(--hb),calc((100cqw - 10px) / 5));width:var(--w)}
}
@media (min-width:701px) and (max-width:1099px){
  .album{grid-template-columns:repeat(3,auto)}
  .album .foil{--w:min(var(--hb),calc((100cqw - 12px) / 3))}
}
/* phone: words, then both rows in what is left of the first screen */
@media (max-width:700px){
  .hero{height:calc(100vh - 64px);height:calc(100svh - 64px);min-height:520px;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:clamp(12px,3svh,28px) 16px 8px;overflow-x:clip}
  .hero h1{font-size:min(11.4vw,6.6svh)}
  .hero h1 .ln>span{white-space:nowrap}
  .hero .txt{gap:clamp(6px,1.5svh,13px)}
  .hero .after{gap:clamp(9px,1.9svh,18px)}
  .hero .slogan{font-size:min(34px,4.5svh)}
  .hero .after .cta{height:clamp(48px,7.2svh,60px)}
  /* round 10: order headline, slogan, button, soon line, stickers; tight fixed spacing; the hero hugs its content (no full-screen height) */
  .hero{display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;min-height:0;padding:20px 16px 24px}
  .hero .txt,.hero .after{display:contents}
  .hero h1,.hero .slogan,.hero .after .cta,.hero .after .soon{align-self:flex-start}
  .hero .slogan{margin-top:6px;font-size:min(34px,4.5svh)}
  .hero .after .cta{margin-top:18px;height:clamp(48px,7.2svh,60px)}
  .hero .after .soon{margin-top:8px}
  .hero .album{order:9;margin-top:18px}
  /* four stickers per row, sized to fit the width exactly; nothing runs off the edge, nothing scrolls sideways */
  .album{container-type:inline-size;grid-template-columns:repeat(4,auto);justify-content:space-between;align-content:start;gap:10px 6px;margin-left:0;margin-right:0;padding:0;overflow:visible}
  .album .foil{--w:calc((100cqw - 18px) / 4);width:var(--w)}
  .album .foil:nth-child(n){display:block}
  .album .foil:nth-child(5n){display:none}
}

/* ---------- hero: load order ---------- */
.pk-on .hero .album .foil,.pk-on .hero .after .cta,.pk-on .hero .after .soon{opacity:0}
.hero.pk .album .foil,.hero.pk .after .cta,.hero.pk .after .soon{animation:none!important}
.intro .hero.pk .slogan .w>span{animation-delay:calc(var(--j) * 70ms + 2000ms)}
.hero.pk .album{position:relative;z-index:2}

/* ---------- the pack ---------- */
.pkb,.pkf{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.pkb{z-index:1}.pkf{z-index:3}
.pk-pos{position:absolute;left:0;top:0;width:var(--pw);height:var(--ph);will-change:transform,opacity}
.pk-rig{position:absolute;inset:0;transform-origin:50% 60%;will-change:transform}
/* soft contact shadow under the pack, plus a faint lift halo */
.pk-shadow{position:absolute;left:-8%;right:-8%;bottom:-6.5%;height:17%;background:radial-gradient(closest-side,rgba(14,16,15,.38) 0%,rgba(14,16,15,.16) 55%,rgba(14,16,15,0) 100%)}
.pk-halo{position:absolute;inset:-5% -9% -3% -9%;background:radial-gradient(ellipse 50% 50% at 50% 52%,rgba(14,16,15,.16) 55%,rgba(14,16,15,0) 100%)}
.pk-in,.pk-body,.pk-top{position:absolute;inset:0}
.pk-top{transform-origin:100% 12.5%;will-change:transform,opacity}
/* brushed chrome: broad cylinder reflections, hairline brushing, a fine crinkle drawn once */
.pk-foil{position:absolute;inset:0;background-size:cover,auto,cover;background-image:var(--crk),
  repeating-linear-gradient(90deg,rgba(255,255,255,.10) 0 1px,rgba(18,22,20,.055) 1px 2px,rgba(255,255,255,0) 2px 3px),
  linear-gradient(97deg,#eef1ee 0%,#b3b9b5 12%,#f8faf7 25%,#929995 40%,#e6eae6 57%,#a4aba7 73%,#f3f6f3 89%,#bcc2be 100%);
  background-blend-mode:soft-light,normal,normal}
/* iridescence: a faint thin-film spectrum on a layer wider than the pack; it slides as the pack turns */
.pk-iri{position:absolute;top:0;bottom:0;left:-50%;width:200%;will-change:transform;background:linear-gradient(111deg,
  hsla(190,85%,60%,0) 14%,hsla(190,85%,60%,.20) 24%,hsla(248,72%,70%,.19) 33%,hsla(318,70%,70%,.13) 41%,hsla(318,70%,70%,0) 49%,
  hsla(44,90%,60%,0) 54%,hsla(44,90%,60%,.13) 62%,hsla(152,62%,56%,.15) 71%,hsla(198,85%,60%,.19) 80%,hsla(250,72%,70%,.12) 88%,hsla(250,72%,70%,0) 96%)}
/* pillow volume and crisp chrome edges */
.pk-vol{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(255,255,255,.9) 0,rgba(255,255,255,0) 1.2px,rgba(14,16,15,.30) 2px,rgba(14,16,15,0) 8%,rgba(255,255,255,.16) 15%,rgba(255,255,255,0) 27%,rgba(255,255,255,0) 80%,rgba(255,255,255,.12) 89%,rgba(14,16,15,.26) 99%,rgba(255,255,255,.7) 100%),
  linear-gradient(180deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,0) 20%,rgba(14,16,15,0) 78%,rgba(14,16,15,.20) 100%)}
/* crimped seals: sharp pressed ridges and a heat-seal line */
.pk-crimp{position:absolute;left:0;right:0;height:9%;background:
  repeating-linear-gradient(90deg,rgba(255,255,255,.95) 0 1px,rgba(255,255,255,.28) 1px 2px,rgba(22,27,24,.46) 2px 3.5px,rgba(22,27,24,.14) 3.5px 5px),
  linear-gradient(180deg,#b9bfbb,#f1f4f1 46%,#a2a9a5)}
.pk-crimp::before,.pk-crimp::after{content:"";position:absolute;left:0;right:0;height:1px}
.pk-crimp.t{top:0}.pk-crimp.b{bottom:0}
.pk-crimp.t::before{bottom:0;background:rgba(14,16,15,.42)}.pk-crimp.t::after{bottom:-1px;background:rgba(255,255,255,.75)}
.pk-crimp.b::before{top:0;background:rgba(14,16,15,.42)}.pk-crimp.b::after{top:-1px;background:rgba(255,255,255,.75)}
/* tear strip: an ink hairline under the top seal */
.pk-strip{position:absolute;left:0;right:0;top:10.6%;height:2px;background:#0E100F;opacity:.82}
/* Centre Spot + wordmark pressed into the foil: ink face, dark upper lip, light lower lip */
.pk-art{position:absolute;left:0;right:0;top:15%;bottom:11%;display:grid;justify-items:center;align-content:center;gap:9%}
.pk-emb{display:grid}.pk-emb>*{grid-area:1/1;width:100%;height:auto;display:block}
.pk-emb.ic{width:42%}.pk-emb.wd{width:64%}
.pk-emb .lo{color:rgba(14,16,15,.38);transform:translate(-.7px,-1px)}
.pk-emb .hi{color:rgba(255,255,255,.92);transform:translate(.9px,1.3px)}
.pk-emb .ink{color:#0E100F;position:relative;z-index:1}
/* a real specular: a hard bright core inside a soft bloom */
.pk-spec{position:absolute;top:-12%;bottom:-12%;left:0;width:46%;transform-origin:50% 0;will-change:transform;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.16) 30%,rgba(255,255,255,.42) 44%,rgba(255,255,255,.98) 49%,rgba(255,255,255,.98) 51.5%,rgba(255,255,255,.34) 57%,rgba(255,255,255,.10) 72%,rgba(255,255,255,0) 100%)}
.pk-glint{position:absolute;left:0;top:12.5%;width:26%;height:14%;margin:-7% 0 0 -13%;opacity:0;will-change:transform,opacity;background:radial-gradient(closest-side,rgba(255,255,255,.98),rgba(255,255,255,.4) 36%,rgba(255,255,255,0))}
.pk-flash{position:absolute;left:50%;top:12.5%;width:150%;aspect-ratio:1;margin:-75% 0 0 -75%;opacity:0;will-change:transform,opacity;background:radial-gradient(closest-side,rgba(255,255,255,.96) 0%,rgba(205,228,255,.5) 30%,rgba(255,255,255,0) 100%)}
.pk-spark{position:absolute;left:50%;top:12.5%;width:10px;height:10px;margin:-5px;opacity:0;will-change:transform,opacity;background:#fff;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.pk-top .pk-spec{bottom:84%}
.pk-in{background:linear-gradient(100deg,#8e948f,#e4e7e2 28%,#aeb4af 52%,#eceee9 74%,#989e99)}
.pk-in::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,.15) 22%,rgba(0,0,0,0) 40%)}

/* ---------- join section: the two sticker rows drift as a seamless loop (players left, clubs right), about 5s per visit ---------- */
.srow{display:block;width:auto;margin:0}
.srow .mq{display:flex;width:max-content;will-change:transform}
.srow .tilt{flex:none;margin-right:16px}
@media (min-width:701px){.srow .tilt{width:max(84px,calc(100vw / 12 - 16px))}}
@media (max-width:700px){.srow .tilt{margin-right:10px}}

/* ---------- how it works ---------- */

#how{--nav:76px;--vs:1}
#how .top{z-index:6}
#how .hpin{display:grid;gap:48px}
.hc{position:relative;background:var(--ink);box-shadow:inset 0 0 0 1px rgba(244,244,239,.12);border-radius:22px;overflow:hidden;display:grid;grid-template-rows:auto 1fr}
.hc .cap{padding:24px 24px 4px;display:grid;gap:6px;align-content:start}
.hc .cap b{font-size:15px;font-weight:700;color:var(--pitch)}
.hc .cap h3{display:grid;font-size:clamp(24px,2.1vw,30px);font-weight:800;letter-spacing:-.025em;line-height:1.05;min-height:2.1em}
.hc .cap h3>span{grid-area:1/1}
.hbox{position:relative;width:calc(320px * var(--vs));height:calc(370px * var(--vs));margin:0 auto;align-self:center;overflow:hidden}
.hstage{position:absolute;left:0;top:0;width:320px;height:370px;transform-origin:0 0;transform:scale(var(--vs))}
.hshade{position:absolute;inset:0;background:var(--ink);opacity:0;pointer-events:none;border-radius:inherit;z-index:3;will-change:opacity}
/* players / clubs: both sets are in the page and cross-fade */
.hl{position:absolute;inset:0}
[data-rl]{transition:opacity .32s ease,visibility 0s}
#how[data-role="p"] [data-rl="c"],#how[data-role="c"] [data-rl="p"]{opacity:0;visibility:hidden;transition:opacity .32s ease,visibility 0s linear .32s}
.sw button{transition:background-color .2s ease,color .2s ease,opacity .2s ease}
/* the four pictures, same parts as live, on a 320x370 stage */
.hk{position:absolute;width:170px;will-change:transform}
.hk .stk{box-shadow:0 26px 40px -18px rgba(0,0,0,.9)}
.hv1 .flip{position:absolute;left:50%;top:38px;width:170px;height:272px;margin-left:-85px;transform-style:preserve-3d;will-change:transform}
.hv1 .hk{left:0;top:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hv1 .b{transform:rotateY(180deg)}
.hv2 .pile{position:absolute;left:50%;top:30px;width:164px;margin-left:-82px;height:262px}
.hv2 .pile .hk{inset:0;width:100%}
.hv2 .bt{position:absolute;left:0;right:0;bottom:20px;display:flex;justify-content:center;gap:10px}
.hv2 .bt span{position:relative;height:42px;padding:0 24px;border-radius:999px;display:grid;place-items:center;font-size:16px;font-weight:700;background:var(--card2);color:var(--chalk)}
.hv2 .bt span.yes{background:var(--chalk);color:var(--ink)}
.hv2 .bt i{position:absolute;inset:-3px;border-radius:999px;box-shadow:inset 0 0 0 3px var(--pitch);opacity:0}
.hv3{display:grid;align-content:center;justify-items:center;gap:12px;padding:0 14px}
.hv3 .g{font-size:40px;font-weight:800;letter-spacing:-.02em;line-height:1}
.hv3 .spread{position:relative;display:flex;padding:12px 10px;border-radius:12px;background:var(--ink);box-shadow:inset 0 0 0 1px rgba(244,244,239,.08),0 20px 30px -16px rgba(0,0,0,.8)}
.hv3 .spread::after{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:2px;margin-left:-1px;background:rgba(0,0,0,.5)}
.hv3 .slot{width:118px;padding:0 8px;display:grid;gap:8px;justify-items:center;text-align:center}
.hv3 .slot .stk{width:96px;box-shadow:0 10px 18px -8px rgba(0,0,0,.8)}
.hv3 .slot p{display:grid;gap:1px;font-size:11px;line-height:1.2}
.hv3 .slot p b{font-weight:700;letter-spacing:.06em}
.hv3 .slot p span{opacity:.6}
.hv3 .both{font-size:14px;text-align:center;line-height:1.35}
.hv4{display:grid;align-content:start;gap:10px;padding:0 18px 18px}
.hv4 .who{display:flex;align-items:center;gap:10px;margin:0 -18px 8px;padding:14px 18px;box-shadow:0 1px 0 rgba(244,244,239,.08)}
.hv4 .who .av{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:none;background:#fff}
.hv4 .who .av img{width:100%;height:100%;object-fit:cover;object-position:center}
.hv4 .who b{display:block;font-size:15px;font-weight:700;line-height:1.2}
.hv4 .who span{display:block;font-size:12px;color:rgba(244,244,239,.55)}
.hv4 .bub{margin:0}

/* the live grid: four across, two across on tablet, stacked on phone */
#how.hw-s .steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
@media (max-width:1100px){#how.hw-s .steps{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){#how.hw-s .steps{grid-template-columns:1fr;gap:14px}}

@media (max-width:700px){
  #how{--nav:64px}
  .hc .cap{padding:22px 22px 4px}
  .hc .cap h3{font-size:26px}
  #how.hw-s{padding:64px 16px 70px}
  #how.hw-s .hpin{gap:28px}
  .hw-s .hc .cap h3{min-height:0}
}

/* ---------- background for the plain chalk areas (static, behind everything, no layout change) ----------
   home: the hero and the join section. Other pages: the whole light page. Fine paper grain + a very soft warm edge. */
html.bg-1 .hero,html.bg-1 .jsec,html.bg-1 main.view:not(#v-home){background-repeat:no-repeat;background-color:var(--page)}
/* 1: fine paper grain + a very soft warm edge */
html.bg-1 .hero,html.bg-1 .jsec,html.bg-1 main.view:not(#v-home){background-image:
  radial-gradient(ellipse 75% 70% at 50% 45%,rgba(255,255,255,.55) 0%,rgba(255,255,255,0) 60%),
  radial-gradient(ellipse 120% 110% at 50% 50%,rgba(170,150,105,0) 55%,rgba(170,150,105,.13) 100%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06  0 0 0 0 .07  0 0 0 0 .06  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-repeat:no-repeat,no-repeat,repeat;background-size:auto,auto,220px 220px}
@media (prefers-reduced-motion:reduce){.pkb,.pkf{display:none}.pk-on .hero .album .foil,.pk-on .hero .after .cta,.pk-on .hero .after .soon{opacity:1}}

/* ---------- round 7: how it works, still pictures + soft reveal ---------- */
.hv2 .pile .hk{transform-origin:50% 60%}
.hv2 .bt .yes i{opacity:1}
#how.rv .hc{opacity:0;transform:translateY(16px)}
#how.rv .hc.in{opacity:1;transform:none;transition:opacity .5s cubic-bezier(.22,1,.36,1) var(--d,0ms),transform .5s cubic-bezier(.22,1,.36,1) var(--d,0ms)}
@media (prefers-reduced-motion:reduce){#how.rv .hc{opacity:1;transform:none}}
/* card 3: a framed slice of the app screen. GAME ON! is a small tilted chalk badge across the seam between the stickers, not a heading */
.hv3{inset:26px 10px 12px;border-radius:18px;background:#070908;box-shadow:inset 0 0 0 1px rgba(244,244,239,.14);padding:0 8px;gap:14px}
.hv3 .spread{background:none;box-shadow:none;padding:0}
.hv3 .g{position:absolute;left:50%;top:44%;z-index:2;margin:0;padding:6px 13px 7px;border-radius:999px;background:var(--chalk);color:var(--ink);font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1;white-space:nowrap;transform:translate(-50%,-50%) rotate(-7deg);box-shadow:0 6px 14px -4px rgba(0,0,0,.7)}
.hv3 .both{opacity:.8}
/* the slogan follows the headline now that the words arrive as the pack opens */
.intro .hero.pk .slogan .w>span{animation-delay:calc(var(--j) * 70ms + 500ms)}
.hero:not(.go) h1 .ln>span{animation-play-state:paused} /* the headline waits (hidden) until the pack opens */

/* ---------- lights down, spotlight on (opacity and transform only). Already in the page; shown from the first paint while html.pk-lights is set ---------- */
.pk-dim,.pk-beam,.pk-spot{display:none;position:absolute;inset:0;z-index:1;pointer-events:none;will-change:opacity;
  --sx:50%;--sy:calc(50svh - 76px);--sr:46svh;--fy:calc(50svh - 76px + 28svh)}
@media (max-width:700px){.pk-dim,.pk-beam,.pk-spot{--sy:calc(50svh - 64px)}}
.pk-lights .pk-dim,.pk-lights .pk-beam,.pk-lights .pk-spot{display:block}
/* the hero starts solid ink; at the tear a feathered hole (the mask) grows out from the pack and the paper shows through */
.pk-dim{background:#0E100F;}
.pk-beam,.pk-spot{opacity:0}
/* the beam: a cone drawn with soft conic stops (no hard sides), fading out down its length with a mask */
.pk-beam{background:conic-gradient(from 154deg at var(--sx) 0,rgba(255,246,226,0) 0deg,rgba(255,246,226,.07) 8deg,rgba(255,246,226,.20) 19deg,rgba(255,246,226,.27) 26deg,rgba(255,246,226,.20) 33deg,rgba(255,246,226,.07) 44deg,rgba(255,246,226,0) 52deg);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.6) calc(var(--fy) * .45),rgba(0,0,0,0) var(--fy));mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.6) calc(var(--fy) * .45),rgba(0,0,0,0) var(--fy))}
.pk-spot{background:radial-gradient(ellipse calc(var(--sr) * .55) calc(var(--sr) * .12) at var(--sx) var(--fy),rgba(255,248,232,.95) 0%,rgba(255,244,222,.5) 45%,rgba(255,244,222,0) 100%),
  radial-gradient(circle var(--sr) at var(--sx) var(--sy),rgba(255,251,240,1) 0%,rgba(255,248,232,.96) 22%,rgba(255,244,222,.6) 50%,rgba(255,244,222,.18) 78%,rgba(255,244,222,0) 100%);transform-origin:var(--sx) var(--sy);will-change:opacity,transform}

/* 17 Nov: reserve the join rows' height before cr.js fills them, so the form below doesn't jump (row = 1.597 x sticker width) */
@media (max-width:700px){.srows:empty{min-height:calc(3.194 * 60px + 46px)}}
@media (min-width:701px){.srows:empty{min-height:calc(3.194 * max(84px, calc(100vw / 12 - 16px)) + 48px)}}
/* 17 Nov: phone hero fills the first screen; content stays where it is, spare paper sits at the bottom */
@media (max-width:700px){.hero{min-height:calc(100svh - 64px);justify-content:flex-start;align-content:start}}
