/* PokéBattle V13.63 CSS bundle; original execution/cascade order preserved. */

/* ===== pb_v1358_social_invites.css ===== */
/* PokéBattle V13.58 — social notifications + compact friends UI */
.toast{left:16px!important;right:auto!important;bottom:16px!important;max-width:min(420px,calc(100vw - 32px))!important}

/* Friends: less visual noise, secondary areas collapsed by default. */
.pbSocialHeadV136 h3{font-size:23px!important}
.pbSocialActivityGridV1350{grid-template-columns:1fr!important;gap:9px!important}
.pbSocialActivityGridV1350 .pbSocialCardV136:last-child{grid-column:auto!important}
.pbSocialDisclosureV158{border:0;margin:0;padding:0}
.pbSocialDisclosureV158>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none;min-height:34px}
.pbSocialDisclosureV158>summary::-webkit-details-marker{display:none}
.pbSocialDisclosureV158>summary::after{content:'⌄';order:3;color:#78869e;font-size:14px;transition:transform .16s ease}
.pbSocialDisclosureV158:not([open])>summary::after{transform:rotate(-90deg)}
.pbSocialDisclosureV158[open]>summary{padding-bottom:9px;border-bottom:1px solid #263147;margin-bottom:3px}
.pbSocialDisclosureTitleV158{font-size:10px;color:#bdc8d9;text-transform:uppercase;letter-spacing:.075em;font-weight:1000;flex:1}
.pbSocialDisclosureV158 .pbSocialCountV1350{margin-left:auto}
.pbSocialSectionV136.pbDisclosureCardV158{padding:11px 13px!important}

/* Pending invite markers. */
.nav [data-page],.pbSocialFloatV136{position:relative}
.pbInvitePingV158{position:absolute;right:-5px;top:-6px;z-index:8;display:grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#e3384e;color:white;border:2px solid #090d16;font-size:10px;font-weight:1000;line-height:1;box-shadow:0 5px 14px rgba(227,56,78,.35);pointer-events:none}
.pbSocialFloatV136 .pbInvitePingV158{right:-3px;top:-5px}

/* Rich invitation cards — always lower-left, never behind Amigos. */
#pbSocialNoticeStackV158{position:fixed;left:16px;bottom:62px;z-index:120500;width:min(410px,calc(100vw - 32px));display:grid;gap:9px;pointer-events:none}
.pbSocialNoticeV158{pointer-events:auto;border:1px solid #3a465f;border-radius:15px;background:linear-gradient(145deg,rgba(18,25,39,.98),rgba(9,14,24,.99));box-shadow:0 20px 54px rgba(0,0,0,.55);padding:11px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center;animation:pbSocialNoticeInV158 .18s ease-out}
.pbSocialNoticeV158.out{opacity:0;transform:translateY(8px);transition:.18s ease}
@keyframes pbSocialNoticeInV158{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.pbSocialNoticeMediaV158{width:64px;height:64px;border:1px solid #37445e;border-radius:12px;background:#0a101b;overflow:hidden;display:grid;place-items:center;font-size:30px}
.pbSocialNoticeMediaV158 img{width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box}
.pbSocialNoticeBodyV158{min-width:0}.pbSocialNoticeKickerV158{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#8d9ab0;font-weight:1000}.pbSocialNoticeBodyV158 b{display:block;color:#fff;font-size:13px;margin-top:2px}.pbSocialNoticeMetaV158{color:#9ca8ba;font-size:9px;line-height:1.45;margin-top:4px}.pbSocialNoticeMetaV158 strong{color:#ffd64a}
.pbSocialNoticeActionsV158{display:flex;gap:6px;margin-top:8px}.pbSocialNoticeActionsV158 button{min-height:32px;padding:6px 10px!important;font-size:9px!important;flex:1}

/* Connected-friends picker inside Exchange. */
.pbExchangeFriendsV158{position:fixed;z-index:120400;width:min(360px,calc(100vw - 24px));max-height:430px;overflow:hidden;border:1px solid #354159;border-radius:15px;background:#0e1522;box-shadow:0 26px 72px rgba(0,0,0,.6);display:grid;grid-template-rows:auto minmax(0,1fr)}
.pbExchangeFriendsV158.hidden{display:none!important}
.pbExchangeFriendsHeadV158{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid #29344a}.pbExchangeFriendsHeadV158 b{font-size:12px}.pbExchangeFriendsHeadV158 small{display:block;color:#7f8ca2;font-size:8px;margin-top:2px}.pbExchangeFriendsHeadV158 button{width:31px;height:31px;border-radius:9px;border:1px solid #344058;background:#151d2c;color:#fff;cursor:pointer}
.pbExchangeFriendsListV158{overflow:auto;padding:8px;display:grid;gap:7px}.pbExchangeFriendV158{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #29364b;border-radius:11px;background:#0a111c;padding:8px}.pbExchangeFriendV158 .who{min-width:0}.pbExchangeFriendV158 b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.pbExchangeFriendV158 small{display:flex;align-items:center;gap:5px;color:#73dfa6;font-size:8px;margin-top:3px}.pbExchangeFriendV158 small i{width:6px;height:6px;border-radius:50%;background:#42d889;box-shadow:0 0 8px rgba(66,216,137,.45)}.pbExchangeFriendV158 button{padding:7px 9px!important;font-size:8px!important}.pbExchangeFriendsEmptyV158{padding:22px 10px;text-align:center;color:#8190a7;font-size:10px;line-height:1.45}
#exchangeInviteFriendsV158{white-space:nowrap}

@media(max-width:700px){
  .toast{left:10px!important;bottom:10px!important;max-width:calc(100vw - 20px)!important}
  #pbSocialNoticeStackV158{left:10px;bottom:58px;width:calc(100vw - 20px)}
  .pbSocialNoticeV158{grid-template-columns:54px minmax(0,1fr);padding:9px}.pbSocialNoticeMediaV158{width:54px;height:54px}
  .pbExchangeFriendsV158{left:10px!important;right:10px!important;width:auto!important;max-height:55vh}
}

/* V13.58.1 — keep the Amigos launcher anchored under the Pokédex device. */
.nav [data-page]{position:relative}
#pbSocialFloatV136.pbSocialFloatV136{
  position:fixed!important;
  right:20px!important;
  bottom:20px!important;
  left:auto!important;
  top:auto!important;
  z-index:8500!important;
}
@media(max-width:700px){
  #pbSocialFloatV136.pbSocialFloatV136{right:10px!important;bottom:10px!important;left:auto!important;top:auto!important}
}


/* ===== pb_v1359_urgent.css ===== */
/* PokéBattle V13.59 — urgent CEO priority / mobile admin / explicit exchange selection */

/* Native confirmations from the CEO panel must sit ABOVE the developer modal. */
#appConfirmV10{z-index:101600!important}
#appConfirmV10 .modalcard{position:relative;z-index:1}

/* CEO money and gift notifications remain the highest application-level overlays. */
#pbGift44.pb55MoneyModal{z-index:101700!important}
.pb55GiftOverlay{z-index:101710!important}
#pbGift44 .pb55MoneyCoin{font-size:44px;line-height:1;margin:0 0 8px;filter:drop-shadow(0 7px 16px rgba(246,207,53,.2))}
#pbGift44.pb55MoneyModal.negative .pb55MoneyCard{border-color:rgba(239,72,91,.65);background:linear-gradient(155deg,#17121a,#211018)}
#pbGift44.pb55MoneyModal.negative .pb44GiftAmount{color:#ff7182!important}
#pbGift44.pb55MoneyModal.negative #pb55MoneyEyebrow{color:#ff98a5!important}
.pb55RevealMeta{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:8px 0 18px}
.pb55RevealMeta>span{font-size:9px;color:#aeb8ca;font-weight:1000;letter-spacing:.08em}
.pb55RevealValue{display:inline-grid;gap:1px;padding:7px 12px;border-radius:10px;border:1px solid rgba(246,207,53,.34);background:rgba(246,207,53,.07)}
.pb55RevealValue small{font-size:7px;color:#919db0;font-weight:1000;letter-spacing:.08em}.pb55RevealValue b{font-size:17px;color:#f7d84e}

/* Developer console: clearer money mode and genuinely usable mobile layout. */
.pb44MoneyModes{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex:1 1 150px}
.pb44MoneyMode{min-height:34px;border:1px solid #39445a;border-radius:8px;background:#111827;color:#96a2b6;font-size:9px;font-weight:1000;cursor:pointer}
.pb44MoneyMode.active{border-color:#f4ce3f;background:rgba(244,206,63,.12);color:#f8db65}.pb44MoneyMode.remove.active{border-color:#eb4b61;background:rgba(235,75,97,.14);color:#ff8c9c}
.pb44TakeMoney{background:linear-gradient(135deg,#8e2435,#d33951)!important;border-color:#e65066!important;color:#fff!important}
.pb44GiftOps>[data-pb46-gift-item]{flex:1 1 100%;width:100%}
@media(max-width:720px){
  .pb44Modal{padding:68px 8px 10px!important;place-items:start center!important}
  .pb44AdminCard{width:100%!important;height:calc(100dvh - 78px)!important;max-height:calc(100dvh - 78px)!important;border-radius:16px!important;padding:11px!important;gap:8px!important}
  .pb44AdminToolbar{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:0 0 8px!important}
  .pb44AdminToolbar .input,.pb44AdminToolbar .select,.pb44AdminToolbar .btn{width:100%!important;min-height:43px!important}
  .pb44AdminList{padding-right:1px!important;gap:9px!important}
  .pb44Player{grid-template-columns:1fr!important;padding:11px!important;gap:10px!important;border-radius:13px!important}
  .pb44PlayerIdentity{grid-template-columns:1fr auto!important;display:grid!important;align-items:center!important;gap:8px!important}.pb44ProfileBtnAdmin{grid-column:1/-1;width:100%!important}
  .pb44PlayerStats{grid-template-columns:1fr 1fr!important;gap:6px!important}.pb44PlayerStats>span{padding:8px!important}
  .pb44PlayerOps{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .pb44GiftOps,.pb44ModerationOps{display:grid!important;width:100%!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:9px!important}
  .pb44GiftOps label,.pb44ModerationOps label{grid-column:1/-1!important;margin:0!important}.pb44GiftOps>[data-gift]{grid-column:1/-1!important;width:100%!important;min-height:42px!important}
  .pb44MoneyModes{grid-column:1/-1!important;width:100%!important}.pb44MoneyAction{grid-column:1/-1!important;width:100%!important;min-height:42px!important}
  .pb44GiftOps>[data-pb46-gift-item]{grid-column:1/-1!important;width:100%!important;min-height:42px!important}
  .pb44ModerationOps>[data-ban-n],.pb44ModerationOps>[data-ban-unit]{width:100%!important;min-width:0!important;min-height:42px!important}.pb44ModerationOps .btn{width:100%!important;min-width:0!important;min-height:40px!important}
}

/* Custom uploaded profile wallpaper must win over any preset class/background. */
.pb43FullProfile[style*="data:image"],.pb50FullProfile[style*="data:image"]{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}

/* Exchange: manual bulk selection only when the user explicitly enables it. */
#exchangeSelectModeV159.active{border-color:#f2cf42!important;color:#ffe064!important;background:rgba(242,207,66,.10)!important}
#page-exchange.pbExSelectModeV159 #exchangeInventoryV135{touch-action:none;user-select:none;-webkit-user-select:none;outline:1px solid rgba(242,207,66,.24);outline-offset:4px;border-radius:10px}
#page-exchange.pbExSelectModeV159 #exchangeInventoryV135 .exchangeInvCardV135{cursor:crosshair!important}
.pb159HiddenClear{display:none!important}
@media(max-width:820px){
  #page-exchange .exchangeRemoveV135{display:none!important}
  #exchangeMyOfferV135 .exchangeOfferCardV135::after{display:none!important;content:none!important}
  #exchangeMyOfferV135 .exchangeOfferCardV135{cursor:pointer!important}
  .exchangeQuickTopV138{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:10px!important}
  .exchangeQuickTopV138 .meta{grid-column:1/-1!important}
  #exchangeInviteFriendsV158{order:1!important}#exchangeSelectModeV159{order:2!important}#exchangeAuto70V135{order:3!important}#exchangeReadyTopV138{order:4!important}#exchangeCancelTopV138{order:5!important}#exchangeClearTopV138{order:6!important}
  .exchangeQuickTopV138 .btn{width:100%!important;min-width:0!important;white-space:normal!important;min-height:43px!important}
}
@media(max-width:390px){.exchangeQuickTopV138{grid-template-columns:1fr 1fr!important}.exchangeQuickTopV138 .btn{font-size:10px!important;padding:8px 6px!important}}


/* ===== pb_v1361_speed_response.css ===== */
/* V13.61 — faster perceived response + clean CEO reveal */
.pb55RevealCard{
  width:min(760px,95vw)!important;
  max-height:90vh!important;
  overflow:auto!important;
  display:grid!important;
  grid-template-columns:minmax(250px,1fr) minmax(180px,240px)!important;
  grid-template-areas:"eyebrow eyebrow" "media title" "media meta" "media action"!important;
  column-gap:24px!important;align-items:center!important;text-align:left!important;
}
.pb55RevealCard>.pb55RevealEyebrow{grid-area:eyebrow;text-align:center!important}
.pb55RevealCard>.pb55RevealMedia{grid-area:media;height:min(560px,68vh)!important;margin:10px 0!important;min-width:0}
.pb55RevealCard>h2{grid-area:title;margin:0!important;font-size:28px!important;align-self:end!important}
.pb55RevealCard>.pb55RevealMeta{grid-area:meta;justify-content:flex-start!important;align-self:start!important;margin:10px 0 16px!important}
.pb55RevealCard>#pb55RevealOk{grid-area:action;justify-self:start!important;align-self:start!important;margin:0!important}
.pb55RevealCard .pb55RevealMedia img{max-height:min(560px,68vh)!important;max-width:100%!important}
@media(max-width:640px){
  .pb55RevealCard{display:block!important;text-align:center!important;padding:18px 15px!important;max-height:92vh!important}
  .pb55RevealCard>.pb55RevealMedia{height:min(470px,58vh)!important;margin:10px auto!important}
  .pb55RevealCard .pb55RevealMedia img{max-height:min(470px,58vh)!important}
  .pb55RevealCard>h2{font-size:22px!important;margin:8px 0!important}.pb55RevealCard>.pb55RevealMeta{justify-content:center!important}.pb55RevealCard>#pb55RevealOk{width:100%!important}
}
/* Critical READY buttons should never visually wait for an API roundtrip. */
#pb46Ready,#pb46ReadyHost,#readyBtn{touch-action:manipulation;will-change:background-color,border-color,color;transition:background-color .08s ease,border-color .08s ease,color .08s ease!important}


/* ===== pb_v1362_localfeel.css ===== */
/* V13.62 local-feel runtime: paint less, react faster. */
html{scroll-behavior:auto}
button,.btn,[role="button"]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pbTap1362{transform:translateZ(0)}
.page:not(.active){content-visibility:hidden!important}
#setsGrid .setcard,#inventory .inv,#inventory .invPackV10,#exchangeInventoryV135>*{contain:layout paint style;content-visibility:auto}

