/* ==========================================================================
   BigWin Gaming — Home page (index.html)
   ========================================================================== */

/* Live winners ticker ---------------------------------------------------- */
.ticker {
  display: flex; align-items: center; height: 38px; overflow: hidden;
  background: #090909; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.ticker__label {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px;
  background: var(--bg); border-right: 1px solid var(--border); font-weight: 800; letter-spacing: 1.5px; font-size: 0.75rem; z-index: 1;
}
.ticker__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.4s infinite; }
.ticker__track { display: flex; gap: 36px; white-space: nowrap; padding-left: 36px; animation: scroll-x 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: var(--text-muted); }
.ticker__item strong { color: var(--text); font-weight: 600; }
.ticker__item .amt { color: var(--online); font-weight: 700; }
.ticker__item .game { color: var(--gold); }

@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; text-align: center; padding: 72px 0 64px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 167, 75, 0.18), transparent 70%),
    var(--bg);
}
.hero__suits { position: absolute; inset: 0; pointer-events: none; color: var(--gold); opacity: 0.06; font-size: 120px; }
.hero__suits span { position: absolute; }
.hero__suits span:nth-child(1) { top: 8%; left: 6%; transform: rotate(-15deg); }
.hero__suits span:nth-child(2) { top: 18%; right: 8%; transform: rotate(12deg); }
.hero__suits span:nth-child(3) { bottom: 6%; left: 14%; transform: rotate(8deg); }
.hero__suits span:nth-child(4) { bottom: 10%; right: 12%; transform: rotate(-10deg); }

.hero__logo { margin: 0 auto 24px; }
.hero__eyebrow { color: var(--text-muted); letter-spacing: 6px; font-size: 0.85rem; font-weight: 600; }
.hero__title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: 3px; margin: 6px 0 10px;
  font-size: clamp(2.4rem, 9vw, 5rem);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { color: var(--text-muted); letter-spacing: 3px; font-size: clamp(0.7rem, 2.4vw, 0.9rem); text-transform: uppercase; margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border-strong); font-weight: 600; font-size: 0.9rem;
}
.chip svg { width: 18px; height: 18px; stroke: var(--gold); }

.trust { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; stroke: var(--gold); }
.trust .sep { width: 1px; height: 14px; background: var(--border-strong); }

.hero__foot { margin-top: 22px; color: var(--text-dim); letter-spacing: 3px; font-size: 0.8rem; text-transform: uppercase; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.stat { background: var(--bg-elev); padding: 28px 12px; text-align: center; }
.stat svg { width: 28px; height: 28px; stroke: var(--gold); margin: 0 auto 10px; }
.stat__value { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 900; color: var(--text); }
.stat__label { font-size: 0.75rem; letter-spacing: 2.5px; color: var(--text-muted); text-transform: uppercase; }

/* Games grid ------------------------------------------------------------- */
.games-head { margin-bottom: 32px; }
.games-count { text-align: center; margin-top: 10px; }
.games-count span { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--gold-tint); color: var(--gold); font-size: 0.8rem; font-weight: 700; }

.games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.game-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong); padding: 0; text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-tile:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--gold-glow); }
.game-tile img { width: 100%; height: 100%; object-fit: cover; }
.game-tile__art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a2414 0%, var(--surface) 70%);
}
.game-tile__art span {
  width: 54%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-weight: 900; font-size: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold-dark);
}
.game-tile__name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); font-weight: 700; font-size: 0.85rem; text-align: center;
}
.game-tile__play {
  position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--on-gold); font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
  opacity: 0; transition: opacity 0.2s;
}
.game-tile:hover .game-tile__play, .game-tile:focus-visible .game-tile__play { opacity: 1; }

/* CTA -------------------------------------------------------------------- */
.cta {
  text-align: center; padding: 56px 20px; border-radius: var(--radius);
  background: radial-gradient(ellipse at center, rgba(201, 167, 75, 0.16), transparent 70%), var(--bg-elev);
  border: 1px solid var(--border-strong);
}
.cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.5rem); color: var(--gold); letter-spacing: 1px; }
.cta__rule { width: 120px; margin: 16px auto 20px; border-top: 2px dashed var(--gold-dark); }
.cta p { color: var(--text-muted); max-width: 460px; margin: 0 auto 28px; }

/* Game sign-up modal ----------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; width: 100%; max-width: 400px; background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 28px 22px 22px;
  animation: pop 0.22s ease-out;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); }
.modal__title { text-align: center; color: var(--gold); font-size: 1.5rem; }
.modal__rule { width: 60px; height: 2px; background: var(--gold); margin: 10px auto 10px; }
.modal__sub { text-align: center; color: var(--text-muted); margin-bottom: 20px; font-size: 0.92rem; }
.locked {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin-bottom: 10px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--border-strong); color: var(--text-dim); font-size: 0.9rem;
}
.locked svg { width: 16px; height: 16px; stroke: var(--gold); }
.locked b { color: var(--text-muted); font-weight: 600; margin-right: auto; }
.benefits { margin: 18px 0 20px; display: grid; gap: 8px; font-size: 0.9rem; }
.benefits li { display: flex; gap: 10px; }
.benefits li::before { content: "✓"; color: var(--gold); font-weight: 900; }
.modal__alt { display: block; text-align: center; margin-top: 14px; color: var(--text-muted); font-size: 0.9rem; }
.modal__alt:hover { color: var(--gold); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0; }
  .hero__suits { font-size: 70px; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 40px; }
  .hero__logo { width: 88px; height: 88px; font-size: 1.9rem; margin-bottom: 18px; }
  .hero__eyebrow { letter-spacing: 4px; font-size: 0.75rem; }
  .hero__title { letter-spacing: 1px; font-size: clamp(2rem, 11vw, 3rem); }
  .hero__tagline { letter-spacing: 1.5px; margin-bottom: 22px; }
  .chips { gap: 8px; }
  .chip { padding: 8px 12px; font-size: 0.82rem; }
  .trust { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .stat { padding: 20px 8px; }
  .stat__label { letter-spacing: 1.5px; font-size: 0.68rem; }
  .games-head { margin-bottom: 20px; }
  .game-tile__name { font-size: 0.75rem; padding: 18px 6px 8px; }
  .cta { padding: 40px 16px; }
  .ticker__track { animation-duration: 28s; }
  /* Modal: scrollable on short screens, sheet-style from the bottom */
  .modal { place-items: end center; padding: 0; overflow-y: auto; }
  .modal__box { max-width: none; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; }
}
@media (max-width: 340px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
/* Touch: no hover-lift, always show the PLAY badge */
@media (hover: none) {
  .game-tile:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }
  .game-tile:active { transform: scale(0.97); border-color: var(--gold); }
  .game-tile__play { opacity: 1; }
  .ticker:hover .ticker__track { animation-play-state: running; }
}
