* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 640px;
  width: 100%;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #eb0a1e;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.card {
  width: 72px;
  height: 100px;
  border-radius: 10px;
  border: 2px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #eb0a1e;
}

.card.selected {
  background: #eb0a1e;
  border-color: #eb0a1e;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(235, 10, 30, 0.4);
}

.result {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.result strong {
  color: #eb0a1e;
  font-size: 1.5rem;
}

.reset-btn {
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  border: none;
  background: #334155;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.reset-btn:hover {
  background: #475569;
}

.hidden {
  display: none;
}
