html {
  scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Prompt', 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

.navbar {
  width: 100%;
  background: rgba(0, 0, 0, 0.6); 
  color: #fff;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  transition: background 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1);
  min-height: 72px;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(0.98);
}

.navbar-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 14px 0 14px 40px;
  font-size: 1.05rem;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 20px 0 20px 48px;
  gap: 44px;
}

.navbar-menu li {
  position: relative;
  padding: 0;
}

.navbar-menu li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.13);
}

.navbar-menu li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 8px;
  font-size: 1.5rem;
  padding: 8px 14px;
}

.navbar-menu li a:hover {
  color: #ffd700;
}

.navbar-lang {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.navbar-actions {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

/* User info styles */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 25px;
  color: #fff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  font-size: 0.9em;
}

.user-points {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.user-wallet {
  background: linear-gradient(45deg, #9c27b0, #e91e63);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.logout-btn {
  background: rgba(244, 67, 54, 0.8);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 1);
}

.admin-btn {
  background: rgba(30, 235, 4, 0.8);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  transition: all 0.3s ease;
}

.admin-btn:hover {
  background: rgb(9, 255, 0);
}

/* Login buttons container */
.login-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Google login button */
.google-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(45deg, #4285f4, #34a853);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.8em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.google-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(66, 133, 244, 0.4);
}

/* Facebook login button */
.facebook-login-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(45deg, #1877f2, #42a5f5);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.8em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.facebook-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.4);
}

.fb-icon {
  width: 14px;
  height: 14px;
}

.navbar-actions .store-btn img {
    height: 40px;
    width: auto;
    display: block;
}

.icon-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(180, 140, 255, 0.15);
  box-shadow: 0 2px 8px 0 rgba(100,80,200,0.18);
  font-size: 1.4rem;
  color: #e0baff;
}
.icon-globe::before {
  content: "\1F310";
}

.download-banner {
  width: 100%;
  background: rgba(30, 40, 90, 0.6); /* สีพื้นหลังโปร่งใส */
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.download-banner .arrow {
  font-size: 2.5rem;
  margin-left: 10px;
}

.center-logo {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-logo img {
    height: 250px;
    width: auto;
    display: block;
}
.download-logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-top: 10px;
}

.center-actions {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.center-actions .store-btn img {
    height: 40px;
    width: auto;
    display: block;
}

/* HERO SECTION */
.hero-section {
  background: url('img/bg.png') center center/cover no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: visible;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 340px;
  width: 90%;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.opacity-50 {
  opacity: 50% !important;
}

.store-btn img {
  height: 56px;
  width: auto;
  display: block;
}

.download-banner-img {
  max-width: 400px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  line-height: 0;
}
.section-divider img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.section-2 {
  background: url('img/bg2.png') center center/cover no-repeat;
  min-height: 100vh;
  position: relative;
  padding-top: 0;
  z-index: 2;
}

@media (max-width: 600px) {
  .hero-section { min-height: 320px; }
  .section-divider { bottom: 10px; }
}
.section-2-overlay-center {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 18px;
  color: #fff;
  padding: 32px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 1rem;
}
.section-2-overlay-center h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: bold;
  color: #ffe066;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.section-2-content {
  flex: 1 1 0;
  background: rgba(30,40,90,0.45);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  padding: 32px 32px 24px 32px;
  color: #fff;
  min-width: 0;
  margin: 0 8px;
}
.section-2-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffe066;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.section-2-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-2-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 12px 0;
  font-size: 1.15rem;
}
.section-2-list li:last-child {
  border-bottom: none;
}
.section-2-list a {
  color: #7ee0ff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-2-list a:hover {
  color: #ffd700;
}
.section-2-list .date {
  color: #fffbe6;
  font-size: 0.98rem;
  margin-left: 18px;
  flex-shrink: 0;
}

.section-2-banner {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

/* --- Responsive: Mobile First --- */
body {
  font-size: 15px;
}

.navbar-menu {
  gap: 10px;
  font-size: 0.98rem;
  padding: 10px 0 10px 8px;
}

.navbar-menu li {
  padding: 0 2px;
}

.hero-section {
  min-height: 340px;
  padding: 0;
}

.hero-logo {
  max-width: 140px;
  width: 90%;
}

.download-banner-img {
  max-width: 160px;
}

.section-divider {
  bottom: -24px;
}

.section-2 {
  min-height: 340px;
  top: -22px;
  padding: 10px 0;
}

.section-2-content {
  padding: 12px 0 0 0;
}

/* --- Tablet --- */
@media (min-width: 600px) {
  body { font-size: 16px; }
  .navbar-menu { gap: 20px; font-size: 1.08rem; padding-left: 18px; }
  .hero-section { min-height: 480px; }
  .hero-logo { max-width: 220px; }
  .download-banner-img { max-width: 260px; }
  .section-divider { bottom: -36px; }
  .section-2 { min-height: 500px; top: -20px; }
  .section-2-content { padding: 24px 0 0 0; }
}

/* --- Desktop --- */
@media (min-width: 1025px) {
  body { font-size: 18px; }
  .navbar-menu { gap: 36px; font-size: 1.2rem; padding-left: 40px; }
  .hero-section { min-height: 600px; }
  .hero-logo { max-width: 340px; }
  .download-banner-img { max-width: 400px; }
  .section-divider { bottom: -75px; }
  .section-2 { min-height: 800px; top: -85px; }
  .section-2-content { padding: 48px 0 0 0; }
}

/* --- Hamburger menu (mobile) --- */
@media (max-width: 600px) {
  .navbar-menu {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: 0;
    top: 56px;
    background: rgba(0,0,0,0.95);
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s;
    box-shadow: 2px 0 16px 0 rgba(0,0,0,0.18);
    padding: 24px 0 0 0;
    gap: 0;
  }
  .navbar-menu.open {
    transform: translateX(0);
  }
  .navbar-actions {
    right: 16px;
  }
  .icon-globe {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* Hamburger button (mobile only) */
.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.navbar-hamburger img {
  width: 40px;
  height: 40px;
  display: block;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 30, 80, 0.92) url('img/bg2.png') center center/cover no-repeat;
  backdrop-filter: blur(2px);
  color: #fff;
  text-align: center;
  padding: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #7ee0ff;
  font-size: 2.8rem;
  cursor: pointer;
  z-index: 10001;
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.mobile-menu-list li {
  margin: 24px 0;
}
.mobile-menu-list a {
  color: #7ee0ff;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
.mobile-menu-list a:hover {
  color: #ffd700;
}
.mobile-menu-download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ffe066 0%, #ffb700 100%);
  color: #3a2c00;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 24px;
  padding: 12px 36px;
  margin-top: 24px;
  box-shadow: 0 2px 12px 0 rgba(255, 200, 0, 0.18);
  text-decoration: none;
  border: 2px solid #fffbe6;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-download-btn:hover {
  background: #ffd700;
  color: #222;
}

/* Responsive: show hamburger, hide menu on mobile */
@media (max-width: 600px) {
  .navbar-hamburger {
    display: inline-flex;
  }
  .navbar-menu {
    display: none !important;
  }
  .navbar-menu.open {
    display: flex !important;
  }
  
  /* Mobile user info styles */
  .user-info {
    display: none;
  }
  
  .mobile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 20px;
  }
  
  .mobile-user-info .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .mobile-user-info .user-name {
    font-size: 1.1em;
    font-weight: bold;
  }
  
  .mobile-user-info .user-points {
    font-size: 1em;
  }
  
  .mobile-user-info .logout-btn {
    font-size: 1em;
    padding: 10px 20px;
  }
  
  .facebook-login-btn {
    font-size: 0.9em;
    padding: 10px 16px;
  }
}

@media (max-width: 600px) {
  .navbar-actions > .facebook-login-btn {
    display: none !important;
  }
  .mobile-menu-list .facebook-login-btn {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .icon-globe {
    display: none !important;
  }
  .navbar-actions {
    position: static;
  }
  .navbar-hamburger {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 101;
  }

  .facebook-login-btn {
    display: none !important;
  }
}

@media (min-width: 800px) {
  .section-2-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .section-2-img {
    max-width: 400px;
  }
  .section-2-content {
    padding: 48px 48px 32px 48px;
  }
}

.section-2-img-container {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.section-2-banner {
  display: block;
  width: 110%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;

}
.section-2-overlay {
  position: absolute;
  top: 10%;
  right: 0;
  width: 40%;
  min-width: 220px;
  max-width: 480px;
  height: 80%;
  background: none;
  border-radius: 0 18px 18px 0;
  box-shadow: none;
  color: #fff;
  padding: 10px 32px 8px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 0.85rem;
  pointer-events: none;
}
.section-2-overlay h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  color: #ffe066;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.section-2-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-2-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 5px 0;
  font-size: 0.85rem;
  line-height: 2.5;
}
.section-2-list li:last-child {
  border-bottom: none;
}
.section-2-list a {
  color: #7ee0ff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-2-list a:hover {
  color: #ffd700;
}
.section-2-list .date {
  color: #fffbe6;
  font-size: 0.7rem;
  margin-left: 18px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .section-2-overlay {
    width: 60%;
    left: 0;
    right: unset;
    top: unset;
    bottom: 0;
    height: 55%;
    border-radius: 0 0 18px 18px;
    padding: 10px 8px;
    font-size: 0.8em;
    pointer-events: auto;
  }
}
@media (max-width: 600px) {
  .section-2-overlay {
    width: 100%;
    left: 0;
    right: unset;
    top: unset;
    bottom: 0;
    height: 55%;
    border-radius: 0 0 18px 18px;
    padding: 6px 2px;
    font-size: 0.75em;
    pointer-events: auto;
  }
}
@media (max-width: 600px) {
  .section-2 {
    padding: 12px 0;
    min-height: 300px;
    margin-top: -40;
  }
  .section-2-overlay-center {
    max-width: 98vw;
    padding: 16px 6px 12px 6px;
    font-size: 0.92rem;
  }
  .section-2-overlay-center h2 {
    font-size: 1.2rem;
  }
}

.section-2-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.section-2-slider {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider {
  position: relative;
  width: 380px;
  height: 240px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,40,90,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-btn:hover { background: #ffe066; color: #222; }
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.slider-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fffbe6;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  border: 2px solid #ffe066;
}
.slider-dots .dot.active {
  background: #ffe066;
  opacity: 1;
}
@media (max-width: 900px) {
  .section-2-flex { flex-direction: column; gap: 18px; }
  .section-2-slider { width: 100%; max-width: 100vw; }
  .slider { width: 98vw; max-width: 400px; height: 180px; }
  .section-2-overlay-center { max-width: 98vw; padding: 16px 6px 12px 6px; font-size: 0.92rem; }
}
@media (max-width: 600px) {
  .slider { width: 98vw; max-width: 98vw; height: 120px; }
  .section-2-overlay-center { font-size: 0.85rem; }
}



  
  
  
  


.notice-board-flex {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 36px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 32px auto;
  position: relative;
  z-index: 2;
}

.notice-board-img {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbe6;
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  border: 4px solid #ffe066;
  overflow: hidden;
  position: relative;
}

.notice-board-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.notice-board-overlay {
  flex: 1 1 0;
  background: rgba(30,40,90,0.55);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  padding: 36px 36px 24px 36px;
  color: #fff;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 1.1rem;
  border: 2px solid #7ee0ff;
}

.notice-board-overlay h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffe066;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 2px;
}

.notice-board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.notice-board-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 14px 0;
  font-size: 1.15rem;
}

.notice-board-list li:last-child {
  border-bottom: none;
}

.notice-board-list a {
  color: #7ee0ff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-board-list a:hover {
  color: #ffd700;
}

.notice-board-list .date {
  color: #fffbe6;
  font-size: 0.98rem;
  margin-left: 18px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .notice-board-flex { flex-direction: column; gap: 18px; }
  .notice-board-img { width: 100%; max-width: 100vw; }
  .notice-board-overlay { max-width: 98vw; padding: 16px 6px 12px 6px; font-size: 0.92rem; }
}
@media (max-width: 600px) {
  .notice-board-img { border-radius: 12px; }
  .notice-board-overlay { font-size: 0.85rem; }
}


.notice-slider {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.notice-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-slide.active {
  opacity: 1;
  z-index: 2;
}
.notice-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.notice-slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.notice-slider-dots .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid #ffe066;
  transition: opacity 0.2s, background 0.2s;
}
.notice-slider-dots .dot.active {
  background: #ffe066;
  opacity: 1;
}

@media (max-width: 900px) {
  .notice-slider { height: 200px; }
}
@media (max-width: 600px) {
  .notice-slider { height: 120px; }
}

.notice-board-overlay {
  font-size: 0.98rem;
  padding: 28px 24px 18px 24px;
}
.notice-board-overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.notice-board-list li {
  font-size: 1rem;
  padding: 10px 0;
}
.notice-board-list .date {
  font-size: 0.85rem;
  margin-left: 12px;
}
@media (max-width: 900px) {
  .notice-board-overlay { font-size: 0.92rem; padding: 12px 4px 8px 4px; }
  .notice-board-overlay h2 { font-size: 1.1rem; }
  .notice-board-list li { font-size: 0.92rem; }
  .notice-board-list .date { font-size: 0.75rem; }
}

.notice-new-img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.13));
}

.notice-new-img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 0 0;
}

.notice-frame-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 12px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.notice-frame-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.notice-frame-thumb {
  position: absolute;
  width: 91%;
  left: 4.5%;
  top: 12%;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(30, 40, 90, 0.10);
  object-fit: cover;
  z-index: 2;
  transition: all 0.3s;
}
.notice-frame-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  z-index: 3;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.notice-frame-arrow.left {
  left: -40px;
}
.notice-frame-arrow.right {
  right: -40px;
}
.notice-frame-arrow img {
  width: 70%;
  height: auto;
  display: block;
}
.notice-frame-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.notice-frame-indicator .bar {
  width: 48px;
  height: 10px;
  border-radius: 6px;
  background: #dbe2fa;
  display: inline-block;
  transition: background 0.2s;
}
.notice-frame-indicator .bar.active {
  background: #3a53b7;
}
@media (max-width: 600px) {
  .notice-frame-img-wrapper { max-width: 98vw; }
  .notice-frame-thumb { width: 90vw; left: 4vw; top: 13%; }
  .notice-frame-arrow { width: 40px; height: 40px; }
  .notice-frame-arrow.left { left: -20px; }
  .notice-frame-arrow.right { right: -20px; }
  .notice-frame-indicator .bar { width: 28px; height: 8px; }
}

.notice-board-container {
  position: relative;
  overflow: visible;
  margin-top: 100px;
}

@media (max-width: 600px) {
  .notice-board-container {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .notice-board-container {
    padding: 2px 0;
    border-radius: 10px;
    max-width: 100vw;
    margin: 6px 0;
    box-sizing: border-box;
  }
  .notice-board-flex {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-board-img {
    width: 100vw;
    height: auto;
    max-width: 100vw;
    min-width: 0;
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    background: none;
    padding: 0;
  }
  .notice-slider {
    width: 100vw;
    height: auto;
    max-width: 100vw;
    min-width: 0;
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .notice-slide,
  .notice-slide img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
  }
  .notice-new-img-wrapper {
    margin: 0 0 2px 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-new-img {
    width: 40px;
    margin: 0 auto 2px auto;
    display: block;
  }
  .notice-model-img {
    position: static;
    display: block;
    margin: 0 auto 2px auto;
    width: 50px;
    max-width: 30vw;
    z-index: 10;
  }
  .notice-board-overlay {
    font-size: 0.82rem;
    padding: 6px 2px 2px 2px;
    border-radius: 8px;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-board-overlay h2 {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }
  .notice-board-list {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-board-list li {
    font-size: 0.8rem;
    padding: 4px 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-board-list .date {
    font-size: 0.68rem;
    margin-left: 4px;
  }
  .notice-slider-dots {
    bottom: 4px;
    gap: 4px;
  }
  .notice-slider-dots .dot {
    width: 8px; height: 8px;
    border-width: 1px;
  }
}

@media (max-width: 600px) {
  .notice-slider {
    width: 100vw;
    max-width: 100vw;
    aspect-ratio: 4/1;
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .notice-slide {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    background: none;
  }
  .notice-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
  }
}

@media (max-width: 600px) {
  .notice-board-img {
    background: #fffbe6;
    border: 2px solid #ffe066;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    padding: 0;
    margin: 0 auto 8px auto;
    max-width: 95vw;
    width: 95vw;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .notice-board-flex {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto 8px auto;
  }
  .notice-board-img {
    width: 100vw;
    height: auto;
    max-width: 100vw;
    min-width: 0;
    border-radius: 10px;
    margin: 0 auto 8px auto;
    box-sizing: border-box;
    background: #fffbe6;
    border: 2px solid #ffe066;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .notice-slider {
    width: 100vw;
    max-width: 100vw;
    aspect-ratio: 2.5/1;
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .notice-slide,
  .notice-slide img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
  }
  .notice-slider-dots {
    bottom: 4px;
    gap: 4px;
  }
  .notice-slider-dots .dot {
    width: 8px; height: 8px;
    border-width: 1px;
  }
  .notice-board-overlay {
    font-size: 1rem;
    padding: 10px 8px 8px 8px;
    border-radius: 8px;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    background: rgba(30,40,90,0.85);
    border: 1.5px solid #7ee0ff;
    margin-top: 0;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  }
  .notice-board-overlay h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffe066;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .notice-board-list {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .notice-board-list li {
    font-size: 0.98rem;
    padding: 10px 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .notice-board-list li:last-child {
    border-bottom: none;
  }
  .notice-board-list a {
    color: #7ee0ff;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0;
  }
  .notice-board-list a:hover {
    color: #ffd700;
  }
  .notice-board-list .date {
    font-size: 0.82rem;
    margin-left: 8px;
    color: #fffbe6;
    flex-shrink: 0;
  }
  .notice-new-img-wrapper {
    margin: 8px 0 2px 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .notice-new-img {
    width: 38px;
    margin: 0 0 2px 8px;
    display: block;
  }
}

.notice-mobile-list {
  display: none;
}
@media (max-width: 600px) {
  .notice-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100vw;
    max-width: 100vw;
    margin: 12px 0 0 0;
    padding: 0 8px 16px 8px;
    box-sizing: border-box;
  }
  .notice-mobile-card {
    background: #fffbe6;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(30,40,90,0.10);
    border: 2px solid #ffe066;
    padding: 18px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    transition: box-shadow 0.2s;
  }
  .notice-mobile-card:active {
    box-shadow: 0 4px 18px 0 rgba(30,40,90,0.18);
  }
  .notice-mobile-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
  }
  .notice-mobile-date {
    font-size: 0.98rem;
    color: #bfa900;
    font-weight: 500;
    margin-top: 2px;
  }
}

@media (max-width: 600px) {
  .notice-board-flex {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .notice-new-img-wrapper {
    margin: 8px 0 8px 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }
  .notice-new-img {
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
    display: block;
  }
}

.social-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 32px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.social-frame-bg {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.social-row {
  position: relative;
  z-index: 2;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 40px;
  padding: 32px 0;
}
.social-icon img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 2px 12px 0 rgba(30,40,90,0.10);
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}
.social-icon img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px 0 rgba(30,40,90,0.18);
}
@media (max-width: 600px) {
  .social-frame-wrapper { max-width: 98vw; }
  .social-row { gap: 18px; padding: 18px 0; }
  .social-frame-bg { height: auto; }
}

.social-frame-modal {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
.social-frame-modal1 {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
.social-frame-modal2 {
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 90px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .social-frame-modal {
    width: 64px;
    right: -10px;
    bottom: -10px;
  }
  .social-frame-modal1 {
    width: 48px;
    right: -8px;
    top: -8px;
  }
  .social-frame-modal2 {
    width: 48px;
    left: -8px;
    bottom: -8px;
  }
}

.notice-frame-modal1 {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 120px;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
.notice-frame-modal2 {
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 80px;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .notice-frame-modal1 {
    width: 64px;
    left: -4px;
    top: -4px;
  }
}

.game-footer {
  background: linear-gradient(180deg, #18181a 80%, #23233a 100%);
  color: #e0e0e0;
  padding: 48px 0 24px 0;
  text-align: center;
  font-family: 'Prompt', 'Segoe UI', Arial, sans-serif;
  position: relative;
  margin-top: 48px;
  box-shadow: 0 -4px 32px 0 rgba(0,0,0,0.25);
  border-top: 2px solid #2e2e3a;
}
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
}
.footer-social img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #23233a;
  box-shadow: 0 2px 8px 0 rgba(30,40,90,0.13);
  transition: transform 0.18s, box-shadow 0.18s;
}
.footer-social img:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 18px 0 #3a53b7;
}
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px #222a);
}
.footer-logo-small {
  height: 32px;
  width: auto;
  opacity: 0.85;
}
.footer-copyright {
  font-size: 1rem;
  color: #b0b0b0;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 1.08rem;
  font-weight: 500;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #ffd700;
}
.footer-divider {
  color: #888;
  font-size: 1.2rem;
}
@media (max-width: 600px) {
  .game-footer { padding: 32px 0 16px 0; }
  .footer-social { gap: 18px; margin-bottom: 16px; }
  .footer-social img { width: 32px; height: 32px; }
  .footer-logos { gap: 12px; margin-bottom: 10px; }
  .footer-logo { height: 32px; }
  .footer-logo-small { height: 20px; }
  .footer-links { gap: 8px; font-size: 0.98rem; }
}

.section-2 {
  background: url('img/bg2.png') center center/cover no-repeat !important;
  min-height: unset;
  margin-bottom: 0;
  padding-bottom: 0;
}
.notice-board-container,
.notice-board-flex,
.notice-board-img,
.notice-board-overlay,
.notice-mobile-list,
.notice-mobile-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#starBg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #1a1a3a;
}
body, .section-2, .notice-board-container, .game-footer {
  background: transparent !important;
}




/* ซ่อนปุ่มใน Desktop */
.pre-register-btn {
  display: none;
}

/* แสดงเฉพาะบนมือถือ */
@media screen and (max-width: 768px) {
  .pre-register-btn {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;         /* ให้กว้างเท่าหน้าจอ */
    width: 100vw;     /* เต็มความกว้าง viewport */
    z-index: 9999;
  }

  .pre-register-btn img {
    display: block;
    width: 100%;      /* รูปยืดเต็มปุ่ม */
    height: auto;
  }

  /* กัน content โดนปิดบัง */
  body {
    padding-bottom: 80px; /* เท่ากับความสูงปุ่ม */
  }
}


.text-white{
  color: #fff !important;
}