/* Junior Mode, from the original Junior Spotter Mode rules, plus the new JUNIOR PROFILES page. */
@keyframes loop-de-loop {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.4); }
  100% { transform: rotate(360deg) scale(1); }
}

.marker-loop-spin {
  animation: loop-de-loop 0.8s ease-in-out forwards !important;
  z-index: 99999 !important;
}

.junior-fact-box {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 208, 255, 0.05);
  border: 1.5px dashed #00d0ff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 208, 255, 0.15);
  animation: pulse-fact 3s infinite alternate;
}

@keyframes pulse-fact {
  0% { border-color: rgba(0, 208, 255, 0.5); box-shadow: 0 0 5px rgba(0, 208, 255, 0.1); }
  100% { border-color: rgba(0, 208, 255, 1); box-shadow: 0 0 12px rgba(0, 208, 255, 0.3); }
}

.junior-rank-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--c-amber);
  color: var(--c-black);
  font-weight: bold;
  font-size: 0.68rem;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.3);
  text-transform: uppercase;
}

@keyframes pulse-neon-purple {
  0% { border-color: rgba(255, 0, 255, 0.3); box-shadow: 0 0 5px rgba(255, 0, 255, 0.1); }
  100% { border-color: rgba(255, 0, 255, 1); box-shadow: 0 0 15px rgba(255, 0, 255, 0.4); }
}

.target-locked-plane {
  position: relative;
}

.target-locked-plane .plane-svg-box {
  animation: pulse-reticle 0.6s infinite alternate !important;
}

.target-locked-plane::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px dashed #ff00ff;
  border-radius: 4px;
  animation: spin-reticle 4s linear infinite !important;
  box-shadow: 0 0 8px #ff00ff;
  left: -6px;
  top: -6px;
  pointer-events: none;
  z-index: 10;
}

@keyframes spin-reticle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-reticle {
  0% { filter: drop-shadow(0 0 2px #ff00ff) brightness(1); }
  100% { filter: drop-shadow(0 0 8px #ff00ff) brightness(1.5); }
}

.junior-challenges {
  margin-top: 8px;
  border-top: 1px dashed rgba(85, 255, 0, 0.4);
  padding-top: 6px;
}

.junior-challenges-title {
  font-size: 0.6rem;
  font-weight: bold;
  color: var(--c-green);
  margin-bottom: 4px;
}

.junior-challenges ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.junior-challenge {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.62rem;
  line-height: 1.3;
}

.junior-challenge-progress {
  white-space: nowrap;
  color: var(--c-grey-aaa);
}

.junior-challenge--done {
  color: var(--c-green);
}

.junior-challenge--done .junior-challenge-progress {
  color: var(--c-green);
  font-weight: bold;
}

.junior-manage-link {
  color: var(--c-green);
  font-size: 0.62rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* JUNIOR PROFILES page */
#juniors-v .juniors-header {
  background: var(--c-grey-222);
  color: var(--c-green);
  padding: 10px;
}

.juniors-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.juniors-intro {
  margin: 0;
  color: var(--c-grey-aaa);
  font-size: 0.85rem;
  line-height: 1.5;
}

.juniors-alert {
  margin: 0;
  color: var(--c-red);
  font-weight: bold;
}

.juniors-empty {
  margin: 0;
  color: var(--c-grey-666);
}

.juniors-card {
  background: var(--c-grey-050505);
  border: 1px solid var(--c-grey-222);
  border-left: 3px solid var(--c-green);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.juniors-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.juniors-card.juniors-form {
  flex-direction: row;
}

.juniors-label {
  color: var(--c-grey-aaa);
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.juniors-input {
  background: var(--c-black);
  color: var(--c-green);
  border: 1px solid var(--c-grey-333);
  font-family: monospace;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 3px;
  outline: none;
}

.juniors-emoji-select {
  font-size: 1rem;
  padding: 3px 6px;
}

.juniors-btn {
  background: var(--c-black);
  border: 1px solid var(--c-green);
  color: var(--c-green);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.juniors-btn--danger {
  border-color: var(--c-red);
  color: var(--c-red);
}

.juniors-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.juniors-emoji {
  font-size: 2rem;
}

.juniors-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 180px;
}

.juniors-summary strong {
  color: var(--c-green);
  font-size: 1rem;
}

.juniors-meta {
  color: var(--c-grey-aaa);
  font-size: 0.72rem;
}

.juniors-active {
  color: var(--c-green);
  font-size: 0.72rem;
  font-weight: bold;
}

.juniors-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.juniors-card-actions form.button_to {
  margin: 0;
}

.theme-light #junior-side-progress {
  background: #f8fafc !important;
  border: 1.5px dashed #15803d !important;
  color: #1e293b !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}
.theme-light #junior-side-rank { color: #15803d !important; }
.theme-light #junior-side-xp-bar { background: #15803d !important; }
.theme-light #junior-side-xp-text { color: #475569 !important; }
.theme-light .target-locked-plane::before {
  border: 2px solid #b91c1c !important;
  box-shadow: none !important;
  animation: none !important;
}
.theme-light #target-lock-banner {
  background: #ffffff !important;
  border: 2px solid #b91c1c !important;
  color: #b91c1c !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  animation: none !important;
}
