:root {
  --primary: #f3c600;
  --primary-deep: #c99a00;
  --secondary: #1b1b1b;
  --success: #238a68;
  --alert: #c94242;
  --base: #333333;
  --headline: #1b1b1b;
  --divider: #d8d2c2;
  --link: #866100;
  --tooltip: #171717;
  --white: #ffffff;
  --surface: #f7f5ef;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(27, 27, 27, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--base); background: var(--white); font-family: "Noto Sans Thai", sans-serif; font-size: 16px; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color .2s ease, transform .2s ease, background .2s ease; }
a:hover { color: var(--headline); }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: var(--white); background: var(--tooltip); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; color: var(--white); background: rgba(16,16,16,.96); border-bottom: 1px solid rgba(243,198,0,.28); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 32px), var(--max)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--primary); }
.brand span { font-size: 1.35rem; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
.brand em { color: var(--primary); font-style: normal; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; color: rgba(255,255,255,.82); font-weight: 600; font-size: .93rem; }
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--primary); }
.main-nav a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--primary); }
.menu-toggle { display: none; margin-left: auto; padding: 8px; color: var(--white); border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 52px; padding: 12px 25px; color: var(--secondary); background: var(--primary); border: 1px solid var(--primary); border-radius: 7px; font-weight: 800; box-shadow: 0 10px 28px rgba(243,198,0,.23); }
.button:hover { color: var(--secondary); background: #ffdb34; transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 9px 19px; font-size: .92rem; }
.button-ghost { color: var(--white); background: rgba(27,27,27,.54); border-color: rgba(255,255,255,.5); box-shadow: none; }
.button-ghost:hover { color: var(--secondary); background: var(--white); border-color: var(--white); }

.hero { position: relative; min-height: 565px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: #11031b; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,4,13,.94) 0%, rgba(10,4,13,.76) 34%, rgba(10,4,13,.15) 66%, rgba(10,4,13,.08) 100%); }
.hero-content { width: min(calc(100% - 32px), var(--max)); margin: auto; padding: 70px 0 86px; }
.hero-content > * { max-width: 650px; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--primary); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 3px; background: var(--primary); }
.eyebrow.dark { color: var(--link); }
.hero h1 { margin: 0; color: var(--white); font-size: clamp(2.3rem, 5vw, 4.65rem); line-height: 1.1; letter-spacing: -.04em; text-shadow: 0 5px 24px rgba(0,0,0,.35); }
.hero h1 strong { color: var(--primary); font-weight: 900; }
.no-wrap { white-space: nowrap; }
.hero-content > p:not(.eyebrow) { margin: 22px 0 30px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status-ribbon { position: relative; z-index: 3; width: min(calc(100% - 32px), var(--max)); margin: -35px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); color: var(--white); background: var(--secondary); border: 1px solid rgba(243,198,0,.25); border-radius: 12px; box-shadow: var(--shadow); }
.status-ribbon > div { min-height: 86px; padding: 17px 24px; display: flex; align-items: center; gap: 15px; }
.status-ribbon > div + div { border-left: 1px solid rgba(255,255,255,.1); }
.status-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: var(--secondary); background: var(--primary); border-radius: 50%; font-weight: 900; }
.status-ribbon p { margin: 0; line-height: 1.45; }
.status-ribbon b, .status-ribbon small { display: block; }
.status-ribbon small { color: rgba(255,255,255,.62); font-size: .78rem; }

.section { width: min(calc(100% - 32px), var(--max)); margin: auto; padding: 92px 0; }
.games-section { padding-bottom: 105px; }
.section-heading { margin-bottom: 34px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2 { margin: 0; color: var(--headline); font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.25; letter-spacing: -.03em; }
.section-heading > p { max-width: 430px; margin: 0; color: #6c6c6c; text-align: right; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card { position: relative; min-width: 0; overflow: hidden; background: var(--secondary); border-radius: var(--radius); box-shadow: var(--shadow); }
.game-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(243,198,0,.18); border-radius: inherit; }
.game-card img { width: 100%; aspect-ratio: 1.48 / 1; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.055); }
.game-card div { padding: 17px 19px 20px; }
.game-card span { color: var(--primary); font-size: .73rem; font-weight: 700; }
.game-card h3, .game-card .game-title { margin: 2px 0 0; color: var(--white); font-size: 1.06rem; font-weight: 700; line-height: 1.4; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dark-section { color: var(--white); background: radial-gradient(circle at 18% 25%, rgba(243,198,0,.09), transparent 28%), #151515; border-top: 1px solid rgba(243,198,0,.18); border-bottom: 1px solid rgba(243,198,0,.18); }
.gateway-layout { display: grid; grid-template-columns: .85fr 1.35fr; gap: 70px; align-items: center; }
.gateway-intro h2, .faq-intro h2 { margin: 0; color: var(--white); font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.25; letter-spacing: -.035em; }
.gateway-intro > p:not(.eyebrow), .faq-intro > p:not(.eyebrow) { margin: 20px 0 28px; color: rgba(255,255,255,.67); }
.gateway-panel { overflow: hidden; background: #202020; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); box-shadow: 0 22px 55px rgba(0,0,0,.25); }
.panel-head { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.panel-head > div { display: flex; align-items: center; gap: 10px; }
.panel-head time { color: rgba(255,255,255,.52); font-size: .78rem; }
.live-dot { width: 9px; height: 9px; display: inline-block; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(35,138,104,.16); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 15px 17px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.075); white-space: nowrap; }
th { color: var(--primary); background: rgba(255,255,255,.025); font-size: .72rem; letter-spacing: .04em; }
td { color: rgba(255,255,255,.68); }
td b { color: var(--white); }
.status-ok { display: inline-flex; align-items: center; gap: 6px; color: #72d8b5; font-size: .78rem; font-weight: 700; }
.status-ok::before { display: none; }
.panel-note { margin: 0; padding: 13px 20px 17px; color: rgba(255,255,255,.45); font-size: .73rem; }

.feature-section { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.feature-visual { position: relative; min-height: 500px; display: grid; align-items: end; background: radial-gradient(circle at 53% 50%, rgba(243,198,0,.35), transparent 50%), linear-gradient(145deg,#222,#111); border-radius: 28px; overflow: hidden; }
.feature-visual::before { content: "JOKER"; position: absolute; left: 4%; top: 1%; color: rgba(255,255,255,.045); font-size: clamp(5rem, 10vw, 9rem); font-style: italic; font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.feature-visual img { position: relative; z-index: 2; width: 108%; height: auto; max-width: none; margin-left: -4%; align-self: end; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 22px 28px rgba(0,0,0,.45)); }
.coin { position: absolute; z-index: 3; width: 54px; height: 54px; display: grid; place-items: center; color: #6e5000; background: var(--primary); border: 5px double #fff09d; border-radius: 50%; font-size: 1.3rem; font-weight: 900; box-shadow: 0 14px 26px rgba(0,0,0,.3); }
.coin-one { top: 15%; right: 8%; transform: rotate(16deg); }
.coin-two { left: 8%; bottom: 17%; transform: rotate(-18deg); }
.feature-copy h2 { margin: 0; color: var(--headline); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.24; letter-spacing: -.035em; }
.feature-copy > p:not(.eyebrow) { margin: 21px 0 29px; color: #666; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 15px; }
.check-list li > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; margin-top: 2px; color: var(--secondary); background: var(--primary); border-radius: 50%; font-weight: 900; }
.check-list b, .check-list small { display: block; }
.check-list b { color: var(--headline); }
.check-list small { margin-top: 3px; color: #777; font-size: .82rem; }

.content-section { padding-top: 105px; padding-bottom: 110px; }
.source-section-heading { max-width: 940px; margin-bottom: 38px; }
.source-section-heading h2 { margin: 0; color: var(--headline); font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.25; letter-spacing: -.035em; }
.source-section-heading > p:not(.eyebrow) { margin: 20px 0 0; color: #666; font-size: 1.02rem; }
.technical-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 58px; align-items: start; }
.technical-content h3 { margin: 0 0 18px; color: var(--headline); font-size: 1.34rem; line-height: 1.45; }
.technical-content h3:not(:first-child) { margin-top: 34px; }
.install-facts { overflow: hidden; background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; }
.install-facts p { margin: 0; padding: 13px 17px; }
.install-facts p + p { border-top: 1px solid var(--divider); }
.install-facts strong, .source-points strong, .security-grid strong { color: var(--headline); }
.install-steps { margin: 0; padding-left: 24px; display: grid; gap: 13px; }
.install-steps li { padding-left: 7px; }
.install-steps li::marker { color: var(--primary-deep); font-weight: 900; }
.install-steps ul { margin: 8px 0 0; padding-left: 20px; }
.source-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.source-points p { margin: 0; padding: 25px; background: var(--white); border: 1px solid #e6e1d6; border-radius: var(--radius); box-shadow: 0 10px 32px rgba(27,27,27,.05); }
.display-title { margin: 58px 0 24px; color: var(--headline); font-size: 1.55rem; font-weight: 800; }
.security-section { padding-top: 100px; padding-bottom: 105px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.security-grid p { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); }

.insight-section { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.insight-grid article { position: relative; padding: 32px; background: var(--white); border: 1px solid #e6e1d6; border-radius: var(--radius); box-shadow: 0 10px 32px rgba(27,27,27,.055); }
.insight-grid article::after { content: ""; position: absolute; left: 32px; bottom: 0; width: 58px; height: 4px; background: var(--primary); }
.insight-grid .number { color: var(--primary-deep); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.insight-grid h3 { margin: 9px 0 10px; color: var(--headline); font-size: 1.3rem; }
.insight-grid p { margin: 0; color: #696969; }

.compact-heading { justify-content: center; text-align: center; }
.compact-heading .eyebrow { justify-content: center; }
.steps-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: steps; }
.steps-grid li { position: relative; padding: 12px 36px; display: flex; gap: 18px; }
.steps-grid li + li { border-left: 1px solid var(--divider); }
.steps-grid li > span { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; color: var(--secondary); background: var(--primary); border-radius: 50%; font-weight: 900; }
.steps-grid h3 { margin: 0 0 5px; color: var(--headline); font-size: 1.12rem; }
.steps-grid p { margin: 0; color: #707070; font-size: .9rem; }
.center-action { margin-top: 42px; text-align: center; }
.button-dark { color: var(--white); background: var(--secondary); border-color: var(--secondary); box-shadow: 0 12px 28px rgba(27,27,27,.17); }
.button-dark:hover { color: var(--secondary); background: var(--primary); border-color: var(--primary); }

.faq-section { color: var(--white); background: radial-gradient(circle at 8% 30%, rgba(243,198,0,.09), transparent 30%), #131313; border-bottom: 1px solid rgba(243,198,0,.22); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.faq-intro { position: sticky; top: 115px; align-self: start; }
.faq-intro > a { color: var(--primary); font-weight: 700; }
.faq-intro > a:hover { color: var(--white); }
.accordion { border-top: 1px solid rgba(255,255,255,.14); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; padding: 23px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--white); background: transparent; border: 0; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.faq-item button:hover { color: var(--primary); }
.faq-item button i { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: var(--secondary); background: var(--primary); border-radius: 50%; font-style: normal; font-size: 1.1rem; }
.faq-item button i::before { content: "+"; }
.faq-item button[aria-expanded="true"] i::before { content: "−"; }
.faq-answer { padding: 0 48px 22px 0; }
.faq-answer p { margin: 0; color: rgba(255,255,255,.62); }

.footer-main { width: min(calc(100% - 32px), var(--max)); margin: auto; padding: 62px 0 50px; display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 70px; }
.footer-main .footer-brand { max-width: 440px; }
.footer-main .footer-brand > p { margin: 18px 0 0; color: rgba(255,255,255,.54); }
.footer-main h2, .footer-heading { margin: 0 0 15px; color: var(--white); font-size: .92rem; font-weight: 700; }
.footer-main > div:not(.footer-brand) a { display: block; padding: 5px 0; color: rgba(255,255,255,.56); font-size: .88rem; }
.footer-main > div:not(.footer-brand) a:hover { color: var(--primary); }
.mobile-cta { display: none; }
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 5px 8px; color: var(--white); background: var(--tooltip); border-radius: 5px; font-size: .7rem; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s; }
[data-tooltip]:hover::after, [data-tooltip]:focus::after { opacity: 1; transform: none; }

.site-footer { color: rgba(255,255,255,.62); background: #111; border-top: 2px solid var(--primary); }
.footer-inner { width: min(calc(100% - 32px), var(--max)); min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.09); }
.footer-inner p { margin: 0; }
.responsible-note { font-size: .78rem; text-align: center; }
.footer-inner a { color: var(--primary); }
.footer-inner a:hover { color: var(--white); }

@media (max-width: 900px) {
  .header-inner { gap: 14px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; padding: 12px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; background: #111; border-bottom: 1px solid rgba(243,198,0,.25); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a[aria-current="true"]::after { display: none; }
  .hero { min-height: 535px; }
  .hero-bg { object-position: 60% center; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .gateway-layout, .feature-section, .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .technical-layout { grid-template-columns: 1fr; gap: 38px; }
  .feature-visual { min-height: 460px; }
  .faq-intro { position: static; }
  .steps-grid { gap: 0; }
  .steps-grid li { padding: 10px 18px; }
  .footer-main { grid-template-columns: 1.3fr .7fr .7fr; gap: 35px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 70px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 1.15rem; }
  .header-inner > .button { display: none; }
  .main-nav { top: 70px; }
  .hero { min-height: 610px; align-items: end; }
  .hero-bg { object-position: 67% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,4,12,.98) 0%, rgba(9,4,12,.84) 43%, rgba(9,4,12,.18) 100%); }
  .hero-content { padding: 170px 0 84px; }
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.7rem); }
  .hero-actions .button { flex: 1 1 180px; }
  .status-ribbon { grid-template-columns: 1fr; margin-top: -24px; }
  .status-ribbon > div { min-height: 76px; }
  .status-ribbon > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .section { padding: 72px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card div { padding: 12px 13px 15px; }
  .game-card h3 { font-size: .9rem; }
  .game-card .game-title { font-size: .9rem; }
  .gateway-layout { padding-top: 76px; padding-bottom: 76px; }
  .panel-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .feature-section { padding-top: 76px; padding-bottom: 76px; }
  .feature-visual { min-height: 340px; border-radius: 20px; }
  .coin { width: 44px; height: 44px; font-size: 1rem; }
  .insight-grid, .steps-grid { grid-template-columns: 1fr; }
  .source-points, .security-grid { grid-template-columns: 1fr; }
  .insight-grid { gap: 14px; }
  .steps-grid { gap: 20px; }
  .steps-grid li { padding: 0; }
  .steps-grid li + li { border-left: 0; }
  .faq-layout { padding-top: 76px; padding-bottom: 82px; }
  .faq-item button { padding: 20px 0; }
  .footer-main { padding: 50px 0 36px; grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-main .footer-brand { grid-column: 1 / -1; }
  .footer-inner { min-height: 128px; padding: 20px 0 76px; flex-direction: column; justify-content: center; gap: 5px; }
  .mobile-cta { position: fixed; z-index: 49; left: 14px; right: 14px; bottom: 13px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--secondary); background: var(--primary); border: 1px solid rgba(0,0,0,.15); border-radius: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.32); font-weight: 900; opacity: 0; transform: translateY(140%); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  body.show-mobile-cta .mobile-cta { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-cta:hover { color: var(--secondary); background: #ffda2b; }
}

@media (max-width: 380px) {
  .game-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
