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

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #101a3a, #2b1055);
  color: #fff;
  touch-action: manipulation;
  user-select: none;
}

main { min-height: 100%; display: flex; }

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5vh;
  padding: 2.5vh 4vw;
  text-align: center;
}
.screen.active { display: flex; }

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.6rem); opacity: 0.85; }

button {
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.8em;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: wait; }
.primary { background: #ffb100; color: #1c1033; }
.secondary { background: rgba(255, 255, 255, 0.16); color: #fff; }
.huge { font-size: clamp(1.6rem, 4vw, 2.4rem); padding: 1.2em 2em; }

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

/* 3:2 matches the printed photo, so the preview is what gets printed. */
.stage {
  position: relative;
  width: min(92vw, calc(62vh * 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}
.stage video, .stage img { width: 100%; height: 100%; object-fit: cover; }
.stage video { transform: scaleX(-1); }

.stage.small { width: min(80vw, calc(48vh * 1.5)); }

#countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(6rem, 25vh, 14rem);
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

#flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#flash.on { animation: flash 0.5s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

form { width: min(100%, 520px); display: flex; flex-direction: column; gap: 2vh; text-align: left; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 1.2rem; font-weight: 600; }
input:not([type="checkbox"]) {
  width: 100%;
  font: inherit;
  font-size: 1.5rem;
  padding: 0.55em 0.7em;
  border: 3px solid transparent;
  border-radius: 12px;
  user-select: text;
}
input:focus { outline: none; border-color: #ffb100; }
.phone { display: flex; align-items: center; gap: 0.6rem; }
#dial-code { font-size: 1.5rem; }
.consent { flex-direction: row; align-items: center; gap: 0.8rem; font-weight: 400; }
.consent input { width: 1.6rem; height: 1.6rem; flex: none; }

.error { color: #ffb4b4; font-size: 1.15rem; min-height: 1.4em; text-align: center; }
.status { font-size: 1.3rem; }
