@keyframes checkerMove { to { transform: translate3d(128px,-128px,0); } }
@keyframes fadeUp      { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes promptFadeIn { from { opacity: 0; } to { opacity: 1; } }

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

body {
  margin: 0;
  overflow: hidden;
  font-family: 'Fredoka', sans-serif;
  background: #050505;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  color: #fafafa;
  text-align: center;
  background: radial-gradient(circle 700px at 50% 50%, #1a0533, #050505);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.container::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: repeating-conic-gradient(#1a053322 0% 25%, #05050522 0% 50%);
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  animation: checkerMove 2s linear infinite;
}

#intro-veil {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
  cursor: pointer;
}
#intro-veil.gone {
  opacity: 0;
  pointer-events: none;
}

#logo {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 30vh;
  width: auto;
  pointer-events: none;
  transition: none;
}
#logo.to-header {
  transition: top 0.85s cubic-bezier(0.4,0,0.2,1),
              height 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1);
  top: 23vh;
  height: 40vh;
  transform: translate(-50%, -50%);
}

#tap-prompt {
  position: fixed;
  z-index: 61;
  bottom: 34vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  animation: promptFadeIn 0.7s ease-out 0.5s forwards;
  transition: opacity 0.55s ease;
}
#tap-prompt.gone { opacity: 0 !important; }

.tap-label {
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  font-weight: 400;
  color: #fafafa;
  opacity: 0.55;
}

#page {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#page.hidden  { opacity: 0; pointer-events: none; }
#page.visible { animation: fadeUp 0.6s ease-out forwards; }

.launch-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.launch-title {
  font-size: clamp(1.4rem, 4.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 2px 0;
}
.launch-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 400;
  opacity: 0.55;
  margin: 0;
}

.social-block {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 2.2vw;
}
.social-icons a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  margin: 0.4rem 0;
}
.social-icons a:hover  { opacity: 1; transform: scale(1.35) translateY(-6px); }
.social-icons a:active { transform: scale(1.1) translateY(-2px); opacity: 0.85; }
.social-icons a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  color: #fafafa;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.social-icons a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.social-icons svg { width: clamp(48px,6.5vh,72px); height: clamp(48px,6.5vh,72px); fill: #fafafa; }

.social-note { line-height: 0.6; margin: 0.1rem 0; }
.social-note--large { font-size: clamp(1.3rem,2.6vh,2rem);  opacity: 0.65; }
.social-note--small { font-size: clamp(1rem,2vh,1.55rem);   opacity: 0.35; }

.footer-left {
  position: fixed;
  left: 1.5rem; bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  opacity: 0.5;
  z-index: 10;
}
.footer-left img { width: 72px; }
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  color: #fafafa;
}

@media (max-width: 768px) {
  #logo { height: 20vh; }
  #logo.to-header { top: 18vh; height: 28vh; }
  .launch-block { top: 54%; gap: 0.4rem; }
  .launch-title { font-size: clamp(1.2rem,5.5vw,2rem); }
  .launch-sub   { font-size: clamp(0.95rem,4vw,1.4rem); }
  .social-block {
    bottom: auto;
    top: 62vh;
    height: auto;
    gap: 1.4vh;
    padding-bottom: 2vh;
  }
  .social-icons { gap: 6vw; }
  .social-icons svg { width: clamp(36px,8vw,52px); height: clamp(36px,8vw,52px); }
  .social-icons a::after { display: none; }
  .footer-left { left: 1rem; bottom: 1rem; }
  .footer-left img { width: 52px; }
  .footer-copy { font-size: 0.55rem; }
  #tap-prompt { bottom: 10vh; }
}
