:root {
  --bg: #060b18;
  --bg2: #07132b;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff2f6d;
  --accent2: #4aa3ff;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: #020617;
  /* Hytale-inspired landscape gradient */
  background-image: 
    /* Vignette */
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.5) 100%),
    /* Sun/Light source top left */
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    /* Greenery/Hills at bottom */
    linear-gradient(0deg, rgba(22, 48, 26, 0.9) 0%, rgba(45, 90, 39, 0.4) 35%, transparent 50%),
    /* Mountains/Midground */
    linear-gradient(0deg, rgba(11, 24, 48, 0.9) 0%, rgba(32, 60, 100, 0.5) 50%, transparent 80%),
    /* Sky Gradient */
    linear-gradient(180deg, #0f3057 0%, #205e9e 50%, #63b3ed 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

@keyframes bg-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  min-height: 100svh;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(74, 163, 255, 0.85);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.container {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

.screen {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.screen__bg {
  position: absolute;
  inset: 0;
  /* Slight overlay to ensure text readability on landscape background */
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.screen__bg::before {
  content: none;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.screen__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-height: 100svh;
  padding: 56px 0;
}

.stack {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
}

.logos {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}

.logos__wrap {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  transition: transform 0.3s ease;
}

.logos__wrap:hover {
  transform: scale(1.05);
}

.logos__img {
  display: block;
  width: auto;
  height: clamp(92px, 11vw, 180px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  animation: float 6s ease-in-out infinite;
}

.logos__wrap:nth-child(3) .logos__img {
  animation-delay: 3s;
}

.logos__x {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
}

.title {
  margin: 24px 0 20px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.2;
  padding-bottom: 0.1em;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(255, 47, 109, 0.3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 163, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(74, 163, 255, 0.2);
}

.chip + .chip::before {
  content: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}

.btn--primary {
  border-color: rgba(255, 47, 109, 0.45);
  background: linear-gradient(135deg, rgba(255, 47, 109, 0.92), rgba(74, 163, 255, 0.78));
  box-shadow: 0 18px 40px rgba(255, 47, 109, 0.14);
}

.btn--primary:hover {
  background: linear-gradient(135deg, rgba(255, 47, 109, 0.98), rgba(74, 163, 255, 0.84));
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}


.quicklinks {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
  justify-content: center;
}

.quicklink {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 120px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.94);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quicklink:hover {
  transform: translateY(-5px);
}

.quicklink__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.quicklink:hover .quicklink__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(74, 163, 255, 0.2);
  color: #fff;
}

.quicklink__label {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.quicklink:hover .quicklink__label {
  color: #fff;
}

.countdown {
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.countdown__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.countdown__label { 
  color: var(--accent2); 
  font-size: 14px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  font-weight: 700;
}
.countdown__date { color: rgba(255, 255, 255, 0.92); font-weight: 700; }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(980px, 100%);
}

.timebox {
  padding: 20px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.timebox:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.timebox:not(:last-child)::after {
  content: none;
}

.timebox__value {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timebox__label {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown__status {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  min-height: 18px;
}

.legal--center {
  margin-top: 48px;
  text-align: center;
  max-width: none;
}


.legal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.legal p {
  margin: 0;
}

@media (max-width: 980px) {
  .screen {
    height: auto;
    min-height: 100svh;
    padding: 44px 0;
  }

  .screen__inner {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 0;
  }

  .legal {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .countdown__meta { flex-direction: column; align-items: flex-start; }
  .countdown__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { flex-wrap: wrap; }

  .quicklinks {
    justify-content: flex-start;
    gap: 14px;
  }

  .quicklink { min-width: 104px; }
  .quicklink__icon { width: 58px; height: 58px; }

  .timebox:not(:last-child)::after {
    display: none;
  }
}
