/* หน้าต้อนรับ — พื้นหลังใช้สีเดียวกับขอบโปสเตอร์ (#e06e90) ภาพจึงกลืนไปกับหน้าจอ */
:root {
  --poster: #e06e90;
  --pink-strong: #b8005f;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.splash {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--poster);
  color: #fff;
  font-family: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.splash-main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px, 4vh, 40px);
  padding: 16px 16px 8px;
}

/* โปสเตอร์ย่อให้พอดีจอเสมอ เหลือที่ให้ปุ่ม + หมายเหตุด้านล่าง */
.splash-art { display: block; width: 100%; min-height: 0; }
.splash-art img {
  display: block;
  width: auto; height: auto;
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  margin: 0 auto;
  animation: rise .7s ease-out both;
}

.enter {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 260px; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff; color: var(--pink-strong);
  text-decoration: none; font-weight: 700; font-size: 18px;
  box-shadow: 0 10px 30px rgba(120, 0, 55, .28);
  transition: transform .15s, box-shadow .15s;
  animation: rise .7s .25s ease-out both;
}
.enter small { font-weight: 600; font-size: 13px; opacity: .6; letter-spacing: .04em; }
.enter svg { width: 20px; height: 20px; transition: transform .15s; }
.enter:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(120, 0, 55, .34); }
.enter:hover svg { transform: translateX(3px); }
.enter:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.splash-note {
  margin: 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; opacity: .8;
}
.splash-note a { color: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .splash-art img, .enter { animation: none; }
}

/* จอแนวตั้ง: ปุ่มเต็มความกว้างแบบ ref */
@media (max-aspect-ratio: 1/1) {
  .splash-main { padding-top: calc(8px + env(safe-area-inset-top)); }
  .enter { width: min(100%, 420px); }
}
