/* =====================================================================================
   CAPE CLASH 1.0l NEXT LEVEL - B3 the PREMIUM daily gift looks (public/css/nl-premium.css)
   G2: the summary's receipt panel. E13: the 7-day gift strip (Chests row + G2 summary) and the GIFT tag
   on the HOME claim star. Every rule is gated by html.nl-<ID> (nl-premium-daily.js registers G2/E13);
   animations are transform/opacity only and stop under REDUCE MOTION / data-anim none.
   ===================================================================================== */

/* ---------- E13: the 7-day strip ---------- */
html.nl-E13 .nlPdStrip{margin:10px auto 2px;max-width:320px;text-align:center;}
html.nl-E13 .nlPdStrip.compact{margin:8px 0 0;max-width:none;}
html.nl-E13 .nlPdDays{display:flex;justify-content:center;gap:5px;}
html.nl-E13 .nlPdStrip.compact .nlPdDays{justify-content:flex-start;gap:4px;}
html.nl-E13 .nlPdDay{position:relative;display:flex;flex-direction:column;align-items:center;width:36px;}
html.nl-E13 .nlPdStrip.compact .nlPdDay{width:28px;}
html.nl-E13 .nlPdBox{position:relative;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  background:rgba(27,20,48,.72);box-shadow:inset 0 0 0 2px rgba(216,210,240,.18);}
html.nl-E13 .nlPdStrip.compact .nlPdBox{width:26px;height:26px;border-radius:7px;}
html.nl-E13 .nlPdBox svg{width:78%;height:78%;display:block;overflow:visible;}
/* not opened: a dim, wrapped box */
html.nl-E13 .nlPdBox .b{fill:#3a3163;}
html.nl-E13 .nlPdBox .l{fill:#4a4080;}
html.nl-E13 .nlPdBox .r,html.nl-E13 .nlPdBox .w{fill:#6d62a8;}
html.nl-E13 .nlPdBox .t{fill:none;stroke:transparent;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;}
/* opened: gold box, lid lifted, a green tick */
html.nl-E13 .nlPdDay.got .nlPdBox{background:linear-gradient(180deg,#3d2f12,#241a08);box-shadow:inset 0 0 0 2px rgba(255,210,63,.55);}
html.nl-E13 .nlPdDay.got .nlPdBox .b{fill:#e0a92c;}
html.nl-E13 .nlPdDay.got .nlPdBox .l{fill:#ffd23f;transform:translate(0,-3px) rotate(-9deg);transform-origin:6px 12px;}
html.nl-E13 .nlPdDay.got .nlPdBox .r{fill:#c0392b;}
html.nl-E13 .nlPdDay.got .nlPdBox .w{fill:#ff6b6b;transform:translate(0,-3px) rotate(-9deg);transform-origin:6px 12px;}
html.nl-E13 .nlPdDay.got .nlPdBox .t{stroke:#9be15d;filter:drop-shadow(0 1px 0 #1b1430);}
/* today: a gold ring; glowing while it waits, solid once opened */
html.nl-E13 .nlPdDay.today .nlPdBox{box-shadow:inset 0 0 0 2px #ffd23f,0 0 10px rgba(255,210,63,.55);}
html.nl-E13 .nlPdDay.today .nlPdBox::after{content:'';position:absolute;inset:-4px;border-radius:12px;border:2px solid rgba(255,210,63,.75);
  opacity:0;pointer-events:none;}
html[data-anim="full"].nl-E13 .nlPdDay.today:not(.got) .nlPdBox::after,
html[data-anim="some"].nl-E13 .nlPdDay.today:not(.got) .nlPdBox::after{animation:nlPdPulse 1.6s ease-out infinite;}
html[data-anim="full"].nl-E13 .nlPdDay.today:not(.got) .nlPdBox svg{animation:nlPdWiggle 2.4s ease-in-out infinite;}
@keyframes nlPdPulse{0%{opacity:.9;transform:scale(.92)}100%{opacity:0;transform:scale(1.22)}}
@keyframes nlPdWiggle{0%,72%,100%{transform:none}78%{transform:rotate(-8deg)}84%{transform:rotate(7deg)}90%{transform:rotate(-4deg)}}
/* the strip rises in, box by box, inside the summary */
html[data-anim="full"].nl-E13 .nlPdReceipt .nlPdDay{animation:nlPdIn .34s cubic-bezier(.2,1.5,.45,1) both;animation-delay:calc(var(--i,0) * 55ms + 260ms);}
html[data-anim="full"].nl-E13 .nlPdReceipt .nlPdDay.today.got .nlPdBox{animation:nlPdStamp .5s cubic-bezier(.2,1.7,.4,1) both;animation-delay:700ms;}
@keyframes nlPdIn{from{opacity:0;transform:translateY(10px) scale(.7)}to{opacity:1;transform:none}}
@keyframes nlPdStamp{0%{transform:scale(1.6) rotate(-10deg)}60%{transform:scale(.92)}100%{transform:none}}
html.nl-E13 .nlPdLbl{margin-top:3px;min-height:11px;font-family:Bangers,cursive;font-size:10px;letter-spacing:.6px;color:#ffd23f;line-height:1;}
html.nl-E13 .nlPdStrip.compact .nlPdLbl{font-size:9px;min-height:10px;}
html.nl-E13 .nlPdFoot{margin-top:6px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;align-items:center;}
html.nl-E13 .nlPdStrip.compact .nlPdFoot{justify-content:flex-start;margin-top:4px;}
html.nl-E13 .nlPdRun{display:inline-block;padding:2px 9px 1px;border-radius:999px;background:#2d6a2a;color:#e8ffd6;
  font-family:Bangers,cursive;font-size:14px;letter-spacing:1px;box-shadow:0 2px 0 #163c14;}
html.nl-E13 .nlPdStrip.compact .nlPdRun{font-size:12px;padding:1px 7px 0;}
html.nl-E13 .nlPdNext{font-family:Bangers,cursive;font-size:15px;letter-spacing:1px;color:#fff8e7;font-variant-numeric:tabular-nums;}

/* ---------- G2: the summary's receipt panel ---------- */
html.nl-E13 .nlPdReceipt{margin:10px 0 2px;padding:8px 6px 9px;border-radius:12px;background:rgba(14,10,30,.55);
  box-shadow:inset 0 0 0 2px rgba(255,210,63,.28);}

/* ---------- E13: the GIFT tag on the HOME claim star ---------- */
html.nl-E13 #chClaimDot.nlGiftReady{box-shadow:0 0 0 3px #b197fc,0 0 14px rgba(177,151,252,.75);}
html.nl-E13 #chClaimDot .nlGiftTag{position:absolute;left:50%;top:-13px;transform:translateX(-50%) rotate(-6deg);z-index:2;
  padding:1px 6px 0;border-radius:6px;background:linear-gradient(180deg,#c9b4ff,#8f6ff0);color:#1b1430;border:2px solid #1b1430;
  font-family:Bangers,cursive;font-size:11px;letter-spacing:1px;line-height:1.2;white-space:nowrap;pointer-events:none;
  box-shadow:0 2px 0 #1b1430;}
html[data-anim="full"].nl-E13 #chClaimDot .nlGiftTag{animation:nlGiftBob 1.8s ease-in-out infinite;}
@keyframes nlGiftBob{0%,100%{transform:translate(-50%,0) rotate(-6deg)}50%{transform:translate(-50%,-3px) rotate(-3deg)}}
/* the chest show's own REDUCE MOTION mode (.ccs.rm) keeps the receipt still too */
html.nl-E13 .ccs.rm .nlPdReceipt *,html.nl-E13 .ccs.rm .nlPdReceipt *::after{animation:none!important;}
@media (prefers-reduced-motion: reduce){
  html.nl-E13 .nlPdDay,html.nl-E13 .nlPdBox,html.nl-E13 .nlPdBox svg,html.nl-E13 .nlPdBox::after,html.nl-E13 #chClaimDot .nlGiftTag{animation:none!important;}
}
