/* ==========================================================================
   미국 메가밀리언 (Mega Millions) 번호 추천기 - 순수 CSS 스타일시트
   ========================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-tertiary: #131e36;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 56, 0.9);
  
  --border-subtle: #1e293b;
  --border-medium: #334155;
  --border-accent: rgba(245, 158, 11, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --gold-glow: rgba(234, 179, 8, 0.35);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  
  --cyan-400: #38bdf8;
  --cyan-500: #0ea5e9;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 4px 18px 0 rgba(234, 179, 8, 0.25);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Container */
.app-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Header & Top Navigation */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  padding: 0;
}

.logo-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: var(--radius-md);
  color: #070b14;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-text span {
  color: var(--gold-400);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(13, 21, 39, 0.6);
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--gold-300);
  background: #162238;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tab-badge {
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.4rem;
  font-family: monospace;
  font-weight: 700;
}

.quick-action-btn {
  background: linear-gradient(135deg, var(--gold-400), #eab308);
  color: #070b14;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-gold);
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #fef08a, var(--gold-400));
  transform: translateY(-1px);
}

.quick-action-btn:active {
  transform: translateY(1px);
}

/* Page Hero */
.page-hero {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  font-weight: 700;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 0.2rem;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-500);
  display: inline-block;
}

/* Card base */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

/* Generator Controls Card */
.controls-card {
  margin-bottom: 1.75rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.strategy-option {
  background: rgba(13, 21, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.strategy-option:hover {
  border-color: var(--border-medium);
  background: rgba(19, 30, 54, 0.7);
}

.strategy-option.selected {
  border-color: var(--gold-500);
  background: rgba(234, 179, 8, 0.08);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.12);
}

.strat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.strat-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.strat-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border-medium);
}

.strategy-option.selected .strat-radio-dot {
  background: var(--gold-400);
  border-color: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
}

.strat-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.strat-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Secondary Controls Row */
.controls-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.game-count-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.game-count-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.segmented-control {
  display: inline-flex;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.2rem;
}

.seg-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seg-btn:hover {
  color: var(--text-main);
}

.seg-btn.active {
  background: var(--gold-400);
  color: #070b14;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.options-toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--gold-400);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.checkbox-label:hover {
  color: var(--text-main);
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold-400);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0.2rem;
}

/* Advanced Custom Drawer */
.advanced-drawer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.drawer-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.badge-fixed {
  color: var(--gold-400);
  font-weight: 600;
}
.badge-excluded {
  color: var(--rose-400);
  font-weight: 600;
}

.number-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  margin-bottom: 0.75rem;
}

.pick-num-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.75rem;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.pick-num-btn:hover {
  border-color: var(--border-medium);
  color: #fff;
}

.pick-num-btn.fixed {
  background: var(--gold-400);
  color: #070b14;
  font-weight: 800;
  border-color: var(--gold-300);
}

.pick-num-btn.excluded {
  background: rgba(244, 63, 94, 0.2);
  color: var(--rose-400);
  border-color: rgba(244, 63, 94, 0.4);
  text-decoration: line-through;
}

.mega-fixed-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Primary CTA Generate Button */
.cta-generate-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  color: #070b14;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
}

.cta-generate-btn:hover {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #ea580c 100%);
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.cta-generate-btn:active {
  transform: translateY(1px);
}

/* Results Section Header */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-title {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  font-weight: 400;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary {
  background: rgba(19, 30, 54, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(26, 42, 75, 0.9);
  border-color: var(--border-medium);
}

/* Ticket Cards List */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ticket-card {
  background: rgba(13, 21, 39, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  transition: all var(--transition-fast);
  position: relative;
}

.ticket-card:hover {
  border-color: var(--border-medium);
  background: rgba(18, 29, 52, 0.8);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  margin-bottom: 0.9rem;
}

.ticket-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--gold-400);
  font-family: monospace;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.ticket-strat-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ticket-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn.saved {
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.15);
}

/* Realistic 3D Lotto Balls */
.balls-showcase {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.white-balls-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ball-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.ball-tooltip {
  position: absolute;
  top: -22px;
  font-size: 9px;
  background: #090d16;
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.ball-wrapper:hover .ball-tooltip {
  opacity: 1;
}

.lotto-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  user-select: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.lotto-ball:hover {
  transform: scale(1.1);
  z-index: 5;
}

.lotto-ball:active {
  transform: scale(0.96);
}

/* White Ball (Glossy Pearl) */
.lotto-ball.white {
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f1f5f9 45%, #cbd5e1 80%, #94a3b8 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    inset -2px -3px 5px rgba(71, 85, 105, 0.4),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 5px 12px -2px rgba(0, 0, 0, 0.5);
}

/* Mega Ball (Rich Metallic Gold) */
.lotto-ball.mega {
  background: radial-gradient(circle at 35% 28%, #fef08a 0%, #facc15 35%, #ca8a04 75%, #854d0e 100%);
  color: #422006;
  border: 1px solid rgba(254, 240, 138, 0.9);
  box-shadow: 
    inset -2px -3px 5px rgba(113, 63, 18, 0.55),
    inset 2px 2px 4px rgba(255, 255, 255, 0.85),
    0 6px 16px -2px rgba(234, 179, 8, 0.4);
}

.ball-separator {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.15rem;
}

.megaplier-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  font-family: monospace;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Ticket Analysis Metadata */
.ticket-analysis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
}

.analysis-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.analysis-stats strong {
  color: var(--text-main);
  font-family: monospace;
}

.analysis-summary {
  color: var(--gold-400);
  font-weight: 600;
}

/* Note container in ticket */
.ticket-note-box {
  margin-top: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: rgba(234, 179, 8, 0.06);
  border: 1px dashed rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #fef08a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Simulator View */
.sim-stage-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sim-machine-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  max-width: 680px;
  margin: 1.5rem auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.sim-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sim-ball-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.slot-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: monospace;
}

.lotto-ball.lg {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

.lotto-ball.highlight {
  box-shadow: 0 0 0 3px var(--gold-400), 0 8px 20px rgba(234, 179, 8, 0.4);
}

.sim-draw-btn {
  padding: 0.85rem 2.25rem;
  background: linear-gradient(135deg, var(--gold-400), #eab308);
  color: #070b14;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}

.sim-draw-btn:hover {
  background: linear-gradient(135deg, #fef08a, var(--gold-400));
  transform: translateY(-1px);
}

.sim-match-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-match-item {
  background: rgba(13, 21, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sim-match-item.won {
  border-color: var(--gold-500);
  background: rgba(234, 179, 8, 0.08);
}

.sim-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.win-badge {
  background: var(--gold-400);
  color: #070b14;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Batch Stats Box */
.batch-results-box {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.stat-metric-card {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.metric-title {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: monospace;
  margin-top: 0.2rem;
}

/* Stats & Countdown Section */
.countdown-banner {
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.9), rgba(66, 32, 6, 0.4));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.digit-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 60px;
}

.digit-num {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: monospace;
  color: var(--gold-400);
}

.digit-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Prize Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.data-table th, .data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(9, 13, 22, 0.4);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ballBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.anim-bounce {
  animation: ballBounce 0.4s ease infinite;
}

/* Canvas Confetti */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}
