/* ---------- Where did I save it? (his idea, 14 Nov 2026) ----------
   A story that follows the scroll (lost.js), as extra.email's sections do. As "But when the
   time comes," is typed above it (saves.js) an iPhone comes up from below the screen with
   the scroll, turned 7° and at 0.84 of its size and straightening as it reaches its place
   just under the words, as the table used to arrive (grail-app.com's); it rides up with the
   words and is pinned in the middle. In it, the reply is
   typed and sent, and a swipe up goes home, the chat shrinking into the Messages icon as
   the icons zoom in. Then the apps spill out of the phone, which fades back, and wander
   round the question. */
/* Straight under the typing (saves.css); lost.js sets its height, so it stays on screen
   from the phone's arrival until the question has had its time. */
.lost { position: relative; z-index: 2; display: flow-root; overflow-x: clip; height: 530vh; height: 530svh; background: var(--lost-bg); --lost-bg: var(--paper); --lost-ink: #2B2340; --lost-dim: #6B6280; }
.board-dark .lost { --lost-bg: #0F0D12; --lost-ink: #F4F0FF; --lost-dim: #8E8E99; }
/* "A space for everything" (his ask, 20 Nov 2026): as the rows come in, the dark gives way, with the scroll, to
   extra.email's violet (read from its CSS) and its dust (lost.js, --tint, #tint). The layer is the stage's bottom one, so
   leaving, the card carries the violet and the dust inside it (until 20 Nov 2026 the card painted a plain violet over
   them, and the stars went as the rows settled), and the page round it stays dark. */
.tint { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--tint, 0); background: linear-gradient(232deg, #4800C3 21%, #8C49FF 80%, #F99EA0 117%); }
/* The phone's place: in the page just under the typed words (--gap, set by lost.js from
   saves.css's spacing), pinned in the middle once it gets there. --k is the phone's scale. */
.lost-slot {
  position: sticky; top: var(--pin-top, 0px); z-index: 2;   /* lost.js: in the middle of the room under the top bar */
  width: calc(434px * var(--k, 1)); height: calc(906px * var(--k, 1)); margin: var(--gap, 56px) auto 0; pointer-events: none;
}
/* While the story plays, the phone and the icons are fixed to the screen (lost.js .pinned):
   Safari can't hold a sticky element still under smooth scrolling (it stepped a pixel up and
   down each frame), but a fixed one never moves. Same places as when stuck, so no jump. */
.lost.pinned .lost-slot { position: fixed; left: calc(50% - 217px * var(--k, 1)); margin: 0; }
.lost.pinned .lost-stage { position: fixed; left: 0; right: 0; top: 0; margin: 0; }
/* The icons and the question: a screen pinned over the section's top, the phone under it */
/* leaving, a card (lost.js, exitTick): the dark is the card's, and the page shows round it */
.lost.as-card { background: transparent; }
.board-dark .lost.as-card { background: #0F0D12; }   /* How does it work?'s dark, so the page runs on into it with no band */
.lost.as-card .lost-stage { background: var(--lost-bg); }
.lost-stage { position: sticky; top: 0; z-index: 3; height: 100vh; height: 100svh; margin-top: calc(-1 * (var(--gap, 56px) + 906px * var(--k, 1))); overflow: hidden; color: var(--lost-ink); --icon: 76px; pointer-events: none; }

/* The camera: everything sits in one layer */
.lost-world { position: absolute; inset: 0; transform-origin: 50% 50%; }

/* ---------- the iPhone ----------
   iPhone 17 Pro, at 1 px a point: the screen 402 × 874 with 62 pt corners (the display's
   own), in a 12 pt black border and a 4 pt metal band, 434 × 906 in all (its 71.9 ×
   150.0 mm at 460 ppi); the buttons stand 2.5 pt proud of the band. The Dynamic Island is
   126 × 37, 11 pt down. lost.js brings it up with the scroll (--pop-*) and fades it back (--back). */
.lost-phone {
  position: absolute; left: 0; top: 0; width: 434px; height: 906px;
  border-radius: 78px; background: #000000;
  /* the band: a bright edge, then the metal, then a dark line where it meets the glass */
  box-shadow:
    inset 0 0 0 1px #8A8D93, inset 0 0 0 2.5px #4A4C51, inset 0 0 0 4px #1F2023;   /* no shadow round it (his call, 20 Nov 2026) */
  transform-origin: 50% 50%; will-change: transform, opacity;
  transform: translateY(var(--pop-y, 0px)) rotate(var(--pop-r, 0deg)) scale(calc(var(--k, 1) * var(--pop-s, 1)));
  scale: calc((1 - var(--back, 0) * 0.08) * var(--fs, 1));   /* fading back, with the scroll (not eased by the transition); --fs, --fx, --fy: smaller and to one side once the outfit is found (lost.js) */
  translate: calc(217px * (var(--k, 1) - 1) + var(--fx, 0px)) calc(453px * (var(--k, 1) - 1) + var(--fy, 0px));   /* scaled about its middle, kept in its slot */
  --pop-y: 200vh;   /* below the screen until lost.js brings it up with the scroll */
}
.lost-phone .btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2A2B2E, #5A5C61 60%, #3A3B3F); }
.lost-phone .act { left: -2.5px; top: 178px; height: 34px; }
.lost-phone .vup { left: -2.5px; top: 236px; height: 62px; }
.lost-phone .vdn { left: -2.5px; top: 312px; height: 62px; }
.lost-phone .side { right: -2.5px; top: 262px; height: 100px; }
.lost-phone .cam { right: -1px; top: 470px; height: 52px; width: 2.5px; }
.lost-screen {
  position: absolute; inset: 16px; border-radius: 62px; overflow: hidden; background: #000000;
  font-family: var(--system); -webkit-font-smoothing: antialiased; color: #FFFFFF;
  --lost-bg: #000000; --them: #262628; --them-ink: #FFFFFF; --dim: #8E8E93;
}
.lost-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000000; z-index: 6; }
.lost-status { position: absolute; left: 0; right: 0; top: 0; height: 59px; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 2px 34px 0 56px; pointer-events: none; }
.lost-status span { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.lost-status svg { width: 76px; height: 13px; }
/* The home screen's wallpaper, behind the chat: it shows as the chat is swiped away */
.lost-wall { position: absolute; inset: 0; background: #000000; }   /* black, his call */

/* The home screen's own apps, which stay in the phone: a fifth row of large icons (iOS 26's
   large size, 68 pt, no names; columns 91 apart, rows 104 apart from 108 down), the Search
   button, and the dock on its glass shelf. lost.js zooms them in with the rest. */
.lost-home { position: absolute; inset: 0; z-index: 1; opacity: 0; transform-origin: 50% 40%; }
.lost-home img { position: absolute; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 22.5%; left: calc(201px + (var(--c) - 1.5) * 91px); }
.lost-home .sys { top: calc(108px + var(--r) * 104px); }
.lost-search { position: absolute; left: 50%; top: 714px; translate: -50% 0; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px 0 11px; border-radius: 15px; background: rgba(255, 255, 255, 0.2); font-size: 14px; font-weight: 600; color: #FFFFFF; }
.lost-search svg { width: 14px; height: 14px; }
.lost-dock { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 98px; border-radius: 50px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.lost-dock img { top: 49px; left: calc(189px + (var(--c) - 1.5) * 91px); }

/* ---------- the conversation: iOS 26 Messages, dark, at 1 px a point ---------- */
.lost-chat { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000000; border-radius: 62px; transform-origin: 50% 50%; --lost-bg: #000000; }   /* --lost-bg: the bubbles' tails are cut by the screen's black */
/* behind the header (nothing goes under it: the conversation is short) */
.lost-chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 3; background: linear-gradient(#000000 80%, rgba(0, 0, 0, 0)); pointer-events: none; }
/* The chat is one small block in the middle of the empty screen (his call, 19 Nov 2026), as it was before the phone,
   a little larger than Messages (20 px words): Ana's name, her message, the field. lost.js sets its bottom so it is centred. */
.imsg-head { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.imsg-avatar { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.imsg-name { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 14px; background: rgba(118, 118, 128, 0.22); font-size: 14px; font-weight: 500; }
.imsg-name svg { width: 7px; height: 12px; color: var(--dim); }
/* The thread sits on the field, at the bottom, as in Messages */
.imsg-thread { position: absolute; left: 0; right: 0; bottom: var(--chat-bottom, 34px); display: flex; flex-direction: column; padding: 0 14px; }
.imsg-before { display: flex; flex-direction: column; }
.imsg-stamp, .imsg-time { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--dim); }
.imsg-time { margin-top: 22px; }
.imsg-stamp { margin-top: 10px; }
.imsg-stamp b, .imsg-time b { font-weight: 600; }
/* A photo Ana sent yesterday, landscape, no tail, as Messages shows a photo. Our reaction sits on
   its top right corner as Messages draws a Tapback: a small blue bubble (ours) with the emoji
   in it, ringed in the screen's black, trailing two dots towards the photo. */
.imsg-photo { position: relative; align-self: flex-start; width: 264px; height: 176px; margin: 14px 0 6px 6px; }
.imsg-photo img { display: block; width: 100%; height: 100%; border-radius: 18px; object-fit: cover; }
.imsg-tapback { position: absolute; top: -15px; right: -13px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0A84FF; box-shadow: 0 0 0 2.5px #000000; font-size: 19px; line-height: 1; }
.imsg-tapback::before, .imsg-tapback::after { content: ""; position: absolute; border-radius: 50%; background: #0A84FF; box-shadow: 0 0 0 2px #000000; }
.imsg-tapback::before { left: 0; bottom: -1px; width: 10px; height: 10px; }
.imsg-tapback::after { left: -5px; bottom: -7px; width: 5px; height: 5px; }



/* Bubbles. The words are trimmed to their capitals and baseline, so even padding centres them. */
.imsg-bubble {
  position: relative; max-width: 86%; padding: 15px 18px; border-radius: 23px;
  font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; text-box: trim-both cap alphabetic;
}
.imsg-bubble.them { align-self: flex-start; margin-left: 8px; background: var(--them); color: var(--them-ink); opacity: 0; transform-origin: 0 100%; }
.imsg-bubble.me { align-self: flex-end; margin: 12px 8px 0 0; background: #0A84FF; color: #FFFFFF; opacity: 0; transform-origin: 100% 100%; }
/* the earlier messages are there from the start */
.imsg-bubble.them.old { opacity: 1; margin: 0 0 0 8px; }
.imsg-bubble.me.old { opacity: 1; margin: 0 6px 6px 0; }
/* The tails, drawn the classic way: a curl of the bubble's colour, cut by a curl of the screen's */
.imsg-bubble::before, .imsg-bubble::after { content: ""; position: absolute; bottom: 0; height: 30px; }
.imsg-bubble.me::before { right: -9px; width: 26px; background: #0A84FF; border-bottom-left-radius: 22px 18px; }
.imsg-bubble.me::after { right: -34px; width: 34px; background: var(--lost-bg); border-bottom-left-radius: 14px; }
.imsg-bubble.them::before { left: -9px; width: 26px; background: var(--them); border-bottom-right-radius: 22px 18px; }
.imsg-bubble.them::after { left: -34px; width: 34px; background: var(--lost-bg); border-bottom-right-radius: 14px; }
/* The reply in flight (lost.js): drawn by its box, first in the field's shape (the field seems to turn blue), its words scaled inside */
.imsg-fly { position: absolute; z-index: 3; display: none; background: #0A84FF; color: #FFFFFF; pointer-events: none; }
.imsg-fly span { display: block; padding: 15px 18px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; text-box: trim-both cap alphabetic; transform-origin: 0 0; white-space: normal; }
.imsg-fly.tail::before, .imsg-fly.tail::after { content: ""; position: absolute; bottom: 0; height: 30px; }
.imsg-fly.tail::before { right: -9px; width: 26px; background: #0A84FF; border-bottom-left-radius: 22px 18px; }
.imsg-fly.tail::after { right: -34px; width: 34px; background: var(--lost-bg); border-bottom-left-radius: 14px; }
.imsg-delivered { align-self: flex-end; margin: 7px 12px 0 0; font-size: 13px; font-weight: 500; color: var(--dim); opacity: 0; }

/* The compose field: one line; the send button pops up once there are words */
.imsg-compose { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 10px; margin-top: 36px; }
.imsg-plus { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(118, 118, 128, 0.24); color: var(--dim); }
.imsg-plus svg { width: 22px; height: 22px; }
.imsg-field {
  flex: 1; display: flex; align-items: flex-end; min-width: 0; padding: 0 6px 0 20px; border-radius: 25px;
  box-shadow: inset 0 0 0 1.5px rgba(118, 118, 128, 0.36); font-size: 20px; line-height: 1.3;
  background: #141416;   /* Messages' field over a black screen (its frosting shows nothing there) */
}
/* Longer words wrap and the field grows a line, the send button staying at the bottom, as in Messages
   (never sliding sideways; his call, 19 Nov 2026). The chat sits on the field, so it rises as the field grows. */
.imsg-text { position: relative; flex: 1; align-self: flex-start; min-width: 0; padding: 18px 0; text-box: trim-both cap alphabetic; }   /* held to the field's top: as the field grows a line, the first line stays put and the second is uncovered (held to the bottom, the first line jumped up a line and slid back) */
.imsg-typed { display: inline; white-space: pre-wrap; }   /* the line break lost.js puts where the reply wraps */
/* the field taking its second line: its height and the chat's shift follow the scroll (lost.js, setField) */
.imsg-field { overflow: hidden; }
.imsg-typed:empty::before { content: "iMessage"; color: var(--dim); }
.imsg-field.hush .imsg-typed:empty::before { opacity: 0; }
.imsg-caret { display: inline-block; width: 2px; height: 1.15em; margin: -0.4em 0 -0.4em 1px; vertical-align: -0.2em; border-radius: 1px; background: #0A84FF; animation: imsgBlink 1s steps(1) infinite; }
.imsg-typed:empty + .imsg-caret, .imsg-field.done .imsg-caret { display: none; }
@keyframes imsgBlink { 50% { opacity: 0; } }
.imsg-send {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin: 0 0 6px 8px; border-radius: 50%;
  background: #0A84FF; color: #FFFFFF; transform: scale(0);   /* its size follows the scroll (lost.js, setField) */
}
.imsg-send svg { width: 18px; height: 18px; }
/* The home bar, where the swipe home starts */
.imsg-homebar { position: absolute; left: 50%; bottom: 8px; z-index: 5; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #FFFFFF; opacity: 0.9; }


/* The Messages icon the chat shrinks into (and opens out of), and the touch that drags it */
.lost-card { position: absolute; left: 0; top: 0; z-index: 3; overflow: hidden; opacity: 0; pointer-events: none; }
.lost-card img { display: block; width: 100%; height: 100%; }
.lost-touch { position: absolute; left: 0; top: 0; z-index: 4; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.32); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); opacity: 0; pointer-events: none; }

/* ---------- the home screen's icons, and the question ----------
   The icons live over the phone, not in it, so they can spill out: lost.js puts them on
   the phone's home screen first (4 by 4, without their names), then lets them go. */
.lost-apps { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lost-app { position: absolute; left: 50%; top: 50%; width: var(--icon); height: var(--icon); margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2); opacity: 0; will-change: transform, opacity; pointer-events: none; }
.lost-app img { display: block; width: 100%; height: 100%; border-radius: 22.5%; }

/* The question in the middle, in the hero's lettering */
.lost-q {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: min(620px, calc(100vw - 48px)); translate: -50% -50%;
  margin: 0; text-align: center; font-family: "Poppins", system-ui, sans-serif; font-weight: 400;
  font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; color: var(--lost-ink); text-wrap: balance;
  opacity: 0; transform: translateY(14px);   /* lost.js brings it in with the scroll */
}


/* ---------- Found (17 Nov 2026): the story's ending, in place of the table ----------
   After the question, "if only it was all in one space..." types itself; SpaceDrop's icon comes
   up in the middle and the wandering apps drop into it ("Save from any app."); the phone
   comes back and the icon opens on the Outfits space, the outfit right there ("Find it again
   in one space."); a tap, and it goes into the chat with Ana, who answers ("Share your spaces
   with your loved ones."); on a wide screen the phone then steps aside for the Mac, the same
   space on it. All with the scroll (lost.js). */
.lost-stage { --sd: 112px; }
.lost-line { opacity: 1; transform: none; }
.lost-caret { position: relative; display: inline; width: 0; height: 0; }
.lost-caret::after { content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em; width: 3px; background: #8C49FF; animation: imsgBlink 0.8s step-end infinite; pointer-events: none; }
/* SpaceDrop's icon, in the middle of where the phone was */
/* SpaceDrop's final logo, live (Figma "SpaceDrop Logo final", 750 × 750; --u is one of its units, set by lost.js):
   a rounded square (corners 190) of #1B161E with a purple glow rising from its bottom edge (a radial gradient from
   its top middle), a lavender light inside its top edge and a white one inside its bottom edge, the ribbon hanging
   from its top and the star. lost.js sets its box: the icon's, then the window's or the phone screen's. */
.lost-sd { position: absolute; left: 0; top: 0; z-index: 4; width: var(--sd); height: var(--sd); border-radius: 25.33%; overflow: hidden; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; --u: 0.1493px; }
.sd-content { position: absolute; inset: 0; }
.sd-content .lost-mac { left: 0; top: 0; margin: 0; opacity: 1; transform-origin: 0 0; }
/* the real board in the story (lost.js, boardBox): main.js's scene, its window's middle at this box's corner; only the window shows */
.lost-board { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; pointer-events: none; }
.lost-board .desk, .lost-board .things, .lost-board .gobo, .lost-board .table-words, .lost-board .board-lines, .lost-board .post, .lost-board .rides, .lost-board .player { display: none !important; }
.lost-board .win .chrome .strip { margin: 0; max-width: none; display: flex; gap: 6px; padding: 0; overflow: visible; text-align: left; }   /* as table.css has it in the table section */
.sd-face { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }   /* over the board inside */
.sd-glow { position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(100% 100% at 50% 0%, rgba(47, 0, 255, 0) 60.39%, rgba(119, 0, 255, 0.44) 77.49%, rgba(140, 0, 255, 0.7) 84.18%, rgba(155, 18, 249, 0.85) 87.3%, #AA24F2 90.42%, #BF44F2 92.82%, #D465F1 95.21%, #EA85F1 97.61%, #FFA6F0 100%), #1B161E;
  box-shadow: inset 0 calc(-10 * var(--u)) calc(4 * var(--u)) rgba(255, 255, 255, 0.55), inset 0 calc(19 * var(--u)) calc(26.4 * var(--u)) calc(-11 * var(--u)) #ACA1F7; }
/* the ribbon and the star, at the logo's own size, held to its top middle */
.sd-ribbon { position: absolute; left: calc(50% - 339.3 * var(--u)); top: calc(-352.977 * var(--u)); width: calc(678.6 * var(--u)); height: calc(834.714 * var(--u)); max-width: none; }
.sd-star { position: absolute; left: calc(50% - 310.13 * var(--u)); top: calc(132.89 * var(--u)); width: calc(619.187 * var(--u)); height: calc(616.187 * var(--u)); max-width: none; }
/* The three lines, in the question's lettering: the first under the icon, the others beside
   the phone (above it on a narrow screen); lost.js places them */
.lost-cap { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; color: var(--lost-ink); text-wrap: balance; }
.lost-cap.one { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(520px, calc(100vw - 48px)); translate: -50% 0; text-align: center; }
.lost-caps { position: absolute; z-index: 2; }
.lost-caps .lost-cap { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; font-size: var(--cap, 40px); }

/* SpaceDrop on the phone: the app's iPhone canvas, dark (style.css .board-dark), at 1 px a point */
.sd-app {
  position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: 62px; opacity: 0; transform-origin: 50% 50%;
  background: linear-gradient(180deg, #1C1B23, #13151C); color: #ECECF1;
  --glass: #2A2A36; --line: rgba(255, 255, 255, 0.08); --text: #ECECF1; --muted: #8E8E99;
}
.sd-board { position: absolute; inset: 0; }
.sd-card { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); border-radius: calc(var(--w) * 0.15px); overflow: hidden; background: #24242E; }
.sd-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a note, as the app's (style.css .card.note), at half the board's size */
.sd-card.note { display: flex; flex-direction: column; gap: 5px; height: auto; padding: 16px 18px 18px; border-radius: 20px; background: color-mix(in srgb, #FFFFFF 8%, #2B2B39); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sd-card.note b { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.sd-card.note span { font-size: 16px; line-height: 1.3; opacity: 0.75; }
/* the app's bars are drawn for a 393-point screen at 0.763 (style.css): here at 1 px a point */
.sd-chrome { position: absolute; left: 0; top: 0; width: 306.72px; height: 666.87px; transform: scale(1.31062); transform-origin: 0 0; pointer-events: none; }
.sd-chrome .chrome.iphone { display: block; }
.sd-chrome .chrome .cover { filter: none; }
.sd-chrome .chrome .homebar { background: rgba(255, 255, 255, 0.55); }
/* the outfit on its way from the space into the chat */
.sd-fly { position: absolute; left: 0; top: 0; z-index: 4; display: none; overflow: hidden; pointer-events: none; }
.sd-fly img { display: block; width: 100%; height: 100%; object-fit: cover; }
#sdCard { z-index: 4; }

/* The chat's ending: the outfit as a sent photo, then Ana's answer. Each sits in a room that
   opens for it (lost.js), pushing the conversation up, as Messages does. */
.imsg-room { position: relative; flex: none; height: 0; }
.imsg-sent { position: absolute; right: 6px; top: 8px; width: 190px; height: 253px; border-radius: 18px; overflow: hidden; opacity: 0; }
.imsg-sent img { display: block; width: 100%; height: 100%; object-fit: cover; }
.imsg-room .imsg-bubble.them { position: absolute; left: 0; top: 10px; white-space: nowrap; }

/* The Mac beside the phone: the app's window (style.css .chrome.mac) on the same space, dark */
.lost-mac { position: absolute; left: 50%; top: 50%; z-index: 1; width: 860px; height: 538px; margin: -269px 0 0 -430px; opacity: 0; will-change: transform, opacity; font-family: var(--system); }
.mac-in {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px; color: #ECECF1;
  background: linear-gradient(180deg, #1C1B23, #13151C); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.5);
  --glass: #2A2A36; --line: rgba(255, 255, 255, 0.08); --text: #ECECF1; --muted: #8E8E99;
}
.lost-mac .chrome.mac { display: block; }
.lost-mac .chrome .strip { margin: 0; max-width: none; display: flex; gap: 6px; padding: 0; text-align: left; }   /* not the page's other .strip (style.css) */
.mac-card { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); border-radius: calc(var(--w) * 0.15px); overflow: hidden; background: #24242E; }
.mac-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mac-card.note { display: flex; flex-direction: column; gap: 5px; height: auto; padding: 15px 17px 17px; border-radius: 19px; background: color-mix(in srgb, #FFFFFF 8%, #2B2B39); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mac-card.note b { font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.mac-card.note span { font-size: 15px; line-height: 1.3; opacity: 0.75; }
/* The spaces in the rows, each a page of a scrapbook (lost.js, scrapbook): its words in the middle in the app's Serif
   (Georgia, the app's TextFontFamily.serif), one word in italic; small Body text round it; notes on the app's papers */
.scrap .note.paper { background: var(--paper); color: #1D1D1F; box-shadow: none; }
.scrap .note.paper span { opacity: 0.7; }
.scrap .sp-title { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); translate: -50% -50%; display: flex; flex-direction: column; color: #F2F2F5; font-family: Georgia, "Times New Roman", serif; font-size: 66px; line-height: 0.9; letter-spacing: -0.035em; white-space: nowrap; }
.scrap .sp-title p { margin: 0; }
.scrap .sp-title p + p { align-self: flex-end; padding-left: 0.9em; }   /* the second line set off to the right, as in the reference */
.scrap .sp-title i { font-style: italic; letter-spacing: -0.02em; }
.scrap .sp-sub { align-self: flex-end; margin-top: 14px; font-family: var(--system); font-size: 15px; line-height: 1.15; letter-spacing: 0; text-align: right; color: rgba(242, 242, 245, 0.85); }
.scrap .sp-plus { position: absolute; right: -34px; top: -4px; font-family: var(--system); font-size: 34px; font-weight: 200; line-height: 1; letter-spacing: 0; color: rgba(242, 242, 245, 0.7); }
.scrap .sp-word { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); font-family: var(--system); font-size: 15px; line-height: 1; color: rgba(242, 242, 245, 0.85); white-space: nowrap; }
.scrap .sp-word.end { translate: -100% 0; }
.scrap .sp-tag { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px - 16px); translate: -100% 0; font-family: var(--system); font-size: 10px; font-style: italic; line-height: 1; letter-spacing: 0.02em; color: rgba(242, 242, 245, 0.6); white-space: nowrap; }
.sd-board.scrap .sp-title { font-size: 50px; }
.sd-board.scrap .sp-sub { margin-top: 10px; font-size: 13px; }
.sd-board.scrap .sp-plus { right: -26px; font-size: 28px; }
.sd-board.scrap .sp-word { font-size: 14px; }

@media (max-width: 759px) {
  .lost-stage { --icon: 58px; --sd: 88px; }
  .lost-q { font-size: 30px; }
  .lost-cap { font-size: 26px; }
}

/* Phones (Safari): every part that moves inside the iPhone gets a layer of its own. Without one, each frame that moved
   a bubble or typed a letter drew the whole phone again (its screen, its band, its wide soft shadow, at three pixels to
   the point); with one, the move is only a slide of a finished picture. The slot keeps its layer while it fades in, so
   it isn't made and thrown away again as it reaches its place. (?probe=lost on the preview turns these off to compare.) */
@media (hover: none) and (pointer: coarse) {
  html:not(.no-layers) .lost-slot { will-change: opacity; }
  html:not(.no-layers) :is(.lost-chat, .lost-home, .imsg-before, .imsg-head, .imsg-compose, #lostBig, #lostBubble, #lostDelivered, #lostTouch, #lostCard,
    #sdApp, #sdCard, #sdFly, #sdTouch, #sdOutfit, #lostReply, #lostSent) { will-change: transform, opacity; }
}
html.no-blur .lost-app { filter: none !important; }
html.no-type .lost-line, html.no-type .lost-cap, html.no-type #lostBig { visibility: hidden !important; }

/* The spaces, looping (lost.js, 19 Nov 2026): the camera pulls back from the space just found to
   ten spaces, copies of the Mac's window (wide screens) or of the phone, which then loop by
   themselves. lost.js places each card and the camera. */
.lost-spaces { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; will-change: transform; }
.lost-spaces .lost-space { left: 0; top: 0; margin: 0; opacity: 1; transform-origin: 0 0; will-change: transform, opacity; }
.lost-spaces .shot { position: absolute; display: block; max-width: none; }   /* a picture of a space (lost.js, shot) */
.lost-spaces .shot.win, .lost-spaces .lost-mac .mac-in { border-radius: 28px; }   /* the windows in the rows: rounder corners (lost.js WIN_R) */
.lost-spaces .lost-phone.lost-space { --pop-y: 0px; --k: 1; --back: 0; --fs: 1; --fx: 0px; --fy: 0px; scale: none; translate: none; }
.lost-spaces .lost-phone.lost-space .sd-app { opacity: 1; transform: none; }
