/* BetWest — wild west duel casino. Dark brown saloon background, yellow sheriff CTA. */

:root {
  --bg: #1f1108;
  --bg-2: #2a1810;
  --bg-3: #3d2415;
  --accent: #facc15;        /* sheriff star yellow */
  --accent-2: #d97706;      /* amber sunset */
  --accent-3: #b91c1c;      /* deep duel red */
  --surface: rgba(250, 204, 21, 0.06);
  --surface-2: rgba(250, 204, 21, 0.12);
  --text: #fef3c7;
  --muted: rgba(254, 243, 199, 0.65);
  --rule: rgba(250, 204, 21, 0.18);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 119, 6, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(185, 28, 28, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Bookman Old Style", serif;
}

/* Western-flavoured display font feel for headings */
h1, h2, h3, .display {
  font-family: "Rye", "Smokum", ui-serif, Georgia, serif;
  letter-spacing: 0.02em;
}

/* Rope divider */
.rope-divider {
  height: 8px;
  background-image:
    repeating-linear-gradient(45deg, var(--accent-2) 0 6px, var(--bg-3) 6px 12px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  opacity: 0.55;
}

/* Prose readability */
.prose, .prose-invert { line-height: 1.7; 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(--accent); }
.prose h2, .prose-invert h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; line-height: 1.3; color: var(--accent); }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.prose p, .prose-invert p { margin: 0.75rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li, .prose-invert li { margin: 0.25rem 0; }
.prose a, .prose-invert a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose-invert strong { font-weight: 700; color: var(--accent); }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; }
.prose th, .prose-invert th { background: var(--surface); font-weight: 700; color: var(--accent); }
.prose details { background: var(--surface); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0.6rem 0; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--accent); }

html { scroll-behavior: smooth; }

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

/* ========== Animation 1: parallax ========== */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.parallax-saloon {
  background-image:
    radial-gradient(circle at 15% 30%, rgba(250, 204, 21, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(217, 119, 6, 0.08) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(31, 17, 8, 0.4), rgba(31, 17, 8, 0.9));
  background-attachment: fixed;
  background-size: 200px 200px, 280px 280px, 100% 100%;
}

/* ========== Animation 2: shimmer ========== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(110deg, var(--accent) 0%, #fff8dc 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer-cta {
  position: relative;
  overflow: hidden;
}
.shimmer-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
  pointer-events: none;
}

/* Slot card */
.slot-card {
  position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--rule);
  display: block;
  text-decoration: none; color: var(--text);
}
.slot-card img { width: 100%; height: 70%; object-fit: cover; transition: transform 0.4s ease; }
.slot-card:hover img { transform: scale(1.06); }
.slot-card .meta { padding: 0.5rem 0.65rem; }
.slot-card h3 { font-size: 0.85rem; margin: 0; color: var(--accent); font-family: ui-serif, Georgia, serif; letter-spacing: 0; font-weight: 700; }
.slot-card 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: #2a1810; font-size: 0.6rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Live cards same skeleton */
.live-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--rule); display: block; text-decoration: none; color: var(--text); }
.live-card img { width: 100%; height: 70%; object-fit: cover; }
.live-card .meta { padding: 0.5rem 0.65rem; }
.live-card h3 { font-size: 0.9rem; margin: 0; color: var(--accent); font-family: ui-serif, Georgia, serif; font-weight: 700; }
.live-card p { font-size: 0.72rem; margin: 0; opacity: 0.7; }

/* "Recent big winner" overlay */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(31, 17, 8, 0.78); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; border-radius: 1rem;
  font-size: 0.95rem; border: 1px solid var(--rule);
}

/* Sheriff badge styling for hero */
.sheriff-star {
  width: 80px; height: 80px;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}

/* Wood plank panel */
.wood-panel {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 60px),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--rule);
}

/* Review card */
.review-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 0.6rem 0;
}
.review-card header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.85rem; }
.review-card p { font-size: 0.92rem; margin: 0.4rem 0; }
.review-card footer { font-size: 0.7rem; opacity: 0.6; margin-top: 0.4rem; }
.stars { color: var(--accent); letter-spacing: 0.1em; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento > * { background: var(--surface); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.25rem; }
.bento h3 { color: var(--accent); margin-top: 0; font-family: "Rye", ui-serif, Georgia, serif; }
@media (max-width: 768px) { .bento { grid-template-columns: 1fr; } }

/* Tab buttons */
.tab-btn { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--rule); font-weight: 600; color: var(--text); cursor: pointer; background: transparent; }
.tab-btn[aria-selected="true"] { background: var(--accent); color: #2a1810; border-color: var(--accent); }

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2a1810;
  border: 1px solid var(--accent-2);
}
.cta-card a { color: #2a1810; }

/* Quick nav pills */
.pill { background: var(--surface); border: 1px solid var(--rule); padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.82rem; color: var(--text); text-decoration: none; }
.pill:hover { background: var(--surface-2); }

.games-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.games-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.games-controls .pill {
  cursor: pointer;
}

.games-controls .pill.is-active {
  background: var(--accent);
  color: #2a1810;
  border-color: var(--accent);
  font-weight: 700;
}

.games-search-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#games-search {
  min-width: 220px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  background: rgba(31, 17, 8, 0.65);
  color: var(--text);
}

#games-search::placeholder {
  color: var(--muted);
}

#games-search:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .games-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  color: var(--text);
  text-decoration: none;
  display: block;
}

.game-card img {
  width: 100%;
  height: 72%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card__cat {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(31, 17, 8, 0.85);
  border: 1px solid var(--rule);
  color: var(--accent);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.game-card__meta {
  padding: 0.5rem 0.65rem;
}

.game-card__meta h3 {
  font-size: 0.82rem;
  line-height: 1.2;
  margin: 0;
  color: var(--accent);
  font-family: ui-serif, Georgia, serif;
  font-weight: 700;
}

.game-card__meta p {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .games-search-wrap {
    width: 100%;
  }

  #games-search {
    min-width: 0;
    width: 100%;
  }
}

/* Marquee-style rope on top of sections (decorative) */
.bunting {
  height: 24px; position: relative;
  background-image: radial-gradient(circle at 12px 0, var(--accent-2) 6px, transparent 7px);
  background-size: 24px 24px;
  opacity: 0.45;
}
