/* Styles for the second set of Learning Lab games. Linked only by those pages. */

.swatch {
  width: min(168px, 46vw);
  aspect-ratio: 1;
  margin: 8px auto 12px;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
}

.prompt.phrase {
  font-size: clamp(1.35rem, 4.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.fact {
  text-align: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 10px auto 0;
  line-height: 1.45;
  max-width: 40rem;
}

.textbtn, .bin, .food, .slot, .mini {
  border: 2px solid var(--line);
  color: var(--ink);
}

.chart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.chart li {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 auto 10px;
  max-width: 520px;
}

.seasons span {
  flex: 1 1 70px;
  text-align: center;
  font-weight: 800;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 4px;
  background: #fff;
}

.seasons span:nth-child(1) { background: #d8f3c4; }
.seasons span:nth-child(2) { background: #ffe08a; }
.seasons span:nth-child(3) { background: #ffd0a8; }
.seasons span:nth-child(4) { background: #d5e4f7; }

.cycle { max-width: 520px; margin: 0 auto 8px; }
.cycle svg { width: 100%; height: auto; display: block; }

.item-card {
  text-align: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
  padding: 8px 12px 12px;
  margin: 0 auto 12px;
  max-width: 420px;
}

.bins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bin {
  min-height: 52px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.bin.paper { background: #f6e7b2; }
.bin.plastic { background: #d7ecff; }
.bin.glass { background: #d9f6e8; }
.bin.metal { background: #eceff3; }
.bin.compost { background: #c9f0a4; }
.bin.trash { background: #e7e0d4; }
.bin.special { background: #ffd0c2; }
.bin.good { background: var(--good-bg); }
.bin.bad { background: var(--bad-bg); }
.bin:disabled:not(.good):not(.bad) { opacity: 0.55; }
.bin:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }

.plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(380px, 100%);
  margin: 0 auto 12px;
  background: #f4f8fc;
  border: 2px solid var(--line);
  border-radius: 50%;
  padding: 28px 18px;
  box-shadow: inset 0 0 0 10px #d5e2f2, 4px 4px 0 var(--line);
}

.slot {
  min-height: 58px;
  padding: 6px;
  border-radius: 14px;
  border-style: dashed;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.slot[data-slot="dairy"] { grid-column: 1 / -1; }
.slot.filled { border-style: solid; background: #e7f6d8; }

.food-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
  max-width: 560px;
}

.food {
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.food:active, .slot:active, .mini:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line);
}

.food[data-group="treat"] { background: #fff0e6; }

.body-wrap { max-width: 340px; margin: 0 auto 8px; }
.body-wrap svg { width: 100%; height: auto; display: block; }

.organ { cursor: pointer; }
.figure.quiet .organ { cursor: default; }
.figure.locked .organ { pointer-events: none; }
.organ.lit { stroke: #c47b00; stroke-width: 4; }
.organ.picked { stroke: #a33b24; stroke-width: 4; }
.organ:focus { outline: none; }
.organ:focus-visible { stroke: #2f6fed; stroke-width: 4; }
.face { pointer-events: none; }

.block-board, .builder {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px auto 12px;
  max-width: 640px;
}

.pv-col {
  flex: 1 1 132px;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pv-label, .pv-empty { margin: 0; font-weight: 800; text-align: center; }
.pv-empty { color: var(--muted); }

.pv-pile {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
}

.unit, .rod i {
  width: 16px;
  height: 12px;
  background: #ffd36e;
  border: 1px solid var(--line);
  display: block;
}

.rod { display: flex; flex-direction: column-reverse; gap: 1px; }

.flat {
  display: grid;
  grid-template-columns: repeat(10, 6px);
  gap: 1px;
  width: max-content;
}

.flat i {
  width: 6px;
  height: 6px;
  background: #8ec5ff;
  border: 1px solid var(--line);
  display: block;
}

.cube {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #f4edff 60%, #c7b3ee 60%);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.pv-controls { display: flex; gap: 6px; }

.mini {
  min-width: 52px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mini[data-add] { background: var(--gold); }

@media (min-width: 700px) {
  .bins { grid-template-columns: repeat(3, 1fr); }
}
