/* -----------------------------------------------------------------
 * Betwest — custom CSS (Tailwind via CDN handles utilities)
 * Theme: black saloon night, gold CTAs, Wild West outlaw vibe.
 * ----------------------------------------------------------------- */

:root {
  --accent: #f5b315;          /* gold CTA */
  --accent-2: #d49415;
  --bg: #0a0806;
  --bg-2: #15100a;
  --rust: #b5481f;
  --leather: #2e2114;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(245,225,190,0.65);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* ----- Desert night background motifs ----- */
.west-deep {
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(245,179,21,0.16), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(181,72,31,0.20), transparent 55%),
    linear-gradient(180deg, #15100a 0%, #0a0806 100%);
}
.west-panel {
  background: linear-gradient(180deg, rgba(46,33,20,0.7), rgba(21,16,10,0.72));
  border: 1px solid rgba(245,179,21,0.18);
  backdrop-filter: blur(6px);
}

/* Heat haze / lantern flicker streaks across the hero */
@keyframes heathaze {
  0%   { transform: translateX(-5%) translateY(0); opacity: 0.20; }
  50%  { transform: translateX(5%) translateY(-2%); opacity: 0.38; }
  100% { transform: translateX(-5%) translateY(0); opacity: 0.20; }
}
.heathaze::before {
  content: ''; position: absolute; inset: -10%;
  pointer-events: none; mix-blend-mode: screen;
  background:
    repeating-linear-gradient(100deg, rgba(245,179,21,0.0) 0 32px, rgba(245,179,21,0.08) 34px 38px, rgba(245,179,21,0.0) 40px 78px);
  animation: heathaze 10s ease-in-out infinite;
}

/* Drifting dust / sand specks */
@keyframes dust-drift {
  0%   { transform: translateY(10px) translateX(0) scale(0.8); opacity: 0; }
  15%  { opacity: 0.55; }
  100% { transform: translateY(-130px) translateX(24px) scale(1.05); opacity: 0; }
}
.dust span {
  position: absolute; bottom: -10px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,228,170,0.85), rgba(181,72,31,0.18));
  animation: dust-drift linear infinite;
}

/* float bob for hero poster image */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
.float { animation: float 5s ease-in-out infinite; }

/* shimmer sweep on headline accent (gold) */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #fff3cf 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----- Header 3D menu buttons ----- */
.menu-3d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.9rem; border-radius: 0.7rem;
  font-weight: 600; line-height: 1; color: #f3e7cf;
  background: linear-gradient(180deg, #3a2a17, #211810);
  border: 1px solid rgba(245,179,21,0.30);
  box-shadow: 0 3px 0 0 #0a0806, 0 5px 10px -4px rgba(0,0,0,0.7);
  transition: transform .08s ease, box-shadow .08s ease, color .2s;
  text-decoration: none;
}
.menu-3d-btn:hover { color: #fff; border-color: var(--accent); }
.menu-3d-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 #0a0806, 0 2px 4px -2px rgba(0,0,0,0.6); }

/* ----- Slot carousel (poster ratio) ----- */
.slot-rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.slot-rail::-webkit-scrollbar { height: 8px; }
.slot-rail::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.slot-rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 999px; }
.slot-poster {
  position: relative; flex: 0 0 auto; width: 180px; scroll-snap-align: start;
  border-radius: 1rem; overflow: hidden; aspect-ratio: 3 / 4;
  border: 1px solid rgba(245,179,21,0.25);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.85);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (min-width: 768px) { .slot-poster { width: 210px; } }
.slot-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.slot-poster:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 40px -14px rgba(245,179,21,0.45); }
.slot-poster:hover img { transform: scale(1.06); }
.slot-poster .slot-badge {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  background: var(--accent); color: #15100a; font-size: .6rem; font-weight: 800;
  padding: .12rem .5rem; border-radius: 999px; letter-spacing: .02em;
}
/* popover description revealed on hover/focus */
.slot-pop {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0.65rem 0.7rem 0.7rem;
  background: linear-gradient(180deg, rgba(10,8,6,0) 0%, rgba(10,8,6,0.80) 35%, rgba(10,8,6,0.97) 100%);
  transform: translateY(36%); transition: transform .3s ease;
}
.slot-poster:hover .slot-pop, .slot-poster:focus-within .slot-pop { transform: translateY(0); }
.slot-pop .t { font-weight: 700; font-size: .82rem; line-height: 1.1; }
.slot-pop .p { font-size: .66rem; color: var(--accent); margin-top: .1rem; }
.slot-pop .d { font-size: .66rem; color: rgba(245,225,190,0.78); margin-top: .35rem; line-height: 1.25;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .3s ease; }
.slot-poster:hover .slot-pop .d, .slot-poster:focus-within .slot-pop .d { max-height: 80px; opacity: 1; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid rgba(245,179,21,0.35); color: #fff; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--accent); color: #15100a; border-color: var(--accent); }

/* ----- Live game square cards ----- */
.live-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1;
  border: 1px solid rgba(245,179,21,0.25); }
.live-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.live-card:hover img { transform: scale(1.06); }

/* ----- Prose / article readability ----- */
.prose { line-height: 1.75; color: rgba(245,234,214,0.88); }
.prose h2 { font-size: 1.7rem; font-weight: 800; margin: 2.25rem 0 .85rem; color: #fff; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .5rem; color: #fff3da; }
.prose p { margin: .8rem 0; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: .8rem 0; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin: .8rem 0; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 700; }

/* ----- Data tables ----- */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; overflow: hidden; border-radius: .9rem; }
.data-table caption { text-align: left; font-size: .8rem; color: var(--muted); padding: .4rem 0; }
.data-table th, .data-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid rgba(245,179,21,0.15); }
.data-table thead th { background: rgba(58,42,23,0.75); font-weight: 700; color: #fff3da; }
.data-table tbody tr:hover { background: rgba(245,179,21,0.08); }

/* ----- Interactive bar chart ----- */
.chart-bar { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ffd76a); width: 0; transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.chart-row:hover .chart-bar { filter: brightness(1.12); }

/* ----- Radial gauge (donut) ----- */
.gauge { position: relative; width: 130px; height: 130px; border-radius: 999px; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--val) * 1%), rgba(255,255,255,0.08) 0); }
.gauge::before { content: ''; position: absolute; width: 96px; height: 96px; border-radius: 999px; background: var(--bg-2); }
.gauge .g-num { position: relative; font-weight: 800; font-size: 1.5rem; }

/* ----- Tabs ----- */
.tab-btn { padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer;
  background: var(--surface); border: 1px solid rgba(245,179,21,0.25); color: #efe2c8; transition: all .2s; }
.tab-btn[aria-selected="true"] { background: var(--accent); color: #15100a; border-color: var(--accent); }

/* ----- Star rating ----- */
.stars { color: var(--accent); letter-spacing: 2px; }

/* ----- RG quiz ----- */
.rg-quiz { background: var(--surface); border: 1px solid rgba(245,179,21,0.2); border-radius: 1.25rem; padding: 1.5rem; }
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* ----- Tiny disclaimer text ----- */
.disclaimer { font-size: .62rem; line-height: 1.35; color: rgba(245,225,190,0.5); }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .float, .heathaze::before, .dust span, .shimmer { animation: none !important; }
}
