:root {
  color-scheme: light;
  --red: #761727;
  --red-dark: #440d19;
  --green: #12684c;
  --mint: #dcece3;
  --gold: #eed193;
  --paper: #f3f2ee;
  --ink: #262723;
  --muted: #62655c;
  --line: #e7e5df;
  --radius: 14px;
  --shadow: 0 4px 14px #25241a0a;
  font-family: "Noto Sans Thai", "Leelawadee UI", "Thonburi", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #cd8b2d; outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1,h2,p { margin: 0; }
[id] { scroll-margin-top: 94px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top {
  position: sticky; top: 0; z-index: 3; min-height: 76px; display: flex; align-items: center;
  gap: clamp(24px,4vw,65px); padding: 10px clamp(16px,3vw,42px);
  color: white; background: linear-gradient(100deg,var(--red-dark),var(--red) 68%,#621423);
  border-bottom: 2px solid #b86f47;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 174px; height: 51px; object-fit: contain; }
.top-nav,.actions { display: flex; align-items: center; gap: 12px; }
.top-nav { gap: clamp(18px,3vw,38px); font-weight: 650; color: #fff2de; white-space: nowrap; }
.top-nav a:hover { color: var(--gold); }
.actions { margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 17px; min-height: 42px; border-radius: 8px; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.button-green { color: white; background: var(--green); border: 1px solid #409477; }
.button-green:hover { background: #0b553d; }
.button-outline { color: #fff7e8; border: 1px solid #ffffff75; background: #ffffff0d; }
.button-outline:hover { background: #ffffff24; }
.layout { display: grid; grid-template-columns: 196px minmax(0,1fr); max-width: 1680px; margin: auto; }
.sidebar { border-right: 1px solid var(--line); background: #fff; }
.sidebar nav { position: sticky; top: 76px; padding: 23px 12px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; font-size: .93rem; font-weight: 650; border-radius: 8px; }
.sidebar a span { width: 20px; text-align: center; color: var(--green); }
.sidebar .home { background: var(--red); color: #fff; }
.sidebar .home span { color: var(--gold); }
.side-links { margin-top: 14px; display: grid; gap: 4px; }
.side-links a:hover { background: var(--mint); }
main { min-width: 0; display: grid; gap: 22px; padding: 24px clamp(17px,2.4vw,36px) 0; }
.hero {
  position: relative; display: flex; align-items: center; isolation: isolate;
  min-height: clamp(270px,25vw,420px); border-radius: var(--radius); overflow: hidden;
  padding: clamp(24px,4.5vw,70px); color: white;
  background: linear-gradient(90deg,#21060de8 0%,#3c081796 35%,transparent 73%), #4d1422 url("assets/hero.webp") center 54%/cover no-repeat;
}
.hero-copy { max-width: 100%; }
.eyebrow { font-size: .83rem; letter-spacing: .18em; font-weight: 800; color: var(--gold); }
.hero-title { font-size: clamp(2rem,4.3vw,4.15rem); line-height: 1.13; margin: 8px 0 20px; }
.category-bar { display: flex; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow-x: auto; }
.category-bar a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; flex: 1 0 auto; min-height: 41px; padding: 7px 12px; border-radius: 7px; font-size: .9rem; font-weight: 700; }
.category-bar span { color: var(--red); }
.category-bar a:hover { background: var(--mint); }
.featured { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0,2.65fr); gap: clamp(12px,2vw,24px); background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px,1.8vw,23px); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; gap: 9px; padding: 12px 16px; margin-bottom: 12px; background: white; border-radius: 9px; border: 1px solid var(--line); }
.section-heading span { color: var(--red); }
.section-heading h2 { font-size: 1.08rem; line-height: 1.3; }
.featured .section-heading { padding: 0 0 0 10px; border: 0; border-left: 3px solid var(--red); border-radius: 0; }
.featured .section-heading span { display: none; }
.spotlight { display: flex; flex-direction: column; }
.spotlight-card { display: grid; align-content: end; flex: 1; position: relative; isolation: isolate; overflow: hidden; border-radius: 10px; min-height: 220px; padding: 16px; color: white; background: #2b2220; }
.spotlight-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; z-index: -2; }
.spotlight-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 55%,#170907ec); }
.spotlight-card strong { font-size: 1.34rem; }
.spotlight-card small { color: var(--gold); }
.collection-grid,.game-grid { display: grid; gap: 12px; }
.collection-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.game-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.game-card { min-width: 0; overflow: hidden; border-radius: 9px; background: white; border: 1px solid var(--line); }
.game-card:hover,.spotlight-card:hover { box-shadow: 0 0 0 2px var(--green); }
.game-art { aspect-ratio: 1; overflow: hidden; background: #281d27; }
.game-art img { width: 100%; height: 100%; object-fit: contain; }
.game-card span { display: block; padding: 8px; overflow-wrap: anywhere; font-size: .81rem; font-weight: 700; }
.casino-banner { display: flex; position: relative; overflow: hidden; align-items: center; justify-content: space-between; background: radial-gradient(ellipse at 76% 65%,#168557,#093c2e 56%,#072d23); color: white; border-radius: var(--radius); min-height: 187px; padding: 24px clamp(18px,4vw,52px); isolation: isolate; }
.banner-copy h2 { font-size: clamp(1.55rem,3vw,2.55rem); }
.banner-copy p { margin: 4px 0 13px; color: #e3f4ea; }
.casino-banner img { position: absolute; z-index: -1; width: min(43%,350px); max-height: 125%; right: 6%; object-fit: contain; }
.providers { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; list-style: none; }
.providers li { min-width: 0; display: grid; justify-items: center; text-align: center; gap: 5px; align-content: center; background: #212722; color: #f9fbf8; border: 1px solid var(--line); border-radius: 9px; padding: 12px 6px; font-weight: 650; font-size: .8rem; }
.providers img { width: 110px; height: 34px; object-fit: contain; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; padding: 18px 20px; border-top: 2px solid #a25042; border-radius: 12px 12px 0 0; background: var(--red-dark); color: #fff5e6; }
.footer img { width: 140px; height: 43px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: .87rem; }
.footer small { margin-left: auto; }
@media (max-width: 980px) { .layout { grid-template-columns: 152px minmax(0,1fr); } .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 740px) {
  .layout { display: block; }
  .sidebar,.top-nav { display: none; }
  main { padding-top: 15px; gap: 16px; }
  .top { gap: 12px; min-height: 65px; }
  .brand img { width: 125px; height: 42px; }
  .hero { background-position: 62% 53%; }
}
@media (max-width: 495px) {
  .top { padding-inline: 10px; }
  .actions { gap: 6px; }
  .actions .button { font-size: .78rem; padding-inline: 8px; }
  .top .brand img { width: 105px; }
  main { padding-inline: 10px; }
  .hero { min-height: 255px; background-position: 60% center; }
  .hero-title { font-size: 2rem; }
  .featured { grid-template-columns: minmax(0,1fr); }
  .spotlight-card { min-height: 177px; }
  .spotlight-card img { object-fit: contain; object-position: right center; }
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-grid,.providers { gap: 8px; }
  .providers { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .casino-banner img { right: 0; opacity: .65; }
  .footer small { margin-left: 0; }
}

.top-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .45em; }
.side-links a[aria-current="page"] { background: var(--mint); color: #144d3d; }
.sidebar:has(a[aria-current="page"]) .home { background: transparent; color: var(--ink); }
.sidebar:has(a[aria-current="page"]) .home span { color: var(--green); }
.breadcrumbs,.related-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; }
.breadcrumbs { color: var(--muted); }
.breadcrumbs a,.related-categories a { color: var(--green); font-weight: 700; }
.breadcrumbs a:hover,.related-categories a:hover { text-decoration: underline; }
.category-article { background: white; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.category-hero {
  aspect-ratio: 3 / 1;
  min-height: 155px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--red-dark);
}
.category-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-copy h1 { margin: 0 0 12px; color: var(--red-dark); font-size: clamp(1.65rem, 3.3vw, 2.75rem); line-height: 1.25; }
.article-copy .button { margin-top: 16px; }
.article-copy { max-width: 810px; margin: auto; padding: clamp(20px, 4vw, 42px); font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-copy p + p { margin-top: 12px; }
.article-copy .article-intro { font-size: 1.07rem; color: #394640; }
.article-copy h2 { margin: 25px 0 9px; padding-left: 11px; border-left: 3px solid var(--red); font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.4; color: var(--red-dark); }
.related-categories a { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; }
@media (max-width: 540px) {
  .category-hero img { object-position: 65% center; }
}

.hero-title { font-weight: 750; }
.article-copy a:not(.button) { color: var(--green); text-underline-offset: .17em; text-decoration: underline; }

.article-library h1 { margin-bottom: 16px; color: var(--red-dark); font-size: clamp(1.75rem, 4vw, 2.65rem); }
.article-library .category-bar { display: none; margin-bottom: 16px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.article-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.article-card img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.article-card div { padding: 16px; }
.article-card p { margin-bottom: 6px; color: var(--green); font-size: .88rem; font-weight: 700; }
.article-card h2 { font-size: 1.12rem; line-height: 1.45; }
.article-card:hover h2 { color: var(--green); text-decoration: underline; }
@media (max-width: 740px) {
  .article-library .category-bar { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
}

.article-library .article-filters { display: flex; flex-wrap: wrap; margin-bottom: 20px; }
.library-group + .library-group { margin-top: 32px; }
.library-group > h2 { margin: 0 0 12px; color: var(--red-dark); font-size: 1.3rem; }
.library-group .article-card img { aspect-ratio: 1200 / 630; }
.article-card h3 { margin: 0; font-size: 1.06rem; line-height: 1.45; }
.article-card:hover h3 { color: var(--green); text-decoration: underline; }
.editorial-cover { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--red-dark); }
.editorial-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.editorial-source a { color: var(--green); text-decoration: underline; }
@media (min-width: 520px) and (max-width: 920px) {
  .library-group .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.guide-links {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.guide-links h2 { margin: 0 0 10px; color: var(--red-dark); font-size: 1.1rem; }
