/* ── Colorado Pick 3 — 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:         #071209;
  --surface:    #0a1a0c;
  --card:       #0e1f10;
  --border:     rgba(255,255,255,0.09);
  --text:       #e0f0e2;
  --muted:      rgba(255,255,255,0.38);
  --accent:     #22c55e;
  --accent2:    #4ade80;
  --accent-dim: rgba(34,197,94,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; }

.p3-wrap { max-width: 620px; margin: 0 auto; min-height: 100vh; position: relative; }
.p3-glow { position: fixed; top: -60px; left: 50%; transform: translateX(-50%); width: 420px; height: 320px; background: radial-gradient(ellipse, rgba(34,197,94,0.18) 0%, transparent 68%); pointer-events: none; z-index: 0; }

.p3-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,18,9,0.95); backdrop-filter: blur(8px); flex-wrap: wrap; }
.p3-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.p3-nav a.active, .p3-nav a:hover { color: var(--gold); }

.p3-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; }
.p3-back:hover { color: var(--gold); }

.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; }

.p3-header { position: relative; z-index: 1; text-align: center; padding: 30px 20px 18px; }
.p3-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent2); margin-bottom: 10px; }
.p3-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; }
.p3-header h1 span { color: var(--gold); }
.p3-header p { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.p3-divider { width: 36px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent2), transparent); margin: 14px auto 0; border: none; }

.p3-draw-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 16px 0; }
.p3-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); }
.p3-draw-chip span { color: var(--gold); }

.p3-badge-slot { position: relative; z-index: 1; text-align: center; padding: 10px 16px 0; }

.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-panel { display: none; padding: 20px 16px; position: relative; z-index: 1; }
.tab-panel.active { display: block; }

/* Pick 3 specific — digit display */
.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; }

.digit-tray { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.digit-box {
  width: 72px; height: 88px; border-radius: 12px;
  background: rgba(34,197,94,0.1); border: 2px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 48px; font-weight: 700;
  color: var(--accent2); transition: all 0.15s;
}
.digit-box.empty { color: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }
@keyframes digitPop { 0%{transform:scale(0.7);opacity:0;} 70%{transform:scale(1.08);} 100%{transform:scale(1);opacity:1;} }
.digit-box.pop { animation: digitPop 0.3s cubic-bezier(.34,1.56,.64,1) forwards; }

/* Play type selector */
.play-type-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.play-type-btn { flex: 1; min-width: 80px; padding: 8px 6px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; transition: all 0.15s; }
.play-type-btn.active { background: var(--accent-dim); border-color: rgba(34,197,94,0.5); color: var(--accent2); }

.btn-pick { width: 100%; padding: 15px; background: linear-gradient(135deg, #16a34a, #15803d); 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(34,197,94,0.3); }
.btn-pick:hover { box-shadow: 0 6px 28px rgba(34,197,94,0.45); transform: translateY(-1px); }
.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-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ticket-row { display: flex; align-items: center; gap: 10px; 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-digits { display: flex; gap: 6px; flex: 1; }
.ticket-digit { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 18px; font-weight: 700; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: var(--accent2); }
.ticket-type { font-size: 10px; font-weight: 700; color: var(--muted); flex-shrink: 0; }

/* Frequency */
.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: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; }
.freq-ball.hot { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.freq-ball.cold { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.freq-ball.overdue { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.freq-count { font-size: 10px; font-weight: 600; color: var(--muted); }

/* History */
.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: 8px; }
.history-draw-label { font-size: 10px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.history-digits { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.h-digit { width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--accent2); background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); }

/* Stats */
.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; }

.p3-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; }
.p3-footer a { color: var(--gold); text-decoration: none; }
.p3-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
