/* VIRTUAL PELLET. Its own file, so the game can be added or removed cleanly.
   The tray, tools, panel, quiz and report come from labs.css (the first
   Pellet Lab); this adds the levels, the bones still to
   place, the skeleton map, the clue cards and the bone key. */

.vp { display: block; }
.vp-note { margin: 0 0 0.8rem; color: var(--night-soft); font-size: 0.95rem; line-height: 1.5; }
.vp-note b { color: var(--white); }

/* --- The side panel stays in view, top to bottom, however long the page ----- */
.vp .pellet__panel { max-height: none; }
.vp-panel {
  position: sticky; top: 64px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px); min-height: 100%;
}
.lab.is-full .vp-panel { top: 0; max-height: 100vh; }
@media (max-width: 940px) { .vp-panel { position: static; max-height: none; } }

/* --- Levels -------------------------------------------------------------------- */
.vp-levels { display: grid; gap: 0.45rem; }
.vp-level {
  display: grid; gap: 0.1rem; text-align: left; cursor: pointer;
  padding: 0.6rem 0.75rem; border-radius: var(--r-md);
  background: var(--night-700); color: var(--night-text);
  border: 1px solid var(--night-line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vp-level b { color: var(--white); font-size: 1.08rem; }
.vp-level small { color: var(--night-soft); font-size: 0.9rem; }
.vp-level__n { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-400); }
.vp-level:hover:not(:disabled) { border-color: var(--teal-300, #5fc4c0); transform: translateY(-2px); }
.vp-level:disabled { opacity: 0.45; cursor: default; }
.vp-level[aria-current="true"] { border-color: var(--amber-400); }

/* --- Bones found, and bones still to place -------------------------------------- */
.vp-found {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem;
  list-style: none; margin: 0 0 0.8rem; padding: 0;
}
.vp-found li {
  display: grid; place-items: center; aspect-ratio: 1; min-width: 0; overflow: hidden;
  background: var(--night-700); border: 1px solid var(--night-line); border-radius: var(--r-md);
}
.vp-found li { position: relative; }
.vp-found li img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; max-width: 84%; max-height: 84%; min-width: 0; object-fit: contain; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.vp-found li.is-empty { border-style: dashed; color: var(--night-line); font-weight: 700; }
.vp-found--drag li { cursor: grab; touch-action: none; user-select: none; }
.vp-found--drag li:hover { border-color: var(--teal-300, #5fc4c0); }
.vp-found--drag li.is-picked { border: 2px solid var(--amber-400); background: color-mix(in srgb, var(--amber-400) 16%, var(--night-700)); }
.vp-found--drag li.is-dragging { opacity: 0.35; }
.vp-ghost {
  position: fixed; z-index: 9999; width: 92px; height: 92px; object-fit: contain;
  translate: -50% -50%; pointer-events: none;
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.5));
}

/* --- The skeleton map --------------------------------------------------------- */
.vp-page { width: 100%; align-self: start; }
.vp-build { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 720px) { .vp-build { grid-template-columns: 1fr; } }
.vp-side { display: grid; gap: var(--sp-3); }
.vp-side .quiz__feedback img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.vp-map { position: relative; width: min(100%, 460px); aspect-ratio: 626 / 640; margin-inline: auto; }
.vp-map__skel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; user-select: none; }
.vp-bug {
  position: absolute; left: 0; top: 1%; width: 40%; aspect-ratio: 420 / 290;
  background: rgb(255 255 255 / 0.85); border-radius: var(--r-md);
}
.vp-bug img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; user-select: none; }
.vp-zone {
  position: absolute; width: 9%; aspect-ratio: 1; translate: -50% -50%; padding: 0; cursor: pointer;
  border-radius: 50%; border: 3px dashed var(--amber-200, #fbd38d);
  background: rgb(10 33 38 / 0.75) center / contain no-repeat; background-origin: content-box; padding: 4px;
  transition: scale 0.15s ease, border-color 0.15s ease;
}
.vp-bug .vp-zone { width: 20%; }
.vp-zone.is-hot, .vp-page.is-picking .vp-zone:hover { scale: 1.35; border-style: solid; border-color: var(--amber-400); }
.vp-zone.is-filled { border: 3px solid var(--good); background-color: rgb(255 255 255 / 0.92); }
.vp-zone.is-hint { animation: vp-glow 0.8s ease-in-out infinite; border-color: var(--amber-400); border-style: solid; }
@keyframes vp-glow { 50% { box-shadow: 0 0 0 6px rgb(245 166 35 / 0.5), 0 0 22px rgb(245 166 35 / 0.9); } }
.vp-zone__n:not(:empty) {
  position: absolute; right: -0.5rem; top: -0.5rem; min-width: 1.2rem; height: 1.2rem; border-radius: 1rem;
  background: var(--good); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.2rem;
}
.vp-zone__label {
  position: absolute; left: 50%; top: 100%; translate: -50% 2px; white-space: nowrap; pointer-events: none;
  padding: 0 0.35rem; border-radius: 0.4rem; background: var(--night-900); color: #6fd6a5;
  font-size: 0.78rem; font-weight: 700;
}

/* --- Identify: one card per clue ------------------------------------------------ */
.vp-page--id { display: grid; gap: var(--sp-3); align-content: start; }
.vp-clue {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--r-lg); background: var(--night-800); border: 1px solid var(--night-line);
}
@media (max-width: 720px) { .vp-clue { grid-template-columns: 1fr; } }
.vp-clue .quiz__figure { min-height: 160px; }
.vp-clue .quiz__figure > img:first-child {
  position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: calc(100% - 24px);
  max-height: none; max-width: none; object-fit: contain;
}
.vp-clue__work { display: grid; gap: 0.6rem; align-content: start; }
.vp-clue__title { margin: 0; font-family: var(--display); font-size: var(--step-1); color: var(--white); }
.vp-choices { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vp-choice {
  padding: 0.35rem 0.8rem; border-radius: 999px; cursor: pointer;
  background: var(--night-700); color: var(--night-text); border: 2px solid var(--night-line); font-weight: 600; font-size: 0.88rem;
}
.vp-choice:hover:not(:disabled) { border-color: var(--teal-300, #5fc4c0); }
.vp-choice[aria-pressed="true"] { border-color: var(--amber-400); background: color-mix(in srgb, var(--amber-400) 20%, var(--night-700)); color: var(--white); }
.vp-count { display: grid; gap: 0.6rem; width: 100%; }
.vp-count .quiz__ask { font-size: var(--step-1); margin: 0; }
.vp-count__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.vp-count__row .option { padding: 0.5rem 0.7rem; }

/* --- The bone key in the panel: one animal at a time ------------------------ */
.vp-keytabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.vp-keytabs button {
  padding: 0.3rem 0.7rem; border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
  background: var(--night-700); color: var(--night-soft); border: 1px solid var(--night-line);
}
.vp-keytabs button[aria-pressed="true"] { background: var(--amber-400); color: #3a1c04; border-color: var(--amber-400); }
.vp-key { border-radius: var(--r-md); background: var(--night-700); padding: 0.5rem 0 0.2rem; }
.vp-key__whole { display: block; width: 92%; max-height: 120px; object-fit: contain; margin: 0 auto 0.5rem; padding: 0.3rem; box-sizing: border-box; background: rgb(5 22 26 / 0.55); border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--r-sm); }
.vp-key ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 0.2rem; list-style: none; margin: 0; padding: 0 0.4rem 0.5rem; }
.vp-key li { display: grid; justify-items: center; gap: 0.1rem; font-size: 0.75rem; line-height: 1.2; text-align: center; color: var(--night-soft); min-width: 0; }
.vp-key li img { height: 40px; max-width: 100%; object-fit: contain; }

/* --- Identify: clue tabs --------------------------------------------------------- */
.vp-id-head .quiz__ask { margin: 0 0 0.2rem; }
.vp-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.vp-tab {
  padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700;
  background: var(--night-700); color: var(--night-soft); border: 2px solid var(--night-line);
}
.vp-tab[aria-selected="true"] { color: var(--white); border-color: var(--amber-400); }
.vp-tab.is-done { color: #6fd6a5; border-color: color-mix(in srgb, var(--good) 60%, transparent); }
.vp-tab.is-done::after { content: " ✓"; }
.vp-clue[hidden] { display: none; }

/* --- Report ------------------------------------------------------------------------ */
.vp-report .report__head .quiz__ask { margin-top: 0.3rem; }
.vp-report__why span { line-height: 1.45; }
.vp-report__why strong { color: var(--white); }

@media print {
  /* Only the lab report goes on paper. */
  body * { visibility: hidden; }
  .vp-report, .vp-report * { visibility: visible; color: #000 !important; }
  .vp-report { position: absolute; left: 0; top: 0; width: 100%; }
  .vp-report .quiz__foot { display: none; }
}

/* How a pellet forms, under the levels. */
.vp-form { margin-top: 0.8rem; border-radius: var(--r-md); background: var(--night-700); font-size: 0.92rem; line-height: 1.45; }
.vp-form summary { cursor: pointer; padding: 0.55rem 0.75rem; font-weight: 700; color: var(--white); }
.vp-form ol { margin: 0; padding: 0 0.9rem 0.7rem 1.9rem; display: grid; gap: 0.35rem; color: var(--night-soft); }
.vp-form b { color: var(--night-text); }

/* Timmy, in the bottom corner of the lab. He takes no clicks; the pages
   leave room under their content so he never sits on top of it. */
.lab--pellet > .timmy--game { left: 0.6rem; bottom: 0.6rem; width: 104px; }
.lab--pellet:has(> .vp-helper) .vp-page { padding-bottom: 6.5rem; }

/* The clue turns into the animal it came from. */
.vp-clue .quiz__figure { position: relative; overflow: hidden; }
.vp-clue .quiz__figure.is-solved > img:first-child {
  position: absolute; left: 6px; top: 6px; width: 34%; height: 34%; object-fit: contain; opacity: 0.85;
}
.vp-live { width: 86%; max-height: 150px; object-fit: contain; animation: vp-reveal 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.vp-live__name {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; padding: 0.15rem 0.7rem; border-radius: 999px;
  background: var(--good); color: #fff; font-weight: 700; font-size: 0.9rem;
}
@keyframes vp-reveal { from { scale: 0.3; rotate: -12deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vp-live { animation: none; } }

/* What the owl ate: the animals, side by side. */
.vp-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.vp-menu figure { margin: 0; display: grid; justify-items: center; gap: 0.3rem; }
.vp-menu img {
  width: 96px; height: 96px; object-fit: contain; padding: 8px; border-radius: 50%;
  background: rgb(255 250 240 / 0.95); box-shadow: 0 6px 16px rgb(0 0 0 / 0.35);
}
.vp-menu figcaption { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.vp-menu--big img { width: 120px; height: 120px; }
.vp-count { gap: 1rem; }

/* Clue cards stay compact: the picture never stretches the card. */
.vp-clue { align-items: start; }
/* The clue is always shown whole: the picture fits inside its frame. */
.vp-clue .quiz__figure { height: 220px; min-height: 0; padding: 12px; }
.vp-clue.is-solved .quiz__figure { height: 190px; }
.vp-choice[hidden] { display: none; }
.vp-quote {
  margin: 0; padding: 0.5rem 0.8rem; border-left: 3px solid var(--amber-400); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--night-900); color: var(--white); font-style: italic; font-size: 0.98rem;
}

/* Short news ("Bone lifted") at the top of the tray, clear of Timmy's
   bubble in the bottom corner. */
.lab--pellet .pellet__stage .lab-toast { top: var(--sp-3); bottom: auto; transform: translate(-50%, -1rem); }
.lab--pellet .pellet__stage .lab-toast[data-show="true"] { transform: translate(-50%, 0); }
.vp-count__row .option { padding: 0.55rem 0.9rem; }
.vp-count__row .option i { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; background: var(--night-600, #164049); color: var(--white); }

/* --- The barn: one scene behind the whole game, and the game see-through on
   top of it. Panels keep enough tint (and a blur) that the words stay easy
   to read over the picture. ------------------------------------------------ */
/* The picture is sized by the width of the game only, never by its height:
   a longer fact or a shorter list of bones changes the height of the game,
   and with "cover" the whole room would zoom and slide each time. Here it
   stays put. It is always at least 1200px tall (the picture is 4:3); a long page,
   such as a big Lab Report, fades softly into the dark below it. */
.lab--pellet {
  background:
    linear-gradient(180deg, rgb(5 22 26 / 0.25), rgb(5 22 26 / 0.5)) top center / 100% 1200px no-repeat,
    linear-gradient(180deg, transparent 78%, #0b2227 99%) top center / 100% 1200px no-repeat,
    url("/img/ground-pellet-lab.webp") top center / max(100%, 1600px) auto no-repeat,
    #0b2227;
}
.lab--pellet.is-full {
  background:
    linear-gradient(180deg, rgb(5 22 26 / 0.25), rgb(5 22 26 / 0.5)),
    url("/img/ground-pellet-lab.webp") center / cover;
}
/* A new fact box should not make the page grow and shrink: room for the
   longest fact is kept from the start. */
.vp-page--build .vp-side [data-info] { align-content: start; }
.lab--pellet .lab__bar { background: rgb(10 33 38 / 0.62); backdrop-filter: blur(6px); border-bottom-color: rgb(255 255 255 / 0.12); }
.lab--pellet .pellet__stage { background: none; }
/* The lab picture is busy, so behind the tray it is softly blurred: the
   room stays, but nothing in it competes with the bones. */
.lab--pellet .pellet__canvas { box-shadow: 0 10px 30px rgb(0 0 0 / 0.45); backdrop-filter: blur(5px); }
.lab--pellet .pellet__panel { background: rgb(10 33 38 / 0.68); backdrop-filter: blur(8px); border-left-color: rgb(255 255 255 / 0.12); }
.lab--pellet .pellet__tools { background: rgb(10 33 38 / 0.7); }
/* The step pages: their cards and boxes, slightly see-through too. */
.lab--pellet .vp-page .vp-clue,
.lab--pellet .vp-page .report__row { background: rgb(15 47 53 / 0.82); backdrop-filter: blur(6px); }
.lab--pellet .vp-id-head, .lab--pellet .vp-side > .quiz__ask, .lab--pellet .vp-side > .quiz__sub, .lab--pellet .report__head {
  text-shadow: 0 2px 6px rgb(0 0 0 / 0.75);
}
.lab--pellet .vp-side > .quiz__sub { color: #e6f1f2; }
.lab--pellet .vp-map { background: rgb(5 22 26 / 0.68); border-radius: var(--r-lg); backdrop-filter: blur(4px); }
.lab--pellet .vp-side, .lab--pellet .vp-id-head, .lab--pellet .vp-count, .lab--pellet .vp-report .report__head {
  padding: 0.9rem 1rem; border-radius: var(--r-lg); background: rgb(10 33 38 / 0.72); backdrop-filter: blur(6px);
}
.lab--pellet .vp-key, .lab--pellet .vp-level, .lab--pellet .vp-form, .lab--pellet .vp-found li { background-color: rgb(15 47 53 / 0.85); }
.lab--pellet .vp-found li { border-color: rgb(255 255 255 / 0.22); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); }

/* The end of the last level: the dissection clears away; only the lab, and
   Timmy flying in. */
.lab.is-finale > .timmy--game { display: none; }
.vp-finale {
  position: absolute; inset: 0; z-index: 40; overflow: hidden; border-radius: inherit;
  /* The same room in the same place as during the game, only a little brighter. */
  background:
    linear-gradient(180deg, rgb(5 22 26 / 0.05), rgb(5 22 26 / 0.35)) top center / 100% 1200px no-repeat,
    linear-gradient(180deg, transparent 78%, #0b2227 99%) top center / 100% 1200px no-repeat,
    url("/img/ground-pellet-lab.webp") top center / max(100%, 1600px) auto no-repeat,
    #0b2227;
  animation: vp-fade-in 0.6s ease both;
}
.lab.is-full .vp-finale {
  background: linear-gradient(180deg, rgb(5 22 26 / 0.05), rgb(5 22 26 / 0.35)), url("/img/ground-pellet-lab.webp") center / cover;
}
.vp-finale__stage {
  position: sticky; top: 0; height: min(100%, 100vh);
  display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: end; gap: 0.8rem;
  padding: 1.5rem 1rem 2rem;
}
.vp-finale__timmy {
  width: min(42%, 300px); height: auto; filter: drop-shadow(0 14px 20px rgb(0 0 0 / 0.45));
  animation: vp-fly-in 2.3s cubic-bezier(0.3, 0.1, 0.3, 1) both;
}
.vp-finale__timmy.is-landed { animation: vp-land 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.vp-finale__say {
  margin: 0; max-width: 30rem; padding: 0.8rem 1.3rem; border-radius: 22px; background: #fffaf0; color: #23343a;
  font: 700 clamp(1.2rem, 2.6vw, 1.7rem)/1.3 var(--display); text-align: center; box-shadow: 0 10px 26px rgb(0 0 0 / 0.35);
  animation: vp-pop-in 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.vp-finale__say[hidden], .vp-finale__go[hidden] { display: none; }
.vp-finale__go { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; animation: vp-fade-in 0.5s ease both; }
.vp-finale__report { border: 0; background: none; color: #fff; text-decoration: underline; cursor: pointer; font-weight: 600; text-shadow: 0 1px 4px rgb(0 0 0 / 0.8); }
@keyframes vp-fade-in { from { opacity: 0; } }
@keyframes vp-pop-in { from { scale: 0.6; opacity: 0; } }
@keyframes vp-fly-in {
  0% { translate: -120vw -30vh; rotate: -8deg; }
  55% { translate: -10vw -14vh; rotate: 4deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
@keyframes vp-land { from { scale: 0.85; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .vp-finale, .vp-finale__timmy, .vp-finale__say, .vp-finale__go { animation: none; } }
.vp-finale__go .btn--on-night { background: rgb(10 33 38 / 0.88); color: #fff; box-shadow: 0 6px 16px rgb(0 0 0 / 0.35); }
.vp-finale__go .btn--on-night:hover { background: #fff; color: var(--ink); }
.vp-finale__report { background: rgb(10 33 38 / 0.7); padding: 0.4rem 0.8rem; border-radius: 999px; }

/* The master detectives' faces beside their words. */
.vp-face { width: 72px; height: 72px; object-fit: contain; flex: none; align-self: center; }
.vp-bonepic { width: 56px; height: 56px; object-fit: contain; flex: none; align-self: center; margin-left: auto; }
.vp-said { font-style: italic; font-size: 0.85rem; }
.quiz__feedback .vp-face + div { flex: 1; }
.vp-report__duo { display: flex; justify-content: center; align-items: flex-end; gap: 0.5rem; }
.vp-report__duo img { height: 140px; width: auto; }
.vp-report__duo img + img { height: 108px; }
.vp-report__closed { margin: 0 0 0.3rem; font-family: var(--display); font-size: var(--step-2); color: var(--amber-400); }

/* A way to the original Sherlock Bones game. */
.vp-sherlock-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.vp-sherlock-link img { width: 28px; height: 28px; object-fit: contain; }

/* Sherlock Bones and Sir Whetson in the corner of the lab. They take no
   clicks, so they are never in the way. */
.vp-helper {
  position: absolute; z-index: 6; left: 0.6rem; bottom: 0.6rem; display: flex; align-items: flex-end; gap: 0.3rem;
  pointer-events: none;
}
.vp-helper img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 12px rgb(0 0 0 / 0.45)); }
.vp-helper__say {
  margin: 0 0 3.2rem; max-width: 260px; padding: 0.55rem 0.8rem; border-radius: 16px 16px 16px 4px;
  background: #fffaf0; color: #23343a; font-size: 0.92rem; line-height: 1.35; box-shadow: 0 8px 20px rgb(0 0 0 / 0.35);
  opacity: 0; translate: 0 6px; transition: opacity 0.3s ease, translate 0.3s ease;
}
.vp-helper__say b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #d9731f; }
.vp-helper.is-in .vp-helper__say { opacity: 1; translate: 0 0; }
.vp-helper.is-in img { animation: vp-pop-in 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
.lab.is-case > .vp-helper, .lab.is-finale > .vp-helper { display: none; }

/* The finale: all three owls. Timmy in the middle, the detectives beside him. */
.vp-finale__cast { display: flex; align-items: flex-end; justify-content: center; gap: 2%; width: 100%; min-height: 0; align-self: end; }
.vp-finale__cast .vp-finale__timmy { width: min(36%, 280px); }
.vp-finale__friend {
  width: min(24%, 190px); height: auto; filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.45));
  opacity: 0; transition: opacity 0.9s ease-out;
}
.vp-finale__friend--small { width: min(19%, 150px); }
.vp-finale__friend.is-in { opacity: 1; }

/* Why? Pick the reasons from a list (true and false ones mixed). */
.vp-why { display: grid; gap: 0.45rem; }
.vp-why__ask { margin: 0; color: var(--night-soft); font-size: 0.92rem; }
.vp-why__ask b { color: var(--white); }
.vp-reasons { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vp-reason {
  padding: 0.4rem 0.75rem; border-radius: var(--r-md); cursor: pointer; text-align: left;
  background: var(--night-900); color: var(--night-text); border: 2px dashed var(--night-line); font-size: 0.88rem;
}
.vp-reason:hover { border-color: var(--teal-300, #5fc4c0); }
.vp-reason[aria-pressed="true"] { border-style: solid; border-color: var(--teal-300, #5fc4c0); background: color-mix(in srgb, var(--teal-300, #5fc4c0) 18%, var(--night-800, #12262b)); color: var(--white); }
.vp-reason.is-wrong { border-style: solid; border-color: #e0614b; color: #f3a99b; text-decoration: line-through; animation: vp-shake 0.35s; }
@keyframes vp-shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

/* The narrow side column: face and bone on top, the words below at full width. */
.vp-side .quiz__feedback { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 0.7rem; }
.vp-side .quiz__feedback > div { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.vp-side .quiz__feedback > .vp-bonepic { grid-column: 2; grid-row: 1; justify-self: start; margin-left: 0; }

/* All of one animal's bones under the clue: tap one to see it big. */
.vp-clue__look { display: grid; gap: 0.5rem; align-content: start; }
.vp-clue__bones { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 0.3rem; }
.vp-clue__bones button {
  aspect-ratio: 1; padding: 5px; border-radius: var(--r-sm); cursor: pointer; overflow: hidden;
  background: rgb(255 250 240 / 0.92); border: 2px solid transparent;
}
.vp-clue__bones button:hover { border-color: var(--teal-300, #5fc4c0); }
.vp-clue__bones button[aria-pressed="true"] { border-color: var(--amber-400); }
.vp-clue__bones img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vp-clue.is-solved .vp-clue__bones { display: none; }

/* Spots that stay empty when the skeleton is done: this pellet had no bone
   for them. Faded, so they do not look like work still to do. */
.vp-zone.is-missing { opacity: 0.35; border-style: dotted; animation: none; cursor: default; }

/* --- The story scenes: the intro, one before each new level, the ending ----
   A whole scene over the lab: its own place behind, Timmy, the pellet on the
   ground and the two detectives, and the words below. */
.lab.is-case > .timmy--game, .lab.is-case > .vp-helper { display: none; }
.vp-story {
  position: absolute; inset: 0; z-index: 45; overflow: clip; border-radius: inherit;
  background: #0b2227;
  animation: vp-fade-in 0.6s ease both;
}
/* The scene fills the top of the game (as the finale does), however long the
   page under it is. */
.vp-story__stage {
  /* When the game under it is long (a Lab Report), the scene stays on the
     screen as the page scrolls, never leaving an empty dark area in view. */
  position: sticky; top: 64px;
  /* As tall as the game, so the scene fills the frame with no dark band under
     it, but never taller than the screen: when the game below is long (a Lab
     Report), the scene stays in view instead of being cut. */
  height: min(100%, calc(100vh - 72px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  background: linear-gradient(180deg, rgb(5 22 26 / 0.15), rgb(5 22 26 / 0.55)), var(--scene) center / cover no-repeat;
}
.vp-story.is-leaving { animation: vp-story-out 0.6s ease both; pointer-events: none; }
@keyframes vp-story-out { to { opacity: 0; } }
.vp-story__title {
  justify-self: center; margin: 0; padding: 0.25rem 0.9rem; border-radius: 999px;
  background: rgb(10 33 38 / 0.72); color: var(--amber-400); font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.04em;
}
/* Each character has a column of its own, and the picture fits whole inside
   it (contain, standing on the ground), so nobody is ever cut off. */
.vp-story__cast {
  display: grid; grid-template-columns: 1fr auto 1fr 0.85fr; grid-template-rows: 100%;
  align-items: end; justify-items: center; column-gap: 2%;
  min-height: 0; height: 100%; max-height: 340px; width: 100%; align-self: end; padding-inline: 2%;
}
.vp-story__who {
  height: min(100%, 300px); width: 100%; min-width: 0; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.5));
  opacity: 0; transition: transform 0.3s ease, opacity 0.4s ease, filter 0.3s ease;
}
.vp-story__who--whetson { height: min(72%, 220px); }
.vp-story__who.is-in { opacity: 1; }
.vp-story__who.is-fade { animation: vp-case-fade 1s ease-out both; }
.vp-story__who.is-fly { animation: vp-case-fly 1.5s cubic-bezier(0.3, 0.1, 0.3, 1) both; }
.vp-story[data-who="timmy"] .vp-story__who--timmy.is-in,
.vp-story[data-who="sherlock"] .vp-story__who--sherlock.is-in,
.vp-story[data-who="whetson"] .vp-story__who--whetson.is-in { opacity: 1; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.5)); transform: translateY(-6px) scale(1.03); }
@keyframes vp-case-fly { 0% { translate: -70vw -25vh; rotate: -10deg; opacity: 1; } 60% { translate: -8vw -10vh; rotate: 4deg; opacity: 1; } 100% { translate: 0 0; rotate: 0deg; opacity: 1; } }
@keyframes vp-case-fade { from { opacity: 0; } to { opacity: 1; } }
/* Everyone laughs at the end of the story. */
.vp-story.is-laughing .vp-story__who.is-in { animation: vp-laugh 0.5s ease-in-out 4; }
@keyframes vp-laugh { 50% { translate: 0 -10px; rotate: -3deg; } }

/* The pellet on the ground: it pops in, a bigger one each case. */
.vp-story__pellet { position: relative; z-index: 2; flex: none; align-self: flex-end; margin-bottom: 4px; width: 70px;
  transform-origin: 50% 100%; transition: transform 1.8s ease-in-out; }
.vp-story__pellet[hidden] { display: none; }
.vp-story__pellet[data-size="big"] { width: 85px; }
.vp-story__pellet[data-size="huge"] { width: 100px; }
/* Focused: a magnifying glass comes over the pellet and it grows big. */
.vp-story__pellet.is-focus { transform: scale(2.3) translateY(-6%); }
.vp-story__lens { position: absolute; left: -30%; top: 50%; width: 266%; max-width: none; height: auto; translate: 0 -37.7%; z-index: 1;
  transform-origin: 30.1% 37.7%; pointer-events: none; opacity: 0; scale: 0.4; rotate: -55deg;
  transition: opacity 1s ease, scale 1.6s ease-in-out, rotate 1.6s ease-in-out; }
.vp-story__pellet.is-focus .vp-story__lens { opacity: 1; scale: 1; rotate: -22deg; }
.vp-story__pellet > img:not(.vp-story__lens) { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.55)); }
.vp-story__pellet.is-new { animation: vp-pellet-in 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes vp-pellet-in { from { scale: 0.2; opacity: 0; translate: 0 -40px; } }
/* Something shiny in the pellet: a bit of hard wing case, glinting. */
.vp-story__shiny { position: absolute; left: 28%; top: -30%; width: 60%; height: auto; overflow: visible; animation: vp-pop-in 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.vp-story__shiny[hidden] { display: none; }
.vp-story__glint path { transform-box: fill-box; transform-origin: center; animation: vp-glint 1.4s ease-in-out infinite; }
.vp-story__glint path:nth-child(2) { animation-delay: 0.45s; }
.vp-story__glint path:nth-child(3) { animation-delay: 0.9s; }
@keyframes vp-glint { 0%, 100% { scale: 0.3; opacity: 0.2; } 50% { scale: 1.15; opacity: 1; } }

.vp-story__talk {
  position: relative; z-index: 4; /* the magnifier's handle goes behind the words */
  max-width: 42rem; margin-inline: auto; width: 100%;
  padding: 0.8rem 1.1rem; border-radius: var(--r-lg); background: #fffaf0; color: #23343a;
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.35);
}
.vp-story__talk.is-new { animation: vp-pop-in 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.vp-story__name {
  display: inline-block; margin-bottom: 0.25rem; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: #2e9e8f; color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.vp-story[data-who="sherlock"] .vp-story__name { background: #d9731f; }
.vp-story[data-who="whetson"] .vp-story__name { background: #5a3d2b; }
.vp-story__talk p { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.vp-story__nav { position: relative; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 1rem; }
.vp-story__skip { border: 0; background: rgb(10 33 38 / 0.75); color: #fff; padding: 0.4rem 0.9rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
@media (max-width: 600px) {
  .vp-story__stage { padding: var(--sp-3); }
  .vp-story__cast { max-height: 220px; }
  .vp-story__pellet { width: 50px; } .vp-story__pellet[data-size="big"] { width: 60px; } .vp-story__pellet[data-size="huge"] { width: 72px; }
  .vp-story__pellet.is-focus { transform: scale(2) translateY(-6%); }
  .vp-story__talk p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-story__pellet, .vp-story__lens { transition: none; }
  .vp-story, .vp-story__who, .vp-story__pellet, .vp-story__talk, .vp-story__shiny, .vp-story__glint path { animation: none !important; }
}

/* When someone talks about the pellet, it glows softly a few times, so
   children know where to look, and then rests. */
.vp-story__pellet.is-look > img:not(.vp-story__lens) { animation: vp-look 0.9s ease-in-out 0.3s 3; }
@keyframes vp-look {
  50% { filter: drop-shadow(0 0 16px rgb(255 236 170 / 0.95)) drop-shadow(0 8px 10px rgb(0 0 0 / 0.5)) brightness(1.18); scale: 1.06; }
}
@media (prefers-reduced-motion: reduce) { .vp-story__pellet.is-look > img:not(.vp-story__lens) { animation: none; } }
/* The case name, stamped big when Sherlock has said it. */
.vp-story__title.is-named { visibility: hidden; }
.vp-story__logo {
  position: absolute; top: 0.4rem; left: 50%; translate: -50% 0; z-index: 3; pointer-events: none;
  width: min(48%, 440px); height: auto; filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.5));
  animation: vp-stamp 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@media (max-width: 600px) { .vp-story__logo { width: min(80%, 320px); } }
@keyframes vp-stamp { from { scale: 2.2; rotate: -8deg; opacity: 0; } 70% { rotate: 2deg; } to { scale: 1; rotate: -2deg; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vp-story__logo { animation: none; } }

/* The start: the lab, and one button over it. A click starts the story. The
   logo is not repeated here; the page already carries it above the game. */
.vp-start {
  position: absolute; inset: 0; z-index: 46; border-radius: inherit; overflow: hidden;
  background:
    linear-gradient(180deg, rgb(5 22 26 / 0.35), rgb(5 22 26 / 0.65)) top center / 100% 1200px no-repeat,
    url("/img/ground-pellet-lab.webp") top center / max(100%, 1600px) auto no-repeat, #0b2227;
  animation: vp-fade-in 0.5s ease both;
}
.vp-start__go {
  display: grid; justify-items: center; gap: 1rem; width: 100%; height: min(100%, 680px);
  align-content: center; padding: 1.5rem; border: 0; background: none; cursor: pointer;
}
.vp-start__go .btn {
  pointer-events: none; font-size: 1.15rem; padding: 0.75rem 1.6rem;
  animation: vp-start-bob 3s ease-in-out infinite;
}
.vp-start__go:hover .btn, .vp-start__go:focus-visible .btn { scale: 1.04; }
@keyframes vp-start-bob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .vp-start, .vp-start__go .btn { animation: none; } }

/* --- Full screen ------------------------------------------------------------
   The site's full-screen rule makes every part of a lab a flex column; the
   scenes and pop-ups here are layers of their own, so they keep their
   layout. Everything is scaled up with the screen (--vp-zoom, set in JS). */
/* (".lab.lab--pellet" to outweigh the site rule's ".lab.is-full > :not(…):not(…)".) */
.lab.lab--pellet.is-full > .vp-story, .lab.lab--pellet.is-full > .vp-start, .lab.lab--pellet.is-full > .vp-finale { display: block; }
.lab.lab--pellet.is-full > .vp-cases { display: grid; }
.lab.lab--pellet.is-full > .vp-helper { display: block; flex: none; }
/* Scaled with transform, not zoom: browsers agree on transform (Safari's
   zoom made the game taller than the screen). The game is laid out at
   screen size divided by the scale, then scaled back up to fill it. */
.lab.lab--pellet.is-full > .vp {
  flex: none; width: calc(100% / var(--vp-zoom, 1)); height: calc(100% / var(--vp-zoom, 1));
  transform: scale(var(--vp-zoom, 1)); transform-origin: 0 0;
}
.lab--pellet.is-full .vp-start__go {
  width: calc(100% / var(--vp-zoom, 1)); height: calc(100% / var(--vp-zoom, 1));
  transform: scale(var(--vp-zoom, 1)); transform-origin: 0 0;
}
.lab--pellet.is-full > .vp-helper { transform: scale(var(--vp-zoom, 1)); transform-origin: 0 100%; }
.lab--pellet.is-full .vp-cases__card { transform: scale(var(--vp-zoom, 1)); transform-origin: 50% 0; }

/* --- When a detective says something -----------------------------------
   Sherlock Bones and Sir Whetson speak in a cream bubble in the corner of
   the lab, so they speak in one here too. The old shape was a dark panel
   with a colored bar down its left side: an owl talking should not look
   like a system message. The owl stands outside the bubble and the clipped
   corner points at whoever is speaking. */
.lab--pellet .quiz__feedback {
  padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none;
  align-items: flex-end; gap: 0.4rem;
}
.lab--pellet .quiz__feedback > div {
  /* The owl stands to the left and the bubble's bottom-left corner points
     back at them; in the side column the owl is above, so the corner that
     points at them is the top-left one instead. */
  padding: 0.6rem 0.85rem; border-radius: 16px 16px 16px 4px;
  background: #fffaf0; color: #23343a; line-height: 1.4;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.35);
}
.lab--pellet .vp-side .quiz__feedback > div { border-radius: 4px 16px 16px 16px; }
.lab--pellet .quiz__feedback strong { color: #16262b; }
.lab--pellet .quiz__feedback p { color: #44565c; }
.lab--pellet .quiz__feedback .vp-said { color: #6b7f85; }
/* The bone the words are about keeps its own small card, off the bubble. */
.lab--pellet .quiz__feedback .vp-bonepic {
  padding: 3px; border-radius: var(--r-sm);
  background: rgb(15 47 53 / 0.9); border: 1px solid rgb(255 255 255 / 0.22);
}

/* Only the tweezers lift a bone. While one is loose and another tool is in
   hand, the tweezers button glows to say which tool the job wants. */
.lab--pellet .tool.is-wanted:not([aria-pressed="true"]) {
  color: var(--amber-200, #ffd79a); border-color: var(--amber-400);
  animation: vp-tool-wanted 1.6s ease-in-out infinite;
}
@keyframes vp-tool-wanted {
  50% { box-shadow: 0 0 0 5px rgb(245 166 35 / 0.18); background: rgb(245 166 35 / 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  .lab--pellet .tool.is-wanted:not([aria-pressed="true"]) { animation: none; background: rgb(245 166 35 / 0.14); }
}

/* --- Cases: jump to another case ------------------------------------------- */
.vp-cases-btn { white-space: nowrap; }
.vp-cases {
  position: absolute; inset: 0; z-index: 48; display: grid; place-items: start center; padding: 4rem 1rem 1rem;
  background: rgb(5 22 26 / 0.6); backdrop-filter: blur(4px); animation: vp-fade-in 0.25s ease both;
}
.vp-cases__card {
  width: min(100%, 420px); padding: 1rem 1.1rem 1.1rem; border-radius: var(--r-lg);
  background: rgb(10 33 38 / 0.96); border: 1px solid var(--night-line); box-shadow: 0 20px 40px rgb(0 0 0 / 0.5);
  display: grid; gap: 0.8rem;
}
.vp-cases__card h3 { margin: 0; color: var(--white); font-family: var(--display); }
.vp-cases__close { justify-self: center; border: 0; background: none; color: var(--amber-400); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* --- Soft changes: every new step, scene and pop-up fades in, so the lab
   picture behind never seems to jump. */
.vp > .lab__bar, .vp > .pellet { animation: vp-fade-in 0.5s ease both; }
.pellet__stage > .pellet__canvas, .vp-page { animation: vp-fade-in 0.45s ease both; }
.vp-start.is-leaving { animation: vp-story-out 0.6s ease both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .vp > .lab__bar, .vp > .pellet, .pellet__stage > .pellet__canvas, .vp-page, .vp-start.is-leaving { animation: none; }
}

/* In full screen the game is exactly as tall as the screen, so a long step
   (the Lab Report, many clues) scrolls inside the game instead of being cut. */
.lab--pellet.is-full .pellet__stage { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lab--pellet.is-full .vp-panel { min-height: 0; }
.lab--pellet.is-full .pellet__panel-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }

/* The lab never scrolls itself. ("hidden" can still be scrolled by the page,
   for example when a message is brought into view, and then a scene laid over
   the lab sits too high, half off the screen.) */
.lab.lab--pellet { overflow: clip; }

.lab.is-full .vp-story__stage { top: 0; }
/* The page box around the game hides its overflow, and "hidden" quietly
   switches off everything sticky inside it (the side panel, the story scene).
   "clip" cuts the same way and lets them stick. */
.stage:has(> .lab--pellet) { overflow: clip; }

/* --- The story scenes and the party stay inside the game --------------------
   A scene is laid over the lab, never over the page: the frame around the
   game holds it the same as it holds every other step of the case. The rules
   that place it are the ones above (absolute, inset 0, the lab's own corners).
   Only in full screen, where the game is the screen, does a scene take the
   whole window, and then it grows with it (--vp-scene-zoom, set in JS). */
.lab.lab--pellet.is-full .vp-story__stage,
.lab.lab--pellet.is-full .vp-finale__stage {
  position: relative; top: 0;
  width: calc(100% / var(--vp-scene-zoom, 1)); height: calc(100% / var(--vp-scene-zoom, 1));
  transform: scale(var(--vp-scene-zoom, 1)); transform-origin: 0 0;
}

/* --- The Lab Report: one case file ------------------------------------------ */
.vp-report { display: grid; gap: 0.9rem; max-width: 760px; margin-inline: auto; }
.vp-casefile {
  display: grid; gap: 1rem; padding: 1.1rem 1.2rem 0.9rem; border-radius: var(--r-lg);
  background: rgb(10 33 38 / 0.86); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.35);
}
.vp-casefile__top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.vp-casefile .vp-report__duo img { height: 118px; }
.vp-casefile .vp-report__duo img + img { height: 90px; }
.vp-casefile__title { display: grid; gap: 0.3rem; justify-items: start; }
.vp-casefile__stamp {
  margin: 0; padding: 0.15rem 0.8rem; border: 3px solid #e0614b; border-radius: 8px; rotate: -4deg;
  color: #ff8a73; font: 800 clamp(1.3rem, 3vw, 1.8rem)/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  animation: vp-stamp 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.vp-casefile__case { margin: 0; color: var(--amber-400); font-family: var(--display); font-size: var(--step-1); }
.vp-casefile__ate { margin: 0; color: var(--white); font-size: 1.1rem; line-height: 1.4; }
.vp-casefile__animals { justify-content: flex-start; gap: 0.9rem; }
.vp-casefile__animals img { width: 92px; height: 92px; }
.vp-casefile__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.vp-casefile__stats li {
  display: grid; gap: 0.15rem; padding: 0.6rem 0.7rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.08);
}
.vp-casefile__stats b { color: var(--white); font: 800 1.5rem/1 var(--display); }
.vp-casefile__stats small { font-size: 0.9rem; color: var(--night-soft); }
.vp-casefile__stats span { color: var(--night-soft); font-size: 0.85rem; line-height: 1.3; }
.vp-casefile__why { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.vp-casefile__why li { padding: 0.5rem 0.7rem; border-left: 3px solid var(--amber-400); background: rgb(255 255 255 / 0.04); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--night-text); line-height: 1.4; }
.vp-casefile__why strong { color: var(--white); }
.vp-casefile__foot { margin: 0; text-align: right; color: var(--night-soft); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.vp-casefile__next { margin: 0 auto; text-align: center; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgb(10 33 38 / 0.85); color: #e6f1f2; }
.vp-casefile__go { justify-content: center; margin: 0; }
.vp-casefile__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (max-width: 600px) {
  .vp-casefile__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .vp-casefile__title { justify-items: center; }
  .vp-casefile__animals { justify-content: center; }
  .vp-casefile__stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vp-casefile__stamp { animation: none; } }
/* The two main buttons of the report stay at the bottom of the screen while
   the report is longer than it, so "Next case" never has to be searched for. */
.vp-casefile__go {
  position: sticky; bottom: 0.6rem; z-index: 3; justify-self: center;
  padding: 0.5rem 0.8rem; border-radius: 999px; background: rgb(10 33 38 / 0.9);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.45);
}

/* --- Sort: the Owl Pellet Dissection Mat --------------------------------------
   The mat across the whole page, a box for each kind of bone. A sorted bone
   sits in its box, below the box's name. */
.vp-build--mat { grid-template-columns: 1fr; }
.vp-build--mat .vp-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.vp-build--mat .vp-side > .quiz__ask, .vp-build--mat .vp-side > .quiz__sub { grid-column: 1; }
.vp-build--mat .vp-side > [data-info] { grid-column: 2; grid-row: 1 / span 3; }
.vp-build--mat .vp-side > [data-foot] { grid-column: 1; }
@media (max-width: 720px) {
  .vp-build--mat .vp-side { grid-template-columns: 1fr; }
  .vp-build--mat .vp-side > * { grid-column: 1 !important; grid-row: auto !important; }
}
.vp-mat { position: relative; width: 100%; aspect-ratio: 1400 / 481; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 0 0 6px #4a2e1c, 0 14px 30px rgb(0 0 0 / 0.45); margin: 6px 6px var(--sp-2); width: calc(100% - 12px); }
.vp-mat__pic { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.vp-zone.vp-bin {
  translate: none; aspect-ratio: auto; border-radius: 12px; border: 3px solid transparent; background: none; padding: 0;
  scale: 1; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.vp-zone.vp-bin.is-hot, .vp-page.is-picking .vp-zone.vp-bin:hover { scale: 1; border-color: var(--amber-400); background: rgb(245 166 35 / 0.14); }
.vp-zone.vp-bin.is-filled { border: 3px solid transparent; background: none; }
.vp-zone.vp-bin.is-hint { border-color: var(--amber-400); }
.vp-bin__bones {
  position: absolute; left: 6%; right: 6%; top: 46%; bottom: 7%;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 4px; pointer-events: none;
}
.vp-bin__bones img {
  height: min(100%, 44px); max-width: 30%; width: auto; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6)); animation: vp-pop-in 0.35s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
/* Many bones in one box: smaller, so they all fit. */
.vp-bin__bones:has(img:nth-child(4)) img { height: min(48%, 30px); max-width: 22%; }
.vp-bin__bones:has(img:nth-child(9)) img { height: min(32%, 22px); max-width: 15%; }
.vp-bin[data-bin="shoulders"] .vp-bin__bones, .vp-bin[data-bin="ribs"] .vp-bin__bones { top: 60%; }
/* The clue picture and its bone buttons: a dark, slightly see-through
   background, so the light bones stand out (not white). */
.lab--pellet .vp-clue .quiz__figure { background: rgb(5 22 26 / 0.55); border-color: rgb(255 255 255 / 0.12); }
/* Over the lab picture a see-through box disappears and the bones look
   loose on the wallpaper, so each one keeps a box the eye can find. */
.lab--pellet .vp-clue__bones button {
  background: rgb(15 47 53 / 0.9); border-color: rgb(255 255 255 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 2px 6px rgb(0 0 0 / 0.35);
}
.lab--pellet .vp-clue__bones button:hover { border-color: var(--teal-300, #5fc4c0); }
.lab--pellet .vp-clue__bones button[aria-pressed="true"] { border-color: var(--amber-400); }
