* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Happy Time", Arial, Helvetica, sans-serif;
  color: #f2f6ff;
  background: #06080f;
}

@font-face {
  font-family: "Happy Time";
  src:
    url("items/HappyTime.woff2") format("woff2"),
    url("items/HappyTime.woff") format("woff"),
    url("items/HappyTime.ttf") format("truetype"),
    url("items/HappyTime.otf") format("opentype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

body {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(119, 155, 244, 0.12) 0%, rgba(14, 20, 39, 0.12) 34%, rgba(5, 8, 17, 0.94) 74%),
    linear-gradient(180deg, #050913 0%, #02040a 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-panel {
  width: min(88vw, 360px);
  padding: 18px 18px 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(16, 23, 41, 0.54) 0%, rgba(8, 12, 24, 0.74) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(173, 198, 246, 0.11),
    inset 0 10px 24px rgba(132, 166, 240, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.loading-text {
  margin: 0;
  color: rgba(224, 235, 255, 0.9);
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0.8px;
  font-size: 0.92rem;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.88;
  text-shadow: 0 0 10px rgba(146, 183, 255, 0.18);
}

.loading-dots {
  display: inline-block;
  width: 1.5em;
  text-align: left;
  color: rgba(187, 210, 255, 0.92);
}

.loading-bar {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(38, 51, 82, 0.62) 0%, rgba(18, 24, 44, 0.84) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(166, 194, 250, 0.14),
    inset 0 3px 8px rgba(0, 0, 0, 0.45);
}

.loading-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(125, 167, 241, 0.9) 0%, rgba(182, 210, 255, 0.9) 52%, rgba(121, 163, 237, 0.9) 100%);
  box-shadow:
    0 0 10px rgba(128, 173, 248, 0.46),
    0 0 22px rgba(120, 163, 233, 0.25);
}

.loading-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  transform: translateX(-160%);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(234, 243, 255, 0.52) 45%, rgba(255, 255, 255, 0) 100%);
  animation: loadingSweep 1.8s linear infinite;
}

@keyframes loadingSweep {
  100% {
    transform: translateX(220%);
  }
}

.scene {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.2) 0%, rgba(6, 10, 18, 0.18) 38%, rgba(2, 3, 7, 0.98) 82%, #010102 100%),
    radial-gradient(circle at 50% 36%, rgba(98, 145, 255, 0.14) 0%, rgba(16, 24, 45, 0.05) 28%, rgba(3, 5, 12, 0.82) 62%),
    linear-gradient(180deg, #04060d 0%, #070b18 45%, #010102 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 45%, rgba(145, 178, 255, 0.09) 0%, rgba(145, 178, 255, 0) 40%),
    radial-gradient(circle at 70% 62%, rgba(151, 182, 255, 0.08) 0%, rgba(151, 182, 255, 0) 45%);
  filter: blur(36px);
  pointer-events: none;
}

.scene::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 44vmin;
  height: 92vmin;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(186, 214, 255, 0.24) 0%, rgba(150, 188, 255, 0.13) 20%, rgba(92, 128, 214, 0.07) 42%, rgba(92, 128, 214, 0) 74%);
  filter: blur(18px);
  pointer-events: none;
}

.dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(0.2px);
}

.dust::before,
.dust::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background-image:
    radial-gradient(circle, rgba(210, 230, 255, 0.14) 0 1px, rgba(0, 0, 0, 0) 2px),
    radial-gradient(circle, rgba(210, 230, 255, 0.08) 0 1px, rgba(0, 0, 0, 0) 2px),
    radial-gradient(circle, rgba(210, 230, 255, 0.06) 0 1px, rgba(0, 0, 0, 0) 2px);
  background-size: 140px 140px, 220px 220px, 320px 320px;
  background-position: 0 0, 60px 20px, 10px 90px;
  animation: dustFall 18s linear infinite;
  transform: translate3d(0, 0, 0);
}

.dust::after {
  opacity: 0.7;
  filter: blur(0.6px);
  animation-duration: 26s;
  animation-direction: reverse;
}

@keyframes dustFall {
  0% {
    transform: translate3d(-1.5%, -8%, 0);
  }
  100% {
    transform: translate3d(1.5%, 12%, 0);
  }
}

.skyline {
  position: absolute;
  left: 50%;
  bottom: 19%;
  z-index: 2;
  width: min(150vw, 2200px);
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.32;
  filter: brightness(0.56) saturate(0.78);
  pointer-events: none;
}

.scene-floor-fade {
  position: absolute;
  inset: 62% 0 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(2, 3, 7, 0) 0%, rgba(2, 3, 7, 0.34) 40%, rgba(1, 1, 2, 0.82) 82%, #010102 100%);
  pointer-events: none;
}

.top-nav {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 24px;
}

.social-btn {
  position: relative;
  text-decoration: none;
  color: #dfe8ff;
  width: 106px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, rgba(42, 55, 83, 0.88) 0%, rgba(26, 35, 56, 0.92) 100%);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(170, 198, 255, 0.08),
    inset 0 10px 18px rgba(138, 171, 255, 0.05),
    0 4px 14px rgba(10, 14, 28, 0.45);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(196, 220, 255, 0) 32%, rgba(196, 220, 255, 0.18) 50%, rgba(196, 220, 255, 0) 68%);
  transform: translateX(-125%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.social-btn:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(180deg, rgba(52, 67, 97, 0.92) 0%, rgba(31, 42, 68, 0.95) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(182, 206, 255, 0.12),
    inset 0 10px 20px rgba(145, 177, 255, 0.08),
    0 8px 18px rgba(10, 14, 28, 0.55);
}

.social-btn:hover::before {
  transform: translateX(125%);
}

.hero {
  position: relative;
  z-index: 4;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 0;
  text-align: center;
}

.title {
  margin: 0 0 12px;
  flex-shrink: 0;
  width: 100%;
  max-width: min(100%, 920px);
  padding-inline: 6px;
  margin-top: 32px;
}

.type-title {
  margin: 0;
  font-family: "Happy Time", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.02;
  text-transform: lowercase;
  text-shadow: none;
}

.type-title__cursor {
  margin-left: 0.25rem;
  display: inline-block;
  opacity: 1;
}

@keyframes cursorBlink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.character-wrap {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  max-width: min(100%, 920px);
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
  z-index: 2;
}

.character-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 58%;
  height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(173, 210, 255, 0.16) 0%, rgba(173, 210, 255, 0) 68%);
  filter: blur(12px);
  pointer-events: none;
}

.character-wrap::after {
  content: "";
  position: absolute;
  top: 56%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(180deg, rgba(2, 3, 7, 0) 0%, rgba(2, 3, 7, 0.35) 42%, rgba(1, 1, 2, 0.84) 82%, #010102 100%);
  pointer-events: none;
}

.character {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: min(92dvh, 920px);
  max-width: min(96vw, 780px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 26px rgba(8, 10, 20, 0.8));
}

.floating-item {
  position: absolute;
  z-index: 5;
  width: clamp(68px, 12.5vw, 128px);
  animation: bob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
  transform-origin: center bottom;
}

/* Slightly larger than phone */
.item-lotion,
.item-foodbag,
.item-food {
  width: clamp(78px, 13.8vw, 148px);
}

/* U-arc in front: upper arms (phone / lotion), curve dips toward viewer at foodbag / food */
.item-phone {
  right: 6%;
  bottom: 58%;
  animation-delay: 0s;
}

.item-lotion {
  left: 6%;
  bottom: 58%;
  animation-delay: -0.9s;
}

.item-foodbag {
  left: 26%;
  bottom: 26%;
  animation-delay: -1.4s;
}

.item-food {
  right: 26%;
  bottom: 26%;
  animation-delay: -2.1s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 700px) {
  .top-nav {
    flex-wrap: wrap;
    padding-top: 16px;
    gap: 10px;
  }

  .social-btn {
    padding: 9px 14px;
  }

  .title {
    margin-bottom: 18px;
  }

  .character {
    height: min(86dvh, 720px);
    max-width: 100%;
  }

  .skyline {
    bottom: 17%;
    width: min(180vw, 1400px);
    opacity: 0.3;
  }

  .item-phone {
    right: 2%;
    bottom: 52%;
  }

  .item-lotion {
    left: 2%;
    bottom: 52%;
  }

  .item-foodbag {
    left: 18%;
    bottom: 22%;
  }

  .item-food {
    right: 18%;
    bottom: 22%;
  }
}
