/* PvtyGames Landing Styles */

:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --text: #e9eefb;
  --muted: #a9b1c6;
  --primary: #6ee7ff;
  --primary-2: #7c3aed;
  --accent: #00ffa3;
  --error: #ff4d4f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% -10%, #171b2c 0%, var(--bg) 55%), var(--bg);
  overflow: hidden; /* no scroll */
}

/* Intro: hide non-title content initially */
.intro-hidden .tagline,
.intro-hidden .countdown,
.intro-hidden .actions,
.intro-hidden .footer {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  will-change: opacity, transform;
}

.reveal-in {
  animation: revealIn .9s cubic-bezier(.2,.8,.2,1) forwards;
  will-change: opacity, transform;
}

/* Ensure reveal can override intro-hidden without removing the class first */
.intro-hidden .reveal-in { opacity: 1; transform: translateY(0); pointer-events: auto; }

@keyframes revealIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.bg-image {
  position: fixed;
  inset: 0;
  background-image: url('./media/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .88;
  filter: saturate(0.9) contrast(1.05) brightness(0.9);
  z-index: -3;
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle at 10% 10%, #ffffff0a 0 40%, transparent 41%),
    radial-gradient(circle at 90% 30%, #7c3aed12 0 35%, transparent 36%),
    radial-gradient(circle at 30% 80%, #00ffa30f 0 30%, transparent 31%);
  mix-blend-mode: screen;
}

.accent-canvas {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  filter: blur(20px) saturate(140%);
  opacity: .35;
}

/* Black cover for initial splash, slides away upwards */
.splash-cover { position: fixed; inset: 0; background: #000; z-index: -1; transform: translateY(0); transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.splash-cover.up { transform: translateY(-100%); }
.splash-slice { position: fixed; inset: 0; z-index: -1; transform: translateY(0); transition: transform 820ms cubic-bezier(.2,.8,.2,1); mix-blend-mode: screen; opacity: .65; }
.slice2 { background: linear-gradient(180deg, #2a1038, #120918); }
.slice3 { background: linear-gradient(180deg, #0a1a2e, #070b14); }
.splash-slice.up { transform: translateY(-100%); }

.cover {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 24px;
  gap: 18px;
}

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

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

.title {
  margin: 0;
  font-size: clamp(36px, 5.8vw, 92px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 0 10px 40px #00000080;
  position: relative;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* SVG title container */
.svg-title { width: min(90vw, 1000px); height: clamp(84px, 12vw, 160px); margin: 6px auto 0; position: relative; overflow: visible; }
.svg-title svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 40px #0008); overflow: visible; }
.svg-title path { fill: none; stroke: url(#title-grad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-title .stroke-2 { stroke: white; stroke-width: 2; opacity: .90; }
.svg-title .stroke-3 { stroke: white; stroke-width: 10; opacity: .08; }

/* Splash state: center the title absolutely on screen */
.splash .title {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Fallback gradient text if SVG fails */
.title-fallback {
  display: inline-block;
  background: linear-gradient(180deg, #fff, #cbd5e1 65%, #a3b0c5);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Hide fallback text only after SVG init */
.title.svg-ready .title-line { opacity: 0; }

/* Title shine handled within SVG via masked rect animation (see script.js) */

@keyframes shine {
  0% { left: -30%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes spark {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  50% { transform: scale(1.4) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.tagline {
  margin: 10px 0 0;
  font-size: clamp(14px, 1.6vw, 20px);
  color: var(--muted);
}

.countdown {
  display: grid; gap: 8px; text-align: center;
}
.count-wrap { display: inline-flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: #0b0d1426; border: 1px solid #a9b1c60f; box-shadow: inset 0 1px 0 #ffffff12; backdrop-filter: blur(12px); }
.sep { opacity: .35; font-weight: 600; }
.count { display: grid; justify-items: center; gap: 2px; min-width: 86px; }
.count span { font-variant-numeric: tabular-nums; font-size: clamp(28px, 4.5vw, 54px); font-weight: 800; letter-spacing: .03em; }
.count label { text-transform: uppercase; font-size: 12px; letter-spacing: .18em; color: #c0c7db; opacity: .8; }
.release-note { margin: 0; font-size: 12px; letter-spacing: .12em; color: #9aa3ba; opacity: .9; }

.actions { display: flex; gap: 14px; }
.button { appearance: none; border: 0; cursor: pointer; text-decoration: none; user-select: none; position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 14px 18px; border-radius: 12px; font-weight: 700; letter-spacing: .02em; }
.button.primary { color: #0b0d14; background: linear-gradient(180deg, #f1c2f8, #f89bf3 80%); box-shadow: 0 10px 30px #36c1f344, inset 0 1px 0 #ffffffb0; }
.button.ghost { color: var(--text); background: #0b0d1426; border: 2px solid #cd81cd6e; box-shadow: inset 0 1px 0 #ffffff12; }
.button.primary::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; background: conic-gradient(from 180deg at 50% 50%, #7c3aed, #00ffa3, #6ee7ff, #7c3aed); filter: blur(20px); opacity: .35; z-index: -1; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.footer { display: grid; gap: 8px; text-align: center; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; opacity: .9; }
.chip { font-size: 12px; color: #cbd5e1; background: #0b0d1426; border: 1px solid #a9b1c60f; padding: 8px 10px; border-radius: 999px; }
.disclaimer { margin: 0; font-size: 11px; color: #94a3b8; opacity: .8; }

/* Responsive niceties */
@media (max-width: 420px) {
  .count { min-width: 70px; }
  .count-wrap { gap: 10px; padding: 8px 10px; }
}


/* Extra small phones: tighten layout and scale components down */
@media (max-width: 380px), (max-height: 640px) {
  .cover { grid-template-rows: auto auto auto auto; padding: 14px; gap: 10px; }
  .svg-title { width: min(94vw, 860px); height: clamp(56px, 16vw, 120px); }
  .tagline { font-size: clamp(12px, 3.2vw, 16px); }
  .countdown { gap: 6px; }
  .count-wrap { gap: 10px; padding: 8px 10px; }
  .count { min-width: 64px; }
  .count span { font-size: clamp(22px, 8vw, 42px); }
  .count label { font-size: 10px; letter-spacing: .14em; }
  .actions .button { padding: 10px 12px; font-size: 14px; }
  .chip { font-size: 11px; padding: 6px 8px; }
  .disclaimer { font-size: 10px; }
}

/* Extremely small height: hide non-essential flourishes to prevent clipping */
@media (max-height: 520px) {
  .chips { display: none; }
  .release-note { display: none; }
}


/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 9999; pointer-events: none; }
.modal[aria-hidden="true"] { opacity: 0; }
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 6, 11, 0.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .28s ease; }
.modal[aria-hidden="false"] .modal-backdrop { opacity: 1; }
.modal-dialog { position: relative; width: min(92vw, 560px); border-radius: 16px; padding: 22px; background: linear-gradient(180deg, #200f20, #140b14); border: 1px solid #36203a; box-shadow: 0 30px 80px #000a; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s ease; }
.modal[aria-hidden="false"] .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 8px; right: 8px; background: transparent; color: #dfcbe1; border: 0; font-size: 20px; cursor: pointer; }
.modal-title { margin: 6px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.modal-sub { margin: 0 0 10px; color: #c6a9c2; }
.modal-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: #2a1229; border: 1px solid #47243e; color: #f3d5ec; text-decoration: none; font-weight: 600; }



