/* Minimal, elegant, responsive styling */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Open Sans', Arial, sans-serif;
  color: #fff;
  line-height: 1.5;
}

/* Fullscreen blurred & darkened background using body::before */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) brightness(0.45);
  transform: scale(1.03);
  z-index: -2;
}

/* A subtle overlay to ensure readability */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

#app {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Modal (white card style like reference) */
.modal {
  width: min(680px, 92vw);
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(8px);
}

/* Title centered */
.title {
  margin: 0 0 10px 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #111827;
  text-align: center;
}

.message {
  margin: 0 0 18px 0;
  color: #374151;
}

/* Actions: two columns with centered buttons */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 6px 0;
  justify-items: center;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  height: 42px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background-color 120ms ease, border-color 120ms ease;
  width: 100%;
  max-width: 160px;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid rgba(37,99,235,0.9);
  outline-offset: 2px;
}

/* Primary: blue */
.btn-primary {
  background: #2563EB;
  color: #ffffff;
  border: 1px solid rgba(37,99,235,0.8);
}
.btn-primary:hover { background: #1D4ED8; }

/* Secondary: gray */
.btn-ghost {
  background: #E5E7EB;
  color: #111827;
  border: 1px solid #E5E7EB;
}
.btn-ghost:hover { background: #D1D5DB; }

.links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 14px;
  color: #2563EB;
}

.links a {
  color: #2563EB;
  text-underline-offset: 3px;
}

/* Fade-in animation fires when body gets .ready */
body.ready .modal {
  animation: fadeIn 420ms ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* Visually hidden footer that remains in the DOM */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  z-index: 9999;
}
