/* ============================================
   LANDING PAGE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  font-family: 'Sukhumvit Set', 'Noto Sans Thai', -apple-system, sans-serif;
  color: #fff8ec;
  background: linear-gradient(160deg, #2c3848 0%, #4a5668 60%, #6b4a38 100%);
  overflow-x: hidden;
}

/* ===== Rain ===== */
.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.7;
}
.rain::before,
.rain::after {
  content: "";
  position: absolute;
  inset: -20% 0 -10% 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><g stroke='white' stroke-width='1.2' stroke-linecap='round'><line x1='15' y1='0' x2='5' y2='30' opacity='0.45'/><line x1='55' y1='20' x2='45' y2='50' opacity='0.35'/><line x1='95' y1='5' x2='85' y2='35' opacity='0.5'/><line x1='130' y1='40' x2='120' y2='70' opacity='0.3'/><line x1='170' y1='15' x2='160' y2='45' opacity='0.4'/><line x1='30' y1='80' x2='20' y2='110' opacity='0.35'/><line x1='75' y1='95' x2='65' y2='125' opacity='0.5'/><line x1='110' y1='110' x2='100' y2='140' opacity='0.3'/><line x1='150' y1='85' x2='140' y2='115' opacity='0.4'/><line x1='185' y1='125' x2='175' y2='155' opacity='0.35'/></g></svg>");
  background-size: 200px 200px;
  background-repeat: repeat;
  animation: rainFall 0.6s linear infinite;
}
.rain::after {
  animation-duration: 0.9s;
  opacity: 0.5;
  transform: translateX(12px) scale(1.3);
}
@keyframes rainFall {
  from { background-position: 0 -200px; }
  to   { background-position: -20px 0; }
}

/* ===== Vignette ===== */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,190,110,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

/* ===== Landing layout ===== */
.landing {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.landing-inner {
  width: 100%;
  max-width: 520px;
  text-align: center;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Shop sign (ป้ายไม้) ===== */
.shop-sign {
  display: inline-block;
  padding: 10px 28px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #7a4f2c 0%, #5d3a1f 100%);
  border: 2px solid #3d2510;
  border-radius: 6px;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,200,140,0.3);
  position: relative;
  transform: rotate(-2deg);
  animation: swing 4s ease-in-out infinite;
}
.sign-text {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffe0b0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
@keyframes swing {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* ===== Avatar ===== */
.hero-avatar {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto 16px;
  filter:
    drop-shadow(0 12px 32px rgba(0,0,0,0.5))
    drop-shadow(0 0 40px rgba(255,180,100,0.35));
  animation: float 4.2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ===== Title & text ===== */
.landing-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff5dc;
  text-shadow: 0 2px 20px rgba(255,180,100,0.5), 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.landing-sub {
  font-size: 16px;
  color: #ffd9a8;
  margin-bottom: 32px;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.landing-story {
  font-size: 15px;
  line-height: 2;
  color: #f0e0c8;
  margin-bottom: 36px;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.landing-story i {
  color: #ffdcb0;
  font-style: italic;
}

/* ===== CTA button ===== */
.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(180deg, #ffcf8a 0%, #e8a858 100%);
  color: #3d2510;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(232,168,88,0.4),
    0 0 40px rgba(255,200,120,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-enter:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 12px 32px rgba(232,168,88,0.55),
    0 0 60px rgba(255,200,120,0.5),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-enter:active {
  transform: translateY(0) scale(1);
}
.btn-enter .arrow {
  transition: transform 0.3s ease;
}
.btn-enter:hover .arrow {
  transform: translateX(4px);
}
@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(232,168,88,0.4),
      0 0 40px rgba(255,200,120,0.3),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(232,168,88,0.5),
      0 0 60px rgba(255,200,120,0.5),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }
}

.landing-hint {
  font-size: 13px;
  color: #d4b890;
  opacity: 0.7;
  letter-spacing: 0.3px;
}
.landing-gallery-link {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  color: #ffd9a8;
  font-size: 13.5px;
  text-decoration: none;
  border: 1px dashed rgba(255, 215, 170, 0.45);
  border-radius: 999px;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.landing-gallery-link:hover {
  background: rgba(255, 215, 170, 0.12);
  color: #fff5dc;
  border-color: rgba(255, 215, 170, 0.7);
}

.landing-privacy {
  font-size: 12px;
  color: #c4a878;
  opacity: 0.6;
  margin-top: 10px;
  letter-spacing: 0.2px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Mobile ===== */
@media (max-width: 520px) {
  .landing { padding: 32px 16px; }
  .hero-avatar { width: 160px; height: auto; margin-bottom: 14px; }
  .landing-title { font-size: 28px; }
  .landing-sub { font-size: 14px; margin-bottom: 24px; }
  .landing-story { font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
  .btn-enter { padding: 14px 32px; font-size: 16px; }
  .shop-sign { padding: 8px 22px; margin-bottom: 22px; }
  .sign-text { font-size: 14px; }
}
