:root {
  --paper: #f7f4ed;
  --ink: #171717;
  --blue: #2727c7;
  --red: #f03722;
  --line: rgba(39, 39, 199, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0 47px, var(--line) 48px 50px),
    linear-gradient(90deg, transparent 0 7%, rgba(240,55,34,.22) 7.1% 7.3%, transparent 7.4%),
    var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(#111 0.55px, transparent 0.55px);
  background-size: 5px 5px;
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr); gap: 52px; align-items: center; padding: 48px 0; }
.flyer-wrap { transform: rotate(-1deg); box-shadow: 12px 14px 0 rgba(39,39,199,.16); }
.flyer { display: block; width: 100%; height: auto; }
.paper { background: #fff; border: 2px solid var(--blue); }
.intro h1, .section-heading h2 { margin: 0; text-transform: uppercase; line-height: .9; letter-spacing: -0.06em; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; }
.intro h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--red); text-shadow: 4px 4px 0 var(--blue); }
.eyebrow { color: var(--blue); font-weight: 900; letter-spacing: .12em; }
.date { font-size: 1.15rem; font-weight: 900; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--blue); background: var(--red); color: white;
  padding: 14px 18px; font: inherit; font-weight: 900; text-decoration: none;
  box-shadow: 5px 5px 0 var(--blue); cursor: pointer;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--blue); }
.form-section { padding: 72px 0 100px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(3rem, 8vw, 6rem); color: var(--blue); }
form { background: rgba(255,255,255,.91); border: 3px solid var(--blue); padding: clamp(20px, 4vw, 42px); box-shadow: 10px 10px 0 rgba(240,55,34,.72); }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; margin: 0 0 18px; font-weight: 800; }
label span, label b { color: var(--red); }
input, select, textarea {
  width: 100%; border: 2px solid var(--blue); border-radius: 0; padding: 12px;
  background: #fff; color: #111; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(240,55,34,.28); }
.waiver-box { margin: 28px 0; border: 2px dashed var(--red); padding: 20px; background: #fff8f2; }
.waiver-box h3 { margin-top: 0; color: var(--blue); text-transform: uppercase; }
.waiver-copy { max-height: 280px; overflow: auto; padding-right: 12px; line-height: 1.55; }
.check { display: grid; grid-template-columns: 24px 1fr; align-items: start; margin-top: 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.check span { color: inherit; font-weight: 700; }
.submit { width: 100%; font-size: 1rem; }
.message { min-height: 24px; margin-bottom: 0; font-weight: 900; }
.message.success { color: #0a6b22; }
.message.error { color: #a31212; }
footer { padding: 26px 16px; text-align: center; color: var(--blue); font-weight: 900; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; }
  .flyer-wrap { max-width: 620px; margin: 0 auto; }
  .intro { text-align: center; }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
}

.form-title { margin: 32px 0 16px; color: var(--blue); text-transform: uppercase; }
.age-display { margin: -8px 0 18px; padding: 10px 12px; border-left: 4px solid var(--red); background: #fff8f2; }
.minor-section { margin: 28px 0; padding: 20px; border: 3px solid var(--red); background: #fff3e8; }
.minor-section[hidden] { display: none; }
.minor-section h3 { margin-top: 0; color: var(--red); text-transform: uppercase; }
.media-choice { margin: 22px 0 0; border: 2px solid var(--blue); padding: 14px; }
.media-choice legend { font-weight: 900; color: var(--blue); }

.confirmation-panel {
  background: rgba(255,255,255,.91); border: 3px solid var(--blue); padding: clamp(24px, 5vw, 48px);
  box-shadow: 10px 10px 0 rgba(240,55,34,.72); text-align: center;
}
.confirmation-panel[hidden] { display: none; }
.confirmation-eyebrow { color: var(--red); font-weight: 900; letter-spacing: .12em; margin: 0 0 6px; text-transform: uppercase; }
.confirmation-panel h3 { margin: 0 0 14px; text-transform: uppercase; letter-spacing: -0.04em; color: var(--blue); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2rem, 6vw, 3.2rem); }
.confirmation-panel p { margin: 0 0 12px; font-weight: 700; }
.confirmation-note { color: var(--blue); }
.confirmation-panel .button { margin-top: 12px; }
.radio { display: grid; grid-template-columns: 24px 1fr; align-items: start; margin: 10px 0 0; }
.radio input { width: 20px; height: 20px; margin-top: 1px; }
.radio span { color: inherit; }
.legal-note { margin-top: 24px; font-size: .9rem; line-height: 1.5; }
button:disabled { opacity: .65; cursor: wait; }


/* KOTY SPONSORS START */

.sponsors-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 1rem;
  overflow: hidden;
  border-top: 3px solid #1717b7;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(30, 166, 222, 0.2) 32px,
      rgba(30, 166, 222, 0.2) 34px
    );
}

.sponsors-inner {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.sponsors-eyebrow {
  margin: 0 0 0.7rem;
  color: #e83d22;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.sponsors-section h2 {
  margin: 0;
  color: #1717b7;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 1000;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.sponsors-intro {
  width: min(640px, 100%);
  margin: 1rem auto 2.5rem;
  color: #282828;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.3rem);
}

.sponsor-card {
  display: flex;
  min-width: 0;
  padding: 0.7rem 0.7rem 1rem;
  color: #181818;
  text-align: center;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  border: 3px solid #1717b7;
  background: #fff;
  box-shadow:
    5px 6px 0 #1717b7,
    8px 9px 0 rgba(232, 61, 34, 0.72);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-6px);
  box-shadow:
    7px 9px 0 #1717b7,
    11px 13px 0 rgba(232, 61, 34, 0.86);
}

.sponsor-logo-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(0.65rem, 1.4vw, 1.1rem);
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(23, 23, 183, 0.2);
  background: #fff;
}

.sponsor-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
}

.sponsor-logo-wide {
  padding: 8%;
}

.sponsor-name {
  margin-top: 0.9rem;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 1000;
  line-height: 1.1;
  text-transform: uppercase;
}

.sponsor-link-label {
  margin-top: auto;
  padding-top: 0.55rem;
  color: #e83d22;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-card:last-child {
    grid-column: 1 / -1;
    width: min(260px, 100%);
    justify-self: center;
  }
}

/* KOTY SPONSORS END */

.sponsor-email-link {
  color: #1717b7;
  font-weight: 1000;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sponsor-email-link:hover,
.sponsor-email-link:focus-visible {
  color: #e83d22;
}


/* 5150 FEATURE LOGO START */

.presented-by-logo {
  display: flex;
  width: min(720px, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  color: inherit;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 3px solid #1717b7;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    8px 9px 0 #1717b7,
    13px 14px 0 rgba(232, 61, 34, 0.78);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.presented-by-logo:hover,
.presented-by-logo:focus-visible {
  outline: none;
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow:
    10px 12px 0 #1717b7,
    16px 18px 0 rgba(232, 61, 34, 0.9);
}

.presented-by-label {
  color: #e83d22;
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.presented-by-logo img {
  display: block;
  width: min(620px, 100%);
  max-height: 300px;
  object-fit: contain;
}

@media (max-width: 620px) {
  .presented-by-logo {
    padding: 1rem;
    box-shadow:
      5px 6px 0 #1717b7,
      8px 9px 0 rgba(232, 61, 34, 0.78);
  }

  .presented-by-logo img {
    max-height: 210px;
  }
}

/* 5150 FEATURE LOGO END */

/* KOTY CONTRIBUTIONS START */

.contribution-card {
  width: min(760px, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  border: 3px solid #e83d22;
  background: #fff;
  box-shadow:
    7px 8px 0 #e83d22,
    12px 13px 0 #1717b7;
}

.contribution-kicker {
  margin: 0 0 0.5rem;
  color: #e83d22;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contribution-card h3 {
  margin: 0;
  color: #1717b7;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.contribution-card p:not(.contribution-kicker) {
  width: min(620px, 100%);
  margin: 1rem auto 1.4rem;
  font-weight: 700;
  line-height: 1.55;
}

.contribution-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.post-waiver-contribution {
  margin-top: 1.25rem;
  padding: 1rem;
  text-align: center;
  border: 2px dashed #1717b7;
  background: rgba(255, 255, 255, 0.82);
}

.post-waiver-contribution p {
  margin: 0 0 0.55rem;
}

.post-waiver-contribution a {
  color: #e83d22;
  font-weight: 1000;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* KOTY CONTRIBUTIONS END */
