:root {
  --bg: #0a0a0c;
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --red: #c8102e;
  --ink: #f2efe6;
  --muted: #8a8578;
}

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

html, body { height: 100%; }

body {
  background: radial-gradient(ellipse at 50% 40%, #14141a 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  min-height: 100vh;
}

/* 3D-сцена: деньги, карты, монеты летят на зрителя */
.scene {
  position: fixed;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform, opacity;
  animation: fly linear forwards;
  pointer-events: none;
}

@keyframes fly {
  0%   { transform: translate3d(0, 0, -900px) scale(.15) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate3d(var(--dx), var(--dy), 320px) scale(1.7) rotate(var(--rot)); opacity: 0; }
}

.card {
  width: 46px; height: 64px;
  background: linear-gradient(160deg, #ffffff, #e8e6df);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.card.red   { color: var(--red); }
.card.black { color: #1a1a1a; }

.coin {
  width: 40px; height: 40px;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, #8a6d14 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: #5c4708;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .45), inset 0 0 0 3px rgba(255, 255, 255, .25);
}

.bill {
  width: 64px; height: 30px;
  background: linear-gradient(160deg, #2e7d4f, #1d5c38);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #c9f0d8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}

main {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  animation: fadeIn 1.2s ease .2s both;
}

.spade {
  color: var(--red);
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(200, 16, 46, .55);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.logo-text .win { color: var(--gold); }

h1 {
  font-size: clamp(40px, 9vw, 100px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.05;
  text-transform: uppercase;
  animation: flyIn 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

h1 .gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #9a7b1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(212, 175, 55, .25);
}

@keyframes flyIn {
  0%   { transform: translateZ(-800px) scale(.2); opacity: 0; filter: blur(10px); }
  55%  { opacity: 1; }
  100% { transform: translateZ(0) scale(1); opacity: 1; filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: 20px 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}

footer .domain { color: var(--gold); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .particle, h1, .logo { animation: none !important; }
}
