/* =====================================================================================
   1.0l NEXT LEVEL - the SEASON 1 loop (batch B9-season, plan items E42-E48; public/js/nl-season.js)
   E42  the EVENTS tab tag, the teaser card (countdown) and the event hub (inside #netCard)
   E43  the HOME season chip's READY bubble
   E44  the "+15" season point token
   E45  #nlSeasonOv, the Season 1 opening-night ceremony (and its winter mini)
   E47  the route of the day on the HOME door, the lobby ribbon and stars, NEW BEST! on the holiday result
   E48  DAILY QUESTS bar (purse, season meter, CLAIM ALL), live bars, the bonus chest, the result-row bars
   Rules: every rule sits under html.nl-<ID>. Motion is transform/opacity only, and lives under
   html[data-anim="full"] (or is cut by prefers-reduced-motion / html[data-anim="none"]).
   ===================================================================================== */

/* ------------------------------------------------------------------ shared: snow, flakes, postcards */
.nlSnow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.nlSnow i { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #ffffffaa;
  animation: nlSnowFall 8s linear infinite; will-change: transform; }
@keyframes nlSnowFall { from { transform: translate3d(0, -12px, 0); } to { transform: translate3d(var(--dx, 0), 360px, 0); } }
.nlFlake { display: inline-flex; color: #dff6ff; }
.nlFlake svg { width: 100%; height: 100%; display: block; }
.nlS1Card { position: relative; overflow: hidden; border-radius: 10px; border: 2px solid #1b1430; background: linear-gradient(#25507a, #6b8fb0);
  box-shadow: 0 3px 0 #1b1430, 0 8px 18px rgba(0, 0, 0, .35); }
.nlS1Card canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.nlS1CardPlain::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, #ffffff55, transparent 60%),
  linear-gradient(transparent 70%, #eef6ff 71%); }
.nlS1CardName { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px 2px; text-align: center;
  font: 400 12px/1.05 Bangers, Impact, system-ui, sans-serif; letter-spacing: .6px; color: #fff8e7;
  background: linear-gradient(transparent, #0b1c33e6 45%); text-shadow: 1px 1px 0 #1b1430; }

/* ------------------------------------------------------------------ E42: the EVENTS tab */
.ccBarTag { position: absolute; z-index: 2; left: 50%; top: -9px; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  padding: 1px 5px 0; border-radius: 20px; border: 1.5px solid #1b1430; font: 400 9.5px/1.2 Bangers, Impact, sans-serif; letter-spacing: .4px;
  color: #10233d; background: linear-gradient(180deg, #e9fbff, #9fdcf5); box-shadow: 0 1px 0 #1b1430; }
.ccBarTag[hidden] { display: none !important; }
html.nl-E42 .ccBarTab.nlEvLive .ccBarTag { color: #fff8e7; background: linear-gradient(180deg, #ff6b6b, #c8303c); }
html.nl-E42 .ccBarTab.nlEvTeaser .ccBarPlate, html.nl-E42 .ccBarTab.nlEvLive .ccBarPlate, html.nl-E42 .ccBarTab.nlEvWinter .ccBarPlate {
  box-shadow: 0 0 0 2px #bfeeff80, 0 0 12px 1px #8fd8ff66; }
html.nl-E42[data-anim="full"] .ccBarTab.nlEvTeaser .ccBarTag, html.nl-E42[data-anim="full"] .ccBarTab.nlEvLive .ccBarTag { animation: nlTagBob 2.4s ease-in-out infinite; }
@keyframes nlTagBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2px); } }

/* the teaser and the hub (inside #netCard) */
html.nl-E42 #netCard:has(> .nlEv) { padding: 0; overflow-x: hidden; background: #fff8e7; border-color: #1b1430; }
.nlEv { position: relative; text-align: left; color: #1b1430; font-family: Nunito, system-ui, sans-serif; }
.nlEvHead { position: relative; overflow: hidden; isolation: isolate; padding: 16px 14px 14px; text-align: center; color: #fff8e7;
  background: radial-gradient(ellipse at 50% 0%, #4c86c4 0%, transparent 70%), linear-gradient(170deg, #173e6b 0%, #0f2747 60%, #1d1440 100%);
  border-bottom: 3px solid #1b1430; }
.nlEvHead::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -10px; height: 22px; z-index: 0;
  background: radial-gradient(ellipse at 20% 0%, #fff 40%, transparent 41%) 0 0/60px 22px repeat-x, #eef7ff; border-top: 2px solid #ffffffcc;
  border-radius: 50% 50% 0 0 / 14px 14px 0 0; opacity: .95; }
.nlEvHead > * { position: relative; z-index: 1; }
.nlEvHead > .nlSnow { position: absolute; z-index: 0; }
.nlEvFlakeA, .nlEvFlakeB { position: absolute !important; width: 34px; height: 34px; opacity: .55; }
.nlEvFlakeA { left: 10px; top: 10px; transform: rotate(-12deg); } .nlEvFlakeB { right: 12px; top: 26px; width: 24px; height: 24px; transform: rotate(18deg); }
.nlEvKick { font: 900 10px/1 system-ui, sans-serif; letter-spacing: 1.8px; color: #bfeeff; }
.nlEvTitle { margin-top: 6px; font: 400 30px/1 Bangers, Impact, system-ui, sans-serif; letter-spacing: 1.4px; color: #fff8e7;
  text-shadow: 2px 2px 0 #c8303c, 4px 4px 0 #1b1430; }
.nlEvDate { display: inline-block; margin: 9px 0 8px; padding: 3px 10px 2px; border-radius: 20px; border: 2px solid #1b1430;
  font: 400 14px/1.1 Bangers, Impact, sans-serif; letter-spacing: .8px; color: #1b1430; background: #ffd23f; box-shadow: 0 2px 0 #1b1430; }
.nlEvCount { display: flex; justify-content: center; gap: 7px; padding: 14px 12px 4px; }
.nlEvCell { min-width: 58px; padding: 6px 4px 5px; border-radius: 10px; border: 2px solid #1b1430; background: #fff; text-align: center; box-shadow: 0 3px 0 #1b1430; }
.nlEvCell b { display: block; font: 400 28px/1 Bangers, Impact, sans-serif; letter-spacing: 1px; color: #c8303c; font-variant-numeric: tabular-nums; }
.nlEvCell small { display: block; margin-top: 2px; font: 900 9px/1 system-ui, sans-serif; letter-spacing: 1.2px; color: #4b4366; }
.nlEvCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px 12px 4px; }
.nlEvCards .nlS1Card { transform: rotate(calc((var(--i) - 1) * 2.5deg)); }
.nlEvCardsHub { padding-top: 14px; }
.nlEvLine { margin: 8px 16px 2px; text-align: center; font: 800 13px/1.35 Nunito, system-ui, sans-serif; color: #4b4366; }
.nlEvRows { list-style: none; margin: 0; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 7px; }
.nlEvRow { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 7px 7px 7px 8px;
  background: #fff; border: 2px solid #1b1430; border-radius: 12px; box-shadow: 0 2px 0 #1b1430; }
.nlEvRow.is-big { background: linear-gradient(100deg, #fff4f0, #fff); border-color: #c8303c; box-shadow: 0 2px 0 #c8303c; }
.nlEvRow.is-done { background: #eef7ea; box-shadow: none; border-color: #1b143066; }
.nlEvIco { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tone, #3fd0c9); border: 2px solid #1b1430; }
.nlEvIco .ci, .nlEvIco svg { width: 22px; height: 22px; display: block; }
.nlEvTxt { min-width: 0; }
.nlEvTxt b { display: block; font: 400 17px/1.05 Bangers, system-ui, sans-serif; letter-spacing: .7px; color: #1b1430; overflow-wrap: anywhere; }
.nlEvTxt small { display: block; margin-top: 2px; font: 800 11.5px/1.25 Nunito, system-ui, sans-serif; color: #4b4366; overflow-wrap: anywhere; }
.nlEvBar { display: block; height: 7px; margin-top: 5px; border-radius: 6px; border: 1.5px solid #1b1430; background: #e6e1f2; overflow: hidden; }
.nlEvBar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff9f1c); }
.nlEvGo { min-width: 54px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid #1b1430; background: linear-gradient(#ffe066, #ffc23f);
  color: #1b1430; font: 400 19px/1 Bangers, system-ui, sans-serif; letter-spacing: 1px; box-shadow: 0 3px 0 #1b1430; cursor: pointer; }
.nlEvGo:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b1430; }
.nlEvTick { width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; background: #5cc46a; border: 2px solid #1b1430; display: flex; align-items: center; justify-content: center; }
.nlEvTick .ci, .nlEvTick svg { width: 18px; height: 18px; display: block; }
.nlEvEmpty { padding: 10px; text-align: center; font: 800 13px/1.3 Nunito, system-ui, sans-serif; color: #4b4366; }
.nlEvFoot { display: flex; justify-content: center; gap: 8px; padding: 8px 10px 14px; flex-wrap: wrap; }
.nlEvBtn { min-height: 46px; min-width: 128px; padding: 0 18px; border-radius: 12px; border: 2px solid #1b1430; background: linear-gradient(#ffe066, #ffc23f);
  color: #1b1430; font: 400 21px/1 Bangers, system-ui, sans-serif; letter-spacing: 1px; box-shadow: 0 3px 0 #1b1430; cursor: pointer; }
.nlEvBtnAlt { background: #fff; }
.nlEvBtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b1430; }
html[data-anim="full"] .nlEvRow { animation: nlEvRowIn .32s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(160ms + var(--i, 0) * 60ms); }
html[data-anim="full"] .nlEvCards .nlS1Card { animation: nlEvDeal .42s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
html[data-anim="full"] .nlEvTitle { animation: nlEvSlam .46s cubic-bezier(.2, 1.6, .4, 1) .05s both; }
@keyframes nlEvRowIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nlEvDeal { from { opacity: 0; transform: translateY(26px) rotate(-8deg) scale(.8); } }
@keyframes nlEvSlam { from { opacity: 0; transform: scale(1.8); } 60% { opacity: 1; transform: scale(.94); } to { transform: none; } }
@media (max-width: 360px) { .nlEvCell { min-width: 50px; } .nlEvCell b { font-size: 24px; } .nlEvTitle { font-size: 26px; } }

/* ------------------------------------------------------------------ E43: the HOME chip bubble */
html.nl-E43 #chSeason { position: relative; }
.nlSeasonReady { position: absolute; right: -6px; top: -9px; z-index: 2; pointer-events: none; padding: 1px 7px 0; border-radius: 20px;
  border: 2px solid #1b1430; background: linear-gradient(180deg, #ffe066, #ff9f1c); color: #1b1430; white-space: nowrap;
  font: 400 12px/1.2 Bangers, Impact, sans-serif; letter-spacing: .5px; box-shadow: 0 2px 0 #1b1430; }
.nlSeasonReady[hidden] { display: none !important; }
html.nl-E43[data-anim="full"] .nlSeasonReady { animation: nlReadyPulse 1.6s ease-in-out infinite; }
html.nl-E43 #chSeason.nl-ready { border-color: #ffd23f; box-shadow: inset 0 1px 0 #ffffff18, 0 2px 0 #082b4970, 0 0 0 2px #ffd23f66; }
@keyframes nlReadyPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ------------------------------------------------------------------ E44: the points token */
.nlFly > .nlPtsTok { position: absolute; left: 50%; top: 50%; width: auto !important; height: 28px !important; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 3px; border-radius: 20px; border: 2px solid #1b1430;
  background: #fff8e7; box-shadow: 0 3px 0 #1b1430, 0 0 14px #ffd23faa; white-space: nowrap; }
.nlPtsTok i { width: 22px; height: 22px; display: block; } .nlPtsTok i svg { width: 100%; height: 100%; display: block; }
.nlPtsTok b { font: 400 17px/1 Bangers, Impact, sans-serif; letter-spacing: .5px; color: #c8303c; }

/* ------------------------------------------------------------------ E45: opening night */
#nlSeasonOv { position: fixed; inset: 0; z-index: 100500; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 16px; box-sizing: border-box; color: #fff8e7; font-family: Nunito, system-ui, sans-serif; }
#nlSeasonOv[hidden] { display: none; }
html.nl-E04 #nlSeasonOv.nlClosing { display: flex !important; animation: nlS1Out .22s ease-in both; pointer-events: none; }
@keyframes nlS1Out { to { opacity: 0; transform: scale(1.04); } }
.nlS1Dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #2a5c98f5 0%, #0d1b38fb 58%, #060b18 100%); opacity: 0; transition: opacity .32s ease; }
.nlS1Go .nlS1Dim { opacity: 1; }
.nlS1Rays { position: absolute; left: 50%; top: 30%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #ffffff10 0deg 8deg, transparent 8deg 20deg); transition: opacity .6s ease; }
.nlS1Slam .nlS1Rays { opacity: 1; }
html[data-anim="full"] .nlS1Slam .nlS1Rays { animation: nlS1Spin 40s linear infinite; }
@keyframes nlS1Spin { to { transform: rotate(360deg); } }
#nlSeasonOv > .nlSnow { z-index: 1; } #nlSeasonOv > .nlSnow i { animation-name: nlS1Fall; }
@keyframes nlS1Fall { from { transform: translate3d(0, -12px, 0); } to { transform: translate3d(var(--dx, 0), 105vh, 0); } }
.nlS1Stage { position: relative; z-index: 2; width: min(100%, 400px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.nlS1Kick { font: 900 11px/1 system-ui, sans-serif; letter-spacing: 2.4px; color: #bfeeff; opacity: 0; transition: opacity .3s ease .1s; }
.nlS1Go .nlS1Kick { opacity: 1; }
.nlS1Big { position: relative; margin-top: 6px; font: 400 76px/0.95 Bangers, Impact, system-ui, sans-serif; letter-spacing: 3px; color: #fff8e7;
  text-shadow: 3px 3px 0 #c8303c, 7px 7px 0 #1b1430; opacity: 0; transform: scale(3); }
.nlS1Slam .nlS1Big { opacity: 1; transform: none; transition: transform .38s cubic-bezier(.2, 1.5, .35, 1), opacity .12s linear; }
.nlS1BigFlake { position: absolute !important; right: -26px; top: -14px; width: 36px; height: 36px; transform: rotate(14deg); }
html[data-anim="full"] .nlS1Slam .nlS1Stage { animation: nlS1Shake .32s linear .3s 1; }
@keyframes nlS1Shake { 20% { translate: -5px 2px; } 40% { translate: 4px -3px; } 60% { translate: -3px 1px; } 80% { translate: 2px 0; } }
.nlS1Title { margin-top: 10px; padding: 6px 14px 4px; border: 2px solid #1b1430; border-radius: 8px; background: linear-gradient(90deg, #c27724, #ffdb75 40%, #ffe6a1 65%, #ce8e31);
  color: #112a42; font: 400 25px/1.05 Bangers, Impact, sans-serif; letter-spacing: 1.2px; box-shadow: 0 3px 0 #1b1430;
  clip-path: inset(0 100% 0 0); transition: clip-path .4s cubic-bezier(.3, .9, .3, 1) .3s; }
.nlS1Slam .nlS1Title { clip-path: inset(0 0 0 0); }
.nlS1Cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 18px; }
.nlS1Cards .nlS1Card { opacity: 0; transform: translateY(60px) rotate(-14deg) scale(.7); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .2s linear; }
.nlS1Cards .nlS1CardName { font-size: 13px; }
.nlS1Cards1 .nlS1Card:nth-child(1), .nlS1Cards2 .nlS1Card:nth-child(2), .nlS1Cards3 .nlS1Card:nth-child(3) { opacity: 1; transform: rotate(calc((var(--i) - 1) * 4deg)) translateY(calc(var(--i) * 0px)); }
.nlS1Cards2 .nlS1Card:nth-child(2) { transform: translateY(-6px) scale(1.04); }
.nlS1Road { width: 220px; height: 64px; margin-top: 18px; perspective: 600px; }
.nlS1RoadIn { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .4, 1); opacity: 0; }
.nlS1Cards3 .nlS1RoadIn { opacity: 1; transition: transform .6s cubic-bezier(.3, 1.3, .4, 1), opacity .25s linear; }
.nlS1Flip .nlS1RoadIn { transform: rotateY(180deg); }
.nlS1RoadBack, .nlS1RoadFront { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px;
  border: 2px solid #1b1430; box-shadow: 0 3px 0 #1b1430; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nlS1RoadBack { background: repeating-linear-gradient(45deg, #c8303c 0 10px, #fff8e7 10px 20px); }
.nlS1RoadBack .nlFlake { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 0 #1b1430); }
.nlS1RoadFront { transform: rotateY(180deg); background: linear-gradient(100deg, #174e77, #1d648f); color: #fff8e7; text-align: left; }
.nlS1RoadFront .ci, .nlS1RoadFront svg { width: 30px; height: 30px; display: block; flex: none; }
.nlS1RoadTxt b { display: block; font: 400 21px/1 Bangers, Impact, sans-serif; letter-spacing: 1px; color: #ffdf68; }
.nlS1RoadTxt small { display: block; margin-top: 2px; font: 900 10.5px/1.2 system-ui, sans-serif; letter-spacing: .8px; color: #dff6ff; }
.nlS1Line { margin: 16px 0 0; font: 800 14px/1.35 Nunito, system-ui, sans-serif; color: #dff6ff; opacity: 0; transition: opacity .3s ease; }
.nlS1Cards3 .nlS1Line { opacity: 1; }
.nlS1Btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(100%, 300px); margin-top: 20px;
  opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.nlS1Done .nlS1Btns { opacity: 1; transform: none; pointer-events: auto; }
.nlS1Btn { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid #1b1430; background: #fff8e7; color: #1b1430;
  font: 400 22px/1 Bangers, Impact, sans-serif; letter-spacing: 1px; box-shadow: 0 3px 0 #1b1430; cursor: pointer; }
.nlS1Primary { background: linear-gradient(#ffe066, #ffc23f); font-size: 24px; }
.nlS1Ghost { background: transparent; color: #dff6ff; border-color: #dff6ff88; box-shadow: none; font-size: 19px; min-height: 44px; }
.nlS1Btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b1430; }
.nlS1Btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html[data-anim="full"] .nlS1Done .nlS1Primary { animation: nlS1Glow 1.8s ease-in-out .3s infinite; }
@keyframes nlS1Glow { 0%, 100% { box-shadow: 0 3px 0 #1b1430, 0 0 0 0 #ffd23f00; } 50% { box-shadow: 0 3px 0 #1b1430, 0 0 18px 4px #ffd23f99; } }
.nlS1Mini .nlS1Big { font-size: 64px; }
/* still (REDUCE MOTION / ANIMATIONS NONE): everything is simply there */
.nlS1Still *, .nlS1Still { transition: none !important; animation: none !important; }
@media (max-height: 640px) { .nlS1Big { font-size: 58px; } .nlS1Cards { margin-top: 12px; } .nlS1Road { margin-top: 12px; } .nlS1Btns { margin-top: 12px; } }

/* ------------------------------------------------------------------ E47: the route of the day */
html.nl-E47 #capeHome .ch-seasonTicket.nl-route { gap: 7px; padding-left: 7px; }
html.nl-E47 #capeHome .ch-seasonTicket.nl-route .ch-ticketStar { display: none; }
.nlRouteThumb { position: relative; flex: none; width: 40px; height: 28px; border-radius: 6px; overflow: hidden; border: 1.5px solid #e9d09a; background: #25507a; }
.nlRouteThumb[hidden] { display: none; }
.nlRouteThumb canvas { display: block; width: 100%; height: 100%; }
.nlRouteStar { position: absolute; right: 1px; top: -2px; font-size: 13px; color: #ffd23f; text-shadow: 0 1px 0 #1b1430, 0 0 4px #000; }
html.nl-E47 #capeHome .ch-seasonTicket.nl-route small { font-weight: 800; color: #ffe9ba; }
.nlRouteDay { position: absolute; right: 8px; top: 8px; z-index: 3; padding: 2px 8px 1px; border-radius: 20px; border: 1.5px solid #1b1430;
  background: #ffd23f; color: #1b1430; font: 900 9.5px/1.2 system-ui, sans-serif; letter-spacing: 1px; box-shadow: 0 2px 0 #1b1430; pointer-events: none; }
.nlRouteStarTag { position: absolute; left: 8px; top: 6px; z-index: 3; font-size: 20px; color: #ffd23f; text-shadow: 0 2px 0 #1b1430; pointer-events: none; }
.cape-holiday-lobby__card.nl-routeDay { box-shadow: 0 0 0 2px #ffd23f, 0 0 16px #ffd23f66; }
.nlNewBest { position: absolute; right: 12px; top: 120px; z-index: 5; transform: rotate(8deg); padding: 6px 12px 5px; border-radius: 10px; border: 3px solid #1b1430;
  background: linear-gradient(#ffe066, #ff9f1c); color: #1b1430; text-align: center; box-shadow: 0 4px 0 #1b1430; pointer-events: none; }
.nlNewBest b { display: block; font: 400 26px/1 Bangers, Impact, sans-serif; letter-spacing: 1px; color: #c8303c; text-shadow: 1px 1px 0 #fff4c4; }
.nlNewBest small { display: block; margin-top: 2px; font: 900 10px/1.2 system-ui, sans-serif; letter-spacing: .8px; }
html[data-anim="full"] .nlNewBest { animation: nlBestSlam .42s cubic-bezier(.2, 1.6, .35, 1) both; }
@keyframes nlBestSlam { from { opacity: 0; transform: rotate(8deg) scale(2.6); } 60% { opacity: 1; transform: rotate(8deg) scale(.92); } to { transform: rotate(8deg); } }

/* ------------------------------------------------------------------ E48: DAILY QUESTS */
.nlQuestBar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin: 8px 0 6px; }
.nlQPurse { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px 0 6px; border-radius: 20px; border: 2px solid #1b1430;
  background: #fff8e7; color: #1b1430; box-shadow: 0 2px 0 #1b1430; }
.nlQPurse .ci, .nlQPurse svg { width: 20px; height: 20px; display: block; }
.nlQPurse b { font: 400 18px/1 Bangers, Impact, sans-serif; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.nlQSeason { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 3px 8px; border-radius: 12px;
  border: 1px solid #8acbea80; background: linear-gradient(100deg, #174e77, #1d648f); color: #fff8e7; cursor: pointer; text-align: left; }
.nlQSeason[hidden] { display: none; }
.nlQSeason .ci, .nlQSeason svg { width: 18px; height: 18px; display: block; flex: none; }
.nlQSTxt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nlQSLv { font: 400 14px/1 Bangers, Impact, sans-serif; letter-spacing: .6px; color: #ffdf68; }
.nlQSBar { display: block; height: 6px; border-radius: 6px; background: #0b2a46; overflow: hidden; }
.nlQSBar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd23f, #ff9f1c); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.nlQSReady { position: absolute; right: -4px; top: -8px; padding: 0 6px; border-radius: 20px; border: 1.5px solid #1b1430; background: #ffd23f; color: #1b1430;
  font: 400 11px/1.25 Bangers, Impact, sans-serif; }
.nlQSReady[hidden] { display: none; }
.nlQAll { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 2px solid #1b1430; background: linear-gradient(#ffe066, #ffc23f); color: #1b1430;
  font: 400 17px/1 Bangers, Impact, sans-serif; letter-spacing: .8px; box-shadow: 0 3px 0 #1b1430; cursor: pointer; white-space: nowrap; }
.nlQAll[hidden] { display: none; }
.nlQAll:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b1430; }
html.nl-E48[data-anim="full"] .nlQAll.nlPulse { animation: nlS1Glow 1.6s ease-in-out infinite; }
html.nl-E48[data-anim="full"] .pfQuest.nlQJustDone .pfClaim { animation: nlQDone .5s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
@keyframes nlQDone { from { transform: scale(.6); } 60% { transform: scale(1.12); } to { transform: none; } }
html.nl-E48 .pfBonus.nlBonusReady > .ci, html.nl-E48 .pfBonus.nlBonusReady > svg { transform-origin: 50% 90%; }
html.nl-E48[data-anim="full"] .pfBonus.nlBonusReady > .ci, html.nl-E48[data-anim="full"] .pfBonus.nlBonusReady > svg { animation: nlChestHop 1.4s ease-in-out infinite; }
@keyframes nlChestHop { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-6px) rotate(-6deg); } 80% { transform: translateY(0) rotate(4deg); } 90% { transform: translateY(-2px); } }
.nlBonusOpen { margin-left: 6px; }
/* the battle result's quest rows */
html.nl-E48 .resQuest.nlRq { position: relative; overflow: visible; }
.nlRqBar { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 4px; border-radius: 4px; background: #0000002e; overflow: hidden; pointer-events: none; }
.nlRqBar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff9f1c); }
.resQuest.done .nlRqBar i { background: linear-gradient(90deg, #5cc46a, #b6f08a); }
.nlRqDone { position: absolute; right: -4px; top: -9px; padding: 0 6px; border-radius: 20px; border: 1.5px solid #1b1430; background: #5cc46a; color: #fff;
  font: 400 12px/1.3 Bangers, Impact, sans-serif; letter-spacing: .5px; transform: rotate(6deg); pointer-events: none; box-shadow: 0 2px 0 #1b1430; }
html[data-anim="full"] .nlRqDone { animation: nlBestSlam .36s cubic-bezier(.2, 1.6, .35, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .nlSnow, .nlEvRow, .nlEvCards .nlS1Card, .nlEvTitle, .nlSeasonReady, .nlNewBest, .nlRqDone, .nlQAll, .ccBarTag, .pfBonus > .ci, .pfBonus > svg { animation: none !important; }
  .nlSnow { display: none; }
}
html[data-anim="none"] .nlSnow { display: none; }
