* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7ff;
  background: #090b14;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(91, 79, 255, .25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(0, 214, 255, .16), transparent 35%),
    #090b14;
}

.game {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: rgba(17, 20, 34, .88);
  box-shadow: 0 25px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(110, 99, 255, .16);
  color: #a9a1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1;
}

.subtitle {
  margin: 0 0 30px;
  color: #aeb4c7;
  font-size: 16px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #dce0ed;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  padding: 15px 16px;
  outline: none;
  color: #fff;
  background: #0d1020;
  font-size: 16px;
  transition: .2s;
}

input:focus {
  border-color: #7b71ff;
  box-shadow: 0 0 0 4px rgba(123,113,255,.12);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #7168ff, #4e8cff);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s, filter .18s;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.result,
.message,
.info {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.result {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.result span,
.info li,
.message p {
  color: #aeb4c7;
  line-height: 1.55;
}

.result.correct {
  border-color: rgba(51, 220, 135, .45);
  background: rgba(51, 220, 135, .08);
}

.result.correct strong {
  color: #5ff0a2;
}

.result.wrong {
  border-color: rgba(255, 90, 115, .4);
  background: rgba(255, 90, 115, .07);
}

.result.wrong strong {
  color: #ff788c;
}

.message h2,
.info h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.message p {
  margin: 0;
}

.info ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

footer {
  margin-top: 22px;
  text-align: center;
  color: #858ca1;
  font-size: 13px;
  line-height: 1.5;
}

.shake {
  animation: shake .45s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@media (max-width: 600px) {
  body {
    padding: 12px;
    align-items: flex-start;
  }

  .game {
    margin-top: 8px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .input-row {
    flex-direction: column;
  }

  button {
    min-height: 50px;
  }
}
