body {
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  background: #000;
  color: #fff;
}

/* Floating particles */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 6s linear infinite;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
@keyframes sparkle {
  0% { transform: translateY(0px); opacity: 0.5; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('bg_monochrome.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  top: 0;
  left: 0;
}

.content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 850px;
  animation: fadeInUp 1.3s ease-out;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}

.emblem {
  position: relative;
  margin-bottom: 25px;
}

.emblem img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 4px solid rgba(255,255,255,0.3);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 35px rgba(255,255,255,0.3); }
  100% { box-shadow: 0 0 55px rgba(255,255,255,0.45); }
}

/* Golden ring */
.emblem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  transform: translate(-50%, -50%);
  animation: rotate 10s linear infinite;
  opacity: 0.75;
}
@keyframes rotate {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 🔥 Font Settings — Optimized */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #eee;
}
p {
  font-size: 0.8rem;
  color: #ddd;
  line-height: 1;
  margin-bottom: 20px;
}

/* Enter Button */
button.enter {
  background: rgba(255,255,255,0.05);
  border: 2px solid #ffd700;
  padding: 12px 34px;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 3;
}
button.enter:hover {
  background: linear-gradient(45deg,#ffd700,#ffed4e);
  color: #000;
  transform: translateY(-3px);
}

body.fade-out {
  opacity: 0;
  transition: opacity 1s;
}

/* ✅ Responsive Adjust */
@media (max-width: 768px) {
  button.enter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 999;
    margin: 0 !important; /* ป้องกัน margin เดิม */
  }

  /* เพื่อไม่ให้ข้อความโดนบัง */
  .content {
    padding-bottom: 120px;
  }
}

@media (max-width: 480px) {
  .intro {
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 80px;
  }
  .content {
    max-width: 95%;
  }
  .emblem img {
    width: 140px;
    height: 140px;
  }
  .emblem::before {
    width: 158px;
    height: 158px;
  }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 0.9rem; }
  p { font-size: 0.8rem; }
  button.enter {
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 30px;
  }
}
