/* ==========================================================================
   Only You - SheBoGames | Modern Game Landing Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #060810;
  --bg-secondary: #0b0e1a;
  --bg-card: rgba(16, 21, 37, 0.72);
  --bg-card-hover: rgba(24, 31, 56, 0.85);
  --bg-card-glass: rgba(255, 255, 255, 0.03);
  
  --primary-gold: #f59e0b;
  --primary-gold-light: #fde68a;
  --primary-gold-dark: #b45309;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-champagne: #fef3c7;
  --text-gold: #fbbf24;
  
  --border-gold: rgba(245, 158, 11, 0.25);
  --border-gold-glow: rgba(245, 158, 11, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);
  --glow-gold-lg: 0 0 45px rgba(245, 158, 11, 0.5);
  --glow-rose: 0 0 30px rgba(244, 63, 94, 0.4);
  
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-elevated: 0 25px 60px -10px rgba(0, 0, 0, 0.85);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --font-heading: 'Unbounded', 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Background Canvas & Overlays */
#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-ambient-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  will-change: transform;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%);
}

.blob-2 {
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #f43f5e 0%, rgba(244, 63, 94, 0) 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.blob-3 {
  bottom: 10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: var(--font-serif);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff2cc 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.rose-gradient-text {
  background: linear-gradient(135deg, #fecdd3 0%, #f43f5e 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-gold-light);
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.section-tag i {
  font-size: 0.9rem;
  color: var(--primary-gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px auto;
  text-align: center;
  line-height: 1.65;
}

/* Container & Layout */
.app-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(6, 8, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-amber));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--primary-gold);
  color: #060810;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.lang-btn:hover:not(.active) {
  color: #fff;
}

/* Play Now CTA Button (Header) */
.btn-header-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-header-play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  color: #000;
}

/* Burger Toggle Button */
.burger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.burger-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-gold);
  color: var(--primary-gold-light);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.98);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.mobile-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  transform: rotate(90deg);
}

.mobile-menu-items {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-items a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-block;
}

.mobile-menu-items a:hover {
  color: var(--primary-gold);
  transform: translateX(6px);
}

.mobile-socials {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

.mobile-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold-light);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-social-icon:hover {
  background: var(--primary-gold);
  color: #060810;
  transform: translateY(-3px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px 0;
  background-image: 
    radial-gradient(ellipse at center, rgba(6, 8, 16, 0.4) 0%, rgba(6, 8, 16, 0.95) 85%),
    url('../img/hero2.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-gold-light);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(10px);
}

.hero-pill-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-pill-rating i {
  color: #fbbf24;
}

.hero-logo-img {
  max-width: 440px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85));
  margin-bottom: 24px;
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-style: italic;
  color: var(--text-champagne);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 580px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Action CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.play-btn-large {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #060810;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(254, 243, 199, 0.6);
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.35);
  transition: var(--transition-bounce);
  overflow: hidden;
}

.play-btn-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: buttonShimmer 4s infinite ease-in-out;
}

@keyframes buttonShimmer {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

.play-btn-large:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 15px 45px rgba(245, 158, 11, 0.65), inset 0 0 16px rgba(255, 255, 255, 0.5);
  color: #000;
}

.play-btn-large .gp-icon-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.play-btn-large .btn-text-block {
  display: flex;
  flex-direction: column;
}

.play-btn-large .btn-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.play-btn-large .btn-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* App Store Large Button (Hero) */
.appstore-btn-large {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(28, 33, 52, 0.95) 0%, rgba(14, 18, 32, 0.95) 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(255, 255, 255, 0.12);
  transition: var(--transition-bounce);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.appstore-btn-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: buttonShimmer 4s infinite ease-in-out;
  animation-delay: 2s;
}

.appstore-btn-large:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 15px 45px rgba(255, 255, 255, 0.25), inset 0 0 16px rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
}

.appstore-btn-large .apple-icon-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ffffff;
}

.appstore-btn-large .btn-text-block {
  display: flex;
  flex-direction: column;
}

.appstore-btn-large .btn-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.appstore-btn-large .btn-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 16px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-gold);
  color: var(--primary-gold-light);
  transform: translateY(-2px);
}

/* Hero Quick Stats */
.hero-stats-row {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-gold-light);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section Divider */
.ornate-divider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 10;
}

.ornate-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.ornate-divider-icon {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornate-divider-icon img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

/* ==========================================================================
   Stories Section (Плитки историй)
   ========================================================================== */
.stories-section {
  padding: 100px 0 120px 0;
  position: relative;
  z-index: 2;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin-top: 20px;
  align-items: stretch;
}

/* Story Tile Card */
.story-tile-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.story-tile-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-elevated), var(--glow-gold), inset 0 1px 0 rgba(254, 243, 199, 0.3);
}

/* Story Tile Media / Poster */
.story-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 341 / 435;
  overflow: hidden;
  background: #080b16;
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-top-right-radius: calc(var(--radius-lg) - 1px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  display: block;
}

.story-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.story-tile-card:hover .story-poster-img {
  transform: scale(1.05);
}

.story-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 21, 37, 1) 0%,
    rgba(16, 21, 37, 0.5) 20%,
    rgba(16, 21, 37, 0.05) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.story-badge-top {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  pointer-events: none;
}

.story-tile-card:hover .story-badge-top {
  transform: translateY(-2px) scale(1.05);
}

.badge-icon-glow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
}

.badge-label {
  font-weight: 800;
  line-height: 1;
}

/* Shimmer Light Streak on Badge */
.badge-shimmer-sweep {
  position: absolute;
  top: -50%;
  left: -90%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: badgeShimmerSweep 4.5s infinite ease-in-out;
}

@keyframes badgeShimmerSweep {
  0% { left: -90%; }
  35%, 100% { left: 190%; }
}

/* Gold Badge (Legend of the Dragon / Top Popular) */
.badge-gold {
  background: linear-gradient(135deg, rgba(22, 16, 6, 0.94) 0%, rgba(48, 29, 6, 0.9) 100%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fff2cc;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(254, 243, 199, 0.4);
}

.badge-gold .badge-icon-glow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
}

.badge-gold .badge-label {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Ruby Badge (Lazaret / Player Choice) */
.badge-ruby {
  background: linear-gradient(135deg, rgba(24, 6, 14, 0.94) 0%, rgba(52, 10, 28, 0.9) 100%);
  border: 1px solid rgba(251, 113, 133, 0.65);
  color: #ffe4e8;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.38), inset 0 1px 0 rgba(254, 205, 211, 0.4);
}

.badge-ruby .badge-icon-glow {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.9);
}

.badge-ruby .badge-label {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Amber / Golden Topaz Badge (Coming Soon / Teaser) */
.badge-teaser {
  background: linear-gradient(135deg, rgba(28, 18, 6, 0.94) 0%, rgba(48, 30, 8, 0.92) 100%);
  border: 1px solid rgba(251, 191, 36, 0.7);
  color: #fef3c7;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(254, 240, 138, 0.4);
}

.badge-teaser .badge-icon-glow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
}

.badge-teaser .badge-label {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Story Tile Content */
.story-body {
  padding: 24px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.story-body-main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.genre-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-gold-light);
  background: rgba(245, 158, 11, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.story-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #fff;
  transition: color 0.3s ease;
}

.story-tile-card:hover .story-title {
  color: var(--primary-gold-light);
}

.story-excerpt {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.story-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.story-feature-item i {
  color: var(--primary-gold);
  font-size: 0.9rem;
}

.story-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-story-details {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-story-details:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--border-gold);
  color: var(--primary-gold-light);
}

.story-store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-card-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: var(--transition-bounce);
  white-space: nowrap;
  min-width: 0;
}

.btn-card-store i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.btn-card-gp {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-card-gp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #000;
}

.btn-card-as {
  background: linear-gradient(135deg, rgba(30, 36, 56, 0.95) 0%, rgba(18, 22, 38, 0.95) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-card-as:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-story-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: var(--transition-bounce);
}

.btn-story-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
  color: #000;
}

/* Coming Soon Card */
.story-tile-card.coming-soon-card {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.story-tile-card.coming-soon-card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-elevated), 0 0 35px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(254, 240, 138, 0.2);
}

.teaser-poster-wrap {
  position: relative;
  overflow: hidden;
}

.teaser-poster-img {
  filter: brightness(0.92) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.story-tile-card.coming-soon-card:hover .teaser-poster-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.1);
}

.teaser-art-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(6, 8, 16, 0.2) 0%, rgba(6, 8, 16, 0.6) 80%);
}

.teaser-cipher-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--primary-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.25);
  transition: var(--transition-bounce);
}

.teaser-cipher-badge i {
  color: var(--primary-gold);
  font-size: 0.85rem;
}

.story-tile-card.coming-soon-card:hover .teaser-cipher-badge {
  border-color: var(--primary-gold-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.5);
  transform: scale(1.06);
}

.genre-tag.teaser-tag {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--primary-gold-light);
}

.btn-teaser-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--primary-gold-light);
  text-decoration: none;
  font-weight: 700;
}

.btn-teaser-cta:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060810;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Game Features Section
   ========================================================================== */
.features-section {
  padding: 80px 0 100px 0;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-gold-light);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

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

/* ==========================================================================
   Download & Community Showcase Section
   ========================================================================== */
.community-section {
  padding: 90px 0 100px 0;
  position: relative;
  z-index: 2;
}

.download-community-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

.download-card {
  background: linear-gradient(135deg, rgba(26, 21, 40, 0.85) 0%, rgba(14, 18, 33, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card), var(--glow-gold);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qr-scanner-box {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 20px 0 24px 0;
  padding: 12px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.4);
}

.qr-scanner-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-laser-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #f43f5e, transparent);
  box-shadow: 0 0 10px #f59e0b;
  border-radius: 2px;
  animation: scanLaser 2.8s infinite ease-in-out alternate;
}

@keyframes scanLaser {
  0% { top: 12px; opacity: 0.2; }
  50% { opacity: 1; }
  100% { top: calc(100% - 14px); opacity: 0.2; }
}

.store-badges-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.store-badge-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border-radius: 10px;
}

.store-badge-item:hover {
  transform: translateY(-3px) scale(1.04);
}

.gp-badge-img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.appstore-badge-btn {
  height: 52px;
  padding: 0 16px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.appstore-badge-btn i {
  font-size: 1.85rem;
  color: #ffffff;
}

.appstore-badge-btn .badge-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.appstore-badge-btn .badge-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.appstore-badge-btn .badge-main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Social Network Cards */
.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.social-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: var(--transition-smooth);
}

.social-box:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  color: var(--primary-gold-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-box img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 10px;
}

.social-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.social-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact & Support Section
   ========================================================================== */
.contact-section {
  padding: 90px 0 100px 0;
  position: relative;
  z-index: 2;
  background-image: 
    radial-gradient(ellipse at center, rgba(6, 8, 16, 0.75) 0%, rgba(6, 8, 16, 0.98) 90%),
    url('../img/hero-f.png');
  background-size: cover;
  background-position: center;
}

.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-champagne);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.form-select {
  background-color: rgba(16, 21, 37, 0.95);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  cursor: pointer;
}

.form-select option {
  background: #0d1222;
  color: #ffffff;
  padding: 10px;
}

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

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060810;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  color: #000;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-top: 18px;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-alert.success {
  display: flex;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.form-alert.error {
  display: flex;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.contact-email-hint {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-email-hint a {
  color: var(--primary-gold-light);
  text-decoration: none;
  font-weight: 600;
}

.contact-email-hint a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Dedicated Support Portal Page (/support)
   ========================================================================== */
.support-portal-section {
  padding: 130px 0 100px 0;
  position: relative;
  z-index: 2;
  min-height: 85vh;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-gold-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.back-home-btn:hover {
  transform: translateX(-4px);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-gold);
  color: #ffffff;
}

.support-hero-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px auto;
}

.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.support-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.support-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.15);
}

.support-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-gold-light);
  margin: 0 auto 16px auto;
}

.support-info-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.support-info-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-info-link {
  color: var(--primary-gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.support-info-link:hover {
  text-decoration: underline;
  color: #fff;
}

.faq-container {
  max-width: 820px;
  margin: 60px auto 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.faq-question {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question i {
  color: var(--primary-gold);
  font-size: 1rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  padding-left: 26px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #030408;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

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

.footer-legal-links a:hover {
  color: var(--primary-gold-light);
}

/* ==========================================================================
   Story Modal (Интерактивное окно подробностей истории)
   ========================================================================== */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 11, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.story-modal-card {
  background: #0d1222;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), var(--glow-gold);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  transform: rotate(90deg);
}

.modal-banner {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.modal-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d1222 0%, rgba(13, 18, 34, 0.4) 60%, transparent 100%);
}

.modal-inner-content {
  padding: 24px 36px 36px 36px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal-genres {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-champagne);
  border-left: 3px solid var(--primary-gold);
  padding-left: 16px;
  margin-bottom: 20px;
}

.modal-full-text {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-wrap: wrap;
}

.btn-story-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 36, 56, 0.95) 0%, rgba(18, 22, 38, 0.95) 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition-bounce);
}

.btn-story-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .nav-links, .btn-header-play {
    display: none;
  }
  
  .burger-btn {
    display: flex;
  }
  
  .download-community-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 120px 0 60px 0;
    min-height: auto;
  }
  
  .hero-logo-img {
    max-width: 320px;
  }
  
  .play-btn-large,
  .appstore-btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-secondary-btn {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .app-container {
    padding: 0 16px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wrap {
    padding: 24px 18px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .modal-inner-content {
    padding: 20px;
  }
}
