/* Joker123Angkor.com - High-Speed Core Web Vitals Stylesheet (2026) */
@font-face {
  font-family: "Montserrat";
  src: url("Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-main: #070709;
  --bg-card: #121216;
  --bg-card-alt: #18181f;
  --bg-header: #16151a;
  --gold-light: #f6d84c;
  --gold-main: #f0cd25;
  --gold-dark: #d99b16;
  --text-main: #f3f3f5;
  --text-muted: #b8b8c2;
  --border-gold: rgba(240, 205, 37, 0.38);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --green-apk: #1db954;
  --blue-ios: #007aff;
  --max-w: 1020px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Kantumruy Pro", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  padding-bottom: 78px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--gold-main);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Utility Bar (Language Switcher & Trust Signal) */
.utility-bar {
  background: #0d0d11;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-muted);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch a {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--gold-main);
  color: #000;
  border-color: var(--gold-main);
}

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 210px;
  height: auto;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, #e09f15 100%);
  color: #000;
  box-shadow: 0 4px 14px rgba(240, 205, 37, 0.3);
}

.btn-gold:hover {
  color: #000;
  box-shadow: 0 6px 20px rgba(240, 205, 37, 0.5);
}

.btn-outline {
  background: rgba(240, 205, 37, 0.08);
  color: var(--gold-main);
  border-color: var(--gold-main);
}

.btn-outline:hover {
  background: var(--gold-main);
  color: #000;
}

.btn-apk {
  background: linear-gradient(180deg, #25d366 0%, #159c44 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.32);
}

.btn-apk:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.btn-ios {
  background: linear-gradient(180deg, #2997ff 0%, #0062cc 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}

.btn-ios:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 14px;
}

/* Primary Navigation Bar */
.nav-bar {
  background: linear-gradient(180deg, var(--gold-main) 0%, var(--gold-dark) 100%);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  color: #0a0a0c;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 6px;
}

.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.82);
  color: var(--gold-main);
}

/* Breadcrumbs */
.breadcrumb {
  padding: 14px 0 4px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--gold-main);
}

/* Hero Section */
.hero-section {
  padding: 20px 0 28px;
}

.hero-banner-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}

.hero-card {
  background: linear-gradient(145deg, #171720 0%, #0e0e13 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.badge-pill {
  display: inline-block;
  background: rgba(240, 205, 37, 0.14);
  color: var(--gold-main);
  border: 1px solid var(--border-gold);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hero-card h1 {
  font-size: 30px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}

.hero-card h1 span {
  color: var(--gold-main);
}

.hero-sub {
  max-width: 780px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.download-cta-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-meta span strong {
  color: var(--gold-main);
}

/* Sections & Cards */
.section-block {
  padding: 26px 0;
}

.section-title {
  font-size: 25px;
  line-height: 1.35;
  color: var(--gold-main);
  margin-bottom: 16px;
  text-align: center;
}

.section-lead {
  text-align: center;
  max-width: 760px;
  margin: -6px auto 24px;
  color: var(--text-muted);
}

/* Category 4-Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-main);
}

.cat-card-body {
  padding: 12px 14px;
  text-align: center;
}

.cat-card-body h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.cat-card-body p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Slot Games Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-main);
}

.game-card img {
  border-radius: 8px;
  margin: 0 auto 8px;
  width: 100%;
}

.game-card h3 {
  font-size: 14.5px;
  color: var(--gold-main);
  margin-bottom: 3px;
}

.game-rtp {
  display: inline-block;
  font-size: 12px;
  background: rgba(29, 185, 84, 0.15);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

/* Feature / Silo Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
}

.info-card.gold-border {
  border-color: var(--border-gold);
}

.info-card h3 {
  font-size: 19px;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.info-card ol,
.info-card ul {
  padding-left: 20px;
  color: var(--text-main);
}

.info-card li {
  margin-bottom: 8px;
}

/* Rich Content Article Box */
.content-article {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 28px 26px;
}

.content-article h2 {
  font-size: 24px;
  color: var(--gold-main);
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article h3 {
  font-size: 19px;
  color: #fff;
  margin: 20px 0 8px;
}

.content-article p {
  margin-bottom: 14px;
  color: #e4e4eb;
}

.content-article ul,
.content-article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.content-article li {
  margin-bottom: 8px;
  color: #e4e4eb;
}

.content-article a {
  text-decoration: underline;
  font-weight: 600;
}

/* Responsive Data Tables */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card-alt);
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(240, 205, 37, 0.15);
  color: var(--gold-main);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Payment / Promo Split */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: center;
}

.promo-img-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

/* Native HTML5 Accordion (Zero-JS FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-weight: 700;
  font-size: 16.5px;
  color: #fff;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-main);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary {
  background: rgba(240, 205, 37, 0.1);
  color: var(--gold-main);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 16px 18px;
  color: #dcdce6;
  font-size: 15.5px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: #0d0d12;
  border-top: 1px solid var(--border-gold);
  padding: 34px 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--gold-main);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
}

/* Sticky Mobile / Bottom Quick Bar (Clean Download & Internal Hub Only - No Contact Links) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(16, 16, 22, 0.96);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--gold-main);
  padding: 8px 12px;
}

.sticky-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid-2,
  .promo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle-label {
    display: flex;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .nav-toggle-input:checked ~ .nav-list {
    display: flex;
  }
  .hero-card h1 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .header-main {
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand-logo img {
    width: 180px;
  }
  .game-grid,
  .game-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-article {
    padding: 18px 15px;
  }
  .btn-lg {
    width: 100%;
  }
  .sticky-btn {
    font-size: 12px;
    padding: 8px 6px;
  }
}
