body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #222;
  color: #eee;
}

h1, h2 {
  text-align: center;
}

.tabs {
  text-align: center;
  margin-bottom: 10px;
}

.tabs button {
  background: #444;
  border: none;
  color: #eee;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 5px;
  font-size: 16px;
  border-radius: 5px 5px 0 0;
}

.tabs button.active {
  background: #1e90ff;
  color: white;
  font-weight: bold;
}

#ticket-buttons button {
  margin: 5px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background: #333;
  color: #eee;
  transition: background-color 0.3s;
}

#ticket-buttons button.selected,
#ticket-buttons button:hover {
  background: #1e90ff;
}

button#scratch-button, button#hire-worker {
  display: block;
  margin: 15px auto;
  padding: 12px 30px;
  font-size: 18px;
  border: none;
  background: #28a745;
  color: white;
  cursor: pointer;
  border-radius: 6px;
}

button#hire-worker {
  background: #ff7f50;
}

button#scratch-button:hover, button#hire-worker:hover {
  opacity: 0.85;
}

.worker-section {
  text-align: center;
  margin-top: 10px;
}

.event-log {
  background: #111;
  height: 200px;
  overflow-y: scroll;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-family: monospace;
}

.store-ticket {
  background: #333;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-ticket button {
  background: #1e90ff;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
}

.store-ticket button:hover {
  opacity: 0.9;
}

.jackpot-animation {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  color: gold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  z-index: 1000;
  text-shadow: 0 0 10px gold, 0 0 20px orange, 0 0 30px yellow;
}

.jackpot-animation.active {
  opacity: 1;
  animation: pop 3s ease forwards;
}

@keyframes pop {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(2) translateY(-150px);
    opacity: 0;
  }
}
