/* ── Fantasy 5 — Georgia Lottery · LottoMom.com ── */
:root {
  --gold: #d4a017;
  --gold2: #b8860b;
  --green: #0f9d58;
  --green-light: #34d399;
  --green-glow: rgba(15,157,88,0.22);
  --bg: #060a08;
  --surface: #0d1510;
  --card: #111c14;
  --card2: #172118;
  --border: rgba(15,157,88,0.18);
  --border2: rgba(15,157,88,0.32);
  --text: #e8f5e9;
  --muted: rgba(232,245,233,0.45);
  --radius: 16px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.f5-wrap {
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Glow */
.f5-glow {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,157,88,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── Back Nav ── */
.f5-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 14px 20px;
  font-family: var(--font-body);
  transition: color 0.15s;
  position: relative; z-index: 10;
}
.f5-back:hover { color: var(--gold); }

/* ── Header ── */
.f5-header {
  position: relative; z-index: 1;
  text-align: center;
  padding: 10px 20px 28px;
}
.f5-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid rgba(52,211,153,0.35);
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 14px;
  background: rgba(52,211,153,0.08);
}
.f5-title {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700; letter-spacing: 0.03em;
  line-height: 1; color: #fff; margin-bottom: 6px;
}
.f5-title span { color: var(--green-light); }
.f5-sub {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.f5-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
  margin: 14px auto 0;
}

/* ── Ad slots ── */
.f5-ad-banner { display: none; margin: 0 16px 14px; border-radius: 10px; overflow: hidden; }
.f5-ad-banner .lm-ad-banner-inner { text-align: center; }
.f5-ad-banner .lm-ad-banner-inner img { max-width: 100%; border-radius: 8px; display: block; }
.f5-ad-badge { display: none; text-align: center; padding: 0 16px 10px; font-size: 11px; color: rgba(255,255,255,0.35); }
.f5-ad-badge a { color: var(--gold); text-decoration: none; font-weight: 600; }
.lm-ad-label { display: block; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 4px; }
.lm-ad-sponsor-label { display: block; font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 4px; }

/* ── Jackpot Banner ── */
.f5-jackpot {
  position: relative; z-index: 1;
  margin: 0 16px 20px;
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}
.f5-jackpot::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
}
.f5-jackpot-label { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.f5-jackpot-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--green-light); line-height: 1; }
.f5-jackpot-next { text-align: right; }
.f5-jackpot-draw { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.f5-jackpot-time { font-size: 13px; font-weight: 700; color: var(--text); }

/* ── Tabs ── */
.f5-tabs {
  display: flex; position: relative; z-index: 1;
  margin: 0 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 2px;
}
.f5-tab {
  flex: 1; padding: 9px 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; border-radius: 9px;
  cursor: pointer; transition: all 0.18s; font-family: var(--font-body);
}
.f5-tab.active {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 12px rgba(15,157,88,0.4);
}

/* ── Tab Panels ── */
.f5-panel { display: none; position: relative; z-index: 1; }
.f5-panel.active { display: block; }

/* ── Play Panel ── */
.f5-play-area { padding: 0 16px 24px; }

.f5-balls-display {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.f5-ball {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  background: var(--card2);
  border: 2px solid var(--border);
  color: rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden; user-select: none;
}
.f5-ball.filled {
  background: linear-gradient(135deg, #1a6b3a, #0f9d58);
  border-color: var(--green-light);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,157,88,0.45);
}
.f5-ball.pop {
  animation: f5pop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes f5pop {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Quick picks row */
.f5-tickets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.f5-ticket {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.f5-ticket-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.f5-ticket-ball {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #1a6b3a, #0f9d58);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,157,88,0.3);
}
.f5-ticket-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; flex-shrink: 0; }

.f5-btn-row { display: flex; gap: 10px; }
.f5-btn {
  flex: 1; padding: 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; border-radius: 12px; cursor: pointer;
  transition: all 0.18s;
}
.f5-btn-primary {
  background: linear-gradient(135deg, #1a8c47, var(--green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,157,88,0.4);
}
.f5-btn-primary:hover { box-shadow: 0 6px 28px rgba(15,157,88,0.6); transform: translateY(-1px); }
.f5-btn-primary:active { transform: translateY(0); }
.f5-btn-secondary {
  background: var(--card2); color: var(--muted);
  border: 1px solid var(--border);
}
.f5-btn-secondary:hover { border-color: var(--border2); color: var(--text); }

.f5-qp-count {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.f5-qp-btn {
  flex: 1; min-width: 60px; padding: 10px 8px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  transition: all 0.15s;
}
.f5-qp-btn:hover, .f5-qp-btn.active {
  background: rgba(15,157,88,0.15); color: var(--green-light);
  border-color: var(--border2);
}

/* ── Frequency Panel ── */
.f5-freq-area { padding: 0 16px 24px; }
.f5-freq-title { font-family: var(--font-display); font-size: 18px; color: var(--text); margin-bottom: 4px; }
.f5-freq-sub { font-size: 11px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.04em; }
.f5-freq-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.f5-freq-num {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--card2);
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.15s; gap: 2px;
}
.f5-freq-num:hover { border-color: var(--border2); transform: scale(1.04); }
.f5-freq-num .fn { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
.f5-freq-num .fc { font-size: 9px; color: var(--muted); font-weight: 600; }
.f5-freq-num.hot { background: linear-gradient(135deg, rgba(15,157,88,0.25), rgba(15,157,88,0.1)); border-color: rgba(15,157,88,0.45); }
.f5-freq-num.hot .fn { color: var(--green-light); }
.f5-freq-num.cold { background: rgba(26,86,219,0.12); border-color: rgba(26,86,219,0.3); }
.f5-freq-num.cold .fn { color: #93c5fd; }
.f5-freq-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.f5-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.f5-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ── History Panel ── */
.f5-history-area { padding: 0 16px 24px; }
.f5-draw {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.f5-draw-date { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; flex-shrink: 0; }
.f5-draw-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.f5-draw-ball {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #1a6b3a, #0f9d58);
  color: #fff;
}
.f5-draw-jackpot { font-size: 11px; color: var(--green-light); font-weight: 700; text-align: right; flex-shrink: 0; }
.f5-history-note { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 0 0; line-height: 1.7; }

/* ── Stats Panel ── */
.f5-stats-area { padding: 0 16px 24px; }
.f5-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.f5-stat-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.f5-stat-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.f5-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--green-light); line-height: 1; }
.f5-stat-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.f5-odds-table { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.f5-odds-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--border); gap: 8px; }
.f5-odds-row:last-child { border-bottom: none; }
.f5-odds-match { font-size: 13px; font-weight: 600; color: var(--text); }
.f5-odds-prize { font-size: 12px; font-weight: 700; color: var(--green-light); }
.f5-odds-odds { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }

/* ── Footer ── */
.f5-footer {
  text-align: center; padding: 24px 20px 52px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.2); font-size: 11px; line-height: 1.9;
  position: relative; z-index: 1;
}
.f5-footer a { color: var(--gold); text-decoration: none; }
.f5-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }

/* Mid-page ad */
.f5-ad-midpage { display: none; margin: 0 16px 20px; border-radius: 10px; overflow: hidden; text-align: center; }
.f5-ad-midpage img { max-width: 100%; border-radius: 8px; }

@media (max-width: 400px) {
  .f5-title { font-size: 34px; }
  .f5-ball { width: 50px; height: 50px; font-size: 19px; }
  .f5-freq-grid { grid-template-columns: repeat(6, 1fr); }
}
