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

/* ==========================================================================
   8 PROFESSIONAL STUDIO THEMES (Admin Selectable)
   ========================================================================== */

/* 1. DAWN — Pure Editorial Light (Apple / Dream Games Style) */
:root,
[data-theme="dawn"] {
  --is-dark: 0;
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(15, 23, 42, 0.04);
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --brand-primary: #2563eb;
  --brand-secondary: #4f46e5;
  --brand-accent: #0ea5e9;
  --brand-warm: #f59e0b;
  --brand-success: #10b981;
  --brand-danger: #ef4444;
  --btn-primary-bg: #0f172a;
  --btn-primary-hover: #1e293b;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --navbar-bg: rgba(255, 255, 255, 0.88);
  --hero-mesh: radial-gradient(110% 90% at 85% 10%, rgba(37, 99, 235, 0.09) 0%, rgba(79, 70, 229, 0.04) 45%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

/* 2. TROPICAL — Bosphorus Marine & Coral (Peak / Mobile Studio) */
[data-theme="tropical"] {
  --is-dark: 0;
  --bg-page: #f4fbfb;
  --bg-subtle: #e6f7f7;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(13, 148, 136, 0.06);
  --bg-input: #f0fdfa;
  --border-color: #cceceb;
  --border-strong: #99f6e4;
  --text-main: #082f49;
  --text-body: #334155;
  --text-muted: #64748b;
  --brand-primary: #0d9488;
  --brand-secondary: #0284c7;
  --brand-accent: #f97316;
  --brand-warm: #f59e0b;
  --brand-success: #059669;
  --brand-danger: #e11d48;
  --btn-primary-bg: #082f49;
  --btn-primary-hover: #0c4a6e;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  --navbar-bg: rgba(244, 251, 251, 0.9);
  --hero-mesh: radial-gradient(100% 80% at 80% 0%, rgba(13, 148, 136, 0.12) 0%, rgba(2, 132, 199, 0.06) 50%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(8, 47, 73, 0.04);
  --shadow-sm: 0 4px 12px rgba(8, 47, 73, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(8, 47, 73, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(8, 47, 73, 0.14);
}

/* 3. AMBER — Solstice Ivory & Burnt Sienna (Warm Indie Studio) */
[data-theme="amber"] {
  --is-dark: 0;
  --bg-page: #fbf9f5;
  --bg-subtle: #f3efe6;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(180, 83, 9, 0.05);
  --bg-input: #faf7f2;
  --border-color: #e7e0d3;
  --border-strong: #d6cbb8;
  --text-main: #1c1917;
  --text-body: #57534e;
  --text-muted: #78716c;
  --brand-primary: #d97706;
  --brand-secondary: #ea580c;
  --brand-accent: #7c3aed;
  --brand-warm: #d97706;
  --brand-success: #059669;
  --brand-danger: #dc2626;
  --btn-primary-bg: #1c1917;
  --btn-primary-hover: #292524;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  --navbar-bg: rgba(251, 249, 245, 0.9);
  --hero-mesh: radial-gradient(100% 80% at 85% 5%, rgba(234, 88, 12, 0.1) 0%, rgba(217, 119, 6, 0.05) 50%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-sm: 0 4px 12px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(28, 25, 23, 0.13);
}

/* 4. NORDIC — Architectural Platinum & Glacier Slate (Scandinavian Clean) */
[data-theme="nordic"] {
  --is-dark: 0;
  --bg-page: #f3f5f8;
  --bg-subtle: #e5e9f0;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(51, 65, 85, 0.05);
  --bg-input: #f8fafc;
  --border-color: #d8dee9;
  --border-strong: #cbd5e1;
  --text-main: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;
  --brand-primary: #3b4252;
  --brand-secondary: #4338ca;
  --brand-accent: #0284c7;
  --brand-warm: #d97706;
  --brand-success: #0d9488;
  --brand-danger: #e11d48;
  --btn-primary-bg: #1e293b;
  --btn-primary-hover: #334155;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #334155 0%, #4338ca 100%);
  --navbar-bg: rgba(243, 245, 248, 0.9);
  --hero-mesh: radial-gradient(100% 80% at 80% 0%, rgba(67, 56, 202, 0.08) 0%, transparent 70%);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.11);
}

/* 5. SAKURA — Kyoto Studio Alabaster & Arcade Crimson */
[data-theme="sakura"] {
  --is-dark: 0;
  --bg-page: #fffafb;
  --bg-subtle: #fce7f3;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(225, 29, 72, 0.05);
  --bg-input: #fff5f7;
  --border-color: #fbcfe8;
  --border-strong: #f9a8d4;
  --text-main: #18181b;
  --text-body: #52525b;
  --text-muted: #71717a;
  --brand-primary: #e11d48;
  --brand-secondary: #7c3aed;
  --brand-accent: #ec4899;
  --brand-warm: #f59e0b;
  --brand-success: #10b981;
  --brand-danger: #e11d48;
  --btn-primary-bg: #18181b;
  --btn-primary-hover: #27272a;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%);
  --navbar-bg: rgba(255, 250, 251, 0.9);
  --hero-mesh: radial-gradient(100% 80% at 85% 5%, rgba(225, 29, 72, 0.1) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-sm: 0 4px 12px rgba(225, 29, 72, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(225, 29, 72, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(225, 29, 72, 0.14);
}

/* 6. EMERALD — Botanical Mint & Deep Jade */
[data-theme="emerald"] {
  --is-dark: 0;
  --bg-page: #f4fbf7;
  --bg-subtle: #dcfce7;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(5, 150, 105, 0.06);
  --bg-input: #f0fdf4;
  --border-color: #bbf7d0;
  --border-strong: #86efac;
  --text-main: #064e3b;
  --text-body: #374151;
  --text-muted: #6b7280;
  --brand-primary: #059669;
  --brand-secondary: #0d9488;
  --brand-accent: #0284c7;
  --brand-warm: #d97706;
  --brand-success: #059669;
  --brand-danger: #e11d48;
  --btn-primary-bg: #064e3b;
  --btn-primary-hover: #065f46;
  --btn-primary-text: #ffffff;
  --btn-accent-bg: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  --navbar-bg: rgba(244, 251, 247, 0.9);
  --hero-mesh: radial-gradient(100% 80% at 85% 5%, rgba(5, 150, 105, 0.11) 0%, transparent 75%);
  --shadow-xs: 0 1px 2px rgba(6, 78, 59, 0.04);
  --shadow-sm: 0 4px 12px rgba(6, 78, 59, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(6, 78, 59, 0.14);
}

/* 7. COSMOS — Signature Obsidian & Royal Sapphire (AAA Dark) */
[data-theme="cosmos"] {
  --is-dark: 1;
  --bg-page: #090d16;
  --bg-subtle: #0f172a;
  --bg-card: #131c2e;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-input: #0f172a;
  --border-color: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --brand-primary: #6366f1;
  --brand-secondary: #38bdf8;
  --brand-accent: #818cf8;
  --brand-warm: #fbbf24;
  --brand-success: #34d399;
  --brand-danger: #fb7185;
  --btn-primary-bg: #ffffff;
  --btn-primary-hover: #e2e8f0;
  --btn-primary-text: #090d16;
  --btn-accent-bg: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --navbar-bg: rgba(9, 13, 22, 0.86);
  --hero-mesh: radial-gradient(100% 80% at 85% 5%, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

/* 8. CYBER — Carbon OLED & Electric Cyan/Emerald (Steam Deck / Pro Gaming) */
[data-theme="cyber"] {
  --is-dark: 1;
  --bg-page: #090a0f;
  --bg-subtle: #11131c;
  --bg-card: #151824;
  --bg-elevated: #1e2233;
  --bg-glass: rgba(6, 182, 212, 0.07);
  --bg-input: #0e1018;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(6, 182, 212, 0.35);
  --text-main: #f4f4f5;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --brand-primary: #06b6d4;
  --brand-secondary: #10b981;
  --brand-accent: #22d3ee;
  --brand-warm: #facc15;
  --brand-success: #10b981;
  --brand-danger: #f43f5e;
  --btn-primary-bg: #06b6d4;
  --btn-primary-hover: #22d3ee;
  --btn-primary-text: #090a0f;
  --btn-accent-bg: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --navbar-bg: rgba(9, 10, 15, 0.88);
  --hero-mesh: radial-gradient(100% 80% at 85% 5%, rgba(6, 182, 212, 0.16) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 80%);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  background-image: var(--hero-mesh);
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

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

button, input, select, textarea {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR (Desktop + Mobile Responsive Drawer)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo img {
  width: 44px;
  height: 34px;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-main);
  line-height: 1.05;
}

.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.18s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 16px 24px 20px;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-drawer a:hover {
  background: var(--bg-glass);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-webgl {
  background: var(--btn-accent-bg);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.24);
}

.btn-webgl:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.34);
}

.btn-glass {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.btn-glass:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 10px;
}

/* ==========================================================================
   EDITORIAL STUDIO HERO SECTION
   ========================================================================== */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-success);
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-body);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}

.platform-chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

/* HERO RIGHT: FEATURED GAME SHOWCASE BENTO CARD */
.hero-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-showcase-visual {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  overflow: hidden;
}

.hero-showcase-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-showcase-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero-showcase-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-showcase-body {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-showcase-info h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hero-showcase-info p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   STUDIO STATS STRIP
   ========================================================================== */
.stats-strip {
  margin: 8px 0 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTIONS & FILTER BAR
   ========================================================================== */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--text-main);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 5px;
  border-radius: 14px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
}

/* ==========================================================================
   GAMES CATALOG GRID (Mobile-First Safe Columns)
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.game-card-cover {
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.game-card-cover img.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-art-fallback {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  color: #ffffff;
}

.cover-svg-backdrop {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 190px;
  height: 190px;
  opacity: 0.22;
  pointer-events: none;
}

.game-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.status-pill {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.webgl-ready-pill {
  background: #ffffff;
  color: #0f172a;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.game-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.game-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.game-card-sub {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.55;
}

.platform-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.plat-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-body);
}

.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   WEBGL GAME ARENA & STORE DETAILS
   ========================================================================== */
.game-hub-section {
  padding: 24px 0 56px;
}

.hub-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hub-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.hub-game-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-toolbar-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.webgl-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  max-height: 620px;
  background: #070a12;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.webgl-stage-wrap.theater-mode {
  max-height: 82vh;
}

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

.webgl-unavailable-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.hub-details-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--border-color);
}

.controls-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-body);
}

.store-badges-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: all 0.18s ease;
}

.store-btn:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.store-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.store-label-top {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.store-label-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   COMMENTS & REVIEWS MODULE
   ========================================================================== */
.comments-zone {
  padding: 28px 24px;
  background: var(--bg-subtle);
}

.comments-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.rating-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.comment-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.input-field {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  transition: border-color 0.18s;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.15s, color 0.15s;
}

.star-btn.active {
  color: #f59e0b;
}

.comments-container.layout-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comments-container.layout-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comments-container.layout-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.comment-item.pinned-comment {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
}

.comment-author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 999px;
}

.comment-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.comment-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 12px;
}

.dev-reply-box {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-primary);
  font-size: 13px;
}

.dev-reply-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 3px;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.like-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.like-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================================================
   ABOUT & ROADMAP
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.roadmap-step {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  background: var(--bg-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* TOAST */
.toast-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 380px;
  margin-left: auto;
  z-index: 9999;
  background: #0f172a;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PERFECTION
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .hub-details-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .games-grid,
  .comments-container.layout-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    height: 64px;
  }

  .brand-logo {
    gap: 9px;
  }

  .brand-logo img {
    width: 36px;
    height: 28px;
  }

  .brand-title {
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .brand-sub {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hero {
    padding: 28px 0 28px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 22px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-showcase-visual {
    height: 190px;
  }

  .hero-showcase-logo {
    width: 96px;
    height: 96px;
  }

  .hero-showcase-body {
    padding: 16px;
  }

  .stats-strip {
    margin: 0 0 32px;
  }

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

  .stat-card {
    padding: 14px 16px;
  }

  .stat-val {
    font-size: 20px;
  }

  .stat-lbl {
    font-size: 11px;
  }

  .section {
    padding: 32px 0;
  }

  .game-card-cover {
    height: 175px;
  }

  .game-card-body {
    padding: 16px;
  }

  .game-card-actions {
    grid-template-columns: 1fr;
  }

  .hub-topbar {
    padding: 14px 16px;
  }

  .hub-toolbar-btns {
    width: 100%;
    justify-content: space-between;
  }

  .hub-toolbar-btns .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
  }

  .webgl-stage-wrap {
    aspect-ratio: 16 / 10;
    min-height: 230px;
  }

  .hub-details-grid,
  .comments-zone,
  .glass-panel {
    padding: 20px 16px;
  }

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

  .roadmap-item {
    flex-direction: column;
    gap: 8px;
  }
}


/* ==========================================================================
   4 SITE LAYOUTS (Admin Selectable via html[data-layout])
   1. classic   — Üst menülü klasik stüdyo düzeni (varsayılan, yukarıdaki stiller)
   2. sidebar   — Sol sabit dikey menülü, yatay oyun kartlı düzen
   3. cinematic — Tam ekran sinematik vitrin + yatay kaydırmalı oyun şeridi
   4. portal    — CrazyGames / Poki tarzı yoğun oyun portalı
   ========================================================================== */

/* ---------- LAYOUT 2: SIDEBAR (Sol Menülü) ---------- */
@media (min-width: 993px) {
  [data-layout="sidebar"] body {
    padding-left: 272px;
  }

  [data-layout="sidebar"] .navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 272px;
    height: 100vh;
    background: var(--bg-card);
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
  }

  [data-layout="sidebar"] .nav-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    max-width: none;
    padding: 30px 20px 24px;
    gap: 26px;
  }

  [data-layout="sidebar"] .brand-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
  }

  [data-layout="sidebar"] .brand-logo img {
    width: 68px;
    height: 52px;
  }

  [data-layout="sidebar"] .brand-title {
    font-size: 22px;
  }

  [data-layout="sidebar"] .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  [data-layout="sidebar"] .nav-link {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  [data-layout="sidebar"] .nav-link:hover,
  [data-layout="sidebar"] .nav-link.active {
    background: var(--bg-subtle);
  }

  [data-layout="sidebar"] .nav-actions {
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
  }

  [data-layout="sidebar"] .nav-actions .btn {
    width: 100%;
    padding: 13px;
  }

  [data-layout="sidebar"] .container {
    max-width: 1120px;
  }

  [data-layout="sidebar"] .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  [data-layout="sidebar"] .game-card {
    flex-direction: row;
  }

  [data-layout="sidebar"] .game-card-cover {
    width: 40%;
    flex-shrink: 0;
    height: auto;
    min-height: 250px;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }

  [data-layout="sidebar"] .game-card-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

/* ---------- LAYOUT 3: CINEMATIC (Sinematik Vitrin) ---------- */
[data-layout="cinematic"] .nav-inner {
  height: 76px;
}

[data-layout="cinematic"] .hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 48px 0 120px;
  text-align: center;
  overflow: hidden;
}

/* Logodaki ufuk çizgisine gönderme yapan dev yay */
[data-layout="cinematic"] .hero::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -62%;
  height: 80%;
  border-radius: 50%;
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -30px 90px -20px var(--brand-primary);
  opacity: 0.35;
  pointer-events: none;
}

[data-layout="cinematic"] .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

[data-layout="cinematic"] .hero-title {
  font-size: clamp(36px, 7vw, 86px);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.02;
}

[data-layout="cinematic"] .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

[data-layout="cinematic"] .hero-ctas,
[data-layout="cinematic"] .hero-platforms {
  justify-content: center;
}

[data-layout="cinematic"] .hero-showcase-card {
  width: 100%;
  max-width: 740px;
  display: grid;
  grid-template-columns: 230px 1fr;
  text-align: left;
}

[data-layout="cinematic"] .hero-showcase-visual {
  height: auto;
  min-height: 170px;
}

[data-layout="cinematic"] .hero-showcase-logo {
  width: 104px;
  height: 104px;
}

[data-layout="cinematic"] .section-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

[data-layout="cinematic"] .games-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 22px;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
}

[data-layout="cinematic"] .game-card {
  flex: 0 0 min(440px, 86vw);
  scroll-snap-align: start;
}

[data-layout="cinematic"] .game-card-cover {
  height: 300px;
}

@media (max-width: 640px) {
  [data-layout="cinematic"] .hero {
    min-height: auto;
    padding: 36px 0 80px;
  }

  [data-layout="cinematic"] .hero-showcase-card {
    grid-template-columns: 1fr;
  }

  [data-layout="cinematic"] .game-card-cover {
    height: 210px;
  }
}

/* ---------- LAYOUT 4: PORTAL (Oyun Portalı) ---------- */
[data-layout="portal"] body {
  display: flex;
  flex-direction: column;
}

[data-layout="portal"] .navbar { order: 0; }
[data-layout="portal"] .hero { order: 1; }
[data-layout="portal"] #games { order: 2; }
[data-layout="portal"] #arena { order: 3; }
[data-layout="portal"] .stats-strip { order: 4; margin-top: 8px; }
[data-layout="portal"] #about { order: 5; }
[data-layout="portal"] .footer { order: 6; }

[data-layout="portal"] .hero {
  padding: 20px 0 0;
}

[data-layout="portal"] .hero-grid {
  grid-template-columns: 1fr;
}

[data-layout="portal"] .hero-showcase-card,
[data-layout="portal"] .hero-subtitle,
[data-layout="portal"] .hero-platforms {
  display: none;
}

[data-layout="portal"] .hero-grid > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--btn-accent-bg);
  box-shadow: var(--shadow-md);
}

[data-layout="portal"] .hero-badge {
  margin: 0;
}

[data-layout="portal"] .hero-title {
  font-size: clamp(19px, 2.4vw, 28px);
  color: #ffffff;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

[data-layout="portal"] .hero-ctas {
  margin: 0;
}

[data-layout="portal"] .hero-ctas .btn-glass {
  display: none;
}

[data-layout="portal"] .hero-ctas .btn-primary {
  background: #ffffff;
  color: #0f172a;
}

[data-layout="portal"] .section {
  padding: 28px 0;
}

[data-layout="portal"] .games-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

[data-layout="portal"] .game-card {
  border-radius: 16px;
}

[data-layout="portal"] .game-card-cover {
  height: 150px;
}

[data-layout="portal"] .cover-art-fallback {
  padding: 16px;
}

[data-layout="portal"] .cover-art-fallback > div > div:last-child {
  font-size: 17px !important;
}

[data-layout="portal"] .game-card-sub,
[data-layout="portal"] .platform-icons-row,
[data-layout="portal"] .game-card-actions .btn-glass {
  display: none;
}

[data-layout="portal"] .game-card-body {
  padding: 14px;
}

[data-layout="portal"] .game-card-title {
  font-size: 16px;
  margin-bottom: 12px;
}

[data-layout="portal"] .game-card-actions {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  [data-layout="portal"] .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  [data-layout="portal"] .game-card-cover {
    height: 115px;
  }

  [data-layout="portal"] .game-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 11px;
  }

  [data-layout="portal"] .game-card-body {
    padding: 10px;
  }

  [data-layout="portal"] .game-card-title {
    font-size: 14px;
  }

  [data-layout="portal"] .game-card-actions .btn {
    padding: 8px;
    font-size: 12px;
  }

  [data-layout="portal"] .hero-grid > div:first-child {
    padding: 18px;
  }
}


/* ==========================================================================
   MULTILINGUAL LANGUAGE SELECTOR & RTL (Arabic) SUPPORT
   ========================================================================== */
.lang-selector-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.lang-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.lang-btn .lang-flag {
  font-size: 15px;
  line-height: 1;
}

.lang-btn .lang-code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.lang-btn .lang-arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.lang-selector-dropdown.open .lang-btn .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 350;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: langMenuFadeIn 0.18s ease-out;
}

@keyframes langMenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-selector-dropdown.open .lang-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-subtle);
  color: var(--brand-primary);
}

.lang-option.active {
  background: var(--bg-subtle);
  color: var(--brand-primary);
  font-weight: 800;
}

.lang-opt-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-opt-flag {
  font-size: 15px;
}

.lang-opt-check {
  font-size: 12px;
  color: var(--brand-primary);
  display: none;
}

.lang-option.active .lang-opt-check {
  display: inline;
}

/* Mobile Drawer Language Selector */
.mobile-lang-section {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}

.mobile-lang-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-lang-chip.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   RTL (Right-To-Left) SUPPORT FOR ARABIC
   ========================================================================== */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-badge-dot {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .btn svg,
[dir="rtl"] .nav-actions svg {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .brand-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand-text-wrap {
  text-align: right;
}

[dir="rtl"] .game-meta-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .roadmap-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .comments-header-bar,
[dir="rtl"] .hub-topbar {
  flex-direction: row-reverse;
}

[dir="rtl"] .star-picker {
  flex-direction: row-reverse;
}

[dir="rtl"] .star-picker span {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .footer-links a svg {
  margin-right: 0;
  margin-left: 6px;
}
