/* Styles used only by the mushroom lesson: mini atlas, edibility badges, the drawing and the identification key. */
/* tree ⇄ mushroom */
.swap { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.swap .who { font-size: 3em; line-height: 1; display: flex; flex-direction: column; align-items: center; }
.swap .who b { font-size: .3em; }
.swap .ar { display: flex; flex-direction: column; gap: 8px; font-size: .85em; font-weight: 700; }
.swap .ar span { border-radius: 999px; padding: 3px 16px; }
.swap .ar .to { background: #fff3d1; }
.swap .ar .back { background: #dcefff; }

/* edible / inedible / poisonous signs */
.bdg {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 1.7em; height: 1.7em; border-radius: .35em .35em .85em .85em; font-size: .9em; flex: none;
  vertical-align: middle; line-height: 1;
}
.bdg.j { background: var(--green); }
.bdg.n { background: #e06c8a; }
.bdg.n::after { content: ""; position: absolute; width: 130%; height: 4px; background: #fff; transform: rotate(-45deg); border-radius: 2px; }
.bdg.t { background: var(--red); }

/* mini atlas */
.atlas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.mcard {
  border: 3px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--tint);
  display: flex; flex-direction: column; font-size: .7em; line-height: 1.25; text-align: left;
}
.mcard.j { border-color: #9fd6bb; background: #f0fbf5; }
.mcard.n { border-color: #f0b6c5; background: #fff3f6; }
.mcard.t { border-color: #f1a3a5; background: #fff0f0; }
.mcard img { width: 100%; height: min(17vh, 150px); object-fit: cover; display: block; }
.mcard .mtxt { padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.mcard .mhead { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mcard b { font-size: 1.2em; }
.mcard span.w { color: var(--muted); }

.pairs { display: flex; gap: 44px; width: 100%; justify-content: center; flex-wrap: wrap; }
.pair { flex: 1 1 320px; max-width: 500px; display: flex; align-items: center; gap: 8px; }
.pair .mcard { flex: 1 1 0; }
.pair .vs { font-weight: 800; color: var(--red); }

.msvg { width: min(520px, 100%); max-height: min(48vh, 430px); }
.game .msvg { max-height: min(38vh, 340px); }
.msvg text { font: 800 22px ui-rounded, "SF Pro Rounded", system-ui, sans-serif; fill: var(--ink); }
.msvg .lead { stroke: var(--muted); stroke-width: 2.5; fill: none; }
.msvg.play .part { cursor: pointer; transition: filter .15s; }
.msvg.play .part:hover { filter: brightness(1.12) drop-shadow(0 0 5px rgba(0,0,0,.25)); }
.msvg .part.found { filter: drop-shadow(0 0 7px var(--green)) drop-shadow(0 0 2px var(--green)); }
.msvg .part.miss { animation: shake .35s; }
.found-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 1.6em; font-size: .8em; }
.found-list span { background: #e3f7ec; border-radius: 999px; padding: 2px 14px; font-weight: 700; }

.key { display: flex; gap: 22px; width: 100%; align-items: stretch; justify-content: center; text-align: left; }
.suspect {
  margin: 0; flex: 0 1 380px; border: 3px solid var(--line); border-radius: 20px; overflow: hidden; background: #fffdf2;
  display: flex; flex-direction: column;
}
.suspect img { width: 100%; height: min(28vh, 250px); object-fit: cover; display: block; }
.suspect figcaption { font-weight: 800; font-size: .72em; padding: 6px 14px 0; color: var(--purple); }
.suspect ul { margin: 0; padding: 2px 14px 10px 32px; font-size: .72em; line-height: 1.35; }
.kq { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.trail { display: flex; gap: 6px; flex-wrap: wrap; min-height: 1.5em; font-size: .62em; font-weight: 800; }
.trail span { border-radius: 999px; padding: 2px 12px; color: #fff; }
.trail .y { background: var(--green); }
.trail .n { background: var(--purple); }
.qcard {
  border: 3px solid var(--yellow); background: #fffbea; border-radius: 18px; padding: 12px 16px;
  font-size: .92em; line-height: 1.35;
}
.qcard small { display: block; color: var(--muted); font-weight: 800; font-size: .7em; }
.qcard .res { font-size: 1.35em; margin-right: 8px; }
.yn { display: flex; gap: 12px; }
.yn[hidden] { display: none; }
.yn .opt { flex: 1; font-size: 1.1em; font-weight: 800; }
.yn .yes { border-color: #9fd6bb; }
.yn .no { border-color: #c9b6fb; }
.again { align-self: center; }

.pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 100%; }
.pk {
  font: inherit; font-weight: 800; font-size: .62em; color: var(--muted); cursor: pointer; padding: 0; overflow: hidden;
  border: 3px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column;
}
.pk:hover { border-color: var(--accent); }
.pk img { width: 100%; height: min(16vh, 130px); object-fit: cover; display: block; }
.pk span { padding: 3px 0 5px; }
.pk.ok { border-color: var(--green); }
.pk.ok span { color: var(--green); }


@media (max-width: 700px) {
  .key { flex-direction: column; gap: 12px; }
  .suspect { flex: none; }
  .atlas { grid-template-columns: repeat(2, 1fr); }
  .pick { grid-template-columns: repeat(3, 1fr); }
}
