/* ── LottoMom · Oklahoma Pick 3 ── prefix: p3 ── */
:root {
  --p3-bg: #0a0800;
  --p3-surface: #130e06;
  --p3-card: #1a1108;
  --p3-border: rgba(255,255,255,0.08);
  --p3-gold: #d4a017;
  --p3-accent: #e11d48;
  --p3-accent-mute: rgba(225,29,72,0.15);
  --p3-text: #ffffff;
  --p3-muted: rgba(255,255,255,0.38);
  --p3-green: #22c55e;
  --p3-red: #f87171;
  --p3-font-display: 'Oswald', sans-serif;
  --p3-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(--p3-bg);
  color: var(--p3-text);
  font-family: var(--p3-font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.p3-wrap {
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--p3-bg);
}

/* ── Glow ── */
.p3-glow {
  position: fixed; top: -10%; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(225,29,72,0.28) 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(--p3-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(--p3-muted); text-decoration: none;
}
.p3-nav a.active, .p3-nav a:hover { color: var(--p3-gold); }

/* ── Back link ── */
.p3-back {
  position: relative; z-index: 1;
  display: inline-block;
  margin: 14px 20px 0;
  font-family: var(--p3-font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--p3-muted); text-decoration: none;
  transition: color 0.15s;
}
.p3-back:hover { color: var(--p3-gold); }

/* ── Header ── */
.p3-header {
  position: relative; z-index: 1;
  text-align: center; padding: 30px 20px 18px;
}
.p3-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--p3-accent); border: 1px solid rgba(225,29,72,0.35);
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 14px; background: rgba(225,29,72,0.08);
}
.p3-header h1 {
  font-family: var(--p3-font-display);
  font-size: 46px; font-weight: 700;
  line-height: 1; color: var(--p3-text);
  letter-spacing: 0.02em;
}
.p3-header h1 span { color: var(--p3-gold); display: block; }
.p3-header p {
  margin: 10px 0 0; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--p3-muted); font-weight: 500;
}
.p3-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--p3-accent), transparent);
  margin: 14px auto 0; border: none;
}

/* ── Ad slots ── */
.lm-ad-banner, .lm-ad-midpage, .lm-ad-badge {
  position: relative; z-index: 1;
  display: none; text-align: center;
}
.lm-ad-banner { margin: 14px 16px 0; }
.lm-ad-midpage { margin: 8px 16px; }
.lm-ad-badge { padding: 6px 16px 0; }
.lm-ad-label {
  display: block; font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
  margin-bottom: 4px; font-weight: 600;
}
.lm-ad-sponsor-label { display: block; font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; font-style: italic; }
.lm-ad-badge-inner { font-size: 11px; color: rgba(255,255,255,0.3); }
.lm-ad-badge-inner a { color: var(--p3-gold); text-decoration: none; }

/* ── Jackpot banner ── */
.p3-jackpot {
  position: relative; z-index: 1;
  margin: 16px 16px 0;
  background: linear-gradient(135deg, rgba(225,29,72,0.15), rgba(225,29,72,0.05));
  border: 1px solid rgba(225,29,72,0.25);
  border-radius: 16px; padding: 18px 22px;
  text-align: center;
}
.p3-jackpot-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px;
}
.p3-jackpot-amount {
  font-family: var(--p3-font-display);
  font-size: 38px; font-weight: 700; color: var(--p3-gold);
  line-height: 1;
}
.p3-jackpot-sub { font-size: 11px; color: var(--p3-muted); margin-top: 4px; }
.p3-next-draw {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.p3-next-draw span { color: var(--p3-text); }

/* ── Tabs ── */
.p3-tabs {
  position: relative; z-index: 1;
  display: flex; gap: 6px;
  padding: 18px 16px 0; overflow-x: auto;
  scrollbar-width: none;
}
.p3-tabs::-webkit-scrollbar { display: none; }
.p3-tab {
  flex-shrink: 0; padding: 8px 18px;
  border-radius: 100px; font-size: 12px;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--p3-border);
  background: rgba(255,255,255,0.04);
  color: var(--p3-muted); transition: all 0.2s;
}
.p3-tab.active {
  background: var(--p3-accent-mute);
  border-color: rgba(225,29,72,0.4);
  color: #fb7185;
}

/* ── Panel ── */
.p3-panel { position: relative; z-index: 1; padding: 18px 16px 0; display: none; }
.p3-panel.active { display: block; }

/* ── Play panel ── */
.p3-play-card {
  background: var(--p3-card);
  border: 1px solid var(--p3-border);
  border-radius: 16px; padding: 22px;
  margin-bottom: 14px;
}
.p3-play-title {
  font-family: var(--p3-font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--p3-muted); margin-bottom: 18px;
}

/* Digit picker */
.p3-digits {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 20px;
}
.p3-digit-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p3-digit-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--p3-muted);
}
.p3-digit-display {
  width: 72px; height: 80px;
  background: linear-gradient(135deg, #1f1408, #160f05);
  border: 2px solid var(--p3-border);
  border-radius: 12px;
  font-family: var(--p3-font-display);
  font-size: 52px; font-weight: 700;
  color: var(--p3-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s;
  user-select: none;
}
.p3-digit-display:hover { border-color: rgba(225,29,72,0.4); }
.p3-digit-display.selected {
  border-color: var(--p3-accent);
  background: linear-gradient(135deg, rgba(225,29,72,0.18), rgba(225,29,72,0.06));
  color: var(--p3-gold);
  box-shadow: 0 0 20px rgba(225,29,72,0.2);
}
.p3-digit-arrows { display: flex; gap: 6px; }
.p3-digit-btn {
  width: 30px; height: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--p3-border);
  border-radius: 6px; color: var(--p3-muted);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.p3-digit-btn:hover { background: var(--p3-accent-mute); border-color: rgba(225,29,72,0.3); color: #fb7185; }

/* Play type selector */
.p3-play-types {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 18px;
}
.p3-play-type {
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--p3-border);
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.p3-play-type.selected {
  background: var(--p3-accent-mute);
  border-color: rgba(225,29,72,0.4);
}
.p3-play-type-name {
  font-size: 12px; font-weight: 700; color: var(--p3-text);
  letter-spacing: 0.04em;
}
.p3-play-type-desc { font-size: 10px; color: var(--p3-muted); margin-top: 2px; }
.p3-play-type.selected .p3-play-type-name { color: #fb7185; }

/* Buttons */
.p3-btn-row { display: flex; gap: 10px; margin-top: 4px; }
.p3-btn {
  flex: 1; padding: 14px;
  border-radius: 12px; border: none;
  font-family: var(--p3-font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer;
  transition: all 0.2s; text-transform: uppercase;
}
.p3-btn-primary {
  background: linear-gradient(135deg, var(--p3-accent), #9f1239);
  color: #fff;
  box-shadow: 0 4px 20px rgba(225,29,72,0.35);
}
.p3-btn-primary:hover { box-shadow: 0 6px 30px rgba(225,29,72,0.55); transform: translateY(-1px); }
.p3-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--p3-border);
  color: var(--p3-muted);
}
.p3-btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--p3-text); }

/* Result area */
.p3-result {
  margin-top: 14px; padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--p3-border);
  border-radius: 14px; text-align: center;
  display: none;
}
.p3-result.show { display: block; }
.p3-result-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--p3-muted); margin-bottom: 12px;
}
.p3-result-digits {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 14px;
}
.p3-result-digit {
  width: 64px; height: 72px;
  background: linear-gradient(135deg, var(--p3-card), #0e0a04);
  border: 2px solid rgba(225,29,72,0.35);
  border-radius: 12px;
  font-family: var(--p3-font-display);
  font-size: 46px; font-weight: 700;
  color: var(--p3-gold);
  display: flex; align-items: center; justify-content: center;
}
.p3-result-outcome {
  font-family: var(--p3-font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em;
}
.p3-result-outcome.win { color: var(--p3-green); }
.p3-result-outcome.lose { color: var(--p3-red); }
.p3-result-prize { font-size: 13px; color: var(--p3-muted); margin-top: 4px; }

/* ── Frequency panel ── */
.p3-freq-grid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 6px; margin-bottom: 16px;
}
.p3-freq-ball {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--p3-card);
  border: 1px solid var(--p3-border);
  cursor: default;
}
.p3-freq-ball-num {
  font-family: var(--p3-font-display);
  font-size: 16px; font-weight: 700; line-height: 1;
}
.p3-freq-ball-count { font-size: 8px; color: var(--p3-muted); margin-top: 1px; }
.p3-freq-ball.hot { background: rgba(225,29,72,0.15); border-color: rgba(225,29,72,0.3); }
.p3-freq-ball.hot .p3-freq-ball-num { color: #fb7185; }
.p3-freq-ball.cold { background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.2); }
.p3-freq-ball.cold .p3-freq-ball-num { color: #60a5fa; }
.p3-section-title {
  font-family: var(--p3-font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--p3-muted); margin-bottom: 12px; margin-top: 20px;
}
.p3-section-title:first-child { margin-top: 0; }
.p3-legend { display: flex; gap: 16px; margin-bottom: 16px; }
.p3-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--p3-muted); }
.p3-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ── History panel ── */
.p3-history-list { display: flex; flex-direction: column; gap: 8px; }
.p3-history-row {
  background: var(--p3-card);
  border: 1px solid var(--p3-border);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.p3-history-date { font-size: 11px; color: var(--p3-muted); min-width: 80px; }
.p3-history-nums { display: flex; gap: 8px; }
.p3-history-num {
  width: 32px; height: 32px;
  background: rgba(225,29,72,0.12);
  border: 1px solid rgba(225,29,72,0.25);
  border-radius: 8px;
  font-family: var(--p3-font-display);
  font-size: 18px; font-weight: 700; color: var(--p3-gold);
  display: flex; align-items: center; justify-content: center;
}
.p3-history-type { font-size: 10px; color: var(--p3-muted); margin-left: auto; letter-spacing: 0.06em; }

/* ── Stats panel ── */
.p3-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.p3-stat-card {
  background: var(--p3-card);
  border: 1px solid var(--p3-border);
  border-radius: 12px; padding: 16px;
}
.p3-stat-value {
  font-family: var(--p3-font-display);
  font-size: 30px; font-weight: 700; color: var(--p3-gold);
  line-height: 1;
}
.p3-stat-label { font-size: 11px; color: var(--p3-muted); margin-top: 4px; }

/* ── Footer ── */
.p3-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 24px 20px 52px;
  margin-top: 24px; border-top: 1px solid var(--p3-border);
  color: var(--p3-muted); font-size: 11px; line-height: 1.9;
}
.p3-footer a { color: var(--p3-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-display { width: 60px; height: 68px; font-size: 42px; }
  .p3-digits { gap: 8px; }
}
