/* home.ui.css — Home · ชั้นสไตล์หน้าจอชุด v6 (แยกจาก ui.css เดิม)
   ลำดับ <link> ใน index.html มีผลต่อการทับกันของกฎ — ไฟล์ชั้นเดียวกันเรียงตามเลขส่วน */
#app.home {
  max-width: 560px;
}
/* ---- หน้าแรก ---- */
.scene {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.hero {
  position: absolute;
  left: -8%;
  bottom: 0;
  height: min(60%, 560px);
  max-width: 58%;
  width: auto;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 10px 12px #0007);
  pointer-events: none;
  animation: hero-bob 3.4s ease-in-out infinite;
}
.signs {
  position: absolute;
  right: 2%;
  top: 9%;
  width: min(54%, calc((100dvh - 96px) / 2.75));
  display: flex;
  flex-direction: column;
  gap: 1.5%;
  align-items: stretch;
  z-index: 3;
}
.sign {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 7px 7px #0007);
  transition: transform 0.15s;
}
.sign img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.sign:active {
  transform: scale(0.96);
}
.sign:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 14px;
}
.s-play {
  animation: sign-sway 4.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes hero-bob {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes sign-sway {
  50% {
    transform: rotate(-1.2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero,
  .s-play {
    animation: none;
  }
}
.namebox input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 2px solid #c9964f;
  background: var(--cream);
  color: #4a2a10;
  font:
    700 17px Sarabun,
    sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
