/* =================================================================
   FUNDRAISER LANDING PAGES — fundraiser.css
   Shared by every ticketed fundraiser page (12-guns.html and any
   that follow). Tokens, buttons, section heads and form fields come
   from styles.css; this file adds only what those pages need.
   ================================================================= */

/* Header: the page has one job, so the button stays visible on phones */
.site-header .fr-cta { display: inline-flex; }

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.fr-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--s-8), 9vw, var(--s-9)) clamp(var(--s-8), 9vw, var(--s-9));
  isolation: isolate;
}
.fr-hero-inner { position: relative; z-index: 2; display: grid; gap: var(--s-8); align-items: center; }

/* Player photo: graded to the brand crimson, faded into the dark */
.fr-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  opacity: .32;
}
.fr-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  filter: grayscale(1) contrast(1.15) brightness(.85);
}
.fr-hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #b3191c 0%, var(--crimson) 50%, #1a0405 100%);
  mix-blend-mode: color;
}

/* String of lights across the top of the hero (bulbs placed by fundraiser-fx.js) */
.fr-lights { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 1; pointer-events: none; }
.fr-lights svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fr-lights .bulb { animation: bulb-twinkle var(--tw, 3s) ease-in-out var(--td, 0s) infinite; }
@keyframes bulb-twinkle {
  0%, 100% { opacity: 1; }
  45% { opacity: .35; }
  55% { opacity: .35; }
}

/* Falling snow (drawn by fundraiser-fx.js); never blocks clicks */
.fr-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* Countdown to the next 7 p.m. drawing */
.fr-count { margin-top: var(--s-7); }
.fr-count-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.fr-count-cells { display: flex; gap: var(--s-3); }
.fr-count-cells span[hidden] { display: none; }
.fr-count-cells span {
  display: grid;
  justify-items: center;
  min-width: 68px;
  padding: var(--s-3) var(--s-3) var(--s-2);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  background: rgba(12,4,4,.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.fr-count-cells b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fr-count-cells i {
  font-style: normal;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* The ticket hangs and drifts a little; a sheen crosses it now and then */
.fr-ticket-wrap { justify-self: center; width: 100%; max-width: 500px; animation: ticket-float 7s ease-in-out infinite; }
@keyframes ticket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fr-ticket::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 48%, rgba(255,255,255,.04) 56%, transparent 66%);
  background-size: 250% 100%;
  background-position: 130% 0;
  animation: ticket-sheen 6s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes ticket-sheen {
  0% { background-position: 130% 0; }
  30%, 100% { background-position: -40% 0; }
}

.fr-kicker {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.fr-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 13vw, 6.5rem);
  text-wrap: balance;
}
.fr-title .num { color: var(--accent); }
.fr-lead {
  margin-top: var(--s-5);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.fr-lead strong { color: var(--ink); font-weight: 600; }

/* What is true today: on sale, days to go, which drawing it is */
.fr-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  font-weight: 600;
  font-size: 0.95rem;
}
.fr-status::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.fr-status[data-state="open"]::before,
.fr-status[data-state="drawing"]::before { background: #45c46b; box-shadow: 0 0 0 4px rgba(69,196,107,.18); }

.fr-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

/* The ticket: the page's one visual. Perforated stub on the right. */
.fr-ticket {
  --notch: 14px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  overflow: hidden;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--crimson-bright), var(--crimson) 55%, var(--crimson-deep));
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 80px -10px rgba(142,20,22,.55);
  transform: rotate(-3deg);
  -webkit-mask:
    radial-gradient(var(--notch) at calc(100% - 96px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(var(--notch) at calc(100% - 96px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(var(--notch) at calc(100% - 96px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(var(--notch) at calc(100% - 96px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.fr-ticket-main { padding: var(--s-6) var(--s-5) var(--s-6) var(--s-6); min-width: 0; }
.fr-ticket-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: .8;
}
.fr-ticket-name {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  margin: var(--s-2) 0 var(--s-5);
}
.fr-ticket-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-5); }
.fr-ticket-facts dt {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .75;
}
.fr-ticket-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  white-space: nowrap;
}
.fr-ticket-stub {
  width: 96px;
  display: grid;
  place-items: center;
  border-left: 2px dashed rgba(255,255,255,.45);
  padding: var(--s-4) 0;
}
.fr-ticket-stub { text-align: center; align-content: center; gap: 2px; }
.fr-ticket-stub b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.9;
}
.fr-ticket-stub span {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .8;
}

/* ---------------------------------------------------------------
   HOW IT WORKS — four facts in a ruled ledger
   --------------------------------------------------------------- */
.fr-facts { display: grid; border-top: 1px solid var(--line); }
.fr-fact {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.fr-fact-k {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--ink);
}
.fr-fact-v { color: var(--ink-soft); max-width: 34ch; }

/* ---------------------------------------------------------------
   THE DRAWINGS — one card per day
   --------------------------------------------------------------- */
.day-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.day {
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--s-4);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 112px;
  align-content: start;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.day-grid { counter-reset: day; }
.day { counter-increment: day; }
.day::after {
  content: counter(day);
  position: absolute;
  right: -2px; bottom: -18px;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}
.day:not(.is-done):hover { transform: translateY(-3px); border-color: rgba(206,122,123,.45); }
.day-n {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.day-date {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.05;
}
.day-dow { color: var(--ink-faint); font-size: 0.9rem; }
.day-prize { margin-top: var(--s-2); color: var(--ink-soft); font-size: 0.95rem; }
.day-flag {
  margin-top: var(--s-2);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.day.is-today {
  background: linear-gradient(160deg, var(--crimson-bright), var(--crimson) 60%, var(--crimson-deep));
  border-color: #b3191c;
  animation: today-glow 2.8s ease-in-out infinite;
}
.day.is-today::after { color: rgba(255,255,255,.12); }
@keyframes today-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179,25,28,.0), 0 10px 30px -12px rgba(179,25,28,.6); }
  50% { box-shadow: 0 0 0 4px rgba(179,25,28,.18), 0 14px 40px -10px rgba(179,25,28,.85); }
}
.day.is-today .day-n,
.day.is-today .day-dow { color: rgba(255,255,255,.8); }
.day.is-done { opacity: .55; }
.day.is-done .day-flag { color: var(--ink-faint); }

/* ---------------------------------------------------------------
   PHOTO BAND
   --------------------------------------------------------------- */
.fr-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  background: #000;
}
.fr-shot { position: relative; margin: 0; overflow: hidden; height: 300px; isolation: isolate; }
.fr-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.95);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out, ease), filter .6s ease;
}
.fr-shot:nth-child(1) img { object-position: 50% 30%; }
.fr-shot:nth-child(2) img { object-position: 40% 40%; }
.fr-shot:nth-child(3) img { object-position: 50% 20%; }
.fr-shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(179,25,28,.25), rgba(71,8,9,.7));
  mix-blend-mode: color;
  transition: opacity .6s ease;
}
.fr-shot::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
  pointer-events: none;
}
.fr-shot:hover img { transform: scale(1.08); filter: grayscale(.35) contrast(1.12) brightness(.9); }
.fr-shot:hover::after { opacity: .55; }
.fr-gallery .fr-snow { z-index: 2; }
@media (max-width: 640px) {
  .fr-shot:not(:nth-child(2)) { display: none; }
  .fr-shot { height: 280px; }
}
@media (min-width: 641px) {
  .fr-gallery { grid-template-columns: 1.3fr 1.55fr 1fr; }
  .fr-shot { height: clamp(320px, 34vw, 480px); }
}

/* ---------------------------------------------------------------
   TICKETS — the form and its states
   --------------------------------------------------------------- */
.tix-grid { display: grid; gap: var(--s-7); align-items: start; }
.tix-panel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}
.tix-note { color: var(--ink-soft); font-size: 1.08rem; }
.tix-note strong { color: var(--ink); }
.tix-note + .tix-note { margin-top: var(--s-3); }

.tix-form { display: grid; gap: var(--s-5); }
.tix-form .field input { background: var(--bg); }

/* Quantity stepper: big enough to thumb */
.qty { display: grid; grid-template-columns: 56px 1fr 56px; gap: var(--s-2); max-width: 260px; }
.qty button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.qty button:hover:not(:disabled) { background: var(--crimson); border-color: var(--crimson-bright); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
}

.tix-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.tix-total-label { color: var(--ink-soft); }
.tix-total-amount { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1; }

.tix-pay { display: grid; gap: var(--s-3); }
.tix-pay .btn { width: 100%; }
.tix-pay-note { color: var(--ink-faint); font-size: 0.92rem; }
/* PayPal draws its buttons in an iframe; give it a light plate so the
   card form it can open below the buttons stays readable on the dark page */
#paypalButtons { background: #fff; border-radius: var(--radius-sm); padding: var(--s-4) var(--s-4) var(--s-2); min-height: 64px; }
.tix-msg { color: var(--accent-strong); font-weight: 600; }
.tix-msg:empty { display: none; }

/* Confirmation: the buyer's numbers as stubs */
.tix-done-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.stubs { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }
.stub {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  padding: var(--s-3) var(--s-5);
  color: var(--accent-ink);
  background: var(--crimson);
  border: 2px dashed rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
}
.tix-done p { color: var(--ink-soft); }
.tix-done p + p { margin-top: var(--s-3); }
.tix-done strong { color: var(--ink); }
.tix-done .btn { margin-top: var(--s-6); }

/* Summary beside the form */
.tix-side { display: grid; gap: var(--s-5); }
.tix-side h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
}
.tix-side ul { display: grid; gap: var(--s-3); }
.tix-side li { position: relative; padding-left: var(--s-5); color: var(--ink-soft); }
.tix-side li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 2px;
  background: var(--accent);
}

/* ---------------------------------------------------------------
   RULES
   --------------------------------------------------------------- */
.rules { counter-reset: rule; max-width: 860px; border-top: 1px solid var(--line); padding: 0; list-style: none; }
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.rules li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.2em;
}
.rules strong { color: var(--ink); font-weight: 600; }
.rules a,
.fr-fact-v a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rules-notice {
  max-width: 860px;
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-left: 3px solid var(--crimson-bright);
  background: var(--bg-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   QUESTIONS + SPONSOR
   --------------------------------------------------------------- */
.people { display: grid; gap: var(--s-4); max-width: 860px; }
.person {
  padding: var(--s-5);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.person-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.1;
}
.people-reach { margin-top: var(--s-5); max-width: 860px; color: var(--ink-soft); font-size: 1.08rem; }
.people-reach a,
.tix-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sponsor-line {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  max-width: 860px;
  color: var(--ink-soft);
}
.sponsor-line strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
  margin-top: var(--s-2);
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (min-width: 641px) {
  .fr-facts { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-7); }
  .day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .tix-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width: 640px) {
  .tix-form .field-row { display: grid; gap: var(--s-5); }
  .fr-ticket { transform: rotate(-2deg); }
  .fr-count-cells { gap: var(--s-2); }
  .fr-count-cells span { min-width: 0; flex: 1; }
  .fr-count-cells b { font-size: 1.8rem; }
  .fr-lights { height: 48px; }
}
@media (min-width: 1025px) {
  .fr-hero-inner { grid-template-columns: 1.15fr 1fr; gap: var(--s-9); }
  .fr-ticket-wrap { justify-self: end; }
  .fr-hero-photo {
    left: auto; width: 56%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 30%, #000 60%), linear-gradient(180deg, #000 72%, transparent);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 30%, #000 60%), linear-gradient(180deg, #000 72%, transparent);
            mask-composite: intersect;
    opacity: .6;
  }
  .fr-facts { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-6); border-bottom: 1px solid var(--line); }
  .fr-fact { border-bottom: 0; padding-block: var(--s-6); }
  .day-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tix-grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-9); }
  .tix-side { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

@media (prefers-reduced-motion: reduce) {
  .fr-ticket { transform: none; }
  .fr-ticket-wrap, .fr-ticket::after, .fr-lights .bulb, .day.is-today { animation: none; }
  .day, .fr-shot img { transition: none; }
}
