/* Lab activities (motion): ramp, drop and tank (site/js/science/lab-motion.js).
   On the iPad each fills the space under the instruction (a size container, so the
   pictures are sized by the room there is); on a phone the step scrolls instead. */

.sim.mo-lab { display: block; justify-items: normal; width: 100%; height: 100%; min-height: 0; container-type: size; }
.mo-lab .mo-in { display: grid; gap: 10px; height: 100%; min-height: 0; }
.mo-lab .card { position: relative; }
.mo-note { grid-area: note; align-self: start; font-size: 22px; }
.mo-kit { grid-area: kit; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.mo-kit .card { min-width: 92px; padding: 6px 10px 5px; }
.mo-kit .card-emoji { font-size: 40px; }
.mo-kit .card-label { font-size: 17px; }
.mo-kit .card.tested::after { content: '✓'; position: absolute; top: 2px; right: 7px; color: var(--right); font: 800 18px/1 var(--ui); }
.mo-side { grid-area: side; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-height: 0; }
.mo-side > * { grid-area: auto; }
.mo-fair { position: absolute; z-index: 4; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.88); box-shadow: 0 1px 4px rgb(29 36 51 / 0.12); font: 400 15px/1.3 var(--book); white-space: nowrap; pointer-events: none; }
.mo-note.mo-ask { color: var(--subject-dark, var(--accent)); }

/* A results table: a white card of rows. */
.mo-table { display: grid; align-content: start; gap: 6px; min-height: 0; padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: auto; }
.mo-head { display: flex; justify-content: space-between; padding: 0 12px; color: var(--muted); font: 700 14px/1.2 var(--ui); }

/* ---- Ramp ---- */

.lab-ramp .mo-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "world" "kit" "note" "side"; }
.ramp-world {
  grid-area: world;
  justify-self: center;
  position: relative;
  width: min(100%, (100dvh - 750px) * 2);
  aspect-ratio: 2;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.ramp-wall { position: absolute; inset: 0 0 36% 0; background: linear-gradient(#dcefff, #fbf8f1); }
.ramp-ground { position: absolute; inset: 64% 0 0 0; background: linear-gradient(#efe2c6, #e6d4b0); }
.ramp-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ramp-wood { fill: #dca569; }
.ramp-edge { fill: none; stroke: #8a5a2b; stroke-width: 4px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ramp-leg { stroke: #b07c45; stroke-width: 3px; vector-effect: non-scaling-stroke; }
/* The start line on the ramp, square to its slope. */
.ramp-start { position: absolute; width: 0.9cqw; height: 4.4cqw; transform: translate(-50%, -100%) rotate(36.87deg); transform-origin: 50% 100%; background: repeating-linear-gradient(#1d2433 0 0.7cqw, #fff 0.7cqw 1.4cqw); border-radius: 2px; }
.ramp-floor { position: absolute; left: 24%; right: 2%; top: 64%; height: 6%; border-radius: 0 6px 6px 0; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12); }
.ramp-floor.empty { border: 2px dashed #b9a57e; box-shadow: none; }
.ramp-floor-tag { position: absolute; right: 1cqw; top: 50%; transform: translateY(-50%); padding: 0 0.8em; border-radius: 999px; background: rgb(255 255 255 / 0.9); font: 400 max(11px, 1.9cqw)/1.35 var(--book); white-space: nowrap; }
.ramp-floor.empty .ramp-floor-tag { display: none; }
.tex-grass { background: repeating-linear-gradient(100deg, #5aae3f 0 3px, #78c95a 3px 7px); }
.tex-carpet { background: repeating-linear-gradient(45deg, #9c4f2b 0 2px, #b8653a 2px 4px), #b8653a; }
.tex-towel { background: radial-gradient(circle at 3px 3px, #fff 0 1.6px, transparent 2.2px) 0 0 / 6px 6px, repeating-linear-gradient(90deg, #7fbde6 0 18px, #9ccff0 18px 36px); }
.tex-wood { background: repeating-linear-gradient(90deg, #c8955a 0 46px, #9f6e3a 46px 48px), #c8955a; }
.tex-tile { background: linear-gradient(90deg, #b8c4d2 2px, transparent 2px) 0 0 / 26px 100%, linear-gradient(#ffffff, #e5ebf2); }
.tex-smooth, .tex-ice, .tex-foil { background: linear-gradient(#ffffff, #dfe7f0 60%, #f4f8fb); }
.tex-sand, .tex-rough, .tex-paper { background: radial-gradient(circle at 2px 2px, #b99a5a 0 1px, transparent 1.5px) 0 0 / 5px 5px, #e3c98c; }

/* The ruler on the floor, in centimetres. */
.ramp-ruler { position: absolute; left: 24%; width: 72%; top: 73%; height: 12%; border: 1px solid #c49b00; border-radius: 3px; background: #ffd84d; }
.ruler-ticks {
  position: absolute;
  inset: 0;
  border-right: 2px solid #4d3d10;
  background:
    repeating-linear-gradient(90deg, #4d3d10 0 2px, transparent 2px 100%) 0 0 / 25% 58% repeat-x,
    repeating-linear-gradient(90deg, #4d3d10 0 1px, transparent 1px 100%) 0 0 / 5% 30% repeat-x;
}
.ruler-n { position: absolute; bottom: 6%; transform: translateX(-50%); color: #3b2f0c; font: 700 max(10px, 1.7cqw)/1 var(--ui); white-space: nowrap; }
.ruler-n:first-of-type { transform: translateX(-10%); }
.ruler-n:last-child { transform: translateX(-85%); }
.ramp-pins { position: absolute; left: 0; right: 0; top: 86%; height: 14%; }
.ramp-pin { position: absolute; top: 4%; transform: translateX(-50%); font: 3.4cqw/1 var(--emoji); }
/* The reading: a dashed line from the car down to the ruler, with the number. */
.ramp-read { position: absolute; top: 38%; height: 47%; width: 0; z-index: 2; pointer-events: none; }
.ramp-read-line { position: absolute; left: -1px; top: 0; bottom: 0; border-left: 2px dashed var(--wrong); }
.ramp-read-n { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); padding: 0.15em 0.6em; border-radius: 999px; background: var(--wrong); color: #fff; font: 800 max(14px, 2.6cqw)/1.2 var(--ui); white-space: nowrap; }
.ramp-world .mo-fair { top: 4%; right: 2%; font-size: max(11px, 1.8cqw); }

/* The car, drawn: a body, a cabin and two wheels that turn as it rolls. */
.ramp-car { position: absolute; left: 0; top: 0; z-index: 3; will-change: transform, translate; width: 12cqw; height: 7cqw; cursor: pointer; touch-action: manipulation; }
.car-shell { position: absolute; inset: 0; }
.car-body { position: absolute; left: 0; right: 0; top: 38%; height: 42%; border-radius: 1.6cqw 2.4cqw 0.9cqw 0.9cqw; background: linear-gradient(#ff7a6b, #e0453a); box-shadow: inset 0 -0.5cqw 0 rgb(0 0 0 / 0.15); }
.car-light { position: absolute; right: 0.4cqw; top: 22%; width: 1.1cqw; height: 0.8cqw; border-radius: 0.4cqw; background: #ffe27a; }
.car-top { position: absolute; left: 18%; width: 52%; top: 6%; height: 36%; border-radius: 2cqw 2.8cqw 0 0; background: #e0453a; }
.car-window { position: absolute; inset: 0.7cqw 0.9cqw 0.1cqw; border-radius: 1.4cqw 2cqw 0 0; background: linear-gradient(90deg, #cdeeff 0 46%, #e0453a 46% 54%, #cdeeff 54%); }
.wheel { position: absolute; bottom: 0; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: radial-gradient(circle, #dfe4ea 0 30%, #2a2f38 33%); }
.wheel.back { left: 11%; }
.wheel.front { right: 11%; }
.hub, .hub::after { position: absolute; left: 50%; top: 18%; bottom: 18%; width: 0.5cqw; margin-left: -0.25cqw; border-radius: 0.25cqw; background: #7a8494; }
.hub::after { content: ''; left: 0; top: 0; bottom: 0; margin: 0; transform: rotate(90deg); }

.lab-ramp .ramp-go { min-width: 150px; }
.ramp-table .mo-head span:last-child { padding-right: 4px; }
.mo-row.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "e l v" "e b v";
  align-items: center;
  justify-items: start;
  gap: 2px 12px;
  min-width: 0;
  padding: 4px 12px;
  border-radius: 14px;
  background: #f8f6f1;
  box-shadow: none;
}
.mo-row .card-emoji { grid-area: e; font-size: 34px; }
.mo-row .card-label { grid-area: l; font-size: 19px; text-align: left; }
.mo-bar { grid-area: b; justify-self: stretch; margin-bottom: 4px; height: 16px; overflow: hidden; border-radius: 8px; background: #ece7dc; }
.mo-bar-fill { display: block; width: 100%; height: 100%; border-radius: 8px; background: var(--subject, var(--accent)); transform-origin: 0 50%; }
.mo-val { grid-area: v; min-width: 4.4em; color: var(--muted); font: 700 18px/1 var(--ui); font-variant-numeric: tabular-nums; text-align: right; justify-self: end; }
.mo-row.tested .mo-val { color: var(--ink); }
.mo-row.tap { border: 3px dashed color-mix(in srgb, var(--subject-dark, var(--accent)) 55%, transparent); cursor: pointer; }
.mo-row.right { border: 3px solid var(--right); background: var(--right-soft); }
.mo-row.wrong { border: 3px solid var(--wrong); }

/* ---- Drop ---- */

.lab-drop .mo-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tower side"; gap: 16px; }
.drop-tower { grid-area: tower; position: relative; height: 100%; min-height: 0; overflow: hidden; container-type: size; border-radius: 22px; background: linear-gradient(#d9edff, #f6fbff 85%); box-shadow: var(--shadow); }
.drop-beam { position: absolute; left: 0; right: 0; top: 0; height: 13%; background: linear-gradient(#8a94a3, #5d6676); }
.drop-watch {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.12em 0.45em;
  border: 3px solid var(--accent);
  border-radius: 10px;
  background: #18241b;
  color: #8dff9a;
  font: 700 clamp(14px, 5.2cqw, 26px)/1.1 ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.drop-watch.a { left: 34.5%; }
.drop-watch.b { left: 77.5%; border-color: #f08a24; }
.drop-watch-icon { font: 0.8em/1 var(--emoji); }
.drop-watch.first { background: var(--right); color: #fff; }
.drop-watch.tie { background: var(--gold); color: var(--ink); }
.drop-lane { position: absolute; top: 13%; bottom: 0; width: 41%; font-size: min(15cqw, 8.5cqh); }
.drop-lane.a { left: 14%; background: linear-gradient(rgb(47 95 179 / 0.07), transparent); }
.drop-lane.b { left: 57%; background: linear-gradient(rgb(240 138 36 / 0.08), transparent); }
/* The hand: a rod down from the beam and two jaws that open to let go. */
.drop-clamp { position: absolute; left: 50%; top: 0; width: 0; height: 22%; }
.drop-rod { position: absolute; left: -3px; top: 0; bottom: 0.52em; width: 6px; background: #5d6676; }
.drop-clamp::after { content: ''; position: absolute; left: -0.66em; width: 1.32em; bottom: 0.44em; height: 0.12em; border-radius: 0.06em; background: #5d6676; }
.jaw { position: absolute; bottom: -0.36em; width: 0.16em; height: 0.82em; border-radius: 0.08em; background: var(--accent); transform-origin: 50% 0; }
.drop-clamp.b .jaw { background: #f08a24; }
.jaw.l { left: -0.66em; }
.jaw.r { left: 0.5em; }
.drop-thing { position: absolute; left: 50%; top: 22%; z-index: 2; will-change: transform, translate; font: 1em/1 var(--emoji); pointer-events: none; }
.drop-puff { position: absolute; left: 50%; top: 90%; width: 1.6em; height: 0.36em; margin: -0.18em 0 0 -0.8em; border-radius: 50%; background: rgb(110 90 60 / 0.35); pointer-events: none; }
.drop-tag { position: absolute; left: 50%; top: 64%; transform: translateX(-50%); padding: 0.2em 0.7em; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font: 700 clamp(12px, 3.6cqw, 18px)/1.2 var(--ui); white-space: nowrap; }
.drop-scale { position: absolute; z-index: 1; left: 2%; width: 10%; top: 32.1%; height: 59.2%; border-right: 3px solid #6b7380; background: repeating-linear-gradient(#6b7380 0 2px, transparent 2px 10%) 100% 0 / 35% 100% no-repeat; }
.drop-scale-n { position: absolute; right: 40%; transform: translateY(-50%); color: #3d4554; font: 700 clamp(10px, 3.2cqw, 15px)/1 var(--ui); white-space: nowrap; }
.drop-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 8.7%; background: linear-gradient(#8ccf6b, #6fb552); }
.drop-ground .mo-fair { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 3.2cqw, 15px); }
.drop-slow { position: absolute; z-index: 3; top: 15%; right: 3%; padding: 0.2em 0.7em; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font: 700 clamp(11px, 3.2cqw, 15px)/1.2 var(--ui); }

.lab-drop .mo-side { gap: 12px; overflow: hidden; }
.drop-kit { grid-area: auto; gap: 8px; }
.drop-card.in-a { border-color: var(--accent); }
.drop-card.in-b { border-color: #f08a24; }
.drop-card:is(.in-a, .in-b)::after { content: '✋'; position: absolute; top: -12px; right: -8px; font: 24px/1 var(--emoji); }
.drop-row-go { display: flex; justify-content: center; }
.drop-go { min-width: 170px; }
.drop-goals { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.drop-goal { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 400 16px/1.3 var(--book); }
.drop-goal-e { font: 18px/1 var(--emoji); }
.drop-goal.met { border-color: var(--right); background: var(--right-soft); }
.drop-goal.met::after { content: '✓'; color: var(--right); font: 800 16px/1 var(--ui); }
.drop-dot { width: 12px; height: 12px; border: 2px solid #b9c6dc; border-radius: 50%; }
.drop-dot.on { border-color: var(--right); background: var(--right); }
.drop-log { display: grid; align-content: start; gap: 6px; min-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.drop-row { display: grid; grid-template-columns: auto auto auto auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font: 700 16px/1.2 var(--ui); font-variant-numeric: tabular-nums; }
.drop-row-e { font: 26px/1 var(--emoji); }
.drop-row-t { margin-right: 6px; }
.drop-row-v { justify-self: end; font: 400 17px/1.2 var(--book); white-space: nowrap; }
.drop-row.tie .drop-row-v { color: #13643a; }

/* ---- Tank ---- */

.lab-tank .mo-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "shelf" "bench" "note" "tank" "side"; gap: 8px; }
.tank-shelf { grid-area: shelf; gap: 8px; padding: 0 8px 14px; background: linear-gradient(transparent calc(100% - 12px), #c8955a calc(100% - 12px)); border-radius: 0 0 6px 6px; }
.tank-shelf .card { min-width: 82px; }
.tank-card.tested { opacity: 0.6; }
.tank-card.tested::after { display: none; }
.tank-badge { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font: 20px/1 var(--emoji); }
.tank-bench { grid-area: bench; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 64px; }
.tank-holding { font: 46px/1 var(--emoji); }
.tank-guess { min-width: 140px; font-size: 24px; }
.tank-guess.float { border-color: #49a8dc; }
.tank-guess.sink { border-color: #7b8494; }
.tank-guess.chosen { background: var(--accent-soft); }
.tank-drop { min-width: 190px; }

.tank {
  grid-area: tank;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  container-type: size;
  border: 5px solid #a9d6ef;
  border-top-width: 3px;
  border-radius: 8px 8px 28px 28px;
  background: linear-gradient(#f6fcff, #eaf6fd);
  box-shadow: var(--shadow);
  font-size: clamp(34px, 16cqh, 66px);
}
.tank-water { position: absolute; left: 0; right: 0; top: 30%; bottom: 0; border-radius: 0 0 23px 23px; background: linear-gradient(#8fd2f3, #3f97cf); }
.tank-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; border-radius: 0 0 23px 23px; background: radial-gradient(circle at 3px 3px, #c4a660 0 1.2px, transparent 1.8px) 0 0 / 7px 7px, #e6cf94; }
.tank-things { position: absolute; inset: 0; }
.tank-thing { position: absolute; font: 1em/1 var(--emoji); }
/* The water in front: what is under the surface looks under water. */
.tank-front { position: absolute; z-index: 2; left: 0; right: 0; top: 30%; bottom: 0; border-radius: 0 0 23px 23px; background: rgb(60 150 215 / 0.32); pointer-events: none; }
/* The ripples slide along (a transform, so the browser need not repaint the water). */
.tank-surface { position: absolute; left: 0; right: 0; top: -7px; height: 14px; overflow: hidden; }
.tank-wave { position: absolute; left: -48px; right: -48px; top: 0; height: 12px; background: radial-gradient(circle at 12px -3px, transparent 10px, rgb(255 255 255 / 0.85) 11px 13px, transparent 14px) 0 0 / 24px 12px repeat-x; animation: tank-ripple 3s linear infinite; will-change: transform; }
.tank-wave.two { top: 3px; opacity: 0.5; background-size: 34px 12px; animation-name: tank-ripple-two; animation-duration: 5s; }
@keyframes tank-ripple { to { transform: translateX(48px); } }
@keyframes tank-ripple-two { from { transform: translateX(34px); } to { transform: translateX(0); } }
.tank-shine { position: absolute; z-index: 3; top: 6%; bottom: 8%; left: 3%; width: 2.2%; border-radius: 999px; background: linear-gradient(rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.1)); pointer-events: none; }
.tank-ring { position: absolute; z-index: 3; width: 1.6em; height: 0.34em; margin: -0.17em 0 0 -0.8em; border: 3px solid rgb(255 255 255 / 0.9); border-radius: 50%; pointer-events: none; }
.tank-droplet { position: absolute; z-index: 3; width: 9px; height: 9px; margin: -4px; border-radius: 50%; background: #c9ecff; box-shadow: inset 0 0 0 1px #5fb0e0; pointer-events: none; }
.tank-bubble { position: absolute; z-index: 3; width: 10px; height: 10px; margin: -5px; border: 2px solid rgb(255 255 255 / 0.85); border-radius: 50%; pointer-events: none; }
.tank-puff { position: absolute; z-index: 3; width: 1.4em; height: 0.3em; margin: -0.15em 0 0 -0.7em; border-radius: 50%; background: rgb(196 166 96 / 0.7); pointer-events: none; }

.tank-table { gap: 4px; }
.tank-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 26px; align-items: center; gap: 8px; min-height: 38px; padding: 2px 10px; border-radius: 12px; background: #f8f6f1; }
.mo-head.tank-row { min-height: 0; padding-block: 0; background: none; }
.tank-name { display: flex; align-items: center; gap: 6px; min-width: 0; font: 400 18px/1.15 var(--book); }
.tank-name-e { font: 26px/1 var(--emoji); }
.tank-cell { font: 400 17px/1.2 var(--book); white-space: nowrap; }
.tank-row.match { background: var(--right-soft); }
.tank-row.other { background: #fff3d1; }
.tank-tick { color: var(--right); font: 800 24px/1 var(--ui); text-align: center; }

/* ---- iPad on its side: the results go to the right ---- */

@container (min-aspect-ratio: 3 / 2) {
  .lab-ramp .mo-in { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "world side" "kit side" "note side"; align-content: start; }
  .ramp-world { width: min(100%, (100dvh - 520px) * 2); }
  .lab-drop .mo-in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .lab-tank .mo-in { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "shelf side" "bench side" "note side" "tank side"; }
}

/* ---- Phones: everything at its own height; the step scrolls ---- */

@media (max-width: 600px), (max-height: 500px) {
  .sim.mo-lab { height: auto; container-type: inline-size; }
  .mo-lab .mo-in { height: auto; gap: 8px; }
  .mo-note { font-size: 18px; }
  .mo-kit { gap: 6px; }
  .mo-kit .card { min-width: 74px; padding: 4px 6px; }
  .mo-kit .card-emoji { font-size: 30px; }
  .mo-kit .card-label { font-size: 13px; }
  .mo-table { padding: 8px; border-radius: 16px; }

  .ramp-world { width: 100%; border-radius: 16px; }
  .lab-ramp .big { min-height: 52px; }
  .mo-row.card { gap: 0 8px; padding: 2px 8px; }
  .mo-row .card-emoji { font-size: 26px; }
  .mo-row .card-label { font-size: 15px; }
  .mo-val { font-size: 15px; }

  .lab-drop .mo-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tower" "side"; }
  .drop-tower { height: 380px; border-radius: 16px; }
  .drop-card:is(.in-a, .in-b)::after { top: -8px; right: -6px; font-size: 18px; }
  .drop-goal { font-size: 14px; }
  .drop-row { font-size: 14px; padding: 3px 8px; }
  .drop-row-e { font-size: 22px; }
  .drop-row-v { font-size: 15px; }

  .tank-shelf .card { min-width: 74px; }
  .tank-badge { width: 26px; height: 26px; top: -8px; right: -8px; font-size: 15px; }
  .tank-bench { gap: 8px; min-height: 56px; }
  .tank-holding { font-size: 36px; }
  .tank-guess { min-width: 0; font-size: 19px; }
  .tank-drop { min-width: 0; }
  .tank { height: 250px; }
  .tank-row { gap: 4px; min-height: 34px; padding: 2px 6px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 20px; }
  .tank-name { font-size: 14px; gap: 4px; }
  .tank-name-e { font-size: 20px; }
  .tank-cell { font-size: 13px; }
  .mo-head.tank-row { font-size: 11px; }
  .tank-tick { font-size: 18px; }
}

/* A phone on its side: picture on the left, the rest on the right. */
@media (max-height: 500px) {
  .lab-ramp .mo-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "world side" "kit side" "note side"; align-items: start; }
  .lab-drop .mo-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "tower side"; }
  .drop-tower { height: 340px; }
  .lab-tank .mo-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; grid-template-areas: "shelf side" "bench side" "note side" "tank side"; align-items: start; }
  .tank { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .tank-wave { animation: none; }
}
