/* ============================================================
   fp-styles.css — Wisconsin Lottery Fast Play Games
   Dark navy theme · Bebas Neue + Inter
   lottomom.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:      #0d1b2e;
  --surface: #132240;
  --card:    #172a4a;
  --border:  #1e3660;
  --text:    #e8f0ff;
  --muted:   #6b85b0;
  --red:     #c8102e;
  --gold:    #f5c518;
  --green:   #22c55e;
  --blue:    #2563EB;
  --orange:  #f97316;
}

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

body {
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.logo-area { display: flex; align-items: center; gap: 12px; }

.logo-wi {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; color: #fff;
  letter-spacing: 1px; flex-shrink: 0;
}

.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; color: var(--text);
  letter-spacing: 1px; line-height: 1.1;
}
.logo-sub {
  font-size: 10px; font-weight: 600; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.header-jackpot { text-align: right; }
.hj-label  { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.hj-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; color: var(--gold);
  letter-spacing: 1px;
}

/* ── HERO ── */
.hero {
  background: #0a0a0a;
  padding: 36px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200,16,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(180,140,0,0.5);
  background: rgba(180,140,0,0.08);
  color: #c9a227;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 20px; border-radius: 99px; margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(76px, 20vw, 120px);
  font-weight: 400; line-height: 0.88; letter-spacing: 3px;
  color: #fff; text-transform: uppercase;
}

.hero p {
  margin: 26px auto 0; color: rgba(255,255,255,0.62);
  max-width: 400px; font-size: 16px; line-height: 1.65;
}

.jackpot-box {
  margin: 32px auto 0;
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 20px 40px 18px; min-width: 270px;
}

.jb-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 4px;
}
.jb-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px; color: var(--gold);
  letter-spacing: 2px; line-height: 1;
}
.jb-sub {
  font-size: 12px; color: rgba(255,255,255,0.38);
  margin-top: 8px; display: flex; align-items: center; gap: 6px;
}

.live-dot {
  width: 7px; height: 7px; background: #4ade80;
  border-radius: 50%; display: inline-block;
  animation: blink 2s infinite;
}


/* ── Back to Home ──────────────────────────────────────────── */
.sc-back {
  display: block; text-align: center; padding: 8px;
  background: rgba(0,0,0,0.3);
  font-family: 'Oswald', sans-serif; font-weight: 400;
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s;
}
.sc-back:hover { color: var(--mb-gold); }

/* ── TAB NAV ── */
.tab-nav-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 63px;
  z-index: 90;
}

.tab-nav {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 16px;
  background: none; border: none;
  color: var(--muted); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── TAB CONTENT ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── GAMES SECTION ── */
.games-section {
  background: var(--bg);
  padding: 36px 20px 12px;
  max-width: 680px;
  margin: 0 auto;
}

.games-header {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.games-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 9vw, 54px);
  letter-spacing: 2px; line-height: 0.95; color: var(--text);
}
.games-count { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 8px; }

/* Filter links */
.filter-row { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 24px; }
.filter-link {
  font-size: 15px; font-weight: 700; color: var(--gold);
  background: none; border: none; cursor: pointer;
  padding: 4px 18px 4px 0; transition: opacity 0.15s;
}
.filter-link:hover { opacity: 0.65; }
.filter-link.active { color: var(--text); }

/* Game cards */
.games-list { display: flex; flex-direction: column; gap: 28px; }
.game-card { cursor: pointer; }

.card-banner {
  height: 140px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: filter 0.2s;
}
.game-card:hover .card-banner { filter: brightness(1.1); }

.big-icon {
  font-size: 62px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
  z-index: 1;
}

.banner-pct {
  position: absolute; top: 12px; left: 14px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.72); z-index: 2;
}

.banner-price {
  position: absolute; top: 10px; right: 12px;
  background: rgba(0,0,0,0.52); color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px;
  border-radius: 99px; padding: 4px 14px;
  z-index: 2;
}

.card-info { padding: 12px 2px 0; }
.ci-prize {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; color: var(--text);
  text-align: right; letter-spacing: 1px;
}
.ci-odds { font-size: 14px; color: var(--muted); text-align: right; margin-top: 2px; }

.view-btn {
  display: block; width: 100%; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px;
  font-size: 13px; font-weight: 800;
  color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.view-btn:hover { background: var(--card); border-color: var(--gold); }

/* ── HOW IT WORKS ── */
.how-section {
  background: var(--bg);
  padding: 40px 20px 44px;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.how-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 8vw, 52px);
  letter-spacing: 2px; margin-bottom: 8px; color: var(--text);
}
.how-item { padding: 20px 0; border-top: 1px solid var(--border); }
.how-item:last-child { border-bottom: 1px solid var(--border); }
.how-icon { font-size: 30px; margin-bottom: 8px; display: block; }
.how-item h4 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.how-item p  { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ── HISTORY TAB ── */
.history-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.history-date {
  font-size: 13px; font-weight: 700;
  color: var(--muted); white-space: nowrap;
  min-width: 90px;
}
.history-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.history-num {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
}

/* ── STATS TAB ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
}
.stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--gold);
  letter-spacing: 1px; line-height: 1;
}

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: 200; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 600px; max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.32,0.72,0,1) both;
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 12px auto 0;
}

.modal-banner {
  height: 150px; margin: 16px 16px 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 70px; position: relative;
}

.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

.modal-body { padding: 18px 20px 32px; }
.modal-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 1.5px; color: var(--text);
}
.modal-subtitle { font-size: 14px; color: var(--muted); margin-top: 2px; margin-bottom: 14px; }
.modal-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

.prize-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.prize-table th {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 8px 0 6px;
  border-bottom: 1px solid var(--border);
}
.prize-table td {
  padding: 10px 0; font-size: 15px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04); font-weight: 500;
}
.prize-table td:last-child { text-align: right; color: var(--muted); }
.prize-table tr:first-child td { color: var(--gold); font-weight: 800; }

/* ── SIMULATOR ── */
.sim-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.sim-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.sim-ticket {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px; text-align: center; min-height: 76px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.sim-result { font-size: 22px; font-weight: 900; color: var(--text); }
.sim-result.win { color: var(--green); }
.sim-result.jackpot { color: var(--gold); animation: pop 0.5s ease; }
.sim-result.lose { color: var(--muted); font-weight: 600; }
.sim-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.sim-play-btn {
  display: block; width: 100%; margin-top: 12px;
  background: var(--red); color: #fff; border: none;
  border-radius: 10px; padding: 13px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}
.sim-play-btn:hover { opacity: 0.88; }
.sim-stats { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ── FOOTER ── */
footer {
  padding: 28px 20px; font-size: 12px; color: var(--muted);
  line-height: 1.7; text-align: center;
  border-top: 1px solid var(--border);
  max-width: 680px; margin: 0 auto;
}
footer a { color: var(--gold); text-decoration: none; }
footer strong { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@keyframes pop { 0%{transform:scale(1);} 40%{transform:scale(1.18);} 70%{transform:scale(0.94);} 100%{transform:scale(1);} }
