:root {
  --bmd-orange: #E9A23B;
  --bmd-yellow: #F6D77A;
  --bmd-sage: #C7D8B6;
  --bmd-green: #6E8F5A;
  --ink: #1F1F1F;
  --soft: #F8F6EF;
  --line: #D7D2C5;
  --white: #FFFFFF;
  --danger: #B23A35;
  --success: #3F7A45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Poppins, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, var(--bmd-yellow), var(--bmd-sage));
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin: 0;
  line-height: 1;
}

h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.zinger {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 18px 0 8px;
}

.directions {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.science-card,
.completion {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  background: var(--soft);
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.reminder-grid div {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.reminder-grid strong,
.reminder-grid span {
  display: block;
}

.reminder-grid span {
  margin-top: 6px;
}

.workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.cards-panel,
.drop-zone {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--white);
}

.card-bank {
  min-height: 250px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.genotype-card {
  user-select: none;
  cursor: grab;
  border: 3px solid var(--ink);
  background: var(--bmd-yellow);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 70px;
  text-align: center;
  touch-action: none;
}

.genotype-card:active {
  cursor: grabbing;
}

.genotype-card.dragging {
  opacity: 0.5;
}

.drop-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.drop-zone {
  min-height: 320px;
}

.drop-zone p {
  margin-top: 0;
}

.drop-area {
  min-height: 220px;
  border: 3px dashed var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.drop-zone.over .drop-area {
  border-color: var(--bmd-green);
  background: #F1F7EC;
}

.actions {
  margin: 22px 0;
}

button {
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--bmd-orange);
  color: var(--ink);
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-right: 10px;
}

button:hover,
button:focus {
  filter: brightness(0.97);
}

button.secondary {
  background: var(--white);
}

.feedback {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 12px;
}

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

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

.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.choice input {
  width: 22px;
  height: 22px;
}

.hidden {
  display: none;
}

.sentence {
  font-size: 1.2rem;
  line-height: 1.6;
}

.sentence span {
  font-weight: 900;
  background: var(--bmd-yellow);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .drop-panel,
  .reminder-grid {
    grid-template-columns: 1fr;
  }

  .choices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blank-sentence .blank {
  display: inline-block;
  width: 170px;
  height: 1.1em;
  border-bottom: 4px solid var(--ink);
  background: transparent;
  border-radius: 0;
  padding: 0;
  vertical-align: baseline;
}

.blank-sentence .blank.short {
  width: 120px;
}

.word-bank {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 12px;
}

.completion-banner {
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--bmd-sage);
  padding: 20px;
  margin-bottom: 22px;
  text-align: center;
}

.complete-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bmd-yellow);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.completion-banner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 4px 0 8px;
}

.screenshot-note {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0;
}
