/* ============ Casino Night — scoped dark gala theme ============
   Everything here is under .casino-page so the warm main site is untouched. */

.casino-page {
  --gold: #E4B400;
  --gold-bright: #F7D774;
  --gold-soft: #C9A24B;
  --gold-deep: #9C7A12;
  --noir: #070707;
  --noir-2: #0E0E0C;
  --noir-3: #16150F;
  --paper-light: #F4EEDC;
  --paper-muted: rgba(244, 238, 220, 0.62);

  background: var(--noir);
  color: var(--paper-light);
}

/* ---------- Dark chrome (header/nav) just for this page ---------- */
.casino-page .site-header {
  background: rgba(8, 8, 7, 0.55);
  box-shadow: none;
  border-bottom: 1px solid rgba(228, 180, 0, 0.12);
}
.casino-page .site-header.scrolled {
  background: rgba(8, 8, 7, 0.82);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.casino-page .brand-name { color: var(--paper-light); }
.casino-page .site-nav a { color: rgba(244, 238, 220, 0.72); }
.casino-page .site-nav a:hover,
.casino-page .site-nav a[aria-current] { color: #fff; }
.casino-page .site-nav a[aria-current] { text-decoration-color: var(--gold); }
.casino-page .nav-toggle { color: var(--paper-light); }
.casino-page .nav-toggle:hover { background: rgba(244, 238, 220, 0.08); }

@media (max-width: 640px) {
  .casino-page .site-nav {
    background: rgba(12, 12, 10, 0.96);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.85);
  }
  .casino-page .site-nav a { border-bottom-color: rgba(228, 180, 0, 0.14); }
}

/* ---------- Gold buttons ---------- */
.casino-page .btn-gold {
  color: #201800;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 24px -10px rgba(228, 180, 0, 0.6);
  font-weight: 650;
}
.casino-page .btn-gold:hover { filter: brightness(1.06); box-shadow: 0 12px 30px -10px rgba(228, 180, 0, 0.75); }
.casino-page .btn-ghost-gold {
  color: var(--gold-bright);
  background: transparent;
  border: 1.5px solid rgba(228, 180, 0, 0.5);
  transition: transform 100ms ease-out, background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.casino-page .btn-ghost-gold:hover {
  background: rgba(228, 180, 0, 0.1);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- Hero ---------- */
.casino-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(228, 180, 0, 0.14), transparent 55%),
    linear-gradient(to bottom, #0b0b09, #050504 60%);
  text-align: center;
}
.bokeh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* Static gold shimmer across the top — the fallback if canvas/JS is off */
.casino-hero-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  z-index: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(247, 215, 116, 0.9), transparent 60%),
    radial-gradient(2px 2px at 70% 20%, rgba(247, 215, 116, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 45% 45%, rgba(228, 180, 0, 0.6), transparent 60%),
    radial-gradient(2px 2px at 85% 40%, rgba(247, 215, 116, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 55%, rgba(228, 180, 0, 0.5), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.suits { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.suit {
  position: absolute;
  color: rgba(228, 180, 0, 0.14);
  font-size: clamp(3rem, 8vw, 7rem);
  will-change: transform;
}
.suit-1 { top: 22%; left: 8%; }
.suit-2 { top: 62%; left: 14%; color: rgba(247, 215, 116, 0.1); }
.suit-3 { top: 30%; right: 10%; }
.suit-4 { top: 66%; right: 8%; color: rgba(247, 215, 116, 0.1); }

.casino-hero-inner {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  max-width: 60rem;
}

.casino-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 1.5rem;
}

/* Neon-script "Save the Date" with layered gold glow */
.script-glow {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 0.9;
  color: var(--gold-bright);
  margin: 0 0 0.3rem;
  text-shadow:
    0 0 8px rgba(247, 215, 116, 0.9),
    0 0 22px rgba(228, 180, 0, 0.7),
    0 0 44px rgba(228, 180, 0, 0.45),
    0 0 80px rgba(228, 180, 0, 0.3);
}

.casino-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #FBE9BE, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.casino-tagline {
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  color: var(--paper-light);
  margin: 0 auto 2rem;
  max-width: 34rem;
  line-height: 1.5;
}
.casino-tagline em { color: var(--gold-bright); font-style: italic; }

.casino-when {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--paper-light);
  margin-bottom: 2.5rem;
}
.casino-dot { color: var(--gold); font-size: 0.6em; }

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(0.4rem, 1.5vw, 1.1rem);
  margin: 0 auto 2.75rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 18px;
  background: rgba(228, 180, 0, 0.05);
  border: 1px solid rgba(228, 180, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(3rem, 10vw, 4.5rem); }
.cd-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--paper-muted);
  margin-top: 0.6rem;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: rgba(228, 180, 0, 0.4);
  line-height: 1;
  padding-top: 0.1em;
}

.casino-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.casino-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(228, 180, 0, 0.4);
  border-radius: 14px;
  z-index: 2;
}
.casino-scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scroll-bob 1.8s ease-in-out infinite;
}
@keyframes scroll-bob { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; transform: translate(-50%, 10px); } }

/* ---------- Sections ---------- */
.casino-section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.casino-section-alt { background: linear-gradient(to bottom, #0b0b09, #070706); }
.casino-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.casino-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.casino-h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--paper-light);
}

/* The three highs */
.highs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.high-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(228, 180, 0, 0.08), rgba(228, 180, 0, 0.02));
  border: 1px solid rgba(228, 180, 0, 0.22);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.4, 1), border-color 320ms ease, box-shadow 320ms ease;
}
.high-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 180, 0, 0.5);
  box-shadow: 0 24px 50px -24px rgba(228, 180, 0, 0.35);
}
.high-suit {
  display: block;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 18px rgba(228, 180, 0, 0.5);
}
.high-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
}
.high-card p { margin: 0; color: var(--paper-muted); line-height: 1.65; font-size: 0.98rem; }

/* Ticket */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 52rem;
  margin-inline: auto;
  border-radius: 22px;
  background: linear-gradient(150deg, #141210, #0c0b09);
  border: 1px solid rgba(228, 180, 0, 0.28);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(247, 215, 116, 0.1);
  overflow: hidden;
}
.ticket-body { padding: clamp(2rem, 5vw, 3rem); }
.ticket-grid { margin: 1.75rem 0 0; display: grid; gap: 0; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(228, 180, 0, 0.2);
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-row dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--gold-soft);
  align-self: center;
}
.ticket-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper-light);
  text-align: right;
}
.ticket-note { margin: 1.75rem 0 0; color: var(--paper-muted); line-height: 1.6; font-size: 0.95rem; }

/* Perforated stub edge */
.ticket-perf {
  position: absolute;
  top: 0; bottom: 0;
  right: 12rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(228, 180, 0, 0.35) 0 8px, transparent 8px 16px);
}
.ticket-stub {
  width: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, rgba(228, 180, 0, 0.1), rgba(228, 180, 0, 0.03));
  text-align: center;
}
.stub-logo img { width: 3rem; height: auto; }
.stub-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stub-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--paper-muted); }

/* Why it matters */
.casino-why { background: radial-gradient(90% 120% at 50% 0%, rgba(228, 180, 0, 0.08), transparent 60%), #070706; }
.casino-why-inner { text-align: center; }
.casino-why-lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: var(--paper-light);
  margin: 1.5rem auto 2.25rem;
  max-width: 40rem;
}

/* Notify card */
.notify-card {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 22px;
  background: linear-gradient(150deg, #141210, #0b0a08);
  border: 1px solid rgba(228, 180, 0, 0.28);
  text-align: center;
}
.notify-sub { color: var(--paper-muted); line-height: 1.6; margin: 1rem auto 2rem; max-width: 32rem; }
.notify-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.casino-page .field label { color: var(--gold-soft); }
.casino-page .field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(228, 180, 0, 0.28);
  color: var(--paper-light);
}
.casino-page .field input::placeholder { color: rgba(244, 238, 220, 0.4); }
.casino-page .field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 180, 0, 0.18);
}
.notify-card .btn-block { margin-top: 1.25rem; }
.casino-page .form-status { color: var(--gold-bright); }

/* ---------- Hero entrance: self-playing CSS (never depends on JS to reveal) ----------
   Plays on load via the browser's own clock, so the hero can't get stuck hidden
   if GSAP is slow or absent. Reduced motion disables it below. */
.js .c-rise { animation: c-rise 900ms cubic-bezier(0.25, 1, 0.4, 1) backwards; }
.js .c-rise:nth-child(2) { animation-delay: 90ms; }
.js .c-rise:nth-child(3) { animation-delay: 180ms; }
.js .c-rise:nth-child(4) { animation-delay: 270ms; }
.js .c-rise:nth-child(5) { animation-delay: 360ms; }
.js .c-rise:nth-child(6) { animation-delay: 450ms; }
.js .c-rise:nth-child(7) { animation-delay: 540ms; }
@keyframes c-rise {
  from { opacity: 0; transform: translateY(24px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .highs { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-perf { display: none; }
  .ticket-stub {
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.9rem;
    border-top: 1px dashed rgba(228, 180, 0, 0.3);
  }
  .notify-row { grid-template-columns: 1fr; }
  .countdown { gap: 0.2rem; padding: 1rem; }
  .cd-sep { display: none; }
  .cd-unit { min-width: 3.4rem; }
}

/* ---------- Reduced motion / transparency ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .c-rise { animation: none; }
  .casino-scroll-hint span { animation: none; opacity: 1; }
  .high-card { transition: none; }
  .high-card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .casino-page .site-header { background: #0a0a08; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .countdown { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(228, 180, 0, 0.08); }
}
