/* -----------------------------------------------------------------
 * Betwest — Western Saloon theme
 * Dark brown bg, green CTA, cowboy/saloon motifs.
 * Animations: parallax + shimmer.
 * ----------------------------------------------------------------- */

:root {
  --bg: #1a0f07;
  --bg-2: #2a1a0e;
  --bg-3: #3b2418;
  --wood: #4a2d1a;
  --wood-2: #6b3f24;
  --accent: #3fa34d;        /* green CTA */
  --accent-2: #2e7d32;
  --accent-3: #66bb6a;
  --gold: #d4a437;          /* sheriff star / accents */
  --gold-2: #f0c040;
  --surface: rgba(74, 45, 26, 0.45);
  --surface-2: rgba(107, 63, 36, 0.55);
  --text: #f4e4cc;
  --muted: rgba(244, 228, 204, 0.7);
  --danger: #c9382c;
}

body {
  background:
    radial-gradient(ellipse at top, var(--bg-3) 0%, var(--bg-2) 40%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Wood grain panel utility */
.wood {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.05) 0px,
      rgba(0,0,0,0.05) 2px,
      transparent 2px,
      transparent 14px),
    linear-gradient(180deg, var(--wood-2) 0%, var(--wood) 100%);
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.08), 0 2px 12px rgba(0,0,0,0.4);
}

.saloon-card {
  background: var(--surface);
  border: 1px solid rgba(212, 164, 55, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(2px);
}

/* Sheriff star CSS shape */
.sheriff-star {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background: var(--gold);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
}

/* Western divider with rope dots */
.rope-divider {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(45deg,
    var(--gold) 0 6px,
    var(--wood) 6px 12px);
  border-radius: 999px;
  opacity: 0.7;
}

/* Headings — saloon poster vibe */
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Playfair Display', serif;
  letter-spacing: 0.01em;
}

h1 .headline-accent,
h2 .headline-accent {
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

/* CTA buttons */
.btn-cta {
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 100%);
  color: #0c1f10;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  box-shadow: 0 4px 0 var(--accent-2), 0 8px 18px rgba(63, 163, 77, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent-2), 0 12px 22px rgba(63, 163, 77, 0.5);
}
.btn-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-2), 0 4px 10px rgba(63, 163, 77, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(212, 164, 55, 0.12); }

/* ----- Prose readability ----- */
.prose, .prose-invert { line-height: 1.75; color: var(--text); }
.prose h1, .prose-invert h1 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 1.25rem; line-height: 1.2; color: var(--gold-2); }
.prose h2, .prose-invert h2 { font-size: 1.55rem; font-weight: 700; margin: 2.25rem 0 0.75rem; line-height: 1.3; color: var(--gold); border-bottom: 1px solid rgba(212, 164, 55, 0.2); padding-bottom: 0.35rem; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--accent-3); }
.prose p { margin: 0.85rem 0; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: 0.85rem 0; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0.85rem 0; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose strong { font-weight: 700; color: var(--gold-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.7rem 0.85rem; border-bottom: 1px solid rgba(212, 164, 55, 0.18); text-align: left; }
.prose th { background: var(--surface-2); color: var(--gold); font-weight: 700; }
.prose details { background: var(--surface); border: 1px solid rgba(212, 164, 55, 0.18); border-radius: 0.75rem; padding: 0.85rem 1rem; margin: 0.6rem 0; }
.prose details summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.prose dl dt { font-weight: 700; color: var(--gold); margin-top: 0.6rem; }
.prose dl dd { margin-left: 1rem; opacity: 0.9; }

html { scroll-behavior: smooth; }

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid rgba(212, 164, 55, 0.22);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* ============= ANIMATIONS ============= */

/* parallax — saloon backdrop */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(26, 15, 7, 0.78), rgba(26, 15, 7, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,0,0,0.18) 28px 29px),
    radial-gradient(circle at 30% 40%, rgba(212, 164, 55, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(63, 163, 77, 0.08) 0%, transparent 50%);
}

/* shimmer — sweeping light on CTAs and gold text */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(110deg, var(--gold) 0%, #fff7d6 45%, var(--gold) 70%, var(--gold-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.shimmer-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.shimmer-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: shimmer 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.shimmer-btn > * { position: relative; z-index: 2; }

/* ----- Slot card ----- */
.slot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--wood);
  border: 1px solid rgba(212, 164, 55, 0.22);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slot-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(63, 163, 77, 0.3); }
.slot-card img { width: 100%; height: 70%; object-fit: cover; }
.slot-card .info { padding: 0.5rem 0.65rem; }
.slot-card .info h3 { font-size: 0.85rem; font-weight: 700; margin: 0; color: var(--gold-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-card .info p { font-size: 0.7rem; margin: 0; opacity: 0.7; }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #0c1f10; font-size: 0.6rem; font-weight: 800;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ----- Big winner overlay ----- */
.big-winner { position: relative; border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(212, 164, 55, 0.25); }
.big-winner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.big-winner__overlay {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(26, 15, 7, 0.78);
  backdrop-filter: blur(6px);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(212, 164, 55, 0.25);
  font-size: 0.95rem;
}

/* ----- Latest bets table ----- */
.latest-bets table { width: 100%; font-size: 0.9rem; }
.latest-bets th, .latest-bets td { padding: 0.5rem 0.6rem; }
.latest-bets thead tr { border-bottom: 1px solid rgba(212, 164, 55, 0.25); }

/* ----- Saloon door divider ----- */
.saloon-doors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.saloon-doors::before, .saloon-doors::after {
  content: '';
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--wood-2) 0 8px, var(--wood) 8px 16px);
  border-radius: 3px;
}

/* ----- Pill / chip nav ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border: 1px solid rgba(212, 164, 55, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold-2);
  transition: background 0.2s ease;
}
.chip:hover { background: var(--surface-2); }

/* ----- Reviews carousel ----- */
.reviews-carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.reviews-carousel > * { scroll-snap-align: start; flex: 0 0 85%; max-width: 360px; }
@media (min-width: 768px) { .reviews-carousel > * { flex: 0 0 32%; } }

/* Footer styling */
footer { color: var(--muted); }
footer a:hover { color: var(--gold); }

/* Flying banner */
#flying-banner {
  background: linear-gradient(135deg, var(--wood-2), var(--wood));
  border: 2px solid var(--accent);
  color: var(--text);
}
#flying-banner strong { color: var(--gold-2); }
