/* ══════════════════════════════════════════════════════════════════
   pimpstar-logo.css — sizing + 18+ badge for the PimpstarAI logo <img>
   Keeps the JPEG logo as-is (no image swap). CSS only:
   • no tile/outline frame
   • bigger logo
   • improved floating 18+ badge (was a cramped inline ::after)
   Matches index.html: <div class="ps-logo ..."><img src="/img/pimpstarai-logo.jpeg" alt="PimpstarAI"></div>
   ══════════════════════════════════════════════════════════════════ */

/* ── header logo (top-left, clicks back to hub) ── */
.ps-header .ps-logo {
  position: relative;              /* anchor for the 18+ badge */
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 0;
  background: none !important;     /* no tile */
  border: none !important;         /* no outline */
  box-shadow: none !important;
  padding: 0;
  overflow: visible;
  transition: transform .12s;
}
.ps-header .ps-logo img {
  height: 104px;                   /* bigger */
  width: auto;
  max-width: 52vw;
  display: block;
  border-radius: 10px;             /* soften the jpeg's square corners a touch */
}
.ps-header .ps-logo:active img { transform: scale(.97); }
.ps-header .ps-logo > span { display: none !important; }

/* ── age-gate logo (big, centered splash) ── */
.ps-gate .ps-logo.big {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin: 0 auto 14px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}
.ps-gate .ps-logo.big img {
  width: 440px;                    /* bigger splash */
  max-width: 86vw;
  height: auto;
  display: block;
  border-radius: 14px;
}
.ps-gate .ps-logo.big > span { display: none !important; }
.ps-gate .ps-gate-box { text-align: center; }

@media (max-width: 600px) {
  .ps-header .ps-logo img { height: 78px; }
  .ps-gate .ps-logo.big img { width: 300px; }
}

/* ══════════════════════════════════════════════════════════════════
   IMPROVED 18+ BADGE
   Overrides the old inline ::after (from pimpstarai.css) that cramped
   "18+" beside the logo. Now a clean floating pill in the top-right.
   ══════════════════════════════════════════════════════════════════ */
body.nsfw-active .ps-logo::after { content: none; }        /* kill the old cramped ribbon */

body.nsfw-active .ps-header .ps-logo::after {
  content: '18+';
  position: absolute;
  top: -4px; right: -10px;
  font-family: var(--fm, 'JetBrains Mono', monospace);
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: #fff; -webkit-text-fill-color: #fff;
  background: linear-gradient(135deg, #ff2d78, #d61e5a);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
  box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 14px rgba(255,45,120,.6);
  margin: 0;
  vertical-align: unset;
  line-height: 1.1;
  z-index: 4;
  pointer-events: none;
  animation: ps18Pulse 2.6s ease-in-out infinite;
}
@keyframes ps18Pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 12px rgba(255,45,120,.5); }
  50%      { box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 20px rgba(255,60,140,.85); }
}
@media (prefers-reduced-motion: reduce) {
  body.nsfw-active .ps-header .ps-logo::after { animation: none; }
}
@media (max-width: 600px) {
  body.nsfw-active .ps-header .ps-logo::after { font-size: 9px; padding: 2px 6px; top: -2px; right: -6px; }
}