@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

body {
  font-family: "Roboto", "Arial", "Helvetica Neue", sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #f7f7fb 0%, #eef2ff 100%);
  background-attachment: fixed;
  background-size: cover;
  color: #111827;
}

body[data-background="event"] {
  background-image: linear-gradient(rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.35)),
    url("/static/background-event.svg");
}

.container {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 16px;
}

h1 {
  color: #fff;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fade-in {
  animation: fadeIn 0.25s ease-out;
}

.hidden {
  display: none;
}

.question {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.question.answer-picked {
  background-color: #eef2ff;
}

.timer-pulse {
  animation: timerPulse 1s ease-in-out infinite;
}

.ranking-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.prestart-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cta-secondary-actions {
  margin-top: 24px;
}

.landing-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.intro-card p {
  margin: 0 0 10px 0;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.ranking-link-card {
  display: flex;
  justify-content: flex-start;
}

.ranking-link-button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #E10915;
  color: #fff;
}

.terms-panel {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #eff6ff;
}

.button-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #E10915;
  color: #fff;
}

.ceremony-note {
  margin-top: 12px;
  padding: 10px;
  border-left: 4px solid #E10915;
  background: #eff6ff;
}

.diagnostic-report {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
}

.diagnostic-report ol {
  margin: 0;
  padding-left: 20px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #E10915;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

button:disabled {
  background: #f2a3a8;
  color: #fff;
  opacity: 0.9;
  cursor: not-allowed;
}

input[type="text"] {
  width: 100%;
  max-width: 320px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-family: inherit;
}

input[type="date"] {
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
}

select {
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-family: inherit;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timerPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
