:root {
  --gold: #fdb813;
  --gold-deep: #c48a09;
  --link: #fdb813;
  --link-hover: #007cff;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(253, 184, 19, 0.28), transparent 42%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 214, 102, 0.22), transparent 36%),
    radial-gradient(ellipse at 62% 72%, rgba(196, 138, 9, 0.35), transparent 46%),
    radial-gradient(ellipse at 30% 80%, rgba(90, 60, 20, 0.55), transparent 40%),
    linear-gradient(180deg, #1a1208 0%, #070605 48%, #120e09 100%);
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}

.backdrop::before {
  width: 46vw;
  height: 28vw;
  left: -6vw;
  top: 18vh;
  background:
    radial-gradient(circle at 30% 40%, #f6e2a2 0 8%, transparent 9%),
    radial-gradient(circle at 48% 55%, #e2b34a 0 14%, transparent 15%),
    radial-gradient(circle at 70% 35%, #fff4cc 0 6%, transparent 7%),
    radial-gradient(circle at 62% 70%, #8d6420 0 18%, transparent 19%);
  opacity: 0.55;
}

.backdrop::after {
  width: 50vw;
  height: 34vw;
  right: -8vw;
  bottom: -6vh;
  background:
    radial-gradient(circle at 40% 40%, #f8e7b0 0 7%, transparent 8%),
    radial-gradient(circle at 58% 48%, #d7a441 0 16%, transparent 17%),
    radial-gradient(circle at 72% 62%, #6b4a16 0 20%, transparent 21%);
  opacity: 0.45;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.3);
}

.wrap {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 48px max(15px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
}

.top-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.top-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.top-actions .btn-login {
  color: #ffffff;
  background: transparent;
  border: 2px solid var(--gold);
}

.top-actions .btn-login:hover {
  color: #1a1208;
  background: var(--gold);
}

.top-actions .btn-register {
  color: #1a1208;
  background: var(--gold);
  border: 2px solid var(--gold);
}

.top-actions .btn-register:hover {
  color: #ffffff;
  background: transparent;
}

.brand {
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
}

.brand img {
  width: min(520px, 88vw);
  height: auto;
  mix-blend-mode: screen;
}

.welcome {
  margin: 28px 0 34px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.welcome span {
  color: var(--gold);
}

.intro {
  text-align: center;
  margin-bottom: 22px;
}

.intro h1,
.block h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.intro h1 {
  font-size: 14px;
}

.intro p,
.block p,
.close p {
  margin: 0;
}

.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 26px;
}

.block h2 {
  margin-top: 12px;
}

.block h2:first-child {
  margin-top: 0;
}

.block p {
  text-align: justify;
  margin-bottom: 4px;
}

.close {
  margin-top: 18px;
  text-align: center;
}

.breadcrumb {
  margin-top: 14px;
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--link-hover);
}

.breadcrumb [aria-current="page"] {
  color: #ffffff;
}

.faq {
  margin-top: 28px;
  text-align: left;
}

.faq h2 {
  margin: 0 0 14px;
  font-size: 16px;
  text-align: center;
  color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #ffffff;
}

.faq-item p {
  margin: 0;
  text-align: justify;
  color: rgba(255, 255, 255, 0.92);
}

.game-promos {
  margin-top: 28px;
}

.game-promos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
  align-items: start;
}

.game-promo {
  margin: 0;
  text-align: center;
}

.game-promo a {
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(253, 184, 19, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-promo a:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(253, 184, 19, 0.35);
}

.game-promo img {
  width: 100%;
  height: auto;
  display: block;
}

.game-promo figcaption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  line-height: 1.3;
}

.site-footer {
  margin-top: 28px;
  font-size: 14px;
}

.site-footer hr {
  border: 0;
  border-top: 1px solid #ffffff;
  margin: 22px 0 16px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.foot-main {
  flex: 1;
  min-width: 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.licensed {
  margin-top: 18px;
}

.licensed p {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 14px;
}

.license-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.license-logos img {
  display: block;
  width: auto;
  max-width: min(200px, 100%);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.foot-nav li {
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1px solid #ffffff;
  line-height: 1.2;
}

.foot-nav li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.foot-nav a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.foot-nav a:hover {
  color: var(--link-hover);
}

.copy {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.copy a {
  color: #ffffff;
}

.copy a:hover {
  color: var(--link-hover);
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 12px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

.brand a {
  display: inline-block;
  line-height: 0;
}

@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }

  .game-promos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
  }

  .game-promo figcaption {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.45;
  }

  .wrap {
    padding-top: max(28px, env(safe-area-inset-top));
  }

  .top-actions {
    width: 100%;
    gap: 10px;
  }

  .top-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    max-width: none;
    padding: 12px 14px;
    font-size: 15px;
  }

  .brand img {
    width: min(420px, 92vw);
  }

  .welcome {
    margin: 18px 0 24px;
    font-size: clamp(17px, 4.8vw, 20px);
    line-height: 1.4;
  }

  .intro h1 {
    font-size: 15px;
    line-height: 1.45;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .block p,
  .faq-item p,
  .close p {
    text-align: left;
    hyphens: auto;
  }

  .breadcrumb {
    font-size: 12px;
    justify-content: center;
    display: flex;
  }

  .breadcrumb ol {
    justify-content: center;
  }

  .faq h2 {
    font-size: 15px;
  }

  .faq-item h3 {
    font-size: 15px;
    line-height: 1.4;
  }

  .game-promos {
    margin-top: 24px;
  }

  .game-promos-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(15px, env(safe-area-inset-left));
    gap: 14px;
    max-width: none;
    margin: 0;
    padding: 4px max(15px, env(safe-area-inset-right)) 10px max(15px, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .game-promo {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  .game-promo figcaption {
    font-size: 14px;
  }

  .foot-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .copy {
    text-align: center;
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
  }

  .foot-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .foot-nav li {
    border-right: 0;
    margin: 0;
    padding: 0;
  }

  .foot-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
  }

  .foot-nav li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }

  .licensed {
    text-align: center;
    width: 100%;
  }

  .license-logos {
    justify-content: center;
  }

  .license-logos img {
    max-height: 36px;
    max-width: min(160px, 100%);
  }

  .site-footer hr {
    margin: 18px 0 14px;
  }
}

@media (max-width: 380px) {
  .top-actions {
    flex-direction: column;
  }

  .top-actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .foot-nav li:last-child:nth-child(odd) {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-actions .btn,
  .game-promo a {
    transition: none;
  }
}
