/* Firefly Meadow: Illustrated How Germs Spread only • 1.4.0 */
#spread .intro{max-width:870px}
#spread .workarea{grid-template-columns:minmax(0,1fr);gap:14px}
#spread .workarea>.card:first-child{padding:24px;background:#fffdfa;border:1px solid #d8e4d6}
#spread .workarea>.card:nth-child(2){background:#f9fcf9;border-color:#d5e5de}
#spread .controls{margin:2px 0 10px}
#spread .controls .action{font-size:.98rem;min-height:46px;padding:11px 17px}
#spread .spreadRoomDrawing{padding:0!important;min-height:0;display:block;overflow:hidden;border:5px solid #f4f1e7;box-shadow:0 12px 40px rgba(19,55,54,.17);background:#314f47;border-radius:22px;isolation:isolate}
#spread .spreadStage{position:relative;aspect-ratio:1200/680;max-height:none;width:100%;min-height:210px;overflow:hidden;background:#5a8070}
#spread #roomLayers{width:100%;max-width:none;height:100%;display:block;position:absolute;inset:0}
#spread #roomParticles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:saturate(1.2)}
#spread .spreadSceneControls{position:absolute;top:15px;bottom:auto;left:52%;transform:translateX(-50%);background:#102f2ddc;color:#fdf8e8;border:1px solid #fff6d64d;border-radius:30px;min-height:34px;padding:6px 18px;display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap;font-size:11px;font-weight:850;letter-spacing:.08em;box-shadow:0 5px 15px #1e30274d}
#spread .spreadLiveDot{width:7px;height:7px;border-radius:50%;background:#88ded8;box-shadow:0 0 12px #b6f6df;flex-shrink:0}
#spread .spreadRoomFoot{position:absolute;top:18px;left:50%;transform:translateX(-50%);border-radius:16px;background:#1d4845c0;padding:5px 10px;white-space:nowrap;color:#f2f7ed;font-size:11px;letter-spacing:.02em}
#spread .spreadActionRibbon{display:flex;flex-wrap:wrap;align-items:center;gap:11px;background:#edf7f2;border:1px solid #c9e1d4;border-radius:16px;padding:11px 14px;margin:0 0 15px}
#spread .spreadActionRibbon>span{font-weight:800;color:#305f53;font-size:.89rem}
#spread .spreadActionButtons{display:flex;gap:6px;flex-wrap:wrap}
#spread .spreadEmission{min-height:43px;padding:8px 13px;border-radius:11px;background:#fff;border:1.5px solid #a8c8ba;color:#365f57;font-size:.87rem;font-weight:800;transition:box-shadow .15s,transform .15s}
#spread .spreadEmission span{font-size:1.2rem;vertical-align:middle;padding-right:3px}
#spread .spreadEmission.isSelected,#spread .spreadEmission[aria-pressed=true]{color:#fff;background:#2d675b;border-color:#2d675b;box-shadow:0 3px 0 #20463c}
#spread .spreadEmission:hover{transform:translateY(-1px)}
#spread .spreadLegend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;background:#eef7f1;border:1px solid #d7e8da;border-radius:12px;margin:11px 0 0;padding:10px 14px;color:#375f57;font-weight:750;font-size:.83rem}
#spread .spreadLegend>span{display:flex;align-items:center;gap:8px}
#spread .spreadLegend i{height:17px;width:17px;border-radius:50%;display:inline-block;flex-shrink:0}
#spread .spreadLegend .legendFine{background:#83d6e8;box-shadow:0 0 0 4px #caf0f0;border:2px solid #f8ffff}
#spread .spreadLegend .legendDrops{background:#ec9f86;box-shadow:0 0 0 4px #f7ded0;border:2px solid white}
#spread .spreadLegend .legendAir{background:linear-gradient(90deg,#8fc8c8,#ebfffd);border:2px dashed #388e96}
#spread .spreadAccessibilityNote{font-size:.82rem;margin:8px 3px 5px;line-height:1.48;color:#627369}
#spread .workarea .card:nth-child(2)>h3{font-size:1.65rem}
#spread .workarea .card:nth-child(2) .optionRow{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#spread .workarea .card:nth-child(2) .switch{min-height:53px;padding:13px 16px;border-radius:13px;cursor:pointer}
#spread .workarea .card:nth-child(2) #runSpread{font-size:1rem;min-height:47px;margin-top:6px}
#spread #spreadResult{max-width:none;padding:15px 18px;font-size:.94rem}
#spread .microscopeCrest{margin:8px 0;background:none;color:#446b63}
#spread #roomWindowHotspot:focus-visible{outline:none;stroke:#fff8dd;stroke-width:6px}
#spread .instructionStrip{background:#ebf7f4;font-size:.9rem;font-weight:700;color:#3d7368}
#spread .visualTrialResult{min-height:58px}
@media(min-width:900px){#spread .workarea>.card:nth-child(2){display:grid;grid-template-columns:1.25fr .8fr;column-gap:20px;align-items:start}#spread .workarea>.card:nth-child(2)>h3,#spread .workarea>.card:nth-child(2)>p:first-of-type{grid-column:1}#spread .workarea>.card:nth-child(2)>.optionRow{grid-column:1;grid-row:3 / span 3}#spread .workarea>.card:nth-child(2)>.diagramControl,#spread .workarea>.card:nth-child(2)>.instructionStrip,#spread .workarea>.card:nth-child(2)>#touchNext,#spread .workarea>.card:nth-child(2)>#runSpread{grid-column:2}#spread .workarea>.card:nth-child(2)>.visualTrialResult,#spread .workarea>.card:nth-child(2)>.callout,#spread .workarea>.card:nth-child(2)>.question,#spread .workarea>.card:nth-child(2)>.speak{grid-column:1 / -1}}
@media(max-width:720px){#spread .workarea>.card:first-child{padding:12px}#spread .spreadRoomDrawing{border-width:3px;border-radius:16px}#spread .spreadRoomFoot{display:none}#spread .spreadSceneControls{top:6px;bottom:auto;padding:4px 9px;gap:6px;font-size:7px;min-height:20px}#spread .spreadLiveDot{width:4px;height:4px}#spread .spreadActionRibbon{padding:10px;gap:8px}#spread .spreadActionRibbon>span{width:100%}#spread .spreadActionButtons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}#spread .spreadEmission{font-size:.7rem;padding:5px 2px;min-height:41px}#spread .spreadEmission span{display:block;font-size:1.3rem;line-height:1}#spread .spreadLegend{font-size:.73rem;padding:9px;gap:10px}#spread .workarea .card:nth-child(2) .optionRow{grid-template-columns:1fr}#spread .workarea .card:nth-child(2) .switch{min-height:42px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){#spread .spreadEmission,#spread .roomWind{animation:none!important;transition:none!important}}

/* The redesigned character starts with the hand away from the face.
   A cough/sneeze into the elbow is a separately illustrated, animated pose. */
#spread .sourceCharacter .sourceRest,
#spread .sourceCharacter .sourceCover {
  transition:opacity .43s ease-in-out, transform .48s cubic-bezier(.22,.75,.26,1);
  transform-box:fill-box;
  transform-origin:51% 65%;
}
#spread .sourceCharacter .sourceRest {opacity:1;transform:translateY(0)}
#spread .sourceCharacter .sourceCover {opacity:0;transform:translateY(19px) rotate(-2deg)}
#spread .sourceCharacter.is-covering .sourceRest {opacity:0;transform:translateY(6px)}
#spread .sourceCharacter.is-covering .sourceCover {opacity:1;transform:translateY(0) rotate(0deg)}
@media (prefers-reduced-motion:reduce){
 #spread .sourceCharacter .sourceRest,#spread .sourceCharacter .sourceCover{transition:none!important}
}
