/* ── LottoMom · Vermont Pick 3 · p3-styles.css ── */
:root {
  --gold: #d4a017;
  --gold-dim: rgba(212,160,23,0.15);
  --bg: #0a0800;
  --surface: #12100a;
  --card: #1a160e;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.45);
  --accent: #1a5276;
  --accent-light: #60a5fa;
  --accent-dim: rgba(96,165,250,0.12);
  --font-head: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::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; background: var(--bg); }
.p3-glow { position: fixed; top: -10%; left: 50%; transform: translateX(-50%); width: 360px; height: 360px; background: radial-gradient(circle, rgba(26,82,118,0.28) 0%, transparent 70%); 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(10,8,0,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:hover { color: var(--gold); }

.p3-back { position: relative; z-index: 1; display: inline-block; margin: 12px 16px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.p3-back:hover { color: var(--gold); }

.lm-ad-banner, .lm-ad-midpage, .lm-ad-badge { text-align: center; padding: 0 16px; margin: 8px 0; display: none; position: relative; z-index: 1; }
.lm-ad-banner-inner, .lm-ad-mid-inner { display: inline-block; width: 100%; max-width: 580px; }
.lm-ad-label { display: block; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 4px; font-weight: 500; }
.lm-ad-sponsor-label { display: block; font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 4px; }
.lm-ad-badge-inner { display: inline-block; font-size: 11px; color: rgba(255,255,255,0.35); padding: 4px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; background: rgba(255,255,255,0.04); }
.lm-ad-badge-inner a { color: var(--gold); text-decoration: none; }

.p3-header { position: relative; z-index: 1; text-align: center; padding: 32px 20px 20px; }
.p3-badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-light); border: 1px solid rgba(96,165,250,0.35); padding: 5px 16px; border-radius: 100px; margin-bottom: 14px; background: var(--accent-dim); }
.p3-header h1 { font-family: var(--font-head); font-size: 38px; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: 0.02em; margin: 0; }
.p3-header h1 span { color: var(--accent-light); }
.p3-header p { margin: 8px 0 0; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.p3-divider { width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-light), transparent); margin: 14px auto 0; border: none; }

.tabs { position: relative; z-index: 1; display: flex; gap: 4px; padding: 16px 16px 0; flex-wrap: wrap; }
.tab-btn { flex: 1; min-width: 70px; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: all 0.18s; text-transform: uppercase; }
.tab-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.tab-btn.active { background: var(--accent-dim); border-color: rgba(96,165,250,0.4); color: var(--accent-light); }

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

.p3-game-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.p3-game-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 14px; }

/* Digit display */
.p3-digits { display: flex; justify-content: center; gap: 12px; margin: 20px 0; }
.p3-digit {
  width: 72px; height: 90px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 48px; font-weight: 700;
  background: var(--surface); border: 2px solid var(--border); color: var(--muted);
  transition: all 0.2s;
}
.p3-digit.filled { background: linear-gradient(135deg, #0d2d4a, #0a1f36); border-color: var(--accent-light); color: var(--accent-light); box-shadow: 0 0 16px rgba(96,165,250,0.2); }
.p3-digit.drawn { background: linear-gradient(135deg, #1a4a7a, #0d3060); border-color: #93c5fd; color: #fff; box-shadow: 0 0 20px rgba(96,165,250,0.35); }

.p3-draw-label { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.p3-result { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); text-align: center; }
.p3-result.win { background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.35); color: var(--accent-light); }
.p3-result.exact { background: rgba(212,160,23,0.12); border-color: rgba(212,160,23,0.4); color: var(--gold); }

/* Play type selector */
.p3-play-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.play-type-btn {
  padding: 8px 4px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.18s; text-align: center; text-transform: uppercase;
}
.play-type-btn.active { background: var(--accent-dim); border-color: rgba(96,165,250,0.4); color: var(--accent-light); }
.play-type-btn:hover { color: var(--text); }

.btn { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: all 0.18s; text-transform: uppercase; }
.btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-accent { background: var(--accent-dim); border-color: rgba(96,165,250,0.4); color: var(--accent-light); }
.btn-accent:hover { background: rgba(96,165,250,0.2); }
.btn-gold { background: rgba(212,160,23,0.12); border-color: rgba(212,160,23,0.35); color: var(--gold); }
.btn-full { width: 100%; padding: 13px; font-size: 13px; border-radius: 10px; }

.mb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-actions .btn { flex: 1; min-width: 100px; }

/* Frequency */
.freq-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 12px; }
.freq-cell { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; text-align: center; }
.freq-num { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); }
.freq-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; margin: 6px 4px 4px; }
.freq-bar { height: 100%; border-radius: 2px; background: var(--accent-light); }
.freq-count { font-size: 10px; color: var(--muted); font-weight: 500; }
.freq-cell.hot .freq-num { color: var(--gold); }
.freq-cell.hot .freq-bar { background: var(--gold); }
.freq-cell.cold .freq-num { color: #a78bfa; }
.freq-cell.cold .freq-bar { background: #a78bfa; }
.freq-section-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }

/* History */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-entry { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.history-date { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.history-draw { display: flex; align-items: center; gap: 6px; }
.h-draw-label { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; min-width: 40px; }
.h-digits { display: flex; gap: 6px; }
.h-digit { width: 30px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 16px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--accent-light); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-val { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent-light); line-height: 1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.stat-card.full { grid-column: span 2; }
.odds-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.odds-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.odds-match { font-size: 12px; font-weight: 600; color: var(--text); }
.odds-prize { font-size: 12px; color: var(--gold); font-weight: 700; }
.odds-prob { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

.p3-footer { position: relative; z-index: 1; text-align: center; padding: 24px 20px 52px; margin-top: 16px; border-top: 1px solid var(--border); color: rgba(255,255,255,0.22); 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; }

@media (max-width: 400px) {
  .p3-digit { width: 60px; height: 76px; font-size: 38px; }
  .p3-header h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card.full { grid-column: span 1; }
}
