@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap");

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  color: #1f2d3a;
}
button {
  font: inherit;
  cursor: pointer;
}
.send {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}
.send input {
  flex: 1 1 180px;
  padding: 12px 14px;
  border: 2px solid #e3e8ee;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
}
.send button {
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #2b6cd1;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.send button:disabled {
  opacity: 0.6;
}
.send-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: #5b6b7a;
}

body {
  background: #eaf7ef;
  padding: 16px;
  text-align: center;
}
main {
  max-width: 640px;
  margin: 0 auto;
}
h1 {
  margin: 8px 0 4px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: 16px;
  background: #2f8a57;
  color: transparent;
  font-size: clamp(14px, 3.6vw, 22px);
  font-weight: 800;
  padding: 6px;
  transition: transform 0.2s, background 0.2s;
}
.tile.open,
.tile.done {
  background: #fff;
  color: #1f2d3a;
  transform: scale(1.03);
}
.tile.done {
  background: #c9f0d8;
}
.again {
  margin-top: 20px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  background: #1f2d3a;
  color: #fff;
  font-weight: 800;
}
