/* Montserrat (SIL OFL 1.1), self-hosted: no third-party font requests. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("/fonts/montserrat-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #050505;
  --bg-stripe: #101010;
  --text: #ffffff;
  --muted: #b9b9b9;
  --accent: #ff6a13;
  --accent-dark: #e45a07;
  --field: #ffffff;
  --field-text: #151515;
  --field-label: #6f6f6f; /* floated label on the white box: 4.5:1 or better */
  --link: #6493f0;
  --coral: #ff9a86;
  --radius: 10px;
  --gutter: 16px;
  --banner: 0px;
  color-scheme: dark;
}
body:has(#demo-banner:not([hidden])) { --banner: 42px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg) repeating-linear-gradient(135deg, var(--bg) 0 38px, var(--bg-stripe) 38px 76px);
}
a { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }

.demo {
  position: sticky; top: 0; z-index: 10;
  background: #d00000; color: #fff; text-align: center;
  font-weight: 800; letter-spacing: .03em;
  padding: calc(10px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- page layout (mobile first: title, prizes, logos + form, notice) ---------- */
.page {
  max-width: 1760px;
  margin: 0 auto;
  padding: 22px max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "side" "fine" "links" "credit";
}
.hero { grid-area: hero; min-width: 0; }
.side { grid-area: side; min-width: 0; }
.fine { grid-area: fine; color: #fff; font-size: .74rem; line-height: 1.55; margin: 0; }
.fine p { margin: 0 0 4px; }
.legal-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .75rem; }
.credit { grid-area: credit; margin: 4px 0 0; font-size: .68rem; line-height: 1.3; color: var(--muted); }
.doc-foot .credit { margin-top: 12px; text-align: center; }
@media (min-width: 980px) { .page > .credit { text-align: center; } }

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 4.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .005em;
  text-align: center;
}
.prizes { display: block; width: 100%; max-width: 1120px; height: auto; margin: 0 auto; }

.brandbar { display: grid; justify-items: center; gap: 14px; margin: 6px 0 18px; }
.brandbar .ty { height: auto; max-width: 140px; }
.brandbar .brands { width: 100%; max-width: 574px; height: auto; }

/* ---------- form ---------- */
.formcard { margin: 0; }
.form-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; padding-bottom: 6px;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem); font-weight: 700;
  border-bottom: 4px solid #fff;
}
.pen { flex: none; color: #fff; }
.required-note { margin: 0 0 10px; font-size: .9rem; }
.status { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); background: #1a1a1a; border-left: 4px solid var(--accent); }
.hint { margin: 4px 2px 0; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.hint.small { font-size: .68rem; margin-top: 8px; }
.hint.lead { margin: 0 4px 20px; font-size: .85rem; }
.count { white-space: nowrap; }

.field { position: relative; margin: 0 0 12px; }
.field input, .field textarea {
  display: block; width: 100%;
  min-height: 46px;
  padding: 19px 14px 5px;
  font: inherit; font-size: .95rem; color: var(--field-text);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 76px; resize: vertical; padding-top: 22px; }
.field input::placeholder, .field textarea::placeholder { color: transparent; transition: color .15s; }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: #a9a9a9; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 19, .25);
}
/* the label starts inside the box (as in the design) and floats up once the field is used */
.field label {
  position: absolute; left: 15px; top: 14px;
  font-size: .95rem; font-weight: 500; line-height: 1.2; color: #6d6d6d; /* was #a9a9a9: 2.5:1 on white, too faint */
  pointer-events: none;
  transform-origin: left top;
  transition: transform .15s, color .15s;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.76);
  color: var(--field-label);
}
.field input:focus + label, .field textarea:focus + label { color: var(--accent-dark); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 154, 134, .2);
}
.field input:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }

.error { margin: 4px 2px 0; font-size: .76rem; line-height: 1.4; color: var(--coral); font-weight: 700; }
.error:empty { display: none; }
.error::before { content: "!"; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: .5em; border-radius: 50%; background: var(--coral); color: #1a0f0c; font-size: .8em; font-weight: 800; }

.linklike { padding: 0; font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: #fff; }

/* ---------- consents ---------- */
.checks { margin: 16px 0 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; margin: 0 0 7px; font-size: .86rem; }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  background: #fff; border: 2px solid #fff; border-radius: 6px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .12s, border-color .12s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.check input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 154, 134, .3); }
.check .sub { color: var(--muted); font-size: .85em; }
.check-note { margin: 2px 0 7px 34px; font-size: .8rem; color: var(--muted); }
.check .error { grid-column: 2; }

.robot { margin: 12px 0 6px; font-size: .86rem; }
.turnstile { min-height: 65px; }
.turnstile > div { line-height: 0; }
.turnstile iframe { display: block; }
.alert {
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: #2a1411; border: 1px solid var(--coral); color: #ffe8e3; font-weight: 700;
}

.btn {
  display: block; width: 100%;
  margin-top: 12px; padding: 13px 20px;
  font: inherit; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; color: #fff;
  background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 106, 19, .28);
  transition: background .15s, transform .1s;
}
.btn:hover:not(:disabled) { background: var(--accent-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: #3a3a3a; box-shadow: none; }
.btn.secondary:hover:not(:disabled) { background: #4a4a4a; }

.success h2 { margin-top: 0; }
.refbox { padding: 14px; background: #1a1a1a; border-radius: var(--radius); font-size: 1.05rem; }
.refbox strong { letter-spacing: .12em; }
.nowrap { white-space: nowrap; }

/* ---------- dialogs ---------- */
dialog { max-width: min(92vw, 460px); color: var(--text); background: #181818; border: 1px solid #444; border-radius: 14px; padding: 22px; }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
dialog h2 { margin: 0 0 10px; font-size: 1.15rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-input { display: block; box-sizing: border-box; width: 100%; margin: 10px 0 4px; padding: 12px; font: inherit; font-size: 1.6rem; font-weight: 700; letter-spacing: .45em; text-align: center; color: var(--text); background: #0f0f0f; border: 1px solid #666; border-radius: 10px; }
.code-input:focus { outline: 2px solid var(--accent-dark); outline-offset: 1px; }
.code-input[aria-invalid="true"] { border-color: var(--coral); }
#verify-resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.verify-robot { margin: 8px 0 12px; }
.verify-robot[hidden] { display: none; }

dialog.help { position: relative; width: min(94vw, 760px); max-width: 760px; max-height: 92vh; overflow-y: auto; padding: 24px 24px 22px; }
.help-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; font-size: 1.7rem; line-height: 1; color: #fff; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.help-x:hover { background: #333; }
.help-lead { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.tab { padding: 9px 18px; font: inherit; font-weight: 700; font-size: .9rem; color: #fff; background: #2a2a2a; border: 1px solid #444; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
.panel[hidden] { display: none; }
.steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.steps .n { display: grid; place-items: center; width: 30px; height: 30px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 50%; }
.steps p { margin: 4px 0 8px; font-size: .9rem; }
.steps .warn { padding: 9px 12px; background: #2a1d0b; border-left: 3px solid #ffb04a; border-radius: 6px; color: #ffe2b8; font-size: .85rem; }
.shots { display: grid; gap: 8px; }
.shots:empty { display: none; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid #3a3a3a; border-radius: 10px; }
.shots.phone img { width: min(100%, 300px); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { padding: 12px; background: #3b0b0b; text-align: center; }

body[data-phase="before"] .turnstile,
body[data-phase="closed"] .turnstile,
body[data-phase="maintenance"] .turnstile { display: none; }

/* ---------- wide screens: two columns like the design, sized to the window height so the page does not scroll ---------- */
@media (min-width: 980px) {
  .page {
    padding-top: clamp(8px, 2.2vh, 26px);
    padding-bottom: clamp(8px, 1.8vh, 22px);
    row-gap: clamp(4px, 1vh, 10px);
    column-gap: clamp(28px, 3.6vw, 56px);
    grid-template-columns: minmax(0, 1fr) minmax(400px, 574px);
    grid-template-areas:
      "hero side"
      "fine side"
      "links side"
      "credit side";
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
  }
  .hero { container-type: inline-size; }
  h1 {
    margin-bottom: clamp(4px, 1.4vh, 14px);
    font-size: clamp(1rem, min(1.45vw, 3.4vh), 2.1rem);
    font-size: clamp(1rem, min(2.45cqi, 3.4vh), 2.1rem); /* two lines whatever the column width (cqi: width of .hero) */
  }
  .prizes {
    width: auto; max-width: 100%;
    height: clamp(260px, calc(100dvh - var(--banner) - var(--fine-reserve, 313px)), 886px); /* room under the prizes: title, notice lines, links */
    aspect-ratio: 1120 / 886; object-fit: contain;
  }
  .brandbar { gap: clamp(6px, 1.6vh, 14px); margin: 0 0 clamp(6px, 1.8vh, 18px); }
  .brandbar .ty { max-width: clamp(96px, 16vh, 140px); }
  .fine { text-align: center; font-size: .7rem; line-height: 1.45; }
  .legal-links { justify-content: center; font-size: .72rem; }
  .page:not(.single) .field textarea { height: 66px; min-height: 66px; }
  .check-note { margin: 0 0 6px 34px; font-size: .76rem; line-height: 1.3; }
}

/* narrower columns wrap the notice lines more often: leave more room under the prizes */
@media (min-width: 980px) and (max-width: 1279px) {
  .page { --fine-reserve: 413px; }
}
@media (min-width: 980px) and (max-width: 1099px) {
  .page { --fine-reserve: 455px; }
}

/* shorter windows: drop the secondary hints (the placeholders still explain each field) and tighten the vertical rhythm */
@media (min-width: 980px) and (max-height: 900px) {
  .field { margin-bottom: 8px; }
  .page:not(.single) .field .hint:not(#hint-order), .page:not(.single) .hint.small { display: none; }
  .page:not(.single) .field textarea { height: 56px; min-height: 56px; }
  .checks { margin-top: 6px; }
  .check { margin-bottom: 4px; font-size: .82rem; }
  .check-note { margin-bottom: 4px; font-size: .72rem; }
  .robot { margin-top: 6px; }
  .btn { margin-top: 6px; padding-top: 11px; padding-bottom: 11px; }
}

/* short windows: name and phone share a row, the captcha caption goes (the widget says it itself) */
@media (min-width: 980px) and (max-height: 760px) {
  .fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .fields .field:nth-child(n+3) { grid-column: 1 / -1; }
  .page:not(.single) .field textarea { height: 46px; min-height: 46px; }
  .form-title { margin-bottom: 6px; }
  .required-note { margin-bottom: 6px; }
  .robot { display: none; }
  .brandbar { gap: 4px; margin-bottom: 6px; }
  .brandbar .brands { max-width: 480px; }
  .checks { margin-top: 6px; }
  .check { margin-bottom: 3px; }
}

/* ---------- legal documents and the results page: the site's frame around an off-white sheet ---------- */
.doc-top {
  display: grid; justify-items: center; gap: 18px;
  max-width: 860px; margin: 0 auto;
  padding: 30px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
}
.doc-top .ty { display: block; max-width: 130px; height: auto; }
.doc-top .brands { width: 100%; max-width: 480px; height: auto; }

.doc-card {
  max-width: 860px;
  margin: 0 max(var(--gutter), env(safe-area-inset-left)) 28px max(var(--gutter), env(safe-area-inset-right));
  background: #fbfaf8; color: #1d1d1f;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (min-width: 920px) { .doc-card { margin-left: auto; margin-right: auto; } }

.doc-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 28px; background: #f1ede7; border-top: 5px solid var(--accent); border-bottom: 1px solid #e4ded5;
}
.doc-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a4a1d; }
.doc-actions { display: flex; gap: 10px; align-items: center; }
.doc-actions a, .doc-actions button {
  padding: 8px 15px; font: inherit; font-size: .8rem; font-weight: 700; color: #1d1d1f; text-decoration: none;
  background: #fff; border: 1px solid #d3cbbf; border-radius: 999px; cursor: pointer;
}
.doc-actions a:hover, .doc-actions button:hover { color: #fff; background: #1d1d1f; border-color: #1d1d1f; }

.doc-toc { padding: 20px 28px 6px; border-bottom: 1px solid #ece6dc; }
.doc-toc h2 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b6257; }
.doc-toc ul { list-style: none; margin: 0 0 12px; padding: 0; columns: 2 280px; column-gap: 28px; }
.doc-toc li { margin: 0 0 6px; break-inside: avoid; font-size: .88rem; }
.doc-toc a { color: #1d1d1f; text-decoration: none; }
.doc-toc a:hover { color: var(--accent-dark); text-decoration: underline; }

.doc-body { padding: 26px 28px 44px; font-size: .98rem; line-height: 1.7; }
.doc-body a { color: #0b57d0; }
.doc-body h1 {
  margin: 0 0 20px; padding-bottom: 14px; text-align: left; text-transform: none;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 800; line-height: 1.25; color: #111;
  border-bottom: 4px solid var(--accent);
}
.doc-body h2 { margin: 30px 0 8px; font-size: 1.1rem; font-weight: 800; color: #111; scroll-margin-top: 16px; }
.doc-body h3 { margin: 22px 0 6px; font-size: 1rem; font-weight: 700; color: #111; }
.doc-body p { margin: .8em 0; }
.doc-body ul, .doc-body ol { margin: .8em 0; padding-left: 1.4em; }
.doc-body li { margin: .35em 0; }
.doc-body .doc-title-line { margin: .35em 0; text-align: center; letter-spacing: .02em; }
.doc-body .doc-title-line:first-child { margin-top: 0; font-size: .85rem; letter-spacing: .12em; color: #6b6257; }
.doc-body .doc-title-line:nth-child(n+2) { font-size: 1.05rem; color: #111; }
.doc-body table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: .9rem; }
.doc-body .table-wrap { margin: 16px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-body .table-wrap table { margin: 0; min-width: 640px; }
.doc-body th, .doc-body td { padding: 8px 10px; vertical-align: top; text-align: left; border: 1px solid #ddd5c9; }
.doc-body tr:nth-child(even) td { background: #f6f3ee; }
.draft-note { margin: 0 0 18px; padding: 10px 14px; font-weight: 700; color: #4a3a00; background: #fff3cd; border: 1px solid #e0b100; border-radius: 8px; }

.doc-foot { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) max(30px, env(safe-area-inset-bottom)); text-align: center; font-size: .75rem; color: var(--muted); }
.doc-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.doc-foot p { margin: 0; }

/* results page (static, published after the draw) shares the same frame */
.results-page { padding: 26px 28px 44px; line-height: 1.6; }
.results-page h1 { margin: 0 0 16px; text-align: left; text-transform: none; font-size: clamp(1.35rem, 3.6vw, 1.85rem); color: #111; border-bottom: 4px solid var(--accent); padding-bottom: 12px; }
.results-page h2 { margin: 26px 0 8px; font-size: 1.1rem; color: #111; }
.results-page table { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: .95rem; }
.results-page th, .results-page td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #e4ded5; }
.results-page th { color: #6b6257; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.results-page .fine { color: #6b6257; }

@media print {
  body, body.doc { background: #fff; color: #000; }
  .doc-top, .doc-foot, .doc-actions, .doc-toc, .demo, .legal-links { display: none; }
  .doc-card { max-width: none; margin: 0; background: #fff; border-radius: 0; box-shadow: none; }
  .doc-head { padding: 0 0 8px; background: none; border: 0; }
  .doc-body { padding: 0; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.page.single { grid-template-columns: minmax(0, 640px); grid-template-areas: "side" "links" "credit"; justify-content: center; }
.page.single .form-title { font-size: 1.4rem; }
