/* ==========================================================================
   RUBION (RBN) Official Token Website - Stylesheet
   Modern Web3 Glassmorphic Ruby Aesthetic
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #070709;
  --bg-secondary: #0d0b10;
  --bg-card: rgba(18, 14, 22, 0.72);
  --bg-card-hover: rgba(26, 18, 30, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Ruby Brand Colors */
  --ruby-primary: #ff1e56;
  --ruby-glow: #ff2a5f;
  --ruby-dark: #b80036;
  --ruby-deep: #4a0314;
  --ruby-light: #ff758f;
  --ruby-accent: #ff4d6d;
  
  /* Metallic & Neutral Accents */
  --gold-accent: #f59e0b;
  --emerald-accent: #10b981;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-ruby: rgba(255, 30, 86, 0.28);
  --border-ruby-glow: rgba(255, 30, 86, 0.6);

  /* Gradients */
  --gradient-ruby: linear-gradient(135deg, #ff1e56 0%, #d90429 50%, #800020 100%);
  --gradient-ruby-text: linear-gradient(135deg, #ffffff 15%, #ff4d6d 60%, #ff1e56 100%);
  --gradient-card: linear-gradient(145deg, rgba(28, 17, 28, 0.65) 0%, rgba(13, 10, 16, 0.8) 100%);
  --gradient-btn-hover: linear-gradient(135deg, #ff3366 0%, #ff0f47 100%);

  /* Shadows */
  --glow-sm: 0 0 16px rgba(255, 30, 86, 0.25);
  --glow-md: 0 0 32px rgba(255, 30, 86, 0.35);
  --glow-lg: 0 0 60px rgba(255, 30, 86, 0.45);
  --glow-coin: 0 0 70px rgba(255, 30, 86, 0.5), 0 0 120px rgba(184, 0, 54, 0.3);

  /* Fonts */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Canvas Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* Background Glowing Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 30, 86, 0.2) 0%, rgba(128, 0, 32, 0.05) 70%, transparent 100%);
}

.bg-glow-orb-2 {
  width: 600px;
  height: 600px;
  top: 45%;
  right: -200px;
  background: radial-gradient(circle, rgba(255, 30, 86, 0.15) 0%, rgba(74, 3, 20, 0.05) 70%, transparent 100%);
}

.bg-glow-orb-3 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  left: -100px;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
}

/* App Wrapper */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.text-gradient {
  background: var(--gradient-ruby-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-ruby {
  color: var(--ruby-primary);
}

.text-gold {
  color: var(--gold-accent);
}

.text-emerald {
  color: var(--emerald-accent);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 30, 86, 0.1);
  border: 1px solid var(--border-ruby);
  color: var(--ruby-light);
  margin-bottom: 16px;
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ruby-primary);
  box-shadow: 0 0 10px var(--ruby-primary);
  animation: pulse-dot 2s infinite;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 7, 9, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 9, 0.92);
  border-bottom: 1px solid var(--border-ruby);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 30, 86, 0.45);
  border: 1.5px solid var(--border-ruby-glow);
  transition: var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: rotate(15deg) scale(1.08);
  box-shadow: var(--glow-md);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-ticker {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 30, 86, 0.15);
  border: 1px solid var(--border-ruby);
  color: var(--ruby-light);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--ruby-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

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

/* Language Toggle Button */
.btn-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lang:hover {
  border-color: var(--border-ruby);
  color: var(--ruby-light);
  background: rgba(255, 30, 86, 0.08);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-ruby);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 30, 86, 0.4);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 30, 86, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 30, 86, 0.12);
  border-color: var(--border-ruby-glow);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-ruby {
  background: transparent;
  color: var(--ruby-light);
  border: 1px solid var(--border-ruby);
}

.btn-outline-ruby:hover {
  background: rgba(255, 30, 86, 0.15);
  border-color: var(--ruby-primary);
  color: #ffffff;
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 80px 0;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-live-pill .pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* Contract Address Box */
.contract-box-wrapper {
  margin-bottom: 32px;
}

.contract-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contract-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
  font-size: 0.78rem;
}

.contract-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(13, 11, 16, 0.85);
  border: 1px solid var(--border-ruby);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.contract-box:hover {
  border-color: var(--border-ruby-glow);
  box-shadow: var(--glow-sm);
}

.contract-chain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(243, 186, 47, 0.15);
  border-radius: 8px;
  color: #f3ba2f;
  flex-shrink: 0;
}

.contract-address {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  letter-spacing: 0.02em;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 30, 86, 0.12);
  border: 1px solid var(--border-ruby);
  color: var(--ruby-light);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--ruby-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 30, 86, 0.5);
}

.btn-copy.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* Hero CTA buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

/* Hero Highlights Badges */
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge-item svg {
  color: var(--ruby-accent);
}

/* Hero Visual 3D Coin */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-aura-pulse {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 86, 0.35) 0%, rgba(217, 4, 41, 0.15) 50%, transparent 75%);
  animation: aura-breathe 4s ease-in-out infinite alternate;
  filter: blur(35px);
  z-index: 1;
}

.coin-3d-card {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.15), rgba(255, 30, 86, 0.1) 40%, rgba(13, 11, 16, 0.9) 80%);
  box-shadow: var(--glow-coin);
  cursor: pointer;
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}

.coin-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 30, 86, 0.4);
  pointer-events: none;
  animation: float-coin 5s ease-in-out infinite alternate;
}

/* Floating Coin Badges */
.coin-floating-badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(18, 14, 22, 0.88);
  border: 1px solid var(--border-ruby);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-badge 4s ease-in-out infinite alternate;
}

.coin-floating-badge.badge-top {
  top: 10px;
  left: -20px;
}

.coin-floating-badge.badge-bottom {
  bottom: 15px;
  right: -25px;
  animation-delay: -2s;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 30, 86, 0.15);
  color: var(--ruby-light);
}

.badge-text-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.badge-text-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Live Stats Bar
   ========================================================================== */
.stats-bar-section {
  padding: 20px 0 60px 0;
  position: relative;
  z-index: 2;
}

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

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(14px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ruby-primary), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-ruby);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--glow-sm);
}

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

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 30, 86, 0.1);
  border: 1px solid var(--border-ruby);
  color: var(--ruby-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #ffffff;
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 80px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature-item {
  display: flex;
  gap: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.about-feature-item:hover {
  border-color: var(--border-ruby);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 30, 86, 0.12);
  border: 1px solid var(--border-ruby);
  color: var(--ruby-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #fff;
}

.about-feature-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Visual Glass Card */
.about-visual-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-ruby);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.about-visual-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 30, 86, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.about-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.about-spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  color: var(--text-muted);
}

.spec-val {
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Tokenomics Section
   ========================================================================== */
.tokenomics-section {
  padding: 80px 0;
  position: relative;
}

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

.tokenomics-chart-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-ruby);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--glow-sm);
  position: relative;
}

.tokenomics-donut-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 28px auto;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.donut-center-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.donut-center-sub {
  font-size: 0.75rem;
  color: var(--ruby-light);
}

.tokenomics-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tokenomics-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
  transition: var(--transition-fast);
}

.tokenomics-row:hover {
  border-color: var(--border-ruby);
  transform: translateY(-2px);
}

.tokenomics-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tokenomics-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tokenomics-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.tokenomics-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
}

.tokenomics-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ruby-light);
}

.tokenomics-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tokenomics-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tokenomics-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   How to Buy Section
   ========================================================================== */
.howtobuy-section {
  padding: 80px 0;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 24px;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-ruby);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), var(--glow-sm);
}

.step-number-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ruby-light);
  background: rgba(255, 30, 86, 0.12);
  border: 1px solid var(--border-ruby);
  width: fit-content;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 30, 86, 0.15);
  border: 1px solid var(--border-ruby);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: #fff;
}

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

.step-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

/* Slippage tip alert */
.buy-tip-banner {
  margin-top: 36px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.buy-tip-banner svg {
  color: var(--gold-accent);
  flex-shrink: 0;
}

.buy-tip-text {
  font-size: 0.92rem;
  color: #e5e7eb;
}

/* ==========================================================================
   Live Chart & DEXScreener Section
   ========================================================================== */
.chart-section {
  padding: 80px 0;
  position: relative;
}

.chart-card-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--border-ruby);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), var(--glow-sm);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.chart-token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-token-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-ruby);
}

.chart-title-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.chart-pair-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.chart-links-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-iframe-container {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0e12;
  border: 1px solid var(--border-subtle);
}

.chart-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-fallback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(13, 11, 16, 0.95);
  text-align: center;
  padding: 24px;
  z-index: 5;
}

/* ==========================================================================
   Roadmap Section
   ========================================================================== */
.roadmap-section {
  padding: 80px 0;
  position: relative;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.roadmap-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.roadmap-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.roadmap-card.active {
  border-color: var(--border-ruby-glow);
  box-shadow: var(--glow-sm);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-ruby);
}

.roadmap-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.roadmap-phase-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ruby-light);
}

.roadmap-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.status-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-active {
  background: rgba(255, 30, 86, 0.15);
  color: var(--ruby-light);
  border: 1px solid var(--border-ruby);
  animation: pulse-border 2s infinite;
}

.status-upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.roadmap-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: #fff;
}

.roadmap-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.roadmap-task-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.roadmap-task-item.done svg {
  color: #10b981;
}

.roadmap-task-item.active svg {
  color: var(--ruby-primary);
}

.roadmap-task-item.upcoming svg {
  color: var(--text-dim);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  position: relative;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-ruby);
  background: var(--bg-card-hover);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon-arrow {
  color: var(--ruby-light);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px 24px;
  max-height: 250px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #050406;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

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

.footer-brand-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 16px 0 24px 0;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

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

.social-link:hover {
  background: var(--ruby-primary);
  color: #fff;
  border-color: var(--ruby-primary);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #fff;
}

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

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

.footer-links a:hover {
  color: var(--ruby-light);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 780px;
  line-height: 1.5;
  font-size: 0.8rem;
  color: #525866;
  margin-top: 16px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(18, 14, 22, 0.95);
  border: 1px solid var(--ruby-primary);
  box-shadow: var(--glow-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

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

/* Animations */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 30, 86, 0.6); }
  50% { border-color: rgba(255, 30, 86, 0.2); }
}

@keyframes float-coin {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-badge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes aura-breathe {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-badges-row {
    justify-content: center;
  }

  .contract-box-wrapper {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .about-grid, .tokenomics-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid, .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
/* ==========================================================================
   RBN Miner - 2D Web3 Crypto Game Styles
   ========================================================================== */
.game-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.game-nav-badge {
  font-size: 0.68rem;
  background: var(--gradient-ruby);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  margin-right: 4px;
  animation: pulse-dot 2s infinite;
}

.game-cabinet {
  background: linear-gradient(160deg, rgba(26, 17, 28, 0.95) 0%, rgba(10, 8, 14, 0.98) 100%);
  border: 1.5px solid var(--border-ruby-glow);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--glow-md);
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Game Top HUD */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(13, 10, 16, 0.9);
  border-bottom: 1.5px solid var(--border-ruby);
}

.hud-stat-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hud-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hud-stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-stat-value.score {
  color: var(--ruby-light);
  text-shadow: 0 0 10px rgba(255, 30, 86, 0.5);
}

.hud-stat-value.time {
  color: #f59e0b;
}

.hud-stat-value.target {
  color: #38bdf8;
}

.hud-stat-value.tnt {
  color: #ff4d6d;
}

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

.btn-game-hud {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-game-hud:hover {
  background: rgba(255, 30, 86, 0.15);
  border-color: var(--border-ruby);
  color: var(--ruby-light);
}

.btn-game-hud.connected {
  border-color: #10b981;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

/* Canvas Wrapper */
.game-canvas-wrapper {
  position: relative;
  width: 100%;
  background: #07050a;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

#game-canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}

/* Floating Points text */
.game-float-score {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  pointer-events: none;
  animation: floatUpFade 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  z-index: 10;
  transform: translate(-50%, -50%);
}

@keyframes floatUpFade {
  0% { transform: translate(-50%, 0) scale(0.8); opacity: 0; }
  25% { transform: translate(-50%, -15px) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(1); opacity: 0; }
}

/* Mobile & Touch In-game controls bar */
.game-touch-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(18, 14, 22, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.btn-game-action {
  flex: 1;
  max-width: 260px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-drop-action {
  background: var(--gradient-ruby);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 30, 86, 0.4);
}

.btn-drop-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 30, 86, 0.6);
}

.btn-tnt-action {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-tnt-action:hover {
  background: #dc2626;
  color: #fff;
}

/* Item Values Legend */
.game-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(10, 8, 12, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item strong {
  color: #fff;
}

/* Game Modals (Shop, GameOver, Leaderboard) */
.game-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 5, 10, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.game-modal-overlay.active {
  display: flex;
}

.game-modal-card {
  background: linear-gradient(155deg, rgba(30, 18, 28, 0.95) 0%, rgba(13, 10, 16, 0.98) 100%);
  border: 1.5px solid var(--border-ruby-glow);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), var(--glow-md);
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.game-modal-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #fff;
}

.game-modal-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Shop Items Grid */
.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.shop-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-fast);
}

.shop-card:hover {
  border-color: var(--border-ruby);
  transform: translateY(-3px);
}

.shop-card-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.shop-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.shop-card-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
}

.shop-card-cost {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.leaderboard-table th {
  background: rgba(255, 30, 86, 0.12);
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ruby-light);
  border-bottom: 1px solid var(--border-ruby);
}

.leaderboard-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

.leaderboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.player-wallet {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.player-score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ruby-light);
  text-align: right;
}

.rank-badge {
  font-size: 1.05rem;
}

/* In-game Toast */
.game-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 14, 22, 0.95);
  border: 1px solid var(--border-ruby);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--glow-sm);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 60;
  white-space: nowrap;
}

.game-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

/* ==========================================================================
   Comprehensive Responsive Media Queries & Screen Optimization
   ========================================================================== */

/* Keyframe for mobile menu slide down */
@keyframes slideDownMenu {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual-wrapper {
    order: 2;
    margin-top: 10px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-badges-row {
    justify-content: center;
  }

  .contract-box-wrapper {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .about-grid, .tokenomics-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps-grid, .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 8, 14, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 22px 24px;
    border-bottom: 1.5px solid var(--border-ruby);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    gap: 16px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    animation: slideDownMenu 0.25s ease-out forwards;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .mobile-toggle.active {
    border-color: var(--border-ruby);
    color: var(--ruby-light);
    background: rgba(255, 30, 86, 0.12);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .section-subtitle {
    font-size: 0.98rem;
  }

  /* Hero 3D Coin Scaling */
  .coin-aura-pulse {
    width: 270px;
    height: 270px;
    filter: blur(30px);
  }

  .coin-3d-card {
    width: 250px;
    height: 250px;
  }

  .coin-floating-badge {
    padding: 8px 12px;
  }

  .coin-floating-badge.badge-top {
    left: -10px;
    top: 0;
  }

  .coin-floating-badge.badge-bottom {
    right: -10px;
    bottom: 0;
  }

  /* Contract Box */
  .contract-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .contract-address {
    font-size: clamp(0.74rem, 3.6vw, 0.88rem);
    text-align: center;
    padding: 2px 0;
    word-break: break-all;
    white-space: normal;
  }

  .btn-copy {
    width: 100%;
    justify-content: center;
    height: 42px;
  }

  /* DEX Chart */
  .chart-card-wrapper {
    padding: 18px 14px;
  }

  .chart-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .chart-token-info {
    justify-content: center;
  }

  .chart-links-group {
    justify-content: center;
  }

  .chart-iframe-container {
    height: 380px;
  }

  /* Footers & Grids */
  .steps-grid, .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Game Elements */
  .shop-items-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-hud {
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }

  .hud-stat-group {
    justify-content: center;
    gap: 12px;
  }

  .game-touch-controls {
    flex-direction: column;
    padding: 12px 14px;
  }

  .btn-game-action {
    max-width: 100%;
    width: 100%;
    height: 48px;
  }
}

/* Mobile Phones (<= 520px) */
@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  /* Navbar compact on phones */
  .nav-container {
    gap: 10px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

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

  /* Hide the navbar buy button on very narrow screens so header doesn't overflow */
  .navbar .nav-actions .btn-primary {
    display: none;
  }

  .hero-section {
    padding: 40px 0 50px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  /* Full-width Stacked Hero Buttons */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .hero-badges-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* 3D Coin on Small Phones */
  .coin-aura-pulse {
    width: 220px;
    height: 220px;
  }

  .coin-3d-card {
    width: 210px;
    height: 210px;
  }

  .coin-floating-badge {
    position: static;
    margin: 8px auto;
    width: 100%;
    max-width: 240px;
    justify-content: center;
    animation: none;
  }

  .hero-visual-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  /* Stats grid to 1 column */
  .stats-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .stat-number {
    font-size: 1.6rem;
  }

  /* Tokenomics adjustments */
  .tokenomics-chart-card {
    padding: 24px 14px;
  }

  .tokenomics-donut-container {
    width: 190px;
    height: 190px;
    margin-bottom: 16px;
  }

  .donut-center-val {
    font-size: 1.15rem;
  }

  .tokenomics-row {
    padding: 14px 14px;
  }

  .tokenomics-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tokenomics-percent {
    font-size: 0.95rem;
  }

  /* How to buy steps */
  .step-card {
    padding: 22px 18px;
  }

  .buy-tip-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  /* Standalone Game Page (game.html) */
  .game-page-content {
    padding: 14px 10px 24px 10px;
  }

  .game-intro-title {
    font-size: 1.65rem;
  }

  .game-navbar {
    padding: 10px 14px;
  }

  .game-navbar .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 6px;
    margin-top: 8px;
  }

  .game-navbar .btn-game-hud {
    font-size: 0.75rem;
    padding: 6px 9px;
  }

  .game-modal-card {
    padding: 24px 16px;
    max-height: 88vh;
    overflow-y: auto;
  }

  .game-modal-title {
    font-size: 1.35rem;
  }

  .leaderboard-table {
    font-size: 0.76rem;
  }

  .leaderboard-table th, .leaderboard-table td {
    padding: 6px 8px;
  }

  .game-legend-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.76rem;
  }
}

