/* Contest-only additions. Base tokens and grid come from /all-white/styles.css */

.enterBtn { margin-top: 26px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1rem; }

/* entry card extras */
.card .who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card .who .name { margin: 0; }
.card .place { color: var(--champagne); font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.crown {
  position: absolute; top: 10px; left: 10px;
  background: var(--champagne); color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px;
}
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 12px; }
.empty strong { display: block; color: var(--paper); font-size: 1.05rem; margin-bottom: 6px; }

/* rules */
.rules {
  margin-top: 56px; padding: 34px 26px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.rules h2 { margin: 0 0 16px; font-family: "Playfair Display", serif; font-size: 1.4rem; }
.rules ol { margin: 0 0 18px; padding-left: 20px; color: var(--paper); line-height: 1.7; }
.rules ol span, .rules ol strong { color: var(--champagne); }
.fine { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }

/* sheet */
/* `display:flex` below outranks the UA stylesheet's [hidden]{display:none},
   so the sheet needs this or it renders open on page load. */
.sheet[hidden] { display: none; }

.sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3, 9, 13, .78); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
@media (min-width: 640px) { .sheet { align-items: center; } }
.sheetInner {
  position: relative; width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 20px 24px;
}
.sheetInner h2 { margin: 0 0 18px; font-family: "Playfair Display", serif; font-size: 1.5rem; }
.sheetClose {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.sheetClose:hover { color: var(--paper); }

.drop {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; margin-bottom: 16px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--ink-3); cursor: pointer; overflow: hidden; position: relative;
}
.drop:hover { border-color: var(--champagne); }
.drop img { width: 100%; height: 100%; object-fit: cover; }
#dropText { color: var(--muted); font-size: .92rem; font-weight: 600; text-align: center; padding: 0 20px; }
#dropText small { display: block; margin-top: 6px; font-weight: 400; font-size: .8rem; opacity: .8; }

.field { display: block; margin-bottom: 15px; }
.field > span, .field legend { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 700; letter-spacing: .02em; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; padding: 12px 14px; font: inherit;
  color: var(--paper); background: var(--ink-3);
  border: 1px solid var(--line); border-radius: 10px;
}
.field input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 1px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .76rem; }

.catPick { border: 0; padding: 0; margin: 0 0 15px; }
.catPick label { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-size: .92rem; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.consent input { margin-top: 3px; flex: none; }

.formErr { margin: 0 0 12px; color: #ff7a8f; font-size: .85rem; min-height: 1.1em; }
.submitBtn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .98rem; }
.submitBtn:disabled { opacity: .6; cursor: default; }

.done { text-align: center; padding: 12px 0 4px; }
.done h3 { margin: 0 0 10px; font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--champagne); }
.done p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.shareBtn { margin-top: 0; }

/* ── prize tiers ─────────────────────────────────────────── */
.tiers { list-style: none; margin: 0 0 8px; padding: 0; }
.tiers li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.tiers li:last-child { border-bottom: 0; }
.tiers .place { flex: none; min-width: 8.5rem; color: var(--champagne); font-weight: 800; font-size: .82rem; letter-spacing: .04em; }
.tiers .detail { color: var(--paper); line-height: 1.5; font-size: .95rem; }
.rules h2.mt { margin-top: 30px; }
.closesLine { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }

/* ── entry media strip ───────────────────────────────────── */
.previewStrip {
  position: absolute; inset: 0; padding: 8px;
  display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; overflow-y: auto; background: var(--ink-3);
}
.previewStrip .thumb { position: relative; border-radius: 8px; overflow: hidden; background: var(--ink); }
.previewStrip .thumb img, .previewStrip .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.previewStrip .vidTag {
  position: absolute; bottom: 5px; right: 5px;
  background: rgba(7,19,26,.85); color: var(--champagne);
  font-size: .6rem; font-weight: 800; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 999px;
}

/* ── gallery card media ──────────────────────────────────── */
.shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mediaCount {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(7,19,26,.85); color: var(--champagne);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line);
}

/* ── OTP sheet ───────────────────────────────────────────── */
.otpLede { margin: 0 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
#otpCode { letter-spacing: .5em; font-size: 1.2rem; text-align: center; font-weight: 700; }
.linkBtn {
  display: block; width: 100%; margin-top: 12px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .84rem; text-decoration: underline;
}
.linkBtn:hover { color: var(--champagne); }
.verifiedPill {
  display: inline-block; margin-top: 12px;
  background: transparent; color: var(--champagne);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: .76rem; font-weight: 700; letter-spacing: .05em;
}

/* ── event block: flyer, tickets, WhatsApp ───────────────── */
.eventBlock { margin-top: 52px; text-align: center; }
.flyer {
  display: block; width: 100%; max-width: 380px; margin: 0 auto 22px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.eventCtas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.eventCtas .cta { border: 0; }
.waBtn {
  display: inline-block; text-decoration: none;
  background: transparent; color: #25D366;
  border: 1px solid #25D366; border-radius: 999px;
  padding: 14px 28px; font-weight: 800; letter-spacing: .01em;
}
.waBtn:hover { background: #25D366; color: var(--ink); }

/* ── live vote feed ──────────────────────────────────────── */
.feedBlock { margin-top: 48px; }
.feedTitle { font-family: "Playfair Display", serif; font-size: 1.25rem; margin: 0 0 14px; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(212,184,133,.1); font-size: .88rem; }
.feed li:last-child { border-bottom: 0; }
.fMasked { color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.fVerb { color: var(--muted); }
.fName { color: var(--champagne); font-weight: 700; }
.fWhen { margin-left: auto; color: var(--muted); font-size: .76rem; }
.feedEmpty { color: var(--muted); justify-content: center; }

/* Event name is the headline now — tighten it so three lines still fit. */
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 4rem); line-height: .98; }
.sheetLede { margin: -10px 0 18px; color: var(--champagne); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ── badges: stack them, they collided on narrow cards ───── */
.shot .crown, .shot .pickedTag {
  position: absolute; top: 8px; left: 8px; right: auto;
  font-size: .64rem; padding: 4px 8px;
}
.shot .pickedTag { top: auto; bottom: 8px; left: 8px; }
.shot { cursor: zoom-in; }

/* ── fullscreen viewer ───────────────────────────────────── */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 8, 11, .96);
  display: grid; grid-template-columns: 56px 1fr 56px;
  grid-template-rows: 1fr auto; align-items: center; gap: 8px;
  padding: 16px 8px 24px;
}
.lbFig { grid-column: 2; grid-row: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; }
.lbFig img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 10px; }
.lbFig figcaption { display: flex; gap: 12px; align-items: baseline; color: var(--paper); font-size: .92rem; font-weight: 700; }
.lbFig figcaption #lbCount { color: var(--muted); font-weight: 500; font-size: .82rem; }
.lbNav {
  grid-row: 1; background: transparent; border: 0; cursor: pointer;
  color: var(--paper); font-size: 2.4rem; line-height: 1; padding: 10px;
}
.lbNav:hover { color: var(--champagne); }
.lbNav[hidden] { visibility: hidden; display: block; }
.lbPrev { grid-column: 1; }
.lbNext { grid-column: 3; }
.lbClose {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  background: transparent; border: 0; color: var(--paper);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.lbVote { grid-column: 2; grid-row: 2; justify-self: center; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.lbVote:disabled { opacity: .6; cursor: default; }

/* ── vote confirmation ───────────────────────────────────── */
.votedInner { text-align: center; }
.tick {
  width: 58px; height: 58px; margin: 6px auto 16px;
  border-radius: 50%; background: var(--champagne); color: var(--ink);
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800;
  animation: pop .32s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.votedInner h2 { margin: 0 0 10px; }
.votedFor { margin: 0 0 12px; color: var(--paper); font-size: 1rem; }
.votedFor strong { color: var(--champagne); }
.votedNote { margin: 0 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.votedInner .cta { border: 0; cursor: pointer; font: inherit; font-weight: 800; width: 100%; }
@media (prefers-reduced-motion: reduce) { .tick { animation: none } }

/* ── focused single-entrant landing (?fit=) ──────────────── */
.focus[hidden] { display: none; }
.focus { text-align: center; margin: 4px 0 34px; }
.focusEyebrow { margin: 0 0 6px; color: var(--muted); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.focusName { margin: 0 0 18px; font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--champagne); }
.focusShot {
  max-width: 340px; margin: 0 auto 16px; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--ink-3); cursor: zoom-in; position: relative;
}
.focusShot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focusShot .more {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(7,19,26,.85); color: var(--champagne);
  font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.focusVotes { margin: 0 0 18px; color: var(--paper); font-weight: 700; }
.focusVote { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 800; width: 100%; max-width: 340px; }
.focusVote:disabled { opacity: .6; cursor: default; }
.ghostBtn {
  display: block; margin: 14px auto 0; background: transparent;
  color: var(--champagne); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 22px; font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer;
}
.ghostBtn:hover { border-color: var(--champagne); }

/* ── entrant share row ───────────────────────────────────── */
.shareHint { margin: 0 0 10px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.shareRow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 14px;
}
.shareRow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); font-size: .82rem; }
.copyBtn { margin: 0; flex: none; padding: 8px 16px; font-size: .8rem; }

/* ── arriving from a shared link ─────────────────────────────
   The visitor came to vote for one person. Put that fit first and
   strip the hero back to a one-line brand mark, rather than making
   them scroll past the pitch and an "enter" CTA they did not come for. */
body.isFocused main { display: flex; flex-direction: column; }
body.isFocused .focus { order: -1; margin-top: 8px; }
body.isFocused .hero { padding: 22px 0 6px; }
body.isFocused .hero h1 { font-size: clamp(1.15rem, 4.6vw, 1.5rem); line-height: 1.15; }
body.isFocused .hero h1 br { display: none; }
body.isFocused .hero h1 span { font-style: normal; }
body.isFocused .hero .lede,
body.isFocused .hero .enterBtn,
body.isFocused .hero .meta,
body.isFocused .hero .closesLine { display: none; }
body.isFocused .feedBlock { margin-top: 34px; }

/* Lead with the three steps, then the stakes — the old single block buried
   the instruction inside the prize sentence. */
.ledeSteps { display: block; color: var(--paper); font-weight: 700; font-size: 1.12rem; margin-bottom: 10px; }
.lede strong { color: var(--champagne); }

/* ── hero photo ──────────────────────────────────────────── */
.heroVisuals {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; align-items: center; max-width: 760px; margin: 0 auto 28px;
}
.heroVisuals .heroShot { width: 100%; max-width: none; margin: 0; }
.heroVisuals .heroShot::after { display: none; }
.fitFeature {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--ink-3);
}
.fitFeature img { display: block; width: 100%; height: auto; }
body.isFocused .heroVisuals { display: none; }
@media (max-width: 520px) { .heroVisuals { gap: 10px; margin-bottom: 22px; } }
.heroShot[hidden] { display: none; }
.heroShot {
  position: relative; max-width: 430px; margin: 0 auto 22px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--ink-3);
}
.heroShot img { display: block; width: 100%; height: auto; }
/* fade the photo into the page so the type below sits on black, not on an edge */
.heroShot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 32%;
  background: linear-gradient(to bottom, rgba(7,19,26,0), var(--ink));
  pointer-events: none;
}
body.isFocused .heroShot { display: none; }
@media (max-width: 520px) { .heroShot { margin-bottom: 18px; } }

/* ── manage your own entry ───────────────────────────────── */
.manageHint { margin: 0 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.manageGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mTile {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: var(--ink-3); border: 1px solid var(--line); cursor: pointer;
}
.mTile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mTile.isCover { border-color: var(--champagne); box-shadow: inset 0 0 0 2px var(--champagne); }
.mTile .coverTag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--champagne); color: var(--ink);
  font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-align: center; padding: 3px 0;
}
.mTile .rm {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(3,9,13,.82); color: #ff8098; font-size: 1rem; line-height: 1;
  display: grid; place-items: center;
}
.mTile .rm:hover { background: #ff8098; color: var(--ink); }
.mTile.busy { opacity: .45; pointer-events: none; }
.ghostBtn.full { width: 100%; margin: 0 0 14px; }
.ghostBtn:disabled { opacity: .5; cursor: default; }

/* Recovery affordance. Without this an entrant on a new device has no route
   back to their own entry - the page cannot identify them until they verify. */
.heroRecover { margin-top: 14px; font-size: .86rem; }
.recoverNote { margin: 0 0 16px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
/* ── upsell: what else is on, and the app ────────────────────
   Both sit below the fold on the gallery and below the fit on a shared link,
   so neither can get between somebody and the vote button they came for. */
.upNext { margin-top: 52px; }
.upTitle {
  font-family: "Playfair Display", serif; font-size: 1.25rem; margin: 0 0 14px;
}
/* Always three across, never wrapping. At auto-fill/minmax the cards went full
   phone-width and the "strip" became a second homepage sitting between the
   rules and the app CTA. This is an upsell — it gets one band, not a screen. */
.upGrid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upCard {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.upCard:hover { border-color: var(--champagne); transform: translateY(-2px); }
.upShot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-3); }
.upShotPh { width: 100%; aspect-ratio: 4 / 5; background: var(--ink-3); }
.upBody { padding: 9px 10px 11px; }
.upWhen {
  color: var(--champagne); font-size: .62rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.upName {
  color: var(--paper); font-size: .82rem; font-weight: 700; line-height: 1.28;
  margin: 4px 0 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.upGo { color: var(--muted); font-size: .7rem; font-weight: 700; }
.upCard:hover .upGo { color: var(--champagne); }

.appCta {
  margin-top: 52px; padding: 30px 22px; text-align: center;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.appVenue {
  margin: 0 0 10px; color: var(--champagne);
  font-size: .72rem; font-weight: 800; letter-spacing: .18em;
}
.appTitle { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: 1.45rem; }
.appLede { margin: 0 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.appBtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 14px 26px;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
}
.appBtn:hover { background: var(--champagne); }
.appleMark { width: 17px; height: 17px; flex: none; }
.appFine { margin: 12px 0 0; color: var(--muted); font-size: .76rem; }

/* Respect native hidden state for unavailable actions and modal content. */
[hidden] { display: none !important; }
