/* The grumble (js/grumble.js): HUD pile, fly-in photos, the deck of Polaroids, and the title/results links.
   Same world as the rest of the game: cream paper, burgundy outlines, CuppaPug pinks, Fredoka with Pacifico for handwriting. */

/* ---- HUD pile: up to three round photos, newest on top, and the count ---- */
#grumble{pointer-events:auto;display:flex;align-items:center;gap:5px;padding:0 9px 0 4px;height:clamp(30px,6.8vmin,40px);cursor:pointer;
  font-family:inherit;touch-action:manipulation;transform-origin:left center}
#grumble .gr-stack{display:flex;flex-direction:row-reverse;align-items:center}
#grumble .gr-av{width:clamp(22px,5.2vmin,30px);height:clamp(22px,5.2vmin,30px);border-radius:50%;object-fit:cover;background:#f6dccd;
  box-shadow:0 0 0 2px #fff,0 0 0 3.5px rgba(124,23,62,.35);margin-left:calc(clamp(22px,5.2vmin,30px) * -.42)}
#grumble .gr-av:last-child{margin-left:0}
#grumble b{margin-left:2px;font-size:1.15em}
#grumble:active{transform:translateY(2px)}
#grumble:focus-visible{outline:3px solid #ffe38a;outline-offset:2px}
#grumble.gr-bump{animation:grBump .5s cubic-bezier(.3,1.6,.5,1)}
#grumble.gr-nudge{animation:grNudge 1.6s ease-in-out}
@keyframes grNudge{0%,100%{transform:scale(1);box-shadow:0 3px 0 var(--pink),0 4px 0 rgba(0,0,0,.25)}
  30%{transform:scale(1.08);box-shadow:0 3px 0 var(--pink),0 4px 0 rgba(0,0,0,.25),0 0 0 4px rgba(255,95,162,.35),0 0 18px 6px rgba(255,95,162,.55)}
  60%{transform:scale(.98)}}
@keyframes grBump{0%{transform:scale(1)}30%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (max-aspect-ratio:1/1){
  /* portrait phones: the pile sits below the Puguccino ring's spot, clear of the centred rescue timer */
  #grumble{position:fixed;left:calc(var(--sal) + 10px);top:calc(var(--sat) + 8px + 34px + 40px + 44px)}
}
.gr-fly{position:fixed;z-index:9500;object-fit:cover;pointer-events:none;background:#f6dccd;box-shadow:0 8px 18px rgba(60,10,30,.35),0 0 0 3px #fff;will-change:transform}

/* ---- the deck ---- */
#deck{position:fixed;inset:0;z-index:9200;display:flex;flex-direction:column;align-items:center;
  padding:calc(var(--sat) + 10px) calc(var(--sar) + 14px) calc(var(--sab) + 12px) calc(var(--sal) + 14px);
  background:radial-gradient(120% 80% at 50% 0%,rgba(255,95,162,.38),transparent 60%),rgba(43,14,30,.86);
  font-family:'Fredoka',system-ui,sans-serif;color:var(--cream);touch-action:manipulation;user-select:none;-webkit-user-select:none;overflow:hidden;
  --cw:min(84vw,360px,calc((100dvh - 330px) * .74))}
@media (hover:hover) and (pointer:fine){#deck{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}}
.dk-head{width:min(100%,560px);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dk-titles h2{margin:0;font:400 clamp(26px,6vmin,36px)/1.15 Pacifico,cursive;color:#fff;text-shadow:2px 2px 0 var(--burg)}
.dk-sub{margin:6px 0 0;font-size:clamp(13px,3.2vmin,15px);font-weight:600;color:#ffd0e3;line-height:1.3}
.dk-close{flex:0 0 auto;width:44px;height:44px;border-radius:12px;border:3px solid var(--burg);background:var(--cream);color:var(--burg);display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:0 3px 0 var(--pink)}
.dk-close svg{width:22px;height:22px}
.dk-close:active{transform:translateY(2px);box-shadow:0 1px 0 var(--pink)}
.dk-tabs{position:relative;display:flex;gap:6px;margin:10px 0 4px;background:rgba(255,255,255,.12);border-radius:99px;padding:4px}
.dk-tab{position:relative;z-index:1;transition:color .25s ease;font:600 14px/1 'Fredoka',sans-serif;color:#ffe2ee;background:none;border:0;border-radius:99px;padding:8px 14px;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:36px}
.dk-tab b{font-weight:700;font-size:12px;background:rgba(255,255,255,.18);border-radius:99px;padding:2px 7px}
.dk-tab[aria-selected="true"]{color:var(--burg)}
.dk-tabs .tab-ind{background:var(--cream);box-shadow:0 2px 0 var(--pink)}
.dk-tab[aria-selected="true"] b{background:var(--pink);color:#fff}
.dk-stage{position:relative;flex:1 1 auto;min-height:0;width:min(100%,560px);display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.dk-card{position:absolute;width:var(--cw);max-height:calc(100% - 22px);margin-bottom:22px;background:#fffdf8;color:var(--burg);border-radius:4px;padding:calc(var(--cw) * .05) calc(var(--cw) * .05) 12px;
  box-shadow:0 18px 30px -10px rgba(20,4,12,.6),0 2px 4px rgba(20,4,12,.3);display:flex;flex-direction:column;align-items:stretch;overflow:hidden;
  transform-origin:50% 80%;backface-visibility:hidden;cursor:grab}
.dk-card.flick{transition:transform .23s cubic-bezier(.25,.6,.35,1),opacity .2s ease}
.dk-card.settle{transition:transform .46s cubic-bezier(.2,.9,.25,1.08),opacity .3s ease}
.dk-card:active{cursor:grabbing}
/* on short screens the photo gives way, so the words below always end on a whole line */
.dk-card>*{flex-shrink:0}
.dk-card .ph{position:relative;width:100%;aspect-ratio:1;flex:0 1 auto;min-height:40%;overflow:hidden;background:linear-gradient(135deg,#f6dccd,#f3c6d8)}
.dk-card .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;pointer-events:none}
.dk-card .ph::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(150deg,rgba(255,214,150,.3) 0%,rgba(255,214,150,0) 40%),linear-gradient(0deg,rgba(212,19,111,.2) 0%,rgba(212,19,111,0) 36%),
    radial-gradient(125% 100% at 50% 42%,transparent 62%,rgba(70,15,40,.26) 100%);box-shadow:inset 0 0 0 1px rgba(60,10,30,.08)}
.dk-cap{display:flex;align-items:center;justify-content:center;gap:.25em;margin:8px 0 4px;font:400 clamp(24px,calc(var(--cw) * .1),34px)/1.25 Pacifico,cursive;color:var(--burg);white-space:nowrap}
.dk-cap .nm{overflow:hidden;text-overflow:ellipsis}
.gr-sex{width:.8em;height:.8em;flex:0 0 auto}
.gr-sex.f{color:#ff4f9a}.gr-sex.m{color:#2f9fc6}
.dk-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:0 0 7px}
.dk-chips span{font-size:12.5px;font-weight:600;line-height:1;padding:5px 9px;border-radius:99px;background:#ffeef5;color:#8b1646}
.dk-chips .st{background:#e4f7ec;color:#17784a}
.dk-chips .st.integrating{background:#fff2d6;color:#9a5b00}
.dk-chips .st.just-arrived{background:#e3f0ff;color:#2559a8}
.dk-chips .st.gone{background:#eee;color:#666}
.dk-about{margin:0 2px;font-size:14px;font-weight:500;line-height:1.38;color:#5b2239;text-align:center;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.dk-likes{margin:6px 2px 0;font-size:12.5px;font-weight:600;color:#9a4a6a;text-align:center}
@media (max-height:760px){.dk-about{-webkit-line-clamp:3}.dk-likes{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
.dk-note .dk-about{-webkit-line-clamp:6}
.dk-note .dk-note-art{display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#ffd6e7,#ffb3d0 70%)}
.dk-note .dk-note-art .gr-paw{width:42%;height:42%;fill:#fff;filter:drop-shadow(0 3px 0 rgba(124,23,62,.25))}
.dk-bar{height:10px;border-radius:99px;background:#ffe1ee;margin:2px 10px 8px;overflow:hidden}
.dk-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff8cc0,#ff2f8f)}
.dk-arrow{position:absolute;top:50%;z-index:300;width:44px;height:44px;margin-top:-22px;border-radius:50%;border:3px solid var(--burg);background:var(--cream);color:var(--burg);
  display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:0 3px 0 var(--pink)}
.dk-arrow svg{width:22px;height:22px}
.dk-arrow.prev{left:0}.dk-arrow.next{right:0}
.dk-arrow:disabled{opacity:0;pointer-events:none}
@media (pointer:coarse),(max-width:520px){.dk-arrow{display:none}}
.dk-count{min-height:18px;margin:6px 0 4px;font-size:13px;font-weight:600;color:#ffd0e3}
.dk-actions{width:min(100%,380px);display:flex;flex-direction:column;gap:8px}
.dk-book{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;color:#fff;border-radius:16px;padding:9px 16px;min-height:54px;
  background:linear-gradient(90deg,#e8458b,#9e1849);border:3px solid var(--burg);box-shadow:0 5px 0 var(--burg),0 10px 22px rgba(232,69,139,.35);transition:transform .15s ease}
.dk-book svg{width:26px;height:26px;flex:0 0 auto}
.dk-book-txt{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.dk-book b{font-size:19px;font-weight:700}
.dk-book small{font-size:13px;font-weight:500;opacity:.88}
.dk-book:active{transform:translateY(4px);box-shadow:0 1px 0 var(--burg)}
.dk-book:focus-visible,.dk-sec:focus-visible,.dk-tab:focus-visible,.dk-close:focus-visible,.dk-arrow:focus-visible{outline:3px solid #ffe38a;outline-offset:2px}
.dk-row{display:flex;gap:8px}
.dk-sec{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:14px;border:3px solid var(--burg);background:var(--cream);color:var(--burg);
  font:600 15px/1 'Fredoka',sans-serif;text-decoration:none;cursor:pointer;box-shadow:0 3px 0 var(--pink);padding:0 10px;white-space:nowrap;overflow:hidden}
.dk-sec span{overflow:hidden;text-overflow:ellipsis}
.dk-sec svg{width:20px;height:20px;flex:0 0 auto;color:var(--pink)}
.dk-sec:active{transform:translateY(2px);box-shadow:0 1px 0 var(--pink)}
@media (hover:hover){.dk-book:hover{transform:translateY(-2px)}.dk-sec:hover{background:#fff}}
/* short landscape phones: card on the left, words and buttons on the right */
@media (max-height:500px) and (orientation:landscape){
  #deck{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr auto;column-gap:18px;align-items:center;justify-items:center;
    --cw:min(42vw,calc((100dvh - 40px) * .6))}
  .dk-head{grid-column:2;grid-row:1}.dk-tabs{grid-column:2;grid-row:2;margin:6px 0}
  .dk-stage{grid-column:1;grid-row:1/5;height:100%;width:100%}
  .dk-count{grid-column:2;grid-row:3;align-self:end}.dk-actions{grid-column:2;grid-row:4}
  .dk-about{-webkit-line-clamp:2}
}
@media (prefers-reduced-motion:reduce){.dk-card.settle{transition:opacity .2s}#grumble.gr-bump,#grumble.gr-nudge{animation:none}}

/* ---- title screen link and results strip ---- */
.gr-link{display:inline-flex;align-items:center;gap:7px;margin:10px auto 0;font:600 15px/1 'Fredoka',sans-serif;color:var(--burg);background:#fff;border:3px solid var(--burg);
  border-radius:99px;padding:7px 14px 7px 10px;cursor:pointer;box-shadow:0 3px 0 var(--pink);touch-action:manipulation}
.gr-link .gr-paw{width:20px;height:20px;fill:var(--pink)}
.gr-link:active{transform:translateY(2px);box-shadow:0 1px 0 var(--pink)}
#title .card .gr-link{display:flex;width:max-content}
#title .card .gr-link.hidden{display:none}
.res-grumble{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:2px 0 4px;padding:6px 10px;border-radius:14px;border:3px solid var(--burg);
  background:#fff;color:var(--burg);font:600 15px/1.1 'Fredoka',sans-serif;cursor:pointer;touch-action:manipulation}
.res-grumble .rg-row{flex:0 0 auto;display:flex;flex-direction:row-reverse;justify-content:flex-end}   /* never squeezed: the words wrap instead */
.res-grumble .gr-av{width:32px;height:32px;border-radius:50%;object-fit:cover;background:#f6dccd;box-shadow:0 0 0 2px #fff,0 0 0 3.5px rgba(124,23,62,.3);margin-left:-11px}
.res-grumble .gr-av:last-of-type{margin-left:0}   /* last photo, even with the +N after it */
.res-grumble .rg-more{order:-1;margin-left:4px;font-size:13px;color:var(--pink);align-self:center}
.res-grumble .rg-txt{text-decoration:underline;text-decoration-color:var(--pinkL);text-underline-offset:3px}
/* short landscape phones: with the strip in, the four stats share one row so the booking button stays on screen */
@media (max-height:420px){#results .card:has(.res-grumble:not(.hidden)) .stats{grid-template-columns:1.35fr 1fr 1fr 1fr}
  #results .card:has(.res-grumble:not(.hidden)) .stats .total{grid-column:auto}#results .card:has(.res-grumble:not(.hidden)) .stats .total b{font-size:20px}}
@media (max-height:420px){.res-grumble{padding:3px 8px;margin:0 0 2px}.res-grumble .gr-av{width:26px;height:26px}.gr-link{margin-top:3px;padding:3px 11px 3px 7px;font-size:13.5px;gap:5px}.gr-link .gr-paw{width:16px;height:16px}}   /* the title card still fits on a landscape iPhone SE */

/* ---- free cappuccino: progress line before, celebration card after (js/grumble.js renderReward) ---- */
.collection-reward{border-radius:14px;color:#7c173e;font:400 13px/1.35 'Fredoka',system-ui,sans-serif;text-align:center}
.collection-reward.is-progress{display:flex;flex-direction:column;align-items:center;gap:4px;margin:4px 0 2px;padding:0}
.cr-progress{font-weight:600;font-size:13.5px}
.cr-bar{display:block;width:min(220px,80%);height:6px;border-radius:99px;background:#f3d5c2;overflow:hidden}
.cr-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff9cc7,#ff5fa2)}
.collection-reward.is-unlocked{position:relative;margin:8px 0 6px;padding:12px 12px 10px;background:#fff;border:3px solid #7c173e;box-shadow:0 0 0 3px #ffe38a,0 4px 0 3px #7c173e;
  animation:crIn .6s cubic-bezier(.2,1.4,.4,1) both}
@keyframes crIn{from{transform:scale(.9) rotate(-1.5deg);opacity:0}to{transform:none;opacity:1}}
.cr-head{display:flex;align-items:center;justify-content:center;gap:10px;text-align:left}
.cr-cup{flex:0 0 auto;width:44px;height:44px;color:#7c173e;animation:crSteam 2.4s ease-in-out infinite}
@keyframes crSteam{50%{transform:translateY(-2px) rotate(-3deg)}}
.cr-titles{display:flex;flex-direction:column}
.cr-eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#d4136f}
.cr-title{font-size:19px;line-height:1.1;color:#7c173e}
.cr-sub{margin:6px 0 0;font-size:13.5px}
.cr-code-row{display:flex;align-items:stretch;justify-content:center;gap:8px;margin:10px 0 0}
.cr-code{flex:1 1 auto;min-width:0;max-width:240px;display:flex;flex-direction:column;justify-content:center;padding:4px 10px;border:2px dashed #7c173e;border-radius:10px;background:#fff3df}
.cr-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;opacity:.8}
.cr-code strong{font-size:clamp(15px,4.6vw,20px);letter-spacing:.05em;line-height:1.2;white-space:nowrap;user-select:all;-webkit-user-select:all}
.cr-valid{margin:6px 0 0;font-weight:600;font-size:13.5px}
.cr-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:8px 0 0}
.cr-how{margin:6px 0 0;font-size:12.5px}
.cr-how a{color:inherit;font-weight:700;display:inline-block;padding:6px 2px;text-underline-offset:2px}
.cr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.reward-copy,.reward-book,.reward-ghost{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;box-sizing:border-box;border-radius:12px;padding:0 14px;
  font:700 14.5px/1 'Fredoka',system-ui,sans-serif;text-decoration:none;cursor:pointer;touch-action:manipulation}
.reward-copy{flex:0 0 auto;min-width:84px;padding:0 10px;border:3px solid #7c173e;background:#7c173e;color:#fff3df}
.reward-book{border:3px solid #7c173e;background:#ff5fa2;color:#fff;box-shadow:0 3px 0 #7c173e}
.reward-book svg{width:18px;height:18px}
.reward-ghost{border:3px solid #7c173e;background:#fff;color:#7c173e}
.reward-copy:focus-visible,.reward-book:focus-visible,.reward-ghost:focus-visible{outline:3px solid #2a1b3d;outline-offset:2px}
.reward-book:active,.reward-ghost:active,.reward-copy:active{transform:translateY(2px)}
#deck .collection-reward.is-unlocked{margin:0 0 2px;padding:8px 10px}
#deck .collection-reward .cr-cup{width:34px;height:34px}#deck .cr-title{font-size:16px}#deck .cr-code-row{margin-top:6px}#deck .cr-how{margin:2px 0 0}
#deck .collection-reward.is-progress{margin:0}
@media (prefers-reduced-motion:reduce){.collection-reward.is-unlocked,.cr-cup{animation:none}}
@media (max-height:500px) and (orientation:landscape){.collection-reward.is-unlocked{padding:8px 10px}.cr-sub{display:none}.cr-cup{width:34px;height:34px}}

/* HUD pile before the first rescue of a round: a paw stands in for the photos; gold once every pug is rescued */
#grumble .gr-stack .gr-paw{width:clamp(20px,4.8vmin,26px);height:clamp(20px,4.8vmin,26px);fill:var(--pink)}
#grumble.gr-done{box-shadow:0 0 0 3px #ffd23f,0 3px 0 var(--pink),0 4px 0 rgba(0,0,0,.25)}

/* ---- "Every pug rescued!" coffee popup (Grumble.coffee) ---- */
.cp{position:fixed;inset:0;z-index:9300;display:flex;align-items:center;justify-content:center;overflow:hidden;
  padding:calc(var(--sat,0px) + 14px) calc(var(--sar,0px) + 14px) calc(var(--sab,0px) + 14px) calc(var(--sal,0px) + 14px);
  background:radial-gradient(90% 60% at 50% 40%,rgba(255,95,162,.45),transparent 70%),rgba(43,14,30,.82);
  font-family:'Fredoka',system-ui,sans-serif;touch-action:manipulation}
.cp-card{position:relative;width:min(100%,400px);max-height:100%;overflow:auto;box-sizing:border-box;padding:18px 18px 12px;text-align:center;color:#7c173e;
  background:#fffdf8;border:3px solid #7c173e;border-radius:20px;box-shadow:0 0 0 4px #ffd23f,0 6px 0 4px #7c173e,0 24px 50px rgba(20,4,12,.55);outline:none}
.cp-cup{display:flex;justify-content:center}
.cp-cup .cr-cup{width:64px;height:64px}
.cp-eyebrow{margin:2px 0 0;font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#d4136f}
.cp-title{margin:2px 0 4px;font:400 clamp(24px,7vw,30px)/1.2 Pacifico,'Fredoka',cursive;color:#7c173e}
.cp-sub{margin:0 0 4px;font-size:14.5px;line-height:1.35}
.cp-code strong{font-size:clamp(20px,6.4vw,26px)}
.cp .reward-copy{font:700 15px/1 'Fredoka',sans-serif}
.cp-acts{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:10px 0 0}
.cp-acts .reward-book,.cp-acts .reward-ghost{font:700 16px/1 'Fredoka',sans-serif;text-decoration:none;cursor:pointer}
.cp-acts .reward-ghost svg{width:18px;height:18px;color:#ff5fa2}
.cp-x{position:absolute;top:8px;right:8px;width:44px;height:44px;border-radius:50%;border:3px solid #7c173e;background:#fff3df;color:#7c173e;display:grid;place-items:center;padding:0;cursor:pointer}
.cp-x svg{width:18px;height:18px}
.cp-x:focus-visible{outline:3px solid #2a1b3d;outline-offset:2px}
.cp-burst{position:absolute;left:50%;top:38%;width:0;height:0;pointer-events:none}
.cp-bit{position:absolute;left:-5px;top:-7px;width:10px;height:14px;border-radius:2px;opacity:0;animation:cpBurst 1.5s cubic-bezier(.15,.7,.3,1) var(--d) forwards}
@keyframes cpBurst{0%{opacity:1;transform:translate(0,0) rotate(0) scale(.6)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 90px)) rotate(var(--r)) scale(1)}}
@media (max-height:600px){.cp-card{padding:12px 14px 8px}.cp-cup .cr-cup{width:44px;height:44px}.cp-sub{display:none}.cp-acts{flex-direction:row;flex-wrap:wrap;justify-content:center}}
@media (prefers-reduced-motion:reduce){.cp-bit{display:none}.cp-cup .cr-cup{animation:none}}

/* ---- the pugdates gate on the code (js/grumble.js lockPanel): sealed ticket, one button, small print; then the code pops in ---- */
.cr-unlock{margin:8px 0 0;font-weight:700;font-size:15px;line-height:1.25;color:#d4136f}
.cr-lock{display:flex;flex-direction:column;align-items:center;gap:8px;margin:8px 0 0}
.cr-code.cr-sealed{position:relative;width:min(100%,240px);box-sizing:border-box;flex:0 0 auto;overflow:hidden;
  background:repeating-linear-gradient(-45deg,#fff3df 0 8px,#ffe9cc 8px 16px)}
.cr-sealed strong{color:transparent;text-shadow:0 0 9px rgba(124,23,62,.75);user-select:none;-webkit-user-select:none}
.cr-sealed .cr-lockic{position:absolute;right:8px;top:50%;width:22px;height:22px;margin-top:-11px;color:#7c173e}
.cr-join{width:min(100%,300px);font:700 16px/1.1 'Fredoka',system-ui,sans-serif;padding:0 16px}
.cr-join .cr-lockic{width:18px;height:18px;flex:0 0 auto}
.cr-join:disabled{opacity:.75;cursor:wait}
.cr-lock-status{margin:0;font-weight:600;font-size:13.5px;color:#b1123a}
.cr-lock-status:empty{display:none}
.cr-lock .cr-small{margin:0;font-size:12px;line-height:1.35;opacity:.9}
.cr-lock .cr-form{width:100%;margin:0}
.cr-code.cr-shine{position:relative;overflow:hidden}
.cr-code.cr-shine::after{content:"";position:absolute;inset:-20% auto -20% -60%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.95),transparent);transform:skewX(-18deg);animation:crShine 1s .35s ease-out both}
@keyframes crShine{from{left:-60%}to{left:120%}}
.cr-burst{z-index:2}
#deck .cr-unlock{margin:4px 0 0;font-size:14px}
#deck .cr-lock{gap:4px;margin:4px 0 0}
#deck .cr-join{min-height:42px}
.cp .cr-unlock{margin:6px 0 2px;font-size:16px}
@media (max-height:500px) and (orientation:landscape){.cr-lock{gap:5px}.cr-sealed{display:none}}
@media (prefers-reduced-motion:reduce){.cr-code.cr-shine::after{display:none}}
