/* =====================================================================================
   1.0l NEXT LEVEL - HOME as a living place (batch B6-home, plan items E24-E27).
   E24  idle life: motes (snow in the holiday look), PLAY sheen, endless clouds, the flyer in random lanes,
        breathing team, bobbing tab pills, and a time-of-day sky (dawn / day / dusk / night with lit windows)
   E25  the chest door wears the painted treasure of the best chest owned; it breathes, and rattles when one can open
   E26  TODAY IN CAPE CITY: the once-a-day briefing card (inside #netCard)
   E27  the check-in stamp ceremony (#nlCheckinOv) and the streak flame on the purse
   Rules: every rule sits under html.nl-<ID>. Motion is transform/opacity only and lives under html.nl-life, which
   public/js/nl-home.js paints only when NL.gate()==='full' (so REDUCE MOTION, ANIMATIONS SOME/NONE and BATTERY
   SAVER all switch it off). The time-of-day tint is a still picture, so it stays on in every motion mode.
   ===================================================================================== */

/* ------------------------------------------------------------------ E24: time-of-day sky */
/* The page background behind HOME (only the ordinary look; the holiday painted scene owns its own sky). */
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod] { transition: background 1.2s ease; }
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="dawn"] {
  background: radial-gradient(ellipse at 22% 6%, #ffd2b080, transparent 50%),
    linear-gradient(175deg, #3f6fa6 0%, #8a6f9e 46%, #2a3f6e 100%);
}
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="dusk"] {
  background: radial-gradient(ellipse at 80% 10%, #ff9f6a70, transparent 52%),
    linear-gradient(175deg, #2f4f8a 0%, #6a4a86 50%, #231c4a 100%);
}
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="night"] {
  background: radial-gradient(ellipse at 78% 8%, #9fb8ff30, transparent 46%),
    linear-gradient(175deg, #0d1a3d 0%, #13265a 52%, #070f26 100%);
}
/* a night copy of the rooftop art, faded over the day one (same geometry, windows lit) */
.nl-skyNight, .nl-stageNight, .nl-stageTint, .nl-stars { position: absolute; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.nl-skyNight {
  left: -18%; right: -18%; bottom: -2%; height: 48%;
  background: url('../art/ui/home-city-rooftop-night-v1.svg') center bottom/auto 100% no-repeat;
}
.nl-stars { left: 0; right: 0; top: 0; height: 46%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fffbe6 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 27% 8%, #fffbe6cc 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 41% 26%, #fffbe6 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 58% 12%, #fffbe6bb 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 69% 30%, #fffbe6 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 83% 16%, #fffbe6cc 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 93% 34%, #fffbe6 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 6% 40%, #fffbe6aa 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 50% 44%, #fffbe6bb 50%, transparent 51%);
}
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="night"] > .nl-skyNight { opacity: .5; }
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="dusk"] > .nl-skyNight { opacity: .22; }
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="night"] > .nl-stars { opacity: .9; }
html.nl-E24 #menu > .ch-bgdepth:not([data-holiday-phase])[data-tod="dusk"] > .nl-stars { opacity: .25; }
html.nl-E24 #menu > .ch-bgdepth[data-holiday-phase] > .nl-skyNight,
html.nl-E24 #menu > .ch-bgdepth[data-holiday-phase] > .nl-stars { display: none; }
html.nl-E24.nl-life #menu > .ch-bgdepth[data-tod="night"] > .nl-stars { animation: nlTwinkle 5.5s ease-in-out infinite alternate; }
@keyframes nlTwinkle { 0% { opacity: .9; } 50% { opacity: .62; } 100% { opacity: .95; } }

/* The lineup stage (#chPortraitBtn) wears the same hour. The layer sits under the team row and the YOUR LINEUP / EDIT labels. */
html.nl-E24 #capeHome .ch-team > .nl-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
html.nl-E24 #capeHome .ch-team > .ch-teamrow { position: relative; z-index: 1; }
html.nl-E24 #capeHome .ch-team::before, html.nl-E24 #capeHome .ch-team::after { z-index: 2; }
.nl-stageNight { inset: 0; background: url('../art/ui/home-city-rooftop-night-v1.svg') center bottom/cover no-repeat; }
.nl-stageTint { inset: 0; mix-blend-mode: soft-light; }
html.nl-E24 #menu[data-tod="night"] .nl-stageNight { opacity: 1; }
html.nl-E24 #menu[data-tod="dusk"] .nl-stageNight { opacity: .34; }
html.nl-E24 #menu[data-tod="dusk"] .nl-stageTint { opacity: .9; background: linear-gradient(180deg, #ff7d4a 0%, #c0569a 55%, #3b2a6e 100%); }
html.nl-E24 #menu[data-tod="dawn"] .nl-stageTint { opacity: .75; background: linear-gradient(180deg, #ffb48a 0%, #ffd9b8 50%, #8fb6e6 100%); }
/* the labels stay readable on a dark sky */
html.nl-E24 #menu[data-tod="night"] #capeHome .ch-team::before,
html.nl-E24 #menu[data-tod="dusk"] #capeHome .ch-team::before { color: #e9f4ff; text-shadow: 0 1px 0 #0b1530; }
/* the holiday look's painted page sky is left alone; the lineup stage still follows the hour so it matches that night scene */

/* ------------------------------------------------------------------ E24: motes behind the team (snow in the holiday look) */
.nl-motes { position: absolute; inset: 0; display: none; }
html.nl-E24.nl-life .nl-motes { display: block; }
.nl-motes i {
  position: absolute; left: var(--x, 50%); bottom: -8px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #fff7cf 0%, #ffe28a 45%, #ffe28a00 72%); opacity: 0;
  animation: nlMoteRise var(--t, 7s) linear var(--d, 0s) infinite; will-change: transform, opacity;
}
@keyframes nlMoteRise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: .85; }
  70% { opacity: .55; }
  100% { transform: translate3d(var(--w, 10px), -118px, 0) scale(1.1); opacity: 0; }
}
/* holiday: the same twelve dots drift DOWN as soft snow */
html.nl-E24 #menu:has(> .ch-bgdepth[data-holiday-phase]) .nl-motes i {
  bottom: auto; top: -8px; background: radial-gradient(circle, #ffffff 0%, #ffffffd0 40%, #ffffff00 72%);
  animation-name: nlSnowFall; animation-duration: calc(var(--t, 7s) * 1.25);
}
@keyframes nlSnowFall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .95; }
  50% { transform: translate3d(var(--w, 10px), 60px, 0); }
  85% { opacity: .8; }
  100% { transform: translate3d(calc(var(--w, 10px) * -.5), 128px, 0); opacity: 0; }
}

/* ------------------------------------------------------------------ E24: endless clouds, the flyer in random lanes */
html.nl-E24.nl-life:not([data-passport-fx="static"]) .ch-amb-cloud { animation-iteration-count: infinite; }
html.nl-E24.nl-life .ch-amb .ch-amb-flyer { top: var(--nl-lane, 18px); scale: var(--nl-fs, 1); }
html.nl-E24.nl-life:not([data-passport-fx="static"]) .ch-amb.ch-amb-go .ch-amb-flyer { animation-delay: .2s; }
html.nl-E24.nl-life:not([data-passport-fx="static"]) .ch-amb.ch-amb-go.nl-rev .ch-amb-flyer {
  animation-name: nlAmbFlyR; left: auto; right: 0;
}
.ch-amb.nl-rev .ch-amb-flyer svg, .ch-amb.nl-rev .ch-amb-flyer .nl-flyHero { transform: scaleX(-1); }
@keyframes nlAmbFlyR {
  0% { transform: translate(120px, 26px) rotate(6deg); opacity: 0; }
  12% { opacity: .75; }
  50% { transform: translate(-48vw, 4px) rotate(2deg); }
  88% { opacity: .75; }
  100% { transform: translate(calc(-100vw - 120px), -14px) rotate(-4deg); opacity: 0; }
}
.ch-amb-flyer .nl-flyHero { display: none; position: absolute; inset: -6px -10px; width: calc(100% + 20px); height: calc(100% + 12px); }
.ch-amb.nl-hero .ch-amb-flyer svg { display: none; }
.ch-amb.nl-hero .ch-amb-flyer .nl-flyHero { display: block; }
/* holiday: the clouds rest behind the painted scene, the flyer still crosses its night sky */
html.nl-E24.nl-life #menu > .ch-bgdepth[data-holiday-phase] > .ch-amb { visibility: visible; z-index: 1; }
html.nl-E24.nl-life #menu > .ch-bgdepth[data-holiday-phase] .ch-amb-cloud { visibility: hidden; }
html.nl-E24.nl-life #menu > .ch-bgdepth[data-holiday-phase] .ch-amb .ch-amb-flyer {
  animation-play-state: running !important; filter: drop-shadow(0 0 4px #fff6d8cc);
}

/* ------------------------------------------------------------------ E24: the PLAY sheen (every 4 s on a calm HOME) */
#capeHome #chPvpDoor.ccSheen::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, #fff0, #fffbe0cc 50%, #fff0);
  transform: translateX(-118%) skewX(-18deg); animation: ccSheen .9s ease-in-out both;
}
html:not(.nl-life) #capeHome #chPvpDoor.ccSheen::after { display: none; }

/* ------------------------------------------------------------------ E24: the team breathes, each on its own period */
html.nl-E24.nl-life #capeHome .ch-teamart {
  transform-origin: 50% 92%;
  animation: nlBreathe var(--nl-bp, 2.9s) ease-in-out var(--nl-bd, 0s) infinite both;
}
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+1) { --nl-bp: 2.7s; --nl-bd: -.2s; }
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+2) { --nl-bp: 3.2s; --nl-bd: -1.1s; }
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+3) { --nl-bp: 2.95s; --nl-bd: -.6s; }
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+4) { --nl-bp: 3.45s; --nl-bd: -2.0s; }
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+5) { --nl-bp: 2.8s; --nl-bd: -1.6s; }
html.nl-E24.nl-life #capeHome .ch-teamslot:nth-child(6n+6) { --nl-bp: 3.1s; --nl-bd: -.9s; }
@keyframes nlBreathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-2px) scale(1.012, 1.03); }
}

/* ------------------------------------------------------------------ E24: tab bar pills and counts bob */
html.nl-E24.nl-life .ccBarNew:not([hidden]),
html.nl-E24.nl-life .ccBarCount:not([hidden]),
html.nl-E24.nl-life .ccBarDot:not([hidden]) { animation: moBob var(--mo-bob-ms, 1500ms) ease-in-out infinite; }
html.nl-E24.nl-life .ccBarCount:not([hidden]) { animation-delay: -.5s; }

/* ------------------------------------------------------------------ E25: the living chest door */
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-art.art-silver,
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-art.art-gold { visibility: hidden !important; }
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-art.nl-best.is-loaded { visibility: visible; }
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-art.nl-best.is-loaded ~ .ci,
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-art.nl-best.is-loaded ~ .ch-chestdoor-dot { visibility: hidden; }
html.nl-E25 #capeHome .ch-chestdoor.nl-door .ch-chestdoor-ico { overflow: visible; }
html.nl-E25 #capeHome .ch-chestdoor.nl-door .nl-best { inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform-origin: 50% 82%; }
html.nl-E25 #capeHome .ch-chestdoor .nl-doorSheen {
  position: absolute; inset: 0; z-index: 2; border-radius: 9px; overflow: hidden; pointer-events: none; opacity: 0;
}
html.nl-E25 #capeHome .ch-chestdoor .nl-doorSheen::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 42%;
  background: linear-gradient(90deg, #fff0, #fff8d8e0 50%, #fff0); transform: translateX(-130%) skewX(-18deg);
}
html.nl-E25.nl-life #capeHome .ch-chestdoor.nl-door .nl-best.is-loaded { animation: nlDoorBreathe 3.2s ease-in-out infinite; }
html.nl-E25.nl-life #capeHome .ch-chestdoor.nl-door.nl-rattle .nl-best.is-loaded { animation: nlDoorLive 6s ease-in-out infinite; }
html.nl-E25.nl-life #capeHome .ch-chestdoor.nl-door.nl-rattle .nl-doorSheen { opacity: 1; }
html.nl-E25.nl-life #capeHome .ch-chestdoor.nl-door.nl-rattle .nl-doorSheen::after { animation: nlDoorSheen 6s ease-in-out infinite; }
@keyframes nlDoorBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045) translateY(-1px); } }
@keyframes nlDoorLive {
  0% { transform: rotate(0) scale(1); }
  2% { transform: rotate(-9deg) scale(1.08) translateY(-2px); }
  4% { transform: rotate(8deg) scale(1.08) translateY(-2px); }
  6% { transform: rotate(-7deg) scale(1.06) translateY(-1px); }
  8% { transform: rotate(5deg) scale(1.04); }
  10% { transform: rotate(-2deg) scale(1.02); }
  12% { transform: rotate(0) scale(1); }
  36% { transform: scale(1.045) translateY(-1px); }
  60% { transform: scale(1); }
  82% { transform: scale(1.045) translateY(-1px); }
  100% { transform: scale(1); }
}
@keyframes nlDoorSheen { 0%, 12% { transform: translateX(-130%) skewX(-18deg); } 24%, 100% { transform: translateX(330%) skewX(-18deg); } }
/* the ribbon: only when today's premium gift waits and the claim star is not already saying so */
html.nl-E25 #capeHome .ch-chestdoor .nl-doorRibbon {
  position: absolute; left: -7px; top: -8px; z-index: 6; pointer-events: none;
  font: 400 11px/1 Bangers, system-ui, sans-serif; letter-spacing: .8px; color: #1b1430;
  background: linear-gradient(180deg, #ffe48a, #ffc23f); border: 2px solid #1b1430; border-radius: 6px;
  padding: 2px 6px 1px; transform: rotate(-10deg); box-shadow: 0 2px 0 #1b143088;
}
html.nl-E25 #capeHome .ch-chestdoor .nl-doorRibbon[hidden] { display: none; }
html.nl-E25.nl-life #capeHome .ch-chestdoor .nl-doorRibbon { animation: nlRibbonSwing 2.4s ease-in-out infinite; transform-origin: 80% 0; }
@keyframes nlRibbonSwing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-4deg); } }

/* ------------------------------------------------------------------ E27: the streak flame on the purse */
html.nl-E27 #capeHome .ch-coins { position: relative; }
html.nl-E27 #capeHome .nl-flame {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 1px;
  height: 17px; padding: 0 5px 0 3px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #ff9b3d, #e8551f); border: 1px solid #5a1e08; color: #fff6dc;
  font: 400 11px/1 Bangers, system-ui, sans-serif; letter-spacing: .5px; box-shadow: 0 1px 0 #2a0e0499;
}
html.nl-E27 #capeHome .nl-flame[hidden] { display: none; }
html.nl-E27 #capeHome .nl-flame .ci, html.nl-E27 #capeHome .nl-flame svg { width: 12px; height: 12px; display: block; }
html.nl-E27 #capeHome .nl-flame[data-tier="1"] { height: 18px; background: linear-gradient(180deg, #ffb13d, #f0461a); }
html.nl-E27 #capeHome .nl-flame[data-tier="2"] { height: 19px; background: linear-gradient(180deg, #ffd23f, #ff5a1f 70%, #c22a10); box-shadow: 0 0 6px #ff8a3d99, 0 1px 0 #2a0e0499; }
html.nl-E27 #capeHome .nl-flame[data-tier="3"] { height: 20px; background: linear-gradient(180deg, #fff0a0, #ffb13d 40%, #ff3d1f); box-shadow: 0 0 9px #ffb13dcc, 0 1px 0 #2a0e0499; color: #2a0e04; }
html.nl-E27 #capeHome .nl-flame[data-tier="1"] .ci, html.nl-E27 #capeHome .nl-flame[data-tier="1"] svg { width: 13px; height: 13px; }
html.nl-E27 #capeHome .nl-flame[data-tier="2"] .ci, html.nl-E27 #capeHome .nl-flame[data-tier="2"] svg { width: 14px; height: 14px; }
html.nl-E27 #capeHome .nl-flame[data-tier="3"] .ci, html.nl-E27 #capeHome .nl-flame[data-tier="3"] svg { width: 15px; height: 15px; }
html.nl-E27 #capeHome .nl-flame .nl-flameShield { width: 7px; height: 8px; margin-left: 2px; border-radius: 2px 2px 4px 4px; background: #7fd8ff; border: 1px solid #0b2a46; }
html.nl-E27.nl-life #capeHome .nl-flame .ci { animation: nlFlicker 1.3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes nlFlicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.12, 1.18) rotate(-4deg); } 60% { transform: scale(.94, 1.04) rotate(3deg); } }

/* ------------------------------------------------------------------ E26: TODAY IN CAPE CITY (inside #netCard) */
html.nl-E26 #netCard:has(> .nlBrief) { padding: 0; overflow-x: hidden; background: #fff8e7; border-color: #1b1430; }
.nlBrief { position: relative; text-align: left; color: #1b1430; font-family: Nunito, system-ui, sans-serif; }
.nlBriefHead {
  position: relative; padding: 12px 14px 11px; overflow: hidden; border-bottom: 3px solid #1b1430;
  background: radial-gradient(circle at 1px 1px, #1b143022 1.2px, transparent 1.6px) 0 0/7px 7px, linear-gradient(160deg, #ffe36e, #ffc23f 60%, #ff9f3d);
}
.nlBriefKick { font: 900 10px/1 system-ui, sans-serif; letter-spacing: 1.6px; color: #5a3608; text-transform: uppercase; }
.nlBriefTitle { margin-top: 4px; font: 400 27px/1 Bangers, system-ui, sans-serif; letter-spacing: 1.2px; color: #1b1430; text-shadow: 2px 2px 0 #fff4c4; }
.nlBriefStreak {
  position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px 2px 5px; border-radius: 999px; border: 2px solid #1b1430; background: #ff7a2f; color: #fff7de;
  font: 400 13px/1 Bangers, system-ui, sans-serif; letter-spacing: .7px; transform: rotate(4deg); box-shadow: 0 2px 0 #1b1430;
}
.nlBriefStreak .ci, .nlBriefStreak svg { width: 15px; height: 15px; display: block; }
.nlBriefRows { list-style: none; margin: 0; padding: 9px 10px 4px; display: flex; flex-direction: column; gap: 7px; }
.nlBriefRow {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 7px 7px 7px 7px; border: 2px solid #1b1430; border-radius: 12px; background: #fff; box-shadow: 0 3px 0 #1b143033;
}
.nlBriefRow.is-done { background: #eef7ea; box-shadow: none; border-color: #1b143066; }
.nlBriefIco { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tone, #3fd0c9); border: 2px solid #1b1430; }
.nlBriefIco .ci, .nlBriefIco svg { width: 22px; height: 22px; display: block; }
.nlBriefTxt { min-width: 0; }
.nlBriefTxt b { display: block; font: 400 17px/1.05 Bangers, system-ui, sans-serif; letter-spacing: .7px; color: #1b1430; }
.nlBriefTxt small { display: block; margin-top: 2px; font: 800 11.5px/1.25 Nunito, system-ui, sans-serif; color: #4b4366; overflow-wrap: anywhere; }
.nlBriefRow.is-done .nlBriefTxt b { color: #3d6b35; }
.nlBriefGo {
  min-width: 54px; min-height: 40px; padding: 0 12px; border: 2px solid #1b1430; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #ffe36e, #ffc23f); color: #1b1430; font: 400 18px/1 Bangers, system-ui, sans-serif; letter-spacing: 1px;
  box-shadow: 0 3px 0 #1b1430; touch-action: manipulation;
}
.nlBriefGo:active { transform: translateY(2px); box-shadow: 0 1px 0 #1b1430; }
.nlBriefTick { width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; background: #5cc46a; border: 2px solid #1b1430;
  display: flex; align-items: center; justify-content: center; }
.nlBriefTick .ci, .nlBriefTick svg { width: 18px; height: 18px; display: block; }
.nlBriefFoot { padding: 6px 10px 12px; display: flex; justify-content: center; }
.nlBriefFoot .nlBriefOk {
  min-width: 60%; min-height: 44px; border: 3px solid #1b1430; border-radius: 12px; cursor: pointer; background: #3fd0c9;
  font: 400 21px/1 Bangers, system-ui, sans-serif; letter-spacing: 1.2px; color: #1b1430; box-shadow: 0 4px 0 #1b1430;
}
html[data-anim="full"]:not(.nl-calm) .nlBriefRow { animation: nlBriefRowIn .32s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }
html[data-anim="full"]:not(.nl-calm) .nlBriefStreak { animation: nlStreakPop .5s cubic-bezier(.2, 1.6, .4, 1) .45s both; }
@keyframes nlBriefRowIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nlStreakPop { from { opacity: 0; transform: rotate(4deg) scale(.3); } to { opacity: 1; transform: rotate(4deg) scale(1); } }
html[data-text="large"] .nlBriefTxt small { font-size: 13px; }

/* ------------------------------------------------------------------ E27: the check-in stamp ceremony */
#nlCheckinOv { position: fixed; inset: 0; z-index: 96; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
#nlCheckinOv.hidden { display: none; }
#nlCheckinOv .nlCiScrim { position: absolute; inset: 0; background: #0a0618b8; }
html[data-anim="full"] #nlCheckinOv .nlCiScrim { animation: nlFade .18s ease-out both; }
#nlCheckinOv .nlCiPanel {
  position: relative; width: min(392px, 100%); padding: 14px 10px 14px; box-sizing: border-box; text-align: center;
  background: radial-gradient(circle at 1px 1px, #ffffff10 1px, transparent 1.5px) 0 0/9px 9px, linear-gradient(180deg, #2c2160, #1b1440);
  border: 3px solid #1b1430; border-radius: 20px; box-shadow: 0 8px 0 #0d0920, inset 0 0 0 2px #ffd23f55; color: #fff8e7;
}
html[data-anim="full"] #nlCheckinOv .nlCiPanel { animation: nlCiIn .34s cubic-bezier(.2, 1.3, .4, 1) both; }
#nlCheckinOv .nlCiPanel.nl-shake { animation: nlCiShake .32s ease-out; }
@keyframes nlCiIn { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes nlCiShake { 0% { transform: translate(0, 0); } 20% { transform: translate(-5px, 3px) rotate(-.6deg); } 40% { transform: translate(5px, -2px) rotate(.5deg); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } 100% { transform: none; } }
@keyframes nlFade { from { opacity: 0; } to { opacity: 1; } }
.nlCiTitle { font: 400 28px/1 Bangers, system-ui, sans-serif; letter-spacing: 1.4px; color: #ffd23f; text-shadow: 2px 2px 0 #0d0920; }
.nlCiSub { margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font: 900 12px/1.2 system-ui, sans-serif; letter-spacing: 1px; color: #ffcf9e; }
.nlCiSub .ci, .nlCiSub svg { width: 15px; height: 15px; display: block; }
.nlCiStrip { margin: 12px 0 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.nlCiTicket {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px;
  min-height: 82px; padding: 5px 1px 5px; border-radius: 8px; background: #fff3d1; color: #1b1430; border: 2px solid #1b1430;
  box-shadow: 0 3px 0 #0d0920;
}
/* the ticket's perforated edge */
.nlCiTicket::before { content: ''; position: absolute; left: 3px; right: 3px; top: 19px; border-top: 2px dotted #1b143055; }
.nlCiTicket small { font: 900 10px/1 system-ui, sans-serif; letter-spacing: .4px; }
.nlCiTicket .ci, .nlCiTicket svg { width: 24px; height: 24px; display: block; }
.nlCiTicket .nlCiVal { font: 400 12px/1 Bangers, system-ui, sans-serif; letter-spacing: .3px; white-space: nowrap; }
.nlCiTicket.is-got { background: #d8cfb6; color: #5a5470; }
.nlCiTicket.is-got .ci { opacity: .55; }
.nlCiTicket.is-today { background: #ffe36e; transform: translateY(-4px) scale(1.06); z-index: 2; box-shadow: 0 0 0 2px #ffd23f, 0 5px 0 #0d0920, 0 0 18px #ffd23f88; }
.nlCiTicket.is-chest .nlCiVal { color: #8a3d0e; }
.nlCiTick {
  position: absolute; left: 50%; top: 52%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid #c02a2a; color: #c02a2a; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); opacity: .8;
}
.nlCiTick .ci, .nlCiTick svg { width: 18px; height: 18px; }
/* the rubber stamp */
.nlCiStamp {
  position: absolute; left: 50%; top: 56%; z-index: 4; width: 58px; height: 58px; margin: -29px 0 0 -29px; pointer-events: none;
  border-radius: 50%; border: 3px solid #d62828; color: #d62828; background: #fff3d1cc; opacity: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 400 15px/0.95 Bangers, system-ui, sans-serif; letter-spacing: .6px; transform: rotate(-14deg);
  box-shadow: inset 0 0 0 3px #fff3d1, inset 0 0 0 5px #d62828;
}
.nlCiStamp.is-on { opacity: .95; }
html[data-anim="full"] .nlCiStamp.is-slam { animation: nlStampSlam .42s cubic-bezier(.5, 0, .7, 1.4) both; }
@keyframes nlStampSlam {
  0% { opacity: 0; transform: rotate(-30deg) scale(2.8); }
  62% { opacity: 1; transform: rotate(-12deg) scale(.88); }
  80% { transform: rotate(-15deg) scale(1.06); }
  100% { opacity: .95; transform: rotate(-14deg) scale(1); }
}
.nlCiInk { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.nlCiInk i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #d62828; opacity: 0;
  transform: rotate(var(--a, 0deg)) translateY(0) scale(.5); }
html[data-anim="full"] .nlCiInk.is-go i { animation: nlInk .5s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--d, 0ms); }
@keyframes nlInk { 0% { opacity: 0; transform: rotate(var(--a, 0deg)) translateY(0) scale(.4); } 20% { opacity: .95; } 100% { opacity: 0; transform: rotate(var(--a, 0deg)) translateY(calc(var(--r, 34px) * -1)) scale(var(--k, 1)); } }
.nlCiLine { margin: 8px 6px 0; font: 900 13px/1.3 system-ui, sans-serif; letter-spacing: .5px; color: #fff8e7; min-height: 18px; }
.nlCiLine b { color: #ffd23f; font: 400 20px/1 Bangers, system-ui, sans-serif; letter-spacing: 1px; }
.nlCiShield { margin: 6px auto 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: #0b2a46; border: 2px solid #7fd8ff; color: #d8f4ff; font: 900 11.5px/1.2 system-ui, sans-serif; letter-spacing: .4px; }
.nlCiShield .ci, .nlCiShield svg { width: 16px; height: 16px; display: block; }
.nlCiShield[hidden] { display: none; }
.nlCiChest { margin: 10px auto 2px; width: 104px; height: 92px; position: relative; display: none; }
.nlCiChest.is-on { display: block; }
.nlCiChest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 3px #0d0920aa); }
html[data-anim="full"] .nlCiChest.is-on img { animation: nlChestDrop .52s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes nlChestDrop { 0% { opacity: 0; transform: translateY(-80px) scale(.7) rotate(-8deg); } 60% { opacity: 1; transform: translateY(6px) scale(1.06, .94); } 100% { transform: none; } }
.nlCiBtns { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.nlCiBtns[hidden] { display: none; }
.nlCiBtn {
  min-height: 46px; padding: 0 16px; border: 3px solid #1b1430; border-radius: 12px; cursor: pointer;
  font: 400 20px/1 Bangers, system-ui, sans-serif; letter-spacing: 1.1px; color: #1b1430; background: #3fd0c9; box-shadow: 0 4px 0 #0d0920;
  touch-action: manipulation;
}
.nlCiBtn.is-main { background: linear-gradient(180deg, #ffe36e, #ffc23f); }
.nlCiBtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0d0920; }
html[data-anim="full"] .nlCiBtns:not([hidden]) { animation: nlBriefRowIn .3s cubic-bezier(.2, 1.2, .4, 1) both; }
@media (max-width: 340px) { .nlCiTicket { min-height: 74px; } .nlCiTicket .ci, .nlCiTicket svg { width: 20px; height: 20px; } .nlCiTicket .nlCiVal { font-size: 10.5px; } .nlCiStamp { width: 54px; height: 54px; margin: -27px 0 0 -27px; font-size: 13px; } }

/* ------------------------------------------------------------------ every motion off under REDUCE MOTION (belt and braces) */
@media (prefers-reduced-motion: reduce) {
  .nl-motes { display: none !important; }
  html.nl-life #capeHome .ch-teamart, html.nl-life #capeHome .nl-best, .nlCiStamp, .nlCiInk i, .nlBriefRow, .nlBriefStreak,
  #nlCheckinOv .nlCiPanel, .nlCiChest img, .nl-flame .ci, .nlCiBtns, .nl-doorRibbon { animation: none !important; }
}
body.cc-rm .nl-motes { display: none !important; }

/* ------------------------------------------------------------------ E24: the stage flyer (nl-home.js stageFlight: Web Animations, transform/opacity) */
.nl-stageFlyer { position: absolute; left: 0; top: 0; width: 120px; height: 44px; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.nl-stageFlyer svg { width: 100%; height: 100%; display: block; }
.nl-stageFlyer .nl-flyHero { display: none; position: absolute; inset: -8px -12px; width: calc(100% + 24px); height: calc(100% + 16px); }
.nl-stageFlyer.nl-hero svg { display: none; }
.nl-stageFlyer.nl-hero .nl-flyHero { display: block; }
.nl-stageFlyer.nl-rev svg, .nl-stageFlyer.nl-rev .nl-flyHero { transform: scaleX(-1); }
html.nl-E24 #menu[data-tod="night"] .nl-stageFlyer, html.nl-E24 #menu[data-tod="dusk"] .nl-stageFlyer { filter: drop-shadow(0 0 3px #fff6d8aa); }
html:not(.nl-life) .nl-stageFlyer { display: none; }
