:root {
  --bg-green: #0b6623;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  z-index: 4;
  color: #ffd54f;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.55);
  padding: 18px 32px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  animation: pulse 2.5s infinite ease-in-out;
}

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

.floating-card {
  position: absolute;
  width: 110px;
  height: 150px;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  z-index: 2;
  transform-origin: center;
  animation: wobble 3s ease-in-out infinite;
}

.fc1 { top: 6%; left: 6%; animation-delay: 0s; }
.fc2 { top: 18%; right: 6%; animation-delay: 0.5s; }
.fc3 { bottom: 14%; left: 10%; animation-delay: 1s; }
.fc4 { bottom: 8%; right: 12%; animation-delay: 1.5s; }

.card-rank { font-weight: 900; font-size: 18px; }
.card-suit { font-size: 56px; text-align: center; line-height: 1; }
.card-small { font-size: 14px; }

@keyframes wobble {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(3deg) translateY(-4px); }
  50% { transform: rotate(0deg) translateY(0); }
  75% { transform: rotate(-3deg) translateY(4px); }
  100% { transform: rotate(0deg) translateY(0); }
}

/* Money rain */
.money {
  position: absolute;
  top: -50px;
  width: 60px;
  height: 30px;
  background: linear-gradient(90deg, #66bb6a, #43a047);
  border: 2px solid #2e7d32;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  animation: fall linear infinite;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  font-family: Arial, sans-serif;
}

@keyframes fall {
  0% { transform: translateY(-60px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.9; }
}
