/* ==========================================================================
   Bubble Shooter - Global Stylesheet
   Modern Arcade & Neo-Glassmorphism Theme
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: rgba(23, 32, 54, 0.7);
  --bg-card-hover: rgba(30, 42, 70, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);

  /* Vibrant Game Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #9d4edd;
  --accent-pink: #f72585;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-danger: #ef4444;

  /* Bubble Specific Hues */
  --bubble-red: #ff3366;
  --bubble-blue: #00b4d8;
  --bubble-green: #06d6a0;
  --bubble-yellow: #ffd166;
  --bubble-purple: #9b5de5;
  --bubble-orange: #f77f00;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Fredoka', 'Outfit', cursive, sans-serif;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-accent: linear-gradient(135deg, #f72585 0%, #9b5de5 100%);
  --grad-gold: linear-gradient(135deg, #ffd166 0%, #f77f00 100%);
  --grad-dark: linear-gradient(180deg, #0b0f19 0%, #131b2e 100%);
  --grad-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.35);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 80px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Ambient Glow & Floating Bubbles */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--bubble-blue);
  top: -100px;
  right: -50px;
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  background: var(--bubble-purple);
  bottom: 15%;
  left: -100px;
  animation-duration: 25s;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: var(--bubble-pink);
  top: 50%;
  right: 20%;
  animation-duration: 18s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.15); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.15rem; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.highlight-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(0, 242, 254, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #000;
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-google-play:hover {
  background: #0d121f;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.35);
}

.btn-google-play svg {
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.logo-bubbles {
  display: flex;
  align-items: center;
  position: relative;
  width: 38px;
  height: 38px;
}

.bubble-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 2px 2px 4px rgba(255, 255, 255, 0.5);
  animation: pulseBubble 3s infinite ease-in-out;
}

.bubble-1 { background: var(--bubble-blue); top: 0; left: 0; }
.bubble-2 { background: var(--bubble-pink); bottom: 2px; right: 0; animation-delay: 1s; width: 20px; height: 20px; }
.bubble-3 { background: var(--bubble-yellow); top: 2px; right: 4px; animation-delay: 2s; width: 16px; height: 16px; }

@keyframes pulseBubble {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-accent {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(247, 37, 133, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247, 37, 133, 0.6);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.15rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-purple {
  background: rgba(157, 78, 221, 0.15);
  color: #c77dff;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.badge-gold {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.3);
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}

.card:hover::before {
  opacity: 1;
}

/* Sections */
.section {
  padding: 2.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.75rem;
}

.section-header p {
  font-size: 1.15rem;
}

/* Hero Section */
.hero {
  padding: 2rem 0 2rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.5rem 0;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Interactive Game Arena Container */
.game-arena-wrapper {
  position: relative;
  background: #060911;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-arena-header {
  background: #111728;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.game-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-value {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.game-arena-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at 50% 30%, #151f38 0%, #060911 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

#bubbleCanvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

.game-overlay.active {
  display: flex;
}

.game-tips-bar {
  background: #0e1424;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

/* Feature & Editions Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Edition Card */
.edition-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edition-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

/* How to play step cards */
.step-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}

.step-num {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #0b0f19;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
  flex-shrink: 0;
}

/* Strategy Tips Cards */
.tip-card {
  border-left: 4px solid var(--accent-cyan);
}

.tip-card:nth-child(2) { border-left-color: var(--accent-pink); }
.tip-card:nth-child(3) { border-left-color: var(--accent-amber); }
.tip-card:nth-child(4) { border-left-color: var(--accent-purple); }

/* Advisory Warning Box (Earn money / APK) */
.alert-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.alert-icon {
  font-size: 2rem;
  color: var(--accent-amber);
  flex-shrink: 0;
  line-height: 1;
}

.alert-content h4 {
  color: #ffd166;
  margin-bottom: 0.4rem;
}

.alert-content p {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: #e2e8f0;
}

/* FAQ Accordion */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(0, 242, 254, 0.35);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.4rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--accent-cyan);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.75rem 1.5rem;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
}

/* Content Page Layout (About, Privacy, Terms) */
.page-hero {
  padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: 3rem;
}

.page-content-wrapper {
  padding: 4rem 0 6rem;
}

.legal-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  backdrop-filter: blur(12px);
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(157, 78, 221, 0.2) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
  margin-top: auto;
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 340px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  h1 { font-size: 2.1rem; line-height: 1.25; }
  h2 { font-size: 1.65rem; }
  .hero-title { font-size: 2.15rem; line-height: 1.2; }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.75rem 1.5rem 2.25rem;
    gap: 1.15rem;
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }

  .canvas-container {
    height: 440px;
    padding: 0.25rem;
  }

  #bubbleCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .legal-article {
    padding: 1.75rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  h1, .hero-title { font-size: 1.75rem; line-height: 1.25; }
  h2 { font-size: 1.4rem; }
  .section { padding: 1.75rem 0; }
  .container { padding: 0 1rem; }
  .card { padding: 1.25rem 1rem; }
  
  .brand-logo-img { height: 38px; }
  .footer-logo-img { height: 52px; }

  .hero-meta-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-meta-item {
    font-size: 0.85rem;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .game-arena-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
  }

  .game-stat-item {
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .stat-value {
    font-size: 0.98rem;
  }

  .game-arena-controls {
    gap: 0.4rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .canvas-container {
    height: 360px;
  }

  .game-tips-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
  }

  .email-box {
    padding: 1rem;
    font-size: 0.82rem;
    overflow-x: auto;
  }

  .copy-btn {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .notice-card {
    padding: 1rem;
    font-size: 0.88rem;
  }

  .step-card {
    padding: 1.15rem 1rem;
  }

  .blog-modal-container {
    padding: 1.5rem 1rem;
    max-height: 94vh;
  }
}

@media (max-width: 360px) {
  h1, .hero-title { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .canvas-container { height: 320px; }
  .game-stat-item { font-size: 0.75rem; }
  .stat-value { font-size: 0.9rem; }
}

/* ==========================================================================
   Trial Timer & Trial Expired Modal
   ========================================================================== */
.trial-timer-item {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
}

.trial-timer-urgent {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  animation: urgentPulse 1s infinite alternate ease-in-out;
}

.trial-timer-urgent .stat-value {
  color: #ff4d6d !important;
}

@keyframes urgentPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  100% { transform: scale(1.05); box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
}

.trial-expired-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.25);
  animation: fadeIn 0.4s ease-out forwards;
}

.trial-expired-modal.active {
  display: flex;
}

.trial-modal-card {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trial-icon-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(247, 37, 133, 0.3) 100%);
  border: 1px solid rgba(247, 37, 133, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: bounceBadge 2s infinite ease-in-out;
}

@keyframes bounceBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.trial-modal-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.trial-modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.redirect-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-play-store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--grad-primary);
  color: #0b0f19 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
  transition: all 0.3s ease;
  width: 100%;
}

.btn-play-store-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.65);
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.15);
}

.blog-card-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%);
}

.blog-thumb-gradient-1 {
  background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.4), #0f172a 80%);
}

.blog-thumb-gradient-2 {
  background: radial-gradient(circle at 70% 30%, rgba(247, 37, 133, 0.4), #0f172a 80%);
}

.blog-thumb-gradient-3 {
  background: radial-gradient(circle at 50% 50%, rgba(155, 93, 229, 0.4), #0f172a 80%);
}

.blog-thumb-gradient-4 {
  background: radial-gradient(circle at 40% 60%, rgba(255, 209, 102, 0.35), #0f172a 80%);
}

.blog-thumb-gradient-5 {
  background: radial-gradient(circle at 60% 40%, rgba(6, 214, 160, 0.35), #0f172a 80%);
}

.blog-thumb-gradient-6 {
  background: radial-gradient(circle at 30% 70%, rgba(79, 172, 254, 0.4), #0f172a 80%);
}

.blog-thumb-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb-icon {
  transform: scale(1.15) rotate(4deg);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-tag-strategy { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.blog-tag-history { background: rgba(155, 93, 229, 0.15); color: var(--bubble-purple); border: 1px solid rgba(155, 93, 229, 0.3); }
.blog-tag-tips { background: rgba(247, 37, 133, 0.15); color: var(--accent-pink); border: 1px solid rgba(247, 37, 133, 0.3); }
.blog-tag-wellness { background: rgba(6, 214, 160, 0.15); color: var(--bubble-green); border: 1px solid rgba(6, 214, 160, 0.3); }
.blog-tag-guide { background: rgba(255, 209, 102, 0.15); color: var(--bubble-yellow); border: 1px solid rgba(255, 209, 102, 0.3); }

.blog-card-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-read-link {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.blog-read-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Blog Article Modal */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.blog-modal.active {
  display: flex;
}

.blog-modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  padding: 2.5rem;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.blog-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-modal-close:hover {
  background: var(--accent-danger);
  transform: rotate(90deg);
}

.blog-modal-content h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.blog-modal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.blog-modal-content h3 {
  color: var(--accent-cyan);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
