/* latin-ext */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/nKKZ-Go6G5tXcrabGwCYdA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/nKKZ-Go6G5tXcraVGwA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr5KPxWpVaF5NQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr5KPxWnVaE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr4uPhWpVaF5NQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr4uPhWnVaE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr4yPRWpVaF5NQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/nKKU-Go6G5tXcr4yPRWnVaE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #2d2540;
  --surface: #3c344d;
  --surface-2: #483d61;
  --border: #3c3252;
  --text: #ffffff;
  --muted: #a7a3af;
  --accent: #ff6c1a;
  --accent-2: #e0c535;
  --radius: 0px;
  --font-heading: Kanit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Kanit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --login-fill: #e0c535;
  --header-h: 64px;
  --container: 1120px;
  --on-primary: #ffffff;
  --on-login: #1a1424;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sticky-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.45em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.28em 0; }
strong { font-weight: 600; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-primary);
  padding: 10px 16px;
  font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 32px;
  width: auto;
}
.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  min-width: 0;
}
.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  content: "";
}
.nav-toggle span { margin: 0 auto; }

.btn,
.btn-primary,
.btn-login,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), filter 140ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-primary);
}
.btn-login {
  background: var(--login-fill);
  color: var(--on-login);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-primary:hover,
.btn-login:hover,
.btn-ghost:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.btn-primary:active,
.btn-login:active,
.btn-ghost:active { transform: scale(0.97); }

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(45, 37, 64, 0.96) 0%, rgba(45, 37, 64, 0.84) 34%, rgba(45, 37, 64, 0.4) 58%, rgba(45, 37, 64, 0.12) 100%),
    url("/media/banner.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero-copy {
  max-width: 34rem;
  padding: 40px 0 36px;
  text-align: left;
}
.hero-copy p {
  color: var(--text);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 20px;
}

.lobby {
  padding: 28px 0 56px;
  padding-bottom: calc(56px + var(--sticky-h));
}
.page-main {
  padding: 28px 0 56px;
  padding-bottom: calc(56px + var(--sticky-h));
}

.block {
  margin: 0 0 36px;
  padding: 0;
  background: transparent;
  border: 0;
}
.block > h2 { margin-bottom: 12px; }
.lede {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 68ch;
}

.game-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.game-tabs [role="tab"] {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.game-tabs [role="tab"][aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.game-tabs [role="tab"]:hover { color: var(--text); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.game-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.game-tile:hover { text-decoration: none; }
.game-tile:hover .game-thumb img { filter: brightness(1.08); }
.game-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease;
}
.game-meta {
  padding: 8px 10px 10px;
}
.game-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.more-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}
.data-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
}
.table-wrap { overflow-x: auto; }

.name-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.name-strip span {
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
}

.pay-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pay-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 56px;
  background: #ffffff;
  padding: 6px;
}
.pay-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pay-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pay-cell img {
  width: 56px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  flex: 0 0 auto;
}

.steps {
  margin: 0;
  padding-left: 1.2em;
  max-width: 62ch;
}
.steps li { margin: 0.4em 0; }

.homepage-article,
.page-article {
  max-width: 72ch;
}
.homepage-article h2,
.page-article h2 {
  margin-top: 1.4em;
}
.homepage-article h2:first-child,
.page-article h2:first-child { margin-top: 0; }
.homepage-article p,
.page-article p {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 72ch;
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p {
  margin: 8px 0 6px;
  color: var(--muted);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bonus-card {
  background: var(--surface);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bonus-card h2,
.bonus-card h3 {
  font-size: 18px;
  margin: 0;
}
.bonus-amount {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 16px;
}
.bonus-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.bonus-card .btn-primary { align-self: flex-start; margin-top: 6px; }
.code {
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  padding: 2px 8px;
}

.form-panel {
  background: var(--surface);
  padding: 20px;
  max-width: 420px;
}
.form-panel label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}
.form-panel .field { margin-bottom: 14px; }
.form-panel input,
.form-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #6a5f80;
  background: #241c36;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.form-panel textarea { min-height: 120px; resize: vertical; }
.form-panel input:focus,
.form-panel textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-panel .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.form-panel .check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  flex: 0 0 auto;
}
.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.page-title { margin: 0 0 16px; }

.soft-cta {
  margin-top: 24px;
}

.site-footer {
  background: #241c36;
  border-top: 1px solid var(--border);
  padding: 28px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.footer-legal a { color: var(--muted); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.trust-row img {
  height: 40px;
  width: auto;
  opacity: 0.95;
  background: #ffffff;
  padding: 4px 6px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 13px;
}
.copyright { margin: 8px 0 0; }

.mobile-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(45, 37, 64, 0.96);
  border-top: 1px solid var(--border);
}
.mobile-sticky .btn-primary,
.mobile-sticky .btn-login {
  flex: 1;
  min-height: 44px;
}

.err-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.err-page .btn-primary { align-self: flex-start; margin-top: 8px; }

@media (hover: hover) and (pointer: fine) {
  .game-tile:hover { outline: 1px solid var(--accent); outline-offset: 0; }
}

@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    margin: 0;
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav-toggle { display: inline-block; }
  .header-cta { margin-left: 0; }
  .header-inner { gap: 10px; }
  .logo img { height: 28px; }
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(45, 37, 64, 0.88) 20%, rgba(45, 37, 64, 0.78) 100%),
      url("/media/banner.webp");
    background-position: 72% center;
  }
  .hero-copy { padding: 28px 0 24px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bonus-grid { grid-template-columns: 1fr; }
  .data-table th { width: 42%; }
  .mobile-sticky { display: flex; }
  .lobby,
  .page-main { padding-bottom: calc(28px + var(--sticky-h) + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .header-cta .btn-login,
  .header-cta .btn-primary { padding: 0 12px; }
}
