/* ==========================================================================
   BrainDrop Games — Official Studio Design System
   Modern, responsive, accessible, dark-mode indie game studio theme.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darkest: #06080d;
  --bg-primary: #0a0d14;
  --bg-surface: #101522;
  --bg-surface-elevated: #161c2d;
  --bg-surface-card: #121826;
  --bg-surface-card-hover: #182032;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent-cyan: rgba(56, 189, 248, 0.35);
  --border-accent-purple: rgba(168, 85, 247, 0.35);
  --border-accent-gold: rgba(245, 158, 11, 0.35);
  --border-accent-emerald: rgba(16, 185, 129, 0.35);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #050811;

  /* Accent Colors */
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-purple: #a855f7;
  --accent-magenta: #ec4899;
  --accent-amber: #fbbf24;
  --accent-emerald: #10b981;

  /* Gradients */
  --grad-crystal: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #ec4899 100%);
  --grad-cyan-blue: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(22, 28, 45, 0.7) 0%, rgba(18, 24, 38, 0.95) 100%);

  /* Typography & Layout */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-stack);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-darkest);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  text-align: center;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(6, 8, 13, 0.72) 0%, rgba(6, 8, 13, 0.94) 75%, var(--bg-darkest) 100%),
    url('/assets/studio-background.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-brand-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-crest-img {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.55), 0 0 100px rgba(56, 189, 248, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: 0.85rem;
}

.hero-crest-img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 65px rgba(168, 85, 247, 0.75), 0 0 120px rgba(56, 189, 248, 0.45);
}

.hero-crest-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.85rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 0 auto 1.5rem;
}

.hero-title .text-gradient {
  background: var(--grad-crystal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--grad-crystal);
  color: #050811;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.hero-badge-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Games Showcase Section
   ========================================================================== */
.games-section {
  padding: 5.5rem 0;
  position: relative;
}

.game-card-large {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.game-card-large.magnet-theme:hover {
  border-color: var(--border-accent-purple);
  box-shadow: 0 16px 45px rgba(168, 85, 247, 0.15);
}

.game-card-large.pourly-theme:hover {
  border-color: var(--border-accent-cyan);
  box-shadow: 0 16px 45px rgba(56, 189, 248, 0.15);
}

.game-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  background-color: #0b1120;
}

.game-body {
  padding: 2.75rem;
}

.game-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.game-app-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.game-name {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.game-tagline {
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: 1rem;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.game-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.45rem;
  color: #fff;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.game-play-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
  color: #fff;
}

.game-play-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.game-play-btn-text {
  text-align: left;
  line-height: 1.2;
}

.game-play-btn-small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.game-play-btn-brand {
  font-size: 1.05rem;
  font-weight: 700;
}

.game-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.game-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-box-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.feature-box-title span.emoji {
  font-size: 1.25rem;
}

.feature-box-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.game-gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.game-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 9 / 16;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.game-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.game-gallery-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.game-gallery-item:hover img {
  transform: scale(1.05);
}

.game-gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.game-gallery-item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   About / Studio Section
   ========================================================================== */
.about-section {
  padding: 5.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.about-text h3 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.015em;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-crest-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent-purple);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-crest-img {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.1rem;
}

.about-crest-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.about-crest-subtitle {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.about-crest-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 380px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pillar-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--accent-cyan);
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 5.5rem 0;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.faq-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-question span.q-badge {
  color: var(--accent-cyan);
  font-size: 1.15rem;
  font-weight: 800;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  padding-left: 1.85rem;
}

/* ==========================================================================
   Support & Verification Section
   ========================================================================== */
.support-section {
  padding: 5.5rem 0;
  background: radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 70%), var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.support-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-accent-cyan);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5);
}

.support-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.support-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent-cyan);
}

.support-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.support-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.support-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
  margin-bottom: 1.75rem;
}

.support-email-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.support-checklist {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.support-checklist strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.support-checklist ul {
  list-style-position: inside;
  line-height: 1.65;
}

/* Privacy & Ad Transparency Highlight Box */
.privacy-highlight-box {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3.5rem auto 0;
  max-width: 860px;
}

.privacy-highlight-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.privacy-highlight-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Lightbox Screenshot Modal
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-subtle);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.policy-page {
  padding: 4.5rem 0 6rem;
}

.policy-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

.policy-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.policy-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

.policy-content p, .policy-content li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.policy-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #05060a;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
  margin-top: 0.75rem;
}

.footer-col h5 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .game-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    background: #0d121c;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.2rem;
    z-index: 999;
  }
  .game-body {
    padding: 1.6rem;
  }
  .game-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .game-play-btn {
    justify-content: center;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .policy-content {
    padding: 2rem 1.5rem;
  }
  .support-box {
    padding: 2.25rem 1.25rem;
  }
}



/* ==========================================================================
   Light Mode (White Mood) Theme System
   ========================================================================== */
:root[data-theme="light"] {
  --bg-darkest: #f4f6fa;
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-card: #ffffff;
  --bg-surface-card-hover: #f1f5f9;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.16);
  --border-accent-cyan: rgba(2, 132, 199, 0.35);
  --border-accent-purple: rgba(147, 51, 234, 0.35);
  --border-accent-gold: rgba(217, 119, 6, 0.35);
  --border-accent-emerald: rgba(5, 150, 105, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-cyan: #0284c7;
  --accent-blue: #0369a1;
  --accent-purple: #7c3aed;
  --accent-magenta: #db2777;
  --accent-amber: #d97706;
  --accent-emerald: #059669;

  --grad-crystal: linear-gradient(135deg, #0284c7 0%, #7c3aed 50%, #db2777 100%);
  --grad-cyan-blue: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --grad-amber: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-dark-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="light"] body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .nav-links a {
  color: #475569;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #0f172a;
}

[data-theme="light"] .nav-cta {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .nav-cta:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .hero-section {
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.96) 75%, var(--bg-darkest) 100%),
    url('/assets/studio-background.jpg');
}

[data-theme="light"] .hero-pill {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .hero-crest-img {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-badge-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .game-card-large {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feature-box {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .game-gallery-item {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .about-crest-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pillar-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .support-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .support-checklist {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .privacy-highlight-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .policy-content {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .policy-content code {
  background: rgba(15, 23, 42, 0.06);
  color: #0284c7;
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #94a3b8;
}

[data-theme="light"] .footer-col a {
  color: #cbd5e1;
}

[data-theme="light"] .footer-col a:hover {
  color: #38bdf8;
}

[data-theme="light"] .footer-brand p {
  color: #cbd5e1;
}

/* ==========================================================================
   Header Action Controls (Theme & Lang Switchers)
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle-btn, .lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  height: 38px;
  min-width: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .lang-toggle-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .lang-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.1);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: inline-block; font-size: 1.1rem; }

[data-theme="light"] .theme-icon-light { display: inline-block; font-size: 1.1rem; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ==========================================================================
   Product Filter Tabs
   ========================================================================== */
.product-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-tab.active {
  background: var(--accent-cyan);
  color: #050811;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

[data-theme="light"] .filter-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.category-badge.app-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .category-badge.app-badge {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.25);
}

.category-badge.game-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .category-badge.game-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   Rafiq - Islamic Companion Theme
   ========================================================================== */
.rafiq-theme {
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.08);
}

.rafiq-theme:hover {
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 14px 48px rgba(16, 185, 129, 0.16);
}

.rafiq-theme .game-tagline {
  color: #10b981;
}

[data-theme="light"] .rafiq-theme .game-tagline {
  color: #059669;
}

.rafiq-tag {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] .rafiq-tag {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #047857 !important;
  border-color: rgba(5, 150, 105, 0.25) !important;
}

.rafiq-play-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.rafiq-play-btn:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   RTL & Arabic Localization System
   ========================================================================== */
html[lang="ar"], [dir="rtl"] {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .brand-logo {
  letter-spacing: normal;
}

[dir="rtl"] .nav-links {
  padding-right: 0;
}

[dir="rtl"] .game-header-row {
  text-align: right;
}

[dir="rtl"] .game-identity {
  text-align: right;
}

[dir="rtl"] .game-tags {
  justify-content: flex-start;
}

[dir="rtl"] .feature-box-title {
  text-align: right;
  gap: 0.65rem;
}

[dir="rtl"] .feature-box-desc {
  text-align: right;
}

[dir="rtl"] .policy-content ul {
  padding-left: 0;
  padding-right: 1.6rem;
}

[dir="rtl"] .support-checklist {
  text-align: right;
}

[dir="rtl"] .support-checklist ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

[dir="rtl"] .footer-top {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .footer-col ul {
  padding-right: 0;
}

/* Bilingual Language Switcher Tabs on Legal Pages */
.policy-lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-lang-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.policy-lang-tab.active {
  background: var(--accent-cyan);
  color: #050811;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .policy-lang-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* ==========================================================================
   THE LOST TEMPLE Theme
   ========================================================================== */
.temple-theme {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.08);
}

.temple-theme:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 14px 48px rgba(245, 158, 11, 0.18);
}

.temple-theme .game-tagline {
  color: #fbbf24;
}

[data-theme="light"] .temple-theme .game-tagline {
  color: #d97706;
}

.temple-tag {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .temple-tag {
  background: rgba(217, 119, 6, 0.1) !important;
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

.temple-play-btn {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35) !important;
}

.temple-play-btn:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55) !important;
  transform: translateY(-2px);
}
