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

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #87ceeb 0%, #98d8e8 50%, #b0e0e6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.container {
  text-align: center;
  background-color: white;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

h1 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.counter-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

/* Optimistic update styles */
#count.pending {
  opacity: 0.8;
  transform: scale(1.05);
}

#count.optimistic-pulse {
  animation: optimisticPulse 0.3s ease-out;
}

#count.rollback {
  animation: rollbackShake 0.5s ease-out;
  color: #dc3545;
}

@keyframes optimisticPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Adaptive UI Styles */
.insights-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 280px;
  z-index: 1000;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.insights-overlay:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.velocity-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
}

.velocity-value {
  font-size: 1.4rem;
  font-weight: bold;
}

.velocity-unit {
  font-size: 0.8rem;
  opacity: 0.9;
}

.trend-arrow {
  width: 0;
  height: 0;
  transition: all 0.3s ease;
}

.trend-arrow.trend-rising {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #28a745;
}

.trend-arrow.trend-falling {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #dc3545;
}

.trend-arrow.trend-stable {
  width: 12px;
  height: 3px;
  background: #6c757d;
}

.insights-list {
  margin-bottom: 12px;
}

.insight {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  animation: slideInRight 0.3s ease;
}

.insight-urgent {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

.insight-high {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

.insight-medium {
  background: rgba(0, 123, 255, 0.1);
  border-left: 4px solid #007bff;
}

.insight-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.insight-message {
  font-size: 0.85rem;
  line-height: 1.3;
}

.milestone-progress {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 10px;
}

.milestone-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 3px;
  transition: width 0.5s ease;
  position: relative;
}

.milestone-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.milestone-text {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* Intensity Indicator */
.intensity-indicator {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.intensity-ring {
  width: 40px;
  height: 40px;
  border: 3px solid #007bff;
  border-radius: 50%;
  margin: 0 auto 8px;
  position: relative;
  transition: all 0.3s ease;
}

.intensity-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

.intensity-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: capitalize;
}

/* Button Extreme Intensity Effects */
.big-button.extreme-intensity {
  animation: extremeGlow 0.5s infinite alternate;
}

@keyframes extremeGlow {
  0% {
    box-shadow: 0 0 20px currentColor;
  }
  100% {
    box-shadow:
      0 0 40px currentColor,
      0 0 60px currentColor;
  }
}

/* Milestone Celebrations */
.milestone-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: celebrationFadeIn 0.5s ease;
}

.celebration-content {
  text-align: center;
  color: white;
  animation: celebrationBounce 0.8s ease;
}

.celebration-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: titleGlow 2s infinite alternate;
}

.celebration-counter {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

.celebration-message {
  font-size: 1.2rem;
  opacity: 0.9;
}

.celebration-fireworks {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
}

.celebration-fireworks::before,
.celebration-fireworks::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: fireworks 2s infinite;
}

.celebration-fireworks::before {
  animation-delay: 0s;
}

.celebration-fireworks::after {
  animation-delay: 1s;
}

/* Celebration Variants */
.celebration-bronze .celebration-title {
  color: #cd7f32;
}
.celebration-silver .celebration-title {
  color: #c0c0c0;
}
.celebration-gold .celebration-title {
  color: #ffd700;
}
.celebration-platinum .celebration-title {
  color: #e5e4e2;
}
.celebration-diamond .celebration-title {
  color: #b9f2ff;
}
.celebration-legendary .celebration-title {
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Developer Portal and Wiki Links */
.dev-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.dev-link:hover {
  opacity: 0.8;
}

.dev-link a {
  display: block;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dev-link a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dev-link svg {
  display: block;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

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

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px currentColor;
  }
  100% {
    text-shadow:
      0 0 40px currentColor,
      0 0 60px currentColor;
  }
}

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

@keyframes fireworks {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(-20px, -50px);
  }
  75% {
    transform: translate(40px, -20px);
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

/* Mobile Responsiveness for Adaptive UI */
@media (max-width: 768px) {
  .insights-overlay {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    font-size: 0.8rem;
  }

  .celebration-title {
    font-size: 2rem;
  }

  .celebration-counter {
    font-size: 2.5rem;
  }

  .intensity-indicator {
    top: -50px;
  }
}

@keyframes rollbackShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Web Platform Features */
.share-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-button:active {
  transform: translateY(0);
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Connection status indicator */
.connection-status {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: bold;
  animation: slideIn 0.3s ease;
}

.connection-status.online {
  background-color: #28a745;
  color: white;
}

.connection-status.offline {
  background-color: #dc3545;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0 0 5px 0;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced button states */
.big-button.pulse {
  animation: buttonPulse 0.3s ease;
}

.big-button.pressed {
  transform: scale(0.98);
}

.big-button.processing {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Count increase animation */
#count.count-increase {
  animation: countBounce 0.3s ease;
}

@keyframes countBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading state */
#count.loading {
  opacity: 0.5;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.big-button {
  background-color: #dc3545;
  color: white;
  border: none;
  width: 150px;
  height: 150px;
  font-size: 3rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.big-button:hover {
  background-color: #c82333;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.big-button:active {
  transform: scale(0.95);
}

.qr-container {
  margin-top: 1rem;
  text-align: center;
}

.qr-container img {
  background-color: white;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 150px;
  height: 150px;
}

/* Offline and Service Worker Styles */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ff9800;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

.offline-indicator .offline-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.offline-indicator .offline-text {
  flex: 1;
  text-align: center;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Offline button state */
.big-button.offline-mode {
  background-color: #6c757d;
  box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
  position: relative;
}

.big-button.offline-mode:hover {
  background-color: #5a6268;
  box-shadow: 0 8px 16px rgba(108, 117, 125, 0.4);
}

.big-button.offline-mode::after {
  content: '📱';
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff9800;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Notification styles */
.update-notification,
.sync-notification,
.offline-increment-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease-out;
  max-width: 300px;
  font-size: 0.9rem;
}

.update-notification {
  background-color: #007bff;
}

.offline-increment-notification {
  background-color: #ff9800;
  top: 80px; /* Position below offline indicator */
}

.update-notification button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.update-notification button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsiveness for offline features */
@media (max-width: 480px) {
  .offline-indicator {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .update-notification,
  .sync-notification,
  .offline-increment-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .offline-increment-notification {
    top: 60px; /* Adjust for mobile */
  }

  .big-button.offline-mode::after {
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
}

/* Connection status indicator */
.connection-status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.3s ease-out;
}

.connection-status.connected {
  background-color: rgba(40, 167, 69, 0.9);
}

.connection-status.connecting,
.connection-status.reconnecting {
  background-color: rgba(255, 193, 7, 0.9);
  animation: pulse 2s infinite;
}

.connection-status.disconnected {
  background-color: rgba(220, 53, 69, 0.9);
}

@keyframes fadeInUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* PWA specific styles */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .offline-indicator {
    top: env(safe-area-inset-top);
  }

  .update-notification,
  .sync-notification,
  .offline-increment-notification {
    top: calc(20px + env(safe-area-inset-top));
  }

  .offline-increment-notification {
    top: calc(80px + env(safe-area-inset-top));
  }

  .connection-status {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Mobile responsiveness for connection status */
@media (max-width: 480px) {
  .connection-status {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    border-radius: 8px;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  @media (display-mode: standalone) {
    .connection-status {
      bottom: calc(10px + env(safe-area-inset-bottom));
    }
  }
}

/* Community Features Styles */
.community-container {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
  pointer-events: none;
}

.community-container > * {
  pointer-events: auto;
}

/* Live Presence Indicators */
.community-presence {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 120px;
}

.presence-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.presence-count {
  color: #28a745;
  font-weight: 600;
}

.presence-pulse {
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  animation: presencePulse 2s infinite;
}

@keyframes presencePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.presence-regions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.presence-region {
  font-size: 1.2rem;
  filter: grayscale(0.2);
}

/* Daily Challenge */
.community-challenge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 200px;
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.challenge-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.challenge-reward {
  font-size: 1.4rem;
}

.challenge-progress {
  position: relative;
}

.challenge-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.challenge-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.challenge-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.challenge-text {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.challenge-content.completed .challenge-fill {
  background: linear-gradient(90deg, #28a745, #20c997);
}

/* Shared Moments */
.community-moments {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 250px;
}

.moment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  margin-bottom: 8px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.moment-item:last-child {
  margin-bottom: 0;
}

.moment-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.moment-emoji {
  font-size: 1.2rem;
}

.moment-text {
  flex: 1;
  color: #333;
  font-weight: 500;
}

.moment-time {
  font-size: 0.7rem;
  color: #999;
}

/* Heat Map Toggle */
.heat-map-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #007bff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.heat-map-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.heat-map-toggle:active {
  transform: scale(0.95);
}

/* Heat Map Overlay */
.heat-map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.heat-map-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.heat-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.heat-map-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.heat-map-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.heat-map-close:hover {
  color: #333;
}

.geo-top-countries {
  margin-bottom: 20px;
}

.geo-top-countries h4 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 12px;
}

.geo-country {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.geo-flag {
  font-size: 1.5rem;
  margin-right: 12px;
}

.geo-name {
  flex: 1;
  font-weight: 500;
}

.geo-count {
  color: #007bff;
  font-weight: 600;
}

.geo-summary {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 16px;
}

.heat-map-visual {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.heat-map-visual pre {
  margin: 0;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
}

/* Reaction Feedback */
.reaction-feedback {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 10001;
  pointer-events: none;
  transition: all 0.8s ease;
}

/* Challenge Celebration */
.challenge-celebration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.celebration-content {
  text-align: center;
  animation: bounceIn 0.8s ease;
}

.celebration-emoji {
  font-size: 5rem;
  margin-bottom: 16px;
  animation: spin 2s linear infinite;
}

.celebration-text {
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

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

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Performance Art Platform Styles */
.performance-mode-selector {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.mode-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid transparent;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.mode-button:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  transform: translateY(-2px);
}

.mode-button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.mode-icon {
  font-size: 1.5rem;
}

.mode-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Rhythm Mode Styles */
.rhythm-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 300px;
}

.rhythm-visualizer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rhythm-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  gap: 4px;
}

.rhythm-bar {
  flex: 1;
  min-height: 4px;
  background: #007bff;
  border-radius: 2px 2px 0 0;
  transition: all 0.1s ease;
}

.rhythm-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

.rhythm-bpm {
  font-weight: 600;
  color: #007bff;
}

/* Canvas Mode Styles */
.performance-canvas-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

.performance-canvas-container canvas {
  border-radius: 8px;
  cursor: crosshair;
  max-width: 90vw;
  max-height: 70vh;
}

.canvas-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.canvas-controls button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.canvas-controls button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

/* Composition Controls */
.composition-controls {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.composition-panel {
  display: flex;
  align-items: center;
  gap: 20px;
}

.composition-record {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.composition-record:hover {
  background: #c82333;
  transform: scale(1.05);
}

.composition-record.recording {
  background: #28a745;
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.composition-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.composition-time {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: monospace;
}

.composition-clicks {
  font-size: 0.9rem;
  color: #666;
}

.composition-save {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.composition-save:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.composition-save:hover:not(:disabled) {
  background: #218838;
  transform: scale(1.05);
}

/* Gallery Styles */
.gallery-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-container.gallery-open {
  pointer-events: auto;
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.gallery-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  height: 90%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
}

.gallery-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-view-toggle,
.gallery-close {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-view-toggle:hover,
.gallery-close:hover {
  background: #f0f0f0;
  border-color: #999;
}

.gallery-view-toggle.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.gallery-filters {
  display: flex;
  gap: 10px;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.gallery-sort {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.gallery-filter-type {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-type:hover {
  background: #f0f0f0;
}

.gallery-filter-type.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-piece {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-piece:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gallery-piece-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  overflow: hidden;
}

.gallery-piece-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-piece-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: #ddd;
}

.gallery-piece-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-piece:hover .gallery-piece-overlay {
  opacity: 1;
}

.gallery-piece-type {
  font-size: 2rem;
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-piece-info {
  padding: 16px;
}

.gallery-piece-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #333;
}

.gallery-piece-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.gallery-piece-stats {
  display: flex;
  gap: 12px;
}

/* Gallery Detail View */
.gallery-detail {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.gallery-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.gallery-detail-back {
  background: none;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.gallery-detail-back:hover {
  background: #f0f0f0;
  border-color: #999;
}

.gallery-detail-actions {
  display: flex;
  gap: 10px;
}

.gallery-detail-like,
.gallery-detail-share {
  background: white;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.gallery-detail-like:hover,
.gallery-detail-share:hover {
  background: #f0f0f0;
  border-color: #999;
}

.gallery-detail-like.liked {
  background: #ffebee;
  border-color: #dc3545;
  color: #dc3545;
}

.gallery-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gallery-detail-media {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-detail-media img {
  max-width: 100%;
  border-radius: 8px;
}

.gallery-detail-info h1 {
  margin: 0 0 16px 0;
  font-size: 2rem;
  color: #333;
}

.gallery-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.gallery-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.stat {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.gallery-detail-replay {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.gallery-detail-replay:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Gallery Notifications */
.gallery-notification,
.performance-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #28a745;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10001;
}

.gallery-notification.show,
.performance-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.performance-notification.error {
  background: #dc3545;
}

/* Performance Mode Body Classes */
body.performance-mode-rhythm .big-button {
  animation: rhythmPulse 0.5s ease-out;
}

body.performance-mode-canvas .big-button {
  background: linear-gradient(45deg, #dc3545, #ff6b6b);
}

body.performance-mode-timelapse .big-button {
  position: relative;
}

body.performance-mode-timelapse .big-button::after {
  content: '⏺️';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 1.5rem;
  animation: recordPulse 1s infinite;
}

@keyframes rhythmPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Responsiveness for Performance Features */
@media (max-width: 768px) {
  .performance-mode-selector {
    bottom: 10px;
    padding: 8px;
    gap: 6px;
  }

  .mode-button {
    padding: 6px 10px;
  }

  .mode-icon {
    font-size: 1.2rem;
  }

  .mode-label {
    font-size: 0.65rem;
  }

  .rhythm-indicator {
    top: 10px;
    padding: 16px;
    min-width: 250px;
  }

  .performance-canvas-container {
    padding: 16px;
    width: 90%;
  }

  .composition-controls {
    top: 60px;
    padding: 16px;
  }

  .composition-panel {
    flex-wrap: wrap;
    gap: 12px;
  }

  .gallery-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .gallery-detail-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .performance-mode-selector {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery-filters {
    flex-wrap: wrap;
    padding: 12px;
  }

  .gallery-filter-type {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Mobile Responsiveness for Community Features */
@media (max-width: 768px) {
  .community-container {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 10px;
  }

  .community-presence,
  .community-challenge,
  .community-moments {
    min-width: auto;
    font-size: 0.8rem;
  }

  .community-moments {
    width: 100%;
    max-width: none;
  }

  .heat-map-toggle {
    bottom: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .heat-map-content {
    padding: 16px;
    border-radius: 12px;
  }

  .challenge-celebration {
    padding: 20px;
  }

  .celebration-emoji {
    font-size: 3rem;
  }

  .celebration-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .community-container {
    gap: 8px;
  }

  .community-presence,
  .community-challenge {
    padding: 10px;
    font-size: 0.75rem;
  }

  .moment-item {
    font-size: 0.75rem;
    padding: 6px;
  }

  .heat-map-toggle {
    bottom: 60px;
  }
}

/* Reaction Picker */
.reaction-picker {
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10002;
  animation: fadeInScale 0.2s ease;
}

.reaction-picker-content {
  display: flex;
  gap: 8px;
}

.reaction-option {
  background: none;
  border: 2px solid transparent;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-option:hover {
  background: #f0f0f0;
  border-color: #007bff;
  transform: scale(1.2);
}

.reaction-option:active {
  transform: scale(0.9);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Zeus-inspired Cloud Background */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.clouds {
  position: absolute;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: contain;
  opacity: 0.8;
}

/* Cloud layer 1 - Closest/fastest */
.clouds-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300'%3E%3Cdefs%3E%3Cfilter id='blur1'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='1'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23ffffff' opacity='0.9'%3E%3Cellipse cx='100' cy='150' rx='120' ry='60' filter='url(%23blur1)'/%3E%3Cellipse cx='200' cy='120' rx='100' ry='50' filter='url(%23blur1)'/%3E%3Cellipse cx='300' cy='160' rx='90' ry='45' filter='url(%23blur1)'/%3E%3Cellipse cx='500' cy='140' rx='140' ry='70' filter='url(%23blur1)'/%3E%3Cellipse cx='650' cy='130' rx='110' ry='55' filter='url(%23blur1)'/%3E%3Cellipse cx='800' cy='150' rx='130' ry='65' filter='url(%23blur1)'/%3E%3Cellipse cx='950' cy='140' rx='100' ry='50' filter='url(%23blur1)'/%3E%3Cellipse cx='1100' cy='160' rx='120' ry='60' filter='url(%23blur1)'/%3E%3C/g%3E%3C/svg%3E");
  animation: drift-clouds 40s linear infinite;
  top: 10%;
}

/* Cloud layer 2 - Middle */
.clouds-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cdefs%3E%3Cfilter id='blur2'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='2'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23f0f0f0' opacity='0.7'%3E%3Cellipse cx='150' cy='200' rx='160' ry='80' filter='url(%23blur2)'/%3E%3Cellipse cx='350' cy='180' rx='140' ry='70' filter='url(%23blur2)'/%3E%3Cellipse cx='550' cy='220' rx='130' ry='65' filter='url(%23blur2)'/%3E%3Cellipse cx='750' cy='190' rx='150' ry='75' filter='url(%23blur2)'/%3E%3Cellipse cx='950' cy='210' rx='120' ry='60' filter='url(%23blur2)'/%3E%3Cellipse cx='1150' cy='200' rx='140' ry='70' filter='url(%23blur2)'/%3E%3C/g%3E%3C/svg%3E");
  animation: drift-clouds 60s linear infinite;
  top: 30%;
  opacity: 0.6;
}

/* Cloud layer 3 - Farthest/slowest */
.clouds-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 500'%3E%3Cdefs%3E%3Cfilter id='blur3'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23e0e0e0' opacity='0.5'%3E%3Cellipse cx='200' cy='300' rx='180' ry='90' filter='url(%23blur3)'/%3E%3Cellipse cx='400' cy='280' rx='160' ry='80' filter='url(%23blur3)'/%3E%3Cellipse cx='600' cy='320' rx='170' ry='85' filter='url(%23blur3)'/%3E%3Cellipse cx='800' cy='290' rx='190' ry='95' filter='url(%23blur3)'/%3E%3Cellipse cx='1000' cy='310' rx='150' ry='75' filter='url(%23blur3)'/%3E%3C/g%3E%3C/svg%3E");
  animation: drift-clouds 90s linear infinite;
  top: 50%;
  opacity: 0.4;
}

@keyframes drift-clouds {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Lightning effect for Zeus theme */
.lightning {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  animation: lightning-flash 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lightning-flash {
  0%,
  90%,
  100% {
    opacity: 0;
  }
  91% {
    opacity: 0.8;
  }
  92% {
    opacity: 0;
  }
  93% {
    opacity: 0.6;
  }
  94% {
    opacity: 0;
  }
}

/* Enhance container to stand out against clouds */
.container {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 10;
}

/* Make button more divine */
.big-button {
  background: linear-gradient(145deg, #dc3545, #c82333);
  box-shadow:
    0 6px 20px rgba(220, 53, 69, 0.4),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.big-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.big-button:hover::before {
  animation: divine-shine 0.5s ease-in-out;
}

@keyframes divine-shine {
  0% {
    transform: rotate(45deg) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translateY(100%);
    opacity: 0;
  }
}

/* Adjust other elements for better contrast */
.qr-container,
.dev-link {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
