:root {
  /* GTA VI logo gradient stops */
  --vi-purple: #3e0058;
  --vi-blue:   #3d50e3;
  --vi-pink:   #ff48a4;
  --vi-orange:#ffb040;
  --vi-yellow:#ffe229;
}

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(
    135deg,
    var(--vi-purple) 0%,
    var(--vi-blue)   25%,
    var(--vi-pink)   50%,
    var(--vi-orange) 75%,
    var(--vi-yellow) 100%
  );

  font-family: 'Oswald', sans-serif;
  color: #fff;
}

/* palm tree behind with gentle sway */
body::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: url('palm-silhouette.png') bottom center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  animation: sway 30s ease-in-out infinite alternate;
}

/* birds silhouette at top, flying across */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 25%;
  background: url('birds-silhouette.png') top center / contain no-repeat;
  opacity: 0.15;
  pointer-events: none;
  animation: fly 25s linear infinite;
}

/* heading in solid white */
h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 8vw, 3rem);
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-bottom: 1rem;
}

/* thicker, clearer progress bar */
#progress {
  width: 90%;
  max-width: 360px;
  height: 14px;
  background: rgba(255,255,255,0.3);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 1rem;
}
#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--vi-blue), var(--vi-pink));
  transition: width 1s linear;
}

/* countdown box */
#countdown {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 360px;
  display: flex;
  justify-content: space-between;
  font-size: clamp(1rem, 6vw, 2rem);
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  padding: clamp(1rem,4vw,1.5rem) clamp(1.5rem,5vw,2rem);
  border-radius: 8px;
  border: 2px solid var(--vi-pink);
}

/* hover-to-grow on digits */
#countdown span {
  flex: 1;
  text-align: center;
  background: linear-gradient(to right, var(--vi-orange), var(--vi-yellow));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: transform 0.2s ease;
}
#countdown span:hover {
  transform: scale(1.2);
  cursor: default;
}

/* GTA VI Trailer link styling */
.video-link {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 480px;
  margin: 2rem auto 0;
  text-align: center;
}
.video-link img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.video-link p {
  margin-top: 0.5rem;
  font-size: clamp(1rem,4vw,1.25rem);
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.6);
}

/* Share button styling */
#share-btn {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  font-size: clamp(1rem,4vw,1.25rem);
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#share-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* footer credit */
.footer {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}
.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* very small screen tweaks */
@media (max-width: 360px) {
  h1 {
    font-size: clamp(1.6rem, 10vw, 2.5rem);
  }
  #countdown {
    padding: 1rem;
  }
}

/* background animations */
@keyframes sway {
  from { background-position: 50% 80%; }
  to   { background-position: 60% 75%; }
}
@keyframes fly {
  from { transform: translateX(-20%); }
  to   { transform: translateX(120%); }
}
