/* Valley Foods Giveaway — mobile-first styles */

:root {
  color-scheme: light;
  --ink: #15160e;
  --ink-2: #1f2015;
  --olive: #86840d;
  --olive-deep: #5c5b0a;
  --lime: #bccb24;
  --lime-hi: #cddb3c;
  --cream: #f5f0e3;
  --paper: #fffdf8;
  --sand: #ebe3cf;
  --text: #1b1c12;
  --muted: #5d5b4c;
  --line: rgba(27, 28, 18, 0.12);
  --on-dark: #f5f0e3;
  --on-dark-muted: rgba(245, 240, 227, 0.72);
  --error: #b3261e;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.card :focus-visible,
.section--cream :focus-visible,
.section--sand :focus-visible,
.doc :focus-visible {
  outline-color: var(--olive);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Phase-dependent content (upcoming / live / closed) */
[data-phase='live'] .when-upcoming,
[data-phase='live'] .when-closed,
[data-phase='upcoming'] .when-live,
[data-phase='upcoming'] .when-closed,
[data-phase='closed'] .when-live,
[data-phase='closed'] .when-upcoming,
[data-phase='closed'] .unless-closed {
  display: none !important;
}

.wrap {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(600px, 100% - var(--gutter) * 2);
}

/* ------------------------------------------------------------------------ */
/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.15 var(--font-body);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 32px -12px rgba(188, 203, 36, 0.6);
}

.btn--primary:hover {
  background: var(--lime-hi);
}

.btn--dark,
.btn--ig {
  background: var(--ink);
  color: var(--cream);
}

.btn--dark:hover,
.btn--ig:hover {
  background: #2b2c1e;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(21, 22, 14, 0.22);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--glass {
  background: rgba(245, 240, 227, 0.1);
  color: var(--cream);
  border-color: rgba(245, 240, 227, 0.32);
}

.btn--xl {
  min-height: 60px;
  padding: 0 30px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--lg {
  min-height: 58px;
  font-size: 1.06rem;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn--ig .icon {
  width: 22px;
  height: 22px;
}

.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(21, 22, 14, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.btn.is-loading .btn__label {
  opacity: 0.75;
}

.btn.nudge {
  animation: nudge 1.4s ease-in-out 2;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nudge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(134, 132, 13, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(134, 132, 13, 0.22);
  }
}

/* ------------------------------------------------------------------------ */
/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 74%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 22, 14, 0.78) 0%, rgba(21, 22, 14, 0.12) 18%, rgba(21, 22, 14, 0) 28%),
    linear-gradient(180deg, rgba(21, 22, 14, 0) 26%, rgba(21, 22, 14, 0.62) 37%, rgba(21, 22, 14, 0.93) 47%, var(--ink) 64%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}

.topbar__brand img {
  width: auto;
  height: 40px;
}

.topbar__ig {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(21, 22, 14, 0.35);
  border: 1px solid rgba(245, 240, 227, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__content {
  align-self: end;
  width: 100%;
  max-width: 640px;
  padding: 120px var(--gutter) 40px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 600 0.74rem/1.3 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.2s ease-out infinite;
}

[data-phase='closed'] .pulse,
[data-phase='upcoming'] .pulse {
  background: #d9a05b;
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(188, 203, 36, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(188, 203, 36, 0);
  }
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.hero__win {
  display: block;
  font-size: clamp(3.6rem, 19vw, 8.4rem);
}

.hero__amount {
  color: var(--lime);
}

.hero__line {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.7rem, 7.4vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.hero__winners {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 11px 18px;
  border: 1px solid rgba(245, 240, 227, 0.28);
  border-radius: 999px;
  background: rgba(21, 22, 14, 0.4);
  font: 600 0.88rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.hero__deadline {
  margin-top: 22px;
  color: var(--on-dark-muted);
  font-size: 0.98rem;
}

.hero__deadline p {
  margin: 0 0 12px;
}

.hero__deadline strong {
  color: var(--cream);
  font-weight: 600;
}

.hero__actions {
  margin-top: 24px;
}

.hero__actions .btn {
  width: 100%;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.92;
}

.hero__links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__card {
  display: none;
}

/* Countdown */

.countdown {
  display: flex;
  gap: 6px;
}

.cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 8px 6px 7px;
  border: 1px solid rgba(245, 240, 227, 0.14);
  border-radius: 12px;
  background: rgba(245, 240, 227, 0.07);
}

.cd b {
  font: 600 1.2rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.cd i {
  margin-top: 5px;
  font: 500 0.62rem/1 var(--font-body);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.countdown--lg .cd {
  flex: 1;
  min-width: 0;
  padding: 14px 4px 12px;
}

.countdown--lg .cd b {
  font-size: 1.75rem;
}

/* ------------------------------------------------------------------------ */
/* Sections */

.section {
  padding: 76px 0;
}

.section--cream {
  background: var(--cream);
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  margin-bottom: 34px;
}

.section-head--center {
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  font: 600 0.76rem/1.3 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.kicker--lime {
  color: var(--lime);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 96;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-head__sub {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head--center .section-head__sub {
  margin-inline: auto;
}

.section--ink .section-head__sub {
  color: var(--on-dark-muted);
}

/* How to enter */

.how__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 22px 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.how__icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--lime);
}

.how__icon .icon {
  width: 24px;
  height: 24px;
}

.how__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font: 600 1.5rem/1 var(--font-display);
  color: rgba(134, 132, 13, 0.4);
}

.how__title {
  margin: 3px 36px 4px 0;
  font: 600 1.14rem/1.25 var(--font-body);
}

.how__item p {
  margin: 0;
  color: var(--muted);
}

.how__item a {
  color: var(--olive-deep);
  font-weight: 600;
}

.tag {
  justify-self: start;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 22, 14, 0.06);
  color: var(--muted);
  font: 600 0.68rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag--req {
  background: rgba(134, 132, 13, 0.15);
  color: var(--olive-deep);
}

/* ------------------------------------------------------------------------ */
/* Entry */

.entry {
  position: relative;
  overflow: hidden;
}

.entry::before,
.entry::after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(188, 203, 36, 0.09) 34px 36px);
  pointer-events: none;
}

.entry::before {
  left: -300px;
  bottom: -300px;
}

.entry::after {
  right: -320px;
  top: -260px;
  opacity: 0.6;
}

.entry .wrap {
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  padding: 26px 20px 24px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.progress li {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress li::before {
  content: '';
  height: 4px;
  border-radius: 4px;
  background: rgba(21, 22, 14, 0.1);
  transition: background-color 0.3s;
}

.progress li.is-active,
.progress li.is-done {
  color: var(--ink);
}

.progress li.is-active::before,
.progress li.is-done::before {
  background: var(--olive);
}

[data-step='done'] .progress {
  display: none;
}

.step {
  animation: step-in 0.35s ease-out;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.step__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--cream);
}

.step__badge .icon {
  width: 28px;
  height: 28px;
}

.step__badge--ig {
  background: linear-gradient(45deg, #f9a13a 0%, #e1306c 55%, #8a3ab9 100%);
  color: #fff;
}

.step__kicker {
  margin: 0 0 8px;
  color: var(--olive-deep);
  font: 600 0.72rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.016em;
}

.step__title:focus {
  outline: none;
}

.step__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.step__text strong {
  color: var(--text);
  font-weight: 600;
}

.step__actions {
  display: grid;
  gap: 12px;
}

.step__note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step__note strong {
  color: var(--text);
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.95rem/1.3 var(--font-body);
  cursor: pointer;
}

.link-back:hover {
  color: var(--ink);
}

.link-back .icon {
  width: 18px;
  height: 18px;
}

.link-back--center {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */

.form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font: 600 0.9rem/1.2 var(--font-body);
}

.field__hint {
  color: var(--muted);
  font-weight: 400;
}

.field input {
  /* When an error moves focus here, keep the field's label (and, in the
     full-screen flow, the close bar) in view above it. */
  scroll-margin-top: 96px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid rgba(21, 22, 14, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 1.0625rem; /* ≥16px so iOS doesn't zoom in */
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: rgba(93, 91, 76, 0.55);
}

.field input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(134, 132, 13, 0.18);
}

.field input[aria-invalid='true'] {
  border-color: var(--error);
}

.field input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.15);
}

.field__error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.88rem;
  line-height: 1.35;
}

.field__affix {
  position: relative;
}

.field__affix span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--muted);
  font-size: 1.0625rem;
  pointer-events: none;
}

.field__affix input {
  padding-left: 33px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(21, 22, 14, 0.32);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.check input::after {
  content: '';
  width: 12px;
  height: 7px;
  border: 2.5px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.15s;
}

.check input:checked {
  border-color: var(--olive);
  background: var(--olive);
}

.check input:checked::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.check input[aria-invalid='true'] {
  border-color: var(--error);
}

.check label {
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

.check a {
  color: var(--olive-deep);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* One-line optional opt-in, so it doesn't compete with the entry itself. */
.check--compact {
  align-items: center;
}

.check--compact label {
  font-size: 0.93rem;
}

.check__hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.turnstile:empty {
  display: none;
}

.form__alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbeae8;
  color: #7f1d1d;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Consent, stated right under the button that gives it. */
.form__consent {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.form__consent a {
  color: var(--olive-deep);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* The entry button: an arrow that leans forward, and a sweep of light once
   every field is filled in correctly. */
.btn--enter {
  position: relative;
  overflow: hidden;
  gap: 10px;
  font-weight: 700;
}

.btn--enter .btn__arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.btn--enter:hover .btn__arrow,
.btn--enter.is-ready .btn__arrow {
  transform: translateX(4px);
}

.btn--enter.is-loading .btn__arrow {
  display: none;
}

.btn--enter.is-ready {
  background: var(--lime-hi);
  box-shadow: 0 14px 36px -10px rgba(188, 203, 36, 0.85);
}

.btn--enter.is-ready::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* Success */

.step--done {
  padding: 8px 0 0;
  text-align: center;
}

.done__mark svg {
  width: 84px;
  height: 84px;
  margin: 0 auto;
}

.done__ring,
.done__check {
  fill: none;
  stroke: var(--olive);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done__ring {
  stroke-width: 3;
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  animation: draw 0.7s ease-out forwards;
}

.done__check {
  stroke-width: 4.5;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.45s 0.55s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.done__title {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 13vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.done__title:focus {
  outline: none;
}

.done__lead {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.done__text {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
}

.done__luck {
  margin: 18px 0;
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
}

.done__ref {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.done__ref strong {
  color: var(--text);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

/* Closed / upcoming */

.entry-card--status {
  text-align: center;
}

.status-pill {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive-deep);
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------------ */
/* Prize */

.prize__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.prize__visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 250px;
  margin: 8px auto 0;
}

.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 1.586;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(130% 140% at 100% 0%, #3b3c24 0%, #1a1b10 62%);
  color: var(--cream);
  box-shadow: 0 30px 50px -22px rgba(21, 22, 14, 0.65), inset 0 0 0 1px rgba(245, 240, 227, 0.09);
}

.gift::before {
  content: '';
  position: absolute;
  left: -40%;
  bottom: -70%;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 13px, rgba(188, 203, 36, 0.17) 13px 15px);
}

.gift::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.09) 50%, transparent 62%);
}

.gift > * {
  position: relative;
  z-index: 1;
}

.gift__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gift__emblem {
  width: 34px;
  height: 34px;
  background: var(--lime);
  -webkit-mask: url('/img/emblem.png') center / contain no-repeat;
  mask: url('/img/emblem.png') center / contain no-repeat;
}

.gift__brand {
  font: 600 1.08rem/1 var(--font-display);
  letter-spacing: -0.01em;
}

.gift__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gift__label {
  font: 600 0.62rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.gift__value {
  margin-top: 6px;
  font: 600 2.7rem/1 var(--font-display);
  color: var(--lime);
}

.gift--olive {
  background: linear-gradient(140deg, #a3a01a 0%, #7d7b0c 45%, #56550a 100%);
}

.gift--olive::before {
  background: repeating-radial-gradient(circle, transparent 0 13px, rgba(245, 240, 227, 0.14) 13px 15px);
}

.gift--olive .gift__emblem {
  background: var(--cream);
}

.gift--olive .gift__value {
  color: var(--cream);
}

.gift--olive .gift__label {
  color: rgba(245, 240, 227, 0.8);
}

.prize__visual .gift {
  position: absolute;
  width: 78%;
}

.gift--back {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
}

.gift--front {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 0;
}

.facts div {
  padding: 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.facts dt {
  color: var(--muted);
  font: 600 0.64rem/1.25 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 8px 0 0;
  color: var(--ink);
  font: 600 1.85rem/1 var(--font-display);
}

.facts dd small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 500 0.78rem/1.2 var(--font-body);
}

.deadline {
  margin-top: 12px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--cream);
}

.deadline__label {
  margin: 0 0 6px;
  color: var(--lime);
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.deadline__date {
  margin: 0;
  font: 600 1.3rem/1.25 var(--font-display);
}

.deadline .countdown {
  margin-top: 16px;
}

.next__title {
  margin: 64px 0 22px;
  font-size: 1.7rem;
}

.timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 46px;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font: 600 0.85rem/1 var(--font-body);
}

.timeline li::after {
  content: '';
  position: absolute;
  top: 31px;
  bottom: 2px;
  left: 14.5px;
  width: 1px;
  background: rgba(21, 22, 14, 0.2);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.timeline span {
  color: var(--muted);
}

.fine-print {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.fine-print a {
  color: var(--olive-deep);
  font-weight: 600;
}

/* ------------------------------------------------------------------------ */
/* Taste of the valley */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery li {
  scroll-snap-align: start;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: var(--sand);
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.visit {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.visit__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.visit__item:hover {
  border-color: var(--olive);
}

.visit__item .icon {
  width: 24px;
  height: 24px;
  color: var(--olive);
}

.visit__item span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.visit__item strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------------ */
/* Footer */

.footer {
  padding: 56px 0 calc(110px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer__brand img {
  width: auto;
  height: 46px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
}

.footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__address {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 14px 0 22px;
  font-style: normal;
}

.footer__address a {
  color: var(--on-dark-muted);
  text-underline-offset: 3px;
}

.footer__legal {
  max-width: 88ch;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 227, 0.12);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer__legal a {
  color: var(--cream);
}

.footer__copy {
  margin: 12px 0 0;
  font-size: 0.8rem;
}

/* Sticky mobile call to action */

.sticky-cta {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 9px 9px 20px;
  border: 1px solid rgba(245, 240, 227, 0.12);
  border-radius: 999px;
  background: rgba(21, 22, 14, 0.94);
  color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
  transform: translateY(calc(100% + 30px));
  transition: transform 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-cta__text strong {
  font: 600 1.1rem/1.1 var(--font-display);
}

.sticky-cta__text span {
  color: var(--on-dark-muted);
  font-size: 0.8rem;
}

.sticky-cta .btn {
  min-height: 46px;
  padding: 0 20px;
}

/* ------------------------------------------------------------------------ */
/* Legal pages */

.doc-header {
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  background: var(--ink);
}

.doc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-header img {
  width: auto;
  height: 38px;
}

.doc-main {
  padding: 48px 0 72px;
}

.doc-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
}

.doc-body h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.doc-body .doc-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-body h2 {
  margin: 36px 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc-body p,
.doc-body li {
  color: #34352a;
}

.doc-body ul {
  padding-left: 1.25em;
}

.doc-body li + li {
  margin-top: 6px;
}

.doc-body a {
  color: var(--olive-deep);
  font-weight: 500;
}

.doc-summary {
  margin: 0 0 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.doc-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
}

.doc-summary dt {
  color: var(--muted);
  font-weight: 500;
}

.doc-summary dd {
  margin: 0;
  font-weight: 600;
}

.footer--slim {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.notfound h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  font-weight: 600;
}

.notfound p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ------------------------------------------------------------------------ */
/* Larger screens */

@media (max-width: 359px) {
  .cd {
    min-width: 48px;
  }
}

@media (min-width: 480px) {
  .card {
    padding: 36px 36px 32px;
  }

  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }

  .topbar__brand img {
    height: 48px;
  }

  .visit {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-auto-columns: 44%;
  }
}

@media (min-width: 760px) {
  .how__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .how__item {
    grid-template-columns: 1fr;
    padding: 28px 26px;
  }

  .how__icon {
    grid-row: auto;
    margin-bottom: 22px;
  }

  .how__num {
    top: 26px;
    right: 26px;
    font-size: 1.9rem;
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .timeline li {
    padding: 46px 0 0;
  }

  .timeline li::before {
    top: 0;
  }

  .timeline li::after {
    top: 15px;
    right: -18px;
    bottom: auto;
    left: 42px;
    width: auto;
    height: 1px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 48px;
  }

  .section {
    padding: 112px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  /* Hero becomes a split layout with the photo in an arch. */
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: min(100vh, 940px);
    padding-bottom: 72px;
    background:
      radial-gradient(900px 520px at 78% 38%, rgba(188, 203, 36, 0.09), transparent 65%),
      var(--ink);
  }

  .hero::before {
    content: '';
    position: absolute;
    left: -420px;
    bottom: -520px;
    z-index: -1;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 46px, rgba(188, 203, 36, 0.06) 46px 48px);
  }

  .topbar {
    grid-column: 1 / -1;
    width: min(1160px, 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 30px 0 0;
  }

  .topbar__brand img {
    height: 54px;
  }

  .hero__shade {
    display: none;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: min(620px, 100%);
    max-width: none;
    padding: 48px 40px 0 max(var(--gutter), calc((100vw - 1160px) / 2));
    box-sizing: content-box;
  }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    width: min(440px, 34vw);
    height: auto;
    aspect-ratio: 3 / 4;
    margin-top: 48px;
    overflow: hidden;
    border-radius: 50% 50% 28px 28px / 37.5% 37.5% 28px 28px;
    box-shadow:
      0 0 0 1px rgba(188, 203, 36, 0.4),
      0 0 0 14px var(--ink),
      0 0 0 15px rgba(188, 203, 36, 0.22),
      0 50px 90px -30px rgba(0, 0, 0, 0.8);
  }

  .hero__media img {
    object-position: 50% 30%;
  }

  .hero__card {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    z-index: 2;
    width: 250px;
    margin: 0 0 -20px -70px;
    transform: rotate(-7deg);
  }

  .hero__card .gift {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(245, 240, 227, 0.14);
  }

  .hero__card .gift__value {
    font-size: 2.3rem;
  }

  .hero__links {
    margin-top: 18px;
  }

  .prize__grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .prize__visual {
    max-width: 480px;
    height: 330px;
  }

  .gift__value {
    font-size: 3.1rem;
  }

  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .footer {
    padding-bottom: 48px;
  }

  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sticky-cta {
    display: none !important;
  }
}

/* ------------------------------------------------------------------------ */
/* Social proof, "Start my entry" */

.hero__proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.hero__proof strong {
  color: var(--cream);
  font-weight: 600;
}

.hero__proof-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.2s ease-out infinite;
}

.how__cta {
  margin-top: 22px;
}

.hero__announce {
  display: inline-block;
  margin: 4px 0 0 !important;
  padding: 10px 16px;
  border: 1px solid rgba(188, 203, 36, 0.45);
  border-radius: 14px;
  background: rgba(188, 203, 36, 0.12);
  color: var(--cream);
}

.hero__announce strong {
  color: var(--lime);
}

/* ------------------------------------------------------------------------ */
/* Focused entry flow (phones): the entry card opens full-screen */

.entry-card__bar {
  display: none;
}

.is-locked {
  overflow: hidden;
}

/* Let the full-screen card sit above the rest of the page. */
.is-locked .entry .wrap {
  z-index: auto;
}

.entry-card.is-focus {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0;
  box-shadow: none;
  animation: flow-in 0.28s ease-out;
}

.entry-card.is-focus .entry-card__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -20px;
  padding: max(10px, env(safe-area-inset-top)) 12px 6px 20px;
  background: var(--paper);
}

.entry-card__logo {
  width: auto;
  height: 30px;
}

.entry-card.is-focus .progress {
  margin-top: 6px;
}

.entry-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.entry-card.is-focus .step__title {
  font-size: clamp(1.9rem, 8vw, 2.3rem);
}

@keyframes flow-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ------------------------------------------------------------------------ */
/* Entry ticket on the success screen */

.ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 22px auto 20px;
  max-width: 400px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  box-shadow: 0 24px 50px -24px rgba(21, 22, 14, 0.7);
  animation: ticket-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.ticket__main,
.ticket__stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 18px 16px;
}

.ticket__stub {
  position: relative;
  border-left: 2px dashed rgba(245, 240, 227, 0.25);
}

.ticket__stub::before,
.ticket__stub::after {
  content: '';
  position: absolute;
  left: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
}

.ticket__stub::before {
  top: -10px;
}

.ticket__stub::after {
  bottom: -10px;
}

.ticket__label {
  color: var(--lime);
  font: 600 0.66rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket__ref {
  font: 700 1.5rem/1.1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.ticket__prize {
  color: var(--on-dark-muted);
  font-size: 0.84rem;
}

.countdown--ticket {
  gap: 4px;
}

.countdown--ticket .cd {
  min-width: 34px;
  padding: 5px 3px 4px;
  border-radius: 8px;
}

.countdown--ticket .cd b {
  font-size: 0.95rem;
}

.countdown--ticket .cd i {
  margin-top: 3px;
  font-size: 0.5rem;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96) rotate(-1.5deg);
  }
}

.ticket__ref {
  white-space: nowrap;
}

/* Phones: stack the stub under the main part, perforation running across. */
@media (max-width: 479px) {
  .ticket {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .ticket__main {
    align-items: center;
    padding: 20px 18px 16px;
    text-align: center;
  }

  .ticket__stub {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 16px;
    border-top: 2px dashed rgba(245, 240, 227, 0.25);
    border-left: 0;
  }

  .ticket__stub::before,
  .ticket__stub::after {
    top: -11px;
    bottom: auto;
  }

  .ticket__stub::before {
    left: -11px;
  }

  .ticket__stub::after {
    right: -11px;
    left: auto;
  }

  .ticket__ref {
    font-size: 1.7rem;
  }
}

/* ------------------------------------------------------------------------ */
/* The prize on the phone hero: a gift card floating over the food photo */

@media (max-width: 959px) {
  .hero__card {
    position: absolute;
    top: calc(max(16px, env(safe-area-inset-top)) + 70px);
    right: 16px;
    z-index: 1;
    display: block;
    width: min(46vw, 190px);
    transform: rotate(7deg);
    animation: card-float 5s ease-in-out infinite;
  }

  .hero__card .gift {
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(245, 240, 227, 0.14);
  }

  .hero__card .gift__emblem {
    width: 22px;
    height: 22px;
  }

  .hero__card .gift__brand {
    font-size: 0.85rem;
  }

  .hero__card .gift__label {
    font-size: 0.5rem;
  }

  .hero__card .gift__value {
    margin-top: 3px;
    font-size: 1.9rem;
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
