/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bar-height: 72px; }

html { font-size: 16px; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #001f3f;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: #d4af7f;
  text-align: center;
  overflow-x: hidden;
  padding-top: 2.5rem;
  /* keep content from being hidden under the sticky bar */
  padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom));
}

body::before {
  content: "";
  position: absolute; inset: 0;
  background: url('login_signup/doodle.png') center/cover no-repeat;
  opacity: 0.9;
  z-index: -1;
}

.logo {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  object-fit: cover;
  background-color: #002b5c;
}

#fact-container {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#fact-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

#fact-image:hover { transform: scale(1.05); }

#fact-text {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 450;
  line-height: 1.4;
  color: #ffdc9b;
  padding: 0 0.5rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loadingText {
  margin-top: 1.25rem;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

/* ---------- Sticky bottom bar (matches index style) ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--bar-height);
  background: rgba(0, 31, 63, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px
           calc(16px + env(safe-area-inset-right))
           calc(12px + env(safe-area-inset-bottom))
           calc(16px + env(safe-area-inset-left));
}

/* Install button */
#installBtn {
  background-color: #d4af7f;
  color: #001f3f;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.06s ease, opacity 0.2s ease;
  min-width: 180px;
  height: 48px;
}

#installBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#installBtn:hover:enabled { background-color: #ffdc9b; }
#installBtn:active:enabled { transform: translateY(1px); }
#installBtn:focus-visible { outline: 2px solid #ffdc9b; outline-offset: 2px; }

/* Mobile tweaks */
@media (max-width: 480px) {
  body { padding-top: 1.5rem; }
  .sticky-bar { padding-left: 12px; padding-right: 12px; }
}
`
