/* ============================================================
   JILI GAME — Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&family=Sarabun:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg-primary:    #010209;
  --bg-secondary:  #160020;
  --bg-card:       #201027;
  --bg-card-hover: #280045;
  --bg-sidebar:    #130018;
  --bg-header:     #0a000f;

  --accent-pink:   #e72275;
  --accent-pink-dim: #9b0c50;
  --accent-gold:   #f5a623;
  --accent-gold-dim: #c47d0e;
  --accent-purple: #7c3aed;
  --accent-cyan:   #06b6d4;

  --text-primary:  #ffffff;
  --text-muted:    #9d8aaf;
  --text-dim:      #6b5a7e;

  /* Gradients */
  --grad-pink:     linear-gradient(180deg, #e72275 0%, #9b0c50 100%);
  --grad-gold:     linear-gradient(135deg, #f5a623 0%, #e8850a 100%);
  --grad-hero:     linear-gradient(90deg, rgba(13,0,18,0.95) 0%, rgba(13,0,18,0.6) 50%, rgba(13,0,18,0.1) 100%);
  --grad-card:     linear-gradient(180deg, transparent 50%, rgba(13,0,18,0.95) 100%);
  --grad-sidebar:  linear-gradient(180deg, #1a002e 0%, #0d0018 100%);
  --grad-jackpot:  linear-gradient(180deg, #2a0050 0%, #0d0018 100%);
  --grad-feature:  linear-gradient(135deg, #1e0035 0%, #160028 100%);
  --grad-glow-pink: radial-gradient(ellipse at center, rgba(233,30,140,0.15) 0%, transparent 70%);

  /* Border */
  --border-color:  rgba(233,30,140,0.15);
  --border-gold:   rgba(245,166,35,0.3);
  --border-bright: rgba(233,30,140,0.4);

  /* Spacing */
  --header-h:      70px;
  --sidebar-w:     190px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  /* Shadow */
  --shadow-pink:   0 0 20px rgba(233,30,140,0.3);
  --shadow-gold:   0 0 20px rgba(245,166,35,0.3);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.5);

  /* Transition */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --dur:           0.25s;

  /* Font */
  --font-display:  'Kanit', sans-serif;
  --font-body:     'Sarabun', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-pink-dim); border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
}

/* Main body area: sidebar + content */
.site-body {
  display: flex;
  flex: 1;
  column-gap: 16px;
}

/* Full-width sections */
.site-full {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.site-logo img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
.site-logo .logo-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-logo .custom-logo-link img,
.custom-logo-link img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

/* Main Nav */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-pink);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent-pink);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-search {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-search:hover { color: var(--text-primary); background: var(--bg-card); }

.btn-login {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 18px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
}
.btn-login:hover {
  background: rgba(233,30,140,0.1);
  border-color: var(--accent-pink);
}

.btn-register {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 8px 20px;
  background: var(--grad-pink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pink);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(233,30,140,0.5);
}

/* Hamburger */
.btn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
}
.btn-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,0,18,0.95);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}
.search-overlay input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  font-size: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  outline: none;
}
.search-results-live {
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--dur) var(--ease);
}
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.search-result-info .title { font-weight: 600; font-size: 14px; }
.search-result-info .rtp { font-size: 12px; color: var(--accent-gold); }
.btn-close-search {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
}

/* ============================================================
   SIDEBAR LEFT
   ============================================================ */

.sidebar-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-left::-webkit-scrollbar { width: 3px; }

/* Sidebar Nav */
.sidebar-nav {
  padding: 12px 10px;
  border: solid 1px var(--border-color);
  border-radius: 10px;
  background: #080513;
  margin-top: 10px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #eee;
  transition: all var(--dur) var(--ease);
  position: relative;
  white-space: nowrap;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--text-primary);
  background: rgba(233,30,140,0.08);
}
.sidebar-nav a.active {
  background: rgba(233,30,140,0.15);
  border-right: 3px solid var(--accent-pink);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-pink);
  border-radius: 0 2px 2px 0;
}
.sidebar-nav .nav-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
}
.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon { opacity: 1; }

/* Jackpot Widget */
.jackpot-widget {
  margin: 8px 0px 12px;
  background: var(--grad-jackpot);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 12px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.jackpot-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow-pink);
  pointer-events: none;
}
.jackpot-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  opacity: 0.8;
}
.jackpot-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}
.jackpot-label span { color: #fff; text-shadow: 1px 1px 10px rgb(255 0 113);}
.jackpot-chest {
  width: 70px; height: 70px;
  object-fit: contain;
  margin: 6px auto;
  position: relative;
  filter: drop-shadow(0 0 12px rgba(245,166,35,0.4));
}
.jackpot-amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(245,166,35,0.5);
  letter-spacing: 1px;
  position: relative;
  line-height: 1.2;
}
.jackpot-currency {
  font-size: 13px;
  font-weight: 600;
  margin-right: 2px;
}
.jackpot-btn {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-pink);
}
.jackpot-btn:hover { transform: translateY(-1px); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.site-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

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

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
  background: 
  linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
  linear-gradient(180deg, #e72275 0%, #9b0c50 100%) border-box;
}

.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  
}


/* ============================================================
   FEATURE BAR
   ============================================================ */

.feature-bar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid transparent;
  border-radius: 12px;
  background: 
  linear-gradient(#080513, #100a27) padding-box,
  linear-gradient(180deg, #2c1224 0%, #1d1125 100%) border-box;
}

.feature-bar::-webkit-scrollbar { display: none; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}
.feature-item:hover {
  background: rgba(233,30,140,0.1);
  border-color: var(--border-bright);
}
.feature-item.active {
  background: rgba(233,30,140,0.15);
  border-color: var(--accent-pink);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.feature-icon svg { width: 20px; height: 20px; }

.fi-rtp    { background: rgba(245,166,35,0.15); color: var(--accent-gold); border: solid 1px #f5a623; }
.fi-vol    { background: rgba(124,58,237,0.15); color: #a78bfa;  border: solid 1px #a78bfa;}
.fi-bonus  { background: rgba(233,30,140,0.15); color: var(--accent-pink); border: solid 1px #e72275; } 
.fi-theme  { background: rgba(6,182,212,0.15);  color: var(--accent-cyan);  border: solid 1px #06b6d4;}
.fi-new    { background: rgba(34,197,94,0.15);  color: #4ade80;  border: solid 1px #4ade80;}
.fi-free   { background: rgba(249,115,22,0.15); color: #fb923c;  border: solid 1px #fb923c;}
.fi-all    { background: rgba(233,30,140,0.15); color: var(--accent-pink);  border: solid 1px #e72275;}

.feature-item .badge-new {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.feature-text .label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.feature-text .sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* ============================================================
   SECTION BASE
   ============================================================ */

.section {
  padding: 28px 20px;
}
.section + .section {
  padding-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 20px;
  background: var(--grad-pink);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--accent-pink);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--dur) var(--ease);
}
.section-link:hover { gap: 8px; }

/* ============================================================
   CONTENT AREA LAYOUT
   Layout: [เกมยอดนิยม 210px] | [right column flex-1]
   Right col rows: เกมใหม่ / หมวดหมู่ / สมัคร+สถิติ
   ============================================================ */

.content-area {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* LEFT: เกมยอดนิยม — คอลัมน์ซ้าย ยาวตลอด */
.popular-games {
  width: 210px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(180deg, #4d1539 0%, #201027 100%) border-box;
  padding: 16px 12px;
   align-self: flex-start;
}
.popular-games .section-title {
  font-size: 15px;
  margin-bottom: 14px;
}
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.popular-item:hover {
  background: rgba(233,30,140,0.08);
  transform: translateX(3px);
}
.popular-item img {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.popular-item .info .name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.popular-item .info .rtp {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 2px;
}

/* RIGHT: คอลัมน์ขวา — 3 rows ซ้อนกัน */
.right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Row 1: เกมใหม่ล่าสุด */
.new-games-section {
  padding: 16px 16px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(180deg, #4d1539 0%, #201027 100%) border-box;
  margin-bottom: 10px;
}
.new-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Row 2: หมวดหมู่ */
.category-section {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(180deg, #4d1539 0%, #201027 100%) border-box;
  margin-bottom: 10px;
}

/* Row 3: สมัคร + สถิติ */
.register-stats-row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 0;
  border-top: none;
}
.register-banner {
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-color);
}
.stats-block {
  border-radius: 0;
  border: none;
  background: var(--bg-secondary);
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-pink);
}
.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.game-card:hover img { transform: scale(1.08); }

.game-card .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 1;
}
.game-card .card-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}
.game-card .card-rtp {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 2px;
}

/* Hover play button */
.game-card .card-hover {
  position: absolute;
  inset: 0;
  background: rgba(13,0,18,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  backdrop-filter: blur(2px);
}
.game-card:hover .card-hover { opacity: 1; }
.btn-play-demo {
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pink);
  display: flex; align-items: center; gap: 6px;
  transition: transform var(--dur) var(--ease);
}
.btn-play-demo:hover { transform: scale(1.05); }

/* Badge */
.game-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
}
.badge-new  { background: #e91e8c; color: #fff; }
.badge-hot  { background: #f97316; color: #fff; }

/* ============================================================
   CATEGORY ICONS SECTION
   ============================================================ */



.category-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 72px;
}

.category-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.category-item:hover .category-icon-wrap {
  background: rgba(233,30,140,0.15);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-pink);
}
.category-icon-wrap svg { width: 26px; height: 26px; }
.category-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.category-item:hover .category-label { color: var(--text-primary); }

/* ============================================================
   REGISTER BANNER + STATS ROW
   ============================================================ */

.register-stats-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 0 0 20px;
}

/* Register Banner */
.register-banner {
  background: linear-gradient(135deg, #1e0035 0%, #2d0050 50%, #1a0028 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.register-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
}
.register-banner-img {
  position: absolute;
  right: 0; bottom: 0;
  object-fit: contain;
  width: 100%;
}
.register-label {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  position: relative;
}
.register-percent {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(245,166,35,0.4);
  position: relative;
}
.register-max {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}
.register-max strong { color: var(--accent-gold); }
.btn-register-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  width: fit-content;
  box-shadow: var(--shadow-pink);
  transition: all var(--dur) var(--ease);
  position: relative;
}
.btn-register-now:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(233,30,140,0.5); }

/* Stats Block */
.stats-block {
 border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(130deg, #4d1539 0%, #201027 100%) border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.stats-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-pink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.stat-icon { color: var(--accent-pink); line-height: 1;}
.stat-icon svg { width: 35px; height: 35px;  }
.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-gold);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   FULL-WIDTH BOTTOM ZONE
   ============================================================ */

.bottom-zone {
  border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(180deg, #4d1539 0%, #201027 100%) border-box;
  padding: 32px 24px;
  margin-bottom: 10px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Featured Game */
.featured-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.featured-game-card:hover { border-color: var(--accent-pink); }
.featured-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.featured-game-info {
  padding: 14px;
}
.featured-game-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.featured-game-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-play-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
}
.btn-play-featured:hover { box-shadow: var(--shadow-pink); }

/* News Section */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.news-item:hover {
  background: #d3105240;
  border-color: var(--border-bright);
}
.news-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.news-info .news-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-info .news-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Providers */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.provider-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2/1;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.provider-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-pink);
}
.provider-item img {
  max-height: 28px;
  width: auto;
  filter: brightness(0.8) saturate(0.8);
  transition: filter var(--dur) var(--ease);
}
.provider-item:hover img { filter: brightness(1) saturate(1); }

/* ============================================================
   NEWSLETTER BAR
   ============================================================ */

.newsletter-bar {
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#170126, #160225) padding-box, linear-gradient(180deg, #360e40 0%, #451449 100%) border-box;
}
.newsletter-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.newsletter-icon {
  width: 48px; height: 48px;
  background: rgba(233,30,140,0.15);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-pink);
}
.newsletter-text .title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.newsletter-text .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.newsletter-form {
  flex: 1;
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.newsletter-form input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #000000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.newsletter-form input:focus { border-color: var(--accent-pink); }
.newsletter-form input::placeholder { color: var(--text-dim); }
.btn-newsletter {
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn-newsletter:hover { box-shadow: var(--shadow-pink); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0a000e;
  border-top: 1px solid var(--border-color);
  padding: 40px 24px 24px;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 220px;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-about {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 10px;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.social-btn:hover {
  background: rgba(233,30,140,0.15);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}
.social-btn svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  transition: color var(--dur) var(--ease);
}
.footer-links a::before {
  content: '›';
  color: var(--accent-pink);
  font-size: 16px;
  line-height: 1;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-item svg { width: 16px; height: 16px; color: var(--accent-pink); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  max-width: 1400px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-badge img {
  height: 32px;
  width: auto;
  opacity: 0.6;
}

/* ============================================================
   SINGLE GAME PAGE
   ============================================================ */

.single-game-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

.game-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.game-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
}
.game-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.game-info { display: flex; flex-direction: column; }
.game-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233,30,140,0.1);
  border: 1px solid var(--border-bright);
  color: var(--accent-pink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 12px;
}
.game-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Meta Chips */
.game-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
}
.meta-chip .chip-label { color: var(--text-muted); }
.meta-chip .chip-value { font-weight: 700; color: var(--text-primary); }
.meta-chip.chip-rtp .chip-value { color: var(--accent-gold); }
.meta-chip svg { width: 14px; height: 14px; color: var(--accent-pink); }

/* Volatility indicator */
.vol-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
}
.vol-bar {
  width: 6px; height: 14px;
  border-radius: 2px;
  background: var(--bg-secondary);
}
.vol-bar.active { background: var(--accent-pink); }

/* Game Action Buttons */
.game-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.btn-demo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: 2px solid var(--accent-pink);
  color: var(--accent-pink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.btn-demo:hover {
  background: rgba(233,30,140,0.1);
  box-shadow: var(--shadow-pink);
}
.btn-play-real {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}
.btn-play-real:hover {
  box-shadow: 0 0 32px rgba(233,30,140,0.5);
  transform: translateY(-2px);
}

/* Demo iframe section */
.game-demo-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}
.demo-header-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.demo-header-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.game-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.game-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.iframe-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-muted);
}

/* Game Description */
.game-description {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.game-description h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.game-description .content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.game-description .content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

/* Related Games */
.related-games { margin-bottom: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* ============================================================
   ARCHIVE GAMES PAGE
   ============================================================ */

.archive-layout {
  padding: 28px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.archive-header { margin-bottom: 24px; }
.archive-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.archive-title::before {
  content: '';
  width: 5px; height: 28px;
  background: var(--grad-pink);
  border-radius: 3px;
}
.archive-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 600px;
  line-height: 1.7;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}
.filter-btn {
  padding: 7px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover {
  border-color: var(--accent-pink);
  color: var(--text-primary);
}
.filter-btn.active {
  background: rgba(233,30,140,0.15);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 16px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* Games Grid */
.games-grid-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* Load More */
.load-more-wrap {
  text-align: center;
  margin: 16px 0 32px;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background: transparent;
  border: 2px solid var(--accent-pink);
  color: var(--accent-pink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-load-more:hover {
  background: rgba(233,30,140,0.1);
  box-shadow: var(--shadow-pink);
}
.btn-load-more.loading { opacity: 0.6; pointer-events: none; }

/* SEO Content */
.seo-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}
.seo-content h1, .seo-content h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ============================================================
   BLOG PAGES
   ============================================================ */

.blog-layout {
  width: 100%;
  padding: 32px 24px;
}
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color var(--dur) var(--ease);
}
.post-card:hover { border-color: var(--accent-pink); }
.post-card-img { aspect-ratio: 4/3; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 20px 20px 20px 0; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  display: flex; gap: 12px;
}

/* Single Post */
.single-post-layout {
  width: 100%;
  padding: 32px 24px;
}
.post-header { margin-bottom: 28px; }
.post-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.post-thumbnail { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.post-thumbnail img { width: 100%; }
.post-content {
  font-size: 15px;
  line-height: 1.9;
  color: #d4c8e0;
}
.post-content h2, .post-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 16px; }
.post-content img { border-radius: var(--radius-md); margin: 16px 0; }
.post-content a { color: var(--accent-pink); }

/* Post Nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.post-nav-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--dur) var(--ease);
}
.post-nav-item:hover { border-color: var(--accent-pink); }
.post-nav-dir { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.post-nav-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.post-nav-item.next { text-align: right; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}
.search-form-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.search-form-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
}
.search-form-bar input:focus { border-color: var(--accent-pink); }
.search-form-bar button {
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 24px;
  text-align: center;
}
.page-404 .num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.page-404 h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}
.page-404 p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--grad-pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}
.btn-home:hover { box-shadow: var(--shadow-pink); transform: translateY(-2px); }

/* ============================================================
   SPINNER / LOADING
   ============================================================ */

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-gold { color: var(--accent-gold); }
.text-pink { color: var(--accent-pink); }
.text-muted { color: var(--text-muted); }
.font-display { font-family: var(--font-display); }
.d-none { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .sidebar-left { display: none; }
  .btn-hamburger { display: flex; }
  .header-nav { display: none; }
  .header-actions {margin-left: auto;}

  .content-area { flex-direction: column; gap: 10px; }
  .popular-games { width: 100%; align-self: auto; }
  .popular-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

  .new-games-grid { grid-template-columns: repeat(5, 1fr); }

  .register-stats-row { grid-template-columns: 1fr; gap: 10px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr) ; }


  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }


  .bottom-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px; 
  }

  .bottom-grid > div:nth-child(1) { grid-column: 1; }
  .bottom-grid > div:nth-child(2) { grid-column: 2; }
  .bottom-grid > div:nth-child(3) { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .header-nav { display: none; }
  .btn-login { display: none; }

  .hero-banner { aspect-ratio: 16/9; border-radius: 8px; }

  .feature-bar { padding: 10px 12px; gap: 6px; }
  .feature-item { padding: 6px 10px; gap: 6px; }
  .feature-icon { width: 32px; height: 32px; }
  .feature-icon svg { width: 14px; height: 14px; }
  .feature-text .sub { display: none; }
  .feature-text .label { font-size: 11px; }

  .content-area { flex-direction: column; gap: 8px; }
  .popular-games { width: 100%; }
  .popular-list { display: grid; grid-template-columns: 1fr 1fr; }

  .new-games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .register-stats-row { grid-template-columns: 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .bottom-grid { grid-template-columns: 1fr; gap: 12px; }
  .bottom-grid > div:nth-child(1),
  .bottom-grid > div:nth-child(2),
  .bottom-grid > div:nth-child(3) {
    grid-column: 1;
  }
  .bottom-zone { padding: 16px; }

  .newsletter-inner { flex-direction: column; gap: 16px; }
  .newsletter-form { width: 100%; max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .games-grid-archive { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .archive-layout { padding: 16px; }

  .post-card { grid-template-columns: 1fr; }
  .post-card-img { aspect-ratio: 16/9; }
  .post-card-body { padding: 12px; }

  .game-hero { grid-template-columns: 1fr; }
  .game-cover { max-width: 280px; margin: 0 auto; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .single-game-layout { padding: 16px; }

  .post-nav { grid-template-columns: 1fr; }
  .single-post-layout { padding: 16px; }

  .page-404 .num { font-size: 80px; }

  .category-section .category-grid { justify-content: flex-start; }


}

/* Mobile drawer nav */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  padding-top: var(--header-h);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--dur) var(--ease);
}
.drawer-nav a:hover, .drawer-nav a.active {
  color: var(--text-primary);
  background: rgba(233,30,140,0.08);
}
.drawer-nav svg { width: 20px; height: 20px; }

/* ============================================================
   CONTENT AREA OVERRIDES
   ============================================================ */

body { background: #06000a; }

.site-body { margin-top: 0 !important; }

.sidebar-left {
  height: calc(100vh - var(--header-h));
  top: var(--header-h);
}

.content-area {
  display: flex;
  min-height: 0;
}

.popular-games .section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--grad-pink);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.category-section .section-header { margin-bottom: 0; }

.category-section .category-grid {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 10px;
  justify-content: space-around;
}
.category-section .category-grid::-webkit-scrollbar { display: none; }
.category-section .category-item { flex: 0 0 auto; min-width: 72px; }
.category-section .category-icon-wrap {
  width: 64px; height: 64px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.category-section .category-item:hover .category-icon-wrap {
  opacity: 1;
  box-shadow: 0 0 16px currentColor;
}

.register-banner {
  padding: 16px 20px;
  min-height: 220px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#080513, #100a27) padding-box, linear-gradient(180deg, #4d1539 0%, #201027 100%) border-box;
}
.register-percent { font-size: 56px; line-height: 1; margin: 4px 0; }
.register-max { font-size: 16px; margin-bottom: 20px; }
.btn-register-now { padding: 10px 24px; font-size: 15px; }

.stats-grid { grid-template-columns: repeat(4, 1fr) ; gap: 8px; }
.stat-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px 8px; }
.stat-value { font-size: 16px; }

/* Pagination */
.archive-layout .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  margin: 0 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.archive-layout .page-numbers:hover {
  background: rgba(233,30,140,0.1);
  border-color: var(--accent-pink);
  color: var(--text-primary);
}
.archive-layout .page-numbers.current {
  background: var(--grad-pink);
  border-color: var(--accent-pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.archive-layout nav.navigation { margin-top: 24px; text-align: center; }