@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background: #040406;
  color: #ededed;
  font-family: 'Outfit', system-ui, sans-serif;
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
}

::selection {
  background: rgba(74, 222, 128, 0.3);
  color: #fff;
}

#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

#ui {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

#logo {
  width: clamp(80px, 10vw, 140px);
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.06));
  animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1.25rem;
}

#crafting-label {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 40px rgba(255,255,255,0.08);
  animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#word-container {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 40px rgba(255,255,255,0.08);
  height: 1.25em;
  overflow: hidden;
}

#word-span {
  display: inline-block;
  padding-bottom: 0.1em;
  vertical-align: baseline;
}

#word-span.phase-in {
  animation: word-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#word-span.phase-out {
  animation: word-out 0.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  pointer-events: auto;
}

@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes word-in {
  0%   { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0%); }
}

@keyframes word-out {
  0%   { opacity: 1; transform: translateY(0%); }
  100% { opacity: 0; transform: translateY(-100%); }
}
