/* Identidade do Fisgou: as cores do mascote (as mesmas de scripts/ig_art.py) e a Poppins. */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/poppins-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/poppins-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #1e3450;
  --orange: #ff5a1f;
  --orange-dark: #e2480f;
  --paper: #eef3f5;
  --white: #ffffff;
  --gray: #556273;
  --mist: #aabacc;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 0%, var(--white) 0%, var(--paper) 60%);
  color: var(--navy);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 380px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.mascot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow:
    0 0 0 3px var(--orange),
    0 12px 32px rgba(30, 52, 80, 0.18);
}

h1 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray);
}

.status {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--mist);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.join {
  margin-top: 4px;
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.32);
  transition: background 0.15s ease;
}

.join:hover,
.join:focus-visible {
  background: var(--orange-dark);
}

.join:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hint {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy);
}

.hint[hidden] {
  display: none;
}

footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}

footer a {
  color: var(--navy);
}
