/* ==========================================================================
   FND Connect — Raffles module
   Self-contained styling for the public raffle pages. Uses the brand tokens
   defined in styles.css (:root). Loaded only on /raffles pages.
   ========================================================================== */

.raffle-page {
  background: var(--panel);
}

/* --- Hero (no background photo — brand gradient only) --------------------- */
.raffle-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(237, 43, 123, 0.55), transparent 55%),
    linear-gradient(135deg, var(--fnd-deep-navy), var(--fnd-navy) 60%, #4a0f33);
  border-bottom: 1px solid rgba(0, 43, 95, 0.2);
}

.raffle-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.raffle-hero .wrap {
  padding: clamp(2.4rem, 6vw, 4rem) var(--gutter, 24px);
  max-width: var(--max);
  margin: 0 auto;
}

.raffle-hero .eyebrow {
  color: var(--fnd-rose);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.raffle-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  margin: 0.4rem 0 0.6rem;
}

.raffle-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.raffle-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.raffle-hero-meta div {
  display: flex;
  flex-direction: column;
}

.raffle-hero-meta strong {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.raffle-hero-meta span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3rem;
}

/* --- Section scaffold ----------------------------------------------------- */
.raffle-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--gutter, 24px);
}

.raffle-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.raffle-section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--fnd-navy);
  margin: 0;
}

.raffle-section-head p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

/* --- Card grid ------------------------------------------------------------ */
.raffle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.raffle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 43, 95, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.raffle-card,
.raffle-card a {
  text-decoration: none;
  color: inherit;
}

.raffle-card.is-open:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 43, 95, 0.14);
  border-color: rgba(201, 0, 90, 0.4);
}

.raffle-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fnd-navy);
  text-align: center;
  margin: 0;
  padding: 1rem 1rem 0.6rem;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raffle-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fbfcfe, #eef3f9);
  padding: 0.75rem;
}

.raffle-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.raffle-card-media .raffle-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--fnd-navy);
  color: var(--white);
  font-size: 2rem;
}

.raffle-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.raffle-state {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fnd-navy);
}

.raffle-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--fnd-magenta);
  line-height: 1;
}

.raffle-amount-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: -0.2rem;
}

.raffle-winner {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}

.raffle-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.raffle-card-meta strong {
  color: var(--ink);
}

/* --- Progress bar --------------------------------------------------------- */
.raffle-progress {
  height: 10px;
  border-radius: 999px;
  background: #e6ecf3;
  overflow: hidden;
}

.raffle-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.raffle-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* --- Countdown ------------------------------------------------------------ */
.raffle-countdown {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 800;
  color: var(--fnd-navy);
  font-variant-numeric: tabular-nums;
}

.raffle-countdown .unit {
  background: var(--pale);
  color: var(--fnd-magenta);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.9rem;
}

.raffle-countdown.is-ended {
  color: var(--muted);
}

/* --- Card CTA / footer button -------------------------------------------- */
.raffle-card-cta {
  display: block;
  text-align: center;
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  color: var(--fnd-magenta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.raffle-card.is-open .raffle-card-cta {
  background: linear-gradient(135deg, var(--fnd-magenta), #a8004d);
  color: var(--white);
  border-top: none;
}

.raffle-card.is-open:hover .raffle-card-cta {
  background: var(--fnd-navy);
}

.raffle-card-cta.is-disabled {
  color: var(--muted);
  background: var(--panel);
  cursor: default;
}

/* --- Corner ribbon -------------------------------------------------------- */
.raffle-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  transform: rotate(45deg);
  width: 140px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.32rem 0;
  background: linear-gradient(135deg, #d11f4f, #a8004d);
  box-shadow: 0 6px 14px rgba(168, 0, 77, 0.35);
  z-index: 2;
}

.raffle-ribbon.is-muted {
  background: linear-gradient(135deg, #6b7890, #4b5670);
  box-shadow: 0 6px 14px rgba(75, 86, 112, 0.3);
}

.raffle-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}

/* --- Single raffle layout ------------------------------------------------- */
.raffle-single {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.raffle-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 43, 95, 0.06);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.raffle-panel + .raffle-panel {
  margin-top: 1.25rem;
}

.raffle-prize-media {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #fbfcfe, #eef3f9);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 1.25rem;
}

.raffle-prize-media img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.raffle-aside {
  position: sticky;
  top: calc(var(--anchor-offset, 120px) - 28px);
}

.raffle-price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.raffle-price-tag b {
  font-size: 2.1rem;
  color: var(--fnd-magenta);
  line-height: 1;
}

.raffle-price-tag span {
  color: var(--muted);
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  width: 44px;
  border: none;
  background: var(--panel);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fnd-navy);
  cursor: pointer;
}

.qty-stepper button:hover {
  background: var(--pale);
  color: var(--fnd-magenta);
}

.qty-stepper input {
  width: 64px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.raffle-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border-radius: 10px;
}

.raffle-total-row strong {
  font-size: 1.4rem;
  color: var(--fnd-navy);
}

.raffle-field {
  display: block;
  margin-bottom: 0.85rem;
}

.raffle-field span {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.raffle-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.raffle-field input:focus {
  outline: none;
  border-color: var(--fnd-magenta);
  box-shadow: 0 0 0 3px rgba(201, 0, 90, 0.12);
}

.raffle-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.raffle-consent input {
  margin-top: 0.2rem;
}

.raffle-btn {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--fnd-magenta);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fnd-magenta), #a8004d);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.raffle-btn:hover {
  background: var(--fnd-navy);
  border-color: var(--fnd-navy);
}

.raffle-btn.secondary {
  background: var(--white);
  color: var(--fnd-magenta);
}

.raffle-btn.secondary:hover {
  color: var(--white);
}

/* Free-entry callout */
.raffle-free-card {
  border: 1px solid rgba(0, 94, 184, 0.25);
  border-left: 6px solid var(--nhs-blue);
  background: var(--pale-blue);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.raffle-free-card h3 {
  margin: 0 0 0.5rem;
  color: var(--fnd-navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.raffle-free-card .pill {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--nhs-blue);
  color: var(--white);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.raffle-address {
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px dashed rgba(0, 94, 184, 0.4);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.5rem 0;
}

.raffle-where-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--pale);
  border-left: 4px solid var(--fnd-magenta);
}

.raffle-where-box strong {
  color: var(--fnd-magenta);
}

/* Banner / notices */
.raffle-banner {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0 var(--gutter, 24px);
}

.raffle-note {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--pale-blue);
  border: 1px solid rgba(0, 94, 184, 0.2);
  color: var(--text);
}

.raffle-result-banner {
  border-radius: 14px;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--fnd-navy), #4a0f33);
  color: var(--white);
  text-align: center;
}

.raffle-result-banner h2 {
  color: var(--white);
  margin: 0 0 0.4rem;
}

/* Order page */
.raffle-order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.raffle-order-status.paid { background: #e6f6ec; color: #1c7a43; }
.raffle-order-status.pending { background: var(--pale); color: var(--fnd-magenta); }
.raffle-order-status.cancelled,
.raffle-order-status.refunded { background: #eef0f4; color: var(--muted); }

.raffle-bank {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.raffle-bank li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.raffle-bank li:last-child { border-bottom: none; }
.raffle-bank li:nth-child(odd) { background: var(--panel); }

.raffle-bank .label { color: var(--muted); }
.raffle-bank .value { font-weight: 700; color: var(--ink); }

.raffle-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--fnd-navy);
}

.raffle-copy:hover { border-color: var(--fnd-magenta); color: var(--fnd-magenta); }

.raffle-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.raffle-ticket-chip {
  background: var(--fnd-navy);
  color: var(--white);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .raffle-single {
    grid-template-columns: 1fr;
  }
  .raffle-aside {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .raffle-card,
  .raffle-progress > span {
    transition: none;
  }
}

/* 2026-08-03 raffle conversion release: fast reassurance without another
   card grid, plus a more useful live spotlight countdown. */
.raffle-spotlight-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raffle-spotlight-countdown .raffle-countdown {
  gap: 0.25rem;
}

.raffle-spotlight-countdown .raffle-countdown .unit {
  min-width: 34px;
  padding: 0.32rem 0.25rem;
  color: var(--raffle-ink);
  background: #fff;
}

.raffle-spotlight-countdown .raffle-countdown .unit b {
  font-size: 0.82rem;
}

.raffle-spotlight-countdown .raffle-countdown .unit i {
  font-size: 0.45rem;
}

.raffle-confidence {
  position: relative;
  z-index: 5;
  border-top: 1px solid #e2e7ef;
  border-bottom: 1px solid #e2e7ef;
  background: #fff;
}

.raffle-confidence-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
}

.raffle-confidence-inner > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.15rem 1rem;
  border-left: 1px solid #e2e7ef;
}

.raffle-confidence-inner > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.raffle-confidence-inner > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--raffle-pink);
  font-size: 0.88rem;
  font-weight: 900;
}

.raffle-confidence p {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  margin: 0;
}

.raffle-confidence strong {
  color: var(--raffle-ink);
  font-size: 0.8rem;
  line-height: 1.2;
}

.raffle-confidence small {
  color: #626d7e;
  font-size: 0.66rem;
  line-height: 1.35;
}

.raffle-index .raffle-hero-visual img {
  filter: saturate(1.1) contrast(1.03);
}

@media (max-width: 920px) {
  .raffle-confidence-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raffle-confidence-inner > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .raffle-confidence-inner > div:nth-child(n + 3) {
    border-top: 1px solid #e2e7ef;
  }
}

@media (max-width: 430px) {
  .raffle-confidence-inner > div {
    align-items: flex-start;
    padding: 0.9rem 0.65rem;
  }

  .raffle-confidence-inner > div:nth-child(odd) {
    padding-left: 0;
  }

  .raffle-confidence-inner > div > span {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .raffle-confidence strong {
    font-size: 0.74rem;
  }

  .raffle-confidence small {
    font-size: 0.61rem;
  }

  .raffle-spotlight-countdown {
    display: none;
  }
}

/* ==========================================================================
   "Alive" / movement layer — live badges, ticking countdown, shimmer.
   ========================================================================== */

@keyframes raffle-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 0, 90, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(201, 0, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 0, 90, 0); }
}

@keyframes raffle-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes raffle-shimmer {
  0% { background-position: -180% 0; }
  100% { background-position: 180% 0; }
}

@keyframes raffle-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Live pill (single raffle aside) */
.raffle-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.raffle-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fnd-magenta);
  background: var(--pale);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.raffle-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fnd-magenta);
  animation: raffle-blink 1.4s ease-in-out infinite;
}

.raffle-entries-headline {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.raffle-entries-headline strong {
  font-size: 1.4rem;
  color: var(--fnd-magenta);
  font-variant-numeric: tabular-nums;
}

/* Live ribbon on open cards (corner) */
.raffle-ribbon.is-live {
  background: linear-gradient(135deg, #2e8b57, #14794a);
  box-shadow: 0 6px 14px rgba(20, 121, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.raffle-ribbon.is-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6ffd9;
  animation: raffle-blink 1.4s ease-in-out infinite;
}

/* Shimmer sweep across an active progress bar */
.raffle-progress[data-shimmer] > span {
  position: relative;
  overflow: hidden;
}

.raffle-progress[data-shimmer] > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: raffle-shimmer 2.4s linear infinite;
}

/* Countdown — big ticking units */
.raffle-countdown-box {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fnd-deep-navy), var(--fnd-navy));
  color: var(--white);
  text-align: center;
}

.raffle-countdown-box .cd-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.45rem;
}

/* On the dark countdown box, the numbers/labels must be white — otherwise
   they inherit the magenta used on light card backgrounds and clash. */
.raffle-countdown-box .raffle-countdown .unit {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.raffle-countdown-box .raffle-countdown .unit b {
  color: var(--white);
}

.raffle-countdown-box .raffle-countdown .unit i {
  color: rgba(255, 255, 255, 0.72);
}

.raffle-countdown {
  display: inline-flex;
  gap: 0.4rem;
  align-items: stretch;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.raffle-countdown .unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  min-width: 44px;
}

.raffle-countdown .unit b {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.raffle-countdown .unit i {
  font-style: normal;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8004f;
  opacity: 1;
  margin-top: 0.2rem;
}

/* Compact countdown inside card meta rows: its own full-width line, four
   even blocks with the label stacked above the number so it never overflows. */
.raffle-card-meta .raffle-countdown {
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.3rem;
  justify-content: space-between;
}

.raffle-card-meta .raffle-countdown .unit {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.05rem;
  background: var(--pale);
  color: var(--fnd-magenta);
  border-radius: 8px;
  padding: 0.28rem 0.1rem;
}

.raffle-card-meta .raffle-countdown .unit b { font-size: 0.95rem; }
.raffle-card-meta .raffle-countdown .unit i { color: #a8004f; font-size: 0.5rem; margin: 0; opacity: 1; }

.raffle-countdown.is-ended {
  color: var(--muted);
  font-weight: 700;
}

/* CTA nudge on open cards */
.raffle-card.is-open .raffle-card-cta {
  position: relative;
}

.raffle-card.is-open:hover .raffle-card-cta {
  animation: raffle-pop 0.5s ease;
}

/* ==========================================================================
   Homepage "Current raffles" band
   ========================================================================== */
.home-raffles {
  background:
    radial-gradient(120% 140% at 90% -20%, rgba(237, 43, 123, 0.12), transparent 55%),
    var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-raffles--spotlight {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(237, 43, 123, 0.22), transparent 50%),
    radial-gradient(70% 100% at 0% 100%, rgba(0, 43, 95, 0.1), transparent 45%),
    linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
  border-top: 3px solid var(--fnd-magenta, #ed2b7b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-raffles--spotlight .home-raffles-head h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
}

.home-raffles--spotlight .raffle-live {
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
}

.home-path-raffle-cta {
  background: var(--fnd-magenta, #ed2b7b) !important;
  border-color: var(--fnd-magenta, #ed2b7b) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(237, 43, 123, 0.28);
}

.home-path-raffle-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.home-raffles .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--gutter, 24px);
}

.home-raffles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.home-raffles-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--fnd-navy);
  margin: 0;
}

.home-raffles-head p {
  color: var(--muted);
  margin: 0.3rem 0 0;
}

/* Nav highlight for the Raffles menu item */
.site-nav a.nav-raffles {
  color: var(--fnd-magenta);
  font-weight: 800;
}

.site-nav a.nav-raffles::before {
  content: "🎟️";
  margin-right: 0.3rem;
}

@media (prefers-reduced-motion: reduce) {
  .raffle-live .dot,
  .raffle-ribbon.is-live .dot,
  .raffle-progress[data-shimmer] > span::after,
  .raffle-card.is-open:hover .raffle-card-cta {
    animation: none;
  }
}

/* ==========================================================================
   Raffles campaign landing page
   The index has its own prize-led composition; single draw and order pages
   continue to use the module styles above.
   ========================================================================== */
.raffle-index {
  --raffle-pink: #c9005a;
  --raffle-hot-pink: #ff9bc4;
  --raffle-yellow: #ffd166;
  --raffle-cream: #fff9f2;
  --raffle-ink: #071d3b;
  overflow-x: hidden;
  background: #fff;
}

.raffle-index main {
  overflow: hidden;
}

.raffle-index .raffle-hero {
  position: relative;
  min-height: clamp(590px, 72vh, 740px);
  overflow: hidden;
  isolation: isolate;
  background: var(--fnd-deep-navy);
  border: 0;
}

.raffle-index .raffle-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 26, 59, 1) 0%, rgba(0, 26, 59, 0.98) 34%, rgba(0, 26, 59, 0.76) 58%, rgba(0, 26, 59, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 26, 59, 0.42), transparent 38%);
  pointer-events: none;
}

.raffle-index .raffle-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 44px;
  opacity: 1;
  background: linear-gradient(135deg, transparent 14px, #fff 0) 0 0 / 28px 28px repeat-x;
  pointer-events: none;
}

.raffle-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 45%;
  overflow: hidden;
  background: #f5f6f8;
}

.raffle-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 26, 59, 0.42));
}

.raffle-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: raffle-image-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.raffle-hero-stage {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: clamp(590px, 72vh, 740px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter, 24px) clamp(6rem, 10vw, 8rem);
}

.raffle-hero-copy {
  width: min(62%, 710px);
  animation: raffle-rise 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.raffle-kicker,
.raffle-feature-live,
.raffle-card-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.raffle-kicker {
  margin-bottom: 1.15rem;
  padding: 0.62rem 0.85rem;
  color: #fff;
  background: rgba(237, 43, 123, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.raffle-kicker .dot,
.raffle-feature-live .dot,
.raffle-card-live .dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--raffle-hot-pink);
  box-shadow: 0 0 0 5px rgba(255, 79, 154, 0.17);
  animation: raffle-blink 1.4s ease-in-out infinite;
}

.raffle-index .raffle-hero h1 {
  max-width: 740px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 6.7vw, 6.35rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.raffle-index .raffle-hero h1 em {
  color: var(--raffle-yellow);
  font-style: normal;
}

.raffle-index .raffle-hero .lead {
  max-width: 660px;
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.65;
}

.raffle-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.raffle-hero-cta,
.raffle-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.86rem 1.25rem;
  border: 2px solid var(--raffle-pink);
  border-radius: 8px;
  background: var(--raffle-pink);
  box-shadow: 0 14px 34px rgba(237, 43, 123, 0.3);
  color: #fff;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.raffle-hero-cta:hover,
.raffle-feature-cta:hover {
  transform: translateY(-3px);
  border-color: #fff;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  color: var(--fnd-navy);
}

.raffle-hero-cta > span,
.raffle-feature-cta > span {
  font-size: 1.35em;
  transition: transform 0.2s ease;
}

.raffle-hero-cta:hover > span,
.raffle-feature-cta:hover > span {
  transform: translateX(4px);
}

.raffle-hero-link {
  color: #fff;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.raffle-hero-link:hover {
  color: var(--raffle-yellow);
}

.raffle-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.raffle-hero-facts > div {
  display: grid;
  gap: 0.3rem;
  min-width: 112px;
  padding: 0 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.raffle-hero-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.raffle-hero-facts strong {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
}

.raffle-hero-facts span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raffle-spotlight {
  position: absolute;
  right: var(--gutter, 24px);
  bottom: clamp(5.2rem, 9vw, 7.5rem);
  display: grid;
  gap: 0.35rem;
  width: min(36vw, 440px);
  padding: 1.15rem 1.25rem 1.15rem 2rem;
  border-left: 8px solid var(--raffle-yellow);
  background: rgba(0, 26, 59, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  animation: raffle-ticket-in 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.raffle-spotlight::before,
.raffle-spotlight::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fnd-deep-navy);
}

.raffle-spotlight::before { top: -9px; }
.raffle-spotlight::after { bottom: -9px; }

.raffle-spotlight:hover {
  transform: rotate(-1deg) translateY(-4px);
  background: rgba(201, 0, 90, 0.94);
}

.raffle-spotlight-label {
  color: var(--raffle-yellow);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.raffle-spotlight strong {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.2;
}

.raffle-spotlight-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.raffle-hero-spark {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(255, 209, 102, 0.55);
  border-radius: 50%;
  pointer-events: none;
}

.raffle-hero-spark-one {
  top: 13%;
  right: 43%;
  width: 90px;
  height: 90px;
}

.raffle-hero-spark-two {
  top: 8%;
  right: 39%;
  width: 18px;
  height: 18px;
  background: var(--raffle-pink);
  border: 0;
}

.raffle-index .raffle-banner {
  position: relative;
  z-index: 4;
  margin-top: 1rem;
}

.raffle-overline {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--raffle-pink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.raffle-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  max-width: 1180px;
  margin: clamp(4rem, 8vw, 7rem) auto;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 43, 95, 0.13);
  overflow: hidden;
}

.raffle-feature-media {
  position: relative;
  display: grid;
  min-height: 550px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(#f4f6f9 1px, transparent 1px),
    linear-gradient(90deg, #f4f6f9 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

.raffle-feature-media::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -35%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--raffle-yellow);
  opacity: 0.32;
}

.raffle-feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 650px;
  padding: clamp(1.25rem, 4vw, 3rem);
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.raffle-feature:hover .raffle-feature-media img {
  transform: scale(1.035) rotate(-0.5deg);
}

.raffle-feature-live {
  position: absolute;
  z-index: 2;
  top: 1.3rem;
  left: 1.3rem;
  padding: 0.6rem 0.75rem;
  background: var(--fnd-navy);
  color: #fff;
}

.raffle-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.raffle-feature-copy h2 {
  margin: 0;
  color: var(--raffle-ink);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.raffle-feature-description {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.raffle-feature-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.65rem 0 1rem;
}

.raffle-feature-price strong {
  color: var(--raffle-pink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.raffle-feature-price span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.raffle-feature .raffle-progress,
.raffle-prize-grid .raffle-progress {
  height: 8px;
  background: #e8ebf0;
}

.raffle-feature .raffle-progress > span,
.raffle-prize-grid .raffle-progress > span {
  background: var(--raffle-pink);
}

.raffle-feature .raffle-progress-row {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.raffle-feature-closes {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.raffle-feature .raffle-countdown {
  justify-content: flex-start;
}

.raffle-feature .raffle-countdown .unit {
  min-width: 52px;
  background: var(--raffle-cream);
}

.raffle-feature-cta {
  width: 100%;
  margin-top: 1.5rem;
}

.raffle-feature-cta:hover {
  border-color: var(--fnd-navy);
  background: var(--fnd-navy);
  color: #fff;
}

.raffle-feature-free {
  align-self: center;
  margin-top: 0.9rem;
  color: var(--fnd-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-underline-offset: 3px;
}

.raffle-index .raffle-section {
  max-width: 1180px;
}

.raffle-prizes {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.raffle-section-head-loud {
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.raffle-section-head-loud h2,
.raffle-results .raffle-section-head h2 {
  margin: 0;
  color: var(--raffle-ink);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.raffle-section-head-loud > p {
  max-width: 360px;
  padding-bottom: 0.25rem;
  line-height: 1.55;
}

.raffle-prize-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.raffle-prize-grid .raffle-card {
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(0, 43, 95, 0.08);
  animation: raffle-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.raffle-prize-grid .raffle-card:nth-child(2) { animation-delay: 0.06s; }
.raffle-prize-grid .raffle-card:nth-child(3) { animation-delay: 0.12s; }
.raffle-prize-grid .raffle-card:nth-child(4) { animation-delay: 0.18s; }
.raffle-prize-grid .raffle-card:nth-child(5) { animation-delay: 0.24s; }
.raffle-prize-grid .raffle-card:nth-child(6) { animation-delay: 0.3s; }

.raffle-prize-grid .raffle-card:hover {
  transform: translateY(-7px);
  border-color: rgba(237, 43, 123, 0.35);
  box-shadow: 0 22px 52px rgba(0, 43, 95, 0.15);
}

.raffle-prize-grid .raffle-card-media {
  aspect-ratio: 4 / 3.2;
  padding: 0;
  overflow: hidden;
  background: #f6f7f9;
}

.raffle-prize-grid .raffle-card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0.9rem;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.raffle-prize-grid .raffle-card:hover .raffle-card-media img {
  transform: scale(1.05);
}

.raffle-card-live {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.48rem 0.62rem;
  background: rgba(0, 43, 95, 0.92);
  color: #fff;
  backdrop-filter: blur(8px);
}

.raffle-card-price {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: var(--raffle-yellow);
  box-shadow: 0 7px 16px rgba(7, 29, 59, 0.18);
  color: var(--raffle-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.raffle-card-price strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.raffle-prize-grid .raffle-card-body {
  gap: 0.8rem;
  padding: 1.2rem 1.15rem 1.05rem;
  text-align: left;
}

.raffle-prize-grid .raffle-card-title {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--raffle-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
}

.raffle-prize-grid .raffle-progress-row {
  margin: 0;
  font-size: 0.76rem;
}

.raffle-card-closes {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.raffle-prize-grid .raffle-countdown {
  gap: 0.3rem;
}

.raffle-prize-grid .raffle-countdown .unit {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.35rem 0.2rem;
  background: var(--raffle-cream);
  text-align: center;
}

.raffle-prize-grid .raffle-countdown .unit b {
  font-size: 0.86rem;
}

.raffle-prize-grid .raffle-countdown .unit i {
  font-size: 0.43rem;
}

.raffle-prize-grid .raffle-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border: 0;
  background: var(--fnd-navy);
  color: #fff;
  font-size: 0.78rem;
  text-align: left;
}

.raffle-prize-grid .raffle-card:hover .raffle-card-cta {
  background: var(--raffle-pink);
  animation: none;
}

.raffle-how {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--fnd-deep-navy);
}

.raffle-how::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -90px;
  width: 360px;
  height: 360px;
  border: 80px solid rgba(237, 43, 123, 0.16);
  border-radius: 50%;
}

.raffle-how-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(3rem, 8vw, 7rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter, 24px);
}

.raffle-how .raffle-overline {
  color: var(--raffle-yellow);
}

.raffle-how h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.raffle-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raffle-how-steps li {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.raffle-how-steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.raffle-how-steps li > span {
  margin-bottom: 2.8rem;
  color: var(--raffle-hot-pink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.raffle-how-steps strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.raffle-how-steps p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.55;
}

.raffle-results {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.raffle-results-group {
  margin-top: 2.5rem;
}

.raffle-results-group > h3 {
  margin: 0 0 1rem;
  color: var(--fnd-navy);
  font-size: 1rem;
}

.raffle-empty {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  border: 0;
  background: var(--raffle-cream);
}

.raffle-empty-mark {
  color: var(--raffle-pink);
  font-size: 2.4rem;
}

.raffle-empty h2 {
  margin: 0;
  color: var(--raffle-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.raffle-empty p {
  max-width: 600px;
  margin: 0;
}

.raffle-free {
  position: relative;
  overflow: hidden;
  background: var(--raffle-pink);
}

.raffle-free::before {
  content: "FREE • FREE • FREE • FREE • FREE";
  position: absolute;
  top: -0.28em;
  left: -0.02em;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.raffle-free-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter, 24px);
}

.raffle-free .raffle-overline {
  color: #fff;
}

.raffle-free-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.raffle-free-copy h2 em {
  color: var(--raffle-yellow);
  font-style: normal;
}

.raffle-free-copy > p {
  max-width: 500px;
  margin: 1.35rem 0 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.65;
}

.raffle-free-ticket {
  position: relative;
  padding: clamp(1.7rem, 4vw, 3rem);
  background: var(--raffle-cream);
  box-shadow: 14px 14px 0 rgba(0, 26, 59, 0.2);
  color: var(--raffle-ink);
  transform: rotate(1.2deg);
}

.raffle-free-ticket::before,
.raffle-free-ticket::after {
  content: "";
  position: absolute;
  left: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raffle-pink);
}

.raffle-free-ticket::before { top: -14px; }
.raffle-free-ticket::after { bottom: -14px; }

.raffle-free-ticket-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--raffle-pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.raffle-free-ticket > p {
  margin: 0;
  line-height: 1.6;
}

.raffle-free-ticket .raffle-address {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 2px dashed rgba(0, 43, 95, 0.28);
  border-radius: 0;
  background: #fff;
  color: var(--raffle-ink);
  font-style: normal;
  line-height: 1.5;
}

.raffle-free-ticket .raffle-free-rules {
  color: #596577;
  font-size: 0.8rem;
  line-height: 1.55;
}

.raffle-index :is(.raffle-hero-cta, .raffle-hero-link, .raffle-spotlight, .raffle-feature-cta, .raffle-feature-free, .raffle-card-cta):focus-visible {
  outline: 3px solid var(--raffle-yellow);
  outline-offset: 4px;
}

@keyframes raffle-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes raffle-image-in {
  from { opacity: 0.4; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes raffle-ticket-in {
  from { opacity: 0; transform: rotate(4deg) translateY(24px); }
  to { opacity: 1; transform: rotate(-1deg) translateY(0); }
}

@media (max-width: 1080px) {
  .raffle-hero-copy {
    width: 68%;
  }

  .raffle-spotlight {
    width: min(34vw, 360px);
  }

  .raffle-feature {
    margin-right: var(--gutter, 24px);
    margin-left: var(--gutter, 24px);
  }

  .raffle-prize-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raffle-how-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .raffle-index .raffle-hero,
  .raffle-hero-stage {
    min-height: 680px;
  }

  .raffle-index .raffle-hero::before {
    background: linear-gradient(90deg, rgba(0, 26, 59, 0.94), rgba(0, 26, 59, 0.72));
  }

  .raffle-hero-visual {
    inset: 0;
    opacity: 0.48;
  }

  .raffle-hero-visual img {
    object-position: 62% center;
  }

  .raffle-hero-stage {
    align-items: flex-start;
    padding-top: clamp(3.4rem, 12vw, 5rem);
    padding-bottom: 8.5rem;
  }

  .raffle-hero-copy {
    width: 100%;
  }

  .raffle-index .raffle-hero h1 {
    font-size: clamp(3.25rem, 14vw, 5.2rem);
  }

  .raffle-index .raffle-hero .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .raffle-hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .raffle-hero-facts > div {
    min-width: 0;
    padding: 0 0 0 0.85rem;
  }

  .raffle-hero-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .raffle-spotlight {
    right: var(--gutter, 24px);
    bottom: 1.5rem;
    left: var(--gutter, 24px);
    width: auto;
    padding: 0.9rem 1rem 0.9rem 1.4rem;
  }

  .raffle-hero-spark {
    display: none;
  }

  .raffle-feature {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
    margin-bottom: 4.5rem;
    border-radius: 22px;
  }

  .raffle-feature-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .raffle-feature-copy {
    padding: 1.75rem 1.35rem 2rem;
  }

  .raffle-prize-grid {
    grid-template-columns: 1fr;
  }

  .raffle-how-steps {
    grid-template-columns: 1fr;
  }

  .raffle-how-steps li,
  .raffle-how-steps li:first-child {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0 0.75rem;
    padding: 1.35rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .raffle-how-steps li > span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .raffle-how-steps p {
    grid-column: 2;
  }

  .raffle-free-inner {
    grid-template-columns: 1fr;
  }

  .raffle-free-ticket {
    transform: rotate(0.6deg);
  }
}

@media (max-width: 430px) {
  .raffle-index .raffle-hero,
  .raffle-hero-stage {
    min-height: 735px;
  }

  .raffle-kicker {
    font-size: 0.66rem;
  }

  .raffle-index .raffle-hero h1 {
    font-size: clamp(3rem, 14.5vw, 3.9rem);
  }

  .raffle-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .raffle-hero-cta {
    width: 100%;
  }

  .raffle-hero-link {
    align-self: center;
  }

  .raffle-spotlight-meta {
    display: none;
  }

  .raffle-feature {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .raffle-feature .raffle-countdown .unit {
    min-width: 0;
  }

  .raffle-section-head-loud h2,
  .raffle-results .raffle-section-head h2 {
    font-size: 2.5rem;
  }

  .raffle-free-inner,
  .raffle-how-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .raffle-hero-visual img,
  .raffle-hero-copy,
  .raffle-spotlight,
  .raffle-prize-grid .raffle-card,
  .raffle-kicker .dot,
  .raffle-feature-live .dot,
  .raffle-card-live .dot {
    animation: none;
  }

  .raffle-index :is(.raffle-hero-cta, .raffle-feature-cta, .raffle-spotlight, .raffle-feature-media img, .raffle-prize-grid .raffle-card, .raffle-prize-grid .raffle-card-media img) {
    transition: none;
  }
}
