
/* Omega stages 1+2: modal rescue + battle event toast */
.pt-game-modal-dialog{width:min(92vw,420px)!important;max-width:min(92vw,420px)!important;margin:1rem auto}
.pt-game-modal{border-radius:22px;overflow:hidden}
.pt-game-modal__body{font-size:.95rem;line-height:1.45}
@media (max-width:760px){
  .pt-game-modal-dialog{width:min(94vw,94vw)!important;max-width:min(94vw,94vw)!important;margin:.7rem auto}
  .pt-game-modal__body{font-size:.9rem}
}
.pt-boost-modal{padding:12px!important;align-items:center!important;justify-content:center!important}
.pt-boost-modal__dialog{width:min(920px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:0 auto!important}
@media (max-width:760px){
  .pt-boost-modal__dialog{width:min(94vw,94vw)!important;max-height:calc(100dvh - 16px)!important;border-radius:20px!important}
  .pt-boost-modal__head,.pt-boost-modal__body,.pt-boost-modal__foot{padding:13px!important}
}
.pt-ng-bubble{box-shadow:0 24px 70px rgba(0,0,0,.52),0 0 0 1px rgba(127,192,255,.08) inset!important}
.pt-ng-bubble.is-centered-card{width:min(92vw,360px)!important;max-width:min(92vw,360px)!important}
@media (max-width:760px){
  .pt-ng-bubble,.pt-ng-bubble.is-mobile-bottom,.pt-ng-bubble.is-centered-card{width:min(92vw,92vw)!important;max-width:min(92vw,92vw)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
  .pt-ng-bubble.is-centered-card{top:50%!important;transform:translate(-50%,-50%)!important}
}
/* battle cleanup */
.battle-info-strip{position:relative;min-height:64px;margin-top:8px}
.battle-log-inline,.battle-coach-line,.battle-log-inline__open,.battle-log-drawer{display:none!important}
.battle-event-toast{position:relative;margin:0 auto;max-width:min(92vw,560px);min-height:0;pointer-events:none;opacity:0;transform:translateY(6px) scale(.985);transition:opacity .18s ease,transform .18s ease}
.battle-event-toast.is-visible{opacity:1;transform:translateY(0) scale(1)}
.battle-event-toast__card{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:18px;background:linear-gradient(180deg,rgba(10,18,40,.96),rgba(6,10,24,.96));border:1px solid rgba(126,193,255,.20);box-shadow:0 16px 44px rgba(0,0,0,.34);color:#fff}
.battle-event-toast__icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;font-size:1rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);flex:0 0 auto}
.battle-event-toast__body{min-width:0;display:grid;gap:3px}
.battle-event-toast__title{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:rgba(211,231,255,.72)}
.battle-event-toast__text{font-size:.88rem;font-weight:900;line-height:1.34;color:#fff}
.battle-event-toast--success .battle-event-toast__card{border-color:rgba(88,221,148,.28);box-shadow:0 18px 48px rgba(0,0,0,.34),0 0 26px rgba(88,221,148,.12)}
.battle-event-toast--danger .battle-event-toast__card{border-color:rgba(255,110,110,.28);box-shadow:0 18px 48px rgba(0,0,0,.34),0 0 26px rgba(255,110,110,.12)}
.battle-event-toast--info .battle-event-toast__card{border-color:rgba(126,193,255,.22)}
@media (max-width:760px){
  .battle-info-strip{min-height:58px;margin-top:6px}
  .battle-event-toast{max-width:min(94vw,94vw)}
  .battle-event-toast__card{padding:10px 12px;border-radius:16px}
  .battle-event-toast__icon{width:30px;height:30px;border-radius:10px;font-size:.92rem}
  .battle-event-toast__text{font-size:.82rem}
}
.boost.is-ready,.boost.is-recommended{position:relative;isolation:isolate}
.boost.is-ready{border-color:rgba(255,220,118,.74)!important;box-shadow:0 0 0 1px rgba(255,220,118,.30) inset,0 0 22px rgba(255,220,118,.42),0 0 54px rgba(89,181,255,.28)!important;animation:ptOmegaBoostReady 1s ease-in-out infinite}
.boost.is-ready::after,.boost.is-recommended::after{content:'';position:absolute;inset:-4px;border-radius:18px;pointer-events:none}
.boost.is-ready::after{box-shadow:0 0 0 2px rgba(255,220,118,.24),0 0 28px rgba(255,220,118,.34)}
.boost.is-recommended{box-shadow:0 0 0 2px rgba(111,203,255,.30) inset,0 0 30px rgba(111,203,255,.28)!important}
@keyframes ptOmegaBoostReady{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.045)}}
.gem.pt-idle-suggest{animation:ptOmegaIdleSuggest 1s ease-in-out infinite!important;box-shadow:0 0 0 2px rgba(255,226,132,.48),0 0 0 6px rgba(124,197,255,.14),0 0 28px rgba(124,197,255,.34)!important;z-index:5}
@keyframes ptOmegaIdleSuggest{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.065)}}


.pt-game-modal-dialog{display:flex;align-items:center;min-height:calc(100% - 1rem)}
@media (max-width:760px){
  .pt-game-modal-dialog{width:min(94vw,94vw)!important;max-width:min(94vw,94vw)!important;margin:.5rem auto;min-height:calc(100% - 1rem)}
  .pt-game-modal{border-radius:18px}
}
.pt-boost-modal{padding-top:max(12px,env(safe-area-inset-top,0px) + 8px)!important;padding-bottom:max(78px,env(safe-area-inset-bottom,0px) + 60px)!important;align-items:flex-start!important}
.pt-boost-modal__dialog{margin:0 auto!important;transform:none!important}
@media (max-width:760px){
  .pt-boost-modal__dialog{width:min(94vw,94vw)!important;max-height:calc(100dvh - 96px)!important;border-radius:18px!important}
}
.battle-event-toast{position:fixed!important;left:50%!important;top:max(72px,env(safe-area-inset-top,0px) + 56px)!important;transform:translate(-50%,6px) scale(.985)!important;z-index:10060!important;max-width:min(92vw,520px)!important}
.battle-event-toast.is-visible{transform:translate(-50%,0) scale(1)!important}
.battle-event-toast__card{backdrop-filter:blur(10px)}
.battle-event-toast__title:empty{display:none}
.pt-shake-light{animation:ptScreenShakeLight .42s linear}
.pt-shake-medium{animation:ptScreenShakeMedium .48s linear}
.pt-shake-heavy{animation:ptScreenShakeHeavy .52s linear}
@keyframes ptScreenShakeLight{0%,100%{transform:translate3d(0,0,0)}20%{transform:translate3d(-2px,1px,0)}40%{transform:translate3d(2px,-1px,0)}60%{transform:translate3d(-1px,-2px,0)}80%{transform:translate3d(2px,1px,0)}}
@keyframes ptScreenShakeMedium{0%,100%{transform:translate3d(0,0,0)}20%{transform:translate3d(-3px,1px,0)}40%{transform:translate3d(3px,-2px,0)}60%{transform:translate3d(-2px,-3px,0)}80%{transform:translate3d(3px,2px,0)}}
@keyframes ptScreenShakeHeavy{0%,100%{transform:translate3d(0,0,0)}20%{transform:translate3d(-4px,2px,0)}40%{transform:translate3d(4px,-3px,0)}60%{transform:translate3d(-3px,-4px,0)}80%{transform:translate3d(4px,3px,0)}}
#battle-effects-overlay.is-energy-full{filter:drop-shadow(0 0 20px rgba(80,140,255,.88))}
.pt-crit-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%, var(--pt-crit-color, rgba(255,96,96,.28)), rgba(255,255,255,.08) 38%, transparent 72%);animation:ptCritFlash .22s ease-out forwards}
@keyframes ptCritFlash{0%{opacity:0}15%{opacity:1}100%{opacity:0}}
.chrono-boss-chip__cta{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:.75rem;font-weight:900;color:#fff}
.chrono-boss-chip.is-locked{opacity:.72;filter:saturate(.82)}
.chrono-boss-chip.is-locked .chrono-boss-chip__cta{background:rgba(255,140,140,.10);border-color:rgba(255,140,140,.18)}
.pt-ng-target,.pt-ng-recommended{box-shadow:0 0 0 2px rgba(126,193,255,.42),0 0 0 6px rgba(126,193,255,.12),0 0 28px rgba(96,165,250,.28)!important;animation:ptGuidePulseStrong 1s ease-in-out infinite}
@keyframes ptGuidePulseStrong{0%,100%{transform:translateZ(0) scale(1)}50%{transform:translateZ(0) scale(1.02)}}


/* Omega nuance pass: centered floating battle toasts */
body.battle-page .battle-event-toast,
body.arena-page .battle-event-toast{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  z-index:10080!important;
  width:min(92vw,540px)!important;
  max-width:min(92vw,540px)!important;
  opacity:0;
  transform:translate(-50%, 18px) scale(.985)!important;
  pointer-events:none!important;
}
body.battle-page .battle-event-toast.is-visible,
body.arena-page .battle-event-toast.is-visible{
  opacity:1;
  transform:translate(-50%, -26px) scale(1)!important;
}
body.battle-page .battle-event-toast.is-leaving,
body.arena-page .battle-event-toast.is-leaving{
  opacity:0;
  transform:translate(-50%, -52px) scale(.98)!important;
}
body.battle-page .battle-event-toast__card,
body.arena-page .battle-event-toast__card{
  backdrop-filter:blur(12px);
}
@media (max-width: 768px){
  body.battle-page .battle-event-toast,
  body.arena-page .battle-event-toast{
    width:min(94vw,94vw)!important;
    max-width:min(94vw,94vw)!important;
    top:48%!important;
  }
  body.battle-page .battle-event-toast.is-visible,
  body.arena-page .battle-event-toast.is-visible{ transform:translate(-50%, -18px) scale(1)!important; }
  body.battle-page .battle-event-toast.is-leaving,
  body.arena-page .battle-event-toast.is-leaving{ transform:translate(-50%, -36px) scale(.98)!important; }
}

/* Boss strip cards: stop squeezing portrait art */
.chrono-boss-strip{grid-auto-columns:minmax(300px,calc((100% - 24px)/3));}
.chrono-boss-chip{grid-template-columns:110px minmax(0,1fr);min-height:132px;align-items:stretch;}
.chrono-boss-chip__art{height:auto;min-height:108px;background-size:contain;background-position:center center;background-repeat:no-repeat;}
.chrono-boss-chip__title{font-size:1.04rem;line-height:1.12;}
.chrono-boss-chip__meta{font-size:.8rem;line-height:1.38;}
@media (max-width:960px){.chrono-boss-strip{grid-auto-columns:minmax(300px,78vw);} }
@media (max-width:640px){
  .chrono-boss-strip{grid-auto-columns:minmax(284px,88vw);} 
  .chrono-boss-chip{grid-template-columns:96px minmax(0,1fr);min-height:118px;}
  .chrono-boss-chip__art{min-height:92px;}
}
