* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.game-container {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0ea5e9;
}

.subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin: 0 0 0.75rem;
}

.pick-area,
.draw-area,
.actions,
.result-area {
  margin-bottom: 1.5rem;
}

.ticket-display {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ticket-display .placeholder {
  opacity: 0.5;
  font-size: 2rem;
}

.ticket-display .ticket-num {
  color: #0ea5e9;
  padding: 0.5rem 1rem;
  border: 2px solid #0ea5e9;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.15);
}

.ticket-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.hint {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
  margin: 0;
}

.winning-ticket {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.winning-ticket.revealed {
  color: #0ea5e9;
  border-style: solid;
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.15);
  animation: pop 0.4s ease;
}

.winning-ticket.win {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
}

@keyframes pop {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pick {
  background: rgba(14, 165, 233, 0.3);
  color: #fff;
  border: 2px solid #0ea5e9;
}

.btn-pick:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.5);
}

.btn-pick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-play {
  background: #0ea5e9;
  color: #fff;
}

.btn-play:hover:not(:disabled) {
  background: #38bdf8;
  transform: translateY(-1px);
}

.btn-play:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.15);
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.25);
}

.result-area {
  min-height: 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.result-area.win {
  color: #4ade80;
}

.result-area.lose {
  color: #94a3b8;
}
