/* ---------------- Base ---------------- */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #222;
}

#ad-top, #ad-bottom {
  height: 50px;
  background-color: #eee;
  line-height: 50px;
  margin: 0;
  font-weight: bold;
}

/* ---------------- Main Content ---------------- */
#main-content {
  padding: 1rem;
}

#info {
  margin-bottom: 1rem;
}

#level-info {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

#current-number {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

#message {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1rem 0;
  color: #222;
}

/* ---------------- Slots ---------------- */
#slots {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.slot {
  width: 80px;
  height: 50px;
  border: 2px solid #333;
  margin: 0.5rem 0;
  line-height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: transform 0.1s ease, background-color 0.2s ease;
  background-color: #fff;
}

.slot.valid {
  background-color: #cfc;
}

.slot.valid:hover {
  transform: scale(1.05);
  background-color: #bfffbf;
}

.slot.disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

/* ---------------- Buttons ---------------- */
button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin: 0.2rem;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #ddd;
}

/* ---------------- Splash ---------------- */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250,250,250,0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#splash-content {
  max-width: 400px;
  text-align: center;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------------- Celebration ---------------- */
#celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sombrero {
  position: absolute;
  animation: floatUp 3s linear forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
