/* ── LottoMom · North Dakota · Mega Millions ─────────────────────────────── */
:root {
  --gold: #d4a017;
  --gold-dim: rgba(212,160,23,0.15);
  --accent: #d4a017;
  --accent-glow: rgba(212,160,23,0.28);
  --accent-light: #f0c040;
  --bg: #0a0800;
  --surface: #18120a;
  --surface2: #1e170e;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.45);
  --muted2: rgba(255,255,255,0.25);
  --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); -webkit-font-smoothing: antialiased; min-height: 100vh; }
.mm-wrap { max-width: 620px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
.mm-nav {
  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; position: relative; z-index: 10;
}
.mm-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mm-nav a.active, .mm-nav a:hover { color: var(--gold); }
.mm-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 12px 16px; transition: color 0.15s;
}
.mm-back:hover { color: var(--gold); }
.lm-ad-banner, .lm-ad-midpage, .lm-ad-badge { text-align: center; padding: 8px 16px; display: none; }
.lm-ad-banner-inner, .lm-ad-mid-inner { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.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.3); margin-top: 4px; }
.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; }
.mm-header { text-align: center; padding: 28px 20px 20px; position: relative; z-index: 1; }
.mm-header-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.mm-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(212,160,23,0.4); padding: 5px 16px; border-radius: 100px;
  margin-bottom: 14px; background: var(--gold-dim);
}
.mm-header h1 { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: 0.02em; }
.mm-header h1 span { color: var(--accent); }
.mm-header p { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted2); font-weight: 500; margin-top: 8px; }
.mm-divider { width: 40px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); border: none; }
.mm-jackpot {
  margin: 16px 16px 0; border-radius: 16px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(10,8,0,0));
  border: 1px solid rgba(212,160,23,0.3); text-align: center;
}
.mm-jackpot-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); font-weight: 600; }
.mm-jackpot-amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--gold); line-height: 1.1; margin: 6px 0 4px; }
.mm-jackpot-sub { font-size: 11px; color: var(--muted2); }
.mm-jackpot-next { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.tabs {
  display: flex; gap: 0; margin: 20px 16px 0; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
}
.tab-btn {
  flex: 1; padding: 11px 6px; font-family: var(--font-body); font-size: 11px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: none; color: var(--muted); cursor: pointer;
  border-right: 1px solid var(--border); transition: all 0.15s;
}
.tab-btn:last-child { border-right: none; }
.tab-btn.active { background: var(--accent); color: #111; }
.tab-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-panel { display: none; padding: 20px 16px; }
.tab-panel.active { display: block; }
.mm-balls-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.mm-ball {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 22px; font-weight: 700;
  border: 2px solid var(--border); background: var(--surface2); color: var(--muted2); transition: all 0.25s;
}
.mm-ball.filled { background: #fff; color: #111; border-color: #fff; }
.mm-ball.mm-ball-mb { background: var(--accent); color: #111; border-color: var(--accent); font-size: 16px; }
.mm-ball.mm-ball-mb.filled { background: var(--accent); color: #111; }
.mm-ball-label { display: block; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.mm-separator { width: 2px; height: 52px; background: var(--border); border-radius: 1px; align-self: center; }
.mm-btn { display: block; width: 100%; padding: 15px; border: none; border-radius: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
.mm-btn-primary { background: var(--accent); color: #111; box-shadow: 0 4px 20px var(--accent-glow); }
.mm-btn-primary:hover { background: var(--accent-light); box-shadow: 0 6px 28px rgba(212,160,23,0.45); transform: translateY(-1px); }
.mm-btn-secondary { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); font-size: 16px; }
.mm-btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.mm-multiplier-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; background: var(--surface2); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--border); }
.mm-multiplier-label { font-size: 12px; color: var(--muted); flex: 1; }
.mm-multiplier-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.mm-multiplier-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 100px; cursor: pointer; transition: background 0.2s; }
.mm-multiplier-toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; pointer-events: none; }
.mm-multiplier-toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }
.mm-result-box { border-radius: 14px; padding: 18px; border: 1px solid var(--border); background: var(--surface2); text-align: center; display: none; margin-top: 12px; }
.mm-result-box.show { display: block; }
.mm-result-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.mm-result-title.win { color: #FFD700; }
.mm-result-title.loss { color: var(--muted); }
.mm-result-prize { font-size: 32px; font-weight: 700; color: #FFD700; margin: 6px 0; }
.mm-result-detail { font-size: 13px; color: var(--muted); }
.mm-result-balls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.mm-mini-ball { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.mm-mini-ball.match { background: #FFD700; color: #111; }
.mm-mini-ball.no-match { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.mm-mini-ball.mega { background: var(--accent); color: #111; }
.mm-mini-ball.mega.match { background: #FFD700; color: #111; }
.mm-prize-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mm-prize-table th { text-align: left; padding: 8px 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); border-bottom: 1px solid var(--border); }
.mm-prize-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mm-prize-table tr:last-child td { border-bottom: none; }
.mm-prize-table td:last-child { text-align: right; color: #FFD700; font-weight: 600; }
.freq-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.freq-ball { width: 54px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.freq-ball-num { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.freq-ball-count { font-size: 9px; color: var(--muted2); font-weight: 600; }
.freq-bar { height: 3px; border-radius: 2px; margin-top: 2px; }
.freq-section-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: 0.05em; }
.freq-hot .freq-ball-num { background: rgba(212,160,23,0.18); color: var(--gold); border: 1px solid rgba(212,160,23,0.3); }
.freq-hot .freq-bar { background: var(--accent); }
.freq-cold .freq-ball-num { background: rgba(74,159,212,0.15); color: #4a9fd4; border: 1px solid rgba(74,159,212,0.25); }
.freq-cold .freq-bar { background: #4a9fd4; }
.freq-divider { height: 1px; background: var(--border); margin: 22px 0; }
.history-entry { background: var(--surface2); border-radius: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); }
.history-date { font-size: 11px; color: var(--muted2); margin-bottom: 8px; font-weight: 600; }
.history-balls { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.h-ball { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 700; background: #fff; color: #111; }
.h-ball.h-mb { background: var(--accent); color: #111; }
.h-sep { font-size: 14px; color: var(--border); }
.history-jackpot { font-size: 11px; color: var(--muted2); margin-top: 8px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-card-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); }
.stat-card-label { font-size: 10px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.stat-card.accent .stat-card-value { color: var(--accent); }
.stat-section-title { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 18px 0 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--muted); }
.stat-row-value { font-weight: 600; color: var(--text); }
.mm-update-link { display: block; text-align: center; font-size: 11px; color: var(--muted2); padding: 8px; text-decoration: none; margin-top: 4px; }
.mm-update-link:hover { color: var(--gold); }
.mm-footer { text-align: center; padding: 24px 20px 52px; margin-top: 16px; border-top: 1px solid var(--border); color: var(--muted2); font-size: 11px; line-height: 1.9; }
.mm-footer a { color: var(--gold); text-decoration: none; }
.mm-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
@media (max-width: 480px) { .mm-ball { width: 46px; height: 46px; font-size: 19px; } .mm-jackpot-amount { font-size: 34px; } }
