/* ── Pick 3 · Wyoming · LottoMom.com ── */
:root {
  --gold: #d4a017;
  --gold2: #f5c518;
  --bg: #0a0800;
  --surface: #18120a;
  --surface2: #201800;
  --border: rgba(255,255,255,0.08);
  --border-gold: rgba(212,160,23,0.35);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.38);
  --blue: #002868;
  --blue-light: #6ea8fe;
  --radius: 16px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, 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); min-height: 100vh; -webkit-font-smoothing: antialiased; }
#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: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,40,104,0.38) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
nav#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;
}
nav#p3-nav a {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
nav#p3-nav a:hover { color: var(--gold); }

/* ── Back link ── */
.p3-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  font-family: 'DM Sans', var(--font-body);
  transition: color 0.15s;
  margin: 18px 0 0 18px;
}
.p3-back:hover { color: var(--gold); }

/* ── Ad slots ── */
.lm-ad-banner { display: none; margin: 10px 16px 0; }
.lm-ad-banner-inner, .lm-ad-mid-inner { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px; padding: 8px; text-align: center; }
.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.25); margin-top: 5px; }
.lm-ad-badge { display: none; text-align: center; padding: 8px 20px 0; }
.lm-ad-badge-inner { font-size: 11px; color: rgba(255,255,255,0.3); }
.lm-ad-badge-inner a { color: var(--gold); text-decoration: none; }
.lm-ad-midpage { display: none; margin: 16px 16px 0; }

/* ── Header ── */
#p3-header { position: relative; z-index: 1; text-align: center; padding: 24px 20px 22px; }
#p3-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-light); border: 1px solid rgba(110,168,254,0.35);
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 14px; background: rgba(0,40,104,0.15);
}
#p3-header h1 {
  font-family: var(--font-display); font-size: 42px;
  font-weight: 700; line-height: 1; color: var(--text);
  letter-spacing: 0.02em;
}
#p3-header h1 span { color: var(--gold); }
#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(--blue-light), transparent);
  margin: 14px auto 0;
}

/* ── Tabs ── */
.tabs {
  position: relative; z-index: 1;
  display: flex; border-bottom: 1px solid var(--border);
  margin: 0 16px; gap: 0;
}
.tab-btn {
  flex: 1; padding: 12px 4px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body); transition: color 0.15s;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.65); }
.tab-panel { display: none; position: relative; z-index: 1; padding: 20px 16px; }
.tab-panel.active { display: block; }

/* ── Play Panel ── */
.p3-machine {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  margin-bottom: 16px;
}
.p3-balls {
  display: flex; justify-content: center; gap: 14px; margin-bottom: 24px;
}
.p3-ball {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  background: linear-gradient(135deg, #0a1f60, #001545);
  border: 2px solid rgba(110,168,254,0.3);
  color: #fff; box-shadow: 0 4px 20px rgba(0,40,104,0.5);
  transition: transform 0.15s;
  user-select: none;
}
.p3-ball.rolling { animation: p3spin 0.08s linear infinite; }
@keyframes p3spin { 0%{transform:scale(0.95)} 50%{transform:scale(1.05)} 100%{transform:scale(0.95)} }
.p3-ball.landed { animation: p3pop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes p3pop { 0%{transform:scale(0.8)} 100%{transform:scale(1)} }

.p3-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.p3-btn {
  padding: 13px 28px; border-radius: 10px; font-size: 14px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: none; font-family: var(--font-body);
  transition: all 0.2s;
}
.p3-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #0a0800; box-shadow: 0 4px 20px rgba(212,160,23,0.35);
}
.p3-btn-primary:hover { box-shadow: 0 6px 30px rgba(212,160,23,0.55); transform: translateY(-1px); }
.p3-btn-primary:active { transform: scale(0.97); }
.p3-btn-secondary {
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
}
.p3-btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* Play type selector */
.p3-play-types {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 20px;
}
.p3-type-btn {
  padding: 10px 6px; border-radius: 10px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--muted);
  font-family: var(--font-body); transition: all 0.15s; text-align: center;
}
.p3-type-btn.active {
  background: rgba(0,40,104,0.3); color: var(--blue-light);
  border-color: rgba(110,168,254,0.4);
}
.p3-type-btn:hover:not(.active) { color: var(--text); border-color: rgba(255,255,255,0.2); }
.p3-type-label { font-size: 9px; color: var(--muted); margin-top: 3px; display: block; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Result display */
.p3-result {
  background: var(--surface2); border: 1px solid var(--border-gold);
  border-radius: 12px; padding: 14px 16px; margin-top: 14px;
  display: none; text-align: center;
}
.p3-result.show { display: block; }
.p3-result-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p3-result-combo { font-family: var(--font-display); font-size: 22px; color: var(--gold); letter-spacing: 0.12em; }
.p3-result-type { font-size: 11px; color: var(--blue-light); margin-top: 4px; }
.p3-result-prize { font-size: 13px; color: #4ade80; font-weight: 600; margin-top: 6px; }

/* Wager selector */
.p3-wager-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 18px;
}
.p3-wager-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.p3-wager-btns { display: flex; gap: 6px; }
.p3-wager-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 12px;
  font-weight: 700; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--muted); font-family: var(--font-body);
  transition: all 0.15s;
}
.p3-wager-btn.active {
  background: rgba(212,160,23,0.15); color: var(--gold);
  border-color: var(--border-gold);
}

/* ── History / Frequency shared ── */
.p3-section-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text); margin-bottom: 14px;
}
.p3-draw-list { display: flex; flex-direction: column; gap: 10px; }
.p3-draw-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.p3-draw-date { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.p3-draw-nums { display: flex; gap: 8px; }
.p3-draw-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #0a1f60, #001545);
  border: 1.5px solid rgba(110,168,254,0.25); color: #fff;
}
.p3-draw-prize { font-size: 12px; color: #4ade80; font-weight: 600; }

/* Frequency bars */
.p3-freq-list { display: flex; flex-direction: column; gap: 8px; }
.p3-freq-row { display: flex; align-items: center; gap: 10px; }
.p3-freq-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #0a1f60, #001545);
  border: 1.5px solid rgba(110,168,254,0.2); color: #fff;
  flex-shrink: 0;
}
.p3-freq-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.p3-freq-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #002868, var(--blue-light)); transition: width 0.6s ease; }
.p3-freq-count { font-size: 11px; color: var(--muted); font-weight: 600; width: 28px; text-align: right; flex-shrink: 0; }
.p3-hot { color: #f87171; }
.p3-cold { color: var(--blue-light); }

/* Stats panel */
.p3-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p3-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.p3-stat-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p3-stat-val { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; }
.p3-stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* No data placeholder */
.p3-no-data { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── Footer ── */
#p3-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 24px 20px 52px;
  margin-top: 16px; border-top: 1px solid var(--border);
  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; }
