:root {
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-dark: #b8860b;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --bg: #050505;
  --card: #0d0d0d;
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  font-family: 'Poppins', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 40px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(184, 134, 11, 0.08), transparent),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin-top: 12px;
  margin-bottom: 4px;
}

.logo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.logo {
  width: 185px;
  height: 55px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow), 0 0 25px rgba(212, 175, 55, 0.15);
  background: #111;
  transition: transform 0.3s ease;
  animation: logoPulse 2.5s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(212, 175, 55, 0.35);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.headline {
  display: none;
}

@keyframes shimmer { to { background-position: 200% center; } }

.subheadline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 1.2px;
  text-align: center;
  opacity: 0.95;
  margin-top: -6px;
  animation: fadeInUp 0.9s 0.25s both;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subheadline .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0 6px;
  animation: fadeInUp 0.9s 0.35s both;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge svg { width: 12px; height: 12px; fill: var(--gold); }

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  animation: fadeInUp 0.9s 0.45s both;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  color: #1a1200;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(135deg, #f5d76e 0%, #d4af37 45%, #b8860b 100%);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: vipPulse 2.4s ease-in-out infinite;
}

@keyframes vipPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
  50% { box-shadow: 0 6px 28px rgba(212, 175, 55, 0.65), 0 0 0 5px rgba(212, 175, 55, 0.1); }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  color: var(--gold-light);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
}

.btn-secondary:hover {
  background: linear-gradient(145deg, #222, #151515);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25), 0 0 20px rgba(212, 175, 55, 0.12);
}

.btn-secondary:active { transform: translateY(0) scale(0.98); }

.btn:focus-visible,
.consent-banner button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
}

.btn:hover::before { left: 140%; }
.btn span,
.btn svg { position: relative; z-index: 2; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary::after {
  content: 'Gampang Jackpot';
  position: absolute;
  top: 7px;
  right: 12px;
  z-index: 4;
  padding: 3px 8px;
  border: 1px solid rgba(245, 215, 110, 0.7);
  border-radius: 999px;
  background: #171000;
  color: var(--gold-light);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 520px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.96);
  color: var(--text-muted);
  font-size: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.consent-banner p { margin: 0; }

.consent-banner button {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1200;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-banner[hidden] { display: none; }

.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.9s 0.6s both;
}

.footer strong { color: var(--gold-dark); font-weight: 600; }

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2px 0 4px;
  border-radius: 2px;
  animation: fadeInUp 0.9s 0.3s both;
}

@media (max-width: 380px) {
  .headline { font-size: 1.85rem; letter-spacing: 2px; }
  .logo { width: 160px; height: 80px; }
  .btn { padding: 14px 16px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes ripple {
  to { transform: scale(2.2); opacity: 0; }
}
