/* =============================================
   Wisconsin All or Nothing — aon-styles.css
   Extracted from index.html inline styles
   ============================================= */

:root {
  --red: #c8102e;
  --gold: #f5c518;
  --dark: #0d0d0f;
  --surface: #16181c;
  --card: #1e2128;
  --border: #2e3240;
  --text: #e8eaf0;
  --muted: #7a8099;
  --green: #22c55e;
  --amber: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #0d0d0f 0%, #1a0408 50%, #0d0d0f 100%);
  border-bottom: 2px solid var(--red);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(200,16,46,0.25);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  background: var(--red);
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 3px;
}

.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: white;
  line-height: 1;
}

.logo-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1;
}

.draw-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.draw-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* MAIN */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* PRIZE STRIP */
.prize-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.prize-cell {
  background: var(--card);
  padding: 14px 12px;
  text-align: center;
  transition: background 0.2s;
}

.prize-cell.highlight {
  background: linear-gradient(135deg, #1e0a0f, #2a0f18);
}

.prize-cell .matches {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.prize-cell .amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}

.prize-cell.highlight .amount { color: var(--gold); }

.prize-cell .odds {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  font-family: 'DM Mono', monospace;
}

/* SECTION LABELS */
.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* GRID */
.number-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.num-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.num-btn:hover:not(.selected):not(.drawn) {
  border-color: var(--red);
  color: var(--text);
  background: #1e0a0f;
}

.num-btn.selected {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 0 12px rgba(200,16,46,0.4);
  transform: scale(1.05);
}

.num-btn.drawn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 700;
}

.num-btn.match {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 0 14px rgba(34,197,94,0.5);
  animation: matchPop 0.4s ease;
}

@keyframes matchPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.05); }
}

/* COUNTER */
.pick-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pick-count {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}

.pip.filled {
  background: var(--red);
  transform: scale(1.15);
}

.pick-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  flex: 1;
  min-width: 120px;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 20px rgba(200,16,46,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: #e0122f;
  box-shadow: 0 6px 24px rgba(200,16,46,0.5);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* RESULT CARD */
.result-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.result-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.result-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-header.win-top {
  background: linear-gradient(135deg, #0a2012, #0f3a1e);
  border-bottom: 1px solid var(--green);
}

.result-header.win-some {
  background: linear-gradient(135deg, #1a1200, #2a1e00);
  border-bottom: 1px solid var(--amber);
}

.result-header.lose {
  background: linear-gradient(135deg, #120a0a, #1e0d0d);
  border-bottom: 1px solid #3a2020;
}

.result-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
}

.result-title.green { color: var(--green); }
.result-title.amber { color: var(--amber); }
.result-title.red   { color: var(--red); }

.result-prize {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--gold);
}

.result-body {
  padding: 20px 24px;
  background: var(--card);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-box { flex: 1; min-width: 100px; }

.stat-box .label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-box .value {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

/* DRAWN NUMBERS DISPLAY */
.drawn-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.drawn-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawn-num.show {
  opacity: 1;
  transform: scale(1);
}

/* HISTORY */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.history-nums {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.h-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-num.matched { background: var(--green); color: white; }
.h-num.missed  { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.history-result {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.history-result.won  { color: var(--gold); }
.history-result.lost { color: var(--muted); }

/* TABS */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  user-select: none;
}

.tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* INFO BANNER */
.info-banner {
  background: linear-gradient(135deg, #1a0f02, #261600);
  border: 1px solid #3d2900;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.info-text .title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 1px;
}

.info-text .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* DRAW ANIMATION */
.draw-btn-wrap { position: relative; }

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 8px 8px;
  width: 0%;
  transition: width 0.1s linear;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .number-grid { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .prize-strip { grid-template-columns: repeat(2, 1fr); }
  .result-prize { font-size: 28px; }
  .num-btn { font-size: 13px; }
}

@media (max-width: 400px) {
  .number-grid { grid-template-columns: repeat(6, 1fr); }
}

/* CONFETTI */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall linear forwards;
  z-index: 9999;
}

@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}

.empty-icon { font-size: 36px; margin-bottom: 12px; }
