/* Pop Quest v22.7.0 — automated Live Moments state badges */
.pq-live-card.pq-live-coming-soon>span{background:#eef2ff;color:#5b21b6}
.pq-live-card.pq-live-ending-soon>span{background:#fff1f2;color:#be123c}

/* v21.2.9 hotfix — remove the theme/page whitespace beneath the Pop Quest footer site-wide. */
html:has(#pqv3-app),
body:has(#pqv3-app){
  margin-bottom:0!important;
  padding-bottom:0!important;
}
body:has(#pqv3-app) #page,
body:has(#pqv3-app) .site,
body:has(#pqv3-app) .site-content,
body:has(#pqv3-app) .content-area,
body:has(#pqv3-app) .entry-content,
body:has(#pqv3-app) main,
#pqv3-app{
  margin-bottom:0!important;
  padding-bottom:0!important;
}
#pqv3-app > .pq-footer:last-child,
#pqv3-app .pq-footer-v423:last-child,
#pqv3-app .pq-footer:last-child{
  margin-bottom:0!important;
}
#pqv3-app + p:empty,
#pqv3-app + br,
body:has(#pqv3-app) .entry-content > p:last-child:empty{
  display:none!important;
  margin:0!important;
  padding:0!important;
}

/* v21.2.9 final footer flush: prevent theme wrappers from painting below the app. */
body:has(#pqv3-app){overflow-x:hidden!important}
body:has(#pqv3-app) #pqv3-app ~ br,
body:has(#pqv3-app) #pqv3-app ~ p:empty,
body:has(#pqv3-app) #pqv3-app ~ div:empty{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
#pqv3-app .pq-footer:last-of-type,
#pqv3-app .pq-footer-v423:last-of-type{box-sizing:border-box!important}

/* v21.2.9 — definitive logged-out registration icon.
   This targets the rendered header, including legacy templates that still output Register text. */
#pqv3-app .pq-top-right a[href="/account/"],
#pqv3-player .pq-top-right a[href="/account/"],
.pq-top .pq-top-right a[href="/account/"] {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: #7c3aed !important;
}
#pqv3-app .pq-top-right a[href="/account/"] > *,
#pqv3-player .pq-top-right a[href="/account/"] > *,
.pq-top .pq-top-right a[href="/account/"] > * {
  display: none !important;
}
#pqv3-app .pq-top-right a[href="/account/"]::before,
#pqv3-player .pq-top-right a[href="/account/"]::before,
.pq-top .pq-top-right a[href="/account/"]::before {
  content: "" !important;
  display: block !important;
  width: 31px !important;
  height: 31px !important;
  background-color: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2C5.9 13 3 15.35 3 18.25V21h9.2a6.8 6.8 0 0 1-.7-3c0-1.9.78-3.62 2.04-4.85A10.2 10.2 0 0 0 9.5 13Zm8.5 1v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2C5.9 13 3 15.35 3 18.25V21h9.2a6.8 6.8 0 0 1-.7-3c0-1.9.78-3.62 2.04-4.85A10.2 10.2 0 0 0 9.5 13Zm8.5 1v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
@media (max-width:760px){
  #pqv3-app .pq-top-right a[href="/account/"],
  #pqv3-player .pq-top-right a[href="/account/"],
  .pq-top .pq-top-right a[href="/account/"] {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
  }
}

/* v22.8.3 — settled infinite-feed batches */
.pq-infinite-batch{display:contents;}
.pq-infinite-batch.is-preparing>*{visibility:hidden;}
.pq-infinite-feed-status{min-height:0;}
.pq-infinite-feed-status.is-loading,.pq-infinite-feed-status.is-error,.pq-infinite-feed-status.is-end{min-height:2.5rem;}
.pq-infinite-feed-status.is-error{cursor:pointer;}
