/* Lusty Looters community pets — equal-height album cards */
.ll-pets-page {
  --pets-line: rgba(69, 131, 211, .48);
  --pets-panel: rgba(7, 15, 28, .96);
}

.pets-page-hero {
  padding-bottom: 52px !important;
}

.pets-gallery-section {
  padding: 0 0 74px !important;
}

.pets-gallery-section .ornament {
  margin-bottom: 58px;
}

.pets-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 32px;
}

.pets-gallery-head .section-title,
.pets-gallery-head .section-desc {
  margin-bottom: 0;
}

.pets-gallery-head .section-desc {
  margin-top: 13px;
}

.pets-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.pets-gallery-actions .btn {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 9px;
}

.pets-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(95, 161, 255, .28);
  border-radius: 12px;
  background: rgba(15, 104, 234, .07);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8cbfa;
}

.pets-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7c66b;
  box-shadow: 0 0 12px rgba(247, 198, 107, .48);
}

.pets-live-pill.is-live i {
  background: #55e68c;
  box-shadow: 0 0 12px rgba(85, 230, 140, .56);
}

.pets-live-pill.is-error i {
  background: #ff6b7d;
  box-shadow: 0 0 12px rgba(255, 107, 125, .52);
}

.pets-refresh[disabled] {
  cursor: wait;
  opacity: .58;
}

.pets-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.pet-card {
  position: relative;
  top: 0;
  overflow: hidden;
  border: 1px solid var(--pets-line);
  border-radius: 18px;
  background: var(--pets-panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  transition: top .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pet-card:hover,
.pet-card:focus-within {
  top: -5px;
  border-color: rgba(95, 161, 255, .78);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .42), 0 0 26px rgba(15, 104, 234, .14);
}

.pet-album-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(95, 161, 255, .17);
  background: rgba(95, 161, 255, .17);
}

.pet-album-count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.pet-album-count-2 {
  grid-template-rows: 1fr;
}

.pet-album-count-3 .pet-photo-button:first-child {
  grid-row: 1 / span 2;
}

.pet-photo-button {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050b15;
  cursor: zoom-in;
}

.pet-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-photo-button::after {
  content: "View photo";
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(2, 7, 15, .84);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d9eaff;
  opacity: 0;
  transition: opacity .2s ease;
}

.pet-album-grid:not(.pet-album-count-1) .pet-photo-button::after {
  display: none;
}

.pet-card:hover .pet-photo-button::after,
.pet-photo-button:focus-visible::after {
  opacity: 1;
}

.pet-card-body {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 69px;
  padding: 17px 18px 18px;
}

.pet-author-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
}

.pet-avatar,
.pet-avatar-fallback {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(95, 161, 255, .34);
  border-radius: 50%;
  background: rgba(15, 104, 234, .12);
}

.pet-avatar {
  object-fit: cover;
}

.pet-avatar-fallback {
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 900;
  color: #9fc8ff;
}

.pet-author-copy {
  min-width: 0;
}

.pet-author-copy strong {
  display: block;
  overflow: hidden;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.pet-author-copy time {
  display: block;
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(139, 181, 235, .66);
}

.pet-comment {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 9px 11px 10px;
  border-left: 2px solid rgba(95, 161, 255, .66);
  border-radius: 0 10px 10px 0;
  background: rgba(2, 9, 20, .88);
  box-shadow: 0 9px 24px rgba(0, 0, 0, .34);
  pointer-events: none;
}

.pet-comment > span {
  font-family: 'Cinzel', serif;
  font-size: 25px;
  line-height: 1;
  color: #6aa8ff;
}

.pet-comment p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(208, 224, 247, .82);
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pets-empty,
.pets-error {
  grid-column: 1 / -1;
  padding: 42px 28px;
  border: 1px solid var(--pets-line);
  border-radius: 18px;
  background: var(--pets-panel);
  text-align: center;
}

.pets-empty span,
.pets-error span {
  display: block;
  margin-bottom: 15px;
  font-size: 32px;
}

.pets-empty h3,
.pets-error h3 {
  margin: 0 0 8px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #fff;
}

.pets-empty p,
.pets-error p {
  max-width: 580px;
  margin: 0 auto;
  color: rgba(190, 213, 244, .76);
  font-size: 15px;
  line-height: 1.55;
}

.pet-skeleton {
  overflow: hidden;
  border: 1px solid rgba(95, 161, 255, .14);
  border-radius: 18px;
  background: rgba(7, 15, 28, .9);
}

.pet-skeleton span,
.pet-skeleton b,
.pet-skeleton i {
  display: block;
  background: linear-gradient(90deg, rgba(95, 161, 255, .06), rgba(95, 161, 255, .15), rgba(95, 161, 255, .06));
  background-size: 220% 100%;
  animation: petsSkeleton 1.35s linear infinite;
}

.pet-skeleton span {
  aspect-ratio: 4 / 3;
}

.pet-skeleton b {
  width: 48%;
  height: 12px;
  margin: 17px 18px 9px;
  border-radius: 999px;
}

.pet-skeleton i {
  width: 72%;
  height: 9px;
  margin: 0 18px 20px;
  border-radius: 999px;
}

@keyframes petsSkeleton {
  to { background-position: -220% 0; }
}

.pet-lightbox[hidden] {
  display: none !important;
}

.pet-lightbox {
  position: fixed;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0 !important;
  padding: 24px;
  background: rgba(1, 4, 10, .94);
}

.pet-lightbox-card {
  position: relative;
  width: min(1060px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(95, 161, 255, .52);
  border-radius: 20px;
  background: #050b15;
  box-shadow: 0 32px 110px rgba(0, 0, 0, .72);
}

.pet-lightbox-card > img {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
  background: #02060c;
}

.pet-lightbox-close,
.pet-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(2, 7, 15, .86);
  color: #fff;
  cursor: pointer;
}

.pet-lightbox-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 26px;
}

.pet-lightbox-nav {
  top: 42%;
  width: 42px;
  height: 58px;
  border-radius: 12px;
  font-size: 34px;
}

.pet-lightbox-prev { left: 14px; }
.pet-lightbox-next { right: 14px; }

.pet-lightbox-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding: 17px 21px;
  border-top: 1px solid rgba(95, 161, 255, .18);
}

.pet-lightbox-copy strong {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #fff;
}

.pet-lightbox-copy p {
  margin: 5px 0 0;
  color: rgba(198, 220, 249, .78);
  font-size: 14px;
}

.pet-lightbox-copy a {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8fc0ff !important;
}

body.pet-lightbox-open {
  overflow: hidden !important;
}

/* The site banner and account panel intentionally use very high stacking layers.
   Keep them out of the way while a pet photo is expanded. */
body.pet-lightbox-open .topbar,
body.pet-lightbox-open #ll-public-banner-stack,
body.pet-lightbox-open #ll-floating-account-panel-slot,
body.pet-lightbox-open #ll-login-panel-slot,
body.pet-lightbox-open #ll-account-collapsed-avatar {
  visibility: hidden !important;
  pointer-events: none !important;
}

.pets-cta-section {
  padding-top: 54px !important;
}

@media (max-width: 980px) {
  .pets-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pets-gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pets-gallery-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .pets-gallery {
    grid-template-columns: 1fr;
  }

  .pets-gallery-actions,
  .pets-gallery-actions .btn,
  .pets-live-pill {
    width: 100%;
  }

  .pets-live-pill {
    justify-content: center;
  }

  .pet-lightbox {
    padding: 10px;
  }

  .pet-lightbox-card > img {
    height: 66vh;
  }

  .pet-lightbox-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pet-lightbox-nav {
    top: 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-card,
  .pet-skeleton span,
  .pet-skeleton b,
  .pet-skeleton i {
    animation: none !important;
    transition: none !important;
  }
}
