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

body {
  background-color: #fff;
  font-family: 'Segoe UI', sans-serif;
  color: #000;
}

.container {
  text-align: center;
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ribbon {
  display: block;
  font-size: 3rem;
  margin-bottom: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.ribbon:hover {
  transform: scale(1.15);
}

h1 {
  font-size: 2rem;
  color: #e60073;
  background: linear-gradient(to right, #e60073, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  white-space: normal;
}

.subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

input[type="number"] {
  padding: 0.75rem;
  font-size: 1.25rem;
  width: 120px;
  border: 2px solid #e60073;
  border-radius: 10px;
  text-align: center;
}

button {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #e60073;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(230, 0, 115, 0.4);
}

button:hover {
  background-color: #cc0066;
  transform: scale(1.05);
}

.message {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
  min-height: 1.5rem;
}

.attempts {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .ribbon {
    font-size: 2.5rem;
  }

  input[type="number"] {
    width: 100px;
    font-size: 1.1rem;
  }

  button {
    width: 100%;
    max-width: 280px;
  }
}
