/* Illustrated gothic campaign. Images sit behind high-contrast readable controls. */
body:has(.realm-home:not([hidden])){background:#080a10}.realm-home{max-width:1480px;margin:auto;padding-top:15px}.realm-home .clean-home-heading{margin-bottom:18px}.realm-home .clean-home-heading h1{font-family:Georgia,serif;font-size:24px;font-weight:400;letter-spacing:.5px;color:#e7dfd3}.build-version{font-size:9px;color:#7c7d89;margin-left:12px}.realm-campaign{width:100%}.realm-destination{position:relative;isolation:isolate;min-height:480px;height:60vh;max-height:650px;border:1px solid #cbb48b35;border-radius:16px;overflow:hidden;background:#10121d;box-shadow:0 20px 80px #0008}.realm-landscape{position:absolute;inset:0;z-index:-2;background-image:var(--realm-scene),url('art/realms/castle-reference.png');background-position:center;background-size:cover;animation:realm-arrive .8s ease both}.realm-destination:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#070912f5 0%,#080a14df 28%,#0b0d1880 58%,#090a1650),linear-gradient(0deg,#080a14e0,transparent 45%)}.realm-destination-copy{position:relative;z-index:2;width:54%;max-width:660px;padding:clamp(25px,4vw,65px);padding-right:10px}.realm-destination .eyebrow{color:#c4ae87;font-size:9px;letter-spacing:3px;margin:0 0 25px}.realm-availability{color:var(--family);font-size:11px;letter-spacing:1px}.realm-destination h2{font:clamp(30px,3.5vw,53px)/1.12 Georgia,serif;letter-spacing:-1px;color:#fff1df;margin:12px 0 19px;text-wrap:balance;max-width:530px}.realm-synopsis{font-size:13px;line-height:1.85;color:#c4bfca;max-width:430px}.realm-route-summary{display:flex;flex-direction:column;gap:7px;margin:22px 0}.realm-route-summary>span{color:#d3ba91;letter-spacing:12px;font-family:Georgia;font-size:16px}.realm-route-summary>small{font-size:10px;color:#a29eaf}.realm-play.primary{background:linear-gradient(110deg,#eed6ac,#bfa175);color:#1c1720;min-width:250px;border:1px solid #ffe3b5;box-shadow:0 5px 25px #b99a5b25;font-weight:700;border-radius:5px;display:flex;justify-content:space-between;gap:25px;padding:16px 22px}.realm-play:disabled{filter:grayscale(1);opacity:.5}.realm-prizes{display:flex;gap:18px;color:#bab2a8;font-size:10px;margin-top:17px}.realm-host{position:absolute;right:5%;bottom:0;width:34%;height:94%;padding:0;overflow:hidden;background:transparent;border:0;border-radius:40% 40% 0 0;z-index:1;mask-image:linear-gradient(#000 88%,transparent)}.realm-host>img{width:100%;height:100%;object-fit:cover;object-position:50% 15%;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);transition:transform .6s;filter:drop-shadow(0 0 30px #000)}.realm-host:hover>img{transform:scale(1.035)}.realm-host>span{position:absolute;bottom:9%;left:10%;right:10%;padding:24px 8px 18px;background:linear-gradient(transparent,#06080ee8);display:grid;gap:7px}.realm-host small{font-size:8px;letter-spacing:3px;color:#d5bea0}.realm-host strong{font:25px Georgia;color:#fff0dd}.realm-host em{font-size:10px;font-style:normal;color:#d7bdde}.realm-chapter-navigation{position:absolute;bottom:22px;right:24px;z-index:3;display:flex;align-items:center;gap:17px;padding:7px 9px;background:#090b14bd;backdrop-filter:blur(15px);border:1px solid #c7ac7938;border-radius:5px}.realm-chapter-navigation button{background:none;border:0;color:#e5d1ae;font-size:19px;padding:3px 8px}.realm-chapter-navigation>span{font:18px Georgia;color:#ead5b1}.realm-chapter-navigation small{font-size:12px;color:#777887}.realm-chapters{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;margin-top:13px}.realm-chapters button{position:relative;text-align:left;overflow:hidden;min-height:85px;border:1px solid #ffffff13;border-radius:6px;padding:13px 10px;background:linear-gradient(#080a1355,#080a13ed),var(--tile-scene) center/cover;color:#beb6b5;transition:border-color .2s,transform .2s}.realm-chapters button.selected{border-color:#d4b780;color:#fff1d3;box-shadow:inset 0 -2px #d4b780}.realm-chapters button:hover{transform:translateY(-2px);border-color:#a38b64}.realm-chapters button.sealed{filter:saturate(.35)}.realm-chapters small{display:block;font-size:9px;color:#bdac93;margin-bottom:9px;letter-spacing:2px}.realm-chapters strong{font-size:10px;font-weight:500;line-height:1.35;display:block}.realm-home-footer{display:flex;align-items:center;justify-content:space-between;color:#85808d;font-size:11px;margin:16px 0}.realm-home-footer p{margin:0}.realm-home-footer button{color:#c5b18c;font-size:11px}.realm-card .card-art{background:#11131c!important;position:relative}.realm-card-portrait{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%;transition:transform .55s,filter .4s}.realm-card:hover .realm-card-portrait{transform:scale(1.065)}.realm-card .card-sigil{display:none}.realm-card .card-art video{z-index:2;opacity:0;transition:opacity .45s}.collection-button:hover .realm-card .card-art video,.realm-card.upgrade-preview:hover .card-art video{opacity:1}.realm-card-family{position:absolute;bottom:12px;left:12px;z-index:3;font:14px Georgia;color:#fff4e3;text-shadow:0 2px 6px #000}.realm-card .card-art:after{content:'';position:absolute;inset:0;z-index:2;background:linear-gradient(transparent 55%,#090b15d9);pointer-events:none}.realm-card .card-serial,.realm-card .card-rarity{z-index:4}.realm-card.unowned .realm-card-portrait{filter:grayscale(1) brightness(.3)}.realm-card.unowned .realm-card-family{color:#89838d}.realm-card .card-label h3{font-family:Georgia;font-size:16px;color:#f0e4d2}.realm-family-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.realm-family-tabs button{display:flex;align-items:center;gap:15px;overflow:hidden;padding:0;text-align:left;min-height:100px;background:#101019;border:1px solid #ffffff16;border-radius:9px;color:#dcd0c5}.realm-family-tabs button.selected{border-color:var(--family);box-shadow:0 0 25px color-mix(in srgb,var(--family),transparent 90%)}.realm-family-tabs img{width:85px;height:110px;object-fit:cover;object-position:50% 15%;mask-image:linear-gradient(90deg,#000 65%,transparent)}.realm-family-tabs span{display:grid;gap:8px}.realm-family-tabs strong{font:21px Georgia;color:var(--family)}.realm-family-tabs small{color:#8e8997;font-size:10px}.realm-profile-portrait.story-profile-sigil{width:170px;height:235px;border-radius:60px 60px 8px 8px;overflow:hidden;margin:0 0 16px 25px}.realm-profile-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 15%}.realm-intro-dialog{max-width:950px!important;width:90vw!important;padding:0!important;border:1px solid #bd9d6655!important;background:#0b0d16!important}.realm-intro-dialog #modal-body{padding:0}.realm-prologue{display:grid;grid-template-columns:40% 60%;min-height:510px;text-align:left}.realm-prologue-art{position:relative;overflow:hidden;background:#11121a}.realm-prologue-art img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:50% 15%}.realm-prologue-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#090b15e0,transparent 50%)}.realm-prologue-art span{position:absolute;bottom:28px;left:25px;z-index:1;color:#f5e6ce;font:24px Georgia}.realm-prologue-copy{padding:55px 40px 32px;display:flex;flex-direction:column;justify-content:center}.realm-prologue-copy .eyebrow{color:var(--family);font-size:9px;line-height:1.7;letter-spacing:2px}.realm-prologue-copy h2{font:34px/1.2 Georgia;color:#f4e5d0;text-wrap:balance;margin:18px 0}.realm-prologue-copy>p:not(.eyebrow){font-size:13px;line-height:1.95;color:#c5becc}.realm-prologue-copy .modal-actions{margin-top:23px;display:flex;gap:10px}.realm-prologue-copy .primary{background:#d9c099;color:#1a1720;font-size:12px;border-radius:5px}.realm-prologue-copy>#realm-intro-skip{font-size:10px;align-self:flex-start;color:#777281;margin-top:13px}.realm-intro-dots{display:flex;gap:6px;margin-top:10px}.realm-intro-dots i{height:3px;width:22px;background:#ffffff1c}.realm-intro-dots i.active{background:var(--family)}.modifier-offer .realm-card-portrait{opacity:1}.modifier-offer .upgrade-video-overlay{background:linear-gradient(transparent,#080a12f5 30%)}
@keyframes realm-arrive{from{transform:scale(1.035);opacity:.4}to{transform:scale(1);opacity:1}}
@media(max-height:820px){.realm-destination{height:56vh;min-height:390px}.realm-destination-copy{padding:28px 35px}.realm-destination .eyebrow{margin-bottom:15px}.realm-destination h2{font-size:36px;margin:10px 0}.realm-synopsis{font-size:12px;line-height:1.7}.realm-route-summary{margin:15px 0}.realm-chapters button{min-height:73px}.realm-home-footer{margin:10px 0}}
@media(max-width:1000px){.realm-destination-copy{width:62%}.realm-host{right:0;width:39%}.realm-destination h2{font-size:32px}.realm-chapters{overflow-x:auto;grid-template-columns:repeat(9,120px);padding-bottom:8px}.realm-prizes{gap:8px;font-size:9px}.realm-prologue-copy{padding:25px}.realm-prologue-copy h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.realm-landscape{animation:none}.realm-host>img,.realm-card-portrait{transition:none}}

#modal:not(.modifier-dialog):not(.pack-dialog) .realm-card .card-art video{opacity:1}

#upgrades .upgrade-card{background:linear-gradient(145deg,#17151b,#0b0d15);border-color:#bca47230;box-shadow:inset 0 1px #f9deaa10}#upgrades .upgrade-icon{background:radial-gradient(circle,#97774735,#0d1019);color:#e8cd96;border:1px solid #c6a97a40;box-shadow:0 0 22px #d3a95c10}#upgrades .section-heading h1,#album .section-heading h1{font-family:Georgia,serif;color:#f0e1cd}#album .section-heading em,#upgrades .section-heading em{color:#d3b88d}.realm-card .card-art video{pointer-events:none}.realm-card .card-label small{color:#c5b49c}
@media(max-height:760px){.realm-home{padding-top:0}.realm-home .clean-home-heading{margin-bottom:12px}.realm-destination{height:49vh;min-height:350px}.realm-destination-copy{padding:22px 33px}.realm-destination h2{font-size:31px}.realm-destination .eyebrow{margin-bottom:10px}.realm-route-summary{margin:12px 0}.realm-route-summary>small{font-size:9px}.realm-play.primary{padding:13px 19px}.realm-prizes{margin-top:12px}.realm-chapters button{min-height:65px;padding:9px}.realm-chapters strong{font-size:9px}.realm-home-footer{margin:8px 0}.realm-home-footer p{font-size:10px}}

.realm-card.pact-prism{--pact:#9cefc9}.realm-card.pact-fire{--pact:#ffad67}.realm-card.pact-row{--pact:#80dcff}.realm-card.pact-column{--pact:#c6f1ff}.realm-card.pact-cross{--pact:#ca9fff}.realm-card.pact-magnet{--pact:#f0a0e8}.realm-card .card-mechanic{color:var(--pact)!important;line-height:1.6}.realm-card:hover{box-shadow:0 0 24px color-mix(in srgb,var(--pact),transparent 78%)}.realm-card .card-label{background:linear-gradient(135deg,#1a1722,#0d1018)}.realm-card .card-rarity{letter-spacing:1.5px;text-shadow:0 1px 5px #000}

body:not(.reduced-motion) .realm-destination:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.4;background-image:radial-gradient(circle at 56% 75%,#edd3a5 0 1px,transparent 2px),radial-gradient(circle at 70% 20%,#cba2e1 0 1px,transparent 2px),radial-gradient(circle at 92% 55%,#e8cfa2 0 1px,transparent 2px);background-size:210px 220px,270px 310px,380px 300px;animation:realm-motes 22s linear infinite}@keyframes realm-motes{to{background-position:20px -220px,-30px -310px,35px -300px}}@media(prefers-reduced-motion:reduce){.realm-destination:after{animation:none!important}}
@media(max-height:760px){dialog.pack-dialog{padding:22px 30px}.pack-dialog h2{font-size:29px}.pack-dialog .reveal-card .card-art{height:29dvh;min-height:180px}.pack-dialog .card-back{height:40dvh}.pack-dialog .story-pack-line{margin:10px 0;padding:6px 12px}.pack-dialog .modal-actions{margin-top:14px}.pack-dialog .card-label{padding:10px 12px}.pack-dialog .reveal-card .card-label h3{font-size:17px}.pack-dialog .pack-cards{margin:16px 0}}

/* Hostess allegiance and realm-specific album editions. */
.hostess-dialog{max-width:1130px!important;width:94vw!important}.hostess-roster{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0;text-align:left}.hostess-roster-card{overflow:hidden;background:#11131b;border:1px solid #d7bc8130;border-radius:10px;display:grid;grid-template-columns:37% 63%;min-height:190px}.hostess-roster-card>img{width:100%;height:100%;object-fit:cover;object-position:center top}.hostess-roster-card>div{padding:17px 14px}.hostess-roster-card small{font-size:8px;color:#a6947d;letter-spacing:1px}.hostess-roster-card h3{font:20px Georgia;color:#eee0ce;margin:8px 0}.hostess-roster-card p{font-size:10px;color:#aaa0ad}.hostess-roster-card button{font-size:10px;padding:9px 10px}.hostess-roster-card .back{display:block;margin-top:7px}.hostess-roster-card.locked>img{filter:grayscale(.7) brightness(.5)}.hostess-roster-card.equipped{border-color:#ccefdc;box-shadow:0 0 22px #9de6c520}.hostess-album-banner{display:flex;gap:28px;padding:25px;background:linear-gradient(90deg,#10121af0,#10121ac9),var(--album-scene) center/cover;border:1px solid #d0b78235;border-radius:12px;margin:15px 0}.hostess-album-banner>img{width:140px;height:190px;object-fit:cover;object-position:center top;border-radius:60px 60px 8px 8px;border:1px solid #d9bd8240}.hostess-album-banner h2{font:30px Georgia;color:#f3e2cb;margin:9px 0}.hostess-album-banner p{font-size:12px;color:#b5aab9}.hostess-album-banner small{font-size:11px;color:#c7b491}.album-edition-counts{display:flex;gap:13px;margin:16px 0;font-size:10px}.album-edition-counts span:nth-child(1){color:#79bcff}.album-edition-counts span:nth-child(2){color:#b9a0ff}.album-edition-counts span:nth-child(3){color:#e79fda}.album-edition-counts span:nth-child(4){color:#e3c38b}.hostess-album-tabs{display:grid;grid-template-columns:repeat(9,1fr);gap:8px;margin:20px 0}.hostess-album-tabs button{display:flex;align-items:center;text-align:left;gap:7px;border:1px solid #ffffff14;background:#10121b;border-radius:5px;padding:0;overflow:hidden;color:#b9aebc}.hostess-album-tabs button.selected{border-color:#d2b780;color:#ffebca}.hostess-album-tabs img{width:35px;height:57px;object-fit:cover;object-position:center top}.hostess-album-tabs span{font-size:10px}.hostess-album-tabs small{display:block;font-size:8px;color:#8f8493;margin-top:5px}.realm-card .card-art video{opacity:1!important;object-fit:cover}.realm-card .card-art video[data-card-mode=still]{filter:none}.realm-card .card-rarity{font-size:8px}.realm-card .card-serial{font-size:8px}.realm-card.card-detail{max-width:340px;margin:15px auto}.realm-card.card-detail .card-art{height:300px}.equipped-hostess-bar{display:flex;align-items:center;justify-content:center;gap:20px;margin:10px 0}.equipped-hostess-bar>.secondary{padding:11px 17px;font-size:11px;border-color:#c3a67840;color:#d5c09e}.equipped-hostess-bar .home-pack-link{margin:0;font-size:11px}.map-hostess-button{font-size:10px;padding:8px 12px;margin-bottom:14px}.hostess-album-banner .pack-actions{margin-top:16px}.hostess-album-banner .pack-actions button{font-size:11px}
@media(max-width:1050px){.hostess-roster{grid-template-columns:repeat(2,1fr)}.hostess-album-tabs{overflow-x:auto;grid-template-columns:repeat(9,108px)}}
@media(max-height:760px){.hostess-album-banner>img{height:160px;width:112px}.hostess-album-banner{padding:18px}.hostess-album-banner h2{font-size:26px}.hostess-album-banner .eyebrow{margin:0}.equipped-hostess-bar{margin:5px 0}.equipped-hostess-bar>.secondary{padding:8px 13px}}

.realm-category-tag{display:block;font:7px sans-serif;letter-spacing:1.5px;margin-top:6px;color:#bd9bd2}.realm-chapters button:nth-child(n+7){border-style:dashed}

/* Each rarity owns a complete row, from Legendary down to Common. */
#album-grid.album-grid{display:block}.album-rarity-row{margin:0 0 34px}.album-rarity-row>header{display:flex;align-items:center;gap:18px;margin:0 0 15px;padding:14px 0 10px;border-bottom:1px solid #ffffff12}.album-rarity-title{font:26px Georgia,serif;margin:0;color:#75bcff}.album-rarity-title.epic{color:#ec9cd7}.album-rarity-title.rare{color:#b9a0ff}.album-rarity-row>header>span{font-size:10px;letter-spacing:1px;color:#918a9b}.album-rarity-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.album-rarity-cards .collection-button{width:100%;min-width:0}.album-rarity-cards .card-art{height:clamp(180px,19vw,290px)}.album-rarity-cards .card-label{padding:13px 10px}.album-rarity-cards .card-label h3{font-size:clamp(12px,1.2vw,18px);line-height:1.35}.album-rarity-cards .card-label small{font-size:8px}.album-rarity-cards .card-mechanic{font-size:9px}.album-rarity-cards .card-rarity{font-size:7px;letter-spacing:.6px}.album-rarity-cards .realm-card-family{font-size:11px;left:9px;bottom:11px}
/* Negative percentage offsets translate the repeated gradient to the right. */
.album-edition-counts .legendary,.album-rarity-title.legendary,.collectible.legendary .card-label h3,.collectible.legendary .card-rarity,.announcement-legendary{color:transparent!important;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,#ff6e9c 0%,#ffb85e 16.666%,#fff28a 33.333%,#8fffc1 50%,#7ddcff 66.666%,#c399ff 83.333%,#ff6e9c 100%);background-size:200% 100%;background-repeat:repeat-x;background-clip:text;-webkit-background-clip:text;text-shadow:none;filter:none;animation:album-rainbow-flow 5s linear infinite}
#rarity-announcement.announcement-legendary.show{animation:rarity-word 1.8s ease forwards,album-rainbow-flow 5s linear infinite}
@keyframes album-rainbow-flow{from{background-position:0% 50%}to{background-position:-200% 50%}}
.reduced-motion .album-edition-counts .legendary,.reduced-motion .album-rarity-title.legendary,.reduced-motion .collectible.legendary .card-label h3,.reduced-motion .collectible.legendary .card-rarity{animation:none}
@media(prefers-reduced-motion:reduce){.album-edition-counts .legendary,.album-rarity-title.legendary,.collectible.legendary .card-label h3,.collectible.legendary .card-rarity{animation:none!important}}

.album-rarity-cards .card-rarity{top:32px;bottom:auto;left:9px;right:auto;max-width:calc(100% - 18px);padding:4px 0;text-align:left}.album-rarity-cards .card-serial{left:9px}

/* Epic nebulae and Rare crystal light; Legendary keeps its rainbow flow. */
.card-rarity-aura{position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:6;pointer-events:none;isolation:isolate}.card-rarity-aura::before,.card-rarity-aura::after{content:'';position:absolute;pointer-events:none}.card-aura-star{position:absolute;left:var(--star-x);top:var(--star-y);font-size:var(--star-size);font-style:normal;line-height:1;color:#fff6ff;opacity:.9;text-shadow:0 0 5px #fff,0 0 12px #d798ff,0 0 20px #8e6dff;animation:epic-star-twinkle 3.8s ease-in-out infinite;animation-delay:var(--star-delay)}
.collectible.epic{border-color:#dcadff;box-shadow:0 0 14px #a55aff40,inset 0 0 18px #b969ff12}.epic .card-rarity-aura::before{inset:-45%;background:radial-gradient(ellipse at 20% 35%,#7948e13d,transparent 39%),radial-gradient(ellipse at 76% 68%,#e660bb2e,transparent 35%),radial-gradient(ellipse at 45% 90%,#47c5ff29,transparent 35%);mix-blend-mode:screen;animation:epic-nebula-drift 19s linear infinite}.epic .card-rarity-aura::after{inset:0;border-radius:inherit;box-shadow:inset 0 0 16px #a276ff38,inset 0 0 2px #f5d7ff88;background:linear-gradient(120deg,transparent 35%,#e7d8ff14 48%,transparent 62%);background-size:300% 100%;animation:epic-edge-sheen 7s ease-in-out infinite}.collection-button:hover .epic,.modifier-offer:hover .epic{box-shadow:0 0 27px #b58aff73,0 0 7px #e9d1ff60}.collectible.unowned .card-rarity-aura{opacity:.22}
.album-edition-counts .epic,.album-rarity-title.epic,.collectible.epic .card-label h3,.collectible.epic .card-rarity{color:transparent!important;-webkit-text-fill-color:transparent;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.8px),radial-gradient(circle,#bff4ff 0 .8px,transparent 1.7px),linear-gradient(100deg,#bb8bff,#e6c3ff,#fff0fe,#8fdfff,#d9a2ff,#bb8bff);background-size:23px 17px,37px 29px,240% 100%;background-position:0 0,13px 7px,0 50%;background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 0 5px #b88aff80);text-shadow:none;animation:epic-cosmic-type 9s linear infinite}
.album-rarity-title.epic{position:relative;padding-right:55px}.album-rarity-title.epic::after{content:'✦  ✧';position:absolute;right:0;top:8px;font:13px Georgia;letter-spacing:7px;color:#e9d2ff;-webkit-text-fill-color:#e9d2ff;text-shadow:0 0 9px #bd8dff;animation:epic-star-twinkle 3.8s ease-in-out infinite}
.collectible.rare{border-color:#60bbff;box-shadow:0 0 10px #208fff26}.rare .card-rarity-aura::before{inset:0;border-radius:inherit;background:linear-gradient(133deg,transparent 20%,#72c8ff16 20.4%,transparent 21%),linear-gradient(43deg,transparent 72%,#9deaff16 72.4%,transparent 73%);box-shadow:inset 0 0 11px #45b4ff23}.rare .card-rarity-aura::after{inset:-30%;background:linear-gradient(112deg,transparent 42%,#a2ddff0a 47%,#e1eeff55 50%,#69c8ff0c 53%,transparent 58%);transform:translateX(-110%);animation:rare-crystal-sweep 8s ease-in-out infinite}.rare .card-aura-star{color:#dcf3ff;text-shadow:0 0 5px #c2eaff,0 0 11px #208fff;animation-duration:5s}.collection-button:hover .rare,.modifier-offer:hover .rare{box-shadow:0 0 20px #60baff66}
.album-edition-counts .rare,.album-rarity-title.rare,.collectible.rare .card-label h3,.collectible.rare .card-rarity{color:transparent!important;-webkit-text-fill-color:transparent;background:linear-gradient(105deg,#258fff 15%,#70c6ff 35%,#f2fbff 49%,#9adfff 56%,#258fff 80%);background-size:240% 100%;background-clip:text;-webkit-background-clip:text;text-shadow:none;filter:drop-shadow(0 0 3px #299fff49);animation:rare-crystal-type 8s linear infinite}.album-rarity-title.rare{position:relative;padding-right:24px}.album-rarity-title.rare::after{content:'◇';position:absolute;right:0;top:8px;font:14px Georgia;color:#b5dcff;-webkit-text-fill-color:#b5dcff;filter:drop-shadow(0 0 4px #70cfff)}
@keyframes epic-star-twinkle{0%,100%{opacity:.2;transform:scale(.65) rotate(-12deg)}45%,60%{opacity:1;transform:scale(1.18) rotate(12deg)}}
@keyframes epic-nebula-drift{from{transform:rotate(0deg) scale(1)}50%{transform:rotate(180deg) scale(1.08)}to{transform:rotate(360deg) scale(1)}}
@keyframes epic-edge-sheen{0%,25%{background-position:100% 50%}70%,100%{background-position:-100% 50%}}
@keyframes epic-cosmic-type{from{background-position:0 0,13px 7px,0 50%}to{background-position:46px 34px,-61px 65px,-240% 50%}}
@keyframes rare-crystal-sweep{0%,50%{transform:translateX(-110%);opacity:0}58%{opacity:.7}82%{opacity:.7}95%,100%{transform:translateX(110%);opacity:0}}
@keyframes rare-crystal-type{from{background-position:0% 50%}to{background-position:-240% 50%}}
.reduced-motion .card-rarity-aura::before,.reduced-motion .card-rarity-aura::after,.reduced-motion .card-aura-star,.reduced-motion .album-rarity-title:is(.epic,.rare),.reduced-motion .album-rarity-title.epic::after,.reduced-motion .collectible:is(.epic,.rare) .card-label h3,.reduced-motion .collectible:is(.epic,.rare) .card-rarity{animation:none!important}
@media(prefers-reduced-motion:reduce){.card-rarity-aura::before,.card-rarity-aura::after,.card-aura-star,.album-rarity-title:is(.epic,.rare),.album-rarity-title.epic::after,.collectible:is(.epic,.rare) .card-label h3,.collectible:is(.epic,.rare) .card-rarity{animation:none!important}}

.realm-element-tag{display:flex;align-items:center;gap:9px;color:var(--element);font-size:12px;margin:12px 0 0;text-shadow:0 0 15px color-mix(in srgb,var(--element),transparent 60%)}.realm-element-tag small{font-size:7px;letter-spacing:1.5px;color:#9d98a8}.realm-rule-card{border:1px solid color-mix(in srgb,var(--element),transparent 70%);border-left:2px solid var(--element);border-radius:9px;background:#10121ad9;padding:12px 15px;margin-bottom:14px}.realm-rule-card>small{display:block;font-size:8px;letter-spacing:1.8px;color:#aaa0b5}.realm-rule-card>strong{display:block;font:20px Georgia;color:var(--element);margin:6px 0}.realm-rule-card>p{font-size:11px;line-height:1.6;color:#c5bdcc;margin:5px 0}.realm-rule-card>span{font-size:9px;color:#8d8499}.hostess-collection-state{font-size:10px;color:#b8aacb}.phase-equipped-upgrade{display:none}

/* Larger album portraits: three generous columns instead of six narrow ones. */
.album-rarity-cards{grid-template-columns:repeat(3,minmax(0,300px));gap:24px}.album-rarity-cards .card-art{height:clamp(340px,32vw,430px)}.album-rarity-cards .card-label{padding:17px 15px}.album-rarity-cards .card-label h3{font-size:21px}.album-rarity-cards .card-label small{font-size:10px}.album-rarity-cards .card-mechanic{font-size:11px}.album-rarity-cards .realm-card-family{font-size:15px;left:14px;bottom:15px}.album-rarity-cards .card-rarity{font-size:9px;letter-spacing:1px;left:14px;top:39px}.album-rarity-cards .card-serial{font-size:9px;left:14px}
/* Ambient color follows the hostess's actual element. */
.realm-element-fire .realm-landscape{filter:sepia(.5) saturate(1.7) hue-rotate(325deg)}.realm-element-fire:before{background:linear-gradient(90deg,#130909f7,#210d0bdc 30%,#2b100958 70%),linear-gradient(0deg,#130806dc,transparent 65%)}.realm-element-fire:after{filter:sepia(1) saturate(5) hue-rotate(330deg)}
.realm-element-column .realm-landscape{filter:saturate(.65) hue-rotate(12deg)}.realm-element-column:before{background:linear-gradient(90deg,#080f1af5,#0d1927da 30%,#17344b38 70%),linear-gradient(0deg,#07121ddd,transparent 65%)}
.realm-element-cross .realm-landscape{filter:saturate(1.2)}.realm-element-prism .realm-landscape{filter:saturate(1.15)}

/* Locked realm previews are monochrome, with explicit lock symbols. */
.realm-lock-icon{width:21px;height:24px;flex:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.realm-destination.realm-locked{filter:grayscale(1);border-color:#77778045}.realm-locked .realm-host>img{filter:grayscale(1) brightness(.42)}.realm-locked .realm-landscape{filter:grayscale(1) brightness(.45)}.realm-locked:before{background:linear-gradient(90deg,#090a10f5,#0a0b12d9 35%,#07080b66 75%),linear-gradient(0deg,#07080be6,transparent 65%)}.realm-locked:after{display:none}.realm-locked .realm-availability{color:#b6b5bc}.realm-locked .realm-element-tag{color:#a4a3ac;text-shadow:none}.realm-lock-seal{position:absolute;right:20%;top:46%;transform:translate(50%,-50%);z-index:4;display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 26px;border:1px solid #dddde433;border-radius:15px;background:#090a11c7;box-shadow:0 8px 40px #0009;backdrop-filter:blur(8px);color:#e4e4eb;pointer-events:none}.realm-lock-seal .realm-lock-icon{width:43px;height:48px}.realm-lock-seal strong{font-size:9px;letter-spacing:3px;font-weight:500}.realm-locked .realm-play{justify-content:flex-start;gap:10px}.realm-locked .realm-play .realm-lock-icon{width:15px;height:18px}.realm-chapters button.sealed{filter:grayscale(1);background-blend-mode:saturation;border-color:#ffffff16;color:#95949e}.realm-chapters button.sealed small{display:flex;align-items:center;justify-content:space-between;color:#d0ced5}.realm-chapters .realm-lock-icon{width:14px;height:16px;filter:drop-shadow(0 1px 4px #000)}.realm-chapters button.sealed .realm-category-tag{color:#85828d}.realm-profile-portrait.is-locked img{filter:grayscale(1) brightness(.55)}

/* Common editions are neutral white; rare editions use blue crystal light. */
.album-edition-counts .common,.album-rarity-title.common,.collectible.common .card-label h3,.collectible.common .card-rarity{color:#fff!important;-webkit-text-fill-color:#fff;background:none;text-shadow:0 0 9px #ffffff20}

.album-edition-counts{flex-wrap:wrap}.album-edition-counts span{display:inline-block}

.reduced-motion .album-edition-counts span{animation:none!important}@media(prefers-reduced-motion:reduce){.album-edition-counts span{animation:none!important}}

/* Hostess identities: animated element-colored lettering, independent of card rarity. */
.hostess-name{display:inline-block;color:var(--name-glow)!important;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,var(--name-dark),var(--name-glow) 25%,var(--name-light) 48%,var(--name-glow) 70%,var(--name-dark));background-size:200% 100%;background-repeat:repeat-x;background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--name-glow) 45%,transparent));animation:hostess-element-flow 5s linear infinite}
.hostess-name-0{--name-dark:#7c42cf;--name-glow:#bd82ff;--name-light:#f0d4ff}
.hostess-name-1{--name-dark:#ad174b;--name-glow:#ff497e;--name-light:#ffc0ce}
.hostess-name-2{--name-dark:#589bbe;--name-glow:#b5eaff;--name-light:#fff6da}
.hostess-name-3{--name-dark:#b51620;--name-glow:#ff4932;--name-light:#ffd285;animation-duration:3s;text-shadow:0 -2px 9px #ff461835}
.hostess-name-4{--name-dark:#5445c9;--name-glow:#ab91ff;--name-light:#e9dbff}
.hostess-name-5{--name-dark:#3c9bbd;--name-glow:#8beaff;--name-light:#efffff}
.hostess-name-6{--name-dark:#3275bd;--name-glow:#72caff;--name-light:#e2faff}
.hostess-name-7{--name-dark:#6855c9;--name-glow:#ce98ff;--name-light:#fff0ff}
.hostess-name-8{--name-dark:#d58e40;--name-glow:#ffe099;--name-light:#fffbe3;background-image:linear-gradient(90deg,#ff98ad,#ffde8b,#a2f4d0,#8bdcff,#c7a9ff,#ff98ad)}
@keyframes hostess-element-flow{from{background-position:200% 50%}to{background-position:0% 50%}}
.reduced-motion .hostess-name{animation:none}@media(prefers-reduced-motion:reduce){.hostess-name{animation:none}}

/* Keep the hostess portrait visible until the browser has a decoded frame. */
.realm-card .card-art video[data-card-mode]{opacity:0!important;transition:opacity .3s;background:transparent}
.realm-card .card-art video.card-video-ready{opacity:1!important}
.card-media-status{position:absolute;bottom:48px;left:12px;z-index:5;padding:5px 8px;border-radius:5px;background:#080b15cf;color:#dce2ef;font:10px sans-serif;pointer-events:none}
.card-media-ready .card-media-status{display:none}.card-media-error .card-media-status{font-size:0}.card-media-error .card-media-status:after{content:'Preview unavailable';font-size:10px}
