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

:root {
  --sky: #79cff7;
  --yellow: #ffd90f;
  --blue: #1c5fa8;
  --pink: #ff7bac;
  --brown: #5b3a1e;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--sky);
}

/* ---------- FULL-SCREEN 3D PAGE ---------- */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  z-index: 10;
  transition: opacity .5s;
}
#loader span {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 3px 3px 0 var(--blue);
}
#loader.done { opacity: 0; pointer-events: none; }

.overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 18px 28px;
  z-index: 5;
  pointer-events: none;
}
.logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--blue), 4px 4px 0 rgba(0,0,0,.15);
}

.overlay-title {
  position: absolute;
  left: 5%;
  bottom: 9%;
  z-index: 5;
  max-width: 560px;
  pointer-events: none;
}
.overlay-title h1 {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--blue), 6px 6px 0 rgba(0,0,0,.15);
}
.overlay-title p {
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}

.hint {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 5;
  color: #fff;
  font-weight: 700;
  opacity: .85;
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
  pointer-events: none;
}

@media (max-width: 640px) {
  .overlay-title { left: 6%; right: 6%; bottom: 12%; }
}
