/*
Theme Name: RICHES888 TH
Theme URI: https://riches888th.vip/
Author: RICHES888
Author URI: https://riches888th.vip/
Description: เธ�เธดเธกเธ�เธตเธ�เธฒเธฃเธฒเธกเธชเธนเธ�เธ�เธดเน€เธกเธชเธฒเธกเธฒเธ�เธฒเธ� RICHES888 เธ�เธฃเธฐเธ�เธ�เธเธตเน�เธกเธ�เธฒเน�เธ—เธตเน�เธชเธธเธ” เน€เธ�เธดเธกเธฃเธนเธ›เน�เธ�เธšเธญเธ�เธ”เธตเน� เธฅเธงเธ”เน€เธฃเน�เธง เน€เธชเธดเธดเธ”เธ�เธฒเธฃเธ เธฒเธฉเธฒเน„เธ—เธข เธฃเธญเธ�เธฃเธฑเธšเธกเธทเธญเธ–เธทเธญ เน�เธ”เน‰เธ—เธธเธ�เธ‚เธ�เธฒเธ”เธ—เธธเธ�เธ�เธ�เธ”เธตเน�
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riches888th
Tags: news, magazine, dark, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Kanit (thai + latin subsets) self-hosted for faster loading */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/kanit-300-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/kanit-300-latin.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;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/kanit-400-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/kanit-400-latin.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;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/kanit-500-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/kanit-500-latin.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;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/kanit-600-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/kanit-600-latin.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;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/kanit-700-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/kanit-700-latin.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 {
  --gold: #f5bd3e;
  --gold-light: #ffd970;
  --gold-dark: #c48629;
  --gold-deep: #87491f;
  --bg: #120d09;
  --bg-2: #1a130c;
  --card: #201810;
  --card-2: #281e13;
  --line: rgba(245, 189, 62, 0.18);
  --text: #f4ead8;
  --text-muted: #c9b899;
  --hot: #e5382e;
  --green: #3ddc84;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Kanit', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 50% -100px, rgba(196, 134, 41, 0.14), transparent 70%),
    radial-gradient(800px 400px at 90% 1100px, rgba(135, 73, 31, 0.08), transparent 70%);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-light); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #2a1a05; }

.btn-gold {
  background: linear-gradient(to bottom, #f5bd3e 0%, #fff3bf 22%, #c28339 55%, #8a5514 85%, #c7932c 100%);
  color: #2a1a05;
  box-shadow: 0 4px 18px rgba(245, 189, 62, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-dark);
}
.btn-outline:hover { color: var(--gold-light); border-color: var(--gold); }

/* ========== Top bar ========== */
.topbar {
  background: linear-gradient(90deg, #0d0906, #241809, #0d0906);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar .status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.topbar__links { display: flex; gap: 16px; align-items: center; }
.topbar__links a { color: var(--text-muted); }
.topbar__links a:hover { color: var(--gold); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(18, 13, 9, 0.99);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 10px 0; }

.site-branding img { display: block; height: 52px; width: auto; }
.site-branding a { display: inline-flex; align-items: center; gap: 10px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 9px 15px;
  color: var(--text);
  font-weight: 400;
  font-size: 0.98rem;
  border-radius: 8px;
  position: relative;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--gold);
  background: rgba(245, 189, 62, 0.08);
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #201810;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.main-nav .sub-menu li { position: relative; }

.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { padding: 8px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ========== Hero carousel ========== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__item { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.hero__item img { width: 100%; height: clamp(220px, 34vw, 480px); object-fit: cover; display: block; }
.hero__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 13, 9, 0.85) 0%, rgba(18, 13, 9, 0) 45%);
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: min(92%, 760px);
}
.hero__caption h2 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}
.hero__caption .btn { font-size: 0.95rem; }
.hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}
.hero__dots button {
  width: 26px; height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
}
.hero__dots button.is-active { background: var(--gold); box-shadow: 0 0 10px rgba(245, 189, 62, 0.7); }

/* ========== Sections ========== */
.section { padding: 52px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2, .section-head .section-head__title {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin: 0 0 6px;
  background: linear-gradient(to bottom, #ffe9a8, #f5bd3e 45%, #c48629);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.section-head .ornament { width: 120px; height: 3px; margin: 14px auto 0; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ========== Category cards ========== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(245, 189, 62, 0.45); box-shadow: var(--shadow); }
.cat-card__icon { font-size: 2.4rem; margin-bottom: 10px; display: block; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-card h3 a { color: var(--gold); }
.cat-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 14px; }

/* ========== Post cards ========== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(245, 189, 62, 0.4); box-shadow: var(--shadow); }
.post-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #241a10; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(to bottom, #f5bd3e, #c28339);
  color: #2a1a05;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 14px; margin-bottom: 8px; }
.post-card__title { font-size: 1.08rem; line-height: 1.45; margin: 0 0 10px; }
.post-card__title a { color: #fff; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { font-size: 0.88rem; font-weight: 500; }

/* List layout (category / archive) */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-row {
  display: flex;
  gap: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-row:hover { border-color: rgba(245, 189, 62, 0.4); box-shadow: var(--shadow); }
.post-row__thumb { flex: 0 0 240px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #241a10; }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body { flex: 1; min-width: 0; }

/* ========== Games gallery ========== */
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(245, 189, 62, 0.5); box-shadow: var(--shadow); }
.game-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px;
  font-size: 0.82rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 7, 4, 0.92), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Promo strip ========== */
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promo-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card img { width: 100%; aspect-ratio: 406 / 240; object-fit: cover; display: block; }

/* ========== About / trust ========== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.about-grid img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .fi {
  flex: 0 0 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(245, 189, 62, 0.1);
  border: 1px solid var(--line);
  font-size: 1.1rem;
}
.banks { margin-top: 22px; padding: 14px 18px; border: 1px dashed var(--gold-dark); border-radius: 12px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.banks img { height: 34px; width: auto; opacity: 0.9; }
.banks span { font-size: 0.85rem; color: var(--text-muted); }

/* ========== Sidebar ========== */
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.widget {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
.widget-title {
  font-size: 1.05rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed rgba(245, 189, 62, 0.12); font-size: 0.93rem; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text); }
.widget li a:hover { color: var(--gold); }
.widget .post-date { font-size: 0.78rem; color: var(--text-muted); }
.widget-cta { text-align: center; padding: 26px 22px; background: radial-gradient(circle at top, rgba(245, 189, 62, 0.14), transparent 70%), var(--card); }

/* ========== Breadcrumb ========== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .separator { margin: 0 8px; color: var(--gold-dark); }
.breadcrumb .last { color: var(--gold); }

/* ========== Page header (archive) ========== */
.page-hero {
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(245, 189, 62, 0.14), transparent 70%),
    linear-gradient(180deg, #1c140c, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  background: linear-gradient(to bottom, #ffe9a8, #f5bd3e 45%, #c48629);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .cat-desc { max-width: 760px; margin: 0 auto; color: var(--text-muted); font-size: 0.98rem; }

/* ========== Single post ========== */
.entry-header { margin-bottom: 22px; }
.entry-title { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin-bottom: 12px; color: #fff; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; color: var(--text-muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { font-size: 1.55rem; margin-top: 1.6em; color: var(--gold-light); }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--gold); }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.2em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; margin: 8px 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(245, 189, 62, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: rgba(245, 189, 62, 0.1); color: var(--gold-light); font-weight: 500; }
.entry-content tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.entry-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag-links a {
  display: inline-block;
  font-size: 0.82rem;
  padding: 4px 14px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  color: var(--gold);
}
.tag-links a:hover { background: rgba(245, 189, 62, 0.1); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.post-nav a:hover { border-color: var(--gold-dark); color: var(--text); }
.post-nav .dir { display: block; color: var(--gold); font-size: 0.78rem; margin-bottom: 4px; }
.post-nav .nav-next { text-align: right; }

/* CTA box under article */
.cta-box {
  margin-top: 34px;
  padding: 30px 26px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 189, 62, 0.35);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(245, 189, 62, 0.16), transparent 75%),
    var(--card);
}
.cta-box h3 { font-size: 1.35rem; color: var(--gold); margin-bottom: 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 18px; }
.cta-box .btn { margin: 0 6px 10px; }

/* ========== Footer ========== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #171009, #0d0906);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 46px 0 30px; }
.site-footer h4 { font-size: 1rem; color: var(--gold); margin-bottom: 16px; }
.site-footer p, .site-footer li { color: var(--text-muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--gold); }
.footer-logo img { height: 46px; margin-bottom: 14px; }
.footer-banks { margin-top: 16px; }
.footer-banks img { height: 30px; opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(245, 189, 62, 0.12);
  padding: 18px 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-disclaimer { font-size: 0.78rem; color: #6f6250; text-align: center; max-width: 900px; margin: 0 auto 12px; }

/* Pagination */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  background: var(--card);
}
.pagination .page-numbers.current, .nav-links .page-numbers.current {
  background: linear-gradient(to bottom, #f5bd3e, #c28339);
  color: #2a1a05;
  font-weight: 600;
  border-color: transparent;
}
.pagination .page-numbers:hover { border-color: var(--gold-dark); color: var(--gold); }

/* Search form */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #170f09;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--gold-dark); }

/* 404 */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; background: linear-gradient(to bottom, #ffe9a8, #f5bd3e 45%, #87491f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sticky sidebar helper */
.sticky-col { position: sticky; top: 84px; }

/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Sticky headers misroute touch hit-testing on several mobile WebViews;
     a static header is 100% tappable there. Desktop keeps the sticky bar. */
  .site-header { position: static; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #170f09;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav .sub-menu { display: block; position: static; border: none; box-shadow: none; padding-left: 18px; background: transparent; }
  .header-cta { order: 2; margin-left: auto; gap: 8px; }
  .header-cta .btn { padding: 7px 14px; font-size: 0.82rem; }
  .nav-toggle { margin-left: 0; }
  .site-header__inner { position: relative; flex-wrap: wrap; gap: 12px; }
  .site-branding img { height: 44px; }
  .about-grid { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .post-row__thumb { flex-basis: 150px; }
  .post-row__excerpt { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 38px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 18px 12px; }
  .cat-card__icon { font-size: 1.8rem; }
  .post-row { flex-direction: column; }
  .post-row__thumb { flex-basis: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-nav { grid-template-columns: 1fr; }
  .topbar__links { display: none; }
}

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important;
  top: -9999px; left: -9999px;
  word-wrap: normal !important;
  pointer-events: none;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  position: fixed !important; left: 10px; top: 10px;
  background: var(--gold); color: #2a1a05; padding: 10px 20px; z-index: 100000;
  border-radius: 8px;
}
