/* ==========================================================================
   Theme: Spokane Dead 2026 — Halloween Party & Costume Contest
   Paste into Elementor custom CSS. Everything hangs off the per-contest root
   class, so next year's contest is a new block like this one and no markup
   changes.

   Matched to spokanetribecasino.com/spokane-dead-2026/ :
     - slime green #b5d331 (gradient #d8df25 -> #90c73e on cards)
     - purple panel #8f529c on the sunset-to-night background photo
     - CC Primal Scream headings with a hard black offset, Knockout for
       secondary heads, Universe LT Std 18/27 medium for body
     - pill buttons, 30px-radius lime cards with black text
   Where that page has no reference (form fields, checkbox rows, outlines) it
   falls back to the production site: 7px radius, 3px borders.

   One deliberate departure: the page's buttons are white text on lime, which
   is about 1.7:1. Buttons here use the black-on-lime the page already uses on
   its "How to enter" card.
   ========================================================================== */

.stc-contest--halloween-2026 {
  --sd-slime: #b5d331;
  --sd-slime-hi: #d8df25;
  --sd-slime-lo: #90c73e;
  --sd-purple: #8f529c;
  --sd-purple-deep: #74429a;
  --sd-night: #1b1840;
  --sd-ink: #050405;
  --sd-scream: "cc-primal-scream", "Bangers", "Knockout", sans-serif;

  --stc-bg: var(--sd-night);
  --stc-surface: #2b2060;       /* fields and rows, dark enough for white text */
  --stc-line: #e3d3ee;
  --stc-text: #ffffff;
  --stc-muted: #efe3f5;
  --stc-action: var(--sd-slime);
  --stc-on-action: var(--sd-ink);
  --stc-pick: var(--sd-slime);
  --stc-on-pick: var(--sd-ink);
  --stc-danger: #ffd900;        /* red disappears on purple; brand yellow marks problems */
  --stc-link: var(--sd-slime-hi);
  --stc-head-bg: transparent;
  --stc-head-text: #ffffff;
  --stc-radius: 7px;            /* production radius */

  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;

  /* Flat night behind the fixed sky layer below, so the page is never white
     while that image loads. */
  background: var(--sd-night);

  /* Own stacking context, so the sky layer can sit at z-index -1: behind the
     contest's content, but still in front of the page background. */
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/*
 * The sky, pinned to the viewport instead of painted on the element.
 *
 * On the element it scaled to the full scroll height — at 200 costumes that is
 * a ~20,000px box, so `cover` blew the photo up to a smear and the gradient's
 * pixel stops (110/190/330/620) all collapsed into the first screen. Both are
 * sized for one screen, so they belong on a viewport-sized layer.
 *
 * A fixed layer rather than `background-attachment: fixed`: iOS Safari treats
 * that as `scroll` on anything but the root, which is the one browser that
 * has to be right here.
 */
.stc-contest--halloween-2026::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("https://spokanetribecasino.com/wp-content/uploads/2026/09/HalloweenBackground_web-scaled.jpg") center top / cover no-repeat,
    linear-gradient(180deg, #6a2c86 0, #d9742b 110px, #e8a23c 190px, #8a4a9a 330px, #1b1840 620px) #1b1840;
}

/* Header: lettering straight on the sky, as on the event page. */
.stc-contest--halloween-2026 .stc-contest-head { text-align: center; padding: 20px 12px 18px; }
.stc-contest--halloween-2026 .stc-contest-brand { font-family: var(--stc-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
.stc-contest--halloween-2026 .stc-contest-title { font-family: var(--sd-scream); font-weight: 400; font-size: 60px; line-height: 1; text-transform: uppercase; color: var(--sd-slime); text-shadow: 4px 4px 0 var(--sd-ink); }
.stc-contest--halloween-2026 .stc-contest-sub { font-size: 30px; text-shadow: 2px 2px 0 var(--sd-ink); }
.stc-contest--halloween-2026 .stc-contest-head--compact { padding: 12px 12px 10px; }
.stc-contest--halloween-2026 .stc-contest-head--compact .stc-contest-title,
.stc-contest--halloween-2026 .stc-contest-head--compact .stc-contest-sub { font-size: 27px; text-shadow: 2px 2px 0 var(--sd-ink); }

/* Countdown sits on the sky photo, not the panel, so it carries the same hard
   ink shadow the lettering does — the background behind it runs from a bright
   sunset to near-black depending on viewport height. */
.stc-contest--halloween-2026 .stc-countdown {
  margin-top: 6px;
  font-size: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 0 var(--sd-ink), 0 0 6px rgba(5, 4, 5, 0.65);
}
.stc-contest--halloween-2026 .stc-countdown-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; opacity: 1; }
.stc-contest--halloween-2026 .stc-countdown-clock { color: var(--sd-slime); font-size: 17px; }

/* Content sits in the purple panel. */
.stc-contest--halloween-2026 .stc-contest-body {
  /* `margin: 0 6px 6px` here was overriding the base rule's auto margins —
     this file loads after contest.css — which pinned the panel hard left on
     any screen wider than the panel. The 6px gutter now lives as padding on
     the root, so it still applies without fighting the centring. */
  margin: 0 auto 6px;
  border-radius: 30px 30px 20px 20px;
  background: linear-gradient(180deg, var(--sd-purple-deep), var(--sd-purple));
}

/* Headings */
.stc-contest--halloween-2026 .stc-h { font-family: var(--sd-scream); font-weight: 400; font-size: 36px; text-transform: uppercase; text-align: center; color: var(--sd-slime); text-shadow: 2px 2px 0 var(--sd-ink); }
.stc-contest--halloween-2026 .stc-time,
.stc-contest--halloween-2026 .stc-upload-pct,
.stc-contest--halloween-2026 .stc-status { text-align: center; align-items: center; }
.stc-contest--halloween-2026 .stc-status .stc-code { align-self: center; }
.stc-contest--halloween-2026 .stc-status--problem .stc-status-icon { color: #ffffff; }
.stc-contest--halloween-2026 .stc-uploading { text-align: center; align-items: center; }
.stc-contest--halloween-2026 .stc-upload-progress { align-self: stretch; }

/* Buttons: the page's pill. Black on lime, not the page's white on lime. */
.stc-contest--halloween-2026 .stc-btn,
.stc-contest--halloween-2026 .stc-submit-btn { border-radius: 100px; text-transform: uppercase; font-weight: 600; }
.stc-contest--halloween-2026 .stc-btn--quiet { border: 3px solid var(--sd-slime); }
.stc-contest--halloween-2026 .stc-photo-drop-label,
.stc-contest--halloween-2026 .stc-next-title,
.stc-contest--halloween-2026 .stc-place-rank { font-family: var(--stc-display); font-weight: 600; text-transform: uppercase; }

/* Fields: production fallback (7px radius, 3px border). */
.stc-contest--halloween-2026 .stc-field input,
.stc-contest--halloween-2026 .stc-check,
.stc-contest--halloween-2026 .stc-jump input,
.stc-contest--halloween-2026 .stc-jump button { border-width: 3px; }

/* "What happens next" boxes are the page's lime card: 30px radius, black text. */
.stc-contest--halloween-2026 .stc-next {
  border: 0;
  border-radius: 30px;
  padding: 22px;
  background: linear-gradient(180deg, var(--sd-slime-hi), var(--sd-slime-lo));
  color: var(--sd-ink);
  text-align: left;
}
.stc-contest--halloween-2026 .stc-next-title { font-size: 26px; line-height: 1; text-align: center; }
/* .stc-small joined this list when the "Not a Sun Club member?" line was added
   to the thank-you panel (2026-10-27). Without it that paragraph keeps the
   PAGE's light-on-dark colour while sitting on the lime card, which is close to
   unreadable - and it is the line that tells a non-member what to do. */
.stc-contest--halloween-2026 .stc-next a,
.stc-contest--halloween-2026 .stc-next .stc-hint,
.stc-contest--halloween-2026 .stc-next .stc-small,
.stc-contest--halloween-2026 .stc-next .stc-optional { color: var(--sd-ink); }
.stc-contest--halloween-2026 .stc-next .stc-btn--quiet { color: var(--sd-ink); border-color: var(--sd-ink); }

/* Entry numbers: black Primal Scream on the lime gradient, like the prize list. */
.stc-contest--halloween-2026 .stc-entry-num { font-family: var(--sd-scream); font-weight: 400; background: linear-gradient(180deg, var(--sd-slime-hi), var(--sd-slime-lo)); }

/* Vote bar */
/* The button floats; there is no bar to paint. The slime rule used to be the
   separation between bar and gallery — that job now belongs to the button's
   own shadow. */
.stc-contest--halloween-2026 .stc-votebar { background: transparent; border-top: 0; }

/* Entry number on the confirmation — the badge number, in the event's face. */
.stc-contest--halloween-2026 .stc-entrynum {
  border-radius: 30px;
  background: linear-gradient(180deg, var(--sd-slime-hi), var(--sd-slime-lo));
}
.stc-contest--halloween-2026 .stc-entrynum-label { color: var(--sd-ink); opacity: 0.75; }
.stc-contest--halloween-2026 .stc-entrynum-value {
  font-family: var(--sd-scream);
  font-weight: 400;
  font-size: 118px;
  /* Primal Scream sits high in its em box; without this the digits crowd the
     label above and leave a gap underneath. */
  line-height: 1.05;
  color: var(--sd-ink);
  text-shadow: none;
}
