/* main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #6c3fc5;
  --purple-dark: #4e2d9e;
  --purple-light: #efe8ff;
  --text: #1a1a2e;
  --text-muted: #555572;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(108,63,197,0.12);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--purple); text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* PWA install banner */
#pwa-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e8e0f8;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  max-width: 600px; margin: 0 auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#pwa-banner.visible { transform: translateY(0); }
#pwa-banner p { flex: 1; font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }
#pwa-banner strong { color: var(--text); }
#btn-install-pwa {
  background: var(--purple); color: #fff;
  padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  white-space: nowrap;
}
#btn-dismiss-pwa {
  background: none; color: var(--text-muted); font-size: 0.875rem; padding: 8px;
}
