/* Party Pal styles for The Summy /sci/. Self-contained; assets are local. */
.pp-hidden { display: none !important; }

#pp-boot {
  position: fixed; inset: 0; z-index: 99999;
  background: #000; color: #33ff33;
  font-family: "Courier New", monospace; font-size: 18px;
  padding: 40px; line-height: 1.6;
}
#pp-boot p { margin: 0 0 6px; }

.pp-popup-styles {
  position: fixed;
  background: #ffffcc;
  padding: 10px;
  border: 1.5px solid #000;
  z-index: 99996;
  border-radius: 8px;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  user-select: none;
  color: #000;
  box-shadow: 3px 4px 10px rgba(0,0,0,.35);
}
/* speech-bubble tail */
.pp-popup-styles::after {
  content: ''; position: absolute;
  border-style: solid; border-width: 0 15px 15px 0;
  border-color: transparent #ffffcc transparent transparent;
  bottom: -12.5px; right: 10px; z-index: -1;
}
.pp-popup-styles::before {
  content: ''; position: absolute;
  border-style: solid; border-width: 0 16px 16px 0;
  border-color: transparent #000 transparent transparent;
  bottom: -16px; right: 8.5px; z-index: -2;
}
/* the pal himself, peeking from the bottom-right of the bubble */
.pp-popup-styles p::after {
  content: '';
  background: url('images/pal.png') no-repeat;
  background-size: contain;
  height: 130px; width: 130px;
  position: absolute;
  left: 100%; top: 60%;
  pointer-events: none;
}

#pp-popup {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 190px;
  animation: pp-pulsate .18s ease-in-out forwards;
  cursor: grab;
}
@keyframes pp-pulsate {
  0% { transform: translate(-50%,-50%) scale(1); }
  30% { transform: translate(-50%,-50%) scale(1.1); }
  100% { transform: translate(-50%,-50%) scale(1); }
}
#pp-popup p { margin-top: 0; }
.pp-selected { font-style: italic; color: #444; font-size: 13px; }

.pp-btns { display: block; text-align: center; margin-top: 4px; }
.pp-opt-list { display: flex; flex-direction: column; gap: 4px; }
#pp-popup button, #pp-options-popup button {
  background: #ffffcc; padding: 3px 14px; border: none;
  box-shadow: 0 0 0 1px silver; cursor: pointer; border-radius: 5px;
  font-family: "Trebuchet MS", Tahoma, sans-serif; font-size: 14px;
  margin: 5px; color: #000;
}
#pp-popup button:hover, #pp-options-popup button:hover { box-shadow: 0 0 0 1.5px #888; }
#pp-no { float: right; }
#pp-popup img {
  border-radius: 8px; margin: 0 auto 15px; max-width: 60px; display: block;
  pointer-events: none;
}

/* options modal */
#pp-options { position: fixed; inset: 0; z-index: 99997; }
.pp-options-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
#pp-options-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 220px; text-align: center;
}
.pp-music { display: flex; justify-content: center; gap: 8px; margin: 8px 0; }
.pp-music-btn {
  width: 34px; height: 34px; border: none; border-radius: 50%;
  color: #fff; font-weight: bold; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}

/* the boardlist toggle. The bubble is always the light #ffffcc, so the link
   colour is hardcoded dark rather than taken from the theme's --link — on dark
   themes --link is a pale colour that vanished against the yellow bubble. */
#pp-boardlist a { color: #34345C; text-decoration: none; }
#pp-boardlist a:hover { text-decoration: underline; }
#pp-boardlist.pp-off a { opacity: .55; }

/* "Thank you for installing" banner — parked at the bottom-right, hidden below
   the viewport edge; .pp-show slides it up, removing it slides it back down. */
#pp-install-banner {
  position: fixed;
  right: 18px;
  bottom: 0;
  z-index: 99998;
  transform: translateY(120%);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.5));
}
#pp-install-banner.pp-show { transform: translateY(-18px); }
#pp-install-banner img { display: block; max-width: min(670px, 92vw); height: auto; border-radius: 4px; }
