/* Custom styles matching the casino/rummy ranking theme */
:root {
  --gold-100: #FFF9D2;
  --gold-300: #FFE066;
  --gold-400: #FFD700;
  --gold-500: #E6B800;
  --gold-600: #CC9900;
  --casino-purple: #1E0B36;
  --casino-darkPurple: #120424;
  --card-bg: rgba(35, 18, 64, 0.85);
  --green-btn: #00C853;
}

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

body {
  background-color: var(--casino-darkPurple);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

.gold-gradient-text {
  background: linear-gradient(90deg, #FFD700, #FFE066, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.green-btn-gradient {
  background: linear-gradient(135deg, #00C853, #00E676);
  transition: all 0.3s;
}
.green-btn-gradient:hover {
  background: linear-gradient(135deg, #00E676, #00C853);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,200,83,0.4);
}

.card-gold-border {
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.rank-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #FFD700, #E6B800);
  color: #000;
  font-weight: 900;
  font-size: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.ticker {
  animation: ticker 30s linear infinite;
}

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

header {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,215,0,0.3);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.max-w-6xl { max-width: 72rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; padding: 0 0.75rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.text-gold-300 { color: var(--gold-300); }
.text-gold-200 { color: #FFE066; }
.text-gold-400 { color: var(--gold-400); }
.text-green-400 { color: #4ade80; }
.text-yellow-400 { color: #facc15; }
.text-blue-400 { color: #60a5fa; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.bg-casino-cardBg { background: var(--card-bg); }
.bg-black\/40 { background: rgba(0,0,0,0.4); }
.bg-black\/30 { background: rgba(0,0,0,0.3); }
.bg-black\/80 { background: rgba(0,0,0,0.8); }
.bg-black\/90 { background: rgba(0,0,0,0.9); }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gold-500\/30 { border-color: rgba(230,184,0,0.3); }
.border-gold-400\/50 { border-color: rgba(255,215,0,0.5); }
.border-gold-400\/60 { border-color: rgba(255,215,0,0.6); }
.border-gold-500\/20 { border-color: rgba(230,184,0,0.2); }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }

.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }

.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top:0; right:0; bottom:0; left:0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.fixed { position: fixed; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.sm\:grid-cols-2 { }
.md\:grid-cols-4 { }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:flex-none { flex: none; }
}
@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.whitespace-nowrap { white-space: nowrap; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }
.underline { text-decoration: underline; }

button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-purple-900 { --tw-gradient-from: #581c87; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-indigo-950 { --tw-gradient-stops: var(--tw-gradient-from), #1e1b4b, var(--tw-gradient-to, transparent); }
.to-black { --tw-gradient-to: #000; }
.from-purple-950 { --tw-gradient-from: #3b0764; }
.via-red-950 { --tw-gradient-stops: var(--tw-gradient-from), #450a0a, var(--tw-gradient-to, transparent); }
.to-purple-950 { --tw-gradient-to: #3b0764; }
.from-yellow-500 { --tw-gradient-from: #eab308; }
.to-amber-600 { --tw-gradient-to: #d97706; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.from-yellow-500 { }
.via-red-600 { --tw-gradient-stops: var(--tw-gradient-from), #dc2626, var(--tw-gradient-to, transparent); }
.to-purple-800 { --tw-gradient-to: #6b21a8; }

.bg-yellow-500 { background-color: #eab308; }
.bg-green-500 { background-color: #22c55e; }
.bg-purple-900\/80 { background: rgba(88,28,135,0.8); }
.text-black { color: #000; }
.text-white { color: #fff; }
.text-red-700 { color: #b91c1c; }

.animate-ping { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* FAQ toggle */
.faq-content { display: none; }
.faq-content.open { display: block; }

/* Fixed bottom bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18,4,36,0.95);
  border-top: 2px solid var(--gold-400);
  padding: 0.625rem;
  z-index: 40;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

/* Utility for images */
img { max-width: 100%; height: auto; }
