/* 小路徽章弹窗 · 课堂全屏可见 */
.xiaolu-badge-toast {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 28, 0.42);
  backdrop-filter: blur(4px);
  padding: 1.25rem;
}

.xiaolu-badge-toast.is-open {
  display: flex;
  animation: xiaolu-badge-fade 0.25s ease;
}

.xiaolu-badge-toast__card {
  width: min(420px, 92vw);
  border-radius: 22px;
  padding: 1.4rem 1.35rem 1.2rem;
  text-align: center;
  color: #3f3a32;
  background:
    radial-gradient(circle at 20% 15%, rgba(232, 184, 74, 0.28), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(109, 155, 122, 0.2), transparent 42%),
    linear-gradient(180deg, #fffdf8, #f4ebe0);
  border: 1px solid rgba(200, 170, 110, 0.5);
  box-shadow: 0 24px 48px rgba(20, 16, 10, 0.28);
  transform: translateY(12px) scale(0.96);
  animation: xiaolu-badge-pop 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.15) forwards;
}

.xiaolu-badge-toast__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7350;
  margin-bottom: 0.45rem;
}

.xiaolu-badge-toast__icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(232, 184, 74, 0.35));
}

.xiaolu-badge-toast__title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.55rem 0 0.25rem;
}

.xiaolu-badge-toast__desc {
  font-size: 0.95rem;
  color: #5c564c;
  margin-bottom: 0.85rem;
}

.xiaolu-badge-toast__meta {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.xiaolu-badge-toast__chip {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(232, 184, 74, 0.18);
  border: 1px solid rgba(232, 184, 74, 0.4);
}

.xiaolu-badge-toast__close {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  background: #3f3a32;
  color: #fffdf8;
}

.xiaolu-award-panel {
  display: none;
}

body.gamification-on .xiaolu-award-panel {
  display: block;
}

.xiaolu-award-panel .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

@keyframes xiaolu-badge-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes xiaolu-badge-pop {
  to { transform: translateY(0) scale(1); }
}

#projection-view[data-screen="display"] .xiaolu-badge-toast__title {
  font-size: 1.8rem;
}

#projection-view[data-screen="display"] .xiaolu-badge-toast__icon {
  font-size: 3.6rem;
}
