
/* Artem rescue pass 2026-03-27: mobile calm + portal hierarchy + workshop polish */
.portal-hero,.pt-card,.pt-contract-row,.pt-event-row,.pt-base-card,.boss-scroll-slot,.boss-craft-card{
  transform:translateZ(0);
  backface-visibility:hidden;
}
.portal-hero{isolation:isolate;contain:paint;}
.portal-hero .hero-bg,.portal-hero .hero-overlay{backface-visibility:hidden;}

/* Battle event toasts: keep them under boosters, not centered over the board */
body.battle-page .battle-info-strip,
body.arena-page .battle-info-strip{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:58px;
  margin:6px 0 12px !important;
}
body.battle-page .battle-event-toast,
body.arena-page .battle-event-toast{
  position:relative !important;
  left:auto !important;
  top:auto !important;
  width:min(92vw,560px) !important;
  max-width:min(92vw,560px) !important;
  margin:0 auto !important;
  opacity:0;
  transform:translateY(8px) scale(.985) !important;
  z-index:16 !important;
  pointer-events:none !important;
}
body.battle-page .battle-event-toast.is-visible,
body.arena-page .battle-event-toast.is-visible{
  opacity:1;
  transform:translateY(0) scale(1) !important;
}
body.battle-page .battle-event-toast.is-leaving,
body.arena-page .battle-event-toast.is-leaving{
  opacity:0;
  transform:translateY(-10px) scale(.98) !important;
}
body.battle-page .battle-event-toast__card,
body.arena-page .battle-event-toast__card{
  backdrop-filter:blur(10px);
}
@media (max-width: 768px){
  body.battle-page .battle-info-strip,
  body.arena-page .battle-info-strip{ min-height:52px; margin:4px 0 10px !important; }
  body.battle-page .battle-event-toast,
  body.arena-page .battle-event-toast{ width:min(94vw,94vw) !important; max-width:min(94vw,94vw) !important; }
}

/* Boss feed: sits visually under HP bars */
.chrono-boss-stage__hud{position:relative;}
.chrono-boss-stage__feed--inline{
  margin-top:10px;
  min-height:54px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(126,193,255,.18);
  background:linear-gradient(180deg,rgba(9,17,36,.88),rgba(7,11,24,.92));
  box-shadow:0 10px 24px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.03);
}

/* Workshop polish */
.boss-scroll-slot,
.boss-craft-card{
  position:relative;
  overflow:hidden;
}
.boss-scroll-slot::before,
.boss-craft-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(103,214,255,.10), transparent 45%, rgba(255,214,102,.07) 85%);
}
.boss-scroll-slot__icon{
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 24px rgba(0,0,0,.18);
}
.boss-scroll-slot__body b,
.boss-scroll-slot__body small,
.boss-scroll-slot__count,
.boss-craft-card b,
.boss-craft-card span{position:relative;z-index:1;}
.boss-scroll-slot__count{
  min-width:92px !important;
  text-align:center;
  font-size:.94rem;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 10px 24px rgba(0,0,0,.18);
}
.boss-scroll-slot.is-ready{
  box-shadow:0 0 0 1px rgba(102,255,184,.20),0 18px 38px rgba(0,0,0,.24),0 0 28px rgba(102,255,184,.14);
}
.boss-craft-grid{gap:12px !important;}
.boss-craft-card{
  min-height:116px;
  padding:16px !important;
  border-radius:22px !important;
  border:1px solid rgba(255,255,255,.11) !important;
  background:linear-gradient(180deg,rgba(17,26,54,.94),rgba(8,13,29,.96)) !important;
  box-shadow:0 16px 36px rgba(0,0,0,.22);
  text-align:left;
}
.boss-craft-card:hover{transform:translateY(-2px);}
.boss-craft-card b{display:block;font-size:1rem !important;margin-bottom:8px;color:#fff;}
.boss-craft-card span{display:block;line-height:1.45;font-size:.82rem !important;color:rgba(255,255,255,.78) !important;}
.boss-craft-card[data-boss-craft="boss_scroll"]{border-color:rgba(103,214,255,.26) !important; box-shadow:0 16px 36px rgba(0,0,0,.22),0 0 28px rgba(103,214,255,.08);}
.boss-craft-card[data-boss-craft="boss_cert"]{border-color:rgba(255,214,102,.24) !important; box-shadow:0 16px 36px rgba(0,0,0,.22),0 0 28px rgba(255,214,102,.07);}
.boss-craft-card[data-boss-craft="boss_anchor"]{border-color:rgba(164,140,255,.26) !important; box-shadow:0 16px 36px rgba(0,0,0,.22),0 0 28px rgba(164,140,255,.08);}
.boss-craft-card[data-boss-craft="ally_flare"]{border-color:rgba(92,246,186,.22) !important; box-shadow:0 16px 36px rgba(0,0,0,.22),0 0 28px rgba(92,246,186,.07);}

/* Inventory stack soft cap label */
.pt-item-stackcap{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.82);
  font-size:.74rem;
  font-weight:900;
}

/* Portal/CU: reduce mobile flicker and calm first screen */
@media (max-width: 860px){
  .portal-container{
    padding:14px 8px 22px;
    background:
      radial-gradient(720px 360px at 15% -8%, rgba(92,76,255,.20), transparent 58%),
      radial-gradient(560px 360px at 90% 0%, rgba(60,210,255,.12), transparent 55%),
      linear-gradient(180deg,#070a12,#0b1230);
  }
  .portal-hero{
    box-shadow:0 12px 28px rgba(0,0,0,.24), 0 0 0 1px rgba(120,190,255,.14);
  }
  .portal-hero .hero-bg{
    filter:brightness(.58) saturate(1.02) !important;
    transform:none !important;
    will-change:auto !important;
  }
  .portal-hero .hero-bg::after{
    display:none !important;
    opacity:0 !important;
  }
  .portal-hero .hero-overlay{
    background:
      radial-gradient(680px 220px at 12% 12%, rgba(100,190,255,.08), transparent 55%),
      linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.66));
  }
  .hero-title{font-size:1.46rem !important; letter-spacing:.12em !important;}
  .hero-subtitle{font-size:.84rem !important;}
  .hero-stats{gap:8px;}
  .badge-game{font-size:.74rem !important; padding:5px 9px !important; box-shadow:none;}
  .portal-grid{gap:10px;}
  .pt-card{
    box-shadow:0 10px 24px rgba(0,0,0,.20) !important;
    border-color:rgba(120,190,255,.15) !important;
    backdrop-filter:none !important;
  }
  .pt-contract-row,.pt-event-row,.pt-live-tip,.pt-daily-note,.pt-boost-mini,
  .pt-daily-slot,.pt-card-art,.pt-card-art img,.pt-wave-timer,.pt-state-pill,
  .pt-profile-avatar,.pt-profile-avatar img{
    filter:none !important;
    backdrop-filter:none !important;
    will-change:auto !important;
  }
  .pt-daily-slot.is-glow,
  .pt-daily-slot.is-ready .pt-daily-slot__icon,
  .boost.is-ready,
  .gem.pt-idle-suggest,
  .pt-portal-fx__ring,
  .hud-bell,
  .hud-bell-img,
  #hudBellBtn{
    animation:none !important;
  }
  .pt-card--contracts .card-body,
  .pt-card--events .card-body{display:grid;gap:8px;}
  .pt-contract-row,.pt-event-row,.pt-live-tip{margin-top:0 !important;}
  .pt-mini-cta,.btn-neon{min-height:42px;}
}


/* Portal / Center / Character broad rescue pass */
.portal-page .portal-filter-tabs,
.center-page #centerFilters{
  gap:8px !important;
}
.portal-page .portal-filter-tabs .nav-link,
.center-page #centerFilters [data-center-filter]{
  border-radius:14px !important;
  font-weight:900 !important;
  letter-spacing:.01em;
}
.portal-page .hero-content{gap:14px;}
.portal-page .hero-topline{align-items:center;gap:14px;}
.portal-page .hero-crest{box-shadow:0 14px 32px rgba(0,0,0,.22);}
.portal-page .hero-stats{display:flex;flex-wrap:wrap;gap:10px;}
.portal-page .fight-hint{max-width:520px;color:rgba(255,255,255,.74);}
.portal-page .portal-pane-grid{gap:12px !important;}
.portal-page .pt-card .card-title,
.center-page .panel-title{letter-spacing:.12em;}
.portal-page .pt-card,
.center-page .pt-note-card,
.center-page .mini-box{
  box-shadow:0 14px 32px rgba(0,0,0,.24) !important;
}
.portal-page .pt-card .card-actions,
.center-page .pt-note-actions{
  gap:8px;
}
@media (max-width:860px){
  .portal-page .hero-topline{align-items:flex-start;}
  .portal-page .hero-crest{width:66px !important;height:66px !important;}
  .portal-page .portal-filter-tabs{padding:2px 0 6px;}
  .portal-page .portal-filter-tabs .nav-link,
  .center-page #centerFilters [data-center-filter]{
    font-size:.78rem !important;
    padding:8px 12px !important;
    min-height:40px;
  }
  .portal-page .pt-card .card-title{font-size:.92rem !important;}
  .portal-page .hero-title{font-size:1.38rem !important;}
  .center-page .panel-header{padding:12px !important;}
  .center-page .panel-sub{font-size:.82rem !important;}
  .center-page .pt-note-head,
  .center-page .mini-box{padding:12px !important;}
}

/* Character / skins frame using supplied art */
.skins-page #char-pane-hero .pt-char-stage__hero{
  align-items:flex-start;
  gap:18px;
}
.skins-page .pt-character-equip{
  position:relative;
  width:min(420px,100%);
  margin-inline:auto;
  padding:0 !important;
  overflow:visible;
}
.skins-page .pt-character-equip__ring{
  position:relative;
  width:100%;
  aspect-ratio:1365/2048 !important;
  display:block !important;
  background:url('/uploads/ui/skins/portal_skin_frame.png') center/contain no-repeat;
}
.skins-page .pt-character-equip__ring::before,
.skins-page .pt-character-equip__ring::after,
.skins-page .pt-character-equip::before,
.skins-page .pt-character-equip::after{
  display:none !important;
  content:none !important;
}
.skins-page .pt-character-equip__frame{
  display:none !important;
}
.skins-page .pt-char-portrait{
  position:absolute !important;
  left:50%;
  top:30.1%;
  width:32.6%;
  height:31.8%;
  transform:translateX(-50%) !important;
  z-index:2 !important;
  overflow:hidden;
  border:none !important;
  border-radius:44% 44% 18% 18% / 34% 34% 14% 14%;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
}
.skins-page .pt-char-portrait::before,
.skins-page .pt-char-portrait::after{
  display:none !important;
  content:none !important;
}
.skins-page .pt-char-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%;
  display:block;
  background:transparent;
}
.skins-page .pt-character-equip__nameplate{
  position:absolute;
  left:19%;
  right:19%;
  bottom:7.1%;
  z-index:2;
  text-align:center;
  font-weight:1000;
  font-size:clamp(.88rem,2.5vw,1.14rem);
  letter-spacing:.05em;
  text-transform:uppercase;
  line-height:1.12;
  background:linear-gradient(90deg,#7ae4ff 0%,#8dd8ff 18%,#b78cff 38%,#ffd66b 58%,#8dffec 78%,#7ae4ff 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 18px rgba(122,228,255,.10);
  animation:artemRgbShift 8s linear infinite;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@keyframes artemRgbShift{0%{background-position:0 50%}100%{background-position:220% 50%}}
.skins-page .pt-gear-slot{
  position:absolute;
  width:9.45%;
  aspect-ratio:1/1;
  height:auto;
  padding:0;
  border:0 !important;
  border-radius:16px;
  background:transparent !important;
  box-shadow:none !important;
  z-index:3;
  display:grid;
  place-items:center;
}
.skins-page .pt-gear-slot::before{
  content:'';
  position:absolute;
  inset:8%;
  border-radius:14px;
  background:rgba(8,11,20,.08);
  opacity:0;
  transition:opacity .15s ease, transform .15s ease;
}
.skins-page .pt-gear-slot:hover::before,
.skins-page .pt-gear-slot:focus-visible::before{opacity:1;transform:scale(1.03)}
.skins-page .pt-gear-slot__label{
  width:92%;
  height:92%;
  display:grid;
  place-items:center;
  font-size:1rem;
  line-height:1;
  color:rgba(255,240,205,.92);
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));
  border-radius:12px;
  overflow:hidden;
}
.skins-page .pt-gear-slot__name{display:none !important;}
.skins-page .pt-gear-slot.is-filled .pt-gear-slot__label{
  background:rgba(7,10,18,.46);
  box-shadow:0 0 0 1px rgba(255,212,110,.18), 0 8px 18px rgba(0,0,0,.22);
}
.skins-page .pt-gear-slot__art{width:100%;height:100%;border-radius:12px;overflow:hidden}
.skins-page .pt-gear-slot__art img{width:100%;height:100%;object-fit:cover;display:block}
.skins-page .pt-gear-slot[data-slot="head"]{left:5.2%;top:28.4%;transform:none}
.skins-page .pt-gear-slot[data-slot="shoulders"]{left:5.2%;top:40.2%;transform:none}
.skins-page .pt-gear-slot[data-slot="body"]{left:5.2%;top:52.0%;transform:none}
.skins-page .pt-gear-slot[data-slot="hands"]{left:5.2%;top:63.9%;transform:none}
.skins-page .pt-gear-slot[data-slot="artifact"]{right:5.2%;top:28.4%;transform:none}
.skins-page .pt-gear-slot[data-slot="ring2"]{right:5.2%;top:40.2%;transform:none}
.skins-page .pt-gear-slot[data-slot="ring1"]{right:5.2%;top:52.0%;transform:none}
.skins-page .pt-gear-slot[data-slot="legs"]{right:5.2%;top:63.9%;transform:none}
.skins-page .pt-char-summary__title,
.skins-page .pt-skin-detail-card__title{
  font-weight:1000;
  background:linear-gradient(90deg,#7ae4ff,#b78cff,#ffd66b,#8dffec,#7ae4ff);
  background-size:240% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:artemRgbShift 8s linear infinite;
}
@media (max-width: 900px){
  .skins-page #char-pane-hero .pt-char-stage__hero{gap:10px;}
  .skins-page .pt-character-equip{width:min(360px,100%);} 
  .skins-page .pt-char-portrait{top:30.0%;width:33.2%;height:32.0%;}
  .skins-page .pt-character-equip__nameplate{left:20%;right:20%;bottom:7.1%;font-size:clamp(.78rem,3.2vw,1rem);} 
  .skins-page .pt-gear-slot{width:9.8%;}
}
@media (max-width: 640px){
  .skins-page .pt-character-equip{width:min(320px,100%);} 
  .skins-page .pt-char-portrait{top:29.8%;width:33.8%;height:31.8%;}
  .skins-page .pt-character-equip__nameplate{animation:none;}
  .skins-page .pt-gear-slot{width:10.2%;}
}


/* 2026-03-30 overlay: reward slots + workshop polish + mobile restore */
.chrono-reward-slots--detailed{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:12px;align-items:start}
.chrono-reward-slot--named{width:auto;height:auto;min-height:110px;padding:10px 8px 12px;display:grid;grid-template-rows:auto auto auto;gap:8px;justify-items:center;border-radius:18px}
.chrono-reward-slot__art{width:58px;height:58px;border-radius:16px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(180deg,rgba(12,18,38,.88),rgba(8,12,26,.96));box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 14px 28px rgba(0,0,0,.18)}
.chrono-reward-slot__art img{width:100%;height:100%;object-fit:cover;display:block}
.chrono-reward-slot__name{font-size:.72rem;line-height:1.2;color:rgba(241,249,255,.9);text-align:center;display:block}
.chrono-pulse-pop__head{font-weight:900;color:#fff;text-align:center;margin-bottom:8px}
.chrono-pulse-pop__sub{font-size:.86rem;color:rgba(255,255,255,.72);text-align:center;margin-bottom:14px}
.boss-scroll-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.boss-scroll-slot{min-height:234px !important;padding:18px 16px 16px !important;display:grid !important;grid-template-rows:auto auto auto auto;justify-items:center;align-content:start;gap:12px;text-align:center}
.boss-scroll-slot__title{display:block;font-weight:900;color:#fff;font-size:1rem;line-height:1.15}
.boss-scroll-slot__iconbox{display:grid;justify-items:center;gap:8px}
.boss-scroll-slot__icon{width:74px;height:74px;border-radius:22px;display:grid;place-items:center;font-size:1.9rem;background:linear-gradient(180deg,rgba(19,28,58,.98),rgba(8,12,26,.98))}
.boss-scroll-slot__count{min-width:116px !important;min-height:38px;padding:0 14px;display:inline-flex !important;align-items:center;justify-content:center;border-radius:999px}
.boss-scroll-slot__bar{width:100%;max-width:220px;height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.05) inset}
.boss-scroll-slot__bar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#63d6ff,#8d7bff,#ffd56d)}
.boss-scroll-slot__hint{display:block;font-size:.78rem;line-height:1.35;color:rgba(255,255,255,.74)}
.boss-craft-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px !important}
.boss-craft-card{min-height:210px !important;display:grid !important;justify-items:center;align-content:start;gap:12px;text-align:center !important}
.boss-craft-card__title{display:block;font-weight:900;color:#fff;line-height:1.12;font-size:.98rem}
.boss-craft-card__icon{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;font-size:1.7rem;background:linear-gradient(180deg,rgba(18,27,58,.98),rgba(8,12,26,.98));box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 14px 26px rgba(0,0,0,.18)}
.boss-craft-card__recipe{display:grid;gap:7px;width:100%}
.boss-craft-card__recipe span{display:flex !important;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);font-size:.78rem !important}
.chrono-mini-card .chrono-reward-slots--detailed{grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:10px}
.chrono-endgame-card__actions .btn{min-width:0}
@media (max-width: 900px){.boss-scroll-hub{grid-template-columns:1fr}}
@media (max-width: 768px){.chrono-v3 .chrono-grid,.chrono-v3 .chrono-grid-bottom,.chrono-v3 .chrono-endgame-grid{gap:10px !important}.chrono-v3 .chrono-panel,.chrono-v3 .chrono-endgame-card{padding:14px 12px !important;border-radius:18px !important}.chrono-v3 .chrono-copy,.chrono-v3 .chrono-mini-card__sub,.chrono-v3 .chrono-endgame-note{font-size:.82rem !important;line-height:1.38 !important}.chrono-v3 .chrono-rift-toolbar{gap:8px !important}.chrono-v3 .chrono-endgame-card__actions{gap:8px !important}.chrono-v3 .chrono-endgame-card__actions .btn{width:auto !important;min-width:0 !important;padding:10px 14px !important}.boss-craft-grid{grid-template-columns:1fr 1fr}}
@media (max-width: 560px){.chrono-reward-slots--detailed{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chrono-reward-slot--named{min-height:98px;padding:8px 6px 10px}.chrono-reward-slot__art{width:52px;height:52px;border-radius:14px}.boss-scroll-slot{min-height:212px !important;padding:16px 12px 14px !important}.boss-scroll-slot__icon{width:66px;height:66px;border-radius:18px}.boss-craft-grid{grid-template-columns:1fr}.boss-craft-card{min-height:180px !important;padding:14px !important}.boss-craft-card__icon{width:60px;height:60px;border-radius:18px;font-size:1.5rem}}

.chrono-rift-gate-modal{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 42%,rgba(90,132,255,.22),rgba(4,6,14,.90) 54%,rgba(2,3,10,.96) 100%);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .28s ease}.chrono-rift-gate-modal.is-visible{opacity:1;pointer-events:auto}.chrono-rift-gate-modal__backdrop{position:absolute;inset:0;background:radial-gradient(circle at center,rgba(118,213,255,.16),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.22))}.chrono-rift-gate-modal__shell{position:relative;width:min(92vw,720px);aspect-ratio:1/1;display:grid;place-items:center}.chrono-rift-gate-modal__beam{position:absolute;left:50%;top:6%;bottom:6%;width:10px;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(184,233,255,.92),rgba(255,255,255,.04));box-shadow:0 0 34px rgba(125,220,255,.8),0 0 100px rgba(125,220,255,.46);opacity:.96}.chrono-rift-gate-modal__burst{position:absolute;inset:23%;border-radius:50%;background:radial-gradient(circle,rgba(155,243,255,.36) 0%,rgba(155,243,255,.16) 24%,rgba(155,243,255,0) 68%);filter:blur(10px);transform:scale(.72);opacity:.65;animation:chronoRiftBurst 1.45s ease forwards}.chrono-rift-gate-modal__panel{position:absolute;top:3%;height:94%;display:flex;align-items:center;justify-content:center;transition:transform .95s cubic-bezier(.2,.88,.18,1),filter .55s ease,opacity .45s ease;will-change:transform,filter}.chrono-rift-gate-modal__panel img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 16px 32px rgba(0,0,0,.34))}.chrono-rift-gate-modal__panel--left{left:0;width:48%;transform:translateX(0) scale(1.02)}.chrono-rift-gate-modal__panel--right{right:0;width:52%;transform:translateX(0) scale(1.02)}.chrono-rift-gate-modal.is-opening .chrono-rift-gate-modal__panel--left{transform:translateX(-24%) scale(1.02) rotate(-1.4deg)}.chrono-rift-gate-modal.is-opening .chrono-rift-gate-modal__panel--right{transform:translateX(24%) scale(1.02) rotate(1.4deg)}.chrono-rift-gate-modal.is-opening .chrono-rift-gate-modal__beam{animation:chronoRiftBeam .95s ease both}.chrono-rift-gate-modal__copy{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);width:min(92%,520px);display:grid;gap:8px;padding:14px 16px;border-radius:22px;background:linear-gradient(180deg,rgba(7,12,30,.84),rgba(4,7,20,.92));border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 44px rgba(0,0,0,.3);text-align:center}.chrono-rift-gate-modal__eyebrow{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(151,238,255,.88);font-weight:800}.chrono-rift-gate-modal__title{font-size:clamp(1.1rem,2.4vw,1.55rem);font-weight:900;color:#fff;text-shadow:0 0 24px rgba(118,213,255,.22)}.chrono-rift-gate-modal__sub{font-size:.92rem;color:rgba(255,255,255,.78)}@keyframes chronoRiftBeam{0%{opacity:0;transform:translateX(-50%) scaleY(.28)}40%{opacity:1;transform:translateX(-50%) scaleY(1)}100%{opacity:.75;transform:translateX(-50%) scaleY(1.08)}}@keyframes chronoRiftBurst{0%{opacity:.22;transform:scale(.5)}45%{opacity:1;transform:scale(.96)}100%{opacity:0;transform:scale(1.18)}}@media (max-width:640px){.chrono-rift-gate-modal{padding:12px}.chrono-rift-gate-modal__shell{width:min(96vw,480px)}.chrono-rift-gate-modal__copy{bottom:4%;padding:12px 14px;border-radius:18px}.chrono-rift-gate-modal__title{font-size:1rem}.chrono-rift-gate-modal__sub{font-size:.82rem}}


/* =========================================================
   2026-03-31 mobile rescue pass
   Keep rift cinematic effect intact: no changes to chrono-rift-gate-modal.
   ========================================================= */

/* Top quick actions: same visual footprint as avatar block, 3 visible, rest by swipe */
@media (max-width: 760px){
  .hud-top{padding:calc(8px + env(safe-area-inset-top)) 8px 8px 8px}
  .hud-top .hud-row{align-items:flex-start;gap:8px}
  .hud-left{
    min-width:0 !important;
    width:min(220px, calc(100vw - 156px));
    padding:8px 10px !important;
  }
  .hud-name .rank,.hud-name .xpmeta{display:none !important}
  .hud-name .nick{max-width:108px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hud-right{
    width:min(220px, calc(100vw - 156px));
    max-width:min(220px, calc(100vw - 156px));
    padding:8px 8px !important;
    overflow:hidden;
  }
  .hud-right__scroll{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    padding-bottom:2px;
  }
  .hud-right__scroll::-webkit-scrollbar{display:none}
  .hud-right .hud-btn{
    flex:0 0 calc((100% - 16px) / 3);
    min-width:calc((100% - 16px) / 3);
    width:calc((100% - 16px) / 3);
    min-height:44px;
    padding:8px 0 !important;
    justify-content:center;
    gap:0 !important;
    scroll-snap-align:start;
  }
  .hud-right .hud-btn .hud-btn-txt,
  .hud-right .hud-btn-topup{display:none !important}
  .hud-right .hud-btn-ico{font-size:18px}
  .hud-bell{padding-right:0 !important}
  .hud-badge{top:-4px;right:-2px}
}

/* Center notifications: let cards breathe on mobile */
@media (max-width: 760px){
  .portal-panel{padding:10px !important}
  .panel-body{padding:12px 4px 4px !important}
  .pt-note-card{border-radius:16px !important}
  .pt-note-head{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:10px !important;
    padding:12px 12px 8px !important;
  }
  .pt-note-ico{
    width:32px;height:32px;border-radius:11px;flex:0 0 32px;
  }
  .pt-note-main{
    flex:1 1 calc(100% - 42px);
    min-width:0;
  }
  .pt-note-title{
    font-size:.96rem;
    line-height:1.18;
    white-space:normal;
  }
  .pt-note-meta{
    gap:8px !important;
    font-size:.78rem !important;
    margin-top:5px !important;
  }
  .pt-note-actions{
    width:100%;
    flex:1 1 100%;
    justify-content:flex-start;
    gap:8px;
    padding-left:42px;
    flex-wrap:wrap;
  }
  .pt-note-actions .btn{
    min-height:36px;
    padding:7px 12px;
  }
  .pt-note-body{
    padding:8px 12px 12px !important;
  }
  .pt-note-text{
    font-size:.9rem !important;
    line-height:1.42 !important;
    word-break:break-word;
  }
  .pt-note-media img{max-height:220px !important}
}

/* Settings page range + switches: prevent overflow */
@media (max-width: 640px){
  .pt-setting-row{
    align-items:flex-start !important;
  }
  .pt-setting-row .ctrl{
    min-width:0 !important;
    width:100% !important;
    justify-content:flex-start !important;
  }
  .pt-setting-row .ctrl--range{
    width:100% !important;
    flex:1 1 100% !important;
  }
  .pt-setting-row .ctrl--range .form-range{
    width:100% !important;
  }
}

/* Battle mobile compression: shrink top panels and remove dead air */
@media (max-width: 640px){
  body.battle-page .arena-layout,
  body.arena-page .arena-layout{
    row-gap:4px !important;
    column-gap:8px !important;
  }
  body.battle-page .arena-center,
  body.arena-page .arena-center{
    gap:4px !important;
  }
  body.battle-page .player-panel,
  body.arena-page .player-panel{
    padding:7px !important;
    gap:7px !important;
    border-radius:16px !important;
  }
  body.battle-page .player-panel .hero-card,
  body.arena-page .player-panel .hero-card{
    flex-basis:58px !important;
    width:58px !important;
    height:78px !important;
    min-height:78px !important;
    border-radius:14px !important;
  }
  body.battle-page .player-panel .avatar-ring,
  body.arena-page .player-panel .avatar-ring{
    width:32px !important;
    height:32px !important;
    left:6px !important;
    top:6px !important;
  }
  body.battle-page .player-panel__meta,
  body.arena-page .player-panel__meta{
    gap:4px !important;
  }
  body.battle-page .player-panel__name,
  body.arena-page .player-panel__name{
    font-size:13px !important;
  }
  body.battle-page .statbars,
  body.arena-page .statbars{
    margin-top:2px !important;
  }
  body.battle-page .statbar,
  body.arena-page .statbar{
    height:8px !important;
  }
  body.battle-page .statbar__label,
  body.arena-page .statbar__label{
    font-size:8px !important;
  }
  body.battle-page .boostbar--top,
  body.arena-page .boostbar--top{
    margin:0 0 4px !important;
  }
  body.battle-page .boostbar__scroll,
  body.arena-page .boostbar__scroll{
    padding:6px 8px !important;
  }
}

/* Reward history in Portal Quarters */
.pt-season-recent__why{line-height:1.35}


.boss-craft-card.is-ready{box-shadow:0 16px 36px rgba(0,0,0,.22),0 0 26px rgba(52,211,153,.12)!important;border-color:rgba(52,211,153,.24)!important}
.boss-craft-card.is-missing{border-color:rgba(251,146,60,.22)!important}
.boss-scroll-slot[data-boss-forge-info]{cursor:pointer}
