:root {
  color-scheme: dark;
  --gta-pink: #ff1379;
  --gta-magenta: #e81177;
  --gta-orange: #ff5722;
  --gta-amber: #ff9e1b;
  --gta-yellow: #ffcf25;
  --gta-cyan: #00f0ff;
  --gta-violet: #2e0854;
  --gta-midnight: #0c0418;
  --gta-gradient: linear-gradient(135deg, #ff0f7b 0%, #ff4b2b 50%, #ff9a00 100%);
  --gta-text-gradient: linear-gradient(180deg, #ffffff 0%, #ff6da8 32%, #ff512f 64%, #f09819 100%);
  --font-display: "Syne", sans-serif;
  --font-condensed: "Bebas Neue", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

html, body {
  min-height: 100%;
  width: 100%;
}

body {
  background-color: var(--gta-midnight);
  color: #fff;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 32px 16px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   GTA 6 SUNSET BACKDROP (Pure Scenic Environment, No Persons)
   ========================================================= */
.gta-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Iconic multi-stop GTA 6 sunset gradient */
.sky-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #14052b 0%,
    #2c0b4d 22%,
    #580f5d 38%,
    #9e1b68 52%,
    #d82e5b 66%,
    #f2593b 80%,
    #ff982b 94%,
    #ffb443 100%
  );
}

/* Big Glowing Vice City Sun */
.sun-container {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(260px, 40vw, 520px);
  aspect-ratio: 1;
}

.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff7d6 0%, #ffcf40 35%, #ff5e36 80%, #d81b60 100%);
  box-shadow: 
    0 0 60px rgba(255, 177, 66, 0.8),
    0 0 120px rgba(255, 43, 112, 0.6),
    0 0 200px rgba(216, 27, 96, 0.4);
}

.sun-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 114, 58, 0.45) 0%, rgba(220, 38, 127, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  animation: sunPulse 6s ease-in-out infinite alternate;
}

@keyframes sunPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Distant Birds */
.birds-layer {
  position: absolute;
  top: 18%;
  left: 20%;
  width: 280px;
  height: 120px;
  opacity: 0.65;
}

.bird {
  position: absolute;
  fill: #220835;
  animation: birdDrift 20s linear infinite;
}

.bird-1 { width: 18px; top: 20px; left: 30px; animation-duration: 24s; }
.bird-2 { width: 14px; top: 45px; left: 90px; animation-duration: 28s; animation-delay: -6s; }
.bird-3 { width: 11px; top: 10px; left: 160px; animation-duration: 32s; animation-delay: -12s; }

@keyframes birdDrift {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(35px) translateY(-8px); }
  100% { transform: translateX(0) translateY(0); }
}

/* Distant Skyline Silhouettes (Buildings only, no characters) */
.city-skyline {
  position: absolute;
  bottom: 14%;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: #120424;
  clip-path: polygon(
    0 60%, 3% 60%, 3% 40%, 6% 40%, 6% 75%, 9% 75%, 9% 20%, 12% 20%, 12% 70%, 
    16% 70%, 16% 35%, 19% 35%, 19% 80%, 23% 80%, 23% 15%, 26% 15%, 26% 85%,
    30% 85%, 30% 50%, 33% 50%, 33% 30%, 36% 30%, 36% 75%, 41% 75%, 41% 10%, 43% 10%, 43% 70%,
    48% 70%, 48% 45%, 52% 45%, 52% 25%, 55% 25%, 55% 80%, 59% 80%, 59% 18%, 62% 18%, 62% 65%,
    67% 65%, 67% 38%, 71% 38%, 71% 85%, 75% 85%, 75% 28%, 78% 28%, 78% 60%,
    82% 60%, 82% 12%, 85% 12%, 85% 75%, 89% 75%, 89% 42%, 93% 42%, 93% 65%, 
    97% 65%, 97% 35%, 100% 35%, 100% 100%, 0 100%
  );
  opacity: 0.88;
}

/* Ocean & Horizon water shimmer */
.ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 16%;
  background: linear-gradient(180deg, #18052e 0%, #0c0217 100%);
  border-top: 1px solid rgba(255, 138, 43, 0.4);
}

.water-sheen {
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffaf38, #ff3377, transparent);
  box-shadow: 0 0 16px #ff7733;
}

.water-shimmer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 150, 60, 0.6);
  box-shadow: 0 0 10px rgba(255, 80, 130, 0.7);
}

.s1 { top: 22%; width: 38%; opacity: 0.7; }
.s2 { top: 48%; width: 55%; opacity: 0.5; }
.s3 { top: 75%; width: 70%; opacity: 0.3; }

/* Tropical Palm Silhouettes (Framing corners) */
.palm-silhouette {
  position: absolute;
  bottom: -20px;
  height: clamp(340px, 48vh, 680px);
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
}

.palm-left {
  left: -40px;
  transform: rotate(4deg);
}

.palm-right {
  right: -40px;
  transform: rotate(-4deg);
}

/* Ambient Canvas */
.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* =========================================================
   INVITATION CARD CONTAINER (Modern GTA 6 Neon Glass)
   ========================================================= */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  perspective: 1200px;
}

.card-wrapper {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.card {
  position: relative;
  background: rgba(14, 5, 28, 0.76);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 43, 115, 0.28);
  border-radius: 32px;
  padding: 42px 36px 34px;
  text-align: center;
  box-shadow: 
    0 30px 80px -10px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px -10px rgba(255, 19, 121, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff1379, #ff9e1b, transparent);
}

.card:hover {
  border-color: rgba(255, 115, 30, 0.5);
  box-shadow: 
    0 35px 90px -10px rgba(0, 0, 0, 0.9),
    0 0 60px -5px rgba(255, 19, 121, 0.45),
    0 0 30px rgba(255, 158, 27, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Card Topbar with GTA VI Tag */
.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe0eb;
  background: rgba(255, 19, 121, 0.16);
  border: 1px solid rgba(255, 19, 121, 0.4);
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(255, 19, 121, 0.25);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1379;
  box-shadow: 0 0 8px #ff1379, 0 0 16px #ff1379;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* GTA 6 VI Roman Numeral Emblem */
.gta-vi-symbol {
  font-family: var(--font-condensed);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ff1379 0%, #ff8300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 19, 121, 0.6));
}

/* Headline */
.hero-header {
  margin-bottom: 26px;
}

.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.gta-gradient-text {
  display: block;
  background: var(--gta-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 43, 112, 0.45));
}

.tagline {
  color: #d8cde3;
  font-size: 14px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* Metadata Chips */
.event-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.meta-item:hover {
  background: rgba(255, 19, 121, 0.12);
  border-color: rgba(255, 19, 121, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 19, 121, 0.2);
}

.meta-icon {
  width: 15px;
  height: 15px;
  color: var(--gta-orange);
}

/* Neon Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.timer-box {
  background: rgba(10, 3, 20, 0.78);
  border: 1px solid rgba(255, 19, 121, 0.25);
  border-radius: 18px;
  padding: 16px 6px 12px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timer-box:hover {
  border-color: var(--gta-amber);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(255, 87, 34, 0.4);
}

.timer-num {
  display: block;
  font-family: var(--font-condensed);
  font-size: clamp(30px, 5.2vw, 42px);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 19, 121, 0.4);
}

.timer-tag {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ff9e1b;
  margin-top: 4px;
}

/* Buttons */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  font-family: inherit;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gta-gradient);
  color: #ffffff;
  box-shadow: 0 8px 25px -3px rgba(255, 25, 120, 0.55);
  flex: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -2px rgba(255, 60, 40, 0.75);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gta-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 158, 27, 0.25);
}

.btn-icon {
  width: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gta-pink);
  transform: translateY(-2px);
}

.btn-icon .check-icon {
  display: none;
  color: #00f0ff;
}

.btn-icon.copied .copy-icon {
  display: none;
}

.btn-icon.copied .check-icon {
  display: block;
}

/* Bottom Interactive Chip */
.card-bottom {
  display: flex;
  justify-content: center;
}

.celebrate-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed rgba(255, 158, 27, 0.35);
  border-radius: 999px;
  padding: 6px 15px;
  color: #e5d7f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.celebrate-chip:hover {
  color: #fff;
  border-color: var(--gta-pink);
  background: rgba(255, 19, 121, 0.15);
  transform: scale(1.05);
}

.flame-icon {
  font-size: 13px;
  transition: transform 0.3s ease;
}

.celebrate-chip:hover .flame-icon {
  transform: rotate(20deg) scale(1.25);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  opacity: 0;
  pointer-events: none;
  background: rgba(20, 6, 36, 0.95);
  color: #fff;
  border: 1px solid var(--gta-pink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 19, 121, 0.4);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 580px) {
  .card {
    padding: 34px 20px 28px;
    border-radius: 26px;
  }

  .title {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 13px;
  }

  .actions {
    flex-wrap: wrap;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    flex: none;
  }

  .btn-icon {
    width: 100%;
  }

  .countdown {
    gap: 8px;
  }

  .timer-box {
    padding: 12px 4px 10px;
    border-radius: 14px;
  }

  .timer-num {
    font-size: 26px;
  }

  .palm-silhouette {
    height: 320px;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
