/* ==========================================================================
   Ashes of Fallen World - Official Theme & Core Stylesheet
   Dark Fantasy RPG Aesthetic - 100% Bulletproof Mobile Responsive
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darker: #07080a;
  --bg-dark: #0d0f14;
  --bg-card: rgba(20, 24, 33, 0.85);
  --bg-card-hover: rgba(28, 34, 48, 0.95);
  --bg-glass: rgba(13, 15, 20, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 59, 0.35);
  --border-gold-bright: #e5a93b;
  
  --accent-gold: #e5a93b;
  --accent-gold-light: #fcd34d;
  --accent-crimson: #c93b3b;
  --accent-crimson-bright: #ef4444;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;

  /* Typography */
  --font-title: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #f59e0b;

  /* Elevations & Shadows */
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(229, 169, 59, 0.2);
  --shadow-crimson: 0 0 25px rgba(201, 59, 59, 0.3);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Strict Zero Horizontal Overflow */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(201, 59, 59, 0.12), transparent 45%),
    radial-gradient(circle at 10% 30%, rgba(229, 169, 59, 0.05), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(59, 130, 246, 0.05), transparent 45%);
  background-attachment: fixed;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: #2a3142;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Container */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Navigation Bar (Fluid & Mobile-Adaptive)
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 10px rgba(229, 169, 59, 0.25);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-title);
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title-top {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.8px;
}

.brand-title-bottom {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}

@media (min-width: 769px) {
  .brand-logo img {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    line-height: 1.2;
  }
  .brand-title-top {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
  }
  .brand-title-bottom {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Switcher Button */
#langToggleBtn {
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

#langToggleBtn:hover {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.btn-nav-play {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: linear-gradient(135deg, #c93b3b 0%, #8b1d1d 100%);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(201, 59, 59, 0.4);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-nav-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 59, 59, 0.6);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: rgba(229, 169, 59, 0.15);
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

/* ==========================================================================
   Hero Section (Fluid, Mobile-First & Responsive)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 48px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, var(--bg-dark) 100%),
              url('../images/story/intro/001_ana_kale.jpg') center/cover no-repeat;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(13, 15, 20, 0.75) 0%, rgba(7, 8, 10, 0.98) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  width: 100%;
  text-align: left;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--accent-gold-light);
  font-size: clamp(0.7rem, 2.5vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.3;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 5.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.16;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 720px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #e5a93b 0%, #c5861f 100%);
  color: #07080a;
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(229, 169, 59, 0.35);
  transition: var(--transition);
  cursor: pointer;
  word-break: break-word;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 169, 59, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(20, 24, 33, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
  word-break: break-word;
}

.btn-secondary:hover {
  background: rgba(28, 34, 48, 0.95);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

/* Quick Stats Bar (Fluid Grid) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item {
  min-width: 0;
  overflow: hidden;
}

.stat-item h4 {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-item p {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
  padding: 0 10px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  word-break: break-word;
}

.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   News & Updates Section
   ========================================================================== */
.news-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 59, 0.4);
  box-shadow: var(--shadow-card);
}

.news-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-badge.update { background: #3b82f6; color: #fff; }
.news-badge.devlog { background: #e5a93b; color: #000; }
.news-badge.event { background: #c93b3b; color: #fff; }

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-read-more {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Game Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 59, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Lore & Story Section
   ========================================================================== */
.lore-section {
  background: radial-gradient(circle at center, rgba(20, 24, 33, 0.9) 0%, var(--bg-darker) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lore-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(13, 15, 20, 0.85);
  border: 1px solid var(--border-gold);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 100%;
}

.lore-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lore-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .lore-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .lore-toolbar-left {
    justify-content: space-between;
    width: 100%;
  }
  .lore-toolbar-right {
    justify-content: space-between;
    width: 100%;
  }
  .lore-toolbar-right button {
    flex-grow: 1;
    justify-content: center;
  }
}

.lore-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.lore-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 169, 59, 0.15);
}

.lore-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.lore-content h3 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.lore-content p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 18px;
}

.lore-quote {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #fcd34d;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   Download Section
   ========================================================================== */
.download-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.download-banner {
  background: radial-gradient(circle at 80% 50%, rgba(201, 59, 59, 0.15), transparent 60%),
              radial-gradient(circle at 20% 50%, rgba(229, 169, 59, 0.1), transparent 60%),
              #12151e;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.download-info h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #fff;
  margin-bottom: 14px;
}

.download-info p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.download-btn.playstore {
  background: #fff;
  color: #000;
}

.download-btn.apk {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.download-btn.apk:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.download-specs {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.download-specs h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.spec-list li span:last-child {
  color: #fff;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px 0;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   Modal System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #12151d;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-crimson);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Screens (<= 992px) */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 14, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border-gold);
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .btn-nav-play {
    display: none;
  }
  .lore-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .download-banner {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 24px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Standard Mobile (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
  }
  .section {
    padding: 50px 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .download-buttons {
    flex-direction: column;
    width: 100%;
  }
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* Compact Smartphones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .brand-logo img {
    width: 30px;
    height: 30px;
  }
  .brand-title-top {
    font-size: 0.65rem;
  }
  .brand-title-bottom {
    font-size: 0.78rem;
  }
  #langToggleBtn {
    padding: 0 6px;
    font-size: 0.72rem;
    height: 30px;
  }
  .mobile-toggle {
    width: 32px;
    height: 30px;
    font-size: 1rem;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.18;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .hero-stats {
    gap: 10px;
  }
  .stat-item h4 {
    font-size: 1.25rem;
  }
  .stat-item p {
    font-size: 0.68rem;
  }
  .modal-dialog {
    padding: 20px 14px;
  }
}

/* Ultra Narrow Devices (<= 360px) */
@media (max-width: 360px) {
  .brand-logo img {
    width: 26px;
    height: 26px;
  }
  .brand-title-top {
    font-size: 0.58rem;
  }
  .brand-title-bottom {
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: 1.3rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.8rem;
    padding: 10px 8px;
  }
}
