/* GLCReveal, the one card-reveal component (clubtry agent, 26 Nov 2026). PREVIEW. Source: glc-c-work/clubtry/reveal.css.
   Used by /club/#try and the Collection's unopened packs.
   The site's own tokens (--sand --gold --gold2 --muted --display --mono), .btn/.btn-play/.btn-ghost, and club.css's
   cb-card flip. Five card backs stacked with volume; Open deals them into a row (3 + 2 on phones), each turns with a
   flip and a sweep of light, then her name and level appear under her. No motion under prefers-reduced-motion. */
.grv{--cw:min(25vw,128px);--g:12px;--ch:56px;--dir:1}
[dir=rtl] .grv{--dir:-1}
@media (min-width:700px){.grv{--cw:min(15.5vw,176px);--g:clamp(14px,1.8vw,24px);--ch:58px}}

/* heading, lede: the /how/ register */
.grv-head{margin:0 0 clamp(24px,3.6vw,40px)}
.grv-head .cb-kick{margin-bottom:.9em}
.grv-head .cb-h2{font-size:clamp(2rem,4.6vw,3.2rem);line-height:1.06;margin:0 0 .32em}
.grv-lede{font-size:clamp(1.05rem,1.6vw,1.22rem);line-height:1.55;color:#cfd5e8;max-width:54ch;margin:0}

/* the stage: the /how/ step panel, a light on the table */
.sp-box.grv{background:none;border:0;border-radius:0;padding:0;margin:0}
.grv-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;border:1px solid #2b4a9666;
  background:linear-gradient(135deg,#0d1c48,#0a1636);padding:64px clamp(14px,3vw,32px) clamp(16px,2.4vw,26px)}
.grv-stage::before{content:"";position:absolute;z-index:-1;left:50%;top:52%;width:min(820px,130%);aspect-ratio:2/1;transform:translate(-50%,-50%);
  pointer-events:none;background:radial-gradient(closest-side,color-mix(in srgb,var(--grv-glow,#f3cd72) 20%,transparent),transparent);transition:opacity .6s}
.grv-stage::after{content:"";position:absolute;z-index:-1;inset:auto 8% 0;height:1px;background:linear-gradient(90deg,transparent,#d9a84540,transparent)}
.grv-stage.is-lit::before{animation:grv-lit 1.6s ease-out}
@keyframes grv-lit{30%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}}

/* "Example" and the count, in the stage's top corners */
.grv-tag{position:absolute;top:18px;inset-inline-start:18px;margin:0}
:where(.grv, dialog.sp-dlg) .sp-ex{display:inline-flex;align-items:center;gap:7px;font:500 .75rem/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;
  padding:7px 11px;border-radius:999px;border:1px solid #d9a84588;background:#d9a84514;color:var(--gold2);background-clip:padding-box}
:where(.grv, dialog.sp-dlg) .sp-ex::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold2);box-shadow:0 0 8px var(--gold2)}
.grv-count{position:absolute;top:22px;right:20px;margin:0;font:500 .8rem/1 var(--mono);letter-spacing:.14em;color:#8f9bc0;direction:ltr;unicode-bidi:isolate}
[dir=rtl] .grv-count{right:auto;left:20px}   /* physical sides: the count is set ltr so "0 / 5" reads the same way */
.grv-count b{font-weight:500;color:var(--gold2)}

/* the row of five; stacked, every card sits on the first one's place in the middle */
.grv-row{list-style:none;margin:0 auto;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--g);max-width:calc(3 * var(--cw) + 2 * var(--g))}
@media (min-width:700px){.grv-row{flex-wrap:nowrap;max-width:none}}
.grv-slot{position:relative;flex:none;width:var(--cw);display:grid;grid-template-rows:calc(var(--cw) * 1.5) var(--ch);row-gap:10px;
  z-index:calc(10 - var(--i));--fx:calc((2 - var(--i)) * (var(--cw) + var(--g)));--fy:calc((10px + var(--ch)) / 2);
  transition:transform .64s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i) * 90ms)}
@media (max-width:699px){
  .grv-slot:nth-child(-n+3){--fx:calc((1 - var(--i)) * (var(--cw) + var(--g)));--fy:calc(var(--cw) * .75 + 10px + var(--ch) + var(--g) / 2)}
  .grv-slot:nth-child(n+4){--fx:calc((3.5 - var(--i)) * (var(--cw) + var(--g)));--fy:calc(-1 * (var(--cw) * .75 + var(--g) / 2))}
}
.grv-slot:nth-child(1){--rot:-2deg}.grv-slot:nth-child(2){--rot:3deg}.grv-slot:nth-child(3){--rot:-4.5deg}.grv-slot:nth-child(4){--rot:5.5deg}.grv-slot:nth-child(5){--rot:-1deg}
.grv-stage.is-stacked .grv-slot{transition-delay:calc((4 - var(--i)) * 60ms);
  transform:translate(calc(var(--sx,calc(var(--dir) * var(--fx))) + var(--dir) * var(--i) * 2px),calc(var(--sy,var(--fy)) + var(--i) * 3px)) rotate(calc(var(--dir) * var(--rot,0deg)))}
.grv-stage.is-stacked .grv-cap{opacity:0;transition:none}
.grv-stage.is-stacked .cb-face{box-shadow:0 1px 0 #ffffff1f inset,0 2px 0 #0005,0 16px 34px #000b}
.grv-stage.is-stacked .grv-slot:first-child{cursor:pointer}
.grv-slot .cb-card{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.grv-slot .cb-back{background:#bdb7b0}

/* the five on the stack */
.grv-badge{position:absolute;z-index:6;top:-12px;inset-inline-end:-12px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--gold2),var(--gold));color:#1b1406;font:600 1.1rem/1 var(--display);box-shadow:0 0 0 3px #0a1636,0 8px 18px #000a;
  opacity:0;transform:scale(.5);transition:opacity .25s,transform .25s;pointer-events:none}
.grv-stage.is-stacked .grv-badge{opacity:1;transform:none;transition-delay:.45s}

/* under each card: her number, then her name and level once she has turned */
.grv-cap{margin:0;min-width:0;display:grid;align-content:start;justify-items:center;gap:5px;text-align:center;transition:opacity .3s}
.grv-num{font:500 .75rem/1 var(--mono);letter-spacing:.16em;color:#7f8bb3;padding-top:8px}
.grv-name{max-width:100%;font:600 clamp(.95rem,1.35vw,1.1rem)/1.2 var(--display);color:var(--sand);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grv-lv{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;font:500 .75rem/1.25 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.grv-lv i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--c);box-shadow:0 0 0 1px #0006,0 0 8px var(--c);transform:translateY(-1px)}
.grv-cap.is-named>*{animation:grv-up .5s cubic-bezier(.2,.8,.2,1) both}
.grv-cap.is-named .grv-lv{animation-delay:.09s}
@keyframes grv-up{from{opacity:0;transform:translateY(8px)}}

/* a turned card: her frame colour around her; rare ones glow (club.css is-glow) */
.grv-slot .cb-card.is-open .cb-front{box-shadow:0 0 0 2px var(--c),0 14px 34px #000b}
.grv-slot .cb-card.is-glow .cb-front{box-shadow:0 0 0 3px var(--c),0 0 40px 8px color-mix(in srgb,var(--c) 70%,transparent)}
.grv-slot .cb-card.is-open .cb-hit{cursor:zoom-in}
.grv-slot .cb-sweep{z-index:4}

/* status line, buttons, the note */
.grv-msg{min-height:1.45em;margin:20px 0 0;text-align:center;font:600 clamp(1.02rem,1.6vw,1.15rem)/1.4 var(--display);color:var(--sand)}
.grv-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:16px 0 0}
.grv [data-sp-all][hidden],.grv [data-sp-open][hidden]{display:none!important}
.grv-note{max-width:62ch;margin:16px auto 0;text-align:center;font-size:.92rem;line-height:1.5;color:var(--muted)}
:where(.grv, dialog.sp-dlg) [data-sp-open].sp-prep{background:linear-gradient(90deg,#f3cd72 var(--sp-p,0%),#f3cd7240 var(--sp-p,0%));opacity:1;cursor:progress;transition:none}

/* the summary: the five fanned, then counts by level */
.grv .sp-sum{margin:18px auto 0;max-width:640px;text-align:center}
:where(.grv, dialog.sp-dlg) .sp-fan{position:relative;height:clamp(190px,34vw,250px);margin:0 auto 14px;max-width:560px}
:where(.grv, dialog.sp-dlg) .sp-counts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
:where(.grv, dialog.sp-dlg) .sp-counts li{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;background:#060d22;border:1px solid #2b4a96;color:var(--sand);font-size:.92rem}
:where(.grv, dialog.sp-dlg) .sp-counts i{width:12px;height:12px;border-radius:50%;background:var(--c);box-shadow:0 0 0 1px #0006}:where(.grv, dialog.sp-dlg) .sp-counts span{color:var(--muted);font-size:.85rem}

/* her details (the existing panel) */
:where(.grv, dialog.sp-dlg) .sp-ph{position:relative;width:100%;height:100%}:where(.grv, dialog.sp-dlg) .sp-ph img{opacity:.55}
:where(.grv, dialog.sp-dlg) .sp-ph span{position:absolute;inset:auto 6% 10%;text-align:center;font:600 .8rem/1.25 var(--display);color:#1b1406;background:var(--c,#eee);border-radius:8px;padding:6px 4px}
.sp-dlg .dlg-in{align-items:start}
:where(.grv, dialog.sp-dlg) .sp-dcard img{width:100%;height:auto;aspect-ratio:2/3;border-radius:6%/4%;box-shadow:0 0 0 3px var(--c),0 0 34px 4px color-mix(in srgb,var(--c) 60%,transparent)}
.sp-dlg .cb-chip{background:#060d22}.sp-dlg h3{font:600 1.05rem var(--display);color:var(--sand);margin:1em 0 .2em}.sp-dlg p{margin:.35em 0}
:where(.grv, dialog.sp-dlg) .sp-share b{color:var(--gold2)}:where(.grv, dialog.sp-dlg) .sp-line{display:flex;gap:10px;align-items:center;margin:.8em 0!important}
:where(.grv, dialog.sp-dlg) .sp-line img{width:56px;height:56px;border-radius:50%;background:#f3ead9;object-fit:cover}:where(.grv, dialog.sp-dlg) .sp-line small{color:var(--muted)}
[dir=rtl] .cb-dlg:where(.sp-dlg) .dlg-x{right:auto;left:8px}
@media (prefers-reduced-motion:no-preference){.sp-dlg[open]{animation:sp-dlg .28s ease-out}@keyframes sp-dlg{from{opacity:0;transform:translateY(12px) scale(.98)}}}

/* the simple reveal (pictures late after 3 s): a fade, no flip */
.sp-simple:where(.grv) .cb-card .cb-in{transition:none}.sp-simple:where(.grv) .cb-card .cb-face{transition:opacity .25s linear}.sp-simple:where(.grv) .cb-card.is-open .cb-in{transform:none}
.sp-simple:where(.grv) .cb-card.is-open .cb-back{opacity:0}.sp-simple:where(.grv) .cb-card .cb-front{transform:none;opacity:0}.sp-simple:where(.grv) .cb-card.is-open .cb-front{opacity:1}

@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .grv-stage.is-stacked.is-ready .grv-slot:first-child:hover .cb-card{transform:translateY(-10px) rotate(calc(var(--dir) * 1.5deg))}
  .grv-slot .cb-card.is-open:hover{transform:translateY(-6px)}
}
@media (prefers-reduced-motion:no-preference){
  .grv-stage.is-stacked.is-ready::before{animation:grv-breathe 3.2s ease-in-out infinite}
  @keyframes grv-breathe{50%{opacity:.55}}
}
@media (prefers-reduced-motion:reduce){
  .grv-slot,.grv-stage.is-stacked .grv-slot,.grv-badge,.grv-slot .cb-card{transition:none!important}
  .grv-cap.is-named>*,.grv-stage.is-lit::before{animation:none}
}
@media (max-width:699px){
  .grv-stage{padding-top:58px}
  .grv-tag{top:14px;inset-inline-start:14px}.grv-count{top:19px;right:16px}[dir=rtl] .grv-count{right:auto;left:16px}
  .grv-tools .btn{flex:1 1 auto;justify-content:center}
}

/* a pack being opened on Play (fetch, then decode): the top card lifts and the light breathes */
.grv-stage.is-loading .grv-slot:first-child .cb-card{transform:translateY(-8px)}
@media (prefers-reduced-motion:no-preference){.grv-stage.is-loading::before{animation:grv-breathe 1.2s ease-in-out infinite}}
.grv-row{position:relative}
.grv-tools .btn{text-decoration:none}

/* ---- packs (27 Nov 2026): 10 and 25 cards, the open-a-pack dialog, the shelf */
.grv.grv-many{--cw:min(16vw,76px);--ch:60px;--g:8px}
@media (min-width:700px){.grv.grv-many{--cw:min(8.6vw,118px);--g:12px}}
.grv.grv-many .grv-row{flex-wrap:wrap;max-width:calc(5 * var(--cw) + 4 * var(--g))}
@media (min-width:700px){.grv.grv-many .grv-row{max-width:calc(10 * var(--cw) + 9 * var(--g))}}
.grv.grv-many .grv-name{font-size:.85rem}.grv.grv-many .grv-lv{font-size:.75rem;letter-spacing:.04em}
.grv.grv-many .grv-lv{flex-wrap:wrap;justify-content:center}
.grv.grv-many .grv-badge{width:30px;height:30px;font-size:.95rem}
dialog.grv-dlg{border:0;padding:0;margin:auto;width:min(1240px,100vw);max-width:100vw;max-height:100dvh;height:auto;background:transparent;color:var(--text);overflow:auto}
dialog.grv-dlg::backdrop{background:#060d22f5}
dialog.grv-dlg .grv{padding:clamp(48px,6vw,64px) clamp(12px,3vw,28px) 28px}
dialog.grv-dlg .grv-x{position:fixed;top:12px;right:12px;z-index:95;width:44px;height:44px;border-radius:50%;border:1px solid #2b4a96;background:#060d22;color:var(--sand);font-size:1.3rem;cursor:pointer}
[dir=rtl] dialog.grv-dlg .grv-x{right:auto;left:12px}
@media (prefers-reduced-motion:no-preference){dialog.grv-dlg[open]{animation:sp-dlg .3s ease-out}}
.grv-shelf{margin-top:8px}
.grv-shelf-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:clamp(18px,4vw,44px);justify-content:flex-start}
.grv-pack{display:grid;justify-items:center;gap:10px;min-width:132px}
.grv-pk-hit{background:none;border:0;padding:12px 16px 6px;cursor:pointer;border-radius:16px}
.grv-pk-hit:focus-visible{outline:3px solid var(--gold2);outline-offset:2px}
.grv-pk{position:relative;display:block;width:clamp(92px,22vw,120px);aspect-ratio:2/3}
.grv-pk img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:4.5%/3%;background:#bdb7b0;box-shadow:0 1px 0 #ffffff1f inset,0 2px 0 #0005,0 14px 30px #000b}
.grv-pk img:nth-child(1){transform:translate(8px,10px) rotate(5deg)}.grv-pk img:nth-child(2){transform:translate(4px,5px) rotate(-3deg)}.grv-pk img:nth-child(3){transform:rotate(-1deg)}
.grv-pk b{position:absolute;z-index:2;top:-12px;inset-inline-end:-12px;min-width:38px;height:38px;padding:0 6px;border-radius:19px;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--gold2),var(--gold));color:#1b1406;font:600 1.05rem/1 var(--display);box-shadow:0 0 0 3px #0a1636,0 8px 18px #000a}
.grv-pk.is-wait b{opacity:0}
.grv-shelf-list.is-loading .grv-pk{opacity:.55}
.grv-pk-n{font:500 .85rem/1 var(--mono);letter-spacing:.12em;color:var(--muted)}
.grv-shelf-msg{font:600 clamp(1.02rem,1.6vw,1.15rem)/1.4 var(--display);color:var(--sand);margin:.2em 0 .8em}
.grv-shelf-resume{margin:18px 0 0}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .grv-pk{transition:transform .35s cubic-bezier(.2,.7,.2,1)}.grv-pk-hit:hover .grv-pk{transform:translateY(-8px) rotate(-1.5deg)}
}
@media (prefers-reduced-motion:no-preference){
  .grv-shelf-list:not(.is-loading) .grv-pk{animation:grv-idle 4.5s ease-in-out infinite}.grv-pack:nth-child(2) .grv-pk{animation-delay:-1.5s}.grv-pack:nth-child(3) .grv-pk{animation-delay:-3s}
  @keyframes grv-idle{50%{transform:translateY(-4px)}}
  .grv-shelf-list.is-loading .grv-pk{animation:grv-wait 1.2s ease-in-out infinite}@keyframes grv-wait{50%{opacity:.8}}
}

/* a big pack's pile: the depth stops growing after four cards (no smear) */
.grv.grv-many .grv-stage.is-stacked .grv-slot{transform:translate(calc(var(--sx,0px) + var(--dir) * min(var(--i), 4) * 2px),calc(var(--sy,0px) + min(var(--i), 4) * 3px)) rotate(calc(var(--dir) * var(--rot,0deg)))}
.grv.grv-many .grv-stage.is-stacked .grv-slot:nth-child(n+6){opacity:0}
.grv.grv-many .grv-slot{transition-property:transform,opacity}
.grv.grv-many .grv-stage.is-stacked{max-height:calc(var(--cw) * 2.4 + 130px)}
.grv.grv-many .grv-stage::before{top:calc(64px + var(--cw) * 1.65)}
