:root {
  --survey-header-height: 156px;
  --page: #f5f5f5;
  --surface: #ffffff;
  --ink: #050505;
  --muted: #676767;
  --line: #e5e7eb;
  --soft-line: #d4d4d4;
  --accent: #b9975b;
  --accent-soft: #f0e7d5;
  --accent-strong: #8f6d33;
  --warning: #a14f33;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: "Ringside Regular A", "Ringside Regular B", Arial, Helvetica, sans-serif;
}

html:has(body.question-viewport),
body.question-viewport {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 26px clamp(18px, 4vw, 48px);
  background: var(--page);
}

.brand {
  display: block;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 50%;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.survey-menu-wrap {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-label {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-button {
  display: grid;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 4px;
  background: var(--ink);
}

.survey-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: none;
  width: min(380px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 120px));
  padding: 14px;
  overflow-y: auto;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.survey-menu.is-open {
  display: grid;
  gap: 4px;
}

.menu-section-title {
  margin: 6px 10px 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.menu-section-toggle:hover,
.menu-section-toggle:focus {
  background: var(--line);
  outline: none;
}

.menu-section-toggle.is-open {
  background: var(--ink);
  color: var(--white);
}

.menu-section-count {
  font-size: 13px;
  font-weight: 800;
}

.menu-question-group {
  display: none;
  gap: 0;
  padding: 2px 6px 5px 12px;
}

.menu-question-group.is-open {
  display: grid;
}

.menu-columns {
  display: grid;
  gap: 0;
}

.menu-group-heading {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--page);
  text-align: left;
  cursor: pointer;
}

.menu-link:hover,
.menu-link:focus {
  background: var(--accent-soft);
  outline: none;
}

.menu-link.is-active {
  background: var(--ink);
  color: var(--white);
}

.menu-link-main {
  font-weight: 900;
}

.menu-link-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.menu-question-link {
  min-height: 35px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
  line-height: 1.2;
}

.menu-question-link:hover,
.menu-question-link:focus {
  background: transparent;
  color: var(--accent-strong);
}

.menu-question-link.is-active {
  padding-left: 10px;
  border-radius: 12px;
}

.menu-link.is-active .menu-link-meta {
  color: rgba(255, 255, 255, 0.72);
}

.survey-shell {
  width: min(1120px, calc(100vw - 36px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  padding: 0 0 36px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  text-align: center;
}

.hero-inner {
  width: min(760px, 100%);
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.96;
}

h2 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.intro-copy {
  margin: 24px auto 34px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 13px 24px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--ink);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--soft-line);
}

.primary-button:hover,
.secondary-button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--ink);
}

.form-page,
.question-page,
.rules-page,
.complete-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 146px);
}

.question-block {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
}

.title-bar {
  display: block;
  min-height: 0;
  margin: 24px auto 32px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.question-page h2 {
  font-family: "Ringside Regular A", "Ringside Regular B", Arial, Helvetica, sans-serif;
  font-size: 19.2px;
  font-weight: 700;
  line-height: 1.12;
}

.info-form {
  display: grid;
  gap: 16px;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-note,
.rules-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.page-note {
  max-width: 760px;
  margin: -12px 0 24px;
}

.rules-copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.rules-copy p {
  margin: 0;
}

.rules-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 8px;
}

.form-section-heading {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.05;
}

.rules-accordion {
  display: grid;
  gap: 10px;
}

.terms-panel {
  padding: 0;
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}

.terms-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.terms-panel summary::-webkit-details-marker {
  display: none;
}

.summary-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  line-height: 1.35;
}

.summary-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.summary-arrow {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.terms-panel[open] .summary-arrow {
  transform: rotate(225deg);
}

.terms-copy {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.terms-copy p {
  margin: 0;
}

.reward-note {
  margin: 2px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.nowrap {
  white-space: nowrap;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.returning-note {
  color: var(--ink);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-picker {
  position: relative;
}

.country-empty {
  color: var(--muted);
  cursor: default;
}

.text-field,
.answer-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.text-field:focus,
.answer-input:focus {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.answer-search {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  min-height: 60px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.answer-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.clear-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.picker-toggle {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.picker-toggle::before {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.profile-picker .answer-search input[readonly] {
  cursor: pointer;
}

.answer-search input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 0 0 18px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.options-panel {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr;
  width: 100%;
  max-height: 310px;
  margin: 8px auto 0;
  padding: 8px 14px 10px 0;
  overflow-y: scroll;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: var(--page);
  color: var(--ink);
  box-shadow: none;
  scrollbar-color: var(--ink) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.option-list {
  display: grid;
  gap: 0;
}

.options-panel::before,
.options-panel::after {
  content: "";
  position: absolute;
  right: 2px;
  pointer-events: none;
  border-radius: 999px;
}

.options-panel::before {
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.options-panel::after {
  top: 10px;
  width: 4px;
  height: 78px;
  background: var(--ink);
}

.options-panel::-webkit-scrollbar {
  width: 8px;
}

.options-panel::-webkit-scrollbar-track {
  background: transparent;
}

.options-panel::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 999px;
}

.options-panel.is-open {
  display: grid;
}

.option-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 11px 20px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, padding-left 160ms ease;
}

.option-row::before {
  content: none;
}

.option-row:hover,
.option-row:focus {
  background: rgba(185, 151, 91, 0.12);
  outline: none;
  padding-left: 24px;
}

.option-row.is-selected {
  background: rgba(185, 151, 91, 0.18);
  color: var(--ink);
  font-weight: 900;
}

.option-empty {
  color: var(--muted);
  cursor: default;
}

.other-area {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.option-empty {
  padding: 12px 20px;
  color: var(--muted);
  font-size: 14px;
}

.other-area label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.other-area input {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.status-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--warning);
  font-weight: 700;
  text-align: center;
}

.spacer {
  flex: 1;
  min-height: 80px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 130px;
  gap: 18px;
  align-items: center;
  width: min(900px, 100%);
  margin: 34px auto 0;
}

body.question-viewport .question-page {
  height: calc(100dvh - var(--survey-header-height));
  min-height: calc(100dvh - var(--survey-header-height));
  max-height: calc(100dvh - var(--survey-header-height));
  overflow: hidden;
  padding-bottom: 112px;
}

body.question-viewport .bottom-nav {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 35;
  width: min(900px, calc(100vw - 36px));
  margin: 0;
  padding: 10px 12px;
  background: var(--page);
  box-shadow: 0 -10px 20px rgba(245, 245, 245, 0.94);
  transform: translateX(-50%);
}

.form-page {
  padding-bottom: 112px;
}

.form-page .bottom-nav {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 35;
  width: min(900px, calc(100vw - 36px));
  margin: 0;
  padding: 10px 12px;
  background: var(--page);
  box-shadow: 0 -10px 20px rgba(245, 245, 245, 0.94);
  transform: translateX(-50%);
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border: 0;
  background: var(--line);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 180ms ease;
}

.progress-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--page);
  transform: translateX(-1px);
}

.progress-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.complete-page {
  align-items: center;
  justify-content: center;
  text-align: left;
}

.complete-page p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  :root {
    --survey-header-height: 76px;
  }

  html:has(body.question-viewport),
  body.question-viewport {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-header {
    height: 76px;
    min-height: 76px;
    padding: 6px 10px;
  }

  .brand {
    width: 64px;
    height: 64px;
  }

  .menu-button {
    width: 34px;
    height: 34px;
    gap: 4px;
    padding: 7px;
  }

  .menu-label {
    display: block;
    font-size: 14px;
    white-space: nowrap;
  }

  .menu-button span {
    height: 3px;
  }

  .survey-menu {
    padding-bottom: max(84px, calc(58px + env(safe-area-inset-bottom)));
    overscroll-behavior: contain;
    scroll-padding-bottom: max(84px, calc(58px + env(safe-area-inset-bottom)));
    -webkit-overflow-scrolling: touch;
  }

  .survey-shell {
    width: min(100% - 24px, 1120px);
    min-height: calc(100vh - 72px);
  }

  .title-bar {
    margin: 4px auto 18px;
    padding-bottom: 0;
  }

  .question-page .question-block {
    width: 100%;
    flex: 0 0 auto;
  }

  .question-page h2 {
    font-size: 19.2px;
    font-weight: 700;
    line-height: 1.14;
  }

  .question-page .answer-search {
    min-height: 50px;
  }

  .text-field,
  .answer-search input,
  .other-area input {
    font-size: 16px;
  }

  .answer-search input {
    height: 50px;
  }

  .answer-search {
    grid-template-columns: 1fr 42px;
  }

  .options-panel {
    margin-top: 6px;
    padding-top: 6px;
    padding-bottom: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .option-row {
    min-height: 38px;
    padding: 9px 14px;
  }

  .spacer {
    min-height: 34px;
  }

  .form-page,
  .question-page {
    min-height: calc(100dvh - 76px);
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .question-page {
    height: calc(100dvh - 76px);
    max-height: calc(100dvh - 76px);
    overflow: hidden;
  }

  .bottom-nav {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 35;
    width: 100vw;
    max-width: none;
    gap: 10px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--page);
    box-shadow: 0 -10px 20px rgba(245, 245, 245, 0.94);
  }

  body.question-viewport .bottom-nav {
    right: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: none;
  }

  .form-page .bottom-nav {
    right: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: none;
  }

  .bottom-nav {
    grid-template-columns: 1fr 1fr;
  }

  .progress-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bottom-nav .primary-button,
  .bottom-nav .secondary-button {
    min-width: 0;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 721px) {
  .form-page .bottom-nav {
    position: fixed;
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 100;
    width: min(900px, calc(100vw - 36px));
    margin: 0;
    padding: 10px 12px;
    background: var(--page);
    box-shadow: 0 -10px 20px rgba(245, 245, 245, 0.94);
    transform: translateX(-50%);
  }

  .survey-menu {
    position: fixed;
    top: var(--survey-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: none;
    padding: 46px clamp(48px, 8vw, 180px) 220px clamp(220px, 21.5vw, 440px);
    overflow-y: auto;
    scroll-padding-bottom: 220px;
    border-radius: 0;
    background: var(--page);
    box-shadow: none;
  }

  .survey-menu.is-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-content: start;
  }

  .menu-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(48px, 8vw, 132px);
  }

  .menu-column {
    min-width: 0;
  }

  .menu-group-heading {
    margin: 22px 0 8px;
    font-size: 19px;
  }

  .menu-section {
    border: 0;
  }

  .menu-section-toggle {
    min-height: 38px;
    padding: 8px 0;
    border-radius: 0;
    background: transparent;
    font-size: 19px;
    letter-spacing: 0;
    pointer-events: none;
    text-transform: uppercase;
  }

  .menu-section-toggle:hover,
  .menu-section-toggle:focus,
  .menu-section-toggle.is-open {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .menu-section-count {
    display: none;
  }

  .menu-question-group {
    display: grid;
    padding: 2px 0 22px;
  }

  .menu-question-link {
    min-height: 31px;
    padding-right: 0;
    padding-left: 0;
    border: 0;
    font-size: 16px;
  }

  .menu-question-link .menu-link-main {
    font-weight: 400;
  }

  .menu-link {
    border-radius: 0;
  }

  .menu-question-link.is-active {
    padding-left: 0;
    background: transparent;
    color: var(--accent-strong);
  }

}
