@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #123a74;
  --navy-deep: #092551;
  --sky: #dcecff;
  --yellow: #ffdb57;
  --orange: #ff6b3d;
  --paper: #f8f6ee;
  --ink: #10213d;
  --muted: #68758b;
  --line: #d6dae2;
}

* { box-sizing: border-box; }
html { background: #d7e3f1; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.78), transparent 26rem),
    #d7e3f1;
  font-family: "Manrope", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.screen {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(9,37,81,.16);
}

.hero {
  position: relative;
  min-height: 43svh;
  padding: max(24px, env(safe-area-inset-top)) 24px 32px;
  overflow: hidden;
  color: white;
  background: var(--navy);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  right: -170px;
  top: 28px;
  z-index: -1;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 3;
  font-size: 12px;
}
.brand {
  font-weight: 800;
  color: var(--navy-deep);
  background: var(--yellow);
  padding: 8px 12px;
  border-radius: 999px;
}
.count { color: rgba(255,255,255,.72); font-weight: 600; }
.event-copy { position: relative; z-index: 2; margin-top: 54px; width: 74%; }
.date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--sky);
  font-weight: 700;
  font-size: 13px;
}
.date span { font-family: "Archivo Black", sans-serif; font-size: 28px; color: var(--yellow); line-height: 1; }
h1 {
  margin: 0;
  max-width: 310px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(38px, 11vw, 52px);
  line-height: .94;
  letter-spacing: -2px;
  text-wrap: balance;
}
.intro { margin: 15px 0 0; max-width: 260px; color: rgba(255,255,255,.72); line-height: 1.55; font-size: 13px; }
.visual { position: absolute; right: -20px; bottom: -17px; width: 205px; height: 265px; color: white; z-index: 1; }
.racket { position: absolute; width: 135px; right: 0; bottom: -35px; transform: rotate(-10deg); filter: drop-shadow(0 18px 14px rgba(0,0,0,.16)); }
.ball { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); top: 28px; right: 134px; box-shadow: inset -8px -8px 0 rgba(117,27,0,.14); }
.ball::after { content:""; position:absolute; inset: 7px; border: 2px solid rgba(255,255,255,.65); border-left-color: transparent; border-radius: 50%; transform: rotate(35deg); }
.court-line { position: absolute; height: 1px; background: rgba(255,255,255,.2); transform-origin: right; }
.line-one { width: 250px; right: -20px; top: 98px; transform: rotate(-32deg); }
.line-two { width: 250px; right: -20px; top: 152px; transform: rotate(-32deg); }

.form-panel { padding: 27px 24px max(24px, env(safe-area-inset-bottom)); }
h2 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: 27px; line-height: 1.05; letter-spacing: -.8px; }
.deadline { margin: 6px 0 24px; color: var(--muted); font-size: 12px; }
.field label, legend { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 800; }
input[type="text"] {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: #98a1b0; }
input[type="text"]:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18,58,116,.1); }
fieldset { border: 0; margin: 21px 0 0; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 11px;
  transition: border-color .15s, background .15s, transform .15s;
}
.choice input:checked + .choice-box { border-color: var(--navy); background: var(--sky); }
.choice input:focus-visible + .choice-box { outline: 3px solid rgba(18,58,116,.24); outline-offset: 2px; }
.choice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 14px;
  font-weight: 800;
}
.choice strong, .choice small { display: block; }
.choice strong { font-size: 12px; line-height: 1.25; }
.choice small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.message { min-height: 20px; margin: 9px 0 5px; color: #b42318; font-size: 12px; font-weight: 600; }
button[type="submit"] {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 20px;
  color: white;
  background: var(--orange);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255,107,61,.24);
}
button[type="submit"]:hover { filter: brightness(.96); }
button[type="submit"]:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(18,58,116,.28); outline-offset: 3px; }
button:disabled { opacity: .62; cursor: wait; }
.button-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--orange); background: white; font-size: 18px; }
.privacy { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { min-height: 48svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 16px 8px; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 30px; font-weight: 900; }
.success-kicker { margin: 0 0 8px; color: var(--orange); font-size: 12px; font-weight: 800; }
.success h2 { font-size: 35px; }
.success p:not(.success-kicker) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.secondary { margin-top: 10px; padding: 12px 17px; border: 1.5px solid var(--navy); border-radius: 10px; color: var(--navy); background: transparent; font-weight: 800; font-size: 12px; }

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .screen { min-height: min(860px, calc(100vh - 48px)); border-radius: 30px; }
  .hero { min-height: 390px; }
}
@media (max-height: 700px) {
  .hero { min-height: 310px; }
  .event-copy { margin-top: 35px; }
  .intro { display: none; }
  .form-panel { padding-top: 20px; }
  .choice-box { min-height: 68px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .event-copy { animation: enter .5s ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(10px); } }
}
