/* ============================================================
   PrizePass creator pages: the blocks under the game. Loaded after page.css and pgame.css.
   A block is either a card (.pg-card: one panel with its heading inside) or an open section (.pg-sec: a heading straight on the page
   with small cards under it), so the page is never boxes inside boxes inside boxes.
   A picture fills its tile with the words over it; where a creator has no picture, one of our drawings (lib/icons.php PP_ART) stands
   in, in the page's own colours. There are no emoji tiles.

   1 shared pieces · 2 picture tiles · 3 two-up cards · 4 products · 5 gallery · 6 lists (links, tour, alerts, prizes)
   7 countdown and goal · 8 video · 9 fan mission · 10 pass · 11 Extension: what the prize includes
   ============================================================ */

/* ---------- 1. shared pieces ---------- */
.pg-sec{display:grid;gap:10px;min-width:0}
.pg-sec-h{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px}
.pg-sec-h .pg-h{font-size:1.14rem}
.pg-more{display:inline-flex;align-items:center;gap:1px;flex:none;min-height:40px;font:700 .8rem var(--f-body);color:var(--a-ink)}
.pg-more .ic{width:14px;height:14px;opacity:1}
/* a picture, or the drawing that stands in for one */
.pg-art,.pg-prod-art,.pg-opt-art,.pg-count-art,.pg-cardlet-art{--ar1:var(--a);--ar2:var(--a2);--ar3:#3b3763;--ar4:#f6f2ff;position:relative;display:block;overflow:hidden}
.pg-art img,.pg-prod-art img,.pg-opt-art img,.pg-count-art img,.pg-cardlet-art img,.pg-incl-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.is-art{display:grid;place-items:center;background:radial-gradient(100% 90% at 28% 10%,color-mix(in srgb,var(--a3) 44%,var(--surface)),color-mix(in srgb,var(--a2) 12%,var(--surface2)))}
.is-art .art{display:block;width:74%;height:auto;max-height:84%;overflow:visible;filter:drop-shadow(0 5px 6px rgba(0,0,0,.28))}
.pg[data-tone="light"] .is-art{--ar3:#3a2a33}
.pg-tag{position:absolute;left:7px;top:7px;z-index:2;padding:3px 8px;border-radius:99px;background:var(--b1);color:var(--on);font:800 .75rem/1.2 var(--f-body);font-style:normal}

/* ---------- 2. picture tiles ---------- */
.pg-tiles-in{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.pg-tile{position:relative;isolation:isolate;grid-column:span 2;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-height:104px;padding:9px 10px 10px;border-radius:var(--mini-r);overflow:hidden;background:linear-gradient(150deg,var(--surface),var(--surface2));border:1px solid var(--line);color:var(--tx);line-height:1.2}
.pg-tile:first-child:nth-last-child(4),.pg-tile:first-child:nth-last-child(4)~.pg-tile,.pg-tile:first-child:nth-last-child(2),.pg-tile:first-child:nth-last-child(2)~.pg-tile,.pg-tile:first-child:nth-last-child(5),.pg-tile:first-child:nth-last-child(5)+.pg-tile{grid-column:span 3}
.pg-tile:only-child{grid-column:1/-1}
.pg-tile-t{display:grid;gap:1px;min-width:0;padding-right:14px}
.pg-tile-t b{font:700 .84rem/1.2 var(--f-body);overflow-wrap:anywhere}
.pg-tile-t small{font-size:.75rem;color:var(--dim)}
.pg-tile .pg-go,.pg-shot .pg-go{position:absolute;right:7px;bottom:10px;width:14px;height:14px}
.pg-tile .pg-art.is-art{width:52px;height:40px;border-radius:9px;background:none;margin-bottom:auto}
.pg-tile .pg-art.is-art .art{width:100%;max-height:100%}
.pg-tile.has-img,.pg-shot.has-img,.pg-cardlet.has-img{color:#fff;border-color:transparent}
.pg-tile.has-img .pg-art,.pg-shot.has-img .pg-art,.pg-cardlet.has-img .pg-cardlet-art{position:absolute;inset:0;z-index:-2}
.pg-tile.has-img::after,.pg-shot.has-img::after,.pg-cardlet.has-img::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(12,8,20,.9),rgba(12,8,20,.28) 52%,rgba(12,8,20,0) 78%)}
.pg-tile.has-img small,.pg-shot.has-img small,.pg-cardlet.has-img small{color:rgba(255,255,255,.82)}
.pg-tiles[data-style="feature"] .pg-tiles-in{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-auto-rows:minmax(84px,auto)}
.pg-tiles[data-style="feature"] .pg-tile{grid-column:auto;min-height:84px}
.pg-tiles[data-style="feature"] .pg-tile:first-child{grid-row:span 2}
.pg-tiles[data-style="feature"] .pg-tile:nth-child(n+4){grid-column:span 1}
.pg-tiles[data-style="rail"] .pg-tiles-in{display:flex;gap:8px;margin:0 calc(var(--pad)*-1);padding:0 var(--pad) 2px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-left:var(--pad)}
.pg-tiles[data-style="rail"] .pg-tiles-in::-webkit-scrollbar{display:none}
.pg-tiles[data-style="rail"] .pg-tile{flex:0 0 38%;min-width:128px;scroll-snap-align:start}

/* ---------- 3. two-up cards ---------- */
.pg-cards-in{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);gap:8px}
.pg-cardlet{isolation:isolate;display:flex;flex-direction:column;gap:8px;min-height:112px;padding:11px 12px 12px;overflow:hidden;line-height:1.25}
.pg-cardlet .pg-lead{width:34px;height:34px;border-radius:10px}
.pg-cardlet-t{display:grid;gap:2px;margin-top:auto;min-width:0;padding-right:12px}
.pg-cardlet-t .pg-kicker{margin:0 0 2px}
.pg-cardlet-t b{font:700 .98rem/1.18 var(--f-head)}
.pg-cardlet-t small{font-size:.8rem;color:var(--cdim)}
.pg-cardlet .pg-go{position:absolute;right:9px;bottom:13px}
.pg-cardlet.has-img .pg-kicker{color:#fff}
.pg-cards-in>:only-child,.pg-cards[data-style="strip"] .pg-cardlet{grid-column:1/-1}
.pg-cards[data-style="strip"] .pg-cardlet{flex-direction:row;align-items:center;min-height:64px}
.pg-cards[data-style="strip"] .pg-cardlet-t{margin:0}
.pg-cards[data-style="strip"] .pg-cardlet .pg-go{position:static;margin-left:auto}

/* ---------- 4. products ---------- */
.pg-prods{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.pg-prod{grid-column:span 2;display:flex;flex-direction:column;overflow:hidden;line-height:1.2}
.pg-prod:first-child:nth-last-child(4),.pg-prod:first-child:nth-last-child(4)~.pg-prod,.pg-prod:first-child:nth-last-child(2),.pg-prod:first-child:nth-last-child(2)~.pg-prod,.pg-prod:first-child:nth-last-child(5),.pg-prod:first-child:nth-last-child(5)+.pg-prod{grid-column:span 3}
.pg-merch[data-style="grid"] .pg-prod{grid-column:span 3}
.pg-prod-art{aspect-ratio:1.28;width:100%}
.pg-prod-t{display:grid;gap:3px;padding:8px 9px 10px}
.pg-prod-t b{font:700 .84rem/1.2 var(--f-body);overflow-wrap:anywhere}
.pg-prod-t small{font:800 .84rem var(--f-body);color:var(--cacc)}
/* photo cards: the picture fills the card, the name and price sit over its foot */
.pg-merch[data-style="photo"] .pg-prod{isolation:isolate;justify-content:flex-end;min-height:128px;border-color:transparent}
.pg-merch[data-style="photo"] .pg-prod-art{position:absolute;inset:0;z-index:-2;aspect-ratio:auto;height:100%}
.pg-merch[data-style="photo"] .pg-prod.has-img{color:#fff}
.pg-merch[data-style="photo"] .pg-prod.has-img::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(12,8,20,.9),rgba(12,8,20,.2) 56%,rgba(12,8,20,0) 80%)}
.pg-merch[data-style="photo"] .pg-prod.has-img small{color:#fff}
.pg-merch[data-style="photo"] .pg-prod:not(.has-img) .pg-prod-art{height:62%}

/* ---------- 5. gallery ---------- */
.pg-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pg-shot{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:104px;padding:9px 10px;border-radius:var(--mini-r);overflow:hidden;background:linear-gradient(150deg,var(--surface),var(--surface2));border:1px solid var(--line);color:var(--tx);line-height:1.2}
.pg-shot:not(.has-img) .pg-art{width:54px;height:42px;margin-bottom:auto;background:none}
.pg-shot:not(.has-img) .pg-art .art{width:100%}
.pg-gallery[data-style="feature"] .pg-shots{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-auto-rows:minmax(88px,auto)}
.pg-gallery[data-style="feature"] .pg-shot{min-height:88px}
.pg-gallery[data-style="feature"] .pg-shot:first-child{grid-row:span 2}

/* ---------- 6. lists: links, tour dates, alerts, prizes ---------- */
.pg-links ul,.pg-tour ul,.pg-alerts ul,.pg-prizes ul{display:grid;gap:7px;margin-top:11px}
.pg-row,.pg-date,.pg-alerts li,.pg-prizes li{display:flex;align-items:center;gap:11px;min-height:56px;padding:8px 11px;border-radius:13px;background:var(--csoft)}
.pg-day{flex:none;display:grid;justify-items:center;align-content:center;width:46px;height:44px;border-radius:10px;background:color-mix(in srgb,var(--cacc) 14%,transparent);color:var(--cacc);line-height:1}
.pg-day small{font:800 .75rem var(--f-body);letter-spacing:.08em;text-transform:uppercase}
.pg-day b{font:700 1.02rem var(--f-head)}
.pg-prizes .t-legendary{box-shadow:inset 0 0 0 1.5px var(--cacc)}
.pg-prizes .t-legendary small,.pg-prizes .t-epic small{color:var(--cacc);font-weight:700}
.pg-switch{position:relative;flex:none;width:48px;height:44px;border:0;background:transparent}
.pg-switch::before{content:"";position:absolute;left:0;right:0;top:8px;height:28px;border-radius:99px;background:color-mix(in srgb,var(--ctx) 22%,transparent);transition:background .2s}
.pg-switch i{position:absolute;left:3px;top:11px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.35);transition:transform .2s}
.pg-switch[aria-checked="true"]::before{background:var(--cacc)}
.pg-switch[aria-checked="true"] i{transform:translateX(20px)}
.pg-alerts{padding:12px 14px}
.pg-alerts ul:first-child{margin-top:0}
.pg-alerts li{min-height:50px;padding:4px 0;background:none;border-radius:0}
.pg-alerts li+li{border-top:1px solid var(--cline)}

/* ---------- 7. countdown and goal ---------- */
.pg-count.has-art{display:grid;grid-template-columns:78px minmax(0,1fr);gap:0 12px;align-items:center}
.pg-count-art{width:78px;height:78px;border-radius:12px}
.pg-count-art.is-art .art{width:80%}
.pg-count.has-art>:is(.pg-clock,.pg-btn){grid-column:1/-1}
.pg-clock{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:12px 0 2px}
.pg-clock span{display:grid;justify-items:center;gap:2px;padding:9px 4px 8px;border-radius:12px;background:var(--csoft)}
.pg-clock b{font:700 1.5rem/1 var(--f-head);font-variant-numeric:tabular-nums}
.pg-clock small{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cdim)}
.pg-count .pg-btn{margin-top:12px}
.pg-meter{height:8px;margin-top:12px;border-radius:99px;overflow:hidden;background:var(--csoft)}
.pg-meter i{display:block;height:100%;width:var(--w);border-radius:99px;background:linear-gradient(90deg,var(--a),var(--a2));animation:pg-grow 1.2s cubic-bezier(.2,.8,.2,1) both}
@keyframes pg-grow{from{width:0}}
.pg-goal-n{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:8px;font-size:.86rem;color:var(--cdim)}
.pg-goal-n b{color:var(--ctx);font-family:var(--f-head);font-size:1.02rem;font-variant-numeric:tabular-nums}
.pg-goal-n em{font:800 .86rem var(--f-body);font-style:normal;color:var(--cacc);font-variant-numeric:tabular-nums}

/* ---------- 8. video ---------- */
.pg-vid{position:relative;display:block;width:100%;margin-top:12px;padding:0;border:0;border-radius:14px;overflow:hidden;aspect-ratio:16/9;background:#000}
.pg-vid img,.pg-vid iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.pg-vid-play{position:absolute;left:50%;top:50%;width:60px;height:60px;translate:-50% -50%;border-radius:50%;background:rgba(0,0,0,.6);box-shadow:inset 0 0 0 2px #fff}
.pg-vid-play::after{content:"";position:absolute;left:24px;top:19px;border-left:18px solid #fff;border-top:11px solid transparent;border-bottom:11px solid transparent}

/* ---------- 9. fan mission: a question, two to four choices, and where the fan is in the three steps.
   Nothing looks chosen or done until the fan has done it. ---------- */
.pg-poll{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.pg-poll:is([data-n="2"],[data-n="4"]){grid-template-columns:repeat(2,minmax(0,1fr))}
.pg-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:68px;padding:10px 6px;border:1px solid var(--cline);border-radius:12px;background:var(--csoft);color:inherit;overflow:hidden;transition:box-shadow .2s,border-color .2s,transform .15s}
.pg-opt:active{transform:scale(.97)}
.pg-opt b{display:grid;font:700 .84rem/1.2 var(--f-body);text-align:center;overflow-wrap:anywhere}
.pg-opt b small{font:800 .75rem var(--f-body);letter-spacing:.1em;color:var(--cdim)}
.pg-opt-ic{display:grid;color:var(--cacc)}
.pg-opt-ic .ic{width:22px;height:22px}
.pg-poll[data-n="4"]:not([data-pics]) .pg-opt{flex-direction:row;justify-content:flex-start;gap:9px;min-height:52px;padding:8px 10px}
.pg-poll[data-n="4"]:not([data-pics]) .pg-opt b{text-align:left}
.pg-poll[data-pics] .pg-opt{justify-content:flex-start;gap:0;padding:0}
.pg-poll[data-pics] .pg-opt b{padding:7px 5px 8px}
.pg-opt-art{width:100%;height:58px}
.pg-opt-art.is-art .art{width:auto;height:76%}
.pg-opt.on{border-color:var(--cacc);box-shadow:0 0 0 1.5px var(--cacc)}
.pg-opt-n{position:absolute;right:6px;top:6px;display:none;width:20px;height:20px;border-radius:50%;background:var(--cacc);box-shadow:0 0 0 2px var(--cbg)}
.pg-opt.on .pg-opt-n{display:block}
.pg-opt.on .pg-opt-n::after{content:"";position:absolute;left:5.5px;top:5.5px;width:9px;height:5.5px;border-left:2.4px solid var(--cink);border-bottom:2.4px solid var(--cink);transform:rotate(-45deg)}
.pg-steps{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:12px;padding-top:11px;border-top:1px solid var(--cline);font:600 .78rem/1.2 var(--f-body);color:var(--cdim)}
.pg-steps li{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.pg-steps li+li::before{content:"";flex:none;width:clamp(6px,4.5vw,24px);height:1px;margin-right:2px;background:var(--cline)}
.pg-steps b{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;border:1px solid color-mix(in srgb,var(--ctx) 30%,transparent);font-size:.75rem}
.pg-steps li.on{color:var(--ctx)}
.pg-steps li.on b{background:var(--cacc);color:var(--cink);border-color:transparent}
.pg-steps li.done b{position:relative;background:color-mix(in srgb,var(--cacc) 20%,transparent);color:var(--cacc);border-color:transparent;font-size:0}
.pg-steps li.done b::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:4.5px;margin:-3.8px 0 0 -4.6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}

/* ---------- 10. the pass: one slim ticket on the home page (the pass itself has its own tab) ---------- */
.pg-pass{display:flex;align-items:center;gap:11px;width:100%;min-height:56px;padding:8px 12px 8px 14px;overflow:hidden;font:inherit;text-align:left;cursor:pointer}
.pg-pass::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--a),var(--a2))}
.pg-pass-ic{display:grid;color:var(--cacc)}
.pg-pass-ic .ic{width:26px;height:26px}
.pg-passcard{text-align:center}
.pg-pass-n{display:flex;justify-content:center;gap:10px;margin:16px 0}
.pg-pass-n span{flex:1;padding:12px 6px;border-radius:14px;background:var(--csoft);font-size:.84rem;color:var(--cdim)}
.pg-pass-n b{display:block;font:700 1.6rem/1.1 var(--f-head);color:var(--ctx)}

/* ---------- 11. Extension: what the prize includes ---------- */
.pg-incl.has-art{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:14px;align-items:center}
.pg-incl-art{position:relative;display:block;align-self:stretch;min-height:108px;border-radius:12px;overflow:hidden}
.pg-incl ul{display:grid;gap:6px;margin-top:9px}
.pg-incl li{display:flex;align-items:center;gap:8px;font:600 .88rem/1.25 var(--f-body)}
.pg-incl li .ic{width:17px;height:17px;color:var(--cacc)}

@media (max-width:359px){
  .pg-steps{font-size:.75rem;gap:3px}
  .pg-steps li{gap:4px}
  .pg-clock b{font-size:1.3rem}
}


/* the vote's choices (the founder, 3 December 2026: a fan new to PrizePass may not know to pick one, "have some indication, maybe like a
   silhouette of a circle... a flashing circle with check mark"). Every choice shows an empty circle where its tick goes. Until one is
   picked, each circle in turn lights up with its tick, as if picked, with a ring rippling out of it, then empties again: a wave across
   the choices that says "tap one". Picked: the full circle with its tick, the others keep their empty circle, nothing flashes. */
.pg-opt-n{display:block;box-sizing:border-box;width:22px;height:22px;right:6px;top:6px;border:2px solid rgba(255,255,255,.92);background:rgba(6,10,26,.45);
  box-shadow:0 1px 5px rgba(0,0,0,.5)}
.pg-opt-n::after{content:"";position:absolute;left:4.5px;top:4.5px;width:9px;height:5.5px;border-left:2.4px solid var(--cink);border-bottom:2.4px solid var(--cink);transform:rotate(-45deg);opacity:0}
.pg-opt-n::before{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid var(--cacc);opacity:0;pointer-events:none}
.pg-opt.on .pg-opt-n{background:var(--cacc);border-color:var(--cacc)}
.pg-opt.on .pg-opt-n::after{left:4.5px;top:4.5px;opacity:1}
.pg-poll:not([data-picked]) .pg-opt-n{animation:pgTickFlash 2.8s ease-in-out infinite}
.pg-poll:not([data-picked]) .pg-opt-n::after{animation:pgTickMark 2.8s ease-in-out infinite}
.pg-poll:not([data-picked]) .pg-opt-n::before{animation:pgTickPing 2.8s ease-out infinite}
.pg-poll:not([data-picked]) .pg-opt:nth-child(2) .pg-opt-n,.pg-poll:not([data-picked]) .pg-opt:nth-child(2) .pg-opt-n::before,.pg-poll:not([data-picked]) .pg-opt:nth-child(2) .pg-opt-n::after{animation-delay:.4s}
.pg-poll:not([data-picked]) .pg-opt:nth-child(3) .pg-opt-n,.pg-poll:not([data-picked]) .pg-opt:nth-child(3) .pg-opt-n::before,.pg-poll:not([data-picked]) .pg-opt:nth-child(3) .pg-opt-n::after{animation-delay:.8s}
.pg-poll:not([data-picked]) .pg-opt:nth-child(4) .pg-opt-n,.pg-poll:not([data-picked]) .pg-opt:nth-child(4) .pg-opt-n::before,.pg-poll:not([data-picked]) .pg-opt:nth-child(4) .pg-opt-n::after{animation-delay:1.2s}
@keyframes pgTickFlash{0%,58%,100%{background:rgba(6,10,26,.45);border-color:rgba(255,255,255,.92)}18%,36%{background:var(--cacc);border-color:var(--cacc)}}
@keyframes pgTickMark{0%,58%,100%{opacity:0}18%,36%{opacity:1}}
@keyframes pgTickPing{0%,14%{transform:scale(1);opacity:0}18%{opacity:.9}62%,100%{transform:scale(2.1);opacity:0}}
@media (prefers-reduced-motion:reduce){
  .pg-poll:not([data-picked]) .pg-opt-n,.pg-poll:not([data-picked]) .pg-opt-n::before,.pg-poll:not([data-picked]) .pg-opt-n::after{animation:none}
}
