:root{--ink:#f1e9da;--hot:#ffcf7a;--green:#7dffb2;--blue:#9fd3ff;--W:2576px;--H:1438px}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#07060a;color:var(--ink);font-family:"IBM Plex Mono",ui-monospace,monospace;overflow:hidden}

.topbar{position:fixed;inset:0 0 auto 0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 18px;background:linear-gradient(#000a,#0000)}
.brand{font-family:Silkscreen,monospace;font-size:15px;letter-spacing:.08em}
.topbar nav{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.topbar button,.topbar .lock{font:inherit;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);text-decoration:none;
  background:#0006;border:1px solid #fff3;border-radius:3px;padding:6px 10px;cursor:pointer}
.topbar button:hover,.topbar button:focus-visible,.topbar .lock:hover,.topbar .lock:focus-visible{border-color:var(--hot);color:#fff;outline:none}
.topbar button[aria-pressed=true]{border-color:var(--green);color:var(--green)}
/* where the menu does not fit on one row beside the name, its buttons go behind one "Menu" button at the top right
   (room.js, fitMenu): a list over the room, in the same button style */
body.menu-collapsed .topbar{flex-direction:row;align-items:center}
body.menu-collapsed .topbar nav{display:none;position:absolute;top:calc(100% - 2px);right:12px;flex-direction:column;flex-wrap:nowrap;align-items:stretch;
  gap:6px;padding:8px;background:#000d;border:1px solid #fff3;border-radius:4px;max-height:calc(100vh - 80px);overflow:auto}
body.menu-collapsed.menu-open .topbar nav{display:flex}
body.menu-collapsed .topbar nav button,body.menu-collapsed .topbar nav .lock{text-align:left;font-size:12px;padding:9px 14px}
.menu-btn[hidden]{display:none}
.menu-btn[aria-expanded=true]{border-color:var(--hot)}

.viewport{position:fixed;inset:0;overflow:hidden}
/* B-018: an upright phone pans the room sideways; vertical moves stay with the browser */
body.pan-mode .viewport{touch-action:pan-y pinch-zoom}
body.pan-mode{-webkit-user-select:none;user-select:none}
.stage.no-anim{transition:none}
/* B-018: where the photo does not fill the height, a blurred, darkened copy fills above and below (flat room only;
   with depth on, the depth shader draws it). The image loads only when this shows. */
.backdrop{position:absolute;inset:-60px;display:none;background:#07060a url(/room/room-small.webp) center/cover;filter:blur(30px) brightness(.35)}
body.letterbox:not(.depth) .backdrop{display:block}
.stage{position:absolute;left:0;top:0;width:var(--W);height:var(--H);transform-origin:0 0;
  transition:transform .8s cubic-bezier(.65,0,.25,1);will-change:transform}
.bg{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none}

/* live screens */
.screen{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;pointer-events:none}
.screen canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.screen::after{content:"";position:absolute;inset:0;border-radius:inherit;
  background:
    repeating-linear-gradient(0deg,#0003 0 3px,#0000 3px 6px),
    radial-gradient(120% 110% at 50% 45%,#0000 55%,#0008 100%),
    linear-gradient(160deg,#fff2 0%,#fff0 30%);
  mix-blend-mode:normal}
/* canvas-sized boxes mapped onto the screens in the photo (perspective) */
#mon{width:560px;height:420px;border-radius:70px/80px;
  transform:matrix3d(0.171239,-0.00189287,0,-5.11743e-05,0.139819,0.324502,0,8.03872e-05,0,0,1,0,1770.56,382.715,0,1)}
#tv{width:512px;height:384px;border-radius:56px/64px;
  transform:matrix3d(0.173011,0.00582138,0,-0.000135023,0.395363,0.727678,0,0.000216755,0,0,1,0,1863.84,808.42,0,1)}
/* the YouTube player for a tape, fitted to the TV screen; scanlines and a rolling tracking band on top */
.tv-embed{width:512px;height:384px;border-radius:56px/64px;pointer-events:auto;background:#000;
  transform:matrix3d(0.173011,0.00582138,0,-0.000135023,0.395363,0.727678,0,0.000216755,0,0,1,0,1863.84,808.42,0,1)}
.tv-embed[hidden]{display:none}
.tv-embed iframe{width:100%;height:100%;border:0;display:block}
.tv-embed::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:repeating-linear-gradient(0deg,#0003 0 3px,#0000 3px 6px),
             linear-gradient(#0000 0 46%,#fff1 48%,#fff2 50%,#fff1 52%,#0000 54%) 0 0/100% 260%;
  animation:track 7s linear infinite}
@keyframes track{from{background-position:0 0,0 -100%}to{background-position:0 0,0 100%}}
/* the BBS menu: a button over each line of the monitor (room.js); visible only as a glow under the pointer or the keyboard */
.bbs-menu button{position:absolute;left:24px;width:512px;height:30px;padding:0;background:none;border:0;border-radius:3px;cursor:pointer;pointer-events:auto}
.bbs-menu[hidden]{display:none}
.bbs-menu button:hover,.bbs-menu button:focus-visible{outline:none;background:#8dffb91f;box-shadow:0 0 0 2px #8dffb966}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:pre;border:0}
body.zoomed .hot{pointer-events:none}                                   /* zoomed in: the room's objects step aside (the TV must not open the game while a tape plays) */
.crt-green canvas{filter:blur(.35px) drop-shadow(0 0 2px #7dffb2)}
.crt-blue canvas{filter:blur(.3px)}

/* light */
.glow{position:absolute;pointer-events:none;mix-blend-mode:screen;border-radius:50%}
.lamp{left:1180px;top:250px;width:720px;height:520px;background:radial-gradient(closest-side,#ffb45a55,#ffb45a00);animation:lamp 6s ease-in-out infinite}
.spill-green{left:1625px;top:250px;width:440px;height:400px;background:radial-gradient(closest-side,#4dff9a22,#0000)}
.spill-blue{left:1700px;top:680px;width:560px;height:520px;background:radial-gradient(closest-side,#5aa8ff22,#0000)}
@keyframes lamp{0%,100%{opacity:1}47%{opacity:.88}50%{opacity:.96}}

/* the lava lamp (room.js, drawLava): live blobs over the glass in the photo, and its light on the wall and the nightstand.
   --lava is the liquid's colour; it fades over 1 s. Flat room: .lava-hue moves the photo's orange glow to the lamp's colour,
   and with the desk lamp off .lava-tint gives the room's light near the lamp that colour. With depth on, the shader does both. */
.lava{position:absolute;left:1050px;top:420px;width:64px;height:116px;pointer-events:none}
.lava-glow,.lava-hue,.lava-tint{position:absolute;left:760px;top:150px;width:660px;height:820px;pointer-events:none;
  background-color:rgb(var(--lava,218 96 40));transition:background-color 1s linear,opacity 1s linear;
  -webkit-mask-image:radial-gradient(closest-side at 49% 42%,#000 0,#0008 40%,#0000 100%);mask-image:radial-gradient(closest-side at 49% 42%,#000 0,#0008 40%,#0000 100%)}
.lava-glow{mix-blend-mode:screen;opacity:.14}
.lava-hue{mix-blend-mode:hue;opacity:var(--lava-shift,0)}
.lava-tint{mix-blend-mode:multiply;opacity:0}
body.lamp-off .lava-tint{opacity:.45}
body.depth .lava-hue,body.depth .lava-tint{display:none}

/* snow in the window */
.snow{position:absolute;left:1008px;top:88px;width:336px;height:300px;pointer-events:none;mix-blend-mode:screen;
  -webkit-mask-image:radial-gradient(75% 70% at 50% 50%,#000 70%,#0000 100%);mask-image:radial-gradient(75% 70% at 50% 50%,#000 70%,#0000 100%)}

/* hotspots */
.hot{position:absolute;background:none;border:0;padding:0;cursor:pointer;border-radius:18px;outline:none;color:inherit}
.hot span{position:absolute;left:50%;bottom:calc(100% - 26px);transform:translate(-50%,6px);opacity:0;transition:.2s;
  font-family:Silkscreen,monospace;font-size:26px;letter-spacing:.12em;color:#fff;background:#000b;border:2px solid var(--hot);
  padding:6px 14px;border-radius:4px;white-space:nowrap;pointer-events:none}
.hot:hover,.hot:focus-visible{box-shadow:inset 0 0 0 3px #ffcf7a88,0 0 60px #ffcf7a33}
.hot.label-in span{bottom:auto;top:110px}                               /* the corkboard reaches the top edge: keep its label inside */
.hot:hover span,.hot:focus-visible span{opacity:1;transform:translate(-50%,0)}
.hot.cat:hover,.hot.cat:focus-visible{box-shadow:none}
/* "Show me": labels and outlines on every object (not on the extra duplicate areas) */
body.show-all .hot:not([tabindex="-1"]){box-shadow:inset 0 0 0 3px #ffcf7a88,0 0 60px #ffcf7a33}
body.show-all .hot:not([tabindex="-1"]) span{opacity:1;transform:translate(-50%,0)}
body.zoomed .hot span{opacity:0!important}
body.zoomed .hot{box-shadow:none!important}

/* parallax layer */
.par{position:absolute;inset:0;will-change:transform}

/* the cat breathes; faster for a moment when it purrs */
.cat-breath{left:385px;top:520px;width:335px;height:140px;background-position:-385px -520px;transform-origin:50% 100%;
  -webkit-mask-image:radial-gradient(closest-side,#000 72%,#0000 100%);mask-image:radial-gradient(closest-side,#000 72%,#0000 100%);
  animation:breathe 3.6s ease-in-out infinite}
.cat-breath.purring{animation-duration:1.3s}
@keyframes breathe{0%,100%{transform:scale(1,1)}45%{transform:scale(1.008,1.03)}}

/* boombox speaker cones pump on the beat while music plays (96 bpm) */
.cone{border-radius:50%;opacity:0;transition:opacity .3s}
.cone-l{left:643px;top:1183px;width:144px;height:144px;background-position:-643px -1183px}
.cone-r{left:928px;top:1124px;width:128px;height:128px;background-position:-928px -1124px}
body.music .cone{opacity:1;animation:pump .625s ease-out infinite}
@keyframes pump{0%{transform:scale(1.035)}35%,100%{transform:scale(1)}}

/* lamp off: only the desk lamp's light goes. The desk, the wall, the corkboard and the floor in front of the desk go dark;
   the rest of the room darkens a little. The lava lamp, the window, the phone, the screens, the clock and the stars stay lit.
   The light map is made in room.js (lampMap). Flat room: it multiplies the photo here. With depth on, the depth shader
   multiplies the photo by the same map (a blend here cannot reach the depth canvas), and the copy layers are dimmed by filter. */
.night{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .35s;background-size:2576px 1438px;mix-blend-mode:multiply}
body.lamp-off .night{opacity:1}
body.depth .night{display:none}
.copy{transition:filter .35s}
body.depth.lamp-off .copy{filter:brightness(var(--dim,1))}
body.lamp-off .lamp{opacity:0;animation:none}
.lamp{transition:opacity .35s}
.stars{position:absolute;inset:0;width:2576px;height:1438px;pointer-events:none;opacity:0;transition:opacity 2.5s ease-in;fill:#d6ffb0}
body.lamp-off .stars{opacity:.85}
body.lamp-off .spill-green{background:radial-gradient(closest-side,#4dff9a40,#0000);transform:scale(1.5)}
body.lamp-off .spill-blue{background:radial-gradient(closest-side,#5aa8ff40,#0000);transform:scale(1.5)}

/* VCR display: blinking 12:00, or the tape counter while playing (mapped onto the slanted panel) */
.vcr-clock{position:absolute;left:0;top:0;width:240px;height:72px;transform-origin:0 0;pointer-events:none;
  transform:matrix3d(0.7,0.34057,0,0.000219298,0,0.277778,0,0,0,0,1,0,1992,1173,0,1)}

/* the handwritten labels on the tape stack: canvases mapped onto the white labels in the photo (measured, ROOM_PROMPT.md) */
.tape-ink,.album-ink{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}
/* a tape spine in the stack: the hotspot slants with the spine; its label stays level */
.hot.spine{transform:skewY(-16deg);transform-origin:0 0;border-radius:4px}
.hot.spine span{transform:translate(-50%,6px) skewY(16deg)}
.hot.spine:hover span,.hot.spine:focus-visible span{transform:translate(-50%,0) skewY(16deg)}
body.show-all .hot.spine:not(:hover):not(:focus-visible) span{opacity:0}   /* "Show me": outlines only, so the labels do not pile up */

/* clock radio digits */
.clock{position:absolute;left:977px;top:610px;width:70px;height:24px;border-radius:2px;pointer-events:none}

/* the phone rings: a copy of the receiver shakes over the photo, with a warm glow */
/* "copy" layers: a piece of the photo, cut out and moved slightly to bring an object to life */
.copy{position:absolute;pointer-events:none;background-image:url(/room/room.webp);background-size:2576px 1438px;background-repeat:no-repeat}
.phone-shake{left:2140px;top:115px;width:70px;height:190px;opacity:0;background-position:-2140px -115px;transform-origin:50% 8%}
.phone-shake.ring{opacity:1;animation:ring .1s linear infinite}
@keyframes ring{0%,100%{transform:rotate(-1.4deg)}50%{transform:rotate(1.4deg)}}
.ring-glow{position:absolute;left:2085px;top:50px;width:250px;height:320px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,#ffe6a855,#ffe6a800);mix-blend-mode:screen;transition:opacity .25s}
.ring-glow.on{opacity:1}

/* a car passes outside: headlights in the window, and their light sweeps across the room */
.car{position:absolute;left:1010px;top:90px;width:330px;height:295px;overflow:hidden;pointer-events:none;
  -webkit-mask-image:radial-gradient(75% 70% at 50% 50%,#000 70%,#0000 100%);mask-image:radial-gradient(75% 70% at 50% 50%,#000 70%,#0000 100%)}
.car i{position:absolute;top:212px;left:-30px;width:7px;height:5px;border-radius:50%;background:#fff8e6;
  box-shadow:0 0 8px 3px #fff3cf,0 0 26px 8px #ffe9a866;opacity:0}
.car i+i{top:213px;margin-left:14px}
.car.go i{animation:car 6s linear}
@keyframes car{0%{transform:translateX(0);opacity:0}8%{opacity:1}92%{opacity:1}100%{transform:translateX(400px);opacity:0}}
.sweep{position:absolute;left:0;top:0;width:2576px;height:1438px;pointer-events:none;mix-blend-mode:screen;opacity:0;
  background:linear-gradient(105deg,#0000 0 45%,#fff2d814 48.5%,#fff2d82e 50%,#fff2d814 51.5%,#0000 55% 100%);background-size:220% 100%;
  -webkit-mask-image:linear-gradient(#000 0 35%,#0000 75%);mask-image:linear-gradient(#000 0 35%,#0000 75%)}
.sweep.go{animation:sweep 6s linear}
@keyframes sweep{0%{opacity:0;background-position:0% 0}15%{opacity:1}85%{opacity:1}100%{opacity:0;background-position:100% 0}}

/* camera flash */
.flash{position:fixed;inset:0;z-index:28;background:#fffdf6;opacity:0;pointer-events:none}
.flash.on{animation:flash .55s ease-out}
@keyframes flash{0%{opacity:.85}100%{opacity:0}}

/* boot screen: the C64 text in the monitor's green (Carlos chose green over C64 blue, 13 Nov 2026) */
.boot{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#030603;cursor:pointer;transition:opacity .6s}
.boot pre{margin:0;padding:24px;min-width:min(520px,90vw);font:600 clamp(14px,2.2vw,22px)/1.5 "IBM Plex Mono",monospace;color:#8dffb9;
  text-shadow:0 0 6px #4dff9a88}
.boot.out{opacity:0;pointer-events:none}


/* film look */
.vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 90% at 50% 45%,#0000 55%,#000a 100%)}
.grain{position:absolute;inset:-50%;pointer-events:none;opacity:.07;mix-blend-mode:overlay;background-size:256px 256px}
.hint{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);margin:0;z-index:15;font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:#fff8;text-shadow:0 1px 3px #000}

/* paper sheet */
.sheet-wrap{position:fixed;inset:0;z-index:30;display:grid;place-items:center end;padding:16px 48px;background:linear-gradient(90deg,#0000 30%,#0007)}
@media (max-width:900px){.sheet-wrap{place-items:end center;padding:16px;background:linear-gradient(#0000 40%,#0007)}.sheet{max-height:52vh}}
.sheet-wrap[hidden]{display:none}
.sheet{position:relative;width:min(560px,100%);max-height:84vh;overflow:auto;color:#2b2333;
  background:#fbf7ec linear-gradient(#0000 31px,#cbdff0 32px) 0 18px/100% 32px;
  border-left:46px solid #fbf7ec;box-shadow:inset 2px 0 0 #ef9aae,0 30px 80px #000c;
  padding:30px 26px 22px;border-radius:2px;transform:rotate(-.6deg);animation:sheet .35s ease-out}
@keyframes sheet{from{transform:translateY(30px) rotate(-2deg);opacity:0}}
.sheet h2{font-family:Kalam,cursive;font-weight:700;font-size:34px;margin:0 0 10px;line-height:1.1;color:#203d7a}
.sheet p,.sheet li{font-family:Kalam,cursive;font-size:20px;line-height:32px;margin:0}
.sheet .lead{font-weight:700}
.disks{list-style:none;margin:0;padding:0}
/* the tape box: each tape a label on its spine */
.tapes{display:grid;gap:8px;margin:4px 0 12px}
.tape{display:block;width:100%;text-align:left;cursor:pointer;font:600 15px "IBM Plex Mono",monospace;letter-spacing:.06em;color:#eee;
  background:#1b1a1f;border:0;border-radius:3px;padding:8px 12px 8px 14px;box-shadow:inset 6px 0 0 #3a3842}
.tape.hand{font:700 20px Kalam,cursive;letter-spacing:0;color:#1d3f8f;background:#f4efe0 linear-gradient(#c8343c 0 5px,#0000 5px);padding-top:10px;transform:rotate(-.4deg)}
.tape:hover,.tape:focus-visible{outline:2px solid var(--hot);outline-offset:2px}.disks b{display:inline-block;min-width:76px;color:#b2304f}
/* paper that matches the object */
.sheet[data-theme=tractor]{color:#18241a;border-left:0;padding:30px 44px 24px;transform:rotate(-.3deg);
  background:radial-gradient(circle at 12px 16px,#c9cfc4 0 5px,#0000 6px) 0 0/24px 32px repeat-y,
             radial-gradient(circle at 12px 16px,#c9cfc4 0 5px,#0000 6px) 100% 0/24px 32px repeat-y,
             repeating-linear-gradient(#f7faf3 0 32px,#dcebd3 32px 64px);box-shadow:0 30px 80px #000c}
.sheet[data-theme=tractor] h2{font:600 26px "IBM Plex Mono",monospace;letter-spacing:.04em;text-transform:uppercase;color:#18241a}
.sheet[data-theme=tractor] p,.sheet[data-theme=tractor] li{font-family:"IBM Plex Mono",monospace;font-size:16px}
.sheet[data-theme=tractor] .disks b{color:#7a1e33}

.sheet[data-theme=slip]{color:#2a1218;border-left:0;padding:22px 26px 22px;background:#f6c4cd;
  box-shadow:inset 0 0 0 1px #d99aa7,0 30px 80px #000c;transform:rotate(.8deg)}
.slip-head{display:none}
.sheet[data-theme=slip] .slip-head{display:block;margin:0 0 12px;padding:6px 0;border-top:3px double #7a2236;border-bottom:3px double #7a2236;
  font:700 18px "IBM Plex Mono",monospace;letter-spacing:.14em;text-transform:uppercase;text-align:center;color:#7a2236}
.sheet[data-theme=slip] h2{color:#2a1218}
.sheet[data-theme=slip] p{background:linear-gradient(#0000 31px,#c98d99 32px) 0 0/100% 32px}
.sheet[data-theme=slip] a{color:#7a2236;text-underline-offset:3px}
.sheet[data-theme=slip] a:hover,.sheet[data-theme=slip] a:focus-visible{outline:2px solid var(--hot);outline-offset:2px}

.sheet[data-theme=contact]{color:#ece9e1;border-left:0;padding:38px 28px 38px;transform:rotate(-.4deg);
  background:repeating-linear-gradient(90deg,#0000 0 10px,#e8e4da 10px 20px,#0000 20px 30px) 0 9px/100% 10px no-repeat,
             repeating-linear-gradient(90deg,#0000 0 10px,#e8e4da 10px 20px,#0000 20px 30px) 0 calc(100% - 9px)/100% 10px no-repeat,
             #151517;box-shadow:0 30px 80px #000c}
.sheet[data-theme=contact] h2{color:#ece9e1;display:inline-block;padding:0 10px;border:3px solid #e33b3b;border-radius:40% 55% 45% 60%/55% 45% 60% 40%}
.sheet[data-theme=contact] .close{color:#aaa69c}

/* a link from one sheet to another (Photography to the album and the prints) */
.sheet .more{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sheet .more button{font:700 17px Kalam,cursive;color:inherit;background:#0000;border:1px solid currentColor;border-radius:3px;padding:2px 10px;cursor:pointer}
.sheet .more button:hover,.sheet .more button:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.sheet .more a{font:700 17px Kalam,cursive;color:inherit;border:1px solid currentColor;border-radius:3px;padding:2px 10px;text-decoration:none}
.sheet .more a:hover,.sheet .more a:focus-visible{outline:2px solid var(--hot);outline-offset:2px}

/* the year switch on About and Work (B-005): two buttons, the pressed one filled */
.era{display:inline-flex;margin:0 0 14px;border:2px solid currentColor;border-radius:3px}
.era button{font:600 15px "IBM Plex Mono",monospace;letter-spacing:.06em;color:inherit;background:#0000;border:0;padding:4px 14px;cursor:pointer}
.era button[aria-pressed=true]{background:#18241a;color:#f7faf3}
.era button:hover,.era button:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.sheet .side p+p{margin-top:10px}
.sheet .where{font-size:14px}
.sheet .cv h3{font:600 15px "IBM Plex Mono",monospace;letter-spacing:.06em;text-transform:uppercase;margin:16px 0 4px;border-bottom:1px solid currentColor}
.sheet .cv h3:first-child{margin-top:0}
.sheet .cv p,.sheet .cv li{font-size:14px;line-height:22px}
.sheet .cv .job{margin:0 0 12px}
.sheet .cv .job p+p{margin-top:4px}
.sheet .cv .note{font-style:italic}
.sheet .cv .role{margin-top:8px}
.sheet .cv ul{margin:2px 0 0;padding-left:20px}
.developing{font-family:Kalam,cursive;font-size:20px;line-height:30px;margin:14px 0 0}

/* the photo album (FACE BOOK): black album paper inside a burgundy cover, photos held by photo corners, a page per year */
.sheet[data-theme=album]{color:#efe8d8;background:#1b1817;border:14px solid #5a1a25;border-left-width:24px;padding:26px 24px 20px;
  box-shadow:inset 0 0 0 1px #3a3230,inset 0 0 40px #000a,0 30px 80px #000c;transform:rotate(-.4deg)}
.sheet[data-theme=album] h2{color:#f3ecdc}
.sheet[data-theme=album] .close{color:#c9bfae}
.album-year{font:700 26px Kalam,cursive;margin:0 0 8px;min-height:8px;color:#f3ecdc}
.album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:32px 22px;padding:6px 6px 0}
.album-photo{position:relative;margin:0}
.album-photo .face{position:relative;aspect-ratio:3/2;background:#100e0d;box-shadow:0 1px 3px #000c}
.album-photo.empty .face{background:#221e1c;box-shadow:inset 0 0 0 1px #2e2826}
.album-photo img{display:block;width:100%;height:100%;object-fit:cover}
/* four photo corners, gold paper */
.album-photo::before,.album-photo::after,.album-photo .face::before,.album-photo .face::after{content:"";position:absolute;z-index:1;width:20px;height:20px;
  background:linear-gradient(135deg,#e7d39a,#a8873e)}
.album-photo::before{left:-5px;top:-5px;clip-path:polygon(0 0,100% 0,0 100%)}
.album-photo::after{right:-5px;top:-5px;clip-path:polygon(0 0,100% 0,100% 100%)}
.album-photo .face::before{left:-5px;bottom:-5px;clip-path:polygon(0 0,100% 100%,0 100%)}
.album-photo .face::after{right:-5px;bottom:-5px;clip-path:polygon(100% 0,100% 100%,0 100%)}
.album-photo figcaption{font:700 16px/1.3 Kalam,cursive;color:#e9e1cf;margin-top:6px}
.album-nav{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font:700 16px Kalam,cursive}
.album-nav button{font:inherit;color:#efe8d8;background:none;border:1px solid #6b5f58;border-radius:3px;padding:2px 10px;cursor:pointer}
.album-nav button:disabled{opacity:.3;cursor:default}
.album-nav button:not(:disabled):hover,.album-nav button:focus-visible{outline:2px solid var(--hot);outline-offset:2px}

/* the instant prints: square pictures in white frames on the quilt, developing from grey to colour */
.sheet[data-theme=instant]{color:#f2efe6;border-left:0;padding:28px 26px 22px;transform:rotate(.3deg);
  background:repeating-linear-gradient(45deg,#0000 0 22px,#ffffff08 22px 24px),repeating-linear-gradient(-45deg,#0000 0 22px,#00000014 22px 24px),#2f3d58;
  box-shadow:0 30px 80px #000c}
.sheet[data-theme=instant] h2{color:#f2efe6}
.sheet[data-theme=instant] .close{color:#c8cfdc}
.prints{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:6px 4px 4px}
.print{margin:0;padding:7% 7% 0;background:#f6f4ee;box-shadow:0 3px 10px #0008;transform:rotate(var(--tilt,0deg));display:flex;flex-direction:column}
.print .face{aspect-ratio:1;overflow:hidden;background:#3a3b37}
.print img{display:block;width:100%;height:100%;object-fit:cover;animation:develop 7s ease-in var(--delay,0s) both}
.print.empty .face{animation:undeveloped 9s ease-in-out var(--delay,0s) both}
.print figcaption{font:700 15px/1.2 Kalam,cursive;color:#1d3f8f;padding:5px 0 0}
.print::after{content:"";display:block;height:18%;min-height:22px}                 /* the wide bottom edge of an instant print */
.print:has(figcaption)::after{height:auto;min-height:10px}
@keyframes develop{0%{filter:grayscale(1) brightness(.35) contrast(.5) sepia(.3)}35%{filter:grayscale(.8) brightness(.7) contrast(.7) sepia(.5)}100%{filter:none}}
@keyframes undeveloped{0%{background:#2f302c}100%{background:#5d5a50}}

.close{position:absolute;top:6px;right:10px;font-size:28px;line-height:1;background:none;border:0;color:#8a7f92;cursor:pointer}
.close:hover,.close:focus-visible{color:#b2304f;outline:none}

.play-hud{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:25;display:flex;gap:12px;align-items:center;
  font-size:12px;letter-spacing:.12em;text-transform:uppercase;background:#000b;border:1px solid #fff3;padding:8px 12px;border-radius:4px}
.play-hud[hidden]{display:none}
.play-hud button{font:inherit;color:var(--ink);background:none;border:1px solid #fff5;border-radius:3px;padding:5px 9px;cursor:pointer}

body.zoomed .hint{opacity:0}
.pan-hint{color:#fffc}
body.pan-hint-on .hint:not(.pan-hint){display:none}
.pan-hint[hidden]{display:none}

/* depth and the cat world (depth.js, catworld.js) */
body.depth #par{transform:scale(var(--depth-zoom,1))!important}           /* the draw margin */
body.depth .bg{visibility:hidden}                                       /* the depth canvas draws the photo */
.depth-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.cat-world-canvas{z-index:2;pointer-events:auto}
body.cat-world #stage .hot:not(#cat):not(#secretTape){pointer-events:none}
body.cat-world .hint,body.cat-world:not(.cat-flow) .cat-corner{display:none}
/* the cat world: buttons over the floating pieces (catworld.js); labels as in "Show me" */
.cw-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.cw-hot{position:absolute;pointer-events:auto;background:none;border:0;padding:0;cursor:pointer;border-radius:14px;outline:none;color:inherit}
.cw-hot[hidden]{display:none}
.cw-hot span{position:absolute;left:50%;bottom:100%;transform:translate(-50%,4px);opacity:0;transition:.2s;pointer-events:none;white-space:nowrap;
  font-family:Silkscreen,monospace;font-size:14px;letter-spacing:.12em;color:#fff;background:#000b;border:2px solid var(--hot);padding:4px 10px;border-radius:4px}
.cw-hot:hover span,.cw-hot:focus-visible span,body.show-all .cw-hot:not(.cw-secret) span{opacity:1;transform:translate(-50%,0)}
.cw-hot:focus-visible{box-shadow:0 0 0 2px #8dffb9aa}
.cw-cat span{bottom:auto;top:100%}
/* level 2 on an upright phone: the console is off the screen, so a GAME button stands in at the bottom right */
.cw-console.cw-corner{right:12px;bottom:24px;background:#000b;border:2px solid var(--hot);border-radius:6px}
.cw-console.cw-corner span{position:static;display:block;transform:none;opacity:1;border:0;background:none}
/* level 2 secret: a cartoon star on a string, under the top bar; it swings in steps, 12 drawings a second */
.cw-star{width:44px;height:110px;left:82%;top:52px;border-radius:0;transform-origin:50% 0;animation:swing 2.5s steps(30) infinite alternate}
.cw-star svg{display:block}
@keyframes swing{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
.cw-toon-cat{position:absolute;pointer-events:none}
/* the bonus level: the 16-bit game, chunky pixels over the whole screen */
.cw-game{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:auto;touch-action:none;image-rendering:crisp-edges;image-rendering:pixelated}
.cw-toon-cat[hidden]{display:none}
.cw-msg{position:absolute;left:50%;bottom:14%;transform:translateX(-50%);margin:0;max-width:calc(100vw - 32px);text-align:center;
  font:600 18px/1.4 "IBM Plex Mono",monospace;letter-spacing:.06em;color:#8dffb9;text-shadow:0 0 8px #4dff9a;opacity:0;transition:opacity .5s}
.cw-msg.on{opacity:1}
/* level 3: the room again, flowing; time runs backwards (the snow rises, the clocks read in a mirror) */
body.cat-flow .cat-world-canvas{pointer-events:none}
body.cat-flow #snow{scale:1 -1}
body.cat-flow #clock,body.cat-flow #vcrClock{scale:-1 1}
.secret-tape{display:none;border-radius:3px;opacity:.85}
body.cat-flow .secret-tape{display:block}
/* where the cat is off the screen (a pan on a phone), a small cat in the corner opens the world */
.cat-corner{position:fixed;left:12px;bottom:12px;z-index:16;display:grid;place-items:center;width:46px;height:46px;padding:0;cursor:pointer;
  background:#000b;border:1px solid #fff3;border-radius:6px}
.cat-corner:hover,.cat-corner:focus-visible{border-color:var(--hot);outline:none}
.cat-corner[hidden],body.zoomed .cat-corner{display:none}
@media (max-width:700px){
  .topbar{flex-direction:column;align-items:flex-start;padding:10px 12px}
  .cw-star{top:92px;left:76%}
  .brand{font-size:12px}.topbar button,.topbar .lock{font-size:10px;padding:5px 7px}
}
/* ?stats=1 only: the resolution rule readout (depth.js) */
.stats-readout{position:fixed;left:8px;bottom:8px;z-index:60;max-width:calc(100vw - 16px);padding:4px 8px;font:600 11px/1.4 "IBM Plex Mono",monospace;
  color:#8dffb9;background:rgba(0,0,0,.72);pointer-events:none}
