* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f3d2e;
  color: #fff;
}

/* The spinner fills the whole window, as it does when opened on its own */
.spinner {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Transparent blocker after the entrant's one spin, so the result stays visible */
.spent {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.spent[hidden] { display: none; }

.spent-note {
  margin: 0;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.spent.show-note .spent-note { opacity: 1; }

.notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(192, 57, 43, 0.95);
  color: #fff;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.notice[hidden] { display: none; }

/* Overlay that blocks interaction with the spinner until an email is submitted */
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.gate[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-card h2 { margin: 0; font-size: 1.25rem; text-align: center; }

.gate-card input,
.gate-card select {
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.gate-card select:disabled { color: #888; background: #f3f3f3; }

.gate-card button {
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
}

.gate-card button:disabled { opacity: 0.6; cursor: wait; }

.form-error { margin: 0; min-height: 1.2em; color: #c0392b; font-size: 0.9rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
