/* ============================================
   COINRUSH ULTRA-MODERN LANDING PAGE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 25, 0.6);
  --primary: #00ffa3;
  --primary-glow: rgba(0, 255, 163, 0.4);
  --accent: #7000ff;
  --accent-glow: rgba(112, 0, 255, 0.4);
  --text-main: #ffffff;
  --text-muted: #888899;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.02);
  
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* BACKGROUND MESH - TOP PROFESSIONAL UPGRADE */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: #030508;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.mesh-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(0, 255, 163, 0.08), transparent 70%);
  filter: blur(100px);
  animation: float-orb-1 25s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
}

/* Galaxy Theme - Supernova Edition */
.galaxy-gradient {
  display: none;
}

/* Twinkling Stars */
.stars-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.static-stars {
  width: 1px;
  height: 1px;
  background: transparent;
  opacity: 0.6;
}

.star-twinkle {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Galaxy Spiral Animation */
.galaxy-wrapper {
  display: none;
}

.galaxy-spiral {
  position: absolute;
  inset: 0;
  animation: rotate-galaxy 200s linear infinite;
}

.galaxy-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(50px);
  mix-blend-mode: screen;
}

.arm-1 {
  background: conic-gradient(from 0deg, transparent 0%, rgba(139, 92, 246, 0.2) 10%, rgba(139, 92, 246, 0.4) 20%, transparent 40%);
}

.arm-2 {
  background: conic-gradient(from 180deg, transparent 0%, rgba(14, 165, 233, 0.2) 10%, rgba(14, 165, 233, 0.4) 20%, transparent 40%);
}

.galaxy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15vw;
  height: 15vw;
  background: radial-gradient(circle, #fff 0%, rgba(167, 139, 250, 0.8) 20%, rgba(139, 92, 246, 0.4) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(30px);
  box-shadow: 0 0 120px rgba(255, 255, 255, 0.6);
  z-index: 1;
  mix-blend-mode: screen;
  animation: pulse-core 8s infinite alternate ease-in-out;
}

@keyframes rotate-galaxy {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-core {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Supernova & Aurora Effects */
.mesh-blob {
  display: none;
}

.blob-1 {
  top: -10%;
  left: 10%;
  width: 90vw;
  height: 90vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%); /* Violet */
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 100vw;
  height: 100vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%); /* Sky Blue */
  animation-delay: -10s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%); /* Pink */
  animation-delay: -20s;
}

.supernova-center {
  display: none;
}

@keyframes pulse-supernova {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); filter: hue-rotate(0deg); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); filter: hue-rotate(15deg); }
}

/* Cyber Orbs */
.cyber-orb {
  display: none;
}

.orb-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 20%;
  animation-delay: -5s;
}

.orb-2 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(112, 0, 255, 0.4) 20%, transparent 60%);
  animation-delay: -15s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -50px); }
  66% { transform: translate(-20px, 20px); }
}

/* Shooting Crypto Coins */
.shooting-coin {
  position: absolute;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 0;
  animation: shoot-coin 8s infinite ease-in-out;
  pointer-events: none;
}

.shooting-coin svg {
  width: 20px;
  height: 20px;
  z-index: 2;
  animation: spin-coin 2s linear infinite;
}

.shooting-coin::after {
  content: '';
  position: absolute;
  right: 5px; /* Connect to coin */
  width: 100px;
  height: 2px;
  z-index: 1;
}

/* BTC */
.coin-btc svg { color: #f7931a; filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.8)); }
.coin-btc::after { background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.6)); }

/* ETH */
.coin-eth svg { color: #627eea; filter: drop-shadow(0 0 8px rgba(98, 126, 234, 0.8)); }
.coin-eth::after { background: linear-gradient(90deg, transparent, rgba(98, 126, 234, 0.6)); }

/* USDT */
.coin-usdt svg { color: #26a17b; filter: drop-shadow(0 0 8px rgba(38, 161, 123, 0.8)); }
.coin-usdt::after { background: linear-gradient(90deg, transparent, rgba(38, 161, 123, 0.6)); }

.star-1 { top: 10%; left: 50%; animation-delay: 2s; }
.star-2 { top: 40%; left: 80%; animation-delay: 6s; }
.star-3 { top: 60%; left: 20%; animation-delay: 4s; }
.star-4 { top: 15%; left: 90%; animation-delay: 8s; }
.star-5 { top: 80%; left: 40%; animation-delay: 12s; }
.star-6 { top: 5%; left: 20%; animation-delay: 3s; }
.star-7 { top: 70%; left: 90%; animation-delay: 9s; }
.star-8 { top: 25%; left: 10%; animation-delay: 15s; }

@keyframes shoot-coin {
  0% { transform: rotate(-45deg) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  20% { transform: rotate(-45deg) translateX(-600px); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes spin-coin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating Particles */
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: particle-drift 60s linear infinite;
  z-index: 1;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
  100% { transform: translate(-10px, 10px) scale(0.95); }
}

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

/* UTILITIES */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(to right, #fff, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #00ffa3 0%, #00d486 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 163, 0.3);
}

/* BUTTONS */
.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00ffa3 0%, #00d486 100%);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 255, 163, 0.5), 0 0 0 2px rgba(0, 255, 163, 0.3);
  background: linear-gradient(135deg, #33ffb5 0%, #00ffa3 100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.btn-glass:hover::after {
  transform: translateX(100%);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.2);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

/* Logo */
.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.topnav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4fffb0 0%, #2dd490 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #0d1117;
  letter-spacing: -0.5px;
}

.topnav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topnav-logo-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #4fffb0;
}

.topnav-logo-subtitle {
  font-size: 10px;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid rgba(0, 255, 163, 0.2);
  border-radius: 100px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

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

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.9;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -2px;
  color: #fff;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.4s ease;
}

.hero-content h1:hover {
  transform: scale(1.02) translateX(10px);
  text-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.hero-content h1:hover .text-gradient-primary {
  text-shadow: 0 0 60px rgba(0, 255, 163, 0.6), 0 0 20px rgba(0, 255, 163, 0.4);
}

.hero-content p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 400;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-content p:hover {
  color: #cbd5e1;
  transform: translateX(5px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 36px;
  background: rgba(13, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: fit-content;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-stats-strip:hover {
  background: rgba(13, 14, 18, 0.8);
  border-color: rgba(0, 255, 163, 0.3);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    0 0 30px rgba(0, 255, 163, 0.1);
  transform: translateY(-2px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
  cursor: default;
  padding: 4px 8px;
  border-radius: 8px;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.stat-item:hover .stat-value {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 255, 163, 0.5);
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glitch Effect Removed - Clean Gradient */
.glitch-text {
  position: relative;
  display: inline-block;
}

/* HERO VISUAL - CRASH GRAPH */
.hero-visual {
  position: relative;
  height: 500px;
  perspective: 1000px;
}

.visual-card {
  width: 100%;
  height: 100%;
  background: rgba(13, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s ease;
  box-shadow: 
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 60px rgba(0, 255, 163, 0.05);
}

/* Removed weird overlay ::before */

.hero-visual:hover .visual-card {
  transform: rotateY(0) rotateX(0) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 50px 100px -20px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0, 255, 163, 0.3),
    0 0 100px rgba(0, 255, 163, 0.1);
}

.crash-graph {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 255, 163, 0.1), transparent);
}

.crash-line {
  stroke: var(--primary);
  stroke-width: 4;
  fill: none;
  filter: drop-shadow(0 0 10px var(--primary));
}

.crash-multiplier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px var(--primary-glow);
}

/* BATTLE VISUAL - MATCHING BARBARIAN.CSS */
.battle-arena {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('/static/img/barbarian/knight.duel.background.png') no-repeat center center;
  background-size: cover;
  border-radius: 24px;
  overflow: hidden;
}

.battle-scene {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  position: relative;
  height: 200px;
}

.knight-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 120px;
}

.fighter-sprite-container {
  width: 128px;
  height: 128px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fighter-sprite {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}

/* Sprite Images */
/* Creator (Left) - Flip to face Right */
.fighter-sprite.creator.sprite-idle { background-image: url('/static/img/barbarian/knight.idle.png'); transform: scaleX(-1); }
.fighter-sprite.creator.sprite-normal { background-image: url('/static/img/barbarian/knight.normal.png'); transform: scaleX(-1); }
.fighter-sprite.creator.sprite-hurt { background-image: url('/static/img/barbarian/knight.hurt.png'); transform: scaleX(-1); }
.fighter-sprite.creator.sprite-potion { background-image: url('/static/img/barbarian/knight.potion.png'); transform: scaleX(-1); }
.fighter-sprite.creator.sprite-attack { background-image: url('/static/img/barbarian/knight.normal.png'); transform: scaleX(-1); }
.fighter-sprite.creator.sprite-hit { background-image: url('/static/img/barbarian/knight.hurt.png'); transform: scaleX(-1); }

/* Opponent (Right) - Default faces Left */
.fighter-sprite.opponent.sprite-idle { background-image: url('/static/img/barbarian/knight.idle.png'); transform: none; }
.fighter-sprite.opponent.sprite-normal { background-image: url('/static/img/barbarian/knight.normal.png'); transform: none; }
.fighter-sprite.opponent.sprite-hurt { background-image: url('/static/img/barbarian/knight.hurt.png'); transform: none; }
.fighter-sprite.opponent.sprite-potion { background-image: url('/static/img/barbarian/knight.potion.png'); transform: none; }
.fighter-sprite.opponent.sprite-attack { background-image: url('/static/img/barbarian/knight.normal.png'); transform: none; }
.fighter-sprite.opponent.sprite-hit { background-image: url('/static/img/barbarian/knight.hurt.png'); transform: none; }

/* Animations */
.fighter-sprite-container.left.attacking {
  transform: translateX(60px) scale(1.1);
  z-index: 10;
}

.fighter-sprite-container.right.attacking {
  transform: translateX(-60px) scale(1.1);
  z-index: 10;
}

.fighter-sprite.shake {
  /* Base shake style */
  filter: brightness(1.5) sepia(1) hue-rotate(-50deg) saturate(5); /* Red flash */
}

.fighter-sprite.creator.shake {
  animation: shake-flipped 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.fighter-sprite.opponent.shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.health-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.health-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.health-bar-fill.low {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.damage-number {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #ef4444;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  animation: float-up 0.8s ease-out forwards;
  z-index: 20;
  pointer-events: none;
  white-space: nowrap;
}

.damage-number.heal {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  font-size: 28px;
}

.vs-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  font-style: italic;
}

.winner-crown {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  animation: bounce 1s infinite;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
  z-index: 20;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

@keyframes shake-flipped {
  10%, 90% { transform: scaleX(-1) translate3d(-2px, 0, 0); }
  20%, 80% { transform: scaleX(-1) translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: scaleX(-1) translate3d(-6px, 0, 0); }
  40%, 60% { transform: scaleX(-1) translate3d(6px, 0, 0); }
}

@keyframes float-up {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -20px) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(1); opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* LIVE TICKER */
.live-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 14, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.ticker-track {
  display: inline-flex;
  animation: scroll 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  color: var(--text-muted);
  font-size: 14px;
  border-right: 1px solid var(--border-color);
}

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

.win-amount {
  color: var(--primary);
  font-weight: 600;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* GAMES GRID */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  margin-bottom: 16px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background: rgba(13, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 163, 0.3);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    0 0 30px rgba(0, 255, 163, 0.1);
  background: rgba(13, 14, 18, 0.8);
}

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

.game-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #fff;
  font-size: 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* NEW GAME CARD STYLES */
.game-card {
  padding: 0; /* Reset padding for new layout */
  display: flex;
  flex-direction: column;
}

.game-card-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a20; /* Fallback */
}

.game-card-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 1;
}

.game-visual-element {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: transform 0.5s ease;
}

.game-card:hover .game-visual-element {
  transform: scale(1.05);
}

/* --- GAME SPECIFIC VISUALS --- */

/* COINFLIP: Golden Coin Glow */
.visual-coinflip {
  background: radial-gradient(circle at center, #4d3b00 0%, #1a1200 100%);
}
.visual-coinflip .game-visual-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateY(20deg);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(0,0,0,0.5);
  border: 4px solid #ffe066;
}
.visual-coinflip .game-visual-element::after {
  content: '$';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(20deg);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}

/* CRASH: Rising Graph */
.visual-crash {
  background: linear-gradient(135deg, #2d0a15 0%, #1a0508 100%);
}
.visual-crash .game-visual-element::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 77, 77, 0.2) 100%);
  clip-path: polygon(0 100%, 100% 100%, 100% 20%, 0 80%);
}
.visual-crash .game-visual-element::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ff4d4d;
  transform: rotate(-30deg);
  transform-origin: bottom left;
  box-shadow: 0 0 15px #ff4d4d;
}

/* JACKPOT: Emerald Riches */
.visual-jackpot {
  background: radial-gradient(circle at top right, #003322 0%, #001a11 100%);
}
.visual-jackpot .game-visual-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 163, 0.1);
  border: 2px solid #00ffa3;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 30px rgba(0, 255, 163, 0.2);
}
.visual-jackpot .game-visual-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0, 255, 163, 0.5);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* KNIGHTS: Royal Battle */
.visual-knights {
  background: linear-gradient(to bottom, #1a0b2e 0%, #0d0518 100%);
}
.visual-knights .game-visual-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 100px;
  background: #a855f7;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 15px #a855f7;
}
.visual-knights .game-visual-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 100px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 0 15px #fff;
  opacity: 0.8;
}

/* DICE: Cyber Cube */
.visual-dice {
  background: radial-gradient(circle at bottom, #002833 0%, #00141a 100%);
}
.visual-dice .game-visual-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid #00c9ff;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
  box-shadow: 0 0 20px rgba(0, 201, 255, 0.3);
  background: rgba(0, 201, 255, 0.1);
}
.visual-dice .game-visual-element::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(0, 201, 255, 0.5);
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
}

/* LOTTERY: Ticket Stub */
.visual-lottery {
  background: linear-gradient(135deg, #330f1f 0%, #1a050f 100%);
}
.visual-lottery .game-visual-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 60px;
  background: linear-gradient(90deg, #f15f79, #b24592);
  transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 4px;
  mask-image: radial-gradient(circle at 0 50%, transparent 10px, black 11px), radial-gradient(circle at 100% 50%, transparent 10px, black 11px);
  mask-position: 0 0, 0 0;
  mask-size: 100% 100%;
  mask-composite: intersect;
}

.game-card-icon {
  position: absolute;
  bottom: -24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(13, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 3;
}

.game-card-icon svg {
  width: 24px;
  height: 24px;
}

.game-card-content {
  padding: 30px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.game-card p {
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  width: fit-content;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* FEATURE VISUALS */
.provably-fair-visual {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}

.code-block {
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  color: #94a3b8;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.code-line { margin-bottom: 8px; }
.code-keyword { color: #c678dd; }
.code-var { color: #e06c75; }
.code-string { color: #98c379; }
.code-func { color: #61afef; }
.code-comment { color: #5c6370; font-style: italic; }

.shield-icon-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 180px;
  color: rgba(255,255,255,0.03);
  transform: rotate(-15deg);
  pointer-events: none;
}

.payouts-visual {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  position: relative;
}

.wallet-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 2;
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.wallet-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.wallet-balance {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.wallet-status {
  font-size: 13px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.floating-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-coin {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
  animation: float-coin 4s ease-in-out infinite;
}

.coin-1 { top: 20%; left: 20%; animation-delay: 0s; }
.coin-2 { top: 60%; right: 20%; animation-delay: 1.5s; width: 30px; height: 30px; }
.coin-3 { bottom: 20%; left: 30%; animation-delay: 2.5s; width: 50px; height: 50px; }

@keyframes float-coin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* FEATURES */
.features-section {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse .feature-content {
  direction: ltr;
}

.feature-visual {
  background: rgba(13, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(112, 0, 255, 0.1);
  border-color: rgba(112, 0, 255, 0.3);
}

.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.feature-visual:hover::after {
  opacity: 0.8;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 42px;
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background: #020202;
}

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

.footer-col h5 {
  color: #fff;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 56px;
  }
  
  .hero-content p {
    margin: 0 auto 40px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
    margin-top: 40px;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-row.reverse {
    direction: ltr;
  }
}
