:root {
  --bg: #073b32;
  --bg-deep: #062326;
  --panel: #0b342e;
  --surface: #114638;
  --green: #62db40;
  --green-soft: #b9f2a4;
  --gold: #f1cb75;
  --text: #f4f9f5;
  --muted: #c1d6ca;
  --line: rgba(210, 255, 211, .18);
  --sidebar-width: 234px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(145deg, #051e25 0%, #08503a 38%, #0b392e 67%, #061c27 100%); color: var(--text); font-family: "Noto Sans Thai", Tahoma, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, rgba(116, 207, 105, .04), transparent); pointer-events: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 15px; color: #061f20; background: #fff; }
.skip-link:focus { top: 12px; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 30; overflow-y: auto; padding: 32px 19px 22px; background: linear-gradient(180deg, #06272c, #082a2d 55%, #041c25); border-right: 1px solid var(--line); }
.sidebar-brand { display: block; padding: 10px 5px 27px; }
.sidebar-brand img { display: block; width: 100%; height: auto; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a { display: flex; align-items: center; min-height: 45px; padding: 7px 15px; border-radius: 6px; font-weight: 700; font-size: 17px; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #05251f; background: var(--green); }
.sidebar-feature { display: grid; gap: 8px; margin-top: 25px; padding: 17px 14px; border-top: 2px solid var(--green); background: rgba(7, 60, 52, .72); border-radius: 6px; }
.sidebar-feature-label { color: var(--green); font-weight: 800; }
.sidebar-feature a { font-size: 14px; color: var(--muted); }
.sidebar-feature a:hover { color: #fff; text-decoration: underline; }
.sidebar-age { margin: 20px 10px 0; color: #a7c6b4; font-size: 12px; }
.site-shell { min-height: 100vh; margin-left: var(--sidebar-width); overflow: clip; }
.topbar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(22px, 4vw, 64px); background: rgba(3, 25, 28, .88); border-bottom: 1px solid var(--line); }
.topbar-note { font-size: 12px; font-weight: 800; color: var(--green-soft); }
.topbar-note span { padding: 0 5px; color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.text-link { color: var(--muted); font-size: 14px; font-weight: 700; }
.text-link:hover { color: #fff; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 20px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0b2518; background: var(--green); box-shadow: 0 5px 0 #226c1f; }
.button-primary:hover { background: #83f05e; }
.button-ghost { border-color: var(--green); background: transparent; color: #fff; }
.button-ghost:hover { background: rgba(98, 219, 64, .15); }
.main-content { min-height: 65vh; }
.mobile-header, .mobile-bottom, .sidebar-scrim { display: none; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--gold); font-family: "Segoe UI", sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.32; letter-spacing: 0; }
h1 { font-size: clamp(27px, 3vw, 42px); }
h2 { font-size: clamp(23px, 2.5vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1.1em; }
.lobby-hero { padding-top: 25px; }
.hero-copy { padding: 0 clamp(22px, 4vw, 64px) 21px; }
.hero-copy h1 { max-width: 900px; }
.hero-copy p { margin: 9px 0 0; color: var(--muted); max-width: 850px; }
.hero-carousel { position: relative; width: 100%; aspect-ratio: 1440 / 660; min-height: 250px; background: #072b4a; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-status { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 4px; background: rgba(3, 37, 34, .92); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; white-space: nowrap; pointer-events: none; }
.slide-status.is-ended { background: rgba(80, 27, 27, .94); }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(4, 27, 31, .7); font-size: 33px; line-height: 1; cursor: pointer; }
.carousel-arrow:hover { background: #0a6c47; }
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; gap: 8px; transform: translateX(-50%); padding: 6px 9px; border-radius: 20px; background: rgba(4, 27, 31, .63); }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d3e0db; cursor: pointer; }
.carousel-dots button.is-active { background: var(--green); }
.lobby-section { padding: 54px clamp(22px, 4vw, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.section-head h2 { color: #f7fff6; }
.section-link { color: var(--green-soft); font-size: 14px; font-weight: 800; white-space: nowrap; }
.section-link:hover { color: #fff; }
.section-link span { padding-left: 3px; }
.category-section { background: rgba(4, 27, 30, .5); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.category-tile { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 6px; background: #082d47; }
.category-tile img { display: block; width: 100%; height: 100%; max-height: 390px; aspect-ratio: 302 / 426; object-fit: cover; transition: transform .3s ease; }
.category-tile:hover img { transform: scale(1.04); }
.category-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 12px 11px; background: linear-gradient(transparent, rgba(3, 19, 27, .9)); color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.game-section { background: rgba(4, 35, 36, .27); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.game-tile { display: block; min-width: 0; overflow: hidden; border-radius: 6px; background: #0b302d; border: 1px solid var(--line); }
.game-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.game-tile:hover img { transform: scale(1.04); }
.game-tile span { display: block; min-height: 47px; padding: 10px 12px; font-weight: 800; font-size: 15px; }
.promo-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: 35px; background: linear-gradient(95deg, rgba(2, 24, 28, .85), rgba(10, 72, 52, .8)); }
.promo-intro p { max-width: 430px; margin: 15px 0 22px; color: var(--muted); }
.promo-images { display: grid; grid-template-columns: minmax(0, 1fr); }
.promo-images img { display: block; width: 100%; aspect-ratio: 1440 / 660; object-fit: cover; border-radius: 6px; }
.provider-section { background: rgba(4, 28, 34, .4); }
.provider-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px; }
.provider-row > a, .provider-row > div { display: grid; justify-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 800; }
.provider-row img { width: min(100%, 156px); height: auto; aspect-ratio: 1; object-fit: contain; }
.provider-row > a:hover { color: var(--green-soft); }
.prose-wrap { padding: 54px clamp(22px, 4vw, 64px) 65px; }
.prose-content { max-width: 980px; color: #e7f2e9; line-height: 1.85; font-size: 16px; }
.prose-content > :first-child { margin-top: 0; }
.prose-content h2 { margin: 40px 0 15px; padding-left: 13px; border-left: 4px solid var(--green); font-size: 26px; }
.prose-content h3 { margin: 28px 0 11px; color: var(--green-soft); }
.prose-content p { margin: 0 0 20px; }
.prose-content a { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose-content ul, .prose-content ol { padding-left: 23px; margin: 0 0 22px; }
.prose-content li { margin-bottom: 8px; }
.prose-content figure { margin: 30px 0; }
.prose-content figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.prose-content figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; }
.prose-content .content-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr); align-items: center; gap: 28px; margin: 35px 0; }
.prose-content .content-split figure { margin: 0; }
.prose-content .content-split figure img { max-height: 430px; object-fit: contain; }
.prose-content .content-split figure img.asset-compact { width: min(100%, 306px); }
.prose-content .content-split figure img.asset-provider { width: min(100%, 209px); }
.prose-content .fact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip > div { padding: 19px; border-right: 1px solid var(--line); }
.fact-strip > div:last-child { border-right: 0; }
.fact-strip strong { display: block; color: var(--green-soft); }
.prose-content blockquote { margin: 30px 0; padding: 18px 24px; border-left: 4px solid var(--gold); color: #fff; background: rgba(0, 20, 25, .33); }
.prose-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose-content th, .prose-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-content th { color: var(--green-soft); }
.home-editorial { background: rgba(5, 25, 28, .34); }
.inner-hero, .article-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 300px); align-items: center; gap: 30px; min-height: 360px; padding: 35px clamp(22px, 4vw, 64px); background: linear-gradient(115deg, #063c35 0%, #0a7145 53%, #092f3c 100%); border-bottom: 1px solid var(--line); }
.inner-hero-copy { max-width: 770px; }
.inner-hero h1, .article-hero h1 { max-width: 740px; }
.inner-hero p { margin: 13px 0 22px; color: #e0f0e6; }
.inner-hero-art { display: block; justify-self: center; max-height: 280px; width: auto; max-width: 100%; object-fit: contain; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: #d3e9dc; font-size: 13px; }
.breadcrumb a:hover { text-decoration: underline; }
.page-article { padding-top: 38px; }
.article-hero { grid-template-columns: minmax(0, 1fr) 260px; background: linear-gradient(115deg, #09293b, #116749 65%, #073d33); }
.article-hero img { display: block; width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.article-meta { margin-top: 15px; color: var(--muted); font-size: 14px; }
.related-section { background: rgba(4, 28, 34, .5); }
.related-section .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 44px clamp(22px, 4vw, 64px); background: #0c4d3b; }
.final-cta p { margin: 7px 0 0; color: var(--muted); }
.site-footer { padding: 40px clamp(22px, 4vw, 64px) 20px; background: #041f25; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: start; gap: 35px; }
.footer-brand img { display: block; width: 190px; height: auto; }
.footer-brand p { max-width: 310px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 520px; font-size: 13px; }
.footer-main nav a:hover { color: var(--green-soft); }
.footer-fine { max-width: 850px; margin: 25px 0 10px; color: #a6c7b4; font-size: 12px; }
.footer-copy { color: #8ba99b; font-size: 12px; }
.not-found { min-height: 50vh; display: grid; align-content: center; justify-items: start; gap: 15px; padding: 60px clamp(22px, 4vw, 64px); }
.simple-heading { padding: 45px clamp(22px, 4vw, 64px); background: #0a4a37; }
.post-list { display: grid; gap: 22px; }
.post-list article { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 23px; margin-bottom: 10px; }
.post-list a:hover { color: var(--green-soft); }
@media (max-width: 1100px) {
  .category-grid, .game-grid { gap: 10px; }
  .promo-section { grid-template-columns: 1fr; }
  .promo-intro p { max-width: 720px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(80vw, 300px); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0, 0, 0, .6); }
  .sidebar-scrim[hidden] { display: none; }
  .site-shell { margin-left: 0; }
  .mobile-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 4px 18px; background: rgba(4, 35, 36, .96); border-bottom: 1px solid var(--line); }
  .mobile-brand img { display: block; width: 160px; height: auto; }
  .menu-toggle { display: grid; align-content: center; gap: 5px; width: 43px; height: 43px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #0c4c3c; cursor: pointer; }
  .menu-toggle span { width: 100%; height: 2px; background: #fff; }
  .topbar { display: none; }
  .mobile-bottom { position: fixed; inset: auto 0 0; z-index: 19; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #042b2d; box-shadow: 0 -6px 20px rgba(0, 0, 0, .22); }
  .mobile-bottom .button { min-width: 0; min-height: 44px; padding: 10px 8px; font-size: 15px; }
  .mobile-bottom .button-primary { box-shadow: none; }
  .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero-carousel { min-height: 0; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .lobby-hero { padding-top: 20px; }
  .hero-copy { padding-bottom: 16px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14px; }
  .hero-carousel { aspect-ratio: 1440 / 660; }
  .hero-slide img { object-fit: cover; object-position: center; }
  .slide-status { top: 5px; padding: 3px 7px; font-size: 10px; }
  .carousel-arrow { width: 31px; height: 31px; font-size: 24px; }
  .carousel-prev { left: 7px; }
  .carousel-next { right: 7px; }
  .carousel-dots { bottom: 7px; }
  .lobby-section { padding-top: 35px; padding-bottom: 35px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 22px; }
  .section-link { align-self: end; font-size: 12px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tile span { font-size: 13px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-tile span { min-height: 45px; font-size: 13px; }
  .promo-images { gap: 8px; }
  .provider-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 19px; }
  .provider-row img { width: 115px; }
  .inner-hero, .article-hero { grid-template-columns: 1fr; gap: 10px; padding-top: 27px; padding-bottom: 27px; }
  .inner-hero-art { justify-self: start; max-height: 220px; }
  .article-hero img { max-width: 180px; }
  .breadcrumb { margin-bottom: 16px; }
  .prose-content { font-size: 15px; }
  .prose-content h2 { font-size: 22px; }
  .prose-content .content-split { grid-template-columns: 1fr; gap: 15px; }
  .prose-content .content-split figure img { max-height: 280px; }
  .prose-content .fact-strip { grid-template-columns: 1fr; }
  .fact-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-strip > div:last-child { border-bottom: 0; }
  .prose-content table { display: block; overflow-x: auto; }
  .related-section .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta, .footer-main { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .sidebar, .game-tile img, .category-tile img, .button { transition-duration: .01ms; }
}
