/* ── Colorado Lotto! — LottoMom.com ── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --gold:       #d4a017;
  --gold-dim:   rgba(212,160,23,0.18);
  --bg:         #07090f;
  --surface:    #0e1520;
  --card:       #111827;
  --border:     rgba(255,255,255,0.09);
  --text:       #e8edf5;
  --muted:      rgba(255,255,255,0.38);
  --accent:     #2563eb;
  --accent2:    #3b82f6;
  --accent-dim: rgba(37,99,235,0.18);
  --radius:     14px;
  --font-head:  'Oswald', sans-serif;
  --font-body:  'DM Sans', 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;
}

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

/* Glow */
.hl-glow {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 320px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.22) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}

/* Nav */
.hl-nav {
  position: relative; z-index: 10;
  display: flex; justify-content: center;
  gap: 20px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,9,15,0.95);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.hl-nav a {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.hl-nav a.active, .hl-nav a:hover { color: var(--gold); }

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

/* Ad slots */
.lm-ad-banner, .lm-ad-midpage, .lm-ad-badge {
  display: none; text-align: center; padding: 8px 16px;
  position: relative; z-index: 1;
}
.lm-ad-banner-inner, .lm-ad-mid-inner {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; display: inline-block; max-width: 100%;
}
.lm-ad-label {
  display: block; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-bottom: 6px;
}
.lm-ad-sponsor-label { display: block; font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 5px; }
.lm-ad-badge-inner { font-size: 11px; color: rgba(255,255,255,0.35); }
.lm-ad-badge-inner a { color: var(--gold); text-decoration: none; }

/* Header */
.hl-header {
  position: relative; z-index: 1;
  text-align: center; padding: 30px 20px 18px;
}
.hl-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent2);
  margin-bottom: 10px;
}
.hl-header h1 {
  font-family: var(--font-head); font-size: 46px; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1; color: #fff;
  margin-bottom: 6px;
}
.hl-header h1 span { color: var(--gold); }
.hl-header p {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.hl-divider {
  width: 36px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  margin: 14px auto 0; border: none;
}

/* Draw info strip */
.hl-draw-strip {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 14px 16px 0;
}
.hl-draw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 12px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.hl-draw-chip span { color: var(--gold); }

/* Sponsor badge slot inline */
.hl-badge-slot {
  position: relative; z-index: 1;
  text-align: center; padding: 10px 16px 0;
}

/* Tabs */
.tabs {
  position: relative; z-index: 1;
  display: flex; gap: 0; padding: 18px 16px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 10px 18px 12px;
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Tab panels */
.tab-panel { display: none; padding: 20px 16px; position: relative; z-index: 1; }
.tab-panel.active { display: block; }

/* ── PLAY TAB ── */
.play-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; margin-bottom: 14px;
}
.play-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
/* Ball tray */
.ball-tray {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; min-height: 52px;
  align-items: center; margin-bottom: 4px;
}
.ball {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  transition: transform 0.15s;
}
.ball.main {
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 3px 12px rgba(37,99,235,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.ball.empty {
  background: rgba(255,255,255,0.04); border: 2px dashed rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.15); font-size: 20px;
}
.ball.bonus {
  background: radial-gradient(circle at 35% 35%, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 3px 12px rgba(245,158,11,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
@keyframes ballPop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.ball.pop { animation: ballPop 0.35s cubic-bezier(.34,1.56,.64,1) forwards; }

/* Multiplier */
.multiplier-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.multiplier-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.multiplier-toggle {
  display: flex; gap: 4px;
}
.mult-btn {
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.mult-btn.active {
  background: var(--gold-dim); border-color: rgba(212,160,23,0.5); color: var(--gold);
}

/* Buttons */
.btn-pick {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border: none; border-radius: 10px;
  font-family: var(--font-head); font-size: 20px; font-weight: 500;
  letter-spacing: 0.08em; color: #fff;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-pick:hover { box-shadow: 0 6px 28px rgba(37,99,235,0.5); transform: translateY(-1px); }
.btn-pick:active { transform: translateY(0); }

.btn-clear {
  width: 100%; padding: 11px;
  background: none; border: 1px solid var(--border);
  border-radius: 10px; color: var(--muted);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 8px; transition: all 0.15s;
}
.btn-clear:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* Ticket history */
.ticket-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ticket-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 10px;
  padding: 10px 14px; border: 1px solid var(--border);
}
.ticket-num { font-size: 10px; font-weight: 700; color: var(--muted); width: 20px; }
.ticket-balls { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.ticket-ball {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8);
  color: #fff; flex-shrink: 0;
}
.ticket-ball.bonus-small {
  background: radial-gradient(circle at 35% 35%, #f59e0b, #d97706);
}
.ticket-mult { font-size: 11px; font-weight: 700; color: var(--gold); flex-shrink: 0; }

/* ── FREQUENCY TAB ── */
.freq-intro { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.freq-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.freq-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.freq-ball-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.freq-ball {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff;
}
.freq-ball.hot {
  background: radial-gradient(circle at 35% 35%, #ef4444, #b91c1c);
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}
.freq-ball.cold {
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1e40af);
  box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}
.freq-ball.overdue {
  background: radial-gradient(circle at 35% 35%, #8b5cf6, #6d28d9);
  box-shadow: 0 2px 8px rgba(139,92,246,0.35);
}
.freq-count { font-size: 10px; font-weight: 600; color: var(--muted); }

/* ── HISTORY TAB ── */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-row {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.history-date {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.history-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.h-ball {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8);
}
.h-ball.h-bonus {
  background: radial-gradient(circle at 35% 35%, #f59e0b, #d97706);
}

/* ── STATS TAB ── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; text-align: center;
}
.stat-value {
  font-family: var(--font-head); font-size: 32px; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.odds-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.odds-table th {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.odds-table td {
  padding: 10px 12px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.odds-table tr:last-child td { border-bottom: none; }
.odds-table td:last-child { color: var(--gold); font-weight: 600; text-align: right; }

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