* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  height: 100vh;
  overflow: hidden;
  /* Rich gradient for day mode - soft warm to cool tones */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Night mode - deep atmospheric gradient */
body.night-mode {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #1a1a2e 75%, #0f0c29 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#app-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.weather-card {
  position: relative;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.city-name {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.night-mode .city-name {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(102, 126, 234, 0.4), 0 1px 2px rgba(255, 255, 255, 0.2);
}

.weather-icon-container {
  margin: 2px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.weather-icon {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.date {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 2px;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.night-mode .date {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.time {
  font-size: clamp(0.6rem, 1.4vw, 0.7rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 3px;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.night-mode .time {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.temperature-container {
  margin: 2px 0;
  flex-shrink: 0;
}

.temperature {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.night-mode .temperature {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(102, 126, 234, 0.4), 0 1px 2px rgba(255, 255, 255, 0.2);
}

.session-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 5px 0;
  flex-shrink: 0;
}

.control-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  font-size: clamp(0.7rem, 1.6vw, 0.8rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.start-btn {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.3), 
    rgba(33, 150, 243, 0.3), 
    rgba(156, 39, 176, 0.3), 
    rgba(233, 30, 99, 0.3));
  background-size: 300% 300%;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(76, 175, 80, 0.2),
    0 0 20px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: gradientGlow 3s ease infinite;
}

@keyframes gradientGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 
      0 8px 32px rgba(76, 175, 80, 0.3),
      0 0 30px rgba(76, 175, 80, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  25% {
    background-position: 50% 50%;
    box-shadow: 
      0 8px 32px rgba(33, 150, 243, 0.3),
      0 0 30px rgba(33, 150, 243, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 8px 32px rgba(156, 39, 176, 0.3),
      0 0 30px rgba(156, 39, 176, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  75% {
    background-position: 50% 50%;
    box-shadow: 
      0 8px 32px rgba(233, 30, 99, 0.3),
      0 0 30px rgba(233, 30, 99, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 
      0 8px 32px rgba(76, 175, 80, 0.3),
      0 0 30px rgba(76, 175, 80, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.start-btn:hover {
  transform: translateY(-3px) scale(1.05);
  animation: gradientGlow 1.5s ease infinite;
  box-shadow: 
    0 12px 48px rgba(76, 175, 80, 0.4),
    0 0 40px rgba(76, 175, 80, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.start-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 4px 16px rgba(76, 175, 80, 0.3),
    0 0 20px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.stop-btn {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.25), rgba(229, 57, 53, 0.35));
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(244, 67, 54, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stop-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.stop-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 48px rgba(244, 67, 54, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.35), rgba(229, 57, 53, 0.45));
  border-color: rgba(255, 255, 255, 0.3);
}

.stop-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 4px 16px rgba(244, 67, 54, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.timer-display {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 70px;
  text-align: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}

.timer-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.night-mode .timer-display {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.weather-description {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 4px 0;
  text-transform: capitalize;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.night-mode .weather-description {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.weather-advice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.weather-advice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.night-mode .weather-advice {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.advice-icon {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  flex-shrink: 0;
}

.advice-text {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.night-mode .advice-text {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.additional-info {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 20px);
  margin: 4px 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.additional-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.night-mode .additional-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: clamp(0.55rem, 1.4vw, 0.65rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.night-mode .info-label {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-value {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.night-mode .info-value {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sf-landmark {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.95;
  flex: 3;
  min-height: 0;
  position: relative;
}

.landmark-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landmark-img:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  animation: sparkle 3s ease-in-out infinite;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.night-mode .sparkle {
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.9);
}

.sparkle-1 {
  bottom: 15%;
  right: 5%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 20%;
  left: 5%;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(180deg);
  }
}

/* Congratulations overlay */
.congrats-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInOverlay 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.congrats-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-radius: 32px;
  padding: 30px 50px;
  text-align: center;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}

.congrats-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 32px 32px 0 0;
  pointer-events: none;
}

.congrats-video-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.congrats-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.congrats-emoji {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 20px;
  animation: celebrateEmoji 0.8s ease-out;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.congrats-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.congrats-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 40px);
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.stat-label {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.congrats-message {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .congrats-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .congrats-content {
    padding: 20px 30px;
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes celebrateEmoji {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(-15deg);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
  75% {
    transform: scale(1.2) rotate(-10deg);
  }
}

/* Corner buttons - music and info */
.music-toggle-corner,
.info-button-corner {
  position: absolute;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  font-size: 16px;
}

.music-toggle-corner.left {
  left: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.info-button-corner.right {
  right: 10px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(25, 118, 210, 0.35));
  box-shadow: 
    0 4px 16px rgba(33, 150, 243, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.music-toggle-corner::before,
.info-button-corner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
  border-radius: 50% 50% 0 0;
}

.music-toggle-corner:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.4);
}

.info-button-corner:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 24px rgba(33, 150, 243, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.35), rgba(25, 118, 210, 0.45));
}

.music-toggle-corner:active,
.info-button-corner:active {
  transform: translateY(-1px) scale(0.98);
}

#musicIcon {
  font-size: 16px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.music-toggle-corner:hover #musicIcon,
.info-button-corner:hover span {
  transform: scale(1.1);
}

/* Info Modal */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

.info-modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-radius: 24px;
  padding: 30px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.info-header {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-body {
  color: rgba(255, 255, 255, 0.9);
}

.info-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.info-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(69, 160, 73, 0.5));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.step-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.prompt-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.prompt-box p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  max-height: 150px;
  overflow-y: auto;
}

.copy-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(25, 118, 210, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.copy-btn:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(25, 118, 210, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.copy-btn:active {
  transform: translateY(0);
}

.info-footer {
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .info-modal-content {
    padding: 20px;
  }
  
  .info-step {
    flex-direction: column;
    gap: 10px;
  }
}

/* Dev Mode Panel */
.dev-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 280px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  padding: 16px;
  z-index: 1000;
}

.dev-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.dev-header {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dev-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dev-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dev-setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-setting label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dev-input,
.dev-select {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dev-input:focus,
.dev-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.dev-btn {
  padding: 10px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(69, 160, 73, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 16px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dev-btn:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(69, 160, 73, 0.5));
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.dev-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .dev-panel {
    width: 240px;
    top: 10px;
    right: 10px;
    padding: 12px;
  }
}

/* Loading state */
.loading {
  opacity: 0.6;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .weather-card {
    padding: 10px;
  }
  
  .city-name {
    margin-bottom: 5px;
  }
  
  .weather-icon-container {
    margin: 3px 0;
  }
  
  .temperature-container {
    margin: 3px 0;
  }
  
  .weather-description {
    margin: 5px 0;
  }
  
  .additional-info {
    margin: 5px 0;
    padding: 8px 12px;
  }
  
  .sf-landmark {
    margin-top: 5px;
  }
}
