/* ═══════════════════════════════════════════════════════
   LottoMom.com — Lotto America (New Mexico)
   Prefix: la
   ═══════════════════════════════════════════════════════ */

:root {
  --gold:        #d4a017;
  --gold-light:  #f0c040;
  --gold-dim:    rgba(212,160,23,0.15);
  --navy:        #1a3a6b;
  --navy-light:  #4070c0;
  --red-stripe:  #c0182a;
  --bg:          #0a0800;
  --surface:     #18120a;
  --surface2:    #1e160c;
  --border:      rgba(255,255,255,0.08);
  --text:        #ffffff;
  --muted:       rgba(255,255,255,0.45);
  --muted2:      rgba(255,255,255,0.22);
  --radius:      14px;
  --font-body:   'DM Sans', 'Inter', -apple-system, sans-serif;
  --font-title:  'Oswald', 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; }
#la-wrap { max-width: 620px; margin: 0 auto; min-height: 100vh; }

/* ── Back Nav ── */
.la-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  font-family: var(--font-body); padding: 14px 20px 10px;
  transition: color 0.15s;
}
.la-back:hover { color: var(--gold); }

/* ── Ad Slots ── */
.la-ad-banner, .la-ad-midpage, .la-ad-badge { display: none; text-align: center; margin: 0 16px; }
.la-ad-banner { margin-bottom: 4px; }
.la-ad-midpage { margin: 16px; }
.la-ad-banner-inner, .la-ad-mid-inner { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.la-ad-label { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted2); padding: 6px 0 4px; }
.la-ad-sponsor-label { display: block; font-size: 10px; color: var(--muted2); padding: 4px 0 6px; }
.la-ad-badge { margin: 8px 16px 0; }
.la-ad-badge-inner { font-size: 11px; color: var(--muted2); }
.la-ad-badge-inner a { color: var(--gold); text-decoration: none; }

/* ── Header ── */
#la-header { text-align: center; padding: 28px 20px 20px; position: relative; }
#la-header::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 220px;
  background: radial-gradient(circle, rgba(26,58,107,0.28) 0%, transparent 70%);
  pointer-events: none;
}
#la-game-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #6090d8; border: 1px solid rgba(26,58,107,0.6);
  padding: 5px 14px; border-radius: 100px; background: rgba(26,58,107,0.2); margin-bottom: 14px;
}
#la-header h1 { font-family: var(--font-title); font-size: 36px; font-weight: 700; letter-spacing: 0.03em; line-height: 1; margin-bottom: 6px; background: none; }
#la-header h1 span { color: var(--gold); }
#la-subtitle { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
#la-divider { width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 14px auto 0; border: none; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; margin: 20px 16px 0; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); padding: 4px; overflow-x: auto; }
.tab-btn { flex: 1; padding: 9px 6px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: transparent; border: none; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: all 0.18s; }
.tab-btn.active { background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(26,58,107,0.6); }
.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }

/* ── Jackpot Card ── */
#la-jackpot-card {
  background: linear-gradient(135deg, #0e1a30, #180e06);
  border: 1px solid rgba(26,58,107,0.4);
  border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 16px;
}
#la-jackpot-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#la-jackpot-amount { font-family: var(--font-title); font-size: 42px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
#la-jackpot-sub { font-size: 11px; color: var(--muted); }

/* ── Balls ── */
#la-balls-display { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin: 20px 0 8px; }
.la-ball {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 20px; font-weight: 700;
  background: var(--surface2); border: 2px solid var(--border);
  color: var(--muted); transition: all 0.3s; position: relative; overflow: hidden;
}
.la-ball.drawn {
  background: radial-gradient(circle at 35% 35%, #4070c0, var(--navy));
  border-color: rgba(64,112,192,0.5); color: #fff;
  box-shadow: 0 4px 20px rgba(26,58,107,0.6);
}
.la-ball.star {
  background: var(--surface2); border-color: rgba(212,160,23,0.3);
}
.la-ball.star.drawn {
  background: radial-gradient(circle at 35% 35%, #f0c040, var(--gold));
  border-color: rgba(212,160,23,0.6); color: #000;
  box-shadow: 0 4px 20px rgba(212,160,23,0.5);
}
.la-ball.drawn::after, .la-ball.star.drawn::after {
  content: ''; position: absolute; top: 6px; left: 10px;
  width: 12px; height: 7px; background: rgba(255,255,255,0.25);
  border-radius: 50%; transform: rotate(-30deg);
}
.la-star-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 12px; }

#la-draw-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--navy-light), var(--navy)); border: none; border-radius: 12px; color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(26,58,107,0.4); margin-bottom: 10px; }
#la-draw-btn:hover { box-shadow: 0 6px 28px rgba(26,58,107,0.65); transform: translateY(-1px); }

#la-quick-btns { display: flex; gap: 8px; margin-bottom: 10px; }
#la-quick-btns button { flex: 1; padding: 10px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
#la-quick-btns button:hover { border-color: var(--gold); color: var(--gold); }

#la-result-msg { min-height: 38px; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }

/* My picks */
#la-my-picks-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
#la-my-picks-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.la-pick-row { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.la-pick-nums { flex: 1; display: flex; gap: 5px; flex-wrap: wrap; }
.la-pick-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(26,58,107,0.25); color: #6090d8; border: 1px solid rgba(26,58,107,0.4); }
.la-pick-star { background: rgba(212,160,23,0.15); color: var(--gold); border-color: rgba(212,160,23,0.35); }
.la-pick-del { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 4px; transition: color 0.15s; }
.la-pick-del:hover { color: #6090d8; }

/* ── Frequency ── */
.la-freq-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 14px; }
.la-freq-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 3px; text-align: center; }
.la-freq-num { font-family: var(--font-title); font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.la-freq-count { font-size: 8px; color: var(--muted); }
.la-freq-bar { height: 3px; border-radius: 2px; margin-top: 4px; background: rgba(255,255,255,0.08); }
.la-freq-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--navy-light), var(--gold)); }
.la-freq-cell.hot .la-freq-num { color: var(--gold); }
.la-freq-cell.cold .la-freq-num { color: rgba(255,255,255,0.3); }

/* ── History ── */
.la-history-list { display: flex; flex-direction: column; gap: 8px; }
.la-history-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.la-history-meta { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.la-history-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.la-hball { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: radial-gradient(circle at 35% 35%, #4070c0, var(--navy)); color: #fff; }
.la-hball.la-hstar { background: radial-gradient(circle at 35% 35%, #f0c040, var(--gold)); color: #000; }
.la-hstar-sep { font-size: 10px; color: var(--gold); align-self: center; font-weight: 700; padding: 0 2px; }

/* ── Stats ── */
.la-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.la-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.la-stat-val { font-family: var(--font-title); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.la-stat-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.la-odds-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.la-odds-table th { text-align: left; padding: 8px 10px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.la-odds-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--muted); }
.la-odds-table tr:last-child td { border-bottom: none; }
.la-odds-table td:first-child { color: var(--text); font-weight: 600; }
.la-odds-table td.prize { color: var(--gold); font-weight: 600; }

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