/* ============================================================
   WIDGET Birdie Enrichment Upgrades - Styles
   Companion CSS for birdie-upgrades.js
   ============================================================ */

/* --- Custom Properties (themeable) --- */
:root {
  --bu-orange:     #ff8c2a;
  --bu-yellow:     #ffd336;
  --bu-red:        #ff4a4a;
  --bu-green:      #4adb6a;
  --bu-teal:       #2ae8c8;
  --bu-pink:       #ff6eb4;
  --bu-white:      #fffbe8;
  --bu-spark:      #fffde0;
  --bu-burst-ring: rgba(255, 180, 50, 0.55);
  --bu-warm-tint:  rgba(255, 140, 42, 0.08);
  --bu-overlay-bg: rgba(5, 9, 16, 0.82);
  --bu-score-font: 'Fredoka', 'Space Grotesk', system-ui, sans-serif;
}


/* ==========================================================
   A. BEAK TAP BURST SYSTEM
   ========================================================== */

/* Container anchored to stage, positioned per-tap via JS */
.tap-burst-container {
  position: absolute;
  pointer-events: none;
  z-index: 500;
  width: 0; height: 0;
}

/* --- Radial burst particles --- */
.tap-burst-particle {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  animation: tapBurstOut 600ms cubic-bezier(0.22, 0.9, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes tapBurstOut {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1.5); opacity: 0; }
}

/* --- Shockwave ring --- */
.tap-shockwave {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid var(--bu-burst-ring);
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
  animation: shockwaveExpand 550ms cubic-bezier(0.22, 0.68, 0.32, 1) forwards;
  pointer-events: none;
}

@keyframes shockwaveExpand {
  0%   { transform: translate(-50%, -50%) scale(0);  opacity: 1; border-width: 4px; }
  100% { transform: translate(-50%, -50%) scale(10);  opacity: 0; border-width: 1px; }
}


/* ==========================================================
   B. COLOR BURST CONFETTI & SPARKS
   ========================================================== */

/* --- Confetti piece --- */
.confetti-particle {
  position: absolute;
  will-change: transform, opacity;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall var(--cf-dur, 1.1s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform-origin: center center;
}

@keyframes confettiFall {
  0%   {
    transform: translate(-50%, -50%) scale(0) rotate(0deg) rotateX(0deg);
    opacity: 1;
  }
  15%  {
    transform: translate(calc(-50% + var(--cx, 0px)), calc(-50% + var(--cy, -40px)))
               scale(1) rotate(90deg) rotateX(90deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--cx, 0px)), calc(-50% + var(--cy, -40px) + 260px))
               scale(0.7) rotate(var(--cr, 540deg)) rotateX(var(--crx, 720deg));
    opacity: 0;
  }
}

/* --- Spark particle --- */
.spark-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--bu-spark);
  box-shadow: 0 0 6px 2px var(--bu-yellow);
  pointer-events: none;
  will-change: transform, opacity;
  animation: sparkShoot 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkShoot {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0.2); opacity: 0; }
}


/* ==========================================================
   C. BIRDIE PLAY MODE UI OVERRIDES
   ========================================================== */

/* Warm tint overlay */
body.birdie-play-mode::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bu-warm-tint);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
}

/* Hide top bar completely */
body.birdie-play-mode #topBar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Brighter, more saturated stage gradient */
body.birdie-play-mode .stage-gradient {
  filter: saturate(1.6) brightness(1.2);
  transition: filter 0.5s ease;
}

/* Scale up parrot 15% */
body.birdie-play-mode #parrot {
  transform: scale(1.15);
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Action bar: big emoji buttons */
body.birdie-play-mode .quick-actions {
  gap: 4px;
  padding: 6px;
  justify-content: center;
}

body.birdie-play-mode .quick-btn {
  min-width: 130px;
  min-height: 130px;  /* 34mm+ parrot tongue tap target (CHI 2024: 47.1% hit rate) */
  font-size: 2.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

body.birdie-play-mode .quick-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

/* Hide text labels, keep emoji only */
body.birdie-play-mode .quick-btn .btn-label,
body.birdie-play-mode .quick-btn span:not(.emoji) {
  display: none;
}

/* Floating game menu */
.birdie-game-menu {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 600;
  animation: gameMenuIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gameMenuIn {
  0%   { transform: translateX(-50%) translateY(40px) scale(0.8); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.birdie-game-btn {
  width: 130px; height: 130px;  /* 34mm+ parrot tongue tap target (CHI 2024) */
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 30, 50, 0.85);
  backdrop-filter: blur(10px);
  font-size: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  -webkit-user-select: none;
  user-select: none;
}

.birdie-game-btn:hover,
.birdie-game-btn:active {
  transform: scale(1.12);
  border-color: var(--bu-orange);
  box-shadow: 0 4px 24px rgba(255, 140, 42, 0.35);
}

.birdie-game-btn-label {
  position: absolute;
  bottom: -18px;
  font-size: 0.6rem;
  font-family: var(--bu-score-font);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  pointer-events: none;
}


/* ==========================================================
   D. FORAGING GAME OVERLAY
   ========================================================== */

.forage-game {
  position: fixed;
  inset: 0;
  z-index: 700;
  pointer-events: auto;
  overflow: hidden;
}

.forage-game-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(34, 80, 30, 0.35), transparent 70%);
  pointer-events: none;
}

.forage-hud {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--bu-score-font);
  font-size: 1.2rem;
  color: var(--bu-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 710;
}

.forage-score {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.forage-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 720;
  transition: transform 0.15s ease;
}

.forage-close-btn:active {
  transform: scale(0.9);
}

/* Clickable hiding spots */
.forage-leaf {
  position: absolute;
  width: 130px; height: 130px;  /* 34mm+ for parrot tongue tap accuracy (CHI 2024: 47.1% hit rate at 130px) */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform 0.15s ease;
  animation: leafIdle 2.5s ease-in-out infinite;
  animation-delay: var(--leaf-delay, 0s);
  -webkit-user-select: none;
  user-select: none;
}

@keyframes leafIdle {
  0%, 100% { transform: rotate(var(--lr, 0deg)) scale(1); }
  50%      { transform: rotate(calc(var(--lr, 0deg) + 3deg)) scale(1.04); }
}

.forage-leaf:hover,
.forage-leaf:active {
  animation: leafRustle 0.3s ease forwards;
}

@keyframes leafRustle {
  0%   { transform: rotate(var(--lr, 0deg)) scale(1); }
  25%  { transform: rotate(calc(var(--lr, 0deg) - 8deg)) scale(1.08); }
  50%  { transform: rotate(calc(var(--lr, 0deg) + 6deg)) scale(1.05); }
  75%  { transform: rotate(calc(var(--lr, 0deg) - 3deg)) scale(1.02); }
  100% { transform: rotate(var(--lr, 0deg)) scale(1); }
}

.forage-leaf.revealing {
  animation: leafReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes leafReveal {
  0%   { transform: rotate(var(--lr, 0deg)) scale(1); opacity: 1; }
  50%  { transform: rotate(calc(var(--lr, 0deg) + 30deg)) scale(1.3) translateY(-20px); opacity: 0.6; }
  100% { transform: rotate(calc(var(--lr, 0deg) + 60deg)) scale(0.4) translateY(-60px); opacity: 0; }
}

.forage-leaf.empty-fade {
  animation: emptyFade 0.5s ease forwards;
}

@keyframes emptyFade {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(0.6); opacity: 0; }
}

/* Hidden treat */
.forage-treat {
  position: absolute;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  pointer-events: none;
  animation: treatBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 0 12px rgba(255, 211, 54, 0.6));
}

@keyframes treatBounceIn {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.forage-treat.collected {
  animation: treatCollect 0.6s cubic-bezier(0.22, 0.9, 0.36, 1) forwards;
}

@keyframes treatCollect {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.6); opacity: 0.7; }
  100% { transform: scale(0) translateY(-80px); opacity: 0; }
}


/* ==========================================================
   E. CHASE GAME
   ========================================================== */

.chase-game {
  position: fixed;
  inset: 0;
  z-index: 700;
  pointer-events: auto;
  overflow: hidden;
}

.chase-hud {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--bu-score-font);
  font-size: 1.2rem;
  color: var(--bu-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 710;
}

.chase-score {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.chase-timer {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  font-variant-numeric: tabular-nums;
}

.chase-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 720;
  transition: transform 0.15s ease;
}

.chase-close-btn:active { transform: scale(0.9); }

/* Target (butterfly / bug) */
.chase-target {
  position: absolute;
  width: 130px; height: 130px;  /* 34mm+ parrot tongue tap target (CHI 2024) */
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: none;
  will-change: left, top;
  -webkit-user-select: none;
  user-select: none;
  z-index: 705;
}

.chase-target.flutter {
  animation: butterflyFlutter 0.4s ease-in-out infinite alternate;
}

@keyframes butterflyFlutter {
  0%   { transform: scaleX(1) rotate(-3deg); }
  100% { transform: scaleX(0.85) rotate(3deg); }
}

.chase-target.hit {
  animation: chaseHit 0.4s ease forwards;
  pointer-events: none;
}

@keyframes chaseHit {
  0%   { transform: scale(1); opacity: 1; }
  30%  { transform: scale(1.6); opacity: 0.8; }
  100% { transform: scale(0.2) rotate(180deg); opacity: 0; }
}

.chase-target.dodge {
  animation: chaseDodge 0.35s ease forwards;
}

@keyframes chaseDodge {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.7) translateX(var(--dodge-x, 30px)); }
  100% { transform: scale(1) translateX(0); }
}


/* ==========================================================
   F. RHYTHM MODE INDICATORS
   ========================================================== */

.rhythm-game {
  position: fixed;
  inset: 0;
  z-index: 700;
  pointer-events: none;
}

.rhythm-hud {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--bu-score-font);
  font-size: 1.1rem;
  color: var(--bu-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 710;
  pointer-events: auto;
}

.rhythm-score {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.rhythm-bpm-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.rhythm-bpm-control input[type="range"] {
  width: 80px;
  accent-color: var(--bu-orange);
}

.rhythm-bpm-label {
  font-variant-numeric: tabular-nums;
  min-width: 3.5ch;
  text-align: right;
}

.rhythm-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 720;
  pointer-events: auto;
  transition: transform 0.15s ease;
}

.rhythm-close-btn:active { transform: scale(0.9); }

/* Beat ring around parrot */
.beat-ring {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 200px; height: 200px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  border: 3px solid var(--bu-orange);
  opacity: 0;
  pointer-events: none;
  z-index: 490;
  transition: none;
}

.beat-ring.pulse {
  animation: beatRingPulse 0.3s ease-out forwards;
}

.beat-ring.pulse-strong {
  animation: beatRingPulseStrong 0.35s ease-out forwards;
}

@keyframes beatRingPulse {
  0%   { opacity: 0.5; transform: translate(-50%, 50%) scale(0.9);
         border-color: var(--bu-orange); }
  100% { opacity: 0; transform: translate(-50%, 50%) scale(1.4);
         border-color: var(--bu-yellow); }
}

@keyframes beatRingPulseStrong {
  0%   { opacity: 0.8; transform: translate(-50%, 50%) scale(0.85);
         border-color: var(--bu-yellow); border-width: 5px; }
  100% { opacity: 0; transform: translate(-50%, 50%) scale(1.7);
         border-color: var(--bu-orange); border-width: 1px; }
}

/* Full-screen beat flash */
.beat-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 480;
  opacity: 0;
}

.beat-flash.flash {
  animation: beatFlash 0.2s ease-out forwards;
}

@keyframes beatFlash {
  0%   { opacity: 0.12; background: var(--bu-yellow); }
  100% { opacity: 0; }
}

/* Floating rhythm score numbers */
.rhythm-score-float {
  position: absolute;
  font-family: var(--bu-score-font);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bu-yellow);
  text-shadow: 0 0 10px rgba(255, 211, 54, 0.6);
  pointer-events: none;
  z-index: 720;
  animation: scoreFloat 0.8s ease-out forwards;
}

@keyframes scoreFloat {
  0%   { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-60px) scale(1.2); opacity: 0; }
}


/* ==========================================================
   G. ENHANCED VISUAL FEEDBACK UTILITIES
   ========================================================== */

/* Full-screen color flash */
.screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 800;
  animation: screenFlashAnim var(--flash-dur, 300ms) ease-out forwards;
}

@keyframes screenFlashAnim {
  0%   { opacity: 0.45; }
  100% { opacity: 0; }
}

/* Color wash overlay */
.color-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 790;
  opacity: 0;
  animation: colorWashAnim var(--wash-dur, 1s) ease-in-out forwards;
}

@keyframes colorWashAnim {
  0%   { opacity: 0; }
  30%  { opacity: 0.22; }
  70%  { opacity: 0.22; }
  100% { opacity: 0; }
}

/* Floating emoji */
.floating-emoji {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  z-index: 750;
  animation: emojiFloat 1.2s ease-out forwards;
}

@keyframes emojiFloat {
  0%   { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-100px) scale(1.3); opacity: 0; }
}

/* Idle attention shapes */
.idle-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  will-change: transform, opacity;
  animation: idleShapeDrift var(--is-dur, 4s) ease-in-out forwards;
}

@keyframes idleShapeDrift {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  20%  { opacity: 0.4; transform: translate(var(--isx, 30px), var(--isy, -20px)) scale(1); }
  80%  { opacity: 0.3; }
  100% { transform: translate(var(--iex, 60px), var(--iey, -60px)) scale(0.3); opacity: 0; }
}

/* Streak counter badge */
.streak-badge {
  position: fixed;
  top: 60px;
  right: 16px;
  font-family: var(--bu-score-font);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bu-yellow);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid var(--bu-orange);
  z-index: 810;
  animation: streakIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  pointer-events: none;
}

@keyframes streakIn {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Session stats panel */
.birdie-session-stats {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 14, 24, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 40px;
  z-index: 900;
  font-family: var(--bu-score-font);
  color: var(--bu-white);
  text-align: center;
  min-width: 260px;
  animation: statsIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes statsIn {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.birdie-session-stats h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.birdie-session-stats .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.birdie-session-stats .stat-row:last-child {
  border-bottom: none;
}

.birdie-session-stats .stat-value {
  color: var(--bu-orange);
  font-weight: 600;
}

.birdie-session-stats .close-stats-btn {
  margin-top: 18px;
  padding: 8px 28px;
  border-radius: 16px;
  border: 2px solid var(--bu-orange);
  background: transparent;
  color: var(--bu-white);
  font-family: var(--bu-score-font);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.birdie-session-stats .close-stats-btn:hover {
  background: rgba(255, 140, 42, 0.15);
}

/* ===== WIDGET VISUAL UPGRADES ===== */

/* --- BUG FIXES --- */

/* Caiques don't have crests — hide it */
.crest { display: none !important; }

/* Perch removed — Widget floats freely */
.perch, .perch-shadow, .perch-moss { display: none !important; }

/* Fix pupil duplication: let JS animatePupils() handle ALL pupil movement
   The mirror-mode CSS was fighting with the JS transform system */
.parrot.mirror-mode .pupil {
  transform: none !important; /* Let JS handle via style.transform */
  transition: none !important;
}

/* Disable CSS eye wander — JS animatePupils() handles this smoothly */
@keyframes eyeWander {
  0%, 100% { transform: translate(0, 0); }
}

/* --- VISUAL UPGRADES --- */

/* Enhanced iris with depth — concentric rings like real caique eyes */
.iris {
  background: radial-gradient(circle at 45% 45%,
    #0d0d0d 0%,
    #0d0d0d 26%,
    #6b0e0e 27%,
    #9e1515 34%,
    #c42020 42%,
    #b01818 52%,
    #8b1212 62%,
    #6b0e0e 75%,
    #4a0808 100%
  ) !important;
  box-shadow:
    inset 0 0 4px rgba(0,0,0,0.5),
    inset 0 2px 3px rgba(255,100,80,0.15),
    0 0 2px rgba(0,0,0,0.3) !important;
}

/* Larger, more expressive catchlight */
.pupil::after {
  width: 7px !important;
  height: 7px !important;
  top: 1px !important;
  left: 3px !important;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}

/* Eye-ring enhancement — more defined peri-orbital ring like real caiques */
.eye::before {
  background: radial-gradient(circle,
    transparent 52%,
    #c8b8a8 54%,
    #ddd0c4 62%,
    #e8ddd5 72%,
    #d4c8c0 85%,
    transparent 100%
  ) !important;
  inset: -6px !important;
}

/* Richer, more saturated orange crown — true caique warmth */
.crown {
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255,200,100,0.4), transparent 45%),
    radial-gradient(ellipse at 70% 35%, rgba(255,200,100,0.4), transparent 45%),
    linear-gradient(180deg, #ff8820 0%, #ffa040 25%, #ffb855 50%, #ffcc70 75%, #ffd88a 100%) !important;
  box-shadow:
    inset 0 5px 10px rgba(255,255,255,0.35),
    inset 0 -4px 8px rgba(200,100,0,0.15) !important;
}

/* Deeper, more lustrous green wings */
.wing {
  background: linear-gradient(160deg,
    #52d46e 0%,
    #42c05a 15%,
    #35ad4a 30%,
    #2a963e 50%,
    #227f34 70%,
    #1a6a2a 90%,
    #145822 100%) !important;
}

/* Enhanced wing shimmer — more visible iridescence */
.wing-shimmer {
  opacity: 0.7 !important;
}

/* Widget visual upgrades — floating positioning + shadow */
.parrot {
  top: 30% !important;
  filter: drop-shadow(0 35px 40px rgba(0,0,0,0.25))
          drop-shadow(0 15px 20px rgba(0,0,0,0.15)) !important;
}

/* Subtle ambient glow beneath Widget */
#stage::after {
  content: '';
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: clamp(120px, 25vw, 250px);
  height: 30px;
  background: radial-gradient(ellipse, rgba(255,200,100,0.12), transparent 70%);
  transform: translateX(-50%);
  filter: blur(15px);
  pointer-events: none;
  z-index: 2;
  animation: floatGlow 4.8s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.15); }
}

/* More defined beak with better shading */
.beak-upper {
  background: linear-gradient(180deg, #ddd0c4 0%, #d0c0b0 40%, #c4b0a0 70%, #b8a090 100%) !important;
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,0.45),
    inset 0 -3px 5px rgba(0,0,0,0.12),
    0 3px 5px rgba(0,0,0,0.25) !important;
}

/* Nostril detail enhancement */
.beak-upper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
}

/* Brighter, more vibrant yellow face — true caique brightness */
.face-mask {
  background: radial-gradient(ellipse at 50% 40%,
    #fffa60,
    #ffe940 50%,
    #ffd800 80%,
    #f5c800 100%
  ) !important;
  box-shadow: inset 0 0 15px rgba(255,255,255,0.2) !important;
}

/* Softer, warmer white belly with subtle warm undertone */
.belly {
  background: radial-gradient(ellipse at 50% 25%,
    #fffff8,
    #fffdf2 30%,
    #fff8e8 60%,
    #f8f0e0 90%
  ) !important;
  box-shadow:
    inset 0 -10px 25px rgba(0,0,0,0.05),
    inset 0 5px 15px rgba(255,255,255,0.4) !important;
}

/* More defined green tail with depth */
.tail {
  box-shadow:
    inset 2px 0 5px rgba(0,0,0,0.15),
    inset -2px 0 5px rgba(0,0,0,0.15),
    0 4px 8px rgba(0,0,0,0.2) !important;
}
