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

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #000;
  position: relative;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
  pointer-events: none;
}

#canvas:active {
  cursor: default;
}

#blessing-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  pointer-events: none;
  transition: all 0.3s ease;
}

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  color: #1a0f00;
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4);
  min-width: 500px;
  max-width: 800px;
  animation: slideIn 0.4s ease-out, fadeOut 0.5s ease-in 9.5s forwards;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.toast-message {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.toast-author {
  font-size: 16px;
  opacity: 0.8;
  font-style: italic;
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

#qr-code {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

#qr-code img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 8px;
}

/* Responsive QR code size */
@media (max-width: 768px) {
  #qr-code {
    bottom: 15px;
    right: 15px;
    padding: 10px;
  }

  #qr-code img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  #qr-code {
    bottom: 10px;
    right: 10px;
    padding: 8px;
  }

  #qr-code img {
    width: 100px;
    height: 100px;
  }
}
