:root {
  --bg: #0e1324;
  --panel: #151a33;
  --text: #e6e9f2;
  --muted: #a6a9c3;
  --accent: #79ffa8;
  --accent2: #8dd7ff;
  --gold: #ffd369;
  --danger: #ff6b6b;
  --tab: #1b2045;
  --border: #2a2e58;
}

* { box-sizing: border-box; }

body { 
  margin: 0; 
  font-family: ui-monospace, Menlo, Consolas, monospace; 
  background: radial-gradient(1200px 600px at 50% 0%, #14183a, var(--bg)); 
  color: var(--text); 
}

header { 
  padding: 16px 20px; 
  border-bottom: 1px solid #262a52; 
  background: #121431d8; 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  position: relative;
}

header h1 { 
  margin: 0; 
  font-size: 20px; 
}

header .sub { 
  color: var(--muted); 
  font-size: 12px; 
}

/* AFK Indicator */
#afkIndicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  animation: pulse 1.5s infinite;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 100;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive layout */
main {
  display: grid;
  grid-template-columns: 2.3fr 0.8fr;
  gap: 16px; 
  padding: 16px;
  height: calc(100vh - 100px);
}

@media (max-width: 1024px) {
  main { 
    grid-template-columns: 1fr; 
    height: auto; 
    min-height: calc(100vh - 160px); 
  }
  #afkIndicator {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block !important;
    margin-top: 8px;
  }
}

section {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 12px;
  height: 100%;
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
}

h2 { 
  margin: 0 0 10px; 
  font-size: 16px; 
  color: var(--accent2); 
}

.stat { 
  display: flex; 
  justify-content: space-between; 
  margin: 6px 0; 
  font-size: 13px; 
}

.resource { 
  font-weight: 700; 
  color: var(--accent); 
}

.value { 
  font-weight: 700; 
  color: var(--accent2); 
}

.btn {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 10px; 
  border: 1px solid #2b305e; 
  border-radius: 8px;
  background: #1a1e3e; 
  color: var(--text); 
  cursor: pointer; 
  font-weight: 600; 
  transition: 0.15s ease background, transform 0.1s ease;
  margin-bottom: 8px;
  font-size: 12px;
  min-height: 36px;
}

.btn:hover { 
  background: #212658; 
  transform: translateY(-1px); 
}

.btn:active { 
  transform: translateY(0); 
}

.btn:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none !important; 
}

.btn.red { 
  background: #5a1a1a; 
  border-color: #8a2a2a; 
}

.btn.red:hover { 
  background: #7a2a2a; 
}

/* Toggle button styling */
.toggle-ui {
  display: none;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  min-width: 60px;
  justify-content: center;
}

.toggle-ui.active {
  display: inline-flex;
}

.toggle-ui.toggle-on {
  background: #1a4d2e !important;
  border-color: #2b8a45 !important;
  color: #a8ffc3 !important;
}

.toggle-ui.toggle-off {
  background: #4d1a1a !important;
  border-color: #8a2b2b !important;
  color: #ffa8a8 !important;
}

.buy-btn.hidden {
  display: none !important;
}

/* Purchase count styling */
.purchase-count {
  font-size: 11px;
  color: var(--gold);
  margin-left: 4px;
  font-weight: bold;
}

.divider { 
  height: 1px; 
  background: var(--border); 
  margin: 8px 0; 
}

.tabs { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 8px; 
  flex-wrap: wrap; 
}

.tab { 
  padding: 6px 10px; 
  border-radius: 8px; 
  background: var(--tab); 
  border: 1px solid #2b305e; 
  cursor: pointer; 
  font-weight: 700; 
  color: #c9cffb; 
  min-height: 36px; 
  display: flex; 
  align-items: center; 
}

.tab.active { 
  background: #222861; 
  border-color: #3a4194; 
  color: #fff; 
}

.panel { 
  display: none; 
  flex: 1; 
  overflow: hidden; 
}

.panel.active { 
  display: flex; 
  flex-direction: column; 
}

.scroll { 
  overflow: auto; 
}

.ballset { 
  display: grid; 
  grid-template-columns: repeat(7, 42px); 
  gap: 6px; 
}

.ball {
  width: 42px; 
  height: 42px; 
  border-radius: 999px; 
  display: flex; /* Changed from grid to flex for better centering */
  align-items: center; 
  justify-content: center;
  font-weight: 800;
  background: #0f1430; 
  border: 2px solid #3a4194; 
  color: #cfd3ff;
  transition: transform 0.2s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ball:hover { 
  transform: scale(1.05); 
}

.ball.win { 
  background: #20300f; 
  border-color: #75d77a; 
  color: #caffc7; 
}

.ball.bonus { 
  border-color: #ffaf3a; 
  color: #ffd9a6; 
}

.ball.hit { 
  background: #132046; 
  border-color: #59a3ff; 
  color: #aee1ff; 
}

.ball.pulse { 
  animation: pulse 0.5s ease; 
}

.ball.spinning::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #3a4194, #8dd7ff, #3a4194);
  animation: spin 0.3s linear infinite;
}

.ball.spinning .ball-number {
  background: rgba(14, 19, 36, 0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tickets { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 8px; 
  align-content: start; 
}

.ticket { 
  background: #0e1130; 
  border: 1px dashed #4950a3; 
  border-radius: 10px; 
  padding: 10px; 
  box-shadow: inset 0 0 0 2px #10133a; 
  position: relative; 
  padding-top: 30px; 
}

.ticket h3 { 
  margin: 0 0 6px; 
  font-size: 14px; 
  color: var(--gold); 
}

.ticket .meta { 
  font-size: 11px; 
  color: var(--muted); 
  margin-bottom: 6px; 
}

.ticket.auto { 
  border: 1px solid #4950a3; 
}

.ticket.expired { 
  opacity: 0.6; 
  border-color: #8a2a2a; 
}

.payout { 
  margin-top: 8px; 
  padding: 6px; 
  border-radius: 6px; 
  background: #12163a; 
  border: 1px solid #2c3474; 
  color: var(--muted); 
  font-size: 12px; 
}

.list { 
  flex: 1; 
  overflow: auto; 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  padding: 8px; 
  background: #101537; 
}

.list .item { 
  font-size: 12px; 
  color: #cfd3ff; 
  margin-bottom: 6px; 
  padding: 4px; 
  border-radius: 4px; 
}

.list .item:nth-child(even) { 
  background: rgba(255,255,255,0.03); 
}

footer { 
  padding: 12px 16px; 
  color: var(--muted); 
  font-size: 12px; 
  text-align: center; 
}

.timer { 
  font-size: 13px; 
  color: var(--muted); 
}

/* Manual pick modal */
.modal {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.6); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999;
}

.modal.active { 
  display: flex; 
}

.modal-card {
  width: min(620px, 92vw); 
  max-height: 86vh; 
  overflow: hidden;
  background: var(--panel); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  padding: 16px;
  position: relative;
}

.grid49 { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  gap: 6px; 
}

.pick { 
  padding: 8px; 
  text-align: center; 
  border: 1px solid #2c3474; 
  border-radius: 6px; 
  cursor: pointer; 
  user-select: none; 
  transition: all 0.2s ease;
  min-height: 44px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.pick:hover { 
  background: #1a2255; 
}

.pick.selected { 
  background: #1a2255; 
  border-color: #4a54a8; 
  color: #e8ebff; 
  font-weight: 700; 
}

/* Upgrade styling */
.upgrade-container {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(21, 30, 62, 0.1);
  position: relative;
}

.upgrade-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  gap: 10px;
}

.upgrade-desc {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.upgrade-group {
  margin-bottom: 16px;
}

.upgrade-group-title {
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
  font-size: 14px;
}

.upgrade-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

/* New: Compact Latest Draw Container */
.latest-draw-container {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(21, 30, 62, 0.2);
}

.latest-draw-container h2 {
  text-align: center;
  margin-bottom: 12px;
}

.draw-split {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.draw-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.draw-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px;
  background: rgba(21, 30, 62, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.draw-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timer-large {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.draw-status {
  font-size: 12px;
  text-align: center;
  color: var(--accent);
  min-height: 16px;
  margin-top: 4px;
}

.timer-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Make balls larger to match timer size */
.draw-balls {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 0;
}

.draw-ball {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: #0f1430;
  border: 2px solid #3a4194;
  color: #cfd3ff;
  position: relative;
  overflow: hidden;
}

.draw-ball.win { 
  background: #20300f; 
  border-color: #75d77a; 
  color: #caffc7; 
}

.draw-ball.bonus { 
  border-color: #ffaf3a; 
  color: #ffd9a6; 
}

/* Spinning number animation */
.draw-ball.spinning .ball-number {
  animation: numberSpin 0.1s linear infinite;
}

/* When ball is being drawn (current ball) */
.draw-ball.spinning.current {
  box-shadow: 0 0 15px var(--accent);
}

/* Slow down animation for the current ball being drawn */
.draw-ball.spinning.current .ball-number {
  animation: numberSpin 0.3s linear infinite;
}

@keyframes numberSpin {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.draw-ball.spinning::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #3a4194, #8dd7ff, #3a4194);
  animation: spin 0.3s linear infinite;
}

.draw-ball.spinning .ball-number {
  background: rgba(14, 19, 36, 0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Add this new style for past draw balls - centered numbers */
.past-draw-line .ball {
  width: 24px;
  height: 24px;
  font-size: 11px;
  margin: 0 2px;
  display: inline-flex; /* Changed to inline-flex for inline display */
  vertical-align: middle;
}

@media (max-width: 700px) {
  .upgrade-columns { 
    grid-template-columns: 1fr; 
  }
  .ballset { 
    grid-template-columns: repeat(4, 42px); 
  }
  .grid49 { 
    grid-template-columns: repeat(5, 1fr); 
  }
  .tickets { 
    grid-template-columns: 1fr; 
  }
  .ball { 
    width: 36px; 
    height: 36px; 
    font-size: 14px; 
  }
  .btn { 
    padding: 12px 16px; 
    min-height: 44px; 
  }
  .draw-split {
    flex-direction: column;
    gap: 12px;
    min-height: auto;
  }
  .draw-right {
    width: 100%;
    min-width: auto;
    padding: 12px;
  }
  .draw-balls {
    grid-template-columns: repeat(4, 42px);
    justify-content: center;
  }
  .timer-large {
    font-size: 20px;
  }
}

/* Helper for full width buttons in menu */
.menu-btns .btn { 
  width: 100%; 
  justify-content: center; 
}

.buy-btn { 
  display: inline-flex; 
}

.buy-btn.hidden { 
  display: none; 
}

/* Stats panel */
.stats-container {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(21, 30, 62, 0.1);
}

/* Multi-draw indicator */
.multidraw-indicator {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: bold;
}

/* Warning/error messages */
.warning {
  color: var(--danger);
  font-size: 11px;
  margin-top: 4px;
}

/* Loading overlay */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 19, 36, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-size: 18px;
  color: var(--accent);
}

/* Multi-draw info */
.multidraw-info {
  background: rgba(255, 211, 105, 0.1);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

/* Ticket close button */
.ticket-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.ticket-close:hover {
  opacity: 1;
}

/* Achievement styling */
.achievement {
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievement-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bg);
}

.achievement.locked .achievement-icon {
  background: var(--muted);
  color: var(--bg);
}

.achievement-info {
  flex: 1;
}

.achievement-title {
  font-weight: 600;
  font-size: 12px;
}

.achievement.locked .achievement-title {
  color: var(--muted);
}

.achievement-desc {
  font-size: 10px;
  color: var(--muted);
}

.achievement-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.achievement-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Lottery draw controls */
.draw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.ball-speed-info {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .ticket-close {
    width: 18px;
    height: 18px;
    font-size: 14px;
    top: 4px;
    right: 4px;
  }
  
  .ticket {
    padding-top: 28px;
  }
  
  .draw-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Disabled button styling */
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #2a2e58;
  border-color: #3a4194;
}

.btn.disabled:hover {
  transform: none;
  background: #2a2e58;
}

/* Ensure modals are visible */
.modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.6) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
}

.modal.active {
  display: flex !important;
}

/* Upgrade container improvements */
.upgrade-container {
  position: relative;
}

.upgrade-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Event log improvements */
#eventLog {
  font-size: 12px;
  line-height: 1.4;
}

#eventLog .item {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--border);
  transition: all 0.2s ease;
}

#eventLog .item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent2);
}

/* Actions panel improvements */
#panel-actions .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

#panel-actions h2 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--gold);
}

#panel-actions h2:first-child {
  margin-top: 0;
}

/* Fix for button stacking in upgrades */
.upgrade-title > * {
  flex-shrink: 0;
}

/* Ensure toggle buttons are properly sized */
.toggle-ui {
  min-width: 60px;
  justify-content: center;
}

/* Additional modal styling */
.modal-card input[type="text"] {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}

.modal-card input[type="text"]:focus {
  outline: none;
  border-color: var(--accent2);
}

.modal-card input[type="number"] {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}

/* Stats container in modals */
.modal-card .stats-container {
  padding: 10px;
  background: rgba(21, 30, 62, 0.3);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.modal-card .stat {
  margin: 4px 0;
  font-size: 12px;
}

.modal-card h3 {
  color: var(--gold);
  margin: 10px 0 5px 0;
  font-size: 14px;
}

/* Special styling for game over modals */
#bankruptcyModal h2,
#deathModal h2 {
  text-align: center;
  margin-bottom: 10px;
}

#bankruptcyModal p,
#deathModal p {
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Offline progress modal specific styling */
#offlineProgressModal .stat {
  margin: 8px 0;
}

#offlineProgressModal h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

#offlineProgressDetails {
  font-size: 12px;
  line-height: 1.5;
}

#offlineProgressDetails .progress-item {
  margin: 6px 0;
  padding: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

#offlineProgressDetails .progress-item.good {
  color: var(--accent);
}

#offlineProgressDetails .progress-item.neutral {
  color: var(--muted);
}

#offlineProgressDetails .progress-item.bad {
  color: var(--danger);
}

/* Improve event log item styling with emoji support */
#eventLog .item {
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--border);
  transition: all 0.2s ease;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#eventLog .item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent2);
}

/* Timestamp styling */
#eventLog .timestamp {
  color: var(--muted);
  font-size: 10px;
  min-width: 50px;
  opacity: 0.7;
}

#eventLog .message {
  flex: 1;
}

/* Actions panel improvements */
#panel-actions .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

#panel-actions h2 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--gold);
}

#panel-actions h2:first-child {
  margin-top: 0;
}

/* Fix for button stacking in upgrades */
.upgrade-title > * {
  flex-shrink: 0;
}

/* Additional modal styling */
.modal-card input[type="text"] {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}

.modal-card input[type="text"]:focus {
  outline: none;
  border-color: var(--accent2);
}

.modal-card input[type="number"] {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}

/* Stats container in modals */
.modal-card .stats-container {
  padding: 10px;
  background: rgba(21, 30, 62, 0.3);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.modal-card .stat {
  margin: 4px 0;
  font-size: 12px;
}

.modal-card h3 {
  color: var(--gold);
  margin: 10px 0 5px 0;
  font-size: 14px;
}

/* Remove the old work log panel if you want to hide it */
#workLog {
  display: none;
}

/* Child move-out modal */
#childMoveOutModal .modal-card {
  max-width: 500px;
}

#childMoveOutMessage {
  line-height: 1.5;
  margin: 10px 0;
}

/* Death warning modal */
#deathWarningModal .modal-card {
  max-width: 500px;
}

#deathWarningMessage {
  line-height: 1.5;
  margin: 10px 0;
  color: var(--accent2);
}

/* Immortality upgrade styling */
.immortality-upgrade {
  border: 2px solid #ffd369;
  background: rgba(255, 211, 105, 0.1);
  position: relative;
}

.immortality-upgrade:before {
  content: '✨';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 16px;
}

.immortality-info {
  background: rgba(121, 255, 168, 0.1);
  border: 1px solid #79ffa8;
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #79ffa8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Achievement icon updates */
.achievement-icon {
  font-size: 12px;
}

.achievement.locked .achievement-icon {
  background: var(--muted);
  color: var(--bg);
}

.past-draw-line {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Fix for past draw line balls to have consistent styling with other balls */
.past-draw-line .ball.win {
  background: #20300f;
  border-color: #75d77a;
  color: #caffc7;
}

.past-draw-line .ball.bonus {
  border-color: #ffaf3a;
  color: #ffd9a6;
}

/* Ensure all balls have the same flex centering */
.ballset .ball,
.ticket .ballset .ball,
.draw-balls .draw-ball,
.past-draw-line .ball {
  display: flex;
  align-items: center;
  justify-content: center;
}