/* ==========================================================================
   ENJOYGAME.RU — MODERN BROWSER GAMES PORTAL THEME
   Pages: index.html (Home), category.html (Category), game.html (Single Game)
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.BIlI-RSd.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-medium.BtpT8GHy.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-bold.3YaSV81l.woff2') format('woff2');
}

:root {
  --bg-page: #0b0e17;
  --bg-surface: #121724;
  --bg-elevated: #181f30;
  --bg-card: #161c2c;
  --bg-card-hover: #1e263b;
  --bg-input: #0f1320;
  --bg-glass: rgba(18, 23, 36, 0.84);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --accent: #7c5cff;
  --accent-hover: #9074ff;
  --accent-2: #22d3ee;
  --accent-3: #34d399;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #38bdf8 55%, #34d399 100%);
  --accent-glow: 0 8px 28px rgba(124, 92, 255, 0.35);

  --gold: #fbbf24;
  --rose: #fb7185;
  --emerald: #34d399;

  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-pill: 0;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);

  --header-h: 66px;
  --enjoygame-nav-height: 52px;
  --sidebar-w: 232px;
  --enjoygame-shell-max: calc(1440px + var(--sidebar-w) - 52px);
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Square blocks, including catalogue rules loaded after this site theme. */
html .player-stage,
html .player-mini-cover,
html .catalog-hint,
html .catalog-pagination a,
html .quick-chip,
html .filter-chip,
html .nav-count,
html .search-kbd,
html .search-item img,
html .fav-count,
html .section-title-icon,
html .mini-hero-badge,
html .rating-pill,
html .tag-pill,
html .cat-tile-icon,
html .category-hero-icon,
html .kbd-cap,
html .rail-item img {
  border-radius: 0;
}

[data-theme="light"] {
  --bg-page: #f3f5fa;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #eef2f8;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(124, 92, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 35% at 85% 0%, rgba(34, 211, 238, 0.10), transparent 70%);
  background-attachment: fixed;
  color: var(--text-1);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(124, 92, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 35% at 85% 0%, rgba(34, 211, 238, 0.07), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.enjoygame-site-container {
  width: 100%;
}
.enjoygame-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}
.topbar {
  position: static;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 0 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.burger-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.burger-btn:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.burger-btn svg {
  width: 20px;
  height: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}
.brand-logo:hover {
  opacity: 0.9;
}
.brand-logo img {
  height: 36px;
  width: auto;
}
.brand-wordmark > .enjoygame-brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}
[data-theme="light"] .brand-logo-text-dark {
  color: #0f172a;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
  flex-shrink: 0;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  color: #0b0e17;
}
.brand-accent {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Top navigation */
.enjoygame-top-nav {
  position: static;
  height: var(--enjoygame-nav-height);
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.enjoygame-top-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.enjoygame-top-nav li {
  flex: 0 0 auto;
}
.enjoygame-top-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.enjoygame-top-nav a:hover,
.enjoygame-top-nav a:focus-visible {
  background: var(--bg-elevated);
  color: var(--text-1);
}
.enjoygame-top-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  background: rgba(124, 92, 255, 0.14);
  color: var(--text-1);
}
.enjoygame-top-nav a:focus-visible {
  outline-offset: -3px;
}
html .app-shell {
  min-height: calc(100vh - var(--header-h) - var(--enjoygame-nav-height));
}
html .sidebar {
  top: calc(var(--header-h) + var(--enjoygame-nav-height));
  height: calc(100vh - var(--header-h) - var(--enjoygame-nav-height));
}
html body.sidebar-open .sidebar-overlay {
  inset: calc(var(--header-h) + var(--enjoygame-nav-height)) 0 0;
}
html {
  scroll-padding-top: calc(var(--header-h) + var(--enjoygame-nav-height) + 12px);
}
@media (max-width: 600px) {
  .enjoygame-top-nav { padding: 0 12px; }
  .enjoygame-top-nav a { padding: 0 10px; }
}

/* Contact form */
[data-theme="light"] .eg-contact-hero .hero-kicker {
  color: #4c1d95;
}
.eg-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  align-items: start;
  gap: 24px;
}
.eg-contact-card,
.eg-contact-help {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.eg-contact-card h2,
.eg-contact-help h2 {
  margin-bottom: 22px;
  font-size: 21px;
  line-height: 1.35;
}
.eg-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.eg-contact-grid label {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}
.eg-contact-grid input,
.eg-contact-grid select,
.eg-contact-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-input);
  color: var(--text-1);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.eg-contact-grid textarea {
  resize: vertical;
  min-height: 180px;
}
.eg-contact-grid select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.eg-contact-grid input:focus,
.eg-contact-grid select:focus,
.eg-contact-grid textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.eg-contact-wide { grid-column: 1 / -1; }
.eg-field-note,
.eg-field-help,
.eg-contact-privacy {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
.eg-field-help { margin-top: -8px; }
.eg-contact-privacy { margin: 22px 0; }
.eg-contact-submit { height: auto; min-height: 46px; padding: 12px 24px; }
.eg-contact-submit:disabled { cursor: wait; opacity: .65; }
.eg-contact-status { margin-top: 20px; padding: 14px; overflow-wrap: anywhere; }
.eg-contact-status:empty { display: none; }
.eg-contact-status.is-success { border: 1px solid #34d399; background: rgba(52, 211, 153, .1); }
.eg-contact-status.is-error { border: 1px solid #fb7185; background: rgba(251, 113, 133, .1); }
.eg-contact-help { color: var(--text-2); line-height: 1.7; }
.eg-contact-help h2 { color: var(--text-1); }
.eg-contact-help ul { margin: 0 0 20px; padding-left: 20px; }
.eg-contact-help li + li { margin-top: 12px; }
.eg-contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.eg-report-link { margin: 14px 0 22px; color: var(--text-2); font-size: 15px; }
.eg-report-link a { display: inline-block; padding: 10px 0; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1120px) {
  .eg-contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .eg-contact-card, .eg-contact-help { padding: 20px; }
  .eg-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .eg-contact-submit { width: 100%; }
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 520px;
  margin: 0;
  order: 0;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 42px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-1);
  transition: var(--transition);
}
.search-input::placeholder {
  color: var(--text-3);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}
.search-kbd {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 120;
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown.open {
  display: block;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background: var(--bg-card-hover);
}
.search-item img {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.search-item-meta {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.search-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}

/* Header Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.action-pill {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  transition: var(--transition);
}
.action-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.action-pill svg {
  width: 17px;
  height: 17px;
  color: var(--accent-2);
}
.action-pill.icon-only {
  width: 40px;
  padding: 0;
  justify-content: center;
}
.fav-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   APP SHELL: SIDEBAR + MAIN
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px 24px;
  overflow-y: auto;
  transition: width var(--transition), transform var(--transition);
  z-index: 70;
}

body.sidebar-collapsed .sidebar {
  width: 74px;
}
body.sidebar-collapsed .sidebar .nav-label,
body.sidebar-collapsed .sidebar .nav-count,
body.sidebar-collapsed .sidebar .sidebar-group-title,
body.sidebar-collapsed .sidebar .sidebar-promo {
  display: none;
}
body.sidebar-collapsed .sidebar .nav-link {
  justify-content: center;
  padding: 10px;
}

.sidebar-group {
  margin-bottom: 18px;
}
.sidebar-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0 12px 8px;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-1);
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.22), rgba(56, 189, 248, 0.10));
  color: var(--text-1);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-link.active svg {
  color: var(--accent-2);
  opacity: 1;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 99px;
}
.nav-link.active .nav-count {
  background: rgba(124, 92, 255, 0.28);
  color: var(--text-1);
}

.sidebar-promo {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.25);
}
.sidebar-promo-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sidebar-promo-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.65);
  z-index: 65;
}

/* Main Content Area */
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 26px 40px;
}

@media (min-width: 901px) {
  /* Keep the original content dimensions; move the surrounding UI inward. */
  .enjoygame-site-container {
    width: calc(100% - 52px);
    max-width: var(--enjoygame-shell-max);
    margin: 0 auto;
  }
  .container {
    max-width: none;
    padding-inline: 0;
  }
}

/* Mobile Quick Genre Strip */
.mobile-genre-strip {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  scrollbar-width: none;
}
.mobile-genre-strip::-webkit-scrollbar {
  display: none;
}
.m-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.m-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================================
   HOME HERO BENTO SHOWCASE
   ========================================================================== */
.hero-bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-spotlight {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.hero-spotlight-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-spotlight:hover .hero-spotlight-bg {
  transform: scale(1.04);
}
.hero-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 22, 0.94) 0%, rgba(9, 12, 22, 0.72) 52%, rgba(9, 12, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 12, 22, 0.92) 0%, transparent 55%);
}
.hero-spotlight-body {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 255, 0.24);
  border: 1px solid rgba(124, 92, 255, 0.48);
  color: #e2d9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 10px;
}
.hero-desc {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: #090d16;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
}
.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-stat-pill .star {
  color: var(--gold);
}

/* Right 2x2 Featured Mini-Grid */
.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mini-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 154px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.mini-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mini-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 12, 22, 0.9) 0%, rgba(9, 12, 22, 0.12) 60%);
}
.mini-hero-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.mini-hero-card:hover img {
  transform: scale(1.07);
}
.mini-hero-info {
  position: relative;
  z-index: 2;
  width: 100%;
}
.mini-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  margin-bottom: 4px;
}
.mini-hero-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Filter Chips Bar */
.filter-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 26px;
  scrollbar-width: none;
}
.filter-chips-bar::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition);
}
.chip-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-1);
  background: var(--bg-card-hover);
}
.chip-btn.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--accent);
  color: var(--text-1);
}

/* ==========================================================================
   SECTIONS & GAME CARDS GRID
   ========================================================================== */
.shelf-section {
  margin-bottom: 34px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-left: 20px;
}
.section-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}
.section-title-icon svg {
  width: 18px;
  height: 18px;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  transition: var(--transition);
}
.section-more:hover {
  background: rgba(34, 211, 238, 0.16);
  transform: translateX(2px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.games-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.games-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 92, 255, 0.25);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-input);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-card:hover .card-media img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(11, 14, 23, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rating-pill svg {
  width: 12px;
  height: 12px;
  color: var(--gold);
}
.tag-pill {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  color: #fff;
}
.tag-pill.new {
  background: linear-gradient(135deg, #0ea5e9, #34d399);
  color: #09101c;
}

.card-play-layer {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 23, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}
.game-card:hover .card-play-layer {
  opacity: 1;
}
.card-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.55);
}
.game-card:hover .card-play-circle {
  transform: scale(1);
}
.card-play-circle svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.card-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
}
.card-plays {
  font-size: 11px;
  color: var(--text-3);
}

/* ==========================================================================
   CATEGORY TILES WALL (HOME)
   ========================================================================== */
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.cat-tile {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  transition: var(--transition);
}
.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--tile-color, rgba(124, 92, 255, 0.2)), transparent 65%);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.cat-tile:hover::before {
  opacity: 1;
}
.cat-tile-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.cat-tile-text {
  position: relative;
  min-width: 0;
}
.cat-tile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.cat-tile-count {
  font-size: 12px;
  color: var(--text-2);
}

/* ==========================================================================
   BREADCRUMBS & CATEGORY PAGE
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.breadcrumbs a:hover {
  color: var(--text-1);
}
.breadcrumbs .sep {
  color: var(--text-3);
}
.breadcrumbs .current {
  color: var(--text-1);
  font-weight: 600;
}

.category-hero {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.18) 0%, rgba(34, 211, 238, 0.10) 55%, rgba(18, 23, 36, 0.92) 100%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
[data-theme="light"] .category-hero {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(34, 211, 238, 0.10) 60%, #ffffff 100%);
}
.category-hero-left {
  max-width: 780px;
}
.category-hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.category-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #090d16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
}
.category-hero-icon svg {
  width: 26px;
  height: 26px;
}
.category-hero-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.category-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-box {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 112px;
}
.stat-box-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
}
.stat-box-lbl {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.subtags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.subtag {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.subtag:hover, .subtag.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.sort-select {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 36px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.page-btn:hover {
  border-color: var(--accent);
  color: var(--text-1);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}

/* ==========================================================================
   SINGLE GAME PAGE
   ========================================================================== */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.game-layout.theater-mode {
  grid-template-columns: minmax(0, 1fr);
}
.game-layout.theater-mode .game-rail {
  display: none;
}

.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #070910;
  overflow: hidden;
}
.game-layout.theater-mode .player-stage {
  aspect-ratio: auto;
  height: calc(100vh - 150px);
  min-height: 540px;
}
.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Click-to-play Curtain */
.player-curtain {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 4;
}
.player-curtain-bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(18px) brightness(0.42);
  z-index: -1;
}
.player-curtain-thumb {
  width: 190px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.player-curtain-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.player-curtain-sub {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 20px;
}
.btn-launch-game {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: #080c15;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(124, 92, 255, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-launch-game:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.55);
}
.btn-launch-game svg {
  width: 20px;
  height: 20px;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 22, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
  color: #fff;
}
.player-loader.active {
  display: flex;
}
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Player Toolbar */
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.player-game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player-mini-cover {
  width: 54px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.player-h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.player-submeta {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ctrl-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.ctrl-btn svg {
  width: 16px;
  height: 16px;
}
.ctrl-btn:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.ctrl-btn.active {
  background: rgba(124, 92, 255, 0.22);
  border-color: var(--accent);
  color: var(--text-1);
}
.ctrl-btn.liked {
  background: rgba(52, 211, 153, 0.18);
  border-color: var(--emerald);
  color: var(--emerald);
}
.ctrl-btn.faved {
  background: rgba(251, 113, 133, 0.18);
  border-color: var(--rose);
  color: var(--rose);
}

/* Game Details Panel */
.info-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.info-grid-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.meta-tile {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.meta-tile-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.meta-tile-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.info-heading {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}
.info-text p + p {
  margin-top: 10px;
}

.controls-keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.kbd-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--transition);
}
.game-tag:hover {
  border-color: var(--accent);
  color: var(--text-1);
}

/* Right Rail on Game Page */
.game-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.rail-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.rail-item:hover {
  background: var(--bg-card-hover);
}
.rail-item img {
  width: 82px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.rail-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-item-meta {
  font-size: 11px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SEO / FAQ BLOCK & FOOTER
   ========================================================================== */
.seo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-top: 12px;
}
.seo-box h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}
.seo-box p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--accent-2);
  font-weight: 600;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.site-footer {
  margin-top: auto;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 28px 26px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--text-1);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1320px) {
  .games-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .cat-tiles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .hero-side-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .games-grid, .games-grid.cols-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-rail .rail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    transform: translateX(-100%);
    width: 260px !important;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .mobile-genre-strip {
    display: flex;
  }
  .container {
    padding: 18px 16px 32px;
  }
  .games-grid, .games-grid.cols-5, .games-grid.cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-grid-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .action-pill .pill-text {
    display: none;
  }
  .action-pill {
    padding: 0 11px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0 12px;
    gap: 10px;
  }
  .search-kbd {
    display: none;
  }
  .topbar .search-icon {
    display: none;
  }
  html .topbar .search-input {
    padding-left: 10px;
    padding-right: 54px !important;
  }
  .topbar .search-submit {
    right: 8px;
  }
  .brand-wordmark span {
    display: none;
  }
  .hero-spotlight {
    min-height: 260px;
    padding: 20px;
  }
  .hero-side-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-grid, .games-grid.cols-5, .games-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .player-stage {
    min-height: 240px;
  }
  .game-rail .rail-list {
    grid-template-columns: 1fr;
  }
}
