/* Collection and reusable art */
.rarity-backdrop{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.rarity-common{background-image:url('/assets/backgrounds/common.png')!important}.rarity-uncommon{background-image:url('/assets/backgrounds/uncommon.png')!important}.rarity-rare{background-image:url('/assets/backgrounds/rare.png')!important}.rarity-epic{background-image:url('/assets/backgrounds/epic.png')!important}.rarity-legendary{background-image:url('/assets/backgrounds/legendary.png')!important}.rarity-mythic{background-image:url('/assets/backgrounds/mythic.png')!important}
.rarity-backdrop>img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal!important}.rarity-backdrop:before,.rarity-backdrop:after{display:none!important}
#collection-grid,.friend-collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px}
.monster-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:0!important;overflow:hidden;border:1px solid #30343d;border-radius:16px;background:#191c23;text-align:left;min-width:0;margin:0}
.monster-art{padding:0!important;margin:0!important;aspect-ratio:1;width:100%;height:auto!important;min-height:0!important;overflow:hidden}.monster-art .rarity-backdrop{width:100%;height:100%;aspect-ratio:1}.card-info{padding:14px!important}.card-info h3{font-size:16px;margin:0!important}.card-info p{font-size:12px;color:#b8bdc8;margin:8px 0 0!important}.monster-card:disabled{opacity:.7}
.collection-breeding{border:1px solid #30343d;border-radius:20px;padding:22px;margin:26px 0;background:#171a20}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:600px;margin:0 auto 18px}.parent-panel{padding:0!important;border:0!important;background:none!important}.parent-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:180px;border:1px dashed #67715f!important;border-radius:14px;padding:0!important;overflow:hidden;background:#20251f}.parent-slot>.rarity-backdrop{height:140px;width:140px;border-radius:12px}.parent-slot>span{padding:8px}.empty-slot{font-size:44px;color:#b4ed80}.collection-breeding>#breed-action{display:block;margin:auto}.collection-breeding>#breed-note{text-align:center;margin-bottom:0}
.collection-egg{height:auto;aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden}.collection-egg .egg{width:90px;height:118px;position:relative;inset:auto;margin:0;transform:none;filter:drop-shadow(0 10px 14px #0004)}.collection-egg .egg b{font-size:26px}.free-egg-tile{border-color:#8caa67}
.profile-control{position:relative;margin-left:auto}#profile-toggle{width:48px;height:48px;border-radius:50%;padding:0;overflow:hidden;border:1px solid #68745b;background:#282c30;display:grid;place-items:center}#profile-toggle .rarity-backdrop{width:100%;height:100%}.avatar-egg{font-size:30px}#profile-menu{position:absolute;right:0;top:58px;min-width:220px;padding:12px;background:#20242c;border:1px solid #424854;border-radius:14px;box-shadow:0 12px 35px #0008;z-index:50}#profile-menu:not([hidden]){display:flex;flex-direction:column;gap:8px}#profile-menu>button{min-height:38px;text-align:left;width:100%}#profile-menu #sound{font-size:18px}header{gap:16px}header nav button{white-space:nowrap}#premium-badge{font-size:10px}
#parent-dialog,#friends-dialog{width:min(820px,94vw);max-height:85vh;padding:32px;overflow:auto}.parent-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}.parent-choice{padding:0!important;overflow:hidden;border-radius:12px}.parent-choice .rarity-backdrop{height:auto;aspect-ratio:1}.parent-choice b{display:block;padding:10px}.friend-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #363d48;flex-wrap:wrap}.friend-row b{flex:1}.friend-avatar{width:45px;height:45px;overflow:hidden;border-radius:50%}.friend-avatar .rarity-backdrop{height:100%}#friend-profile-dialog{width:min(1000px,94vw);max-height:85vh;padding:32px;overflow:auto}#collect{min-width:220px;font-size:20px}#sound:after{content:' Audio'}
@media(max-width:600px){header{gap:9px;flex-wrap:wrap;padding:14px}.brand{font-size:15px}header nav{order:3;width:100%;display:flex;justify-content:center}.parent-slot{height:150px}.parent-slot>.rarity-backdrop{height:112px;width:112px}#collection-grid,.friend-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.collection-breeding{padding:14px}.section-heading{gap:12px;align-items:flex-start;flex-direction:column}.card-info h3{font-size:14px}.friend-row .primary{padding:10px}}
.rarity-backdrop{padding:0!important}.monster-art .rarity-backdrop img{object-fit:contain!important}.reveal-art.rarity-backdrop{width:300px;height:300px;min-height:0;position:relative;overflow:hidden}.reveal-art.rarity-backdrop>img{height:100%;width:100%;object-fit:contain}.reveal-art.rarity-backdrop>.rarity-pill{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);white-space:nowrap}.detail-art>.rarity-backdrop{width:100%;height:100%}
.avatar-default{width:100%;height:100%;display:grid;place-items:center}.avatar-default .egg{position:relative;inset:auto;width:24px;height:32px;transform:none;margin:0}.avatar-default .egg b{font-size:12px}.avatar-default .egg i{display:none}

/* EGGLAB collection layout */
*{scrollbar-width:none}*::-webkit-scrollbar{display:none}
#collection>.collection-breeding{margin-top:0}
#parent-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:32px;overflow:auto}
#parent-dialog .parent-picker{grid-template-columns:repeat(6,minmax(0,1fr))}
#profile-menu #sound{font-size:12px;color:var(--muted);border:0;border-radius:0;height:auto;padding:10px 0;background:none}
#profile-menu #sound.on{color:var(--lime)}#sound:after{content:none}
.shop-head{width:145px;height:170px;object-fit:contain;z-index:1}.premium-eggs{display:flex;align-items:center;gap:8px;z-index:1}.premium-eggs .egg{position:relative!important;inset:auto!important;width:55px!important;height:75px!important;transform:rotate(-8deg)!important}.premium-eggs .egg:nth-child(2){transform:translateY(-16px) rotate(8deg)!important}.premium-eggs .egg b{font-size:20px}
#custom-dialog{width:min(560px,95vw);max-height:95dvh;overflow:auto;padding:32px}#custom-form{display:grid;gap:12px}#custom-dialog p{color:var(--muted);line-height:1.6}
@media(max-width:600px){#collection>.collection-breeding{margin-top:0}#collection .section-heading h1{margin-top:0}.parent-slot:has(img)>span{display:none}.parent-slot:has(img)>.rarity-backdrop{height:100%;width:100%;border-radius:0}#parent-dialog{padding:20px 12px}#parent-dialog .parent-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.parent-choice b{font-size:11px;padding:7px}.parent-choice{min-width:0}}

.premium-eggs{width:100%;justify-content:center;gap:6px}.premium-eggs .egg{flex:none;width:38px!important;height:54px!important}.premium-eggs .egg b{font-size:15px}

.breeding-modes{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.breeding-modes button{padding:12px 18px;border:1px solid #363d45;border-radius:12px;background:#1a1e24;color:#c4ccd7;font:inherit;cursor:pointer}.breeding-modes button[aria-pressed="true"]{background:#b4ed80;color:#152014;border-color:#b4ed80}#normal-parents[hidden],#feature-designer[hidden]{display:none}#feature-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.feature-slot{min-width:0;padding:12px;background:#191e25;border:1px solid #363d45;border-radius:16px;color:#e9edf3;cursor:pointer;display:grid;gap:8px;text-align:center;font:inherit}.feature-slot>span:first-child{font-size:13px;color:#b4ed80}.feature-slot .rarity-backdrop{width:100%;aspect-ratio:1;border-radius:12px;overflow:hidden}.feature-slot img{width:100%;height:100%;object-fit:contain}.feature-slot b{font-size:12px;overflow-wrap:anywhere}.feature-empty{display:grid;place-items:center;aspect-ratio:1;font-size:36px;color:#7b8696}.feature-slot:focus-visible,.breeding-modes button:focus-visible{outline:3px solid #b4ed80;outline-offset:3px}@media(max-width:600px){#feature-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feature-slot{padding:10px}}

#collection-grid.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-card .monster-art,.category-card .collection-egg,.category-empty{height:180px;aspect-ratio:auto}.category-card .rarity-backdrop{height:100%;aspect-ratio:auto}.category-card .card-info h3{display:flex;justify-content:space-between;align-items:center}.category-count{font-size:14px;color:#b4ed80;background:#283122;border-radius:20px;padding:4px 10px}.category-empty{display:grid;place-items:center;font-size:65px;color:#b4ed80;background:radial-gradient(ellipse at center,#303a2b,#1b2028)}.category-card:hover{border-color:#b4ed80}.starter-stack .collection-egg{position:relative}.stack-count{position:absolute;right:15px;top:15px;border-radius:20px;background:#b4ed80;color:#182014;font-weight:700;padding:8px 13px}.category-message{grid-column:1/-1;padding:35px 0;color:#b8bdc8}#collection-heading{scroll-margin-top:24px}@media(max-width:600px){#collection-grid.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card .monster-art,.category-card .collection-egg,.category-empty{height:135px}.category-card .card-info{padding:12px!important}.category-card .card-info p{line-height:1.4}}
.category-card>.monster-art,.category-card>.collection-egg{height:180px!important;min-height:0!important;aspect-ratio:auto!important;flex:none}.category-card>.monster-art>.rarity-backdrop{height:100%!important;aspect-ratio:auto!important}@media(max-width:600px){.category-card>.monster-art,.category-card>.collection-egg{height:135px!important}}
model-viewer{display:block;width:100%;height:100%;min-height:150px}.detail-art model-viewer{min-height:clamp(280px,50vw,540px)}
.model-slot{display:grid;place-items:center;gap:8px;width:156px;min-height:156px;margin:20px auto;padding:10px;border:1px dashed #889380;border-radius:16px;background:#20251f;color:inherit;cursor:pointer}.model-slot>span{font-size:38px;color:#b4ed80}.model-slot .rarity-backdrop{width:100%;aspect-ratio:1}
#info-dialog:has(.parent-picker){width:min(820px,94vw);max-height:85vh;overflow:auto}
.model-card>button{background:none;color:inherit;border:0;text-align:inherit;padding:0;font:inherit;cursor:pointer}.rarity-backdrop{position:relative}.rarity-backdrop model-viewer{width:100%;height:100%;min-height:0;background:transparent;--poster-color:transparent}.model-progress{position:absolute;bottom:8%;left:50%;transform:translateX(-50%);border-radius:16px;padding:5px 10px;background:#121820e6;color:white;font-size:12px;white-space:nowrap}
@keyframes model-bob{0%,100%{transform:translateY(1%)}50%{transform:translateY(-2%)}}@media(prefers-reduced-motion:no-preference){.rarity-backdrop model-viewer{animation:model-bob 4s ease-in-out infinite}}
#model-notices{position:fixed;bottom:20px;right:16px;z-index:1000;display:grid;gap:8px}#model-notices button{padding:14px;border:1px solid #b4ed80;background:#20251f;color:white;border-radius:12px;cursor:pointer}
