/* Her things, as features/world.js builds them (camera-fridge session, Nov 30): the fridge, the camera, the bag and the
   little cutouts. My universe (features/universe.css) decides where they stand. No lines anywhere: soft shadows and
   tints only. Garnet only for things you press. */

.w-thing { position: relative; line-height: 0; }
.w-thing > img, .w-thing .w-bag img { display: block; width: 100%; height: auto; }
.w-thing > img { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.35)); }
.w-hit { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.w-hit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(229, 141, 151, 0.55); }

/* the plaque: a light passes over it */
.w-thing[data-k="plaque"] { overflow: hidden; border-radius: 2px; box-shadow: 2px 7px 12px -5px rgba(0, 0, 0, 0.6); }
.w-thing[data-k="plaque"] > img { filter: none; }
.w-thing[data-k="plaque"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%); translate: -120% 0; pointer-events: none; }
.w-thing[data-k="plaque"].glinting::after { animation: w-glint 0.95s var(--e-out, ease-out); }
@keyframes w-glint { to { translate: 120% 0; } }

/* the camera's lens shows the photo it just took */
.w-lens { position: absolute; left: 55%; top: 51.6%; width: 47%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; background: #0B0A09; opacity: 0; scale: 0.55; pointer-events: none; transition: opacity 0.35s ease, scale 0.5s var(--e-out, ease-out); }
.w-thing.playing .w-lens { opacity: 1; scale: 1; }
.w-lens img { width: 100%; height: 100%; object-fit: cover; }
.w-lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6); background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 30%); }
.w-flash { position: fixed; inset: 0; z-index: 9999; background: #FFF; opacity: 0; pointer-events: none; }
.w-flier { position: fixed; z-index: 90; box-sizing: border-box; padding: 3px 3px 9px; background: #FCFAF6; line-height: 0; pointer-events: none; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.55); }
.w-flier img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the bag: her photo as a print, a soft white spot on each thing that has her note */
.w-bag { position: relative; padding: 1.4%; background: #FCFAF6; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); }
.bag-spot { position: absolute; z-index: 2; width: 26px; height: 26px; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; background: rgba(252, 250, 246, 0.92); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); cursor: pointer; transition: scale 0.3s var(--e-out, ease-out); }
.bag-spot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #8C2F39; }
.bag-spot.on { scale: 1.2; }
.bag-spot:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(229, 141, 151, 0.6); }

/* the fridge, drawn: the door swings open on its right-hand hinge */
.fr { position: relative; aspect-ratio: 1 / 2; perspective: 1400px; }
.fr-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fr-inside { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45)); }
.fr-door { position: absolute; inset: 0; z-index: 2; transform-origin: 93.75% 50%; transform-style: preserve-3d; transition: transform 0.8s var(--e-out, cubic-bezier(0.2, 0.7, 0.2, 1)); }
.fr-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fr-back { transform: rotateY(180deg); }
.fr.open .fr-door { transform: rotateY(-122deg); }
.fr.open .fr-front { pointer-events: none; }
html:not(.motion) .fr-door { transition: none; }
.fr-foods { position: absolute; inset: 0; z-index: 1; }
.fr-food { position: absolute; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; pointer-events: none; }
.fr.open .fr-food { pointer-events: auto; z-index: 3; }
.fr-food.on-door { z-index: 3; }
.fr-food:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229, 141, 151, 0.6); }
.fr-prints { position: absolute; inset: 0; }
.fr-print { position: absolute; z-index: 2; width: 25%; padding: 2.4% 2.4% 6.5%; border: 0; background: #FCFAF6; line-height: 0; translate: -50% -50%; rotate: var(--r, 0deg); box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.5); cursor: pointer; }
.fr.open .fr-print { pointer-events: none; }
.fr-print:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229, 141, 151, 0.6); }
.fr-print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fr-print .mag { position: absolute; left: 50%; top: -6%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #E2A9B4; translate: -50% 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.45); }
.fr-print:nth-child(3n + 2) .mag { background: #9CC7E6; }
.fr-print:nth-child(3n) .mag { background: #9DCB8A; }
@media (hover: hover) { .fr-print { transition: scale 0.3s var(--e-out, ease-out); } .fr-print:hover { scale: 1.06; } }

/* the fridge: the door is one big button underneath; the prints and, once it's open, the foods sit on top of it */
.w-thing[data-k="fridge"] .w-hit { border-radius: 30px; }
.w-thing[data-k="fridge"] .fr { z-index: 2; pointer-events: none; }
.w-thing[data-k="fridge"] .fr-print, .w-thing[data-k="fridge"] .fr.open .fr-food { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) { .w-lens, .bag-spot { transition: none !important; } }
@media (max-width: 639px) { .bag-spot { width: 22px; height: 22px; } .bag-spot::after { inset: 7px; } }

/* the guinea pig on jupiggter: her photo as a white-bordered print you can pet (Dec 1) */
.w-thing.w-print img { box-sizing: border-box; width: 100%; height: auto; padding: 8px 8px 24px; background: #FCFAF6; border-radius: 2px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.8); rotate: -3deg; }

/* ---------- My universe v4 (Dec 1, night): the closet, the bookcase, the easels and the trail map ----------
   All drawn in code (no new images). Focus is the same soft garnet glow as everything else here. */
.cl-item:focus-visible, .bk:focus-visible, .ea-on:focus-visible, .tr-map:focus-visible, .tr-print:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(229, 141, 151, 0.6); }

/* Closet Island: her outfits on a brass rail */
.w-closet { position: relative; aspect-ratio: 640 / 240; }
.cl-rod { position: absolute; z-index: 1; left: 2%; right: 2%; top: 3.4%; height: 3.2%; border-radius: 99px; background: linear-gradient(#F6E6BA, #C9A24E 55%, #8E6B26); box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.5); }
.cl-leg { position: absolute; top: 5%; bottom: 0; width: 1.3%; border-radius: 99px; background: linear-gradient(90deg, #E9D196, #9C7A34); }
.cl-leg.l { left: 3%; } .cl-leg.r { right: 3%; }
.cl-leg::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 900%; height: 2.6%; min-height: 4px; translate: -50% 0; border-radius: 99px; background: #9C7A34; }
.cl-row { position: absolute; z-index: 2; left: 6%; right: 6%; top: 0; display: flex; justify-content: center; }
.cl-item { flex: 0 0 12.5%; margin: 0 -0.2%; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; line-height: 0; transform-origin: 50% 3%; transition: translate 0.35s var(--e-out, ease); }
.cl-item svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); transition: filter 0.35s ease; }
@media (hover: hover) { .cl-item:hover { translate: 0 -3px; } }
.cl-item.on svg { filter: drop-shadow(0 0 14px rgba(255, 238, 200, 0.6)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }

/* The Bookworm Hole: a little bookcase */
.w-books { position: relative; aspect-ratio: 600 / 330; container-type: inline-size; /* text sizes use cqw: the spines are written sideways, so cqi would follow the wrong axis */ -webkit-text-size-adjust: none; text-size-adjust: none; }
.bk-case { position: absolute; inset: 10% 0 0; padding: 2.6% 2.6% 3.4%; border-radius: 6px; background: linear-gradient(#B98A58, #8F6438); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.2); }
.bk-row { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 0.7%; padding: 0 2.4%; border-radius: 2px; background: linear-gradient(#3B2A1F, #241A13); box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, 0.7); }
.bk { position: relative; flex: none; overflow: visible; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.8cqw 0 2cqw; border: 0; border-radius: 3px 3px 1px 1px; background: var(--c); color: var(--ink); cursor: pointer; box-shadow: inset -5px 0 6px -4px rgba(0, 0, 0, 0.4), inset 4px 0 4px -4px rgba(255, 255, 255, 0.35); transition: translate 0.4s var(--e-out, ease); }
.bk.out { translate: 0 -12%; }
.bk-t { writing-mode: vertical-rl; font: 400 2.5cqw/1.05 var(--serif, serif); letter-spacing: 0.01em; white-space: nowrap; text-align: start; }
.bk-by { writing-mode: vertical-rl; max-block-size: 100%; font: 650 1.3cqw/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; opacity: 0.8; }
.bk:has(.bk-t) { padding: 2.2cqw 0 1.6cqw; justify-content: flex-start; gap: 1.6cqw; }
.bk:has(.bk-t) .bk-by { margin-top: auto; }
.bk:has(.bk-t)::before, .bk:has(.bk-t)::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6%; background: var(--ink); opacity: 0.55; }
.bk:has(.bk-t)::before { top: 3%; } .bk:has(.bk-t)::after { bottom: 2.4%; }
.bk-i { width: 64%; line-height: 0; } .bk-i svg { display: block; width: 100%; height: auto; }
.bk-band { width: 100%; height: 3%; min-height: 2px; background: var(--ink); opacity: 0.45; }
.bk-worm { position: absolute; left: 50%; bottom: 96%; width: 92%; translate: -50% 22%; line-height: 0; transition: translate 0.5s var(--e-out, ease) 0.15s; }
.bk-worm svg { display: block; width: 100%; height: auto; transform-origin: 50% 100%; }
.bk.out .bk-worm { translate: -50% -4%; }
.bk-end { flex: none; width: 6%; margin-left: -0.4%; line-height: 0; } .bk-end svg { display: block; width: 100%; height: auto; }
.bk-stack { flex: none; width: 19%; margin-left: auto; display: flex; flex-direction: column-reverse; align-items: center; }
.bk-flat { width: 100%; aspect-ratio: 7 / 1.05; flex-direction: row; justify-content: flex-start; padding: 0 1.4cqw; border-radius: 2px; }
.bk-flat .bk-i { width: 11%; }
.bk-flat:nth-child(2) { width: 92%; margin-left: 6%; }
.bk-flat:nth-child(3) { width: 84%; margin-right: 8%; }
.bk-flat.out { translate: 6% 0; }

/* The Louvre-ly Planet: two easels, art she loves on one, a canvas to dab on the other */
.w-art { position: relative; display: flex; justify-content: space-between; align-items: flex-end; aspect-ratio: 640 / 390; }
.ea { position: relative; width: 47%; aspect-ratio: 200 / 260; }
.ea-legs { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
.ea-on { position: absolute; left: 11%; right: 11%; bottom: 33.6%; padding: 0; border: 0; border-radius: 2px; background: none; line-height: 0; }
.ar-frame { padding: 5.5%; background: linear-gradient(135deg, #F6DB8E, #B8873F 40%, #F1D27E 62%, #8E6524); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(255, 255, 255, 0.25); cursor: zoom-in; }
.ar-frame img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 2px rgba(80, 52, 14, 0.5); }
.ar-canvas { cursor: crosshair; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.65); }
.ar-canvas svg { display: block; width: 100%; height: auto; }
.ar-pal { position: absolute; left: 16%; bottom: 29.4%; width: 44%; display: flex; gap: 3%; pointer-events: none; }
.ar-pal i { flex: 1; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* Trail Mix: a trail map, a photo from a dusk ride taped to its corner */
.w-trails { position: relative; aspect-ratio: 600 / 480; }
.tr-map { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 10px; background: none; line-height: 0; cursor: pointer; rotate: -1.2deg; box-shadow: 0 22px 36px -18px rgba(0, 0, 0, 0.85); }
.tr-map svg { display: block; width: 100%; height: 100%; }
.tr-lab { font: italic 400 19px/1 var(--serif, serif); fill: #4E5B45; }
.tr-print { position: absolute; right: -4%; top: -8%; width: 22%; padding: 1.8% 1.8% 5.4%; border: 0; background: #FCFAF6; line-height: 0; rotate: 5deg; cursor: zoom-in; box-shadow: 0 16px 26px -14px rgba(0, 0, 0, 0.85); }
.tr-print img { display: block; width: 100%; height: auto; }
.tr-print::before { content: ""; position: absolute; top: -4%; left: 30%; width: 40%; height: 8%; background: rgba(246, 238, 214, 0.78); rotate: -4deg; }
@media (prefers-reduced-motion: reduce) { .cl-item, .bk, .bk-worm { transition: none; } }

/* a book's card, like a Goodreads entry, floating above the bookcase (Dec 1, her note: "somewhat of a goodreads vibe") */
.bk-card { position: absolute; z-index: 5; left: 50%; bottom: calc(100% - 6%); width: min(100%, 560px); translate: -50% 0; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 44px 18px 18px; border-radius: 14px; background: #FCFAF6; color: #1A1816; line-height: 1.4; text-align: left; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.85); }
.bk-card[hidden] { display: none; }
.bkc-cover { display: grid; place-items: center; width: 74px; aspect-ratio: 2 / 3; padding: 8px 6px; border-radius: 3px 6px 6px 3px; background: var(--c); color: var(--ink); font: 400 13px/1.15 var(--serif, serif); text-align: center; box-shadow: inset 5px 0 6px -4px rgba(0, 0, 0, 0.45), 0 8px 14px -8px rgba(0, 0, 0, 0.6); }
.bkc-body { min-width: 0; }
.bkc-t { margin: 0; font: 400 24px/1.1 var(--serif, serif); }
.bkc-by { margin: 3px 0 0; font: 500 14px/1.3 var(--sans); color: #5F5850; }
.bkc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 9px 0 0; }
.bkc-shelf { padding: 3px 10px 4px; border-radius: 999px; background: #EFE8DA; font: 650 12.5px/1.2 var(--sans); color: #5F5850; }
.bkc-shelf.read { background: #E3EFE0; color: #2F5A3A; }
.bkc-stars { display: inline-flex; gap: 2px; } .bkc-stars svg { width: 17px; height: 17px; }
.bkc-sum { margin: 10px 0 0; font: 400 15px/1.5 var(--sans); color: #2B2825; }
.bkc-lab { margin: 12px 0 0; font: 650 12.5px/1.2 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: #8C2F39; }
.bkc-mine { margin: 4px 0 0; font: italic 400 17px/1.4 var(--serif, serif); color: #1A1816; }
.bkc-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; font: 400 24px/1 var(--sans); color: #5F5850; cursor: pointer; }
.bkc-x:hover { background: #EFE8DA; }
.bkc-x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229, 141, 151, 0.7); }
@media (max-width: 639px) {
  .bk-card { width: calc(100vw - 32px); gap: 12px; padding: 14px 38px 14px 14px; }
  .bkc-cover { width: 48px; font-size: 9px; padding: 5px 4px; }
  .bkc-t { font-size: 20px; } .bkc-by { font-size: 12.5px; } .bkc-sum { font-size: 13.5px; } .bkc-mine { font-size: 15px; }
}

/* ---------- Dec 2: her mint fridge render (features/world.js makeFridge) ----------
   Closed and open are two pictures of the same fridge that crossfade, with a small settle. The badge and the prints ride
   on .fd-plane, fitted to the closed door's angle (from the old main-page fridge), and fade with the door. */
.fr.fr-r { aspect-ratio: 1; perspective: none; container-type: inline-size; }
.fr.fr-r > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45)); transition: opacity 0.4s ease, scale 0.6s var(--e-out, cubic-bezier(0.2, 0.7, 0.2, 1)); }
.fr.fr-r .fr-in { opacity: 0; }
.fr.fr-r.open .fr-in { opacity: 1; }
.fr.fr-r.open .fr-shut { opacity: 0; scale: 1.02; }
.fd-plane { position: absolute; z-index: 1; left: 28%; top: 6.3%; width: 51.3%; height: 86.8%; transform-origin: 0 70.97%; transform: perspective(241.8cqw) rotateY(15deg); transition: opacity 0.3s ease; }
.fd-name { position: absolute; left: 50%; top: 12.6%; width: 50%; aspect-ratio: 6570 / 850; translate: -50% -50%; background: url("../images/fridge-name.svg") center / contain no-repeat; }
.fr.fr-r.open .fd-plane { opacity: 0; pointer-events: none; }
.fr.fr-r .fr-prints { position: absolute; inset: 0; }
.fr.fr-r .fr-print { width: 23%; }
.fr.fr-r .fr-foods { z-index: 3; }
.fr.fr-r .fr-food { border-radius: 10px; }
@media (hover: hover) { .fr.fr-r.open .fr-food:hover { background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); } }
html:not(.motion) .fr.fr-r > img { transition: none; }

/* ---------- Dec 2: Moonet, the easels and the 3-stroke Monet (features/world.js makeArt) ---------- */
.w-art { aspect-ratio: 640 / 470; align-items: flex-end; padding-top: 0; }
.w-art .ea { width: 47%; aspect-ratio: 200 / 270; }
.w-art .ea-legs { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.w-art .ea-on { left: 7%; right: 7%; bottom: 33%; }
.w-art .ar-paint { display: block; width: 86%; height: auto; aspect-ratio: 1000 / 760; padding: 0; border-radius: 2px; background: #F3EDDF; box-shadow: 0 14px 22px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.08); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 25c2-1 3-3 6-3 2 0 3 1 3 3s-2 2-4 2c-2 0-4-1-5-2z' fill='%233F6FB0'/%3E%3Cpath d='M11 19 24 4c1-1 2 0 1 1L13 21z' fill='%23A8743F'/%3E%3Cpath d='M10 20l2 2' stroke='%23C9CDD2' stroke-width='3'/%3E%3C/svg%3E") 3 25, crosshair; touch-action: none; }
.w-art .ar-paint:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(229, 141, 151, 0.6), 0 14px 22px -10px rgba(0, 0, 0, 0.7); }
.w-art .ar-frame { left: 12%; right: 12%; bottom: 33%; }
.ar-how { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; translate: -50% 0; border-radius: 999px; background: rgba(252, 250, 246, 0.94); color: #1A1816; font: italic 400 17px/1.1 var(--serif, Georgia, serif); white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.ar-dots { display: inline-flex; gap: 5px; }
.ar-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(26, 24, 22, 0.16); transition: background-color 0.3s ease, scale 0.3s ease; }
.ar-dots i.on { background: #3F6FB0; scale: 1.15; }
.ar-dots i.on:nth-child(2) { background: #6A9A52; }
.ar-dots i.on:nth-child(3) { background: #E9A3B5; }
.ar-again { margin-left: 2px; padding: 3px 10px; border: 0; border-radius: 999px; background: #1A1816; color: #FCFAF6; font: 600 13px/1.2 var(--sans, system-ui); cursor: pointer; }
.w-art .ar-pal { display: none; }
@media (max-width: 640px) { .ar-how { font-size: 14px; padding: 6px 11px; gap: 7px; } .ar-dots i { width: 7px; height: 7px; } }

/* ---------- Dec 2: Jupiggter, her guinea pig to pet and feed (features/world.js makePig) ---------- */
.w-pig { position: relative; aspect-ratio: 420 / 330; }
.pg-hit { position: absolute; left: 6%; right: 0; top: 0; padding: 0; border: 0; background: none; line-height: 0; cursor: grab; touch-action: pan-y; }
.pg-hit:active { cursor: grabbing; }
.pg-hit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(229, 141, 151, 0.6); border-radius: 30px; }
.pg-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35)); }
.pg-svg .pg-body { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-breathe 2.8s ease-in-out infinite; }
.pg-svg .pg-eye, .pg-svg .pg-happy { transition: opacity 0.2s ease; }
.pg-svg .pg-eye { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes pg-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.012 0.99; } }
.pg-bowl { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(252, 250, 246, 0.12); backdrop-filter: blur(6px); }
.pg-food { width: clamp(40px, 5vw, 58px); aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; transition: translate 0.25s var(--e-out, ease-out), scale 0.25s var(--e-out, ease-out); }
.pg-food svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
@media (hover: hover) { .pg-food:hover { translate: 0 -4px; scale: 1.08; } }
.pg-food:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229, 141, 151, 0.6); }
.pg-fly { position: fixed; z-index: 80; pointer-events: none; transition: scale 0.2s ease, opacity 0.2s ease; }
.pg-fly svg { display: block; width: 100%; height: 100%; }
.pg-heart { position: absolute; z-index: 3; color: #F29AAE; font-size: clamp(18px, 2vw, 26px); pointer-events: none; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.pg-print { position: absolute; right: -2%; top: -6%; width: 26%; padding: 4px 4px 14px; border: 0; background: #FCFAF6; rotate: 6deg; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.6); cursor: zoom-in; line-height: 0; }
.pg-print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg-print::before { content: ""; position: absolute; left: 50%; top: -7px; width: 40%; height: 14px; translate: -50% 0; rotate: -3deg; background: rgba(240, 226, 196, 0.75); }
@media (prefers-reduced-motion: reduce) { .pg-svg .pg-body { animation: none; } }
.w-pig .pg-print { width: 22%; right: 0; top: -4%; }
.w-pig .pg-print img { width: 100%; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; object-position: 45% 40%; }

/* ---------- Dec 2: the books, rendered (her note: "the books need to be rendered diff") ----------
   Each spine is a rounded board: light catches its left third and it falls into shadow on the right, cloth grain runs
   across it, and it casts a shadow on the back of the case. Hardcovers with gold titles get gilt bands and gilt
   lettering; Crime and Punishment is leather with raised ribs; the paperbacks stay matte. The case has wood grain and a
   front lip the books stand behind. */
.bk-case { background: repeating-linear-gradient(90deg, rgba(60, 34, 12, 0.07) 0 2px, transparent 2px 9px), repeating-linear-gradient(90deg, rgba(255, 230, 190, 0.05) 0 1px, transparent 1px 13px), linear-gradient(#C3925E, #8C6136); }
.bk-row { background: radial-gradient(120% 80% at 50% 0%, #4A3527, #20160F 70%); box-shadow: inset 0 14px 18px -10px rgba(0, 0, 0, 0.8), inset 0 -6px 10px -6px rgba(0, 0, 0, 0.6); }
.bk-row::after { content: ""; position: absolute; z-index: 2; left: -2.6%; right: -2.6%; bottom: -3.2%; height: 4.5%; border-radius: 2px; background: linear-gradient(#D3A26C, #9A6B3B); box-shadow: 0 -3px 6px -2px rgba(0, 0, 0, 0.45); pointer-events: none; }
.bk { background-color: var(--c); background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(255, 255, 255, 0.18) 20%, rgba(255, 255, 255, 0.07) 42%, rgba(0, 0, 0, 0.06) 68%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 3px);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 5px 2px 9px -3px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.bk-flat { background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0.05) 60%, rgba(0, 0, 0, 0.3) 100%); box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.6); }
/* gilt: double bands near the top and bottom, and the title in gold leaf */
.bk.bk-gilt::before, .bk.bk-gilt::after { height: 3.4%; opacity: 1; background: linear-gradient(90deg, #7A5720, #F4DA92 32%, #C9993F 60%, #6E4E1C) top / 100% 32% no-repeat, linear-gradient(90deg, #7A5720, #F4DA92 32%, #C9993F 60%, #6E4E1C) bottom / 100% 32% no-repeat; }
.bk.bk-gilt .bk-t, .bk.bk-gilt .bk-by { background: linear-gradient(180deg, #FBE7AE, #D7A94E 55%, #9E7330); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45)); opacity: 1; }
/* leather with raised ribs across the spine */
.bk.bk-ribs { background-image:
    linear-gradient(transparent 22%, rgba(0, 0, 0, 0.4) 22.6%, rgba(255, 220, 190, 0.22) 23.6%, transparent 25%),
    linear-gradient(transparent 52%, rgba(0, 0, 0, 0.4) 52.6%, rgba(255, 220, 190, 0.22) 53.6%, transparent 55%),
    linear-gradient(transparent 82%, rgba(0, 0, 0, 0.4) 82.6%, rgba(255, 220, 190, 0.22) 83.6%, transparent 85%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.2) 22%, rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px) 0 0 / 5px 5px; }
/* the picture books lean a little on the moon bookend */
.bk.bk-pic { rotate: -3deg; transform-origin: 100% 100%; }
.bk.bk-pic + .bk.bk-pic { rotate: -6deg; }
.bk.out { translate: 0 -12%; }
/* the card's little cover looks bound too */
.bkc-cover { background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 6%, rgba(255, 255, 255, 0.15) 9%, transparent 20%, rgba(0, 0, 0, 0.12) 100%); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.45), inset 0 0 0 4px var(--c), inset 0 0 0 5px rgba(240, 210, 140, 0.55); }

/* ---------- Dec 2: her guinea pig moves (features/world.js makePig, second version) ----------
   A wide floor she trots across. The tray of treats and her hay ball sits bottom left; drag one out and drop it anywhere
   on her floor. */
.w-pig { position: relative; aspect-ratio: 640 / 360; }
.pg-floor { position: absolute; left: -4%; right: -4%; bottom: 7%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 240, 214, 0.12), transparent); pointer-events: none; }
.pg-pig { position: absolute; left: 0; bottom: 4%; width: 50%; will-change: transform; }
.pg-flip { transform-origin: 50% 50%; }
.pg-pig .pg-hit { position: relative; left: 0; right: auto; top: auto; width: 100%; }
.pg-tray { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(252, 250, 246, 0.12); backdrop-filter: blur(6px); }
.pg-tray .pg-food { width: clamp(44px, 5.2vw, 62px); cursor: grab; touch-action: none; animation: pg-bob 2.4s ease-in-out infinite; }
.pg-tray .pg-food:nth-child(2) { animation-delay: 0.3s; } .pg-tray .pg-food:nth-child(3) { animation-delay: 0.6s; } .pg-tray .pg-food:nth-child(4) { animation-delay: 0.9s; }
.pg-tray .pg-food.lifted { opacity: 0.3; animation: none; }
@keyframes pg-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.pg-tip { margin-left: 4px; font: italic 400 15px/1 var(--serif, Georgia, serif); color: rgba(244, 239, 230, 0.75); white-space: nowrap; }
.pg-drag { position: fixed; z-index: 90; translate: -50% -60%; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.pg-drag svg, .pg-onfloor svg { display: block; width: 100%; height: 100%; }
.pg-onfloor { position: absolute; bottom: 7%; width: clamp(40px, 5vw, 58px); aspect-ratio: 3 / 2; translate: -50% 0; transition: scale 0.25s ease, opacity 0.25s ease; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4)); pointer-events: none; z-index: 1; }
.pg-onfloor.pg-ball { width: clamp(34px, 4vw, 48px); }
.w-pig .pg-heart { z-index: 3; }
.w-pig .pg-print { top: -2%; right: 0; width: 18%; }
@media (prefers-reduced-motion: reduce) { .pg-tray .pg-food { animation: none; } }
@media (max-width: 640px) { .pg-tip { display: none; } .pg-pig { width: 62%; } }

/* Dec 3: the book card shows the real cover (features/world.js, images/books/) */
.bkc-img { display: block; width: 104px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 18px -8px rgba(0, 0, 0, 0.55), -2px 0 0 rgba(0, 0, 0, 0.18); }
@media (max-width: 640px) { .bkc-img { width: 66px; } }
