html,body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: Prompt;
  color: white;
  line-height: 1.25;
  overflow: auto;
}
html *[lang="en"],
html *[lang="cn"] {
  display: none;
}
html[lang="en"] *[lang="th"],
html[lang="en"] *[lang="cn"],
html[lang="cn"] *[lang="th"],
html[lang="cn"] *[lang="en"] {
  display: none;
}
html[lang="en"] span[lang="en"],
html[lang="cn"] span[lang="cn"] {
  display: inline-block;
}
html[lang="en"] div[lang="en"],
html[lang="cn"] div[lang="cn"] {
  display: block;
}
.container {
  background: radial-gradient(50% 50% at 50% 50%, #223169 70%, #031535 100%);
}
.fs-1 {
  font-size: 2.5rem !important;
}
.fs-2 {
  font-size: 2rem !important;
}
.fs-3 {
  font-size: 1.75rem !important;
}
.fs-4 {
  font-size: 1.5rem !important;
}
.fs-5 {
  font-size: 1.25rem !important;
}
.fs-6 {
  font-size: 1rem !important;
}
.fs-7 {
  font-size: 0.875rem !important;
}
.fs-8 {
  font-size: 0.75rem !important;
}
.fs-9 {
  font-size: 0.625rem !important;
}
.fs-10 {
  font-size: 0.5rem !important;
}
.bg-head {
  overflow: hidden;
  position: relative;
  height: 100vh;
}
.bg-head::before {
  width: 100%;
  position: absolute;
  content: "";
  background-image: url('./images/bgheader@2x.png');
  inset: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
  max-width: 1400px;
  margin: 0 auto;
}
.position-relative {
  position: relative;
}
.logo {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  z-index: 2;
}
.main-logo {
  width: 90%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.tournament-info {
  margin-top: 1rem;
  border-image: url('./images/title_frame.png') 195 fill/314px/0px;
  padding: 3rem;
}
.content-head {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.arrow-down {
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.4), 0px 0px 8px 2px rgba(255, 215, 0, 0.3) inset;
  backdrop-filter: blur(4px);
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.arrow-down:hover {
  background: rgba(255, 215, 0, 0.4);
  box-shadow: 0px 0px 8px 2px rgba(255, 215, 0, 0.5) inset, 0px 0px 4px 0px #FFFFFF;
}
.arrow-down img {
  width: 2.5rem;
  height: 2.5rem;
}
.bg-body {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
.content-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 2.5rem;
  font-size: 1rem;
  max-width: 1000px;
  z-index: 1;
}
.info-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.card-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 17rem;
  max-width: 20rem;
  width: 50%;
  text-align: center;
  z-index: 1;
  padding: 0.25rem 1rem 0.5rem 1rem;
}
.card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-image: url('./images/layer-1.svg') 19 fill/38px/0px;
  pointer-events: none;
}
.card-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 0.75rem;
  width: 60%;
  background: url('./images/line.svg') no-repeat center center;
  background-size: 100% 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card-content {
  color: white;
  flex: 1;
  background: linear-gradient(180deg, #00006D 0%, #000057 50%, #000004 100%) padding-box, linear-gradient(180deg, #B08751 0%, #FBC884 50%, #B78D56 100%) border-box;
  border: 0.125rem solid transparent;
  border-radius: 0.5rem;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0px 16px 16px 0px #00000080;
}
.card-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('./images/pattern.png');
  background-size: 2.5rem;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
}
.info-item {
  margin-bottom: 0.5rem;
}
.info-section {
  margin-bottom: 1rem;
}
.section-title {
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.treasure-distribution {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.treasure-section {
  display: flex;
  gap: 1rem;
  > * {
    flex: 1;
  }
}
.prize-list .prize-item {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.treasure-chest {
  text-align: center;
}
.treasure-chest img {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.divider {
  text-align: center;
}
.divider img {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
}
.footer {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
}
.footer-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 15rem;
  object-position: top;
}
.credit {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 0.875rem;
  color: #C4C4C4;
  padding: 0.5rem 1.25rem;
  background: rgba(3, 21, 53, 0.8);
}
.fw-bold {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.text-gold {
  background: linear-gradient(270deg, #B08751 0%, #FBC884 50%, #B78D56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0px 8px 16px #000000);
}
li {
  margin-bottom: 0.5rem;
}
.position-absolute {
  position: absolute;
}

/* Language Toggle Button */
.language-toggle {
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 1000;
  color: #1a237e;
  font-weight: 700;
  background: #1E2E6280;
  border: 1px solid #1212D1;
  box-shadow: 0px 2px 2px 0px #1212D1 inset, 0px 4px 4px 0px #000000;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.language-toggle span {
  background: linear-gradient(270deg, #B08751 0%, #FBC884 50%, #B78D56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0px 8px 16px #000000);

}

.language-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0,0,0,0.4);
}

/* Language Modal */
.language-modal {
  display: none;
  position: absolute;
  z-index: 2000;
  right: 0;
  top: 100%;
}

.language-modal-content {
  border-radius: 0.5rem;
  width: 200px;
  padding: 0.5rem;
  background: #1E2E6280;
  border: 1px solid #1212D1;
  box-shadow: 0px 2px 2px 0px #1212D1 inset, 0px 4px 4px 0px #000000;
  backdrop-filter: blur(4px);
  margin-top: 0.25rem;
}

.language-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.language-modal-header span {
  background: linear-gradient(180deg, #FFFFFF 50%, #9C9C9C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0px 8px 16px #000000);
}

.language-options {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.lang-option {
  background: linear-gradient(270deg, #B08751 0%, #FBC884 50%, #B78D56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 1rem;
  transition: all 0.3s ease;
}
html[lang="en"] .lang-option[name="en"],
html[lang="cn"] .lang-option[name="cn"],
html[lang="th"] .lang-option[name="th"] {
  font-weight: 700;
  color:#000057;
  box-shadow: 0px 16px 16px 0px #00000080;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-fill-color: unset;
}

/* TBWC Logo Container */
.tbwc-logo-container {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo SVG */
.logo-b-svg {
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 0;
  z-index: 10;
  filter: drop-shadow(0px 8px 16px #000000) drop-shadow(6.82px 2.27px 4.16px #231F20BF);
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-floating {
  animation: floating var(--animation-duration) ease-in-out infinite;
  animation-delay: var(--animation-delay);
}

@media (max-width: 991px) {
  .bg-head::before {
    background-size: contain;
    background-size: 150%;
  }
  
  .logo-b-svg {
    width: 4rem;
    height: 4rem;
    top: 0;
  }
}
@media (max-width: 768px) {
  
  .logo-b-svg {
    width: 4rem;
    height: 4rem;
    top: 0;
  }
}
@media (max-width: 575px) {
  :root {
    font-size: 12px;
  }
  .treasure-section {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    > * {
      max-width: 300px;
      flex: unset;
      width: 100%;
    }
  }
}