/* The Creator pop-up from protect-content.js — same look as the
   welcome panel: navy box, gold border and X, gold-ringed avatar,
   gold speech bubble. */
.jy-guard {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(700px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 30px 36px;
  background: #0d1b4c;
  border: 5px solid #f5c518;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1), visibility .2s;
}

.jy-guard.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.jy-guard-avatar {
  display: inline-block;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f5c518;
  background: #16305c;
}

.jy-guard.show .jy-guard-avatar {
  animation: jyGuardPulse .9s ease-in-out infinite;
}

.jy-guard-bubble {
  position: relative;
  flex: 1;
  background: #f5c518;
  color: #1e3a8a;
  border: 3px solid #2f74d0;
  font-family: 'Lilita One', 'Luckiest Guy', cursive;
  font-size: 32px;
  line-height: 1.2;
  padding: 20px 24px;
  border-radius: 16px;
}

/* Tail: blue triangle for the outline, gold one on top of it */
.jy-guard-bubble::before,
.jy-guard-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-color: transparent;
  border-left-width: 0;
}
.jy-guard-bubble::before {
  left: -21px;
  border-width: 12px 21px 12px 0;
  border-right-color: #2f74d0;
}
.jy-guard-bubble::after {
  left: -16px;
  border-width: 9px 16px 9px 0;
  border-right-color: #f5c518;
}

.jy-guard-x {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 0;
  color: #f5c518;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.jy-guard-x:hover { color: #ffe14a; }

@keyframes jyGuardPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(245, 197, 24, 0); }
}

@media (max-width: 600px) {
  .jy-guard { padding: 20px 16px; gap: 14px; }
  .jy-guard-avatar { width: 90px; height: 90px; }
  .jy-guard-bubble { font-size: 20px; padding: 14px 16px; }
}
