/* Stage 56–58 visual/cache layer */
.portal-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('/assets/generated/portal/hero_overlay.png');
  background-size:cover;
  background-position:center;
  opacity:.28;
  mix-blend-mode:screen;
  pointer-events:none;
}
.portal-hero .hero-crest{
  width:88px;height:88px;border-radius:26px;overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 14px 34px rgba(0,0,0,.26), inset 0 0 16px rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
}
.portal-hero .hero-crest img{width:100%;height:100%;object-fit:cover;display:block}
.portal-hero .hero-topline{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.pt-card{position:relative;overflow:hidden}
.pt-card-art{position:relative;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);margin:0 14px 8px;height:84px;background:rgba(255,255,255,.04)}
.pt-card-art img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.04) contrast(1.02)}
.pt-card-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.42));pointer-events:none}
.pt-card--daily .pt-card-art{box-shadow:0 0 0 1px rgba(255,214,102,.10),0 18px 42px rgba(255,174,44,.10)}
.pt-card--season .pt-card-art{box-shadow:0 0 0 1px rgba(113,232,255,.10),0 18px 42px rgba(83,128,255,.10)}
.pt-card--contracts .pt-card-art{box-shadow:0 0 0 1px rgba(196,154,255,.10),0 18px 42px rgba(113,65,255,.10)}
.pt-card--events .pt-card-art{box-shadow:0 0 0 1px rgba(255,152,131,.10),0 18px 42px rgba(185,67,65,.10)}
.pt-card--rifts .pt-card-art{box-shadow:0 0 0 1px rgba(131,255,208,.10),0 18px 42px rgba(35,166,130,.10)}
.pt-card .card-title{position:relative;z-index:1}
.pt-card .card-body,.pt-card .card-actions{position:relative;z-index:1}

.boost .boost__art,
.boost .spell__art{display:block;width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.28));margin:0 auto 4px}
.boost{position:relative;overflow:hidden}
.boost::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 20%, rgba(255,255,255,.12), rgba(255,255,255,0) 65%);pointer-events:none}
.boost--energy{min-width:94px}

.booster-cast-fx{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none; opacity:0; z-index:9; transition:opacity .14s ease;
}
.booster-cast-fx.show{opacity:1}
.booster-cast-fx__portal{
  position:absolute; width:min(58vw,360px); aspect-ratio:1/1; border-radius:50%;
  background:radial-gradient(circle at center, rgba(110,232,255,.26) 0%, rgba(110,232,255,.12) 36%, rgba(110,232,255,0) 68%);
  filter:blur(3px); animation:boosterPortalPulse .82s ease forwards;
}
.booster-cast-fx__ring{
  position:absolute; width:min(44vw,260px); aspect-ratio:1/1; border-radius:50%;
  border:2px solid rgba(180,238,255,.62); box-shadow:0 0 32px rgba(120,220,255,.26), inset 0 0 24px rgba(255,255,255,.10);
  animation:boosterRingSpin .82s ease forwards;
}
.booster-cast-fx__img{
  position:relative; z-index:2; width:min(24vw,148px); max-width:148px; aspect-ratio:1/1; object-fit:contain;
  filter:drop-shadow(0 14px 26px rgba(0,0,0,.38)); animation:boosterIconBurst .82s ease forwards;
}
.booster-cast-fx__label{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  padding:8px 14px; border-radius:999px; background:rgba(7,12,26,.82); color:#eefbff; font-weight:900;
  border:1px solid rgba(255,255,255,.14); box-shadow:0 12px 32px rgba(0,0,0,.26);
  letter-spacing:.02em; text-transform:uppercase; font-size:.78rem; z-index:2; animation:boosterTextRise .82s ease forwards;
}
.booster-cast-fx[data-tone="fire"] .booster-cast-fx__portal{background:radial-gradient(circle at center, rgba(255,136,95,.32) 0%, rgba(255,136,95,.15) 36%, rgba(255,136,95,0) 70%)}
.booster-cast-fx[data-tone="ice"] .booster-cast-fx__portal{background:radial-gradient(circle at center, rgba(154,244,255,.30) 0%, rgba(154,244,255,.14) 36%, rgba(154,244,255,0) 70%)}
.booster-cast-fx[data-tone="void"] .booster-cast-fx__portal{background:radial-gradient(circle at center, rgba(199,130,255,.30) 0%, rgba(199,130,255,.14) 36%, rgba(199,130,255,0) 70%)}
.booster-cast-fx[data-tone="blood"] .booster-cast-fx__portal{background:radial-gradient(circle at center, rgba(255,121,152,.30) 0%, rgba(255,121,152,.14) 36%, rgba(255,121,152,0) 70%)}
@keyframes boosterPortalPulse{0%{transform:scale(.42);opacity:0}35%{opacity:1}100%{transform:scale(1.08);opacity:0}}
@keyframes boosterRingSpin{0%{transform:scale(.55) rotate(-80deg);opacity:0}25%{opacity:1}100%{transform:scale(1.12) rotate(90deg);opacity:0}}
@keyframes boosterIconBurst{0%{transform:scale(.22) rotate(-16deg);opacity:0}35%{opacity:1}65%{transform:scale(1.06) rotate(8deg)}100%{transform:scale(.96) rotate(0deg);opacity:0}}
@keyframes boosterTextRise{0%{transform:translate(-50%,12px);opacity:0}30%{opacity:1}100%{transform:translate(-50%,-4px);opacity:0}}

.chrono-mob-card{position:relative;overflow:hidden}
.chrono-mob-card::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 22%, rgba(121,237,255,.18), rgba(121,237,255,0) 62%);pointer-events:none}

@media (max-width: 768px){
  .portal-hero .hero-crest{width:72px;height:72px;border-radius:20px}
  .pt-card-art{height:72px;margin:0 12px 8px}
  .booster-cast-fx__label{bottom:12px;font-size:.72rem}
}
