* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e8eaed;
  display: grid;
  place-items: center;
}

main { width: min(92vw, 640px); padding: 2rem 0; }

.screen { text-align: center; }
[hidden] { display: none !important; }

h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 .5rem; }
.sub { color: #9aa0a6; margin: 0 0 2rem; }

form { display: flex; gap: .5rem; justify-content: center; }

input {
  flex: 1;
  max-width: 320px;
  font-size: 1.25rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid #3c4043;
  background: #1a1d23;
  color: inherit;
  letter-spacing: .1em;
}
input:focus { outline: 2px solid #34a853; border-color: transparent; }

button {
  font-size: 1.1rem;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: #34a853;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #2d9249; }

.answer {
  background: #1db954;
  color: #fff;
  font-weight: 900;
  font-size: clamp(5rem, 28vw, 12rem);
  line-height: 1;
  padding: 2rem 1rem;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(29, 185, 84, .45);
  margin-bottom: 1.5rem;
}

details {
  background: #1a1d23;
  border: 1px solid #3c4043;
  border-radius: 12px;
  padding: .9rem 1.2rem;
  text-align: left;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8rem 0 0; color: #c4c7c5; }

button.link {
  background: none;
  color: #9aa0a6;
  font-size: .95rem;
  font-weight: 400;
  margin-top: 1.5rem;
  text-decoration: underline;
}
button.link:hover { background: none; color: #e8eaed; }
