/* ==========================================================================
   My Santa — Mobile-First Christmas Advent Draw Styles
   ========================================================================== */

:root {
  --crimson: #d3222a;
  --crimson-deep: #9e1118;
  --burgundy: #6d0b11;
  --burgundy-dark: #2c0408;
  --gold: #f5c451;
  --gold-deep: #d49421;
  --cream: #fff7f7;
  --cream-card: #fff2f3;
  --pine: #195e3a;
  --white: #ffffff;
  --ink: #18181b;
  --muted: #52525b;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Berkshire Swash', 'Poppins', cursive;
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 45px rgba(153, 16, 22, 0.16);
  --shadow-gold: 0 10px 30px rgba(245, 196, 81, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--crimson);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Full-Screen Snowfall & Confetti Canvases
   -------------------------------------------------------------------------- */
#snowCanvas,
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#snowCanvas {
  z-index: 5;
}

#confettiCanvas {
  z-index: 90;
}

/* --------------------------------------------------------------------------
   Sticky Top Navigation
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(162, 16, 23, 0.86) 0%, rgba(162, 16, 23, 0) 100%);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}

.topbar.scrolled {
  background: rgba(122, 13, 20, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.brand {
  text-decoration: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  font-family: var(--font-script);
  font-size: 1.45rem;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.nav-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(74, 6, 11, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(45, 4, 8, 0.22);
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-nav-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%);
  color: #a6131a;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(35, 3, 6, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.btn-nav-signup:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 20px rgba(35, 3, 6, 0.28);
}

.btn-nav-signup:active,
.btn-nav-login:active {
  transform: scale(0.96);
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(245, 196, 81, 0.55);
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.member-ticket {
  color: var(--gold);
  letter-spacing: 0.4px;
}

.member-streak {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--white);
}

.btn-logout-mini {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero Section (Red-White Gradient + Realistic 3D Reindeer Stage)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 210, 214, 0.18) 0%, rgba(211, 34, 42, 0) 55%),
    linear-gradient(180deg, #b8111a 0%, #d3222a 42%, #ec757b 76%, #fff3f4 100%);
  padding: 78px 16px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 150, 0.22) 0%, rgba(201, 29, 36, 0) 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.orbit-node {
  animation: orbitFloat 5.5s ease-in-out infinite;
  transform-origin: center;
}

.orbit-node-2 {
  animation-delay: -1.8s;
}

.orbit-node-3 {
  animation-delay: -3.1s;
}

.orbit-node-4 {
  animation-delay: -4.2s;
}

@keyframes orbitFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-9px);
  }
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1120px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.hero-title-stack {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.95); */
  color: #18181b;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(68, 6, 10, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-sb-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(68, 6, 10, 0.32);
}

.hero-sb-brand img {
  height: 20px;
  width: auto;
  display: block;
}

.hero-display-title {
  position: relative;
  z-index: 3;
  margin: 0 0 -38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22em;
  font-family: var(--font-script);
  font-size: clamp(3.15rem, 13.5vw, 8.6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 10px 30px rgba(82, 5, 10, 0.35);
  user-select: none;
  text-align: center;
}

.hero-badge-left {
  display: none;
}

.hero-copy-right {
  order: 3;
  max-width: 340px;
  text-align: center;
  margin-top: 14px;
  z-index: 6;
}

.hero-sub-kicker {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff3c4;
  text-shadow: 0 2px 10px rgba(82, 5, 10, 0.28);
}

.hero-sub-body {
  margin: 0 0 10px;
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(82, 5, 10, 0.22);
}

.hero-text-link {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-text-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Santa Centerpiece */
.reindeer-stage {
  position: relative;
  order: 2;
  width: min(88vw, 410px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 4;
}

.reindeer-aura {
  position: absolute;
  inset: 8% 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.42) 0%, rgba(211, 34, 42, 0) 70%);
  filter: blur(14px);
  animation: auraPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes auraPulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.07);
    opacity: 0.95;
  }
}

.reindeer-orbit-ring-3d {
  position: absolute;
  inset: 6% -6%;
  z-index: 6;
  pointer-events: none;
  transform-style: preserve-3d;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.36);
  transform: rotateX(68deg) rotateY(-12deg);
  animation: orbitRingSpin 14s linear infinite;
}

@keyframes orbitRingSpin {
  0% {
    transform: rotateX(68deg) rotateY(-12deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(68deg) rotateY(-12deg) rotateZ(360deg);
  }
}

.orb-badge {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(105, 8, 14, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transform: rotateX(-68deg);
}

.orb-a {
  top: -17px;
  left: 50%;
  margin-left: -17px;
}

.orb-b {
  bottom: 14%;
  left: 4%;
}

.orb-c {
  bottom: 14%;
  right: 4%;
}

.reindeer-card-3d {
  position: relative;
  z-index: 2;
  width: 100%;
}

.reindeer-portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  /* Soft bottom fade so Santa's lower edge blends smoothly into the hero */
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  animation: reindeerFloat3D 4.8s ease-in-out infinite;
  /* filter: drop-shadow(0 26px 40px rgba(85, 6, 12, 0.36)); */
}

@keyframes reindeerFloat3D {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.015);
  }
}

.reindeer-sparkles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 1.1rem;
  animation: twinkle 2.8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(245, 196, 81, 0.9);
}

.s1 {
  top: 18%;
  left: 16%;
  animation-delay: 0s;
}

.s2 {
  top: 24%;
  right: 15%;
  animation-delay: 0.7s;
  font-size: 1.3rem;
}

.s3 {
  top: 52%;
  left: 8%;
  animation-delay: 1.4s;
}

.s4 {
  top: 48%;
  right: 10%;
  animation-delay: 2.1s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.75) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(22deg);
  }
}

.hero-cta-anchor {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: max-content;
}

.btn-hero-cta {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--white);
  color: var(--crimson-deep);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.8vw, 1.18rem);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(55, 3, 8, 0.42), 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.btn-hero-cta:hover {
  box-shadow: 0 18px 40px rgba(55, 3, 8, 0.5), 0 0 0 8px rgba(245, 196, 81, 0.28);
}

.hero-social-strip {
  position: relative;
  z-index: 6;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 780px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(211, 34, 42, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  color: #7f1d1d;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(153, 16, 22, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: liveDot 1.8s infinite;
}

@keyframes liveDot {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* Desktop Hero Composition (Side Callouts matching Reference) */
@media (min-width: 860px) {
  .hero-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    column-gap: 18px;
  }

  .hero-title-stack {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-display-title {
    margin-bottom: -74px;
    gap: 0.55em;
  }

  .hero-badge-left {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin-right: 12px;
  }

  .ring-badge {
    width: 102px;
    height: 102px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    background: rgba(122, 13, 20, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.25;
    transform: rotate(-8deg);
    backdrop-filter: blur(4px);
  }

  .reindeer-stage {
    grid-column: 2;
    grid-row: 2;
    width: 440px;
  }

  .hero-copy-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    margin-top: 0;
    margin-left: 10px;
  }
}

.follow-section {
  position: relative;
  z-index: 6;
  padding: 38px 16px;
  background: #fff3f4;
  color: #2c0408;
}

.follow-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(211, 34, 42, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff8f1 100%);
  box-shadow: 0 12px 30px rgba(109, 11, 17, 0.08);
  text-align: center;
}

.follow-kicker {
  margin: 0 0 5px;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.follow-inner h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.follow-inner > p:not(.follow-kicker) {
  max-width: 660px;
  margin: 0 auto;
  color: #52525b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.follow-inner p a {
  color: #9e1118;
  font-weight: 700;
}

.follow-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: #9e1118;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.follow-link:hover {
  background: #6d0b11;
}

.follow-link:focus-visible {
  outline: 3px solid #d49421;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Screen 2: 25-Day Advent Calendar Section (Red & White Gradient)
   -------------------------------------------------------------------------- */
.calendar-section {
  position: relative;
  z-index: 6;
  background: linear-gradient(180deg, #fff3f4 0%, #ffffff 26%, #ffe6e9 70%, #ffd0d6 100%);
  color: #18181b;
  padding: 56px 14px 96px;
  border-top: 1px solid rgba(211, 34, 42, 0.1);
}

.calendar-container {
  max-width: 980px;
  margin: 0 auto;
}

.calendar-header {
  text-align: center;
  margin-bottom: 24px;
}

.cal-kicker {
  display: inline-block;
  font-family: var(--font-script);
  color: #c91d24;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.cal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #18181b;
}

.cal-subtitle {
  margin: 0 auto;
  max-width: 560px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: #52525b;
}

/* Dashboard Strip (Countdown + Ticket) */
.dashboard-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 700px) {
  .dashboard-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid rgba(211, 34, 42, 0.16);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(153, 16, 22, 0.08);
}

.dash-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c91d24;
  font-weight: 800;
  margin-bottom: 10px;
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-box {
  flex: 1;
  background: linear-gradient(180deg, #fff6f6 0%, #ffe4e7 100%);
  border: 1px solid rgba(211, 34, 42, 0.2);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}

.cd-box span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #18181b;
  line-height: 1.1;
}

.cd-box small {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9e1118;
  letter-spacing: 0.08em;
}

.cd-sep {
  font-size: 1.3rem;
  font-weight: 800;
  color: #d3222a;
}

.dash-hint {
  margin-top: 9px;
  font-size: 0.79rem;
  font-weight: 500;
  color: #52525b;
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-cta-msg {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3f3f46;
  line-height: 1.45;
}

.ticket-badge {
  display: flex;
  flex-direction: column;
}

.ticket-code {
  font-size: 1.3rem;
  font-weight: 800;
  color: #c91d24;
  letter-spacing: 0.03em;
}

.ticket-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3f3f46;
}

.streak-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.streak-pill {
  background: rgba(211, 34, 42, 0.1);
  border: 1px solid rgba(211, 34, 42, 0.25);
  color: #b91c1c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
}

.btn-gold-sm {
  border: none;
  background: linear-gradient(135deg, #e52932 0%, #b5141c 55%, #8a0c12 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.83rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(181, 20, 28, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold-sm:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 24px rgba(181, 20, 28, 0.36);
}

/* Post-12PM Action Banner */
.draw-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #ffe2e5 0%, #ffffff 55%, #ffe6e9 100%);
  border: 1.5px solid rgba(211, 34, 42, 0.38);
  box-shadow: 0 12px 28px rgba(181, 20, 28, 0.14);
}

.draw-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.draw-banner-icon {
  font-size: 1.7rem;
}

.draw-banner-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #881118;
}

.draw-banner-content p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #52525b;
}

/* --------------------------------------------------------------------------
   25-Day 3D Advent Grid (Video Reference Inspired)
   -------------------------------------------------------------------------- */
.advent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

@media (min-width: 600px) {
  .advent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 880px) {
  .advent-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
}

.advent-cell {
  position: relative;
  aspect-ratio: 1 / 1.1;
  perspective: 950px;
  cursor: pointer;
  user-select: none;
}

.advent-activation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.advent-activation:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Day 25 Grand Finale spans wider on mobile for dramatic finish */
.advent-slot.day-25 {
  grid-column: span 3;
}

.advent-cell.day-25 {
  aspect-ratio: 2.6 / 1;
}

@media (min-width: 600px) {
  .advent-slot.day-25 {
    grid-column: span 4;
  }

  .advent-cell.day-25 {
    aspect-ratio: 3.6 / 1;
  }
}

@media (min-width: 880px) {
  .advent-slot.day-25 {
    grid-column: span 1;
  }

  .advent-cell.day-25 {
    aspect-ratio: 1 / 1.1;
  }
}

.advent-result {
  margin-top: 6px;
  color: #741016;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Inside glowing gift chamber (revealed behind swinging 3D door) */
.advent-interior {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 35%, #fff9e8 0%, #f5d68e 100%);
  color: var(--burgundy-dark);
  border: 2px solid var(--gold);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 22px rgba(180, 110, 10, 0.25);
}

.gift-icon {
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

.interior-gift-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
}

.interior-title {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interior-tag {
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
}

.interior-sponsor,
.door-sponsor {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.advent-cell.is-open .interior-sponsor .sponsor-name-link {
  position: relative;
  z-index: 1;
}

.sponsor-name-link {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
}

.door-sponsor {
  color: #ffe4a0;
}

/* Hinged 3D Door Front */
.advent-door {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1.15, 0.36, 1);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.advent-cell.is-open .advent-door {
  transform: rotateY(-122deg);
  pointer-events: none;
}

.advent-cell.is-open .advent-door .sponsor-name-link {
  pointer-events: none;
}

.door-cover {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

@media (hover: hover) {
  .advent-cell:not(.is-open):hover .door-cover.has-sponsor {
    transform: rotateY(180deg);
  }
}

.advent-cell:not(.is-open):focus-within .door-cover.has-sponsor {
  transform: rotateY(180deg);
}

.door-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
}

.door-sponsor-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(155deg, #8b1218 0%, #5b080d 100%);
  border: 1.5px solid var(--gold);
  color: var(--cream);
  text-align: center;
  transform: rotateY(180deg);
}

.sponsor-back-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffe4a0;
}

.sponsor-back-name {
  display: block;
  min-height: 0;
  max-height: 75%;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.3vw, 1rem);
  line-height: 1.2;
}

.sponsor-back-name::-webkit-scrollbar {
  display: none;
}

.door-front {
  background: linear-gradient(155deg, #b81920 0%, #860d14 100%);
  border: 1.5px dashed rgba(255, 224, 160, 0.45);
  padding: 9px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-auto-rows: auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.door-back {
  background: linear-gradient(135deg, #ebd09b 0%, #d4aa5a 100%);
  transform: rotateY(180deg);
  border: 2px solid #f7e4b4;
}

.door-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.door-day-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
}

.door-status-chip {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-today {
  background: var(--gold);
  color: var(--burgundy-dark);
  animation: pulseBadge 1.5s infinite;
}

.chip-locked {
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.85);
}

.chip-past {
  background: rgba(25, 94, 58, 0.9);
  color: #dcfce7;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.door-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  font-size: 2.05rem;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s ease;
}

.door-sponsor-logo {
  width: 100%;
  height: 100%;
  /* max-width: 80px;
  max-height: 80px; */
  object-fit: contain;
  border-radius: 6px;
  padding: 3px;
}

.door-default-logo {
  object-fit: cover;
}

.door-illustration > svg {
  max-width: 100%;
  max-height: 100%;
}

.door-gift-teaser {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 245, 228, 0.88);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status styling */
.advent-cell.status-today .door-front,
.advent-cell.status-unlocked .door-front {
  background: linear-gradient(155deg, #de232c 0%, #a51118 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.advent-cell.status-today:hover .door-illustration {
  transform: scale(1.12) rotate(-4deg);
}

.advent-cell.status-locked .door-front {
  background: linear-gradient(155deg, #8b1218 0%, #5b080d 100%);
}

.advent-cell.status-past .door-front {
  background: linear-gradient(155deg, #741016 0%, #48070c 100%);
}

/* Physical Lock Jiggle Animation */
.advent-cell.shake-lock {
  animation: lockShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes lockShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px) rotate(-1.5deg);
  }

  40% {
    transform: translateX(5px) rotate(1.5deg);
  }

  60% {
    transform: translateX(-4px) rotate(-1deg);
  }

  80% {
    transform: translateX(4px) rotate(1deg);
  }
}

/* --------------------------------------------------------------------------
   Modals (Mobile-First Sheet / Centered Dialog)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(18, 2, 4, 0.74);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  animation: fadeIn 0.2s ease;
}

@media (min-width: 560px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92svh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% -8%, rgba(220, 38, 46, 0.2) 0%, rgba(220, 38, 46, 0) 56%),
    linear-gradient(180deg, #ffccd2 0%, #ffe6e9 26%, #fff9fa 58%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 26px 22px 24px;
  color: #18181b;
  box-shadow: 0 24px 60px rgba(45, 4, 9, 0.42);
  animation: modalPop 0.28s cubic-bezier(0.22, 1.15, 0.36, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201, 29, 36, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #52525b;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: #ffffff;
  color: #18181b;
}

.modal-top-emblem {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 4px;
}

.modal-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
}

.modal-lead {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.87rem;
  line-height: 1.48;
  color: var(--muted);
}

/* Auth Modal — Red Gradient Glass Card (Inspired by Clean Gradient Card) */
.modal-backdrop-auth {
  background: radial-gradient(circle at 50% 35%, rgba(201, 29, 36, 0.35), rgba(20, 3, 5, 0.72));
}

.modal-card.modal-auth {
  max-width: 410px;
  border-radius: 28px;
  padding: 28px 24px 26px;
  background:
    radial-gradient(circle at 50% -8%, rgba(220, 38, 46, 0.22) 0%, rgba(220, 38, 46, 0) 58%),
    linear-gradient(180deg, #ffccd2 0%, #ffe6e9 26%, #fff9fa 56%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #18181b;
  box-shadow:
    0 24px 60px rgba(45, 4, 9, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modal-close-light {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 29, 36, 0.14);
  color: #52525b;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close-light:hover {
  background: #ffffff;
  color: #18181b;
}

.auth-icon-tile {
  width: 54px;
  height: 54px;
  margin: 2px auto 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 29, 36, 0.12);
  color: #c91d24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(153, 16, 22, 0.14);
}

.auth-title-dark {
  font-family: var(--font-ui);
  font-size: 1.38rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-lead-dark {
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.auth-tabs-light {
  background: rgba(201, 29, 36, 0.08);
  border: 1px solid rgba(201, 29, 36, 0.12);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 14px;
}

.auth-tabs-light .auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7f1d1d;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.auth-tabs-light .auth-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.55);
  color: #b91c1c;
}

.auth-tabs-light .auth-tab.active {
  background: linear-gradient(135deg, #df262f 0%, #a51118 100%);
  color: #ffffff;
  box-shadow:
    0 6px 16px rgba(185, 28, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-notice-light {
  background: rgba(254, 226, 226, 0.72);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.register-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9px;
}

.input-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-pill-wrap:focus-within {
  background: #ffffff;
  border-color: rgba(201, 29, 36, 0.55);
  box-shadow: 0 0 0 3.5px rgba(201, 29, 36, 0.12);
}

.input-leading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 13px;
  color: #9ca3af;
  flex-shrink: 0;
}

.input-pill-wrap:focus-within .input-leading-icon {
  color: #c91d24;
}

.input-pill-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  color: #111827;
  padding: 12px 12px 12px 9px;
  font-family: var(--font-ui);
  font-size: 0.89rem;
  font-weight: 500;
  outline: none;
}

.input-pill-wrap input::placeholder {
  color: #9ca3af;
}

.input-trailing-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 0 12px 0 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.input-trailing-btn:hover {
  color: #4b5563;
}

.form-error {
  margin: 0;
  color: #fecaca;
  background: rgba(185, 28, 28, 0.45);
  border: 1px solid rgba(252, 165, 165, 0.45);
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.81rem;
}

.form-error-light {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.btn-auth-gradient {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #e52932 0%, #b5141c 52%, #7e0a10 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(181, 20, 28, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-auth-gradient:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow:
    0 16px 32px rgba(181, 20, 28, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.btn-auth-gradient:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-auth-gradient:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-auth-shimmer {
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: left 0.55s ease;
}

.btn-auth-gradient:hover .btn-auth-shimmer {
  left: 145%;
}

.btn-auth-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-switch-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

.auth-switch-link {
  border: none;
  background: none;
  padding: 2px 4px;
  color: #b91c1c;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
  color: #9ca3af;
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed #e5e7eb;
}

.btn-google-pill {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-google-pill:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.btn-submit-festive {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #e52932 0%, #b5141c 52%, #7e0a10 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(181, 20, 28, 0.32);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-festive:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(181, 20, 28, 0.4);
}

.btn-submit-festive:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Gift Spotlight & Winner Modals */
.gift-spotlight {
  text-align: center;
}

.gift-sponsor {
  margin: 0 0 10px;
  color: #881118;
  font-size: 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gift-day-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(211, 34, 42, 0.1);
  border: 1px solid rgba(211, 34, 42, 0.24);
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gift-icon-hero {
  display: block;
  width: 88px;
  height: 88px;
  margin: 4px auto 8px;
  animation: giftBounce 2.2s ease-in-out infinite;
}

.gift-product-image {
  display: block;
  width: min(200px, 100%);
  height: 160px;
  margin: 4px auto 8px;
  object-fit: contain;
  border-radius: 12px;
}

@keyframes giftBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.06);
  }
}

.gift-value-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(211, 34, 42, 0.08);
  color: #881118;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.gift-draw-status-box {
  background: #fff4f5;
  border: 1px solid rgba(211, 34, 42, 0.18);
  color: #3f3f46;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 14px;
}

.sleigh-bell-anim {
  text-align: center;
  font-size: 2.8rem;
  animation: bellRing 1.4s ease-in-out infinite;
}

@keyframes bellRing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(15deg);
  }

  40% {
    transform: rotate(-13deg);
  }

  60% {
    transform: rotate(10deg);
  }

  80% {
    transform: rotate(-8deg);
  }
}

.draw-preview-prize {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff4f5;
  border: 1px solid rgba(211, 34, 42, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.prize-gift-icon {
  width: 42px;
  height: 42px;
}

.draw-preview-prize strong {
  display: block;
  font-size: 0.95rem;
  color: #18181b;
}

.draw-preview-prize small {
  color: #52525b;
  font-size: 0.78rem;
}

.btn-gold-pulse {
  animation: pulseBadge 1.7s ease-in-out infinite;
}

/* Suspense Drumroll Spinner */
.suspense-stage {
  text-align: center;
  padding: 14px 0;
}

.spinner-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(211, 34, 42, 0.18);
  border-top-color: #d3222a;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinRing 0.85s linear infinite;
}

.spinner-core {
  font-size: 2.2rem;
  animation: spinReverse 0.85s linear infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

.rolling-ticket {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 8px 18px;
  border-radius: 12px;
  background: #fff2f3;
  border: 1.5px solid #d3222a;
  color: #b91c1c;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Winner Celebration */
.modal-backdrop.winner-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: none;
  padding: 12px;
  animation: fadeIn 0.45s ease both;
}

.modal-card.modal-winner,
.modal-card.modal-winner.is-user-winner {
  max-width: 480px;
  max-height: calc(100svh - 24px);
  padding: 42px 20px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  animation: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-winner::-webkit-scrollbar {
  display: none;
}

.modal-winner .modal-close {
  position: sticky;
  display: block;
  margin: -28px 0 0 auto;
  top: 0;
  z-index: 2;
  background: #28282d;
  border-color: #49494f;
  color: #fff;
}

.modal-winner .modal-title {
  color: #fff;
}

.modal-winner .modal-lead {
  color: #b7b2b5;
}

.modal-winner .gift-day-pill {
  margin-bottom: 8px;
  border-color: rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.1);
  color: #f5d894;
}

.winner-badge-entrance {
  width: min(70vw, 37svh, 300px);
  height: min(70vw, 37svh, 300px);
  min-width: 160px;
  min-height: 160px;
  margin: 8px auto 0;
  perspective: 900px;
  animation: winnerBadgeReveal 0.8s cubic-bezier(0.18, 1.45, 0.35, 1) both;
}

@keyframes winnerBadgeReveal {
  from {
    opacity: 0;
    transform: scale(0.45) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.winner-badge {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: grab;
  touch-action: pan-y;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 1.3, 0.35, 1);
}

.winner-badge.is-dragging {
  cursor: grabbing;
}

.winner-badge.is-dragging,
.winner-badge.is-auto-rotating {
  transition: none;
}

.winner-badge:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
}

.winner-badge-edge {
  position: absolute;
  inset: 0;
  border: 5px solid #a56c26;
  border-radius: 50%;
  background: #ba873e;
}

.winner-badge-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 5px solid #dfb55d;
  border-radius: 50%;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 3px #fff0bf, inset 0 0 0 8px #9f6b24, 0 15px 40px rgba(222, 164, 64, 0.25);
}

.winner-badge-front {
  transform: translateZ(7px);
  background: radial-gradient(circle at 35% 25%, #f9d881, #c17b2b 60%, #704017);
}

.winner-badge-rim {
  width: 78%;
  height: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #f7d988;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 28%, #e55345, #9e151b 70%, #65090e);
  box-shadow: inset 0 3px 14px rgba(42, 0, 0, 0.5), 0 2px 6px rgba(73, 35, 2, 0.5);
}

.winner-badge-kicker,
.winner-badge-day {
  color: #ffedb9;
  font-size: clamp(0.55rem, 2vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.winner-badge-icon {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(54, 4, 0, 0.4));
}

.winner-badge-back {
  gap: 5px;
  padding: 13%;
  transform: rotateY(180deg) translateZ(7px);
  background: radial-gradient(circle at 35% 25%, #fff0c1, #d5ab60 55%, #82551e);
  color: #40270b;
}

.winner-badge-back-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.winner-badge-back-name {
  max-width: 100%;
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.winner-badge-back-date {
  font-size: 0.7rem;
  font-weight: 700;
}

.winner-badge-back-star {
  font-size: 1.3rem;
  line-height: 1;
}

.winner-badge-hint {
  margin: 14px 0;
  color: #a9a2a3;
  font-size: 0.7rem;
}

#winnerResultStage {
  text-align: center;
}

.winner-card-panel {
  background: #181619;
  border: 1px solid #45352e;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 14px;
}

.winner-ticket-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e52932 0%, #991017 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.winner-person-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.winner-meta {
  font-size: 0.8rem;
  color: #c6bec0;
  margin-top: 2px;
}

.winner-prize-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #665043;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.94rem;
  color: #f9d88f;
}

.winner-prize-icon {
  width: 36px;
  height: 36px;
}

.tomorrow-hook {
  font-size: 0.82rem;
  color: #ddd4d1;
  background: #252024;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.winner-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 8px;
}

.winner-social-links a {
  color: #f9d88f;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .winner-backdrop,
  .winner-badge-entrance,
  .modal-winner .spinner-ring,
  .modal-winner .spinner-core {
    animation: none;
  }

  .winner-badge,
  .door-cover {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Santa Workshop Preview Dock
   -------------------------------------------------------------------------- */
.preview-dock {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.preview-toggle-pill {
  border: 1px solid rgba(245, 196, 81, 0.65);
  background: rgba(34, 4, 7, 0.92);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.preview-panel {
  width: min(92vw, 310px);
  background: rgba(30, 4, 7, 0.96);
  border: 1px solid rgba(245, 196, 81, 0.5);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.preview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--gold);
}

.preview-panel-head button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.preview-current-clock {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--muted);
}

.preview-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: pointer;
}

.pv-btn-gold {
  background: var(--gold);
  color: var(--burgundy-dark);
  border-color: var(--gold);
}

.pv-btn-outline {
  background: transparent;
  color: var(--muted);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(92vw, 420px);
  background: rgba(28, 4, 6, 0.94);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

/* SocialBureau Branding & Legal Footer */
.auth-legal-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.73rem;
  line-height: 1.45;
  color: #71717a;
}

.auth-legal-note a {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: none;
}

.auth-legal-note a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 6;
  background: linear-gradient(180deg, #ffd0d6 0%, #9e1118 28%, #5e080e 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 36px 16px 32px;
  text-align: center;
}

.site-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sb-footer-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  /* background: rgba(255, 255, 255, 0.96); */
  color: #18181b;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(45, 4, 8, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-footer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(45, 4, 8, 0.36);
}

.sb-footer-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.sb-footer-logo {
  height: 22px;
  width: auto;
  display: block;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
}

.footer-legal-links a {
  color: #fff3c4;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.76);
}
