/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--text-link-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }
svg { fill: none; stroke: currentColor; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10000;
  font-size: var(--text-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--bg-primary);
  color: var(--blue-primary);
  box-shadow: 0 2px 10px rgb(107 131 242);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 12px hsla(219, 100%, 91%, 0.75);  }
.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.btn-sm { padding: 7px 14px; font-size: var(--text-xs); }

/* Icon-only button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-secondary); color: var(--blue-primary); }
.icon-btn svg { width: 18px; height: 18px; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.pgslot-site-wrapper {
  min-height: 100vh;
}

.pgslot-body-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-left-width) 1fr var(--sidebar-right-width);
  align-items: start;
  width: 100%;
  gap: 0;
  min-height: calc(100vh - var(--header-height));
}
.site-main {
  min-width: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.pgslot-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-base);
}

.pgslot-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
  width: 100%;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Primary Nav */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.pgslot-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.menu-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.menu-item a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: transform var(--transition-base);
}
.menu-item a:hover { color: var(--blue-primary); }
.menu-item a:hover::after,
.menu-item.current-menu-item a::after { transform: translateX(-50%) scaleX(1); }
.menu-item.current-menu-item a { color: var(--blue-primary); font-weight: 600; }
.menu-item svg { width: 16px; height: 16px; }

/* Search */
.header-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.search-toggle-btn { display: none; }
.pgslot-search-form {
  position: relative;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all var(--transition-base);
  width: 100%;
  max-width: 200px;
  padding: 0 12px;
  
}
.search-input-wrap:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
  width: 240px;
}
.search-icon {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.search-icon svg { width: 16px; height: 16px; }
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.search-clear:hover { color: var(--blue-primary); }
.search-clear svg { width: 14px; height: 14px; }
.search-clear[hidden] { display: none; }

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  min-width: 320px;
}
.search-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.search-dropdown-header {
  padding: 12px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}
.search-result-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.search-result-badge.hot { background: var(--gradient-hot-badge); color: #fff; }
.search-result-badge.new { background: var(--gradient-new-badge); color: #fff; }
.search-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
}
.search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-primary);
}
.search-no-result {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Header Actions */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.btn-login {
  padding: 8px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-login:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.btn-register {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-button-primary);
  box-shadow: var(--shadow-button);
  transition: all var(--transition-base);
  white-space: nowrap;
  animation: pulse-glow 3s ease-in-out infinite;
}
.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.45);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(34,197,94,0.35); }
  50% { box-shadow: 0 4px 25px rgba(34,197,94,0.6); }
}

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.hamburger-btn:hover { background: var(--bg-secondary); }
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-base);
  margin: 5px 0;
}
.hamburger-btn.active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SIDEBAR LEFT
   ============================================================ */
.sidebar-close-btn { display: none; }
.sidebar-left {
  min-height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  padding: 16px 16px 16px 10px;
}



.sidebar-left::-webkit-scrollbar { width: 4px; }
.sidebar-left::-webkit-scrollbar-track { background: transparent; }
.sidebar-left::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Sidebar Nav */
.sidebar-nav { 
  background: #f7f9fe;;
  margin-bottom: 16px; 
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(208, 224, 253, 0.75);
}
.sidebar-nav-list { display: flex; flex-direction: column; }
.sidebar-nav-item { position: relative; }
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: 0;
  position: relative;
}
.sidebar-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: #9ac6fb;
  border-radius: 0 3px 3px 0;
  transition: transform var(--transition-base);
}
.sidebar-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.sidebar-nav-link.is-active {
  color: #fff;
  background: var(--gradient-sidebar-active);
  font-weight: 600;
  border-radius: 8px;
}
.sidebar-nav-link.is-active::before { transform: translateY(-50%) scaleY(1); }
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-label { flex: 1; }
.nav-count {
  font-size: 10px;
  color: inherit;
  opacity: 0.7;
  font-weight: 400;
}

/* Provider Card */
.provider-card {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2161e2 0%, #64a9f8 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.provider-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.provider-card-header { position: relative; margin-bottom: var(--space-sm); }
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.provider-card-body { position: relative; }
.provider-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin: var(--space-md) 0;
  filter: brightness(0) invert(1);
}
.provider-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.provider-desc {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.provider-stats {
  display: flex;
  gap: var(--space-sm);
}
.provider-stat {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
}
.stat-label {
  display: block;
  font-size: 9px;
  opacity: 0.8;
  margin-top: 2px;
}

.provider-card .btn-sm{
  width: 100%;
}

/* App Download Card */
.app-download-card {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #f7f9fe;
  margin-bottom: 16px;
  box-shadow: var(--box-s-card);
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.app-card-header svg { width: 16px; height: 16px; }
.app-card-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.app-download-btns { display: flex; flex-direction: column; gap: 8px; }

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.app-btn small{
  font-size: 12px;
}

.app-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}


.app-btn:hover { background: var(--blue-primary); color: #fff; transform: translateY(-1px); }
.app-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.app-download-info { line-height: 1.3; }
.app-download-label { font-size: 9px; opacity: 0.7; text-transform: uppercase; }
.app-download-store { font-size: var(--text-sm); font-weight: 700; }

/* ============================================================
   SIDEBAR RIGHT
   ============================================================ */
.sidebar-right {
  background: var(--bg-secondary);
  position: sticky;
  top: var(--header-height);
  padding: 16px 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.sidebar-right::-webkit-scrollbar { width: 4px; }
.sidebar-right::-webkit-scrollbar-track { background: transparent; }
.sidebar-right::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Widget */
.widget {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.widget-icon {
  display: flex;
  align-items: center;
  color: var(--blue-primary);
  flex-shrink: 0;
}
.widget-icon svg { width: 16px; height: 16px; }
.widget-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.widget-see-all {
  font-size: var(--text-xs);
  color: var(--blue-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}
.widget-see-all svg { width: 12px; height: 12px; }

/* JACKPOT WIDGET */
.jackpot-widget {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.jackpot-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.jackpot-widget-header .widget-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}
.jackpot-live-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.jackpot-mega-card {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #f59e0b);
  margin: 0 12px 12px;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  position: relative;
}

.jackpot-mega-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.jackpot-mega-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.jackpot-mega-label {
  color: #ffcc00;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.jackpot-mega-card .jackpot-value {
  color: #ffcc00;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgb(0 0 0 / 40%);
  padding: 0px 10px;
  border-radius: var(--radius-md);
  width: 100%;
  display: block;
}
.jackpot-tiers {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px 12px;
}
.jackpot-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-color);
}
.jackpot-tier:last-child { border-bottom: none; }
.tier-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tier-icon--major { background: #ef4444; }
.tier-icon--minor { background: #f59e0b; }
.tier-icon--mini  { background: #22c55e; }
.tier-label {
  flex: 1;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}
.jackpot-tier .jackpot-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #f59e0b;
}

/* New Games Widget */
.new-game-item {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}
.new-game-item:last-child { border-bottom: none; }
.new-game-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
}
.new-game-item:hover { background: var(--bg-secondary); }
.new-game-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.new-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.new-game-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.new-game-thumb .thumb-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  background: var(--gradient-new-badge);
  color: #fff;
}
.new-game-thumb .thumb-badge.badge-hot { background: var(--gradient-hot-badge); }
.new-game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.new-game-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.new-game-rtp {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.new-game-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--gradient-new-badge);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Promo Widget */
.promo-banner-link { display: block; }
.promo-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}
.promo-banner-link:hover .promo-banner-img { transform: scale(1.02); }

/* Contact Widget */
.contact-widget{
  position: relative;
}

.contact-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.contact-tagline {
  padding: var(--space-sm) 16px 4px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  max-width: 100%;
}
.contact-list { padding: var(--space-xs) 0 var(--space-sm); }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: var(--text-xs);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.contact-item:hover { color: var(--blue-primary); }
.contact-item svg {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  flex-shrink: 0;
  box-sizing: border-box;
}
.contact-item.contact-line svg { background: #06c755; color: #fff; }
.contact-text { line-height: 1.4; }

/* ============================================================
   HERO BANNER SLIDER
   ============================================================ */

.hero-section {
    padding: 16px 0 10px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 16/5;
  border-radius: var(--radius-md);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-slide.is-active .slide-img { transform: scale(1.04); }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}
.slider-dot.is-active {
  background: #fff;
  width: 24px;
}

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  opacity: 0;
}
.hero-slider:hover .slider-prev,
.hero-slider:hover .slider-next { opacity: 1; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover, .slider-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.slider-prev svg, .slider-next svg { width: 18px; height: 18px; }

/* ============================================================
   CATEGORY ICON BAR
   ============================================================ */
.category-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-primary);
  padding: 0 var(--space-lg);
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--box-s-card);
}

/* ลูกศร: ซ่อนบน desktop, แสดงบน mobile */
.category-bar .icon-btn {
  flex-shrink: 0;
  display: none;
}
.category-bar .icon-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.category-list {
  display: flex;
  flex: 1;
  gap: var(--space-md);
  overflow: hidden;          /* desktop ไม่ scroll */
  justify-content: space-between; /* กระจายเต็มบน desktop */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-md) 0;
}
.category-list::-webkit-scrollbar { display: none; }

.category-item {
  flex: 1;                   /* ขยายเท่ากันบน desktop */
  display: flex;
  justify-content: center;
  position: relative;
}

/* เส้นขั้นระหว่าง items */
.category-item + .category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: var(--border-color, rgba(0,0,0,0.1));
}

.category-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform var(--transition-bounce);
}
.category-icon-link:hover { transform: translateY(-3px); }

.category-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: box-shadow var(--transition-base);
}
.category-icon-link:hover .category-icon-wrap {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.category-icon-wrap svg { width: 26px; height: 26px; }

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}
.category-sublabel {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  margin-top: -4px;
}

/* Mobile — เปิด scroll + แสดงลูกศร */
@media (max-width: 1024px) {
  .category-bar .icon-btn {
    display: inline-flex;
  }
  .category-list {
    overflow-x: auto;
    justify-content: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .category-item {
    flex: 0 0 auto;          /* ไม่ขยาย ให้ scroll แทน */
  }
}

/* ============================================================
   GENERIC SECTION WRAPPER
   ============================================================ */
.section {
  background: var(--bg-primary);
  padding-bottom: var(--space-lg);
}

/* Empty state */
.no-posts-found,
.no-posts {
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--text-secondary);
}
.no-posts-found h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.no-posts-icon { display: block; font-size: 48px; margin-bottom: var(--space-md); }

/* Screen-reader only text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-icon {
  display: flex;
  align-items: center;
  color: var(--blue-primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-h);
}
.section-see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-primary);
  transition: gap var(--transition-fast);
}
.section-see-all:hover { gap: 8px; color: var(--blue-primary); }
.section-see-all svg { width: 14px; height: 14px; }

/* ============================================================
   GAMES HORIZONTAL SCROLL
   ============================================================ */
.games-row-wrapper {
  position: relative;
  padding: 0 var(--space-lg) var(--space-lg);
}
.games-row {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.games-row::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  opacity: 0;
}
.games-row-wrapper:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.row-arrow-prev { left: 4px; }
.row-arrow-next { right: 4px; }
.row-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   GAME CARD
   ============================================================ */
.game-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(130px, 17vw, 160px);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
  cursor: pointer;
}
.game-card-link { display: block; }
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--box-s-card);
  z-index: 5;
}

/* Grid variant */
.games-grid .game-card {
  width: auto;
  scroll-snap-align: unset;
}

/* Popular games slider */

.popular-games-section{
  box-shadow: var(--box-s-card);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.popular-games-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.popular-games-slider {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 10px 4px;
  margin: 0 10px;
}
.popular-games-slider::-webkit-scrollbar { display: none; }
.popular-games-slider .game-card {
  flex-shrink: 0;
  width: clamp(140px, 14vw, 180px);
}
.popular-prev,
.popular-next {
  transform: none !important;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 999;
  opacity: 1;
  top: 35%;
}

.popular-prev:hover,
.popular-next:hover {
  box-shadow: 0 2px 12px hsla(219, 100%, 91%, 0.75);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-radius: 12px ;
}
.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.game-card:hover .game-thumb-img { transform: scale(1.08); }
.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Badge */
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.game-badge.badge-hot {
  background: var(--gradient-hot-badge);
  color: #fff;
  animation: badge-shine 3s ease-in-out infinite;
}
.game-badge.badge-new {
  background: var(--gradient-new-badge);
  color: #fff;
}
@keyframes badge-shine {
  0%, 100% { box-shadow: 0 0 6px rgba(255,65,108,0.4); }
  50% { box-shadow: 0 0 14px rgba(255,65,108,0.8); }
}

/* Hover Overlay */
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-sm);
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none; /* เพิ่มบรรทัดนี้ */
}

.game-card-overlay .overlay-btn {
  pointer-events: auto; /* เพิ่มบรรทัดนี้ */
}

.game-card:hover .game-card-overlay { opacity: 1; }
.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.overlay-btn svg { width: 12px; height: 12px; }
.overlay-btn.btn-demo {
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
}
.overlay-btn.btn-demo:hover { background: #fff; transform: translateY(-1px); }
.overlay-btn.btn-play {
  background: var(--gradient-button-primary);
  color: #fff;
}
.overlay-btn.btn-play:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.4); }

/* Card Info */
.game-card-info {
  padding: 8px;
  background: var(--bg-primary);
}
.game-card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.game-card-rtp {
  font-size: 10px;
  color: var(--text-secondary);
}
.game-card-rtp span {
  color: var(--green-primary);
  font-weight: 700;
}

/* ============================================================
   GAMES GRID
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ============================================================
   INFO 3-COLUMN SECTION
   ============================================================ */
.info-section {
  padding: var(--space-md) 0;
  background: var(--bg-secondary);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}
.info-col {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--box-s-card);
  position: relative;
}
.why-image {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    z-index: 0;
}
.info-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.info-col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-h);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.info-col-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.info-col-icon { font-size: 24px; }

/* RTP Table */
.rtp-list { display: flex; flex-direction: column; gap: 6px; 
    background: rgb(237 242 254 / 50%);
    padding: 10px;
    border-radius: var(--radius-sm);
}
.rtp-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 0;
  transition: padding var(--transition-fast);
}
.rtp-list-item:hover { padding-left: 4px; }
.rtp-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.rtp-rank.rank-1 { background: #fbbf24; color: #fff; }
.rtp-rank.rank-2 { background: #9ca3af; color: #fff; }
.rtp-rank.rank-3 { background: #d97706; color: #fff; }
.rtp-rank.rank-n { background: var(--bg-tertiary); color: var(--text-secondary); }
.rtp-game-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.rtp-game-link {
  flex: 1;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rtp-value {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--green-primary);
  font-family: var(--font-mono);
}

/* Theme Icons */
.theme-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  background: rgb(237 242 254 / 50%);
    padding: 10px;
    border-radius: var(--radius-sm);
}
.theme-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.theme-icon-item:hover { background:#caddff; }
.theme-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform var(--transition-bounce);
}
.theme-icon-item:hover .theme-icon-wrap { transform: scale(1.1); }
.theme-icon-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Why Us */
.why-card { position: relative; overflow: hidden; }
.why-mascot {
  position: absolute;
  right: -10px;
  bottom: 0;
  height: 110px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 10;
    background: rgb(237 242 254 / 50%);
    padding: 10px;
    border-radius: var(--radius-sm);
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.5;
  padding-right: 60px;
}
.why-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(205 217 247);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-check svg { width: 10px; height: 10px; stroke: var(--green-primary); }

/* ============================================================
   BLOG POSTS SECTION
   ============================================================ */

.blog-section{
  box-shadow: var(--box-s-card);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  padding: 0 16px 25px;
}

.posts-section { padding: var(--space-lg); background: var(--bg-primary); }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.post-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.post-card-thumb-link { display: block; }
.post-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-category {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.post-card-body { padding: var(--space-sm); }
.post-card-cat-link {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 4px;
}
.post-card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.post-card-title a { color: inherit; }
.post-card-excerpt {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-date,
.post-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.post-date svg,
.post-read-time svg { width: 12px; height: 12px; }

/* ============================================================
   ACCORDION CONTENT
   ============================================================ */


.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition-fast);
  border-radius: var(--radius-md);
}
.accordion-toggle:hover { background: var(--bg-tertiary); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.is-open .accordion-body {
  max-height: 2000px;
}
.accordion-content {
  padding: var(--space-lg);
  background: var(--bg-primary);
}
.accordion-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}
.bottom-content-section {
  margin: var(--space-xl) 0;
  padding-bottom: 0;
  border-radius: var(--radius-md);
}



/* ============================================================
   ARCHIVE / TAXONOMY PAGE HEADER (shared: archive-game, taxonomy-game_category, archive, home)
   ============================================================ */
.archive-header {
  padding: var(--space-lg);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.archive-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.archive-subtitle { color: var(--text-secondary); font-size: var(--text-sm); }

/* Static Page (page.php) */
.page-header {
  padding: var(--space-lg) var(--space-lg) 0;
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
}
.page-content { padding: var(--space-lg); background: var(--bg-primary); }

/* Filter Tabs (game archive / taxonomy) */
.game-filter-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.game-filter-tabs .icon-btn { flex-shrink: 0; display: none; }
@media (min-width: 1025px) {
  .game-filter-tabs .icon-btn { display: inline-flex; }
}
.filter-list {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-list::-webkit-scrollbar { display: none; }
.filter-item { flex-shrink: 0; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.filter-tab:hover { color: var(--blue-primary); border-color: var(--blue-primary); }
.filter-count {
  font-size: 10px;
  opacity: 0.75;
}
.filter-tab.is-active {
  background: var(--gradient-sidebar-active);
  color: #fff;
  border-color: transparent;
}

/* Load More */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
}
.load-more-info {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.btn-load-more {
  padding: 12px 36px;
  background: var(--bg-primary);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius-full);
  color: var(--blue-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn-load-more:hover {
  background: var(--gradient-sidebar-active);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-load-more.loading { opacity: 0.7; pointer-events: none; }

/* Skeleton */
.skeleton-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
}
.skeleton-thumb {
  aspect-ratio: 1/1;
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-info { padding: 8px; }
.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 6px;
}
.skeleton-line.short { width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SINGLE GAME
   ============================================================ */
.game-hero {
  position: relative;
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg);
  background: linear-gradient(135deg, #667eea10 0%, #764ba215 100%);
  border-bottom: 1px solid var(--border-color);
}
.game-hero-image {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  background: var(--bg-tertiary);
}
.game-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.game-hero-info { flex: 1; }
.game-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.game-hero-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-sm) 0;
}
.game-hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.btn.btn-lg {
  padding: 12px 28px;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
}
.btn.btn-lg svg { width: 18px; height: 18px; }
.btn.btn-green {
  background: var(--gradient-button-primary);
  border: 2px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.45); color: #fff; }

/* Meta Chips */
.game-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}
.meta-chip-label { color: var(--text-secondary); font-weight: 500; }
.meta-chip-value { color: var(--text-primary); font-weight: 700; }
.meta-chip-value.rtp { color: var(--green-primary); }

/* Single Game Content */
.game-content { padding: var(--space-lg); background: var(--bg-primary); }

/* RTP Bar */
.rtp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-md);
}
.rtp-bar-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.rtp-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  overflow: hidden;
}
.rtp-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-button-primary);
}
.rtp-bar-value {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--green-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Related Games */
.related-games,
.related-posts,
.recommended-games { padding: var(--space-lg); background: var(--bg-secondary); }
.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
}

/* ============================================================
   POPUP IFRAME
   ============================================================ */
.pgslot-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.pgslot-popup-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.popup-container {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 80vh;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.pgslot-popup-overlay.active .popup-container { transform: scale(1); }

.popup-header {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 999;
    padding: 16px;
}

.popup-title {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.popup-body {
  position: relative;
  width: 100%;
  height: 100%;
}
.popup-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.popup-close {
  position: static;
  flex-shrink: 0;
  z-index: 100;
  top: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
}
.popup-close:hover { background: rgba(255,255,255,0.3); }
.popup-close svg { width: 18px; height: 18px; }
.popup-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: #000;
  color: #fff;
}

.popup-loading.is-hidden {
  display: none;
}

.popup-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-article { padding: var(--space-lg); background: var(--bg-primary); }
.post-header { margin-bottom: var(--space-xl); }
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.post-cat-link {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79,110,247,0.1);
  color: var(--blue-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
}
.post-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.post-meta .post-date,
.post-meta .post-author,
.post-meta .post-read-time,
.post-meta .post-modified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.post-meta svg { width: 14px; height: 14px; }
.post-featured-image,
.page-featured-image {
  margin: var(--space-lg) 0;
}
.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.entry-content {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-primary);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-display);
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text-primary);
}
.entry-content h2 { font-size: var(--text-2xl); }
.entry-content h3 { font-size: var(--text-xl); }
.entry-content p { margin-bottom: var(--space-md); }
.entry-content a { color: var(--blue-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.entry-content li { margin-bottom: var(--space-xs); }
.entry-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.entry-content blockquote {
  border-left: 4px solid var(--blue-primary);
  padding: var(--space-md) var(--space-lg);
  background: rgba(79,110,247,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
}
.page-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-lg);
}
.page-links-title { font-weight: 700; margin-right: 4px; }
.page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: var(--text-sm);
}

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}
.tags-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.tag-link {
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.tag-link:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* Social Share */
.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}
.share-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.share-btn.share-line { background: #06c755; color: #fff; }
.share-btn.share-facebook { background: #1877f2; color: #fff; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn svg { width: 16px; height: 16px; }

/* Prev/Next Post */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.post-nav-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-base);
  display: block;
}
.post-nav-item:hover { border-color: var(--blue-primary); transform: translateY(-2px); }
.post-nav-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-nav-label svg { width: 12px; height: 12px; }
.post-nav-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.post-nav-item.post-nav-prev { text-align: left; }
.post-nav-item.post-nav-next { text-align: right; }
.post-nav-item.post-nav-next .post-nav-label { justify-content: flex-end; }

/* ============================================================
   ARCHIVE POSTS
   ============================================================ */
.archive-wrapper { padding: var(--space-lg); background: var(--bg-primary); }
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.pgslot-breadcrumb {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb-item {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.breadcrumb-item a:hover { color: var(--blue-primary); }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }
.breadcrumb-sep { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb-sep svg { width: 10px; height: 10px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pgslot-pagination {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}
.pgslot-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  margin: 0 2px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.pgslot-pagination .page-numbers:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.pgslot-pagination .page-numbers.current {
  background: var(--gradient-sidebar-active);
  color: #fff;
  border-color: transparent;
}
.pgslot-pagination .page-numbers.prev,
.pgslot-pagination .page-numbers.next { width: auto; padding: 0 12px; gap: 4px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-wrapper { padding: var(--space-lg); background: var(--bg-primary); }
.search-hero {
  background: linear-gradient(135deg, #667eea10 0%, #764ba215 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}
.search-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.search-hero-form {
  max-width: 480px;
  margin: 0 auto;
}
.search-hero-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  padding-left: 16px;
}
.search-hero-input-wrap .search-icon { color: var(--text-secondary); flex-shrink: 0; }
.search-hero-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
}
.search-hero-btn {
  padding: 12px 24px;
  background: var(--gradient-sidebar-active);
  border: none;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: opacity var(--transition-fast);
}
.search-hero-btn:hover { opacity: 0.9; }
.search-results-section { margin-bottom: var(--space-xl); }
.search-results-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.search-results-count {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-content {
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  background: var(--bg-primary);
}
.error-404-emoji { font-size: 80px; margin-bottom: var(--space-lg); }
.error-404-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.error-404-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.error-404-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.error-search-form {
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}
.error-search-wrap {
  display: flex;
  background: var(--bg-primary);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.error-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient-sidebar-active);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(102,126,234,0.4); }
.back-to-top svg { width: 20px; height: 20px; }


/* Footer */
.pgslot-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}
.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand {
    width: 100%;
    max-width: 160px;
    margin: auto;
}

.footer-desc { color: var(--text-muted); font-size: 0.875rem; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; text-align: center; }

/* footer nav — ซ่อนบน desktop */
.footer-nav-mobile { display: none; }
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm);  justify-content: center;}
.footer-nav-list a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-nav-list a:hover { color: var(--accent-primary); }

footer.pgslot-footer {
    display: none;
}



/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
.footer-nav-mobile { display: block; }
footer.pgslot-footer {
    display: block;
}
 
  .pgslot-body-wrapper {
    grid-template-columns: 1fr var(--sidebar-right-width);
    padding: 0 10px ;
  }

 
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .header-inner { overflow-x: hidden !important;}
  .sidebar-right {padding: 16px 0px 16px 16px;}
  .header-logo img{height: 30px;}
  .category-item + .category-item::before {display: none;}
  .category-bar{padding: 0;}
  .header-inner{gap:var(--space-xs)}
  .search-input-wrap {
  max-width: 150px;
  }

  .header-nav { display: none; }
  .hamburger-btn { display: flex; flex-direction: column; }
  .header-btn-login { display: none; }
  .search-input-wrap { flex: 1; max-width: 200px; min-width: 36px; overflow: hidden; padding: 0 8px; }


  /* Mobile Sidebar Drawer */
  
  .sidebar-left {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1100;
    background: var(--bg-primary);
    overflow-y: auto !important;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    
  }
  .sidebar-left.is-open { transform: translateX(0);  }
  .sidebar-close-btn {
    display: flex;
    margin-left: auto;
    margin-right: var(--space-sm);
    margin-top: var(--space-sm);
  }

  /* Mobile Overlay */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }
  .mobile-overlay.is-active { opacity: 1; pointer-events: auto; }

  .header-inner {
    justify-content: space-between;
  }
}



/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {



  :root { --header-height: 56px; }

  /* Layout */
  .pgslot-body-wrapper {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  .site-main {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
  }
  .sidebar-right { display: none; }

  /* Header */
  .header-nav { display: none; }
  .hamburger-btn { display: flex; flex-direction: column; }
  .search-input-wrap { width: 44px; overflow: hidden; padding: 0 10px; }
  .search-input-wrap:focus-within { width: 200px; }
  .search-input { padding: 8px 6px; }
  .header-btn-login { display: none; }

  /* Category Bar */
  .category-bar {
    padding: 0 var(--space-sm);
    overflow-x: hidden;
  }
  .category-list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }
  .category-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 70px;
  }
  .category-icon-wrap { width: 48px; height: 48px; }
  .category-sublabel { display: none; }

  /* Hero */
  .hero-slider { aspect-ratio: 16/5; }

  /* Info Grid */
  .info-grid { grid-template-columns: 1fr; }

  /* Games */
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .games-row-wrapper { padding: 0 var(--space-md) var(--space-md); }

  /* Posts */
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .info-section { padding: var(--space-md) 0; gap: var(--space-md); }

  /* Single Game */
  .game-hero { flex-direction: column; }
  .game-hero-image { width: 100%; height: 220px; }

  /* Misc */
  .post-navigation { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .section-header { padding: var(--space-md); }
  .back-to-top { bottom: 16px; right: 16px; }
  .popup-container { width: 100vw; height: 100vh; border-radius: 0; max-width: none; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .header-inner { padding: 0 var(--space-md); gap: var(--space-sm); }
  .posts-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .category-list { gap: var(--space-sm); }
  .category-icon-wrap { width: 44px; height: 44px; }
  .category-label { font-size: 10px; }
  .game-hero-cta { flex-direction: column; }
  .game-hero-cta .btn { justify-content: center; }
    .search-input-wrap:focus-within { width: 150px; }
}

/* ============================================================
   RESPONSIVE — VERY SMALL (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .header-inner { padding: 0 var(--space-sm); gap: 4px; }
  .btn-register { padding: 6px 12px; font-size: 0.75rem; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .category-item { min-width: 60px; }
  .category-icon-wrap { width: 40px; height: 40px; }
  .category-label { font-size: 9px; }
}