:root {
  --bg: #faf7f7;
  --text: #121212;
  --btn-bg: #1c1c1c;
  --btn-text: #fafafa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Red Hat Display", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.5rem);
}

h2 {
  font-weight: 600;
  font-size: clamp(3rem, 1vw, 0.5rem);
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
}

.btn:hover:not(.disabled) {
  transform: translateY(-2px);
}

.icon {
  width: 18px;
  height: 18px;
  filter: invert(100%);
}

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

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.hidden {
  display: none;
}

.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 1;
}

.since-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.since-heading {
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  white-space: nowrap;
}

.since-heading .underline-blank {
  display: inline-block;
  min-width: 180px;
  border-bottom: 3px solid var(--text);
  position: relative;
}

.event-select {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 0.5rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fafafa' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  transition: transform 0.15s ease-in-out;
}

.event-select:hover {
  transform: translateY(-2px);
}

.event-select:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.countdown-wrapper {
  margin-top: 1.75rem;
  animation: fadeUp 0.5s ease both;
}

.countdown-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.countdown-label {
  font-weight: 600;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 0.15rem;
}

.countdown-separator {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  opacity: 0.25;
  align-self: flex-start;
  padding-top: 0.15em;
}

.start-date-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.45;
  font-weight: 600;
}

.quiz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.quiz-headline {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.quiz-subtitle {
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 0.75rem;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
}

.quiz-btn:hover {
  transform: translateY(-2px);
}

.quiz-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.quiz-btn.yes {
  background: #22c55e;
}

.quiz-btn.no {
  background: #ef4444;
}

.result-image {
  width: clamp(100px, 20vw, 180px);
  height: auto;
  margin-bottom: 0.5rem;
}
