:root {
  --bg-top: #f4f7ff;
  --bg-bottom: #e9f5ff;
  --card: #ffffff;
  --ink: #1f2a44;
  --muted: #53607d;
  --primary: #2f67ff;
  --primary-dark: #1f4cd0;
  --success: #087f5b;
  --danger: #d9480f;
  --border: #dbe5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(980px, 94vw);
  margin: 1.5rem auto;
  flex: 1;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(38, 78, 204, 0.14);
  padding: clamp(1rem, 2vw, 2rem);
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

h1 {
  margin: 0.3rem 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.subtext {
  margin: 0 auto 1rem;
  max-width: 100%;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.97rem;
}

.hero-image {
  width: min(760px, 100%);
  border-radius: 16px;
  border: 2px solid #e6ecff;
  display: block;
  margin: 0 auto 1rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.controls label {
  grid-column: 1 / -1;
  font-weight: 800;
}

select,
input,
button {
  font: inherit;
}

select,
input {
  width: 100%;
  border: 1px solid #c6d5ff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fcfdff;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled,
input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.status-box {
  background: #f6f9ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem;
  text-align: center;
}

.status-box span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-box strong {
  font-size: 1.35rem;
}

.play-area {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #fbfdff;
}

.prompt-label {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.definition {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  white-space: pre-line;
}

#answerForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.feedback {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--muted);
  min-height: 1.5rem;
}

.feedback.good {
  color: var(--success);
}

.feedback.bad {
  color: var(--danger);
}

.footer {
  text-align: center;
  font-weight: 700;
  color: #354261;
  padding: 0.4rem 0 1rem;
}

@media (max-width: 720px) {
  .controls,
  #answerForm,
  .status-row {
    grid-template-columns: 1fr;
  }

  .subtext {
    white-space: normal;
  }

  button {
    width: 100%;
  }
}
