:root {
  --design-width: 1080;
  --design-height: 1920;
  --bg-color: #061a52;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Noto Sans Thai", sans-serif;
  background: var(--bg-color);
}

body {
  color: #fff;
}

img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: block;
  background: var(--bg-color);
}

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  transform-origin: top left;
  will-change: transform;
  isolation: isolate;
}

.bg-layer,
.bg-overlay,
.stars-layer {
  position: absolute;
  inset: 0;
}

.bg-layer {
  z-index: 0;
  background: url("../assets/bg-mobile.jpg") center center / cover no-repeat;
}

.bg-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(173, 228, 255, 0.14) 0%, rgba(173, 228, 255, 0.04) 18%, rgba(173, 228, 255, 0) 34%),
    linear-gradient(
      to bottom,
      rgba(0, 10, 40, 0.06) 0%,
      rgba(0, 10, 40, 0.03) 35%,
      rgba(0, 10, 40, 0.08) 70%,
      rgba(0, 8, 30, 0.18) 100%
    );
}

.stars-layer {
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.twinkle-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
  animation-name: twinkleStar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.82) 32%,
    rgba(201, 235, 255, 0.35) 58%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.twinkle-star.soft {
  background: radial-gradient(
    circle,
    rgba(220, 243, 255, 0.9) 0%,
    rgba(220, 243, 255, 0.55) 35%,
    rgba(220, 243, 255, 0.18) 68%,
    rgba(220, 243, 255, 0) 100%
  );
  filter: blur(0.5px);
}

.twinkle-star.glow {
  box-shadow:
    0 0 10px rgba(190, 235, 255, 0.65),
    0 0 22px rgba(136, 214, 255, 0.35),
    0 0 36px rgba(136, 214, 255, 0.18);
}

.twinkle-star.cross::before,
.twinkle-star.cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 999px;
}

.twinkle-star.cross::before {
  width: 200%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.78) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0.45;
}

.twinkle-star.cross::after {
  width: 2px;
  height: 200%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.78) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0.45;
}

@keyframes twinkleStar {
  0% {
    opacity: 0.08;
    transform: scale(0.72);
  }
  20% {
    opacity: 0.22;
    transform: scale(0.92);
  }
  45% {
    opacity: 0.7;
    transform: scale(1.08);
  }
  60% {
    opacity: 1;
    transform: scale(1.26);
  }
  80% {
    opacity: 0.3;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.1;
    transform: scale(0.74);
  }
}

.top-header {
  position: absolute;
  z-index: 4;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.header-image {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.hero {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
}

.star-wrap {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
}

.star-image {
  filter:
    drop-shadow(0 0 12px rgba(193, 243, 255, 0.95))
    drop-shadow(0 0 28px rgba(86, 188, 255, 0.5));
  animation: heroStarFloat 3.2s ease-in-out infinite;
}

@keyframes heroStarFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.menu {
  margin: 0;
  padding: 0;
}

.menu-btn {
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-main .menu-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  z-index: 4;
}

.menu-main .menu-btn:hover,
.menu-bottom .menu-btn:hover {
  filter: brightness(1.05);
}

.menu-main .menu-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.menu-main .award {
  top: 500px;
}

.menu-main .progress {
  top: 670px;
}

.menu-main .poster {
  top: 840px;
}

.menu-main .activity {
  top: 1010px;
}

.bottom-actions {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 0px;
  width: 100%;
  pointer-events: none;
}

.menu-bottom {
  position: relative;
  width: 100%;
  height: 240px;
}

.menu-bottom .menu-btn {
  position: absolute;
  width: 360px;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.menu-bottom .menu-btn:active {
  transform: scale(0.97);
}

.menu-bottom .schedule {
  left: 0px;
  bottom: 0;
}

.menu-bottom .survey {
  right: 0px;
  bottom: 0;
}