/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #9face6);
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  margin-bottom: 10px;
}

.hud {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.timer-toggle {
  font-size: 14px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Tarjeta principal */
.card {
  background: #ffffffdd;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.riddle {
  font-size: 20px;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.controls input {
  padding: 10px;
  flex: 1;
  border-radius: 8px;
  border: 2px solid #3498db;
}

.controls button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.controls button:hover {
  background: #2980b9;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #2ecc71;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.actions button:hover {
  background: #27ae60;
}

.feedback {
  font-size: 18px;
  font-weight: bold;
  min-height: 24px;
  margin-top: 10px;
}

footer {
  margin-top: 20px;
}

.secondary {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #e67e22;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.secondary:hover {
  background: #d35400;
}
