/* ── Cowboys Draw · 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);
  --brown: #8B4513;
  --brown-light: #c8833b;
  --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; }
#cd-wrap { max-width: 620px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
#cd-glow {
  position: fixed; top: -10%; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(139,69,19,0.32) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
nav#cd-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#cd-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
nav#cd-nav a:hover { color: var(--gold); }

.cd-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;
}
.cd-back:hover { color: var(--gold); }

.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; }

#cd-header { position: relative; z-index: 1; text-align: center; padding: 24px 20px 22px; }
#cd-badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown-light); border: 1px solid rgba(200,131,59,0.35); padding: 5px 16px; border-radius: 100px; margin-bottom: 14px; background: rgba(139,69,19,0.15); }
#cd-header h1 { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--text); letter-spacing: 0.02em; }
#cd-header h1 span { color: var(--gold); display: block; }
#cd-header p { margin: 8px 0 0; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cd-divider { width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--brown-light), transparent); margin: 14px auto 0; }

.tabs { position: relative; z-index: 1; display: flex; border-bottom: 1px solid var(--border); margin: 0 16px; }
.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; }

.cd-machine { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; margin-bottom: 16px; }
.cd-balls { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cd-ball {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #4a1f00, #2d1000);
  border: 2px solid rgba(200,131,59,0.4); color: #fff;
  box-shadow: 0 4px 20px rgba(139,69,19,0.4); user-select: none; transition: transform 0.15s;
}
.cd-ball.rolling { animation: cdspin 0.08s linear infinite; }
@keyframes cdspin { 0%{transform:scale(0.95)} 50%{transform:scale(1.05)} 100%{transform:scale(0.95)} }
.cd-ball.landed { animation: cdpop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes cdpop { 0%{transform:scale(0.8)} 100%{transform:scale(1)} }
/* Cowboy Ball (special 6th ball) */
.cd-cowboy-wrap { display: flex; justify-content: center; margin-bottom: 24px; gap: 8px; align-items: center; }
.cd-cowboy-label { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.cd-ball-cowboy {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #6b2a00, #3d1600);
  border: 2px solid rgba(212,160,23,0.5); color: var(--gold);
  box-shadow: 0 4px 20px rgba(212,160,23,0.2); user-select: none; transition: transform 0.15s;
}
.cd-ball-cowboy.rolling { animation: cdspin 0.08s linear infinite; }
.cd-ball-cowboy.landed { animation: cdpop 0.3s cubic-bezier(0.34,1.56,0.64,1); }

.cd-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cd-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; }
.cd-btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0a0800; box-shadow: 0 4px 20px rgba(212,160,23,0.35); }
.cd-btn-primary:hover { box-shadow: 0 6px 30px rgba(212,160,23,0.55); transform: translateY(-1px); }
.cd-btn-primary:active { transform: scale(0.97); }
.cd-btn-secondary { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.cd-btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.cd-result { background: var(--surface2); border: 1px solid var(--border-gold); border-radius: 12px; padding: 14px 16px; margin-top: 14px; display: none; text-align: center; }
.cd-result.show { display: block; }
.cd-result-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cd-result-main { font-family: var(--font-display); font-size: 20px; color: var(--brown-light); letter-spacing: 0.1em; }
.cd-result-cowboy { font-family: var(--font-display); font-size: 16px; color: var(--gold); margin-top: 4px; }
.cd-result-matches { font-size: 12px; color: #4ade80; margin-top: 6px; font-weight: 600; }

.cd-section-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); margin-bottom: 14px; }
.cd-draw-list { display: flex; flex-direction: column; gap: 10px; }
.cd-draw-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.cd-draw-date { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 8px; }
.cd-draw-nums { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cd-draw-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #4a1f00, #2d1000); border: 1.5px solid rgba(200,131,59,0.3); color: #fff; }
.cd-draw-cowboy { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #6b2a00, #3d1600); border: 1.5px solid rgba(212,160,23,0.5); color: var(--gold); }
.cd-draw-sep { font-size: 14px; color: var(--muted); padding: 0 2px; }

.cd-freq-list { display: flex; flex-direction: column; gap: 8px; }
.cd-freq-row { display: flex; align-items: center; gap: 10px; }
.cd-freq-num { 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: linear-gradient(135deg, #4a1f00, #2d1000); border: 1.5px solid rgba(200,131,59,0.25); color: #fff; flex-shrink: 0; font-size: 13px; }
.cd-freq-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.cd-freq-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--brown), var(--brown-light)); transition: width 0.6s ease; }
.cd-freq-count { font-size: 11px; color: var(--muted); font-weight: 600; width: 28px; text-align: right; flex-shrink: 0; }
.cd-hot { color: #f87171; } .cd-cold { color: var(--brown-light); }

.cd-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.cd-stat-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cd-stat-val { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--gold); line-height: 1; }
.cd-stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cd-no-data { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }

#cd-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; }
#cd-footer a { color: var(--gold); text-decoration: none; }
#cd-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
