/* ── LottoMom · Vermont Pick 4 · p4-styles.css ── */
:root {
  --gold: #d4a017; --bg: #0a0800; --surface: #12100a; --card: #1a160e;
  --border: rgba(255,255,255,0.08); --text: #ffffff; --muted: rgba(255,255,255,0.45);
  --accent-light: #c084fc; --accent-dim: rgba(192,132,252,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; }
.p4-wrap { max-width: 620px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
.p4-glow { position: fixed; top: -10%; left: 50%; transform: translateX(-50%); width: 360px; height: 360px; background: radial-gradient(circle, rgba(74,35,90,0.28) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.p4-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; }
.p4-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.p4-nav a:hover { color: var(--gold); }
.p4-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; }
.p4-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; }
.p4-header { position: relative; z-index: 1; text-align: center; padding: 32px 20px 20px; }
.p4-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(192,132,252,0.35); padding: 5px 16px; border-radius: 100px; margin-bottom: 14px; background: var(--accent-dim); }
.p4-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; }
.p4-header h1 span { color: var(--accent-light); }
.p4-header p { margin: 8px 0 0; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.p4-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(192,132,252,0.4); color: var(--accent-light); }
.tab-panel { display: none; position: relative; z-index: 1; padding: 16px; }
.tab-panel.active { display: block; }
.p4-game-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.p4-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; }
.p4-digits { display: flex; justify-content: center; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.p4-digit { width: 64px; height: 82px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 42px; font-weight: 700; background: var(--surface); border: 2px solid var(--border); color: var(--muted); transition: all 0.2s; }
.p4-digit.filled { background: linear-gradient(135deg, #2d1a4a, #1e0f38); border-color: var(--accent-light); color: var(--accent-light); box-shadow: 0 0 14px rgba(192,132,252,0.2); }
.p4-digit.drawn { background: linear-gradient(135deg, #4a1a7a, #3a0f6a); border-color: #e879f9; color: #fff; box-shadow: 0 0 18px rgba(192,132,252,0.35); }
.p4-draw-label { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.p4-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(192,132,252,0.4); color: var(--accent-light); }
.p4-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; }
.p4-result.win { background: rgba(192,132,252,0.1); border-color: rgba(192,132,252,0.35); color: var(--accent-light); }
.p4-result.exact { background: rgba(212,160,23,0.12); border-color: rgba(212,160,23,0.4); color: var(--gold); }
.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(192,132,252,0.4); color: var(--accent-light); }
.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; }
.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: #60a5fa; } .freq-cell.cold .freq-bar { background: #60a5fa; }
.freq-section-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.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; }
.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-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); }
.p4-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; }
.p4-footer a { color: var(--gold); text-decoration: none; }
.p4-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
@media (max-width:400px) { .p4-digit{width:54px;height:68px;font-size:34px;} .p4-header h1{font-size:30px;} .stats-grid{grid-template-columns:1fr;} .stat-card.full{grid-column:span 1;} }
