/* ==========================================================================================================
   THE REWARD CLAIM SCREEN (web/claim.js; owner 2026-11-09: "copy the fortnite item claim screen system", replacing NOTES 398's timed reveal and its blurred picture)
   The flow of a claim screen, drawn in Poddle's own style (DESIGN-MASTER 2026-11-07: one ink outline, one hard drop, the slab's slant, contents upright; no tracked caps):
   - the backdrop in the rarity's colour (web/locker.css --lk-rarity-*): lit behind the item, beams rising from a floor glow, dark at the edges;
   - the live 3D item on the left (the canvas), the rarity chip and the name huge on the right;
   - the rewards of this visit as slanted tiles bottom left, Equip (the secondary plate) and Claim (cyan, the one action) bottom right, Claim all top right.
   Motion is transform and opacity only. prefers-reduced-motion: nothing slides, flashes or turns.
   ========================================================================================================== */
:root{--cl-z:70;--cl-ink:var(--cp-ink);--cl-night:var(--cp-ink);--cl-white:#fff;--cl-neon:var(--cp-main);--cl-sec:var(--vw-sec-face);--cl-skew:var(--cp-skew);--cl-r:.55rem;--cl-ol:var(--cp-ol);--cl-drop-x:var(--cp-drop-sm-x);--cl-drop-y:var(--cp-drop-sm-y);
  /* (Cyan pop: the --cl-* names stay; ink, cyan for the one action, the Locker's secondary plate. --cl-shade is the rarity backdrop's hue shift, art, unchanged; --cl-name-k grew for Days One's wider letters) */
  --cl-shade:#4b1fa8;--cl-ground:var(--cp-main);--cl-spring:cubic-bezier(.2,1.5,.4,1);--cl-snap:cubic-bezier(.2,.9,.25,1);
  --cl-item-x:33vw;--cl-item-y:49%;--cl-cv-w:136vw;--cl-cv-top:-1vh;--cl-info-l:58vw;--cl-name-max:8.6rem;--cl-name-k:.68;--cl-chip-fs:1.45rem;
  --cl-tile-w:5.6rem;--cl-pad:3rem;--cl-claim-w:15rem;--cl-btn-h:4.6rem;--cl-btn-fs:1.7rem}

.cl{--c:var(--lk-rarity-common);position:fixed;inset:0;z-index:var(--cl-z);overflow:hidden;color:var(--cl-white);background:var(--cl-ground);user-select:none;-webkit-user-select:none}
.cl[hidden]{display:none}
.cl[data-rarity="rare"]{--c:var(--lk-rarity-rare)} .cl[data-rarity="epic"]{--c:var(--lk-rarity-epic)} .cl[data-rarity="legendary"]{--c:var(--lk-rarity-legendary)} .cl[data-rarity="mythic"]{--c:var(--lk-rarity-mythic)} .cl[data-rarity="exclusive"]{--c:var(--lk-rarity-exclusive)}

/* ---- the backdrop: all in the rarity's colour ---- */
.cl-bg{position:absolute;inset:0;pointer-events:none}
.cl-bg > i{position:absolute;display:block}
.cl-glow{inset:0;transition:background .4s;      /* owner 2026-11-12: the ground is the brand's own cyan for every item, the edges hue-shifted toward the deep blue; the rarity is only a soft glow behind the item */
  background:radial-gradient(34% 46% at var(--cl-item-x) var(--cl-item-y), color-mix(in oklch, var(--c) 75%, #fff) 0, color-mix(in oklch, var(--c) 55%, transparent) 42%, transparent 100%),
    radial-gradient(130% 120% at var(--cl-item-x) var(--cl-item-y), var(--cl-ground) 40%, color-mix(in oklch, var(--cl-ground) 72%, var(--cp-deep)) 100%)}

/* ---- the item: the live 3D stage ---- */
.cl-cv{position:absolute;left:calc(var(--cl-item-x) - var(--cl-cv-w) / 2);top:var(--cl-cv-top);width:var(--cl-cv-w);height:100%;cursor:grab;touch-action:none}
.cl-cv:active{cursor:grabbing}
.cl-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}

/* ---- the name ---- */
.cl-info{container-type:inline-size;position:absolute;left:var(--cl-info-l);right:var(--cl-pad);top:50%;transform:translateY(-58%);display:grid;justify-items:start;gap:1rem;pointer-events:none}
.cl-rarity{position:relative;padding:.45rem 1.3rem .5rem;font:400 var(--cl-chip-fs)/1.1 var(--font-display);color:var(--cl-white);isolation:isolate;white-space:nowrap}
.cl-rarity::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--cl-r);background:var(--c);transform:skewX(var(--cl-skew));
  box-shadow:inset 0 0 0 var(--cl-ol) var(--cl-ink), var(--cl-drop-x) var(--cl-drop-y) 0 var(--cl-ink)}
.cl-name{font:400 min(var(--cl-name-max), calc(100cqi / (var(--n, 6) * var(--cl-name-k))))/.95 var(--font-display);letter-spacing:-.01em;color:var(--cl-white);max-width:100%;white-space:nowrap;      /* one line: sized by its length (claim.js sets --n) */
 
  text-shadow:.06em .07em 0 var(--cl-ink)}

.cl-how{font:400 clamp(1.1rem,1.5vw,1.5rem)/1.25 var(--font-display);color:var(--cl-white);text-shadow:.05em .07em 0 var(--cl-ink)}      /* how it was earned (rewardInfo.how) */
.cl.is-land .cl-how{animation:cl-chip 420ms 180ms var(--cl-spring) both}
.cl[data-note] .cl-how{max-width:min(36rem,100%);white-space:pre-line;overflow-wrap:anywhere}      /* an operator's gift (docs/ADMIN.md): its note, up to 140 characters, wraps under the name */

/* ---- a gift's coins (NOTES 700, claim.js): three coins where the 3D item stands, the stage hidden under them; they bob gently ---- */
.cl-coins{position:absolute;left:var(--cl-item-x);top:var(--cl-item-y);width:var(--cl-coin-w,min(26rem,44vh));aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;display:none}
.cl[data-kind="coins"] .cl-coins{display:block} .cl[data-kind="coins"] .cl-cv{visibility:hidden}
.cl-coin{position:absolute;overflow:visible}
.cl-coin-0{width:100%;height:100%;left:0;top:0;z-index:2;animation:cl-bob 2.6s ease-in-out infinite}
.cl-coin-1{width:46%;height:46%;left:-24%;top:52%;z-index:1;transform:rotate(-18deg);animation:cl-bob 2.9s -.8s ease-in-out infinite}
.cl-coin-2{width:38%;height:38%;left:86%;top:-6%;z-index:1;transform:rotate(16deg);animation:cl-bob 3.2s -1.6s ease-in-out infinite}
.cl[data-kind="coins"].is-land .cl-coin-0{animation:cl-pop 640ms var(--cl-spring) both, cl-bob 2.6s 640ms ease-in-out infinite}
@keyframes cl-bob{0%,100%{translate:0 0}50%{translate:0 -4%}}
@media (max-width:980px){ .cl-coins{--cl-coin-w:min(17rem,58vw)} }
@media (prefers-reduced-motion: reduce){ .cl-coin,.cl[data-kind="coins"].is-land .cl-coin-0{animation:none} }

/* ---- the queue: one slanted tile per reward ---- */
.cl-queue{position:absolute;left:var(--cl-pad);bottom:var(--cl-pad);display:flex;gap:1rem;margin:0;padding:0;list-style:none}
/* (NOTES 703) a long visit (every reward replayed with the gift: 20 and more) scrolls sideways in the room left of Equip and Claim instead of running under them;
   claim.js keeps the current tile in view. The padding holds the tiles' drop and the selected ring inside the scroll box */
.cl-queue{right:calc(var(--cl-pad) + var(--cl-claim-w) + 13rem);bottom:calc(var(--cl-pad) - .9rem);padding:.6rem .9rem .9rem .3rem;margin-left:-.3rem;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior:contain;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),transparent)}
.cl-queue::-webkit-scrollbar{display:none} .cl-queue > li{flex:none}
.cl-queue[hidden]{display:none}
.cl-queue .cl-tile{width:var(--cl-tile-w)} .cl-queue .lk-coin-tile:is([aria-current="true"],:hover,:focus-visible){scale:1.1;outline:0}      /* the gift's bare coin (NOTES 705): the one shown is a size up, as a framed tile gets its ring */      /* the Locker's tile (web/locker.js rewardTile, locker.css .lk-item: face, rarity frame, drop, slant, the neon ring when selected): only sized here */
:is(.cl-tile.is-got .lk-item-face,.cl-tile.lk-coin-tile.is-got)::after{content:"";position:absolute;right:.15rem;top:.15rem;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--cl-neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;box-shadow:0 0 0 .16rem var(--cp-deep)}      /* a cyan dot: the white tick, the deep ring */

/* ---- the actions ---- */
.cl-acts{position:absolute;right:var(--cl-pad);bottom:var(--cl-pad);display:flex;align-items:flex-end;gap:1.3rem}
.cl-acts .btn{height:var(--cl-btn-h);min-width:0;padding:0 2rem;font-size:var(--cl-btn-fs);margin:0}
.cl-equip{--bf:var(--cl-sec);color:var(--cp-text)}      /* FULL SWEEP: the secondary is a white block with ink words */
/* Claim: the deep blue face, ink outline (owner 2026-11-12: cyan on the cyan ground had no contrast) */
.cl-equip.is-worn{--bf:var(--vw-off-face);--bo:var(--cp-off-2);color:var(--cp-deep);cursor:default}
.cl-claim{--bf:var(--cp-deep);--bo:var(--cl-ink);--slab-c:rgba(var(--cp-deep-rgb),0);color:#fff;width:var(--cl-claim-w);height:calc(var(--cl-btn-h) * 1.18) !important;font-size:calc(var(--cl-btn-fs) * 1.25) !important}
.cl-all{position:absolute;right:var(--cl-pad);top:2rem;margin:0;--bf:var(--cl-white);color:var(--cl-ink)}
.cl-all[hidden]{display:none}

/* ---- motion: the screen comes in, each item lands, the screen goes to the Inbox button ---- */
.cl.is-in{animation:cl-in 260ms var(--cl-snap) both}
.cl.is-land .cl-flash{animation:cl-flash 520ms ease-out both}
.cl.is-land .cl-name{animation:cl-name 560ms 90ms var(--cl-spring) both}
.cl.is-land .cl-rarity{animation:cl-chip 420ms var(--cl-spring) both}
.cl.is-out{transition:opacity 340ms ease, transform 340ms cubic-bezier(.5,0,.8,.4);opacity:0;transform:scale(.9)}
@keyframes cl-in{from{opacity:0}to{opacity:1}}
/* (NOTES 539, owner 2026-11-15: buying -> claim -> Claim "doesn't feel very fluid") from the shop: the screen is a circle growing out of the Buy button (claim.js sets --cl-ox, --cl-oy
   and --cl-or, the radius to the farthest corner) instead of fading over the pop-up; the kid springs up inside it; Claim closes the circle back into the button, the kid and the name
   sinking with it. Durations: claim.js WIPE_IN_MS / WIPE_OUT_MS. */
.cl.is-pre{clip-path:circle(0px at var(--cl-ox) var(--cl-oy))}
.cl.is-wipe{animation:cl-wipe-in 480ms cubic-bezier(.2,.85,.25,1) both}
.cl.is-wipe .cl-cv{transform-origin:50% var(--cl-item-y);animation:cl-pop 640ms 120ms var(--cl-spring) both}
.cl.is-unwipe{animation:cl-wipe-out 360ms cubic-bezier(.55,0,.75,.25) both}
.cl.is-unwipe .cl-cv{transform-origin:50% var(--cl-item-y);animation:cl-sink 360ms cubic-bezier(.55,0,.75,.25) both}
.cl.is-unwipe .cl-info,.cl.is-unwipe .cl-acts{animation:cl-sink 300ms cubic-bezier(.55,0,.75,.25) both}
@keyframes cl-wipe-in{from{clip-path:circle(0px at var(--cl-ox) var(--cl-oy))}to{clip-path:circle(var(--cl-or) at var(--cl-ox) var(--cl-oy))}}
@keyframes cl-wipe-out{from{clip-path:circle(var(--cl-or) at var(--cl-ox) var(--cl-oy))}to{clip-path:circle(0px at var(--cl-ox) var(--cl-oy))}}
@keyframes cl-pop{0%{opacity:0;transform:scale(.55) translateY(6%)}45%{opacity:1}100%{opacity:1;transform:none}}
@keyframes cl-sink{from{opacity:1;transform:none}to{opacity:0;transform:scale(.82)}}
@keyframes cl-flash{0%{opacity:.85}100%{opacity:0}}
@keyframes cl-name{0%{opacity:0;transform:translateX(3.5rem) skewX(var(--cp-skew))}100%{opacity:1;transform:none}}
@keyframes cl-chip{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:none}}

@media (max-width:980px){ :root{--cl-item-x:50vw;--cl-item-y:36%;--cl-cv-w:100vw;--cl-cv-top:calc(var(--cl-item-y) - 35%);--cl-pad:1.4rem}      /* (NOTES 728) the 70% canvas centred on the glow (36%): -14vh put its middle at ~21%, the item high and its top cut */ .cl-cv{height:70%} .cl-info{left:var(--cl-pad);top:auto;bottom:calc(var(--cl-pad) + var(--cl-btn-h) * 1.18 + 1.6rem);transform:none;justify-items:center;right:var(--cl-pad)}
  .cl-name{text-align:center;justify-self:center} .cl-queue{display:none} .cl-acts{left:var(--cl-pad);justify-content:center} }
@media (prefers-reduced-motion: reduce){ .cl.is-in,.cl.is-land .cl-flash,.cl.is-land .cl-name,.cl.is-land .cl-rarity,.cl.is-wipe,.cl.is-wipe .cl-cv,.cl.is-unwipe,.cl.is-unwipe .cl-cv,.cl.is-unwipe .cl-info,.cl.is-unwipe .cl-acts{animation:none} .cl.is-out{transition:none} .cl.is-pre{clip-path:none} }

/* (NOTES 728) the selection's slab (ui.css: a neon plate slides in under the selected button) was cyan on the cyan ground: only its deep outline showed, a ghost box behind Claim
   after any key. Here it is white with the ink line, so the selected button reads as selected */
.cl .btn:is(.ae-sel,:focus-visible){--slab-c:var(--cl-white);--slab-o:var(--cl-ink)}
/* (NOTES 728) the queue's chosen tile wears the Locker's ring (locker.css --lk-cyan): cyan on the cyan ground, so no tile looked chosen. Here the ring is white */
.cl .cl-queue{--lk-cyan:var(--cl-white)}
