/* ============================================
   EASTER EGGS: Flames, stickers, overlays
   Guitar Club - Student Materials
   ============================================ */

/* ============================================
   STREAK FLAME
   ============================================ */
.stat-card.has-flame .stat-value { position: relative; }

.streak-flame {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 32px;
  background: radial-gradient(ellipse at bottom,
    rgba(255,160,20,0.9) 0%, rgba(255,80,0,0.6) 40%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(1px);
  animation: flame-flicker 0.15s infinite alternate;
  pointer-events: none;
}

.streak-flame.blue {
  background: radial-gradient(ellipse at bottom,
    rgba(100,180,255,0.9) 0%, rgba(40,100,255,0.6) 40%, transparent 70%);
}

.streak-flame.white {
  background: radial-gradient(ellipse at bottom,
    rgba(255,255,255,0.95) 0%, rgba(200,220,255,0.7) 30%,
    rgba(100,150,255,0.4) 60%, transparent 80%);
  width: 30px; height: 40px;
}

.streak-smoke {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 20px;
  background: linear-gradient(to top, rgba(120,120,120,0.3), transparent);
  border-radius: 50%;
  animation: smoke-rise 3s ease-out infinite;
  pointer-events: none;
}

@keyframes flame-flicker {
  0% { transform: translateX(-50%) scaleX(1) scaleY(1); opacity: 0.9; }
  100% { transform: translateX(-50%) scaleX(0.85) scaleY(1.1); opacity: 1; }
}

@keyframes smoke-rise {
  0% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-15px); }
}

/* ============================================
   SHOOTING STAR / STAR PLACEMENT CANVAS
   ============================================ */
#easterEggCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

#easterEggCanvas.star-placement-mode {
  pointer-events: auto;
  cursor: crosshair;
}

.star-placement-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--border, #30363d);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-secondary, #8b949e);
  font-size: 13px;
  z-index: 51;
  pointer-events: none;
  animation: hint-fade-in 0.3s ease;
}

@keyframes hint-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   STICKER SYSTEM
   ============================================ */
.sticker {
  position: absolute;
  width: 48px; height: 48px;
  cursor: grab;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.4));
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease;
  z-index: 30;
}
.sticker:hover { transform: scale(1.1) rotate(-2deg); }
.sticker.dragging {
  cursor: grabbing;
  transform: scale(1.15);
  filter: drop-shadow(4px 6px 8px rgba(0,0,0,0.5));
  z-index: 31;
}

.sticker-drawer-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px; height: 44px;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 50%;
  color: var(--text-secondary, #8b949e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: all 0.2s;
}

.sticker-drawer-toggle:hover {
  border-color: var(--accent, #58a6ff);
  color: var(--accent, #58a6ff);
}

.sticker-drawer {
  position: fixed;
  bottom: 72px;
  right: 20px;
  width: 240px;
  max-height: 300px;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 12px;
  padding: 12px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}

.sticker-drawer.open { display: block; }

.sticker-drawer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #484f58);
  margin-bottom: 8px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sticker-grid-item {
  width: 48px; height: 48px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
}

.sticker-grid-item:hover { background: rgba(255,255,255,0.08); }
.sticker-grid-item.locked { opacity: 0.2; cursor: default; }

.sticker-earn-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--accent-green, #3fb950);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  transform: translateX(100vw) rotate(15deg) scale(1.5);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticker-earn-notification.show {
  transform: translateX(0) rotate(-3deg) scale(1);
}

.sticker-earn-notification .sticker-icon { font-size: 32px; }
.sticker-earn-notification .sticker-text {
  color: var(--text-primary, #e6edf3);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   VINYL CRACKLE TOGGLE (song pages)
   ============================================ */
.vinyl-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px; height: 44px;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 50%;
  color: var(--text-secondary, #8b949e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: all 0.2s;
  font-size: 20px;
}

.vinyl-toggle:hover {
  border-color: var(--accent, #58a6ff);
  color: var(--text-primary, #e6edf3);
}

.vinyl-toggle.active {
  border-color: var(--accent-orange, #ffa657);
  color: var(--accent-orange, #ffa657);
}

.vinyl-toggle.active svg {
  animation: vinyl-spin 4s linear infinite;
}

@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* ============================================
   STAR NURSERY
   ============================================ */
.star-nursery-section {
  margin-bottom: 2rem;
  position: relative;
}

.star-nursery-canvas-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.star-nursery-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.star-nursery-mic-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-muted, #484f58);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.star-nursery-mic-btn:hover {
  border-color: var(--accent, #58a6ff);
  color: var(--accent, #58a6ff);
}

.star-nursery-mic-btn.listening {
  color: var(--accent-green, #3fb950);
  border-color: var(--accent-green, #3fb950);
  animation: mic-pulse 2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
}

.star-nursery-stage {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 11px;
  color: var(--text-muted, #484f58);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.star-nursery-gen {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: var(--text-muted, #484f58);
  font-style: italic;
}

/* Konami visualizer overlay */
.konami-visualizer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: none;
}

.konami-visualizer.active { display: block; }

.konami-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  cursor: pointer;
  z-index: 201;
}
