:root {
  --ink: #10202f;
  --muted: #587083;
  --line: #d9e5ea;
  --paper: #f7fbfc;
  --white: #ffffff;
  --ocean: #087b8f;
  --ocean-dark: #075466;
  --coral: #ff6b4a;
  --gold: #f5b83d;
  --shadow: 0 24px 70px rgba(10, 46, 64, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans Thai", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 251, 252, .9);
  border-bottom: 1px solid rgba(217, 229, 234, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), #19b7b0);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ocean-dark);
}

.language-switcher,
.lang-option,
.button,
.carousel-btn,
.dot {
  border: 0;
  font: inherit;
}

.lang-option,
.button,
.carousel-btn,
.dot {
  cursor: pointer;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 4px;
  border-radius: 999px;
  background: #dff6f5;
}

.lang-option {
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.lang-option.active {
  color: var(--white);
  background: var(--ocean-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(70px, 10vw, 118px) clamp(20px, 5vw, 74px);
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 74, .3), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, .28), transparent 24%),
    linear-gradient(135deg, #051824 0%, #062f3f 45%, #080b18 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 18, 29, .92) 0%, rgba(5, 18, 29, .76) 42%, rgba(5, 18, 29, .32) 100%),
    linear-gradient(135deg, rgba(8, 123, 143, .38), rgba(255, 107, 74, .16));
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 72%);
  opacity: .42;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.24) contrast(1.08);
  transform: scale(1.04);
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-effects span {
  position: absolute;
  display: block;
  width: 220px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  box-shadow: 0 0 28px rgba(41, 217, 255, .65);
  transform: rotate(-22deg);
}

.hero-effects span:nth-child(1) {
  top: 22%;
  right: 11%;
}

.hero-effects span:nth-child(2) {
  top: 48%;
  right: 22%;
  width: 320px;
  opacity: .7;
}

.hero-effects span:nth-child(3) {
  bottom: 20%;
  right: 5%;
  width: 260px;
  opacity: .55;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

.thai-name {
  margin: 18px 0 0;
  color: #d9f5f7;
  font-size: clamp(18px, 2vw, 26px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e7f9fb;
  font-size: clamp(18px, 2vw, 22px);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #111827;
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(245, 184, 61, .25);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
}

.button.compact {
  min-width: 122px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 74px);
}

.section-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section p {
  margin-top: 0;
  color: var(--muted);
  font-size: 18px;
}

.intro {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ocean);
  font-weight: 800;
}

.feature h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  font-size: 15px;
}

.games {
  background: #eaf6f8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.carousel-track {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.slide {
  display: none;
  margin: 0;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dbeafe;
}

.carousel-btn {
  position: absolute;
  top: 43%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(7, 84, 102, .88);
  font-size: 36px;
  line-height: 1;
}

.carousel-btn.prev {
  left: -18px;
}

.carousel-btn.next {
  right: -18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  background: #9fb8c4;
}

.dot.active {
  background: var(--ocean);
}

.tech {
  color: var(--white);
  background: #0b3140;
}

.tech h2 {
  color: var(--white);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.tech-list span {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 700;
}

.contact {
  background: var(--white);
}

address {
  padding: 26px;
  border-left: 4px solid var(--ocean);
  color: var(--muted);
  background: #f1f8fa;
  font-style: normal;
}

address strong {
  color: var(--ink);
}

.site-footer {
  padding: 26px clamp(20px, 5vw, 74px);
  color: #d8e7ec;
  background: #071f2a;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.legal-page {
  background: var(--white);
}

.legal-hero {
  padding: clamp(58px, 8vw, 92px) clamp(20px, 5vw, 74px) 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 107, 74, .3), transparent 28%),
    linear-gradient(135deg, #061a28, #075466 62%, #071f2a);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.legal-hero p:last-child {
  margin: 18px 0 0;
  color: #d8e7ec;
}

.legal-content {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 82px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-content p {
  margin: 0 0 16px;
  color: #34495a;
  font-size: 17px;
}

.legal-content a {
  color: var(--ocean-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
    align-items: end;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(7, 35, 48, .92) 0%, rgba(7, 35, 48, .62) 58%, rgba(7, 35, 48, .16) 100%);
  }

  .section-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .site-header {
    gap: 12px;
  }

  .hero {
    min-height: 690px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .button {
    margin-top: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    top: auto;
    bottom: 82px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

}
