/* =========================================================
   Lucky Ticket Draw – B&U Agent Program
   Colors from the B&U Brand Book. Layout follows "Desktop – 1440.jpg".

   Scaling: from 48rem wide and up, 1rem = 100vw / 90 (exactly 1rem at
   90rem). Every size is in rem, so the whole page keeps the 1440
   composition at any width (1024, 1920, 3840…) – it only scales.
   ========================================================= */
:root {
  --sports-blue: #0B2252;   /* Main */
  --main-support: #081A40;  /* Main support */
  --dynamic-blue: #0354FF;  /* Secondary */
  --blue-support: #0045D6;  /* Secondary support */
  --heat-orange: #FFBB04;   /* Main accent */
  --white: #FFFFFF;

  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.07);

  --radius: 0.875rem;
  --shadow: 0 1.25rem 3.125rem rgba(3, 10, 30, 0.45);
  --header-h: 4.5rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { font-size: calc(100vw / 90); }

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--main-support);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 0.1875rem solid var(--heat-orange); outline-offset: 0.1875rem; border-radius: 0.375rem; }

.container { width: 72.5rem; max-width: calc(100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.gold { color: var(--heat-orange); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -6.25rem; z-index: 200;
  background: var(--heat-orange); color: var(--sports-blue); font-weight: 800;
  padding: 0.625rem 1rem; border-radius: 0.5rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
/* Main JOIN NOW button: ready-made image elements/Button.png (289×62) */
.btn-img {
  display: inline-block; width: 18.0625rem; vertical-align: top; border-radius: 0.375rem;
  transition: transform .2s ease, filter .2s ease;
}
.btn-img img { width: 100%; height: auto; }
.btn-img:hover { transform: translateY(-0.125rem); filter: brightness(1.06) drop-shadow(0 0.625rem 1.25rem rgba(255, 187, 4, .35)); }
.btn-img:active { transform: none; }

/* Small text buttons (header, mobile bar) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 0.8125rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--sports-blue); background: var(--heat-orange);
  border: 0; border-radius: 0.375rem; cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-sm { width: 7.6875rem; height: 2.25rem; }
.btn-block { width: 100%; height: 3.25rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #0C2253;
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, .25); }
.header-inner { height: var(--header-h); display: flex; align-items: center; }
.brand { flex-shrink: 0; display: block; border-radius: 0.25rem; }
.brand img { width: 9.5625rem; height: 2rem; }

.nav { margin-left: auto; margin-right: 2.3125rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.0625rem; }
.nav a {
  display: block; text-decoration: none; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem;
  color: rgba(255, 255, 255, .88); transition: color .2s;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--heat-orange); }

.nav-toggle {
  display: none; margin-left: 0.5rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0.625rem;
  background: rgba(255, 255, 255, .08); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 0.75rem; width: 1.25rem; height: 0.125rem; background: var(--white); border-radius: 0.125rem;
  transition: transform .25s ease, opacity .2s ease; content: "";
}
.nav-toggle-bar { top: 1.3125rem; }
.nav-toggle-bar::before { left: 0; top: -0.375rem; }
.nav-toggle-bar::after { left: 0; top: 0.375rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(0.375rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-0.375rem) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Background = "main photo.jpg" (1440×812). The hero keeps the photo's aspect
   ratio, so with background-size: cover nothing is cropped or distorted. */
.hero {
  position: relative; overflow: hidden;
  height: 50.8125rem;
  background: #0B2E80 url("main photo.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; height: 100%; }
.hero-copy { position: relative; z-index: 2; padding-top: 8.9375rem; }

.dates-pill {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 18.0625rem; height: 2.625rem;
  background: rgba(255, 187, 4, .14); color: var(--heat-orange);
  border: 1px solid rgba(255, 187, 4, .5);
  font-weight: 800; font-size: 0.9375rem; line-height: 1;
  border-radius: 62.4375rem; margin-bottom: 2.375rem;
}
.dates-pill svg { width: 1rem; height: 1rem; }
.hero-title {
  max-width: 40rem; font-weight: 900; font-size: 4.9375rem; line-height: 4.6875rem; letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero-pool {
  margin-top: 1.375rem; font-weight: 900; font-size: 3.375rem; line-height: 4rem; text-transform: uppercase;
}
.hero-desc { margin-top: 0.875rem; font-size: 1.25rem; line-height: 2.25rem; color: rgba(255, 255, 255, .9); }
.hero-desc strong { font-weight: 900; }
.hero-actions { margin-top: 1.875rem; }

/* Ticket visual */
.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.ticket {
  position: absolute; left: 40.4375rem; top: 32.25rem; width: 27.25rem; height: 11.25rem;
  display: grid; grid-template-columns: 1fr 9.0625rem;
  border-radius: 1rem; color: var(--sports-blue);
  background: linear-gradient(135deg, #FFD34D 0%, var(--heat-orange) 45%, #F2A200 100%);
  box-shadow: 0 1.875rem 3.75rem rgba(3, 10, 30, .45);
  transform: rotate(-6.6deg);
}
.ticket-main { padding: 1.75rem 0.625rem 0 2.125rem; display: flex; flex-direction: column; border-right: 0.1875rem dashed rgba(11, 34, 82, .35); }
.ticket-kicker { font-size: 0.8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.ticket-amount { margin-top: 0.625rem; font-size: 3.625rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ticket-sub { margin-top: 0.75rem; font-size: 1.0625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.ticket-stub { display: flex; flex-direction: column; justify-content: center; padding: 0 0 1.875rem 1.375rem; }
.ticket-stub-label { font-size: 0.75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.ticket-stub-amount { margin-top: 0.375rem; font-size: 2.0625rem; font-weight: 900; line-height: 1; }
.ticket-back {
  left: 42.125rem; top: 32.5625rem; width: 27.25rem; height: 12.5rem; display: block;
  background: linear-gradient(135deg, var(--dynamic-blue), var(--blue-support));
  transform: rotate(3deg);
}

/* ---------- Sections ---------- */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-dark { background: #0C2253; }
.section-darker { background: var(--main-support); }
.section-blue { background: linear-gradient(160deg, #0354FF 0%, #0049DE 100%); }
.section-title {
  font-weight: 900; font-size: 3.1875rem; line-height: 1; text-transform: uppercase;
  text-align: center; margin-bottom: 3.5rem;
}
.section-title::after {
  content: ""; display: block; width: 4.5rem; height: 0.375rem; margin: 1.375rem auto 0;
  background: var(--heat-orange); border-radius: 0.1875rem;
}

/* Decorative illustrations (files from /elements, positioned as in Desktop – 1440) */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco img, .deco span { position: absolute; max-width: none; }
.deco img { height: auto; }

/* How to join – steps */
.section-how { padding: 6.5rem 0 6.5625rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step {
  position: relative; height: 13.625rem; padding: 2rem 1.5rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-0.25rem); border-color: rgba(255, 187, 4, .6); }
.step-num {
  display: grid; place-items: center; width: 3.5625rem; height: 3.5rem; margin-bottom: 1.375rem;
  border-radius: 0.5rem; background: var(--heat-orange); color: var(--sports-blue);
  font-weight: 900; font-style: italic; font-size: 1.375rem; line-height: 1;
}
.step p { font-weight: 700; font-size: 1.0625rem; line-height: 1.75rem; }
.step:not(:last-child)::after { /* connector arrow */
  /* centred in the 1.25rem gap: card border (1px) + half the gap (0.625rem); the -0.125rem
     offsets the chevron's visual centre, which sits right of its box centre */
  content: ""; position: absolute; left: calc(100% + 0.6875rem); top: 3.4375rem; width: 0.5rem; height: 0.5rem;
  border-top: 0.125rem solid var(--heat-orange); border-right: 0.125rem solid var(--heat-orange);
  transform: translate(-50%, -50%) translateX(-0.125rem) rotate(45deg);
}

/* Earn tickets */
.section-earn { padding: 6.5rem 0 5.8125rem; }
.deco-ticket-1 { width: 28.0625rem; left: -10rem; top: -3.125rem; }
.deco-money-2  { width: 22.6875rem; left: 72.5rem; top: 0.625rem; }
.deco-money-1  { width: 17.25rem; left: 2.5rem; top: 28.125rem; }
.deco-ticket-2 { width: 29.1875rem; left: 71.25rem; top: 18.125rem; }
.earn-grid { display: grid; grid-template-columns: repeat(2, 27.25rem); gap: 1.625rem; justify-content: center; }
.earn-card {
  display: flex; align-items: center; gap: 1rem;
  height: 11.5rem; padding: 0 2.5rem 0 1.5rem; border-radius: var(--radius);
  background: #0C2253; box-shadow: 0 1.25rem 2.5rem rgba(3, 10, 30, .35);
}
.earn-card p { font-weight: 700; font-size: 1.0625rem; line-height: 1.875rem; }
.earn-figure {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFD34D, var(--heat-orange) 55%, #E89B00) content-box;
  padding: 0.5rem; box-shadow: inset 0 0 0 0.5rem rgba(255, 255, 255, .1);
  color: var(--sports-blue);
}
.earn-num { font-weight: 900; font-size: 3.125rem; line-height: 1; }
.earn-unit { margin-top: 0.25rem; font-weight: 800; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; line-height: 1; }
.earn-note {
  margin: 3.8125rem auto 0; width: 40.125rem; height: 3.625rem; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-style: italic; font-size: 1.5938rem; text-transform: uppercase;
  background: var(--heat-orange); color: var(--sports-blue); border-radius: 0.375rem;
}

/* Prize pool – podium */
.section-prizes { padding: 6.5rem 0 5.375rem; }
.podium {
  list-style: none; margin: 0 0 3.75rem; padding: 0;
  display: grid; grid-template-columns: 23.3125rem 23.375rem 23.3125rem; column-gap: 1.25rem; row-gap: 1.25rem; align-items: end;
  justify-content: center;
}
.prize {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius); transition: transform .25s ease;
}
.prize:hover { transform: translateY(-0.25rem); }
.prize-place {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  font-weight: 900; font-size: 1.25rem; line-height: 1; background: rgba(255, 255, 255, .18);
}
.prize-status { margin-top: 0.625rem; font-weight: 800; font-size: 0.8125rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.prize-amount { font-weight: 900; font-size: 2.5rem; line-height: 1.1; }

/* top-3 podium order: 2 – 1 – 3, then 4 & 5 */
.prize-1 { grid-column: 2; grid-row: 1; height: 18.75rem;
  background: linear-gradient(170deg, #FFD34D, var(--heat-orange) 50%, #F5A800); color: var(--sports-blue);
  box-shadow: 0 0 3.75rem rgba(255, 187, 4, .25); }
.prize-1 .prize-place { width: 4.25rem; height: 4.25rem; font-size: 1.5rem; background: #0C2253; color: var(--white); }
.prize-1 .prize-status { margin-top: 0.75rem; font-size: 0.875rem; }
.prize-1 .prize-amount { font-size: 4.75rem; line-height: 1; margin-top: 0.25rem; }
.prize-1::before { content: "★"; position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%); font-size: 2rem; line-height: 1; color: var(--heat-orange); }
.prize-2, .prize-3 { background: linear-gradient(180deg, #0354FF, #0048E0); box-shadow: var(--shadow); }
.prize-2 { grid-column: 1; grid-row: 1; height: 15rem; }
.prize-3 { grid-column: 3; grid-row: 1; height: 13.125rem; }
.prize-2 .prize-status, .prize-3 .prize-status { margin-top: 0.875rem; }
.prize-4, .prize-5 {
  grid-row: 2; flex-direction: row; justify-content: flex-start; width: 23.25rem; height: 5.5rem; padding: 0 1.5rem;
  background: var(--card); border: 1px solid var(--line);
}
.prize-4, .prize-5 { grid-column: 1 / -1; justify-self: start; }
.prize-4 { margin-left: 12.3125rem; }
.prize-5 { margin-left: 36.9375rem; }
.prize-4 .prize-status, .prize-5 .prize-status { margin: 0 0 0 1rem; color: rgba(255, 255, 255, .85); }
.prize-4 .prize-amount, .prize-5 .prize-amount { margin-left: auto; font-size: 1.375rem; color: var(--heat-orange); }

/* Prize draw – timeline */
.section-draw { padding: 6.5625rem 0 6.4375rem; }
.timeline { list-style: none; margin: 0 auto; padding: 0; width: 62.5rem; display: grid; grid-template-columns: repeat(4, 15.625rem); position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7.8125rem; right: 7.8125rem; top: 1.6875rem; height: 0.1875rem;
  background: linear-gradient(90deg, var(--dynamic-blue), #8B8466 50%, var(--heat-orange));
}
.tl-item { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--main-support); border: 0.1875rem solid var(--heat-orange); font-weight: 900; font-size: 1.25rem; line-height: 1;
}
.tl-item p { margin-top: 1rem; min-height: 4.75rem; display: flex; align-items: center; justify-content: center; padding: 0 0.75rem; font-weight: 500; font-size: 0.9688rem; line-height: 1.5625rem; color: var(--text-muted); }
.tl-item p strong { font-weight: 900; }

/* Important criteria */
.section-criteria { padding: 6.625rem 0 6.5625rem; }
.criteria {
  display: flex; gap: 1.5625rem; align-items: flex-start;
  width: 56.125rem; margin-inline: auto; min-height: 14.3125rem; padding: 2.4375rem 2.5rem 1.875rem 2.4375rem;
  border-radius: 1rem; background: #1F2E4D;
  border: 0.125rem solid var(--heat-orange); box-shadow: 0 0 0 0.375rem rgba(255, 255, 255, .04);
}
.criteria-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 0.75rem;
  background: var(--heat-orange); color: var(--sports-blue); font-weight: 900; font-size: 2rem; line-height: 1;
}
.criteria-title { font-weight: 900; font-size: 2rem; line-height: 2.5rem; text-transform: uppercase; margin-bottom: 0.625rem; color: var(--heat-orange); }
.criteria-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.criteria-list li { position: relative; padding-left: 1.6875rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.75rem; }
.criteria-list li::before {
  content: ""; position: absolute; left: 0.125rem; top: 0.5625rem; width: 0.625rem; height: 0.625rem;
  background: var(--heat-orange); transform: rotate(45deg);
}

/* Leaderboard – tabs & tables */
.section-lb { padding: 5.1875rem 0 3.6875rem; }
.section-lb .section-title { margin-bottom: 3.5625rem; }
.lb-amp {
  left: 47.5rem; top: -12.5rem; font: 900 77.5rem/1 var(--font); color: rgba(255, 255, 255, .11);
}
.deco-lent-2 { width: 39.6875rem; left: -19rem; top: -0.125rem; }
.deco-lent-1 { width: 42.125rem; left: 56rem; top: 34.625rem; }
.tabs { width: 53.625rem; margin-inline: auto; }
.tab-list {
  display: flex; padding: 0.375rem; margin: 0 auto 1.5rem; width: 24.8125rem; height: 3.5rem;
  background: rgba(8, 26, 64, .62); border-radius: 0.5rem;
}
.tab {
  flex: 1 1 auto; font: 800 0.875rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em;
  color: var(--white); background: transparent; border: 0; border-radius: 0.25rem;
  padding: 0 1.375rem; cursor: pointer; transition: background .2s, color .2s;
}
.tab:hover { background: rgba(255, 255, 255, .08); }
.tab[aria-selected="true"] { background: var(--heat-orange); color: var(--sports-blue); }

.tab-panel {
  background: #0C2253; border-radius: 1rem; box-shadow: 0 1.25rem 3.125rem rgba(3, 10, 30, .35);
  padding: 1.25rem;
}
.tab-panel:focus-visible { outline-offset: 0.25rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0.5rem; }
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.lb-table th {
  height: 3.1875rem; background: var(--main-support); color: var(--heat-orange);
  font-size: 0.75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-align: left; padding: 0 1.125rem; white-space: nowrap;
}
.lb-table td { height: 3.5rem; padding: 0 1.125rem; border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
.lb-table tbody tr { transition: background .2s; }
.lb-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.lb-table .num { text-align: right; }
.lb-table .tickets { display: inline-flex; align-items: center; gap: 0.4375rem; }
.lb-table .tickets::before { content: ""; width: 1.125rem; height: 0.75rem; border-radius: 0.1875rem; background: var(--heat-orange); }
.place-badge {
  display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%;
  background: rgba(255, 255, 255, .1); font-weight: 900;
}
.lb-final tr:first-child .place-badge { background: var(--heat-orange); color: var(--sports-blue); }
.lb-final td.prize-cell { color: var(--heat-orange); font-weight: 900; }
.lb-empty td { text-align: center; color: var(--text-muted); font-weight: 600; }
.lb-cta { margin-top: 3.1875rem; }

/* Terms */
.section-terms { padding: 4.6875rem 0 4.625rem; }
.terms { border: 1px solid rgba(255, 255, 255, .78); border-radius: 0.25rem; }
.terms summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5625rem; padding: 0 1.25rem;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary h2 { font-weight: 400; font-size: 1.25rem; line-height: 1; }
.terms-chevron {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; position: relative;
  transition: transform .3s ease;
}
.terms-chevron::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: 0.875rem; height: 0.875rem;
  border-right: 0.1875rem solid var(--white); border-bottom: 0.1875rem solid var(--white); border-radius: 0 0 0.125rem 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.terms[open] .terms-chevron { transform: rotate(180deg); }
.terms-body {
  margin: 0 1.25rem; padding: 1.125rem 0 0.875rem; border-top: 1px solid rgba(255, 255, 255, .85);
  font-size: 1rem; line-height: 1.3125rem; font-weight: 400; color: var(--white);
}
.terms-body ol, .terms-body ul { margin: 0; padding-left: 1.5rem; }
.terms-body ul { list-style: none; }
.terms-body ul li { position: relative; }
.terms-body ul li::before { content: "•"; position: absolute; left: -0.875rem; }
.terms-indent { text-indent: 1rem; }

/* Footer */
.site-footer { background: var(--main-support); border-top: 1px solid #223254; }
.footer-inner { height: 6.5625rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { color: rgba(255, 255, 255, .82); font-size: 0.875rem; font-weight: 600; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* MOBILE (sizes below stay in px) */
/* Phones: the 1440 composition can't scale this small, so it stacks */
@media (max-width: 767px) {
  html { font-size: 16px; }
  :root { --header-h: 64px; }
  .container { width: auto; max-width: none; margin-inline: 16px; }
  .brand img { width: 122px; height: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--main-support); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 480px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; gap: 0; }
  .nav a { font-size: 17px; padding: 12px 0; }

  .hero { height: auto; background-size: auto 360px; background-position: 70% 0; background-color: #0B2E80; padding-bottom: 40px; }
  .hero-copy { padding-top: 300px; }
  .dates-pill { margin-bottom: 20px; }
  .hero-title { font-size: 44px; line-height: 44px; }
  .hero-pool { font-size: 30px; line-height: 38px; margin-top: 12px; }
  .hero-desc { font-size: 17px; line-height: 28px; }
  .hero-visual { display: none; }

  .section-title { font-size: 34px; margin-bottom: 36px; }
  .section-title::after { margin-top: 18px; }
  .section-how, .section-earn, .section-prizes, .section-draw, .section-criteria, .section-lb { padding: 64px 0; }
  .section-terms { padding: 48px 0; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { height: auto; display: flex; gap: 16px; align-items: center; padding: 18px; }
  .step-num { margin: 0; flex-shrink: 0; }
  .step:not(:last-child)::after { display: none; }

  .deco { display: none; }
  .earn-grid { grid-template-columns: 1fr; }
  .earn-card { height: auto; padding: 20px; }
  .earn-note { width: 100%; height: auto; padding: 14px; font-size: 17px; text-align: center; margin-top: 32px; }

  .podium { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
  .prize-1 { grid-column: 1 / -1; grid-row: 1; height: 240px; }
  .prize-1 .prize-amount { font-size: 60px; }
  .prize-2, .prize-3 { grid-row: 2; height: 180px; }
  .prize-2 { grid-column: 1; }
  .prize-3 { grid-column: 2; }
  .prize-2 .prize-amount, .prize-3 .prize-amount { font-size: 30px; }
  .prize-4, .prize-5 { grid-column: 1 / -1; width: auto; justify-self: stretch; margin: 0; height: 72px; }
  .prize-4 { grid-row: 3; }
  .prize-5 { grid-row: 4; }

  .timeline { width: auto; grid-template-columns: 1fr; gap: 16px; }
  .timeline::before { display: none; }
  .tl-item { flex-direction: row; text-align: left; gap: 16px; }
  .tl-dot { flex-shrink: 0; }
  .tl-item p { margin: 0; min-height: 0; padding: 0; }

  .criteria { width: auto; flex-direction: column; padding: 24px; }
  .criteria-title { font-size: 26px; line-height: 32px; }

  .tabs { width: auto; }
  .tab-list { width: 100%; }
  .tab { padding: 0 10px; font-size: 12px; }
  .tab-panel { padding: 16px 12px; }
  .lb-table th, .lb-table td { padding: 0 10px; }

  .terms summary h2 { font-size: 18px; }
  .terms-body { font-size: 15px; }

  .footer-inner { height: auto; padding: 28px 0 100px; flex-direction: column; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 26, 64, .95);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
}
