/* -------- Reset / Base -------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');
* { box-sizing: border-box; }
/* cursor: none; */
.cursor { cursor: auto !important; }
html, body { height: 100%; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 0;
}
/* Focus visible for accessibility */
*:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--accent);
  outline-offset: 2px;
}
:root {
  /* Nintendo Cute Palette */
  --bg: #A8E6CF;
  --ink: #2C2C2C;
  --muted: #8B8B8B;
  --accent: #E91E63;
  --accent-2: #FF9800;
  --glass: rgba(168, 230, 207, 0.7);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 8px 20px rgba(100, 50, 0, 0.2);
  --warm-cream: #FFFACD;
  --warm-bronze: #FFB84D;
  --warm-copper: #FF9500;
  --warm-terracotta: #FF8C42;
  --gold-accent: #FFD700;
  --nintendo-blue: #4A90E2;
  --nintendo-green: #66BB6A;
  --nintendo-purple: #B572D4;
  --nintendo-pink: #FF8FAB;
  --game-font: 'Fredoka', 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
body {
  margin: 0;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #A8E6CF 0%, #DCEEF5 50%, #FFF5E1 100%);
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  overscroll-behavior-y: contain;
}
html { scroll-behavior: smooth; }

/* -------- Shared -------- */
.view {
  position: relative;
  height: 911px;
  min-height: 911px;
  max-height: 911px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.container { width: min(1100px, 100%); margin: 0 auto; padding: 0 1rem; }
.container.narrow { width: min(900px, 100%); }

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(233, 30, 99, 0.3);
  border-radius: 18px;
  padding: clamp(16px, 2.5vmin, 28px);
  box-shadow: var(--shadow), 0 0 20px rgba(233, 30, 99, 0.1);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn .6s ease-out;
  position: relative;
  z-index: 2;
}
.card:hover {
  border-color: rgba(255, 149, 0, 0.6);
  box-shadow: var(--shadow), 0 0 35px rgba(255, 149, 0, 0.25);
  transform: translateY(-4px);
}
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.05; color: #E91E63; }
h1 { font-size: clamp(42px, 8vmin, 96px); letter-spacing: .5px; }
h2 { font-size: clamp(28px, 4.8vmin, 48px); }
h3 { font-size: clamp(20px, 3.2vmin, 28px); }
p, li, summary { font-size: clamp(15px, 2.2vmin, 18px); color: #2C2C2C; opacity: .95; line-height: 1.6; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* -------- Chips / Buttons -------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 14px;
  border-radius: 999px; border: 2px solid rgba(233, 30, 99, 0.4);
  background: rgba(255, 250, 240, 0.8);
  color: #2C2C2C; text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  position: relative;
  /* clip shine pseudo-element to button shape */
  overflow: hidden;
  font-weight: 600;
}
.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* brighter, narrower shine that sits above content */
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.38) 45%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.38) 55%, transparent 100%);
  border-radius: inherit;
  z-index: 3;
  will-change: transform;
  /* Use transform for smoother, more reliable animation when parent transforms are applied */
  transform: translateX(-140%);
  transition: transform .6s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.chip:hover::before {
  transform: translateX(140%);
}
.chip:hover { transform: translateY(-3px) scale(1.08); border-color: var(--accent); box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5); }
.chip:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chip:active {
  transform: translateY(-1px) scale(0.96);
}
.chip.primary { 
  background: linear-gradient(135deg, #FF9500, #FFD700); 
  color: #2C2C2C; 
  border: 2px solid #FF6B35; 
  font-weight: 700; 
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.4); 
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: buttonPulse 2.5s ease-in-out infinite;
}
.chip.primary:hover { 
  transform: translateY(-5px) scale(1.08); 
  box-shadow: 0 14px 40px rgba(255, 149, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.5); 
}
.chip.primary:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

#startGameBtn {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 24px !important;
  height: 46px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #FF9500 0%, #FFD700 100%) !important;
  color: #2C2C2C !important;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5), -1px -1px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 
              0 5px 15px rgba(255, 149, 0, 0.35),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
  border: 2px solid #FF6B35 !important;
}

#startGameBtn:hover {
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25), 
              0 7px 18px rgba(255, 149, 0, 0.4),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
}

#startGameBtn:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22), 
              0 2px 8px rgba(255, 149, 0, 0.25),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
}
.chip.primary:active {
  transform: translateY(-2px) scale(0.95);
}
@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 8px 35px rgba(255, 149, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 8px 50px rgba(255, 149, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.5); }
}
.chip.outline { 
  background: transparent;
  position: relative;
}

.chip.outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 149, 0, 0.05), transparent);
  border-radius: 999px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.chip.outline:hover::after {
  opacity: 1;
}

.chip.copy { cursor: none !important; }

/* Magnetic Button Effect */
.chip {
  --mx: 0px;
  --my: 0px;
}

.chip:not(.potion) {
  will-change: transform;
}

.chip:not(.potion):hover {
  transform: translate(var(--mx), var(--my)) translateY(-3px) scale(1.08) !important;
}

/* Potion Particle Effects */
@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
    opacity: 0;
    filter: brightness(0.5);
  }
}

@keyframes particlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.magic-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  animation: particleFloat 1.2s ease-out forwards;
  z-index: 99999;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.magic-particle.pulse {
  animation: particlePulse 0.5s ease-out, particleFloat 1.2s ease-out 0.2s forwards;
}


.link-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 900px) {
  .link-grid { width: 100%; }
  .link-grid .chip { flex: 1 1 auto; justify-content: center; }
}

/* -------- Hero -------- */
#hero { 
  padding: 0; 
  position: relative;
  height: 911px;
  min-height: 911px;
  max-height: 911px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Nintendo-style badge plaque for the first block */
.nintendo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 48px 32px 40px;
  background: linear-gradient(135deg, #FF9500 0%, #FFD700 25%, #FF8FAB 50%, #B572D4 75%, #4A90E2 100%);
  border-radius: 32px;
  box-shadow: 
    0 16px 40px rgba(255, 107, 53, 0.4),
    inset -4px -4px 0 rgba(0,0,0,0.15),
    inset 4px 4px 0 rgba(255,255,255,0.8),
    0 0 40px rgba(255, 149, 0, 0.5);
  border: 5px solid rgba(255,255,255,0.95);
  animation: ninjoBounce 3s ease-in-out infinite;
  backdrop-filter: blur(12px);
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}

.badge-title {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #2C2C2C;
  text-shadow: 
    2px 2px 0 rgba(255, 255, 255, 0.9),
    4px 4px 8px rgba(0, 0, 0, 0.15),
    -1px -1px 0 rgba(255, 255, 255, 0.6);
  letter-spacing: 1.2px;
  line-height: 1;
}

.badge-subtitle {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #373636;
  text-shadow: 
    1px 1px 0 rgba(255, 255, 255, 0.9),
    3px 3px 6px rgba(0, 0, 0, 0.12);
  letter-spacing: 2px;
  line-height: 1;
}

.badge-tagline {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2C2C2C;
  text-shadow: 
    1px 1px 0 rgba(255, 255, 255, 0.9),
    2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.6px;
  line-height: 1.2;
  opacity: 0.98;
}

.badge-info {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    1px 1px 0 rgba(0, 0, 0, 0.4),
    0px 0px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  line-height: 1.1;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
}

.badge-star {
  font-size: 48px;
  line-height: 1;
  animation: starTwinkle 2s ease-in-out infinite;
  filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 12px rgba(255, 215, 0, 1));
}

.nintendo-badge::before {
  display: none;
}

.nintendo-badge::after {
  display: none;
}

@keyframes ninjoBounce {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}

@media (max-width: 600px) {
  .nintendo-badge {
    top: 14px;
    left: 14px;
    padding: 16px 20px 16px 16px;
    gap: 14px;
  }
  
  .badge-content {
    min-width: 160px;
    gap: 3px;
  }
  
  .badge-title {
    font-size: 16px;
  }
  
  .badge-subtitle {
    font-size: 14px;
  }
  
  .badge-tagline {
    font-size: 11px;
  }
  
  .badge-info {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .badge-star {
    font-size: 28px;
  }
}
.hero-img {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  z-index: -1;
}
.energy-bg {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 0 50px rgba(255, 149, 0, 0.4));
  animation: floatEnergy 6s ease-in-out infinite;
}
/* Decorative orange glow under the energy image */
.energy-glow {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,230,200,0.95) 0%, rgba(255,149,0,0.45) 28%, rgba(255,149,0,0.08) 55%, transparent 70%);
  filter: blur(40px) saturate(1.1);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0; /* sits above hero image (z -1) and below energy image (z 1) */
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.95; }
  50% { transform: translateY(calc(-50% - 8px)) scale(1.03); opacity: 0.85; }
}
@keyframes floatEnergy {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(calc(-50% - 40px)) scale(1.05);
  }
}
@media (max-width: 1024px) {
  .energy-bg {
    width: 500px;
    height: 500px;
    right: 3%;
  }
  .energy-glow { width: 500px; height: 500px; right: 3%; }
}
@media (max-width: 768px) {
  .energy-bg {
    width: 350px;
    height: 350px;
    right: 5%;
    opacity: 0.7;
  }
  .energy-glow { width: 350px; height: 350px; right: 5%; opacity: 0.7; }
}
.vignette { 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(1200px 800px at 50% 20%, transparent 40%, rgba(0,0,0,.55)); 
  z-index: 1;
}

.brand { 
  position: relative;
  z-index: 2;
  text-align: left;
  animation: brandFadeIn .8s ease-out;
  width: auto;
  max-width: none;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.brand h1 {
  display: none;
}

.brand .tag {
  display: none;
}
@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.brand h1 {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 900;
  background: linear-gradient(90deg, #FFB84D 0%, #FFD700 50%, #FFB84D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.12)) drop-shadow(-1px -1px 2px rgba(255,255,255,0.08));
  margin: 0;
}
.brand h1 .glow { 
  text-shadow: 
    0 0 20px rgba(255,149,0,0.95),
    0 0 40px rgba(181,114,212,0.8),
    0 0 60px rgba(255,215,0,0.5),
    2px 2px 3px rgba(0,0,0,0.12),
    -1px -1px 2px rgba(255,255,255,0.08);
  animation: homeGlow 3s ease-in-out infinite;
  letter-spacing: 2px;
  font-weight: 900;
}

/* Brand icon (cookie) inside the hero title */
.brand-icon {
  width: clamp(36px, 6vmin, 52px);
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}
@keyframes homeGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(255, 149, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.2); }
  50% { text-shadow: 0 0 50px rgba(255, 149, 0, 0.9), 0 0 100px rgba(255, 215, 0, 0.5); }
}
.tag { 
  opacity: .9; 
  margin-top: 6px;
  animation: fadeInUp .8s ease-out .2s both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-row {
  position: absolute; 
  bottom: 60px; 
  left: 50%; 
  transform: translateX(-50%);
  z-index: 2;
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  justify-content: center;
  animation: slideUp .7s ease-out .4s both;
  width: 100%;
  max-width: 800px;
}

#hero .cta-row .chip.primary {
  color: #ffffff;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.scroll-hint {
  position: absolute; 
  bottom: 20px; 
  right: 24px; 
  opacity: .7; 
  font-size: 12px; 
  letter-spacing: 2px; 
  text-transform: uppercase;
  z-index: 2;
  animation: bobbing 2.5s ease-in-out infinite;
}
@keyframes bobbing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* -------- Potion buttons positioning (default: right) -------- */
.potions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
  pointer-events: auto;
}

/* Move potions to left side when inside the hero section */
#hero .potions {
  right: auto !important;
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-35%) !important;
  flex-direction: column !important;
}

@media (max-width: 800px) {
  #hero .potions { left: 12px !important; top: auto !important; bottom: 96px !important; transform: none !important; flex-direction: row !important; }
}
.potion {
  width: 280px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FF6B35;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  border-radius: 12px;
  background: transparent !important;
  backdrop-filter: none;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  /* allow default transitions/animations (restored) */
  transition: all .18s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}
.potion:hover,
.potion:focus,
.potion:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: none !important;
  brightness: 1 !important;
  opacity: 1 !important;
}
.potion-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.potion-labels {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  filter: none !important;
}

/* Completely disable any visual effects on potions and their children */
.potion * {
  filter: none;
}

/* Disable shine/gloss effect on potion chips */
.potion.chip::before {
  display: none !important;
}

.potion.chip:hover::before {
  display: none !important;
}

@media (max-width: 800px) {
  .potions { right: 12px; top: auto; bottom: 96px; transform: none; flex-direction: row; }
  .potion { width: 150px; height: 84px; }
}

/* -------- Lore (Page 2) -------- */
#lore { 
  overflow: hidden; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 4rem 2rem;
}
.bg-wrap { 
  position: absolute; 
  inset: 0; 
  z-index: 0;
  width: 100%;
  height: 100%;
}
.bg { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: saturate(1.05) brightness(.8);
}
.bg-blur { 
  position: absolute; 
  inset: 0; 
  backdrop-filter: blur(6px);
  z-index: 1;
}

.lore-grid {
  display: grid; 
  gap: 28px; 
  width: min(1200px, 100%);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.lore-visual.card { padding: 0; overflow: hidden; min-height: 320px; }
.lore-visual.card img { width: 100%; height: 100%; object-fit: cover; display:block; }
.lore-grid > .card { height: 100%; display: flex; flex-direction: column; }
.lore-text { max-width: 58ch; }
.lore-text p { line-height: 1.65; margin-bottom: 0.85rem; }
.lore-text .lead { font-size: 1.12rem; color: #2C2C2C; opacity: .98; margin-bottom: 0.9rem; font-weight: 700; }

/* Lore title color and lore card borders */
#lore-title { color: #373636; }
.lore-grid .card { background: linear-gradient(135deg, rgba(255,250,240,0.95), rgba(255,245,220,0.9)); border: 1px solid #F5E6D4; }
.bullets { margin: .2em 0 0 1.1em; line-height: 1.6; }

@media (max-width: 900px) {
  .lore-grid { 
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .lore-grid > .card { height: auto; }
  .lore-visual.card img { height: auto; object-fit: contain; }
  
  #hero {
    height: auto;
    min-height: 100vh;
  }
  
  .cta-row {
    bottom: 40px;
  }
  
  h1 { font-size: clamp(32px, 6vmin, 96px); }
  h2 { font-size: clamp(24px, 4vmin, 48px); }
}

/* Promo banner + global flying candle */
.promo-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-radius:14px;
  background: linear-gradient(90deg, #FFD700 0%, #FF9500 100%);
  box-shadow: 0 18px 60px rgba(255, 149, 0, 0.25), inset 0 -6px 20px rgba(0, 0, 0, 0.05);
  color: #2C2C2C;
  margin-top: .6rem;
  position: relative;
  overflow: visible;
}
.promo-banner .promo-content { text-align:left; flex:1; }
.promo-banner .section-title { margin:0; color:#373636; font-size: clamp(20px, 2.6vmin, 28px); letter-spacing: 0.6px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.promo-banner .promo-sub { font-weight:800; color:#373636; margin-top:6px; }
.banner-candle { width:64px; height:84px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; margin-left:12px; }
.banner-candle .candle-body { width:24px; height:42px; background: linear-gradient(#FFE5CC, #FFD700); border-radius:6px; box-shadow: inset 0 2px 0 rgba(255,255,255,0.3); }
.banner-candle .candle-flame { width: 20px; height:20px; background: radial-gradient(circle at 30% 30%, #fff3a8, #ffd166 40%, #ff6a00 70%); border-radius:50%; transform-origin:center bottom; animation: flameFlicker 900ms infinite; margin-bottom:6px; }
@keyframes flameFlicker { 0%{ transform: translateY(0) scale(1);}50%{ transform: translateY(-4px) scale(1.06);}100%{transform:translateY(0) scale(1);} }

@media (max-width: 900px) {
  .promo-banner { padding: 12px; gap: 10px; }
  .banner-candle { width:48px; height:64px; }
}

/* -------- Token (Page 3) -------- */
.view.alt { 
  background: linear-gradient(135deg, #FFF5E1 0%, #FFF5E1 50%, #FFF5E1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 3rem 2rem;
}
.token-wrap { 
  width: 100%;
  max-width: 1200px;
  display: flex; 
  flex-direction: column; 
  gap: 2rem;
  position: relative;
  z-index: 2;
}
/* Adjust top spacing so Token Features content sits higher */
/* Constrain token area height to fit 911px on desktop by reducing paddings/gaps */
#token .token-wrap {
  padding-top: 1.2rem;
  padding-bottom: 1rem;
  gap: 1rem;
  max-height: 911px;
  height: 911px;
  box-sizing: border-box;
  overflow: hidden;
}

#token .section-title {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

#token .section-title .highlight {
  color: #ffffff;
}

#token .features-grid {
  margin-top: 0.1rem;
  gap: 12px;
}

/* tighten token-grid spacing and card paddings so content fits */
#token .token-grid {
  gap: 12px;
}

#token .card {
  padding: clamp(10px, 1.8vmin, 14px);
}

/* slightly reduce feature-card padding/icon spacing */
.feature-card {
  padding: 18px 12px;
  min-height: 120px;
}

@media (max-width: 900px) {
  /* revert to natural flow on small screens */
  #token .token-wrap { padding-top: 1rem; padding-bottom: 1rem; max-height: none; height: auto; overflow: visible; }
  #token .features-grid { gap: 14px; }
  #token .card { padding: 12px; }
}
.token-grid {
  display: grid; 
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  width: 100%;
}
.token-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45) saturate(1.1) blur(18px);
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.35));
  z-index: 1;
}

/* Gallery: centered grid of square thumbnails */
.gallery {
  margin-top: 2rem;
  width: 100%;
  max-width: 1084px; /* fixed width requested by user */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  justify-items: center;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  z-index: 2;
  padding: 12px 6px;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  margin-left: auto;
  margin-right: auto;
}

/* hide any scrollbars inside the gallery (cross-browser) */
.gallery {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.gallery::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  height: 0;
  width: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* enforce square */
  object-fit: cover;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1), filter .25s ease;
  position: relative;
  overflow: hidden;
  cursor: none !important;
  display: block;
}

.gallery img::before,
.gallery img::after {
  display: none;
}

.gallery img:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.03);
}

.gallery { /* remove scroll-snap for wrapped layout */ }

@media (min-width: 1400px) {
  .gallery img { width: 170px; height: 170px; }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .gallery img { width: 150px; height: 150px; }
}
@media (max-width: 899px) {
  .gallery img { width: 130px; height: 130px; }
}
@media (max-width: 600px) {
  .gallery img { width: 120px; height: 120px; }
}
@media (max-width: 400px) {
  .gallery img { width: 100px; height: 100px; }
}

/* -------- FAQ (Page 4) -------- */
details { 
  background: var(--glass); 
  border: 1.5px solid rgba(255, 149, 0, 0.2); 
  border-radius: 14px; 
  padding: 12px 14px; 
  margin: 10px 0; 
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInLeft .6s ease-out;
}
details:hover { 
  border-color: rgba(255, 149, 0, 0.5); 
  background: rgba(255, 240, 200, 0.5);
  box-shadow: 0 0 30px rgba(255, 149, 0, 0.1);
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
summary { cursor: none !important; font-weight: 600; }
.footer { margin-top: 28px; opacity: .7; text-align: center; font-size: 12px; }

/* Particles Canvas */
#stars { position: fixed; inset: 0; z-index: -3; background: transparent; display: none; }

/* Hide custom cursor - use browser default */
body { cursor: auto; }
.cursor {
  display: none !important;
  pointer-events: none !important;
}

/* Clean section styling */
section.view {
  position: relative;
}

/* Subtle fade-in effect for sections */
section.view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 149, 0, 0.2), transparent);
  pointer-events: none;
}

/* Charts block */
#charts .card { text-align: center; }
#charts .section-title { color: var(--warm-cream); margin-bottom: .2rem; }
#charts .charts-grid { align-items: stretch; overflow: visible !important; position: relative; z-index: 10; }
#charts .charts-grid canvas { 
  width: 100% !important; 
  height: 320px !important; 
  max-height: 420px; 
  transition: opacity .25s ease, visibility .25s ease;
  overflow: visible;
  display: block;
}

/* Statistics blocks */
.stats-row .stat-box {
  padding: 1rem;
  background: rgba(255, 240, 200, 0.5);
  border-radius: 10px;
  border: 1.5px solid rgba(255, 149, 0, 0.3);
  animation: statPopIn 0.6s ease-out forwards;
  opacity: 0;
}
.stats-row .stat-box:nth-child(1) { animation-delay: 0.1s; }
.stats-row .stat-box:nth-child(2) { animation-delay: 0.2s; }
.stats-row .stat-box:nth-child(3) { animation-delay: 0.3s; }
.stats-row .stat-box:nth-child(4) { animation-delay: 0.4s; }

@keyframes statPopIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF9500, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #2C2C2C;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Баджи с иконками */
.feature-badge {
  padding: 1rem;
  background: rgba(46, 204, 113, 0.08);
  border: 1.5px solid rgba(46, 204, 113, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: default;
  animation: badgeSlide 0.5s ease-out forwards;
  opacity: 0;
}
.feature-badge:nth-child(1) { animation-delay: 0.5s; }
.feature-badge:nth-child(2) { animation-delay: 0.6s; }
.feature-badge:nth-child(3) { animation-delay: 0.7s; }
.feature-badge:nth-child(4) { animation-delay: 0.8s; }

@keyframes badgeSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-badge:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}
.feature-badge:nth-child(1) .badge-icon { animation-delay: 0s; }
.feature-badge:nth-child(2) .badge-icon { animation-delay: 0.2s; }
.feature-badge:nth-child(3) .badge-icon { animation-delay: 0.4s; }
.feature-badge:nth-child(4) .badge-icon { animation-delay: 0.6s; }

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2ecc71;
}

.candle-stick { width: 100%; height: 100%; border-radius: 2px; box-shadow: 0 0 15px rgba(46, 204, 113, 0.9), 0 0 30px rgba(46, 204, 113, 0.5); background: linear-gradient(to top, #2ecc71, #27ae60) !important; }
/* Overlay candle that grows beyond the canvas and overlaps other blocks */
.overlay-candle {
  position: absolute;
  width: 12px;
  height: 1600px; /* real height will be set from JS */
  background: linear-gradient(to top, rgba(46,204,113,1), rgba(46,204,113,0.6));
  box-shadow: 0 0 40px rgba(46,204,113,0.9), 0 0 120px rgba(46,204,113,0.25);
  border-radius: 3px;
  pointer-events: none;
  transform-origin: bottom center;
  z-index: 99999;
  mix-blend-mode: screen;
}

/* Safety override: hide any leftover overlay/candle visuals that may remain */
.overlay-candle, .candle-stick {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-width: 900px) {
  #charts .charts-grid { grid-template-columns: 1fr !important; }
  #charts .charts-grid canvas { height: 260px !important; }
  .stat-value { font-size: 1.4rem; }
  .badge-icon { font-size: 1.5rem; }
}
/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s ease, transform .6s ease; will-change: transform; }
[data-reveal].visible { opacity: 1; transform: none; }


/* ===== Buy Page (Page 4) ===== */
.buy-page { position: relative; overflow: hidden; }
.buy-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding-bottom: 14vh; /* space for big button */
}
.buy-header h2 { font-size: clamp(32px, 5.2vmin, 64px); }
.buy-header p { opacity: .85; margin-top: 6px; }

.buy-art {
  width: min(860px, 90%);
  height: min(62vh, 560px);
  padding: 0;
  overflow: hidden;
  background: rgba(10,20,16,.45);
}
.buy-art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.03);
}

/* Big BUY button centered at bottom */
.buy-cta {
  position: absolute;
  left: 50%; bottom: 5.5vh; transform: translateX(-50%);
  text-decoration: none;
  padding: 18px 34px;
  border-radius: 999px;
  font-size: clamp(20px, 3vmin, 28px);
  font-weight: 900; letter-spacing: .8px;
  color: #062a16;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 14px 40px rgba(61,246,158,.35),
    inset 0 2px 8px rgba(255,255,255,.35);
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: pulseGlow 2.2s ease-in-out infinite;
  z-index: 3;
}
.buy-cta:hover { transform: translateX(-50%) scale(1.04); box-shadow: 0 18px 60px rgba(61,246,158,.5), inset 0 2px 10px rgba(255,255,255,.5); }
.buy-cta:active { transform: translateX(-50%) scale(0.98); }

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(61,246,158,0.0)); }
  50% { filter: drop-shadow(0 0 24px rgba(246, 160, 61, 0.55)); }
}

@media (max-width: 900px) {
  .buy-wrap { padding-bottom: 12vh; }
  .buy-art { height: min(50vh, 460px); }
}

/* ===== Buy Page (square art, static button) ===== */
.buy-page { position: relative; overflow: hidden; }
.buy-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 22px;
  height: 100%;
  padding: 4vmin 4vmin;
}
.buy-header { text-align: center; max-width: 900px; }
.buy-header h2 { font-size: clamp(34px, 5.4vmin, 66px); }
.buy-header .lead { font-size: clamp(18px, 2.6vmin, 22px); opacity: .95; margin: 6px 0; }
.buy-header .sub { font-size: clamp(15px, 2.2vmin, 18px); opacity: .85; }
.buy-art {
  width: min(64vh, 720px);
  max-width: 90vmin;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: rgba(10,20,16,.45);
  display: grid;
}
.buy-art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.03);
}
.buy-cta-static {
  text-decoration: none;
  padding: 18px 38px;
  border-radius: 999px;
  font-size: clamp(20px, 3vmin, 28px);
  font-weight: 900; letter-spacing: .8px;
  color: #062a16;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 10px 32px rgba(246, 160, 61, 0.35),
    inset 0 2px 8px rgba(255,255,255,.35);
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: pulseGlow 2.2s ease-in-out infinite;
}
.buy-cta-static:hover { transform: scale(1.04); box-shadow: 0 18px 60px rgba(61,246,158,.5), inset 0 2px 10px rgba(255,255,255,.5); }
.buy-cta-static:active { transform: scale(0.98); }
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(61,246,158,0.0)); }
  50% { filter: drop-shadow(0 0 24px rgba(246, 160, 61, 0.55)); }
}
@media (max-width: 900px) {
  .buy-art { width: 80vmin; }
}


/* ===== Slider on Buy Page + Lightning BG ===== */
.slider-page { position: relative; overflow: hidden; }
#lightning {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1; /* behind content */
  pointer-events: none;
  filter: blur(0.3px);
  opacity: 0.6;
}
.slider-wrap { gap: 22px; }
.slider {
  position: relative;
  width: min(900px, 92%);
  height: min(62vh, 560px);
  overflow: hidden;
  padding: 0;
}
.slider .slides { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr auto;
  opacity: 0; transform: scale(.98);
  transition: opacity .5s ease, transform .5s ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  text-align: center; padding: 10px 12px; font-weight: 700; letter-spacing: .3px; color: var(--ink);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(15,25,20,.65));
  border-top-left-radius: 12px; border-top-right-radius: 12px;
}
.slider .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(109,242,143,.35); background: rgba(10,20,16,.45); color: var(--ink);
  display: grid; place-items: center; cursor: none !important; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.slider .nav:hover { border-color: var(--accent); }
.slider .nav.prev { left: 10px; }
.slider .nav.next { right: 10px; }
.slider .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider .dots button {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); border: none; cursor: none !important; transition: transform .2s ease, background .2s ease;
}
.slider .dots button.active { background: var(--accent); transform: scale(1.3); }
.under-cta { opacity: .8; }





/* ===== Square Collage BUY Page ===== */
.collage-page { position: relative; overflow: hidden; }
.collage-wrap {
  width: min(1200px, 95%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 4vmin 0;
  background: radial-gradient(900px 600px at 50% 0%, rgba(109,242,143,0.10), transparent 80%);
}
.collage {
  width: min(100%, 1000px);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.collage-left { grid-column: 1 / 2; grid-row: 1 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.collage-right { grid-column: 2 / 3; grid-row: 1 / 3; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.collage-top, .collage-bottom { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; }
.collage-left img:hover, .collage-top img:hover, .collage-bottom img:hover { transform: scale(1.04); filter: brightness(1.05); }
.buy-cta-static { text-decoration: none; padding: 18px 40px; border-radius: 999px; font-size: clamp(22px, 3vmin, 28px); font-weight: 900; letter-spacing: .8px; color: #062a16; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 32px rgba(61,246,158,.35), inset 0 2px 8px rgba(255,255,255,.35); border: 0; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; animation: pulseGlow 2.2s ease-in-out infinite; }
.buy-cta-static:hover { transform: scale(1.04); box-shadow: 0 18px 60px rgba(61,246,158,.5), inset 0 2px 10px rgba(255,255,255,.5); }
.buy-cta-static:active { transform: scale(0.98); }
.under-cta { text-align: center; font-size: 1.1rem; opacity: .85; }
@media (max-width: 960px) {
  .collage { aspect-ratio: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .collage-left { grid-column: 1; grid-row: 1; }
  .collage-right { grid-column: 1; grid-row: 2; grid-template-rows: auto; }
}


/* ===== BUY HERO (Page 4) ===== */
.buy-hero{ position:relative; overflow:hidden; display:grid; place-items:center; padding:0; isolation:isolate; }
.buy-hero::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,149,0,0.1), rgba(255,215,0,0.05));
  filter:blur(7px) brightness(.85) saturate(1.06);
  transform:scale(1.04);
  z-index:-2;
}
.buy-hero__overlay{ position:absolute; inset:0; background:radial-gradient(1100px 760px at 50% 10%, rgba(6,18,12,.25), rgba(0,0,0,.68)); z-index:-1; }
.buy-hero__content{}
.buy-title{ font-size:clamp(36px,6.2vmin,74px); margin-bottom:.25em; }
.buy-tag{ font-size:clamp(16px,2.6vmin,22px); opacity:.96; margin:0 0 1.1rem; }

.buy-cta-big{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  margin:.7rem 0 1.1rem; padding:20px 44px; border-radius:999px; border:0;
  font-weight:900; letter-spacing:.8px; font-size:clamp(20px,3vmin,28px);
  color:#06072a; text-decoration:none;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 16px 50px rgba(61, 89, 246, 0.329), inset 0 2px 8px rgba(255,255,255,.35);
  transition:transform .18s ease, box-shadow .18s ease;
  animation:pulseGlow 2.2s ease-in-out infinite;
}
.buy-cta-big::after{
  content:""; position:absolute; inset:40% -14% -60% -14%;
  background:radial-gradient(60% 80% at 50% 30%, rgba(109, 155, 242, 0.35), rgba(109,242,143,0));
  filter:blur(18px); z-index:-1;
}
.buy-cta-big:hover{ transform:translateY(-2px) scale(1.03); box-shadow:0 20px 68px rgba(246, 144, 61, 0.58), inset 0 2px 10px rgba(255,255,255,.5); }

@keyframes pulseGlow{ 0%,100%{filter:drop-shadow(0 0 0 rgba(61,246,158,0));} 50%{filter:drop-shadow(0 0 22px rgba(246, 181, 61, 0.5));} }
.buy-meme{ font-size:clamp(15px,2.2vmin,18px); opacity:.92; }

@media (max-width:780px){ .buy-hero__content{} }


/* Button-only layout on Buy page */
.buy-hero{ position:relative; overflow:hidden; padding:0; display:block; }
.buy-bottom{
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 8vh, 72px);
  transform: translateX(-50%);
  z-index: 5;
}


/* Remove hard override so CTA animations work as intended */
.buy-cta-big{ /* animations restored */ }
.buy-cta-big:hover, .buy-cta-big:active, .buy-cta-big:focus{ /* normal hover allowed */ }


/* === FORCE CENTER BOTTOM === */
.buy-cta-big{ display: inline-block !important; }
.buy-bottom{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(5vh + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  z-index: 9999 !important;
  width: max-content !important;
  text-align: center !important;
}


/* === PAGE-4 ONLY bottom-centered button (no global fixed) === */
.buy-hero { position: relative !important; }
.buy-hero .buy-bottom{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: clamp(28px, 8vh, 72px) !important;
  margin: 0 !important;
  z-index: 5 !important;
  width: max-content !important;
  text-align: center !important;
}
/* -------- Game Section -------- */

/* Lightning Effects from Energe-ninja */
.lightning {
  position: absolute;
  right: 18%;
  top: -50px;
  width: 280px;
  height: 1011px;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 80px rgba(255, 165, 0, 0.7));
}

.lightning-bolt {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: lightningStrike 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) drop-shadow(0 0 60px rgba(255, 165, 0, 0.8));
}

@keyframes lightningStrike {
  0%, 7%, 11%, 16%, 100% {
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
  }
  8%, 10%, 12%, 15% {
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) drop-shadow(0 0 60px rgba(255, 165, 0, 1));
  }
  30%, 35%, 40%, 100% {
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
  }
}

/* Chocolate particles from Cookie-ninja */
.chocolate-particle {
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 35%, #FFD700, #FF9500, #B572D4);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(255,149,0,0.9), 0 8px 20px rgba(0, 0, 0, 0.18), inset -2px -2px 6px rgba(0, 0, 0, 0.06), inset 2px 2px 5px rgba(255, 230, 200, 0.3);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.choco-1 { animation: chocolateFall 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite; left: 5%; top: 5%; }
.choco-2 { animation: chocolateFall 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s infinite; left: 11%; top: 10%; }
.choco-3 { animation: chocolateFall 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s infinite; left: 3%; top: 8%; }
.choco-4 { animation: chocolateFall 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s infinite; left: 13%; top: 15%; }
.choco-5 { animation: chocolateFall 2.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s infinite; left: 8%; top: 12%; }
.choco-6 { animation: chocolateFall 2.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s infinite; left: 6%; top: 18%; }
.choco-7 { animation: chocolateFall 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s infinite; left: 12%; top: 7%; }
.choco-8 { animation: chocolateFall 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.05s infinite; left: 7%; top: 20%; }
.choco-9 { animation: chocolateFall 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s infinite; left: 10%; top: 6%; }

@keyframes chocolateFall {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(200, 117, 51, 1)) brightness(1.1);
  }
  30% {
    filter: drop-shadow(0 0 20px rgba(200, 117, 51, 0.9)) brightness(1);
  }
  60% {
    filter: drop-shadow(0 0 15px rgba(139, 90, 43, 0.7)) brightness(0.95);
  }
  100% {
    transform: translateY(911px) translateX(180px) scale(0.05) rotate(720deg);
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(200, 117, 51, 0.3)) brightness(0.8);
  }
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(600px, 100%);
  position: relative;
  z-index: 2;
}

.game-logo {
  width: clamp(224px, 44vw, 416px);
  height: auto;
  max-height: 144px;
  object-fit: contain;
  margin-bottom: 30px;
  animation: logoSlideIn .6s ease-out;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

@keyframes logoSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.game-container h2 {
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 12px;
  animation: titleSlideIn .6s ease-out;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: rgba(255, 240, 200, 0.5);
  backdrop-filter: blur(18px);
  padding: 36px;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 149, 0, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: boardAppear .6s ease-out .2s both;
  position: relative;
  overflow: hidden;
}

.game-board::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: glowShift 8s ease-in-out infinite;
}

@keyframes boardAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-cell {
  width: clamp(80px, 18vw, 120px);
  height: clamp(80px, 18vw, 120px);
  background: linear-gradient(135deg, rgba(80, 60, 45, 0.6), rgba(50, 35, 25, 0.8));
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 18px;
  cursor: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 6.5vw, 52px);
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px;
  /* background-size: 80% !important; */
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.game-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 149, 0, 0.1), transparent);
  border-radius: 16px;
  pointer-events: none;
}

.game-cell:hover:not(.taken) {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.5), rgba(255, 215, 0, 0.3)) !important;
  border-color: rgba(255, 149, 0, 1);
  transform: scale(1.12) translateY(-6px);
  box-shadow: 0 12px 35px rgba(255, 149, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-cell:active:not(.taken) {
  transform: scale(0.96);
}

.game-cell.taken {
  cursor: none !important;
  animation: cellPopIn .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cellPopIn {
  0% {
    transform: scale(0.3) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.game-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: rgba(255, 240, 200, 0.5);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1.5px solid rgba(255, 149, 0, 0.25);
  min-width: 280px;
  animation: fadeInUp .6s ease-out .3s both;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

#gameStatus {
  font-size: clamp(18px, 3vmin, 24px);
  color: var(--accent-2);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#resetBtn {
  min-width: 180px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#resetBtn:hover {
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.4);
}

#resetBtn:active {
  transform: scale(0.95);
}
/* Custom cursor styles removed - using browser default cursor for clean UX */

@keyframes cursorExpand {
  from {
    width: 24px;
    height: 24px;
  }
  to {
    width: 40px;
    height: 40px;
  }
}

/* -------- SUPERJET-INSPIRED COMPONENTS -------- */

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: featureSlideIn .6s ease-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,149,0,0.06), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,149,0,0.12), transparent);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

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

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

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 149, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.18), rgba(255, 215, 0, 0.12));
  box-shadow: 0 20px 50px rgba(255, 149, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}
.feature-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes featureSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-icon {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  object-fit: contain;
  margin-bottom: 12px;
  display: inline-block;
  animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.feature-number {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
}

.feature-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,149,0,0.08), transparent);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: tableSlideUp .7s ease-out;
}

@keyframes tableSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 149, 0, 0.15);
  transition: all .3s ease;
}

.specs-table tr:hover {
  background: rgba(255, 149, 0, 0.1);
  border-bottom-color: rgba(255, 149, 0, 0.3);
}

.specs-table th {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(255, 215, 0, 0.1));
  padding: 16px;
  text-align: left;
  font-weight: 700;
  color: #FF6B35;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 149, 0, 0.3);
}

.specs-table td {
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  vertical-align: middle;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--accent);
  min-width: 150px;
}

/* Stat Blocks */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 12px;
  transition: all .3s ease;
  animation: statPopIn .5s ease-out;
}

@keyframes statPopIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-block:hover {
  border-color: rgba(255,149,0,0.45);
  background: rgba(255,149,0,0.12);
  transform: translateY(-5px);
}
.stat-block:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stat-value {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}

/* Highlight Text */
.highlight {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  animation: underlineExpand .6s ease-out;
}

@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Section Title with Line */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2em;
  animation: titleSlideIn .7s ease-out;
  text-shadow: 0 0 18px rgba(255,149,0,0.28);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: expandWidth .8s ease-out;
  box-shadow: 0 0 18px rgba(255,149,0,0.45);
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--warm-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  50% {
    background: linear-gradient(135deg, var(--accent-2), var(--warm-gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Counter Animation */
.counter {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--accent);
}

/* Staggered List Items */
.feature-list {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: listItemSlide .5s ease-out backwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.1s; }
.feature-list li:nth-child(2) { animation-delay: 0.2s; }
.feature-list li:nth-child(3) { animation-delay: 0.3s; }
.feature-list li:nth-child(4) { animation-delay: 0.4s; }
.feature-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes listItemSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

/* -------- Forms & Inputs -------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  background: rgba(255, 250, 240, 0.9);
  border: 1.5px solid rgba(255, 149, 0, 0.25);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all .3s ease;
  font-family: inherit;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(255,149,0,0.4);
  background: rgba(255, 240, 200, 0.7);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 240, 200, 0.9);
  box-shadow: 0 0 20px rgba(255,149,0,0.18);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* -------- Responsive Improvements -------- */
@media (max-width: 1024px) {
  .features-grid {
    gap: 16px;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  h1 { font-size: clamp(32px, 6vmin, 96px); }
  h2 { font-size: clamp(24px, 4vmin, 48px); }
  
  .specs-table {
    font-size: 12px;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 10px 8px;
  }
  
  .feature-card {
    padding: 16px 12px;
  }
  
  .stat-block {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .chip {
    height: 36px;
    font-size: 13px;
    padding: 0 12px;
  }
  
  .specs-table {
    font-size: 11px;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 8px 6px;
  }
}

/* ====== TRENDY ANIMATIONS ====== */

/* 1. Magnetic Button Effect */
.chip, button {
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

/* 2. Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.float-element {
  animation: float 3s ease-in-out infinite;
}

/* 3. Gradient Shift Animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* 4. Pulse Glow Effect */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,149,0,0.36), inset 0 0 20px rgba(255,149,0,0.12); }
  50% { box-shadow: 0 0 40px rgba(255,149,0,0.7), inset 0 0 30px rgba(255,149,0,0.18); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* 5. Text Reveal Animation */
@keyframes textReveal {
  0% { 
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  100% { 
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.text-reveal {
  animation: textReveal 0.8s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* 6. Scroll Parallax */
.parallax-element {
  will-change: transform;
}

/* 7. Interactive Glow on Hover */
.interactive-glow {
  position: relative;
  overflow: hidden;
}

.interactive-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,149,0,0.22) 0%, transparent 70%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.interactive-glow:hover::before {
  left: 100%;
}

/* 8. Number Counter */
.counter {
  font-weight: 700;
  font-size: 2em;
}

/* 9. Smooth Fade Scale */
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-scale {
  animation: fadeScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ====== ADVANCED TRENDING EFFECTS 2025-2026 ====== */

/* 1. LIQUID GLASS / GLASSMORPHISM */
.glass-liquid {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-liquid::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(50%, 50%) rotate(360deg); }
}

/* 2. MORPHING BLOB ANIMATION */
@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.blob-morph {
  animation: morph 8s ease-in-out infinite;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  width: 200px;
  height: 200px;
  position: relative;
}

/* 3. MESH GRADIENT BACKGROUND */
@keyframes meshFlow {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

.mesh-gradient {
  background: linear-gradient(135deg, #FF9500 0%, #FFD700 25%, #FF8FAB 50%, #B572D4 75%, #4A90E2 100%);
  background-size: 400% 400%;
  animation: meshFlow 15s ease infinite;
}

/* 4. INK TRANSITION EFFECT */
@keyframes inkSpread {
  0% { 
    clip-path: circle(0% at var(--mouse-x, 50%) var(--mouse-y, 50%));
  }
  100% { 
    clip-path: circle(150% at var(--mouse-x, 50%) var(--mouse-y, 50%));
  }
}

.ink-transition {
  position: relative;
  overflow: hidden;
}

.ink-transition::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: inkSpread 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  opacity: 0;
}

.ink-transition:hover::after {
  opacity: 1;
}

/* 5. FLUENT BLUR EFFECT */
.fluent-blur {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 240, 200, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fluent-blur:hover {
  background: rgba(255, 240, 200, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,149,0,0.18);
  box-shadow: 0 8px 32px rgba(255,149,0,0.14);
}

/* 6. KINETIC TEXT ANIMATION */
@keyframes kinetic {
  0%, 100% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(-10px) scaleY(1.1); }
}

.kinetic-text {
  animation: kinetic 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  display: inline-block;
}

/* 7. SPRINGY HOVER SCALE */
@keyframes springScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.springy {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.springy:hover {
  animation: springScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 8. 3D TILT EFFECT */
.tilt-3d {
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

/* 9. DISTORTION WAVE ANIMATION */
@keyframes distortionWave {
  0%, 100% { filter: distort(0px); }
  50% { filter: distort(2px); }
}

.distortion-wave {
  animation: distortionWave 3s ease-in-out infinite;
}

/* 10. AURORA GLOW EFFECT */
@keyframes auroraGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255,149,0,0.28),
                0 0 40px rgba(255, 215, 0, 0.16);
  }
  50% { 
    box-shadow: 0 0 40px rgba(255,149,0,0.52),
                0 0 80px rgba(255, 215, 0, 0.32);
  }
}

.aurora-glow {
  animation: auroraGlow 4s ease-in-out infinite;
}

/* 11. RETRO WAVE / SYNTHWAVE */
.retrowave {
  background: linear-gradient(180deg, #0a0e27 0%, #1a0033 50%, #2d0052 100%);
  position: relative;
}

.retrowave::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 128, 0.03) 0px,
    rgba(255, 0, 128, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* 12. SVELTE SMOOTH FADE */
@keyframes svelteFade {
  from { 
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

.svelte-fade {
  animation: svelteFade 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* 13. LIQUID SWIPE ANIMATION */
@keyframes liquidSwipe {
  0% { 
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  100% { 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.liquid-swipe {
  animation: liquidSwipe 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* 14. NEON GLOW TEXT */
.neon-glow {
  text-shadow: 0 0 10px rgba(255,149,0,0.78),
               0 0 20px rgba(255, 215, 0, 0.56),
               0 0 30px rgba(255,149,0,0.36);
  animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 149, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6); }
  50% { text-shadow: 0 0 20px rgba(255, 149, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8); }
}

/* 15. NEUMORPHIC EFFECT */
.neumorphic {
  background: linear-gradient(135deg, #e0e5ec 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 9px 9px 16px #a3b1c6, 
              -9px -9px 16px #ffffff;
  padding: 20px;
}

/* 16. MICRO INTERACTIONS - Hover states */
[data-micro-hover] {
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

[data-micro-hover]:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

[data-micro-hover]:active {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* ====== FUN INTERACTIVE ELEMENTS ====== */

/* 1. CONFETTI ANIMATION */
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(600px) rotate(720deg);
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 20px;
}

.confetti.falling {
  animation: confetti-fall 2s ease-in forwards;
}

/* 2. EMOJI REACTION BURST */
@keyframes emoji-burst {
  0% {
    transform: scale(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(-100px);
    opacity: 0;
  }
}

.emoji-reaction {
  position: fixed;
  pointer-events: none;
  font-size: 32px;
  z-index: 9998;
  animation: emoji-burst 1s ease-out forwards;
}

/* 3. PARTICLE TRAIL */
.particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9997;
  box-shadow: 0 0 10px rgba(255,149,0,0.8);
}

@keyframes particle-fade {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0) translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

.particle.animate {
  animation: particle-fade 1s ease-out forwards;
}

/* 4. EASTER EGG ANIMATION */
@keyframes bounce-rotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(-5deg); }
  75% { transform: translateY(-20px) rotate(5deg); }
}

.easter-egg {
  display: inline-block;
  animation: bounce-rotate 0.6s ease-in-out;
  cursor: none !important;
}

/* 5. FLOATING ACTION BUTTON */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2C2C2C;
  border: none;
  cursor: none !important;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.2) rotate(45deg);
  box-shadow: 0 8px 30px rgba(255, 149, 0, 0.7);
}

.fab:active {
  transform: scale(1.1) rotate(45deg);
}

/* 6. TOOLTIP ANIMATION */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: var(--accent);
  color: #2C2C2C;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -70px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 12px;
  font-weight: 600;
  animation: slideInUp 0.3s ease-out;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--accent) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

@keyframes slideInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 7. CURSOR GLOW EFFECT */
.cursor-glow {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  box-shadow: 0 0 15px rgba(255,149,0,0.48);
  display: none;
}

.cursor-glow.active {
  display: block;
}

/* 8. PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF9500, #FFD700, #FF8FAB);
  width: 0%;
  z-index: 9995;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 149, 0, 0.7);
}

/* 9. BOUNCE ANIMATION */
@keyframes bounce-element {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.bouncy {
  animation: bounce-element 1s ease-in-out infinite;
}

/* 10. SHAKE ANIMATION */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* 11. WOBBLE ANIMATION */
@keyframes wobble {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(-5deg); }
  75% { transform: skewX(5deg); }
}

.wobble {
  animation: wobble 0.8s ease-in-out infinite;
}

/* 12. FLIP ANIMATION */
@keyframes flip {
  0% { transform: perspective(400px) rotateY(0); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

.flip {
  animation: flip 0.6s ease-in-out;
}

/* 13. PULSE BEAT */
@keyframes pulse-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pulse-beat {
  animation: pulse-beat 1.5s ease-in-out infinite;
}

/* 14. NOTIFICATION TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 250, 240, 0.95);
  color: #2C2C2C;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
  z-index: 9994;
  animation: slideInRight 0.4s ease-out;
  max-width: 300px;
  backdrop-filter: blur(10px);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.hide {
  animation: slideOutRight 0.4s ease-out forwards;
}



/* Page-specific override: make the 4th block (#charts) exactly 911px high */
#charts {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 4rem;
  overflow: hidden;
  background-image: url('../images/trade-bg-big.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-clip: padding-box;
  background-repeat: no-repeat;
  position: relative;
}

#charts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 20, 10, 0.15);
  pointer-events: none;
  z-index: 0;
}

#charts .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  z-index: 1;
}

#charts .card {
  width: min(1100px, 98%);
  max-width: 1080px;
  padding: clamp(14px, 1.8vmin, 24px);
  margin: 0;
  text-align: left;
}

#charts .promo-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  background: linear-gradient(180deg, rgba(212,132,92,0.04), rgba(255,255,255,0.01));
  border-radius: 12px;
}

#charts .promo-content { flex: 1 1 auto; padding-right: 8px; text-align: left; }
#charts .promo-content .section-title { margin-bottom: 3px; line-height: 1.05; font-size: clamp(20px, 3.2vmin, 26px); text-align: left; }
#charts .promo-content p { margin: 2px 0; font-size: clamp(13px, 1.8vmin, 14px); text-align: left; }

#charts .banner-candle { flex: 0 0 auto; margin-left: 6px; }

#charts .stats-row { margin-top: 8px; gap: 8px; }
#charts .stat-box { background: rgba(255,255,255,0.02); padding: 12px; border-radius: 10px; text-align: center; }
#charts .stat-value { font-size: clamp(18px, 3.2vmin, 32px); font-weight: 800; color: var(--warm-cream); }

/* Ensure small screens remain usable: allow internal scroll but keep section height fixed */
@media (max-width: 720px) {
  #charts { overflow-y: auto; padding: 1rem; justify-content: center; }
  #charts .promo-banner { flex-direction: column; align-items: flex-start; }
  #charts .banner-candle { margin-left: 0; margin-top: 8px; }
  #charts .card { padding: 14px; }
}

/* Confine lightning visuals to the #game section so it doesn't overlap adjacent blocks */
#game {
  overflow: hidden;
}

#game .lightning {
  /* keep lightning inside the parent view */
  top: 0;
  height: 100%;
  max-height: 100%;
  right: 12%;
}

/* Make the 5th block (#token) fixed height 911px and improve layout */
#token {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  background-image: url('../images/token-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#token .token-bg-container { position: absolute; inset: 0; z-index: 0; }
#token .token-bg { width: 100%; height: 100%; object-fit: cover; }
#token .video-overlay { position: absolute; inset: 0; background: rgba(8,6,4,0.35); z-index: 1; }
#token .token-wrap { 
  position: relative; 
  z-index: 2; 
  width: min(1100px, 98%); 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0.5rem;
}

/* Ensure no blur effects inside the last block (#token) */
#token, #token * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Optimize the section title in token block */
#token .feature-icon {
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
  margin-bottom: 8px;
}

/* Ensure grid spacing is controlled by CSS (no inline styles) */
#token .features-grid {
  margin: 0.6rem 0 0.4rem 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

#token .feature-number {
  font-size: clamp(18px, 2.5vmin, 28px);
}

/* Token-specific tweaks: reduce icon motion, ensure equal card heights and contrast on dark 4th card */
#token .feature-icon {
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
  margin-bottom: 8px;
  animation: none;
}

#token .feature-card {
  padding: 18px 12px;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.85), rgba(255, 245, 220, 0.8));
  border-radius: 16px;
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 720px) {
  #token .feature-card { min-height: 100px; padding: 12px; }
  #token .features-grid { gap: 10px; }
}

#token .feature-number {
  font-size: clamp(18px, 2.5vmin, 28px);
}

#token .feature-label {
  font-size: clamp(12px, 1.8vmin, 14px);
}

/* Token cards: fit three cards in one row and constrain to 911px */
#token .token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1084px;
  margin: 0.25rem auto 0 auto;
  align-items: start;
}

#token .card {
  padding: clamp(12px, 2vmin, 18px);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(255, 245, 220, 0.9));
  /* remove blur on token cards (last block) */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(255, 107, 53, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 215, 0, 0.1);
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#token .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,149,0,0.12), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

#token .card:hover {
  border-color: rgba(255,149,0,0.8);
  background: linear-gradient(135deg, rgba(255, 250, 240, 1), rgba(255, 255, 255, 0.95));
  box-shadow: 0 20px 50px rgba(255,149,0,0.25), inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 215, 0, 0.15);
  transform: translateY(-6px);
}

#token .card:hover::before {
  opacity: 1;
}

#token .card h3 {
  margin: 0 0 0.6rem 0;
  font-size: clamp(16px, 2.2vmin, 22px);
  color: #373636;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

#token .card p {
  font-size: clamp(12px, 1.6vmin, 15px);
  margin: 0 0 0.5rem 0;
  color: #2C2C2C;
}

#token .card ul {
  margin: 0;
  padding-left: 0;
  font-size: clamp(12px, 1.6vmin, 15px);
  color: #2C2C2C;
  list-style: none;
}

#token .card li {
  margin: 0.8rem 0;
  font-size: inherit;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

#token .card li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #FF6B35;
  font-weight: bold;
  animation: starTwinkle 2.5s ease-in-out infinite;
}

#token .card .mono {
  font-size: clamp(14px, 2.2vmin, 18px);
  color: #FF9500;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* emphasize contract-address inside the first card */
#contract-address {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 900;
  color: #2C2C2C;
  letter-spacing: 0.6px;
}

/* larger copy button inside the Contract Address card */
#token .token-grid .card:nth-child(1) .chip.copy {
  height: 46px;
  padding: 0 18px;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  #token .card .mono { font-size: clamp(12px, 1.8vmin, 14px); }
  #contract-address { font-size: 1.03em; }
  #token .token-grid .card:nth-child(1) .chip.copy { height: 40px; padding: 0 14px; font-size: .95rem; }
}

/* Fixed heights for Contract Address (1st) and Links (3rd) cards on desktop */
#token .token-grid .card:nth-child(1),
#token .token-grid .card:nth-child(3) {
  height: 309.53px;
  display: flex;
  flex-direction: column;
}

/* Keep the Contract Address content near the top but pin its actions to the bottom */
#token .token-grid .card:nth-child(1) {
  justify-content: flex-start;
}
#token .token-grid .card:nth-child(1) .mini-row {
  margin-top: auto;
}

@media (max-width: 900px) {
  /* let cards flow naturally on small screens */
  #token .token-grid .card:nth-child(1),
  #token .token-grid .card:nth-child(3) {
    height: auto;
  }
}

/* Gallery in token section - responsive display */
/* ensure token section gallery uses the fixed width and grid */
#token .gallery {
  max-width: 1084px;
  margin-top: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.8), rgba(255, 245, 220, 0.75));
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  #token .token-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 720px) {
  #token { padding: 1rem; }
  #token .token-wrap { padding: 0; gap: 8px; }
  #token .section-title { margin: 0 0 0.6rem 0; }
  #token .features-grid { margin: 0.3rem 0 0.8rem 0; }
  #token .token-grid { gap: 10px; }
  #token .card { padding: 12px; }
}

/* ========== FLAPPY CINNAMON BUN GAME STYLES (NINTENDO STYLE) ========== */
#game {
  background-image: url('../images/game-bg-big.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-clip: padding-box;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  height: 911px;
  max-height: 911px;
  overflow: hidden;
  gap: 2rem;
}

/* Left Pipe Decoration */
.pipe-left-deco {
  position: absolute;
  left: 0%;
  top: 65%;
  transform: translateY(-20%) rotate(5deg);
  width: 450px;
  height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  overflow: visible;
}

@keyframes pipeBounce {
  0%, 100% {
    transform: translateY(-50%) rotate(5deg) translateX(0px) scaleY(1);
  }
  50% {
    transform: translateY(-50%) rotate(5deg) translateX(15px) scaleY(1.02);
  }
}

.pipe-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.2));
  transition: filter 0.3s ease;
}

.pipe-image:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 12px rgba(76, 175, 80, 0.4));
}
#game::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(100, 100, 100, 0.05);
  pointer-events: none;
  z-index: 0;
}
#game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 240, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 149, 0, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  height: 100%;
  overflow: hidden;
  max-height: 911px;
  gap: 2px;
}

.game-title {
  margin: 0 0 2px 0;
  font-size: clamp(16px, 3.5vmin, 24px);
  color: #2C2C2C;
  text-align: center;
  text-shadow: 0 1px 4px rgba(255, 149, 0, 0.15);
}

/* Apply cute rounded font to game UI */
.game-wrapper, .game-title, .hud-item, .game-controls .chip, .game-instruction {
  font-family: var(--game-font);
}

.game-title { letter-spacing: 0.6px; }

/* Playful / cartoonish UI additions */
@keyframes gamePopIn {
  0% { transform: scale(0.8) rotateX(30deg); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1) rotateX(0); opacity: 1; }
}

@keyframes gameTitleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-title {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700 0%, #FF9500 38%, #FF8FAB 72%, #B572D4 100%);
  color: #2C2C2C;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,107,53,0.95);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12),
              0 8px 20px rgba(255, 149, 0, 0.14),
              inset 0 -2px 6px rgba(255,255,255,0.35),
              inset 0 2px 6px rgba(255,255,255,0.12);
  transform-origin: center;
  animation: gamePopIn .5s cubic-bezier(0.34, 1.56, 0.64, 1), gameTitleBounce 2.5s ease-in-out infinite 0.5s;
  font-size: clamp(15px, 3.4vmin, 22px);
  letter-spacing: 0.6px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.08);
  cursor: default;
  position: relative;
  white-space: nowrap;
}

/* User overrides: specific color tweaks per request */
/* Make "View Token" in the lore block white for contrast */
#lore .link-grid .chip.primary {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Make the Flappy game title text beige */
#game .game-title {
  color: #F5E6D4;
}

/* Make the promo title in the charts block pure black */
#charts .promo-banner .section-title {
  color: #000000;
}

#flappyCanvas {
  display: block;
  margin: 2px auto;
  background-image: url('../images/game-bg.png'), linear-gradient(180deg,#b6e6f6 0%, #87CEEB 45%, #cdeffb 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: overlay;
  border-radius: 12px;
  border: 6px solid #4a90e2;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28),
              0 5px 12px rgba(74, 144, 226, 0.3),
              inset 0 -3px 6px rgba(0, 0, 0, 0.08),
              inset 0 1px 4px rgba(255, 255, 255, 0.15),
              0 0 16px rgba(74, 144, 226, 0.15);
  transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
  width: 100%;
  height: auto;
  cursor: none !important;
  flex-shrink: 0;
}

#flappyCanvas:hover {
  transform: translateY(-2px) scale(1.003);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.28),
              0 6px 14px rgba(74, 144, 226, 0.33),
              inset 0 -3px 6px rgba(0, 0, 0, 0.08),
              inset 0 1px 4px rgba(255, 255, 255, 0.15),
              0 0 20px rgba(74, 144, 226, 0.2);
}

#flappyCanvas:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25),
              0 3px 8px rgba(74, 144, 226, 0.22),
              inset 0 -3px 6px rgba(0, 0, 0, 0.08),
              inset 0 1px 4px rgba(255, 255, 255, 0.15);
}

.game-hud { 
  pointer-events: none; 
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.hud-item {
  background: linear-gradient(135deg, #FFF9F0 0%, #FFE8D6 100%);
  border-radius: 999px;
  padding: 8px 20px;
  color: #2C2C2C;
  border: 2px solid #FF9500;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22),
              0 3px 8px rgba(255, 149, 0, 0.25),
              inset 0 -1px 3px rgba(0, 0, 0, 0.06),
              inset 0 1px 2px rgba(255, 255, 255, 0.5),
              0 0 10px rgba(255, 200, 100, 0.2);
  font-weight: 700;
  font-size: 18px;
  animation: floaty 3.2s ease-in-out infinite;
  letter-spacing: 0.2px;
}
.hud-item.hud-score { 
  background: linear-gradient(135deg, #FFFBF7, #FFE8D6); 
  border-color: #FF9500;
  font-variation-settings: 'wght' 700;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.game-controls .chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF9500 0%, #FFD700 100%);
  border: 2px solid #FF6B35;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25),
              0 4px 10px rgba(255, 107, 53, 0.3),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.5),
              0 0 12px rgba(255, 150, 100, 0.2);
  font-weight: 700;
  font-size: 11px;
  color: #2C2C2C;
  cursor: none !important;
  pointer-events: auto;
  transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15px;
  position: relative;
  overflow: hidden;
}
.game-controls .chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left .5s ease;
}
.game-controls .chip:hover::before {
  left: 100%;
}
.game-controls .chip:hover {
  transform: translateY(-1px) scale(1.008);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18),
              0 5px 12px rgba(255,149,0,0.28),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.4),
              0 0 14px rgba(255, 150, 100, 0.15);
}
.game-controls .chip:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18),
              0 2px 6px rgba(255,149,0,0.22),
              inset 0 -2px 5px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

#gameScore {
  font-size: 18px;
  margin: 12px 8px;
  color: #2C2C2C;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(255, 250, 240, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  display: inline-block;
}

#bestFlight {
  font-size: 14px;
  margin: 12px 8px;
  color: #2C2C2C;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(255, 250, 240, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  display: inline-block;
}

.game-instruction {
  color: #2C2C2C;
  margin-top: 2px;
  margin-bottom: 0;
  font-size: 11px;
  text-align: center;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.85) 0%, rgba(255, 245, 220, 0.8) 100%);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 97%;
  line-height: 1.3;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* small cookie badges on canvas corners */
.canvas-wrap::before, .canvas-wrap::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.15));
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), inset 0 -4px 8px rgba(255,255,255,0.06);
  opacity: 0.9;
}
.canvas-wrap::before { left: 12px; top: 8px; }
.canvas-wrap::after { right: 12px; top: 8px; }

#flappyCanvas {
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
}

.game-controls {
  display: none !important;
}

#gameScore {
  font-size: clamp(14px, 2vmin, 18px);
  color: #f4d4a8;
  font-weight: 700;
}

.game-instruction {
  display: none !important;
}

@media (max-width: 768px) {
  #game {
    padding: 0.3rem;
  }
  
  .pipe-left-deco {
    display: none !important;
  }
  
  .game-wrapper {
    padding: 10px 12px;
    border-radius: 14px;
    border-width: 1px;
    gap: 4px;
  }
  
  .game-title {
    font-size: clamp(14px, 3vmin, 18px);
    padding: 5px 12px;
    border-width: 2px;
    margin-bottom: 3px;
  }
  
  #flappyCanvas {
    margin: 2px auto;
    border-width: 5px;
    border-radius: 10px;
  }
  
  .game-controls {
    display: none !important;
  }
  
  .game-controls .chip {
    display: none !important;
  }
  
  .game-instruction {
    display: none !important;
  }
  
  .hud-item {
    padding: 6px 14px;
    font-size: 14px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  #game {
    padding: 0.2rem;
  }
  
  .game-wrapper {
    padding: 8px 10px;
    border-radius: 12px;
    border-width: 1px;
    gap: 3px;
  }
  
  .game-title {
    font-size: clamp(12px, 2.5vw, 16px);
    padding: 4px 10px;
    border-width: 2px;
    margin-bottom: 2px;
  }
  
  #flappyCanvas {
    margin: 1px auto;
    border-width: 4px;
    border-radius: 8px;
  }
  
  .game-controls {
    display: none !important;
  }
  
  .game-controls .chip {
    display: none !important;
  }
  
  .game-instruction {
    display: none !important;
  }
  
  .hud-item {
    padding: 4px 10px;
    font-size: 12px;
    border-width: 1px;
  }
}

/* ========== GAME UI ENHANCEMENTS ========== */
.canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.game-hud {
  position: absolute;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  width: auto;
  max-width: calc(100% - 48px);
}

.hud-left { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

/* Animation: Score pulse on update */
@keyframes scorePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hud-item.hud-score {
  animation: floaty 3.2s ease-in-out infinite, scorePulse 0.4s ease-out;
}

/* Smooth button transitions */
.game-controls .chip {
  transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .game-wrapper {
    padding: 35px 25px;
  }
  
  .game-title {
    font-size: clamp(24px, 4.5vmin, 38px);
  }
  
  #flappyCanvas {
    margin: 24px auto;
  }
  
  .game-controls {
    gap: 14px;
    padding: 28px 32px;
  }
}

/* Game Overlay & Start Screen */
.canvas-wrap {
  position: relative;
  display: inline-block;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.game-overlay[style*="display: none"] {
  pointer-events: none;
}

.game-start-screen,
.game-over-screen {
  text-align: center;
  color: #2C2C2C;
}

.start-content,
.game-over-content {
  background: linear-gradient(135deg, rgba(255,250,240,0.98) 0%, rgba(255,245,220,0.95) 100%);
  backdrop-filter: blur(6px);
  padding: 26px 34px;
  border-radius: 12px;
  border: 2px solid rgba(255,149,0,0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 0 20px rgba(255,149,0,0.06);
  animation: gamePopIn 0.32s ease-out;
}

.start-content h3,
.game-over-content h3 {
  margin: 0 0 10px 0;
  font-size: clamp(20px, 4.5vmin, 30px);
  color: #FF6B35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.start-content p,
.game-over-content p {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #2C2C2C;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  line-height: 1.5;
}

.start-content .chip,
.game-over-content .chip {
  margin-top: 8px;
}

/* Game Rules (readable cream style) */
.game-rules {
  width: 100%;
  text-align: left;
  color: #2C2C2C;
  margin-top: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.95) 0%, rgba(255, 245, 220, 0.9) 100%);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.game-rules h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #FF6B35;
  font-weight: 700;
}

.game-rules ul {
  margin: 0 0 6px 0;
  padding-left: 18px;
  list-style: none;
}

.game-rules li {
  margin: 6px 0;
  padding-left: 18px;
  position: relative;
}

.game-rules li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #FF9500;
}

.game-tip {
  margin: 8px 0 0 0;
  padding: 8px 10px;
  background: rgba(255, 245, 220, 0.6);
  border-left: 3px solid #FFD700;
  font-style: italic;
  color: #2C2C2C;
}

@media (max-width: 720px) {
  .game-hud { 
    top: 12px; 
    left: 12px; 
    right: 12px; 
    transform: translateX(0);
  }
  
  .hud-item { 
    padding: 12px 22px; 
    font-size: 20px;
  }
  
  .start-content,
  .game-over-content {
    padding: 16px 24px;
  }
  
  .start-content h3,
  .game-over-content h3 {
    font-size: clamp(14px, 3vmin, 20px);
  }
  
  .game-rules {
    padding: 10px 12px;
    font-size: 10px;
  }
  
  .game-rules h3 {
    font-size: 11px;
  }
}

/* ========== ROADMAP BUTTON & MODAL ========== */
.roadmap-btn {
  width: 100.08px !important;
  height: 90px !important;
  /* allow a small, smooth scale on hover while keeping centered */
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1) !important;
  animation: none !important;
  filter: none !important;
  transform: translateY(-50%) scale(1) !important; /* keep centered */
  will-change: transform !important;
  cursor: pointer !important;
}

/* Strong overrides: disable animations/transitions on hover/focus/active and all descendants */
.roadmap-btn:hover,
.roadmap-btn:focus,
.roadmap-btn:active {
  /* Slight scale up on hover/focus while preserving centering */
  transform: translateY(-50%) scale(1.06) !important;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1) !important;
  animation: none !important;
  filter: none !important;
  will-change: transform !important;
}

.roadmap-btn,
.roadmap-btn * {
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

.roadmap-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000;
}

.roadmap-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.roadmap-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.roadmap-modal__dialog {
  position: relative;
  z-index: 10001;
  max-width: 90%;
  max-height: 90vh;
  background: transparent;
  border-radius: 20px;
  /* prevent internal scrolling; ensure content fits via size limits */
  overflow: visible;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Ensure any image inside the roadmap dialog fits the viewport and does not cause scroll */
.roadmap-modal__dialog img,
.roadmap-modal__dialog .roadmap-image {
  display: block;
  max-width: calc(75vw);
  max-height: calc(75vh);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 16px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------------------ REMOVE CUSTOM CURSOR ------------------ */
/* Force default cursor everywhere, but restore pointer for clickable controls */
* { cursor: auto !important; }
button, a, input, textarea, [role="button"], .chip { cursor: pointer !important; }

/* Hide any DOM-based custom cursor elements to avoid duplicate visuals */
.cursor,
.cursor-glow,
.custom-cursor,
.cursor-dot,
.cursor-follower,
#cursor,
#custom-cursor,
.cursor-inner {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


.roadmap-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: rgba(255, 149, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2C2C2C;
  transition: all 0.2s ease;
  z-index: 10002;
}

.roadmap-modal__close:hover {
  background: rgba(255, 149, 0, 0.4);
  transform: rotate(90deg);
}

.roadmap-modal__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ========== LAST BLOCK OVERRIDES ========== */
/* Overrides for last .view block: make cards non-transparent except gallery */

.view:last-of-type .card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(233, 30, 99, 0.5) !important;
  box-shadow: var(--shadow) !important;
}

/* Make feature cards opaque as well */
.view:last-of-type .feature-card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(233, 30, 99, 0.5) !important;
}

/* Keep gallery cards/containers using original translucent style */
.view:last-of-type .gallery .card,
.view:last-of-type .gallery-grid .card,
.view:last-of-type .gallery-wrap .card,
.view:last-of-type .token-gallery .card,
.view:last-of-type .gallery-item,
.view:last-of-type .gallery-card {
  background: var(--card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Prevent body scroll when modal is open */
body.roadmap-modal-open {
  overflow: hidden;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* let the image define height */
  background: linear-gradient(135deg, #A8E6CF 0%, #DCEEF5 50%, #FFF5E1 100%);
  overflow: hidden;
}

.divider-image {
  display: block;
  width: auto;       /* show at natural image width */
  max-width: none;   /* do not constrain by css */
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
}

.divider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--game-font);
  font-size: clamp(16px, 2vmin, 22px);
  font-weight: 800;
  color: #2C2C2C;
  background: rgba(255,255,255,0.95);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(233,30,99,0.25);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .section-divider { padding: 1rem 0.5rem; }
  .divider-image { max-width: 100%; width: 100%; }
  .divider-text { font-size: 14px; padding: 0.4rem 0.8rem; }
}

/* Feedback bubble when user copies CA */
.divider-copy-feedback {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
  z-index: 20;
}

.section-divider { cursor: pointer; }
