/* ==========================================================================
   PlayZone HTML5 Games Portal - Master Stylesheet
   Modern, Ultra-Responsive, AdSense Policy Compliant Dark/Light Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Dark Theme (Default) */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg-body: #0a0e17;
  --bg-header: rgba(13, 19, 33, 0.88);
  --bg-sidebar: #0d1321;
  --bg-card: #151d30;
  --bg-card-hover: #1b263e;
  --bg-surface: #121929;
  --bg-input: #1b2438;
  --bg-modal: #121929;
  --bg-modal-overlay: rgba(5, 8, 15, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0a0e17;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  --border-focus: #6366f1;

  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  --badge-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --hero-glow: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.25) 0%, rgba(10, 14, 23, 0) 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.35);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --header-height: 72px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 78px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-body: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #f1f5f9;
  --bg-input: #e2e8f0;
  --bg-modal: #ffffff;
  --bg-modal-overlay: rgba(15, 23, 42, 0.6);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.2);
  --hero-glow: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: transparent;
}

button {
  cursor: pointer;
  user-select: none;
}

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

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: all var(--transition-normal);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}
.sidebar-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.logo-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .logo-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--accent-primary);
  color: #ffffff;
  margin-left: 4px;
}

/* Search Bar */
.header-center {
  flex: 1;
  max-width: 520px;
  margin: 0 1.5rem;
  position: relative;
}

.search-box-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 3.25rem 0 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.95rem;
}

.search-shortcut {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Autocomplete Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-dropdown.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover, .dropdown-item.selected {
  background: var(--bg-card-hover);
}

.dropdown-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.dropdown-item-info {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dropdown-item-rating {
  color: var(--accent-gold);
  font-weight: 600;
}

.dropdown-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-action-btn {
  height: 40px;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.header-action-btn.icon-only {
  width: 40px;
  padding: 0;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.random-btn {
  background: var(--accent-gradient);
  color: #ffffff;
}
.random-btn:hover {
  background: var(--accent-gradient-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Category Navigation Pills Bar
   ========================================================================== */
.category-pills-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   App Layout & Sidebar
   ========================================================================== */
.app-container {
  display: flex;
  flex: 1;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  transition: width var(--transition-smooth), transform var(--transition-smooth);
  z-index: 900;
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.app-sidebar.collapsed .sidebar-text,
.app-sidebar.collapsed .sidebar-badge,
.app-sidebar.collapsed .sidebar-section-title,
.app-sidebar.collapsed .sidebar-tags-wrap,
.app-sidebar.collapsed .sidebar-footer {
  display: none;
}

.app-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.8rem 0;
}

.sidebar-content {
  padding: 1.25rem 0.85rem;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.sidebar-link.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-dim);
}
.sidebar-link.active .sidebar-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Sidebar Tag Cloud */
.sidebar-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
}

.sidebar-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.sidebar-tag:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.sidebar-footer {
  padding: 1rem 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.sidebar-footer a:hover {
  color: var(--accent-primary);
}

/* Main Content Area */
.app-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  background: var(--hero-glow);
  overflow-y: auto;
}

/* ==========================================================================
   AdSense Ad Slots & Policy Markers
   ========================================================================== */
.adsense-slot-wrapper {
  margin: 1.5rem auto;
  width: 100%;
  text-align: center;
}

.ad-label-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.adsense-placeholder-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color var(--transition-fast);
}

.adsense-placeholder-box:hover {
  border-color: var(--border-color-hover);
}

.ad-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.ad-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.ad-meta-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ad-subtext {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.ad-header-slot {
  max-width: 970px;
  margin: 0.5rem auto 1.5rem auto;
}

.ad-sidebar-slot {
  margin: 1.5rem 0;
  max-width: 300px;
}

/* ==========================================================================
   Home Hero Spotlight & Section Headers
   ========================================================================== */
.hero-spotlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--badge-gradient);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}
.btn-primary-hero:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.btn-secondary-hero:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.hero-preview-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  aspect-ratio: 16/9;
  cursor: pointer;
}

.hero-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-preview-box:hover .hero-preview-img {
  transform: scale(1.04);
}

.hero-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.hero-play-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

/* Section Titles & Controls */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title-icon {
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.filter-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-select-wrap {
  position: relative;
}

.sort-select {
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sort-select:hover, .sort-select:focus {
  border-color: var(--border-focus);
}

.select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.75rem;
}

/* ==========================================================================
   Games Grid & Cards
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-hover);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-surface);
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.game-card:hover .card-thumb {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.card-rating-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-fav-btn {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  color: var(--accent-red);
}

.card-fav-btn.active {
  color: var(--accent-red);
  background: #ffffff;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.game-card:hover .card-hover-overlay {
  opacity: 1;
}

.card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-glow);
  transform: scale(0.85);
  transition: transform var(--transition-fast);
}

.game-card:hover .card-play-icon {
  transform: scale(1);
}

.card-info {
  padding: 0.75rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-category-name {
  color: var(--accent-primary);
  font-weight: 600;
}

.card-plays {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   Single Game Player View
   ========================================================================== */
.game-view-container {
  max-width: 1300px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb-nav a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.game-player-theater {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 520px;
  background: #000000;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Pre-Play Splash Overlay */
.game-splash-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.game-splash-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
}

.game-splash-content {
  position: relative;
  z-index: 11;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-game-icon {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.splash-game-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.splash-game-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.splash-play-btn {
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
}

.splash-play-btn:hover {
  transform: scale(1.08);
}

/* In-Game Toolbar */
.game-toolbar {
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolbar-game-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.toolbar-rating-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.star-rating-interactive {
  display: flex;
  gap: 2px;
  cursor: pointer;
}
.star-rating-interactive i {
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.star-rating-interactive i:hover {
  transform: scale(1.2);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toolbar-btn {
  height: 36px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.toolbar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.toolbar-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Cinema / Lights Off Mode */
body.cinema-mode .site-header,
body.cinema-mode .category-pills-bar,
body.cinema-mode .app-sidebar,
body.cinema-mode .game-details-layout,
body.cinema-mode .site-footer {
  opacity: 0.08;
  pointer-events: none;
  filter: blur(3px);
  transition: all var(--transition-smooth);
}

body.cinema-mode .game-player-theater {
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  border-color: var(--accent-primary);
}

/* Game Content Layout (2 Columns) */
.game-details-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.game-main-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.info-card-title i {
  color: var(--accent-primary);
}

.game-article-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.game-article-text p {
  margin-bottom: 0.85rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.features-list li i {
  color: var(--accent-green);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Controls Table */
.controls-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Comments & Reviews */
.comments-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-submit-review {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.btn-submit-review:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.comment-stars {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sidebar Widgets */
.game-side-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-meta-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.game-meta-specs li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.game-meta-specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-dim);
}

.spec-val {
  font-weight: 600;
  color: var(--text-main);
}

.related-games-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.related-game-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.related-game-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateX(4px);
}

.related-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Editorial Portal Guide on Homepage
   ========================================================================== */
.portal-editorial-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.portal-editorial-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.portal-editorial-section h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-main);
}

.portal-editorial-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Static Editorial / Legal Policy Pages Styling
   ========================================================================== */
.policy-page-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.policy-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.policy-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.policy-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.policy-content {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 0.75rem 0;
}

.policy-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem 0;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul {
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.policy-content li {
  margin-bottom: 0.4rem;
}

/* Contact Us Form */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.btn-send-message {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}
.btn-send-message:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-smooth);
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-dim);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.share-btn i {
  font-size: 1.3rem;
}

.share-btn.twitter:hover { background: #1da1f2; color: #ffffff; }
.share-btn.whatsapp:hover { background: #25d366; color: #ffffff; }
.share-btn.facebook:hover { background: #1877f2; color: #ffffff; }
.share-btn.reddit:hover { background: #ff4500; color: #ffffff; }

.copy-link-wrap {
  display: flex;
  gap: 0.5rem;
}

.copy-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
}

.btn-copy {
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateY(120%);
  transition: transform var(--transition-smooth);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-cookie-decline {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 3000;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left-color: var(--accent-green); }
.toast.info { border-left-color: var(--accent-primary); }
.toast.warning { border-left-color: var(--accent-gold); }

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .game-details-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 1rem;
  }

  .header-center {
    display: none;
  }

  .app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  .app-main {
    padding: 1rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
  }

  .policy-page-wrap {
    padding: 1.5rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .game-frame-wrapper {
    min-height: 340px;
  }
}
