/* GTAVIMapGuide.com: Coming Soon page styles.
   Colours and sizing live in the custom properties below. */

:root {
  --bg: #05050a;
  --text: #ffffff;
  --text-soft: #b9bed6;
  --text-label: #a9afca;
  --separator: #8f5cf0;
  --grad-pink: #ff4fd2;
  --grad-purple: #9b6bff;
  --grad-blue: #44a2ff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient glow near the bottom of the viewport (pure CSS, no images) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 36% at 50% 114%, rgba(80, 72, 255, 0.6), rgba(80, 72, 255, 0) 70%),
    radial-gradient(45% 30% at 16% 112%, rgba(165, 45, 215, 0.5), rgba(165, 45, 215, 0) 70%),
    radial-gradient(42% 28% at 86% 112%, rgba(45, 115, 255, 0.4), rgba(45, 115, 255, 0) 70%),
    linear-gradient(to top, rgba(60, 40, 160, 0.2), rgba(60, 40, 160, 0) 24%);
}

.page {
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Original typographic wordmark (not an official Rockstar Games asset) */
.wordmark {
  margin: 0 0 clamp(1.25rem, 3.2vh, 2.25rem);
  font-size: clamp(3rem, min(1.6rem + 7vw, 24vh), 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.wordmark__vi {
  color: var(--grad-purple);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark__vi {
    background: linear-gradient(180deg, var(--grad-pink) 0%, var(--grad-purple) 55%, var(--grad-blue) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 1.25rem rgba(155, 107, 255, 0.35));
  }
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.title__eyebrow {
  --ls: 0.5em;
  padding-left: var(--ls); /* offsets trailing letter-spacing so the text stays optically centred */
  font-size: clamp(0.7rem, 0.62rem + 0.38vw, 0.95rem);
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: #dfe2f3;
}

.title__headline {
  --ls: 0.42em;
  margin-top: clamp(0.5rem, 1.6vh, 1rem);
  padding-left: var(--ls);
  font-size: clamp(1.35rem, 0.9rem + 2.4vw, 3.1rem);
  font-weight: 300;
  letter-spacing: var(--ls);
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.description {
  max-width: 36rem;
  margin: clamp(1rem, 2.6vh, 1.75rem) 0 0;
  font-size: clamp(0.95rem, 0.86rem + 0.4vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  text-wrap: balance;
}

/* Countdown: hidden by CSS unless a valid target is configured, so there is no flash or layout shift */
.countdown {
  width: 100%;
  max-width: 44rem;
  margin-top: clamp(2rem, 6vh, 3.5rem);
}

.countdown:not([data-target]),
.countdown[data-target=""],
.countdown[data-state="unset"],
.countdown[data-state="invalid"] {
  display: none;
}

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.5rem);
}

.unit {
  flex: 1 1 0;
  min-width: 0;
  max-width: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unit__value {
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.unit__label {
  --ls: 0.18em;
  margin-top: 0.4rem;
  padding-left: var(--ls);
  font-size: clamp(0.6rem, 0.55rem + 0.25vw, 0.8rem);
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--text-label);
}

.countdown__sep {
  flex: none;
  width: 1px;
  height: clamp(2rem, 1rem + 2.6vw, 3.25rem);
  background: linear-gradient(180deg, var(--separator), rgba(143, 92, 240, 0.55));
}

/* Short purple-to-blue accent line */
.accent {
  width: clamp(4.5rem, 8vw, 5.8rem);
  height: 3px;
  margin-top: clamp(1.75rem, 5vh, 3.25rem);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-pink), var(--grad-purple) 50%, var(--grad-blue));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Very narrow phones */
@media (max-width: 380px) {
  .unit__label {
    --ls: 0.1em;
  }
  .title__eyebrow {
    --ls: 0.38em;
  }
}

/* Phones in landscape / very short viewports */
@media (max-height: 520px) {
  body {
    padding-block: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-bottom));
  }
  .wordmark {
    margin-bottom: 0.75rem;
  }
  .description {
    margin-top: 0.75rem;
  }
  .countdown {
    margin-top: 1.25rem;
  }
  .accent {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .wordmark__vi {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
    filter: none;
  }
  .accent,
  .countdown__sep {
    background: CanvasText;
  }
}
