
/* Favourite cards use the exact normal Compendium artwork proportions. */
.nr215-favourites-panel{padding:16px!important}
.nr215-favourites-panel .nr193-favourites-head h3{font-size:21px}
.nr215-favourite-slots{gap:14px;align-items:stretch}
.nr215-favourite-slot{position:relative;padding:10px!important;min-height:0!important;justify-content:flex-start}
.nr215-favourite-slot .nr215-fav-actual-card{width:100%;max-width:310px;margin:0 auto;flex:1;display:flex;justify-content:center;align-items:flex-start}
.nr215-favourite-slot .nr194-dex-card-wrap{width:100%;max-width:310px}
.nr215-favourite-slot .dex-tile{width:100%;height:auto!important;aspect-ratio: 4 / 5.2;min-height:230px;padding:7px}
.nr215-favourite-slot .dex-portrait{height:auto!important;aspect-ratio:1/1.12;min-height:0!important;overflow:hidden}
.nr215-favourite-slot .dex-portrait img{display:block;width:100%;height:100%;object-fit:contain!important;background:#071d34}
.nr215-favourite-slot .nr194-fav-toggle{display:none!important}
.nr215-favourite-slot.leader{padding-top:35px!important;border:2px solid #f2bd54;box-shadow:0 0 0 1px #edb85a inset,0 0 20px #e9b64c45;animation:nr215AllyGlow 5s ease-in-out infinite}
.nr215-ally-tag{position:absolute;top:0;left:12px;right:12px;text-align:center;padding:7px;background:linear-gradient(90deg,#bf853b,#ffe1a0,#c58e39);font-size:11px;font-weight:1000;color:#382507;letter-spacing:.1em;border-radius:0 0 7px 7px}
.nr215-ally-tag span{font-size:9px;margin-left:7px;letter-spacing:0}
.nr215-favourite-slot .nr193-fav-actions{margin-top:auto;padding:4px 0 1px}
@keyframes nr215AllyGlow{50%{box-shadow:0 0 0 1px #edb85a inset,0 0 29px #fbd07095}}
/* Compact collection filters. */
.nr215-filter-bar{margin:14px 0 8px;position:relative;z-index:20}
.nr215-filter-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:9px 11px;background:#0e2842;border:1px solid #365f82;border-radius:10px}
.nr215-deck-menu-wrap{position:relative}
.nr215-deck-toggle{min-width:144px}
.nr215-deck-menu{display:none;position:absolute;top:calc(100% + 8px);left:0;width:min(380px,88vw);padding:12px;z-index:100;max-height:58vh;overflow-y:auto;background:#0b1f35;box-shadow:0 14px 48px #000c;border:1px solid #6386a3;border-radius:10px}
.nr215-deck-menu.open{display:block}
.nr215-menu-heading{display:flex;justify-content:space-between;align-items:center;padding:0 0 9px;gap:12px;color:#ffdf8f;font-size:11px}
.nr215-menu-heading button,.nr215-clear-button{border:0;background:transparent;color:#ffe09a;font-size:10px;font-weight:900;cursor:pointer}
.nr215-deck-options{display:flex;flex-direction:column;gap:4px}
.nr215-deck-option{display:flex;align-items:center;gap:10px;padding:7px 8px;border:1px solid #315270;border-radius:6px;cursor:pointer;color:#d7ecfa;font-weight:800;font-size:11px}
.nr215-deck-option.selected{background:#1f4362;border-color:#e9bc68}
.nr215-deck-option input{accent-color:#f2c464;width:17px;height:17px}
.nr215-deck-option small{margin-left:auto;color:#94bbd1;white-space:nowrap}
.nr215-quick-filter{display:inline-flex;align-items:center;gap:6px;color:#d3e5f2;border:1px solid #456b86;padding:8px 12px;border-radius:7px;font-size:11px;font-weight:900;cursor:pointer;min-height:36px}
.nr215-quick-filter.on{background:#365b7e;color:#ffe0a0;border-color:#dcb46e}
.nr215-quick-filter input{width:14px;height:14px;accent-color:#f5c26c}
.nr215-active-chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.nr215-active-chips:empty{display:none}
.nr215-active-chip{font-size:10px;border:1px solid #8c7447;color:#f6d792;background:#264059;border-radius:18px;padding:4px 9px;cursor:pointer}
/* Guardian aura visible in Compendium, pack offers, battle cards, Ally and favourites. */
.gamecard.guardian-card, .arena-card.guardian-card, .dex-tile:has(img[data-nr215-guardian]), .nr42-pack-choice:has(img[data-nr215-guardian]), .nr193-favourite-slot:has(img[data-nr215-guardian]), .nr209-ally-card:has(img[data-nr215-guardian]), [data-battle-card]:has(img[data-nr215-guardian]), .versus-card:has(img[data-nr215-guardian]), .nr199-choice:has(img[data-nr215-guardian]){box-shadow:0 0 13px #ffdc7790,0 0 29px #b99aff75!important;animation:nr215GuardianAura 3.5s ease-in-out infinite}
@keyframes nr215GuardianAura{50%{filter:drop-shadow(0 0 12px #eacb80)}}
.dex-tile:has(img[data-nr215-young]) .dex-portrait{position:relative}
.dex-tile:has(img[data-nr215-young]) .dex-portrait:after{content:'✧ FOREVER YOUNG';position:absolute;bottom:4px;left:5px;padding:3px 5px;color:#082e37;background:#91f5d4df;font-size:9px;font-weight:900;border-radius:4px}
/* Potion, retaining the current Shop visual language. */
.nr215-potion-product{border-color:#63c6c2!important}
.nr215-potion-graphic{height:260px;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#2b897d55,transparent 60%),#071e31}
.nr215-potion-aura{position:absolute;width:200px;height:200px;border:3px solid #65fbd7a3;border-radius:50%;animation:nr215PotionPulse 4s infinite}
.nr215-potion-vial{position:relative;width:98px;height:145px;border:6px solid #e7e0ff;border-top:14px solid #c5a865;border-radius:17px 17px 45px 45px;background:linear-gradient(135deg,#bcffea,#41d6c6 50%,#147ca8);box-shadow:inset 0 0 24px white,0 0 36px #6ce5cb9c;display:grid;place-items:center;transform:rotate(-9deg);animation:nr215PotionFloat 3s ease-in-out infinite}
.nr215-potion-vial:before{content:'';position:absolute;top:-31px;width:56px;height:18px;border:4px solid #ffda8d;border-radius:4px;background:#6c4d32}
.nr215-potion-vial span{font-size:48px;color:#fff8d8;text-shadow:0 0 16px white}
.nr215-potion-preview{display:flex;align-items:center;justify-content:center;gap:14px;min-height:135px;text-align:center;color:#dceffa;padding:12px}
.nr215-potion-preview>div:not(.nr215-potion-arrow){width:126px;font-size:10px;font-weight:900}
.nr215-potion-preview img{width:120px;height:120px;object-fit:contain;border:1px solid #4c9c9c;border-radius:7px;margin-top:7px}
.nr215-potion-arrow{font-size:30px;color:#fbd37c}
.nr215-potion-cast .nr215-potion-preview{animation:nr215PotionCast 1s ease-in forwards}
@keyframes nr215PotionPulse{50%{transform:scale(1.15);opacity:.55}}
@keyframes nr215PotionFloat{50%{transform:translateY(-11px) rotate(7deg)}}
@keyframes nr215PotionCast{50%{filter:brightness(4) drop-shadow(0 0 30px #a5ffdb)}100%{filter:brightness(1)}}
/* Chest stage-specific anticipation. Rewards credited exactly once, before these effects. */
.nr215-chest-stage{position:relative;perspective:750px;min-height:175px;display:grid;place-items:center}
.nr215-chest-dialog .nr200-chest-art{transform-style:preserve-3d;position:relative;z-index:2}
.nr215-chest-dialog.is-opening .nr200-chest-art{animation-timing-function:cubic-bezier(.35,.02,.45,.96);animation-fill-mode:both}
.nr215-tier1 .is-opening .nr200-chest-art{animation-name:nr215ChestSpin2;animation-duration:1.28s}
.nr215-tier2 .is-opening .nr200-chest-art{animation-name:nr215ChestSpin5;animation-duration:2.95s}
.nr215-tier3 .is-opening .nr200-chest-art{animation-name:nr215ChestSpin8;animation-duration:4.2s;filter:drop-shadow(0 0 20px #fff3a1)}
@keyframes nr215ChestSpin2{0%{transform:rotateY(0) scale(.85)}75%{transform:rotateY(600deg) scale(1.07)}100%{transform:rotateY(720deg) scale(1.09)}}
@keyframes nr215ChestSpin5{0%{transform:rotateY(0) scale(.85)}79%{transform:rotateY(1660deg) scale(1.12)}100%{transform:rotateY(1800deg) scale(1.15)}}
@keyframes nr215ChestSpin8{0%{transform:rotateY(0) scale(.84)}80%{transform:rotateY(2580deg) scale(1.17)}100%{transform:rotateY(2880deg) scale(1.22)}}
.nr215-tier2 .nr215-energy-halo,.nr215-tier3 .nr215-energy-halo{position:absolute;inset:2% 10%;border-radius:50%;background:radial-gradient(circle,#fff3b66c,transparent 65%);animation:nr215Halo 1.15s ease-in-out infinite alternate}
.nr215-tier3 .nr215-energy-halo{background:radial-gradient(circle,#ffffff99,#ffe19065,transparent 65%)}
.nr215-white-flash{position:fixed;inset:0;background:#fff;pointer-events:none;opacity:0;z-index:200;transform:scale(.1);border-radius:50%}
.nr215-flashing .nr215-white-flash{animation:nr215WhiteVortex .85s ease-in-out forwards}
.nr215-chest-overlay.nr215-flashing::before{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;background:#fff;animation:nr215WhiteVortex .85s ease-in-out forwards}
.nr215-popping .nr215-chest-stage{animation:nr215PrizeBurst .6s ease-in both}
.nr215-tier3.nr215-celestial-revealed .nr200-chest-dialog h2{color:#fff1b1;font-size:clamp(29px,5vw,60px);text-shadow:0 0 23px #f7cc71;animation:nr215Congratulate .75s ease-out both}
.nr215-skip-chest{margin-top:10px}
@keyframes nr215WhiteVortex{0%{opacity:0;transform:scale(.1)}32%{opacity:.97;transform:scale(12);border-radius:0}55%{opacity:.93;transform:scale(12)}100%{opacity:0;transform:scale(.01);border-radius:100%}}
@keyframes nr215PrizeBurst{50%{transform:scale(1.17);filter:brightness(2.5)}100%{transform:scale(.75);opacity:.4}}
@keyframes nr215Halo{to{transform:scale(1.5);filter:brightness(2)}}
@keyframes nr215Congratulate{from{transform:translateY(18px) scale(.7);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
/* Foil tear & cards fan outward in their actual pick slots. */
.nr215-foil-ripping .nr215-tearing{animation:nr215TearPack .65s cubic-bezier(.2,.9,.4,1) both}
.nr215-cards-arriving .nr42-pack-choice{animation:nr215PackFan .92s cubic-bezier(.2,.8,.1,1.2) both}
.nr215-cards-arriving .nr42-pack-choice:nth-child(2){animation-delay:.18s}
.nr215-cards-arriving .nr42-pack-choice:nth-child(3){animation-delay:.36s}
.nr215-skip-pack{display:block;margin:7px auto 0}
@keyframes nr215TearPack{0%{transform:scale(1)}42%{transform:scale(1.1) rotate(-3deg);filter:brightness(2)}75%{transform:scale(1.18) rotate(4deg);filter:brightness(3)}100%{transform:scale(.48) translateY(-90px);opacity:0;clip-path:polygon(0 0,100% 0,90% 20%,100% 100%,0 100%,8% 25%)}}
@keyframes nr215PackFan{0%{opacity:0;transform:translateY(-130px) rotateY(180deg) scale(.35)}70%{opacity:1;transform:translateY(9px) rotateY(10deg) scale(1.04)}100%{opacity:1;transform:translateY(0) rotateY(0) scale(1)}}
/* 1-in-1,000 All Spark prompt must command attention. */
.nr215-all-spark-question{position:relative;isolation:isolate;box-shadow:0 0 20px #ffe187a5;border:2px solid #ffe9aa!important;animation:nr215RareQuestion 1.65s ease-in-out infinite alternate}
.nr215-all-spark-question:after{content:'✦ ✧ ✦';position:absolute;right:9px;top:-15px;color:#fff6bb;font-size:20px;animation:nr215QuestionSpark 2s infinite}
.nr196-all-flash{z-index:99999!important}
.nr215-fireworks{position:absolute;inset:0;pointer-events:none;overflow:visible}
.nr215-fireworks i{position:absolute;left:50%;top:50%;width:7px;height:17px;border-radius:8px;background:hsl(calc(var(--n)*60) 95% 75%);transform:rotate(var(--a));animation:nr215Fireworks 2.3s ease-out var(--d) both}
@keyframes nr215RareQuestion{to{filter:brightness(1.4);box-shadow:0 0 40px #ffdb5a}}
@keyframes nr215QuestionSpark{50%{transform:translateY(-8px) scale(1.4);opacity:.45}}
@keyframes nr215Fireworks{0%{transform:rotate(var(--a)) translateY(0) scale(.2);opacity:0}25%{opacity:1}100%{transform:rotate(var(--a)) translateY(-380px) scale(.05);opacity:0}}
@media(max-width:770px){.nr215-favourite-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nr215-filter-toolbar{gap:6px}.nr215-quick-filter{padding:6px 8px;font-size:10px}.nr215-potion-preview>div:not(.nr215-potion-arrow){width:105px}.nr215-potion-preview img{width:95px;height:95px}}
@media(prefers-reduced-motion:reduce){.nr215-favourite-slot.leader,.nr215-potion-vial,.nr215-potion-aura,.nr215-all-spark-question,.nr215-fireworks i{animation:none!important}}
