/* Shared Felt PWA Styles */
:root {
  --pad: 24px;
}

body {
  font-family: -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
  padding: var(--pad);
  margin: 0;
  background: linear-gradient(135deg, #7A8B75 0%, #5A6B55 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 400px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(255,255,255,0.2);
}

.logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #7A8B75;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

h1 {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 700;
}

p {
  margin: 0 0 32px 0;
  opacity: 0.9;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  color: #7A8B75;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

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

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.muted {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.instructions-section {
  margin-top: 40px;
  padding: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.instructions-section h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  text-align: center;
}

.platform-instructions {
  display: none;
  margin: 20px 0;
}

.platform-instructions ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.platform-instructions li {
  margin-bottom: 8px;
}

.reset-section {
  display: none;
  margin-top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  text-align: center;
}

/* PWA standalone mode improvements */
@media (display-mode: standalone) {
  body {
    /* Better safe area handling for PWAs */
    padding: env(safe-area-inset-top, var(--pad)) env(safe-area-inset-right, var(--pad)) env(safe-area-inset-bottom, var(--pad)) env(safe-area-inset-left, var(--pad));
    /* Use dynamic viewport height for better mobile support */
    min-height: 100dvh;
  }
  
  .container {
    /* Ensure container fits properly on all screen sizes */
    max-width: min(400px, calc(100vw - 48px));
    width: 100%;
    box-sizing: border-box;
  }
}
