:root {
  color-scheme: light;
  --ink: #1b1815;
  --quiet: #5e574f;
  --paper: #fbf4e6;
  --background: #e4ded3;
  --rule: #cabbab;
  --wine: #8a0b12;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; }
button, .choice { cursor: pointer; }
button { color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .choice:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.loading {
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--quiet);
}
.primary, .secondary, .quiet {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 50px;
  padding: .68rem 1.2rem;
  font-size: .9rem;
  line-height: 1.2;
}
.primary {
  background: var(--ink);
  color: #fff9ef;
  box-shadow: 0 3px 8px #3d2c201a;
}
.primary:active { background: #493a35; }
.primary:disabled { opacity: .58; }
.secondary { background: #fcf5e7b0; border-color: #ae9b85; }
.quiet { color: var(--quiet); background: transparent; }
.quiet:active { background: #70523710; }

.cover-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px 15px;
  background:
    radial-gradient(ellipse at 25% 14%, #fbefcd4a, transparent 51%),
    linear-gradient(122deg, #2d282452 12%, #1f1b18b3 72%),
    #706252 url("/assets/oak-wall.webp") center / cover;
  perspective: 1250px;
  overflow: clip;
}
.open-book {
  display: grid;
  justify-items: center;
  width: min(83vw, 440px);
  padding: 12px;
  border: 0;
  background: none;
  transition: transform .7s cubic-bezier(.31,.12,.26,1);
  -webkit-tap-highlight-color: transparent;
}
.closed-book {
  width: min(66vw, 295px);
  aspect-ratio: .67;
  display: block;
  position: relative;
  transform: rotateX(12deg) rotateY(-19deg) rotateZ(-7deg);
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.31,.12,.26,1);
  filter: drop-shadow(14px 26px 18px #1c15118c);
}
.closed-leaves {
  position: absolute;
  inset: 1.1% -3.7% -2% 1.6%;
  border-radius: 2px 7px 7px 2px;
  background:
    linear-gradient(90deg, #211a16 0 4%, #211a1610 12% 83%, #927a53b0),
    repeating-linear-gradient(1deg, #d7c8ac 0 2px,#9d8b6e 3px,#e5d7be 4px 5px);
  border-bottom: 6px solid #1e1b18;
  border-right: 2px solid #3e3029;
  transform: translateZ(-10px);
}
.closed-book::after {
  content: "";
  position: absolute;
  width: 5%;
  top: 96%;
  left: 68%;
  height: 10%;
  transform: translateZ(-9px) rotate(-7deg);
  background: linear-gradient(90deg,#532b2b,#8e4541,#482826);
  clip-path: polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);
}
.cover-front {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  inset: 0;
  border-radius: 3px 7px 7px 3px;
  border-left: 6px solid #141515;
  padding: 0 0 37%;
  background: linear-gradient(90deg, #0009, transparent 9%, #11111510 77%, #15151742),
    #242425 url("/assets/book-cover.webp") center / cover;
  box-shadow: inset 0 0 0 1px #96928a45, inset 0 -14px 45px #14131035;
  transform-origin: center left;
  transition: transform .53s .13s cubic-bezier(.31,.12,.26,1);
  backface-visibility: hidden;
}
.cover-title {
  font: 600 clamp(1.45rem, 6.4vw, 2.18rem) / 1.4 var(--serif);
  color: #f1e8d4;
  letter-spacing: .14em;
  padding-left: .14em;
  text-shadow: 0 1px #121212;
}
.cover-name {
  color: #e9dcc0;
  font: 500 .9rem / 1.6 var(--serif);
  letter-spacing: .24em;
  padding-left: .24em;
}
.cover-action {
  color: #f9f1e6;
  font-size: .94rem;
  letter-spacing: .08em;
  margin-top: 48px;
  padding: 10px 17px;
  border: 1px solid #ebddc38a;
  border-radius: 999px;
  background: #221c176b;
  box-shadow: 0 3px 17px #362d2957;
}
.cover-action span { padding-left: 6px; }
.opening-book { transform: translate(6%, -2%) scale(1.13); }
.opening-book .closed-book { transform: rotateX(0) rotateY(2deg) rotateZ(0); }
.opening-book .cover-front { transform: rotateY(-135deg); }
.opening-book .cover-action { opacity: 0; }
.letter-envelope {
  --thread-missing: 0%;
  --thread-x: 0px;
  --thread-y: 0px;
  isolation: isolate;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  justify-items: center;
}

.envelope {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
}
.envelope > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

.embroidered {
  position: absolute;
  z-index: 2;
  inset: 65% 12% auto;
  text-align: center;
  font: 600 6.25cqw / 1.3 var(--serif);
  letter-spacing: .22em;
  padding-left: .22em;
  white-space: nowrap;
  color: #f4eddf;
  transform: rotate(-.3deg);
  filter: drop-shadow(0 1px 1px #1e1e1b);
}
@supports (background-clip: text) {
  .embroidered {
    background: repeating-linear-gradient(127deg, #fbf2e0 0 .32cqw, #d9cdb7 .49cqw .71cqw);
    background-clip: text;
    color: transparent;
  }
}
.envelope-seam {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.envelope-seam path, .thread-grip path {
  fill: none;
  stroke: #f2e9d5;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px #342c24);
}
.envelope-seam path {
  stroke-width: .57px;
  stroke-dasharray: 1.9 2.2;
  clip-path: inset(0 var(--thread-missing) 0 0);
  transition: clip-path .48s cubic-bezier(.3,.05,.2,1);
}
.thread-grip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: max(48px, 18%);
  height: max(44px, 23%);
  left: 79%;
  top: 16%;
  touch-action: none;
  cursor: grab;
}
.thread-grip svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translate(var(--thread-x), var(--thread-y));
  transition: transform .48s cubic-bezier(.22,.88,.25,1), opacity .32s ease-in .22s;
}
.thread-grip path { stroke-width: 1.06px; }
.is-pulling .thread-grip { cursor: grabbing; }
.is-pulling .thread-grip svg, .is-pulling .envelope-seam path { transition: none; }
.is-opening .thread-grip svg { opacity: 0; }
.paper-edge {
  position: absolute;
  z-index: 0;
  left: 19%;
  top: 28%;
  width: 62%;
  height: 47%;
  background: #f4f0e6 url("/assets/rice-paper.webp") 35% 0 / cover;
  border-radius: 2px;
  box-shadow: 0 11px 20px #1b171452;
  transform: rotate(-1deg);
}
.is-opening .paper-edge { animation: draw-paper .61s .34s cubic-bezier(.21,.65,.22,1) both; }
.is-opening .envelope > img, .is-opening .embroidered { animation: release-paper .7s .36s ease-out both; }
.pull-label {
  color: #1b1815;
  background: #f1ebe1ed;
  border: 1px solid #bfb5a6;
  border-radius: 99px;
  margin-top: 12px;
  padding: 7px 13px;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .09em;
  box-shadow: 0 2px 10px #221b2315;
  transition: opacity .24s ease;
}
.pull-label span { margin-left: 4px; }
.is-opening .pull-label { opacity: 0; }
@keyframes draw-paper { to { transform: translateY(-68%) rotate(-4deg); } }
@keyframes release-paper { to { transform: translateY(5%); } }



.letter-paper {
  position: relative;
  background: #f4f0e6 url("/assets/rice-paper.webp") center / 100% 100% no-repeat;
  border: 1px solid #d9d1c1;
  box-shadow: 0 9px 27px #3a332724;
  padding: clamp(37px, 8vw, 67px) clamp(21px, 7vw, 63px) clamp(30px, 6vw, 48px);
  overflow: hidden;
  outline: 0;
  animation: unfold .7s cubic-bezier(.2, .7, .2, 1) both;
}

.letter-paper h1 {
  font: 700 clamp(1.55rem, 6vw, 2.3rem) / 1.5 var(--serif);
  letter-spacing: .09em;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.letter-paper h1::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 14px; background: #835350; }
.letter-copy {
  color: #3e3932;
  font-family: var(--serif);
  font-size: clamp(1rem, 4.3vw, 1.12rem);
  letter-spacing: .032em;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.letter-copy p + p { margin-top: 1em; }
.letter-copy p:last-child { color: #623b3a; font-weight: 700; }
.letter-signature {
  font-family: var(--serif);
  margin-top: 25px;
  text-align: right;
  display: grid;
  gap: 7px;
}
.signature-name { font-weight: 700; }
.signature-date { color: var(--quiet); font-size: .83rem; }

@keyframes unfold { from { opacity: .15; transform: translateY(12px) scaleY(.94); transform-origin: top; } }

.open-album {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at 23% 14%, #f8edcd28, transparent 50%),
    linear-gradient(111deg, #281e185e, #211c17a1),
    #8e806d url("/assets/oak-wall.webp") center 44% / cover fixed;
}
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(4px, env(safe-area-inset-top)) clamp(13px,4vw,40px) 1px;
}
.book-header button {
  border-radius: 4px;
  color: #fff4e4;
  font-size: .83rem;
  text-shadow: 0 1px 3px #201710;
  padding-inline: 8px;
}
.book-main {
  display: grid;
  place-items: center;
  min-height: min-content;
  overflow: clip;
  padding: 8px 0 11px;
}
.book-shell {
  position: relative;
  width: min(calc(100vw - 44px), 417px, max(230px, calc((100dvh - 148px) * .71)));
  aspect-ratio: .71;
  isolation: isolate;
  margin: 0 0 0 8px;
}
.book-shell::before {
  content: "";
  position: absolute;
  inset: -3px -8px -9px -9px;
  background: #282321;
  box-shadow: 0 12px 22px #26171091, 5px 5px 10px #1b151657;
  border-radius: 5px 10px 9px 3px;
  z-index: -2;
}
.book-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px -5px -5px 0;
  border-radius: 0 7px 7px 0;
  background:
    repeating-linear-gradient(92deg, #ddd1b9 0 1px, #a59578 2px, #e5d6bc 3px),
    #d6c6a7;
  border-bottom: 2px solid #9f8f72;
}
.book-binding {
  position: absolute;
  z-index: -1;
  inset: 0 100% 0 auto;
  width: 9px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg,#bcad91,#e8ddc5 47%,#a18e72 95%);
}
.leaf-stage {
  position: absolute;
  inset: 0;
  perspective: 1300px;
  touch-action: pan-y;
  user-select: none;
}
.leaf-stage:focus-visible { outline: 2px solid #f7e8d4; outline-offset: 5px; }
.book-page, .sheet-back {
  position: absolute;
  inset: 0;
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(90deg, #674f342f 0, #ad9a7822 2.9%, transparent 10%, transparent 95%, #d4c6aa20),
    #f6f0e3 url("/assets/rice-paper.webp") 20% 30% / 102% 105%;
  box-shadow: inset -1px 0 #fff9ec, inset 0 -1px #a995765e;
  overflow: hidden;
}
.book-page[data-number="1"]::before, .sheet-front[data-number="1"]::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(90deg,#31211236,transparent 7%);
  z-index: 3;
}
.turn-sheet {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transform-origin: center left;
  transform-style: preserve-3d;
}
.turn-sheet[data-direction="-1"] { transform-origin: center right; }
.sheet-front, .sheet-back {
  backface-visibility: hidden;
}
.sheet-front::after, .sheet-back::after {
  content: "";
  position: absolute;
  z-index: 50;
  inset: 0;
  background: linear-gradient(90deg,#422c16,transparent 70%);
  opacity: var(--fold-light,0);
}
.sheet-back {
  transform: rotateY(180deg);
  background-image: linear-gradient(115deg,#bca88d40,transparent 75%);
}
.letter-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9%;
}
.letter-page h1 {
  margin-top: -9%;
  margin-bottom: 14px;
  color: var(--ink);
  font: 600 clamp(1rem, 4.3vw, 1.4rem) / 1.4 var(--serif);
  letter-spacing: .12em;
}
.letter-envelope .envelope { filter: drop-shadow(0 8px 9px #3323176b); }
.letter-sticker {
  position: absolute;
  width: 19%;
  height: auto;
  right: 11%;
  bottom: 8%;
  transform: rotate(9deg);
  pointer-events: none;
}
.page-canvas { position: absolute; inset: 0; overflow: hidden; }
.empty-page {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  border: 1px dashed #9d8b72;
  background: #fdf7ec71;
  font: 600 .83rem / 1.4 var(--serif);
}

.book-card {
  display: block;
  padding: 0;
  position: absolute;
  border: 0;
  background: none;
  transform: rotate(var(--angle));
  touch-action: pan-y;
}
.book-card:focus-visible { outline-color: #773e38; }
.page-canvas.is-editing .book-card { touch-action: none; cursor: grab; }
.page-canvas.is-editing .book-card:active { cursor: grabbing; }
.book-card.is-selected { outline: 2px dashed #723e35; outline-offset: 4px; }

.kind-photo {
  padding: 6px 6px 15px;
  background: #fff9ec;
  box-shadow: 1px 4px 8px #6f402b59;
}
.kind-photo img { width: 100%; object-fit: cover; background: #e3d5be; }
.kind-photo::before, .kind-note::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -7px;
  left: calc(50% - 25px);
  width: 50px;
  height: 15px;
  background: repeating-linear-gradient(115deg, #e7d1a2d4 0 6px, #e3c290b5 7px 8px);
  clip-path: polygon(0 9%, 97% 0, 100% 86%, 2% 100%, 5% 69%, 1% 45%);
  transform: rotate(3deg);
}
.kind-note {
  background: linear-gradient(135deg, #fff8e8, #f2e0b9);
  box-shadow: 1px 5px 8px #6f402b4d;
  padding: clamp(11px, 4.1vw, 24px);
  text-align: left;
}
.note-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  font: 600 .96rem / 1.7 var(--serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.book-controls {
  padding: 3px clamp(12px,4vw,36px) max(9px, env(safe-area-inset-bottom));
  width: min(100%, 560px);
  margin: 0 auto;
}
.turn-controls, .page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.turn-controls {
  color: #f7efdf;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #291d17;
}
.turn-controls .secondary {
  color: #2d2721;
  background: #f4ebdc;
  border-color: #d6c6af;
  text-shadow: none;
}
.turn-controls .secondary:disabled { opacity: .42; }
.turn-controls .primary {
  background: #252221;
  border-color: #eee0cd69;
}
.page-tools {
  background: #eee3d3;
  padding: 2px 6px;
  margin-bottom: 5px;
  border-radius: 9px 9px 5px 5px;
}
.page-actions button { padding-block: .58rem; }
.page-actions button:disabled { opacity: .48; }
.page-actions #add { color: var(--ink); font-weight: 650; }

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cabbab;
}
.item-actions button {
  border: 0;
  border-radius: 6px;
  min-height: 44px;
  background: transparent;
  padding: .4rem .55rem;
  font-size: .84rem;
}
.item-actions button:active { background: #9a5c331a; }

.unlock {
  min-height: 100svh;
  width: min(100% - 42px, 340px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.unlock img { border-radius: 15px; }
.unlock h1, .dialog h2 { font: 700 1.55rem / 1.5 var(--serif); }
.unlock form { width: 100%; display: grid; gap: 13px; }
.unlock label { font-size: .88rem; }
.unlock input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ad997f;
  border-radius: 8px;
  background: #fff9ef;
  color: var(--ink);
  font-size: 1rem;
}
.form-message { min-height: 1.35em; color: var(--wine); font-size: .85rem; }
.dialog {
  inset: auto 0 0;
  width: min(100%, 500px);
  max-width: 100%;
  max-height: min(85svh, 710px);
  margin: 0 auto;
  padding: 23px 20px max(22px, env(safe-area-inset-bottom));
  border-radius: 17px 17px 0 0;
  border: 1px solid var(--rule);
  background: #fdf4e5;
  color: var(--ink);
}
.dialog::backdrop { background: #24191083; }
.dialog h2 { margin-bottom: 14px; padding-right: 55px; }
.dialog p { color: var(--quiet); line-height: 1.65; margin: 9px 0; }
.modal-close { position: absolute; top: 9px; right: 8px; z-index: 1; }
.add-options { display: grid; gap: 12px; margin-top: 20px; }
.choice {
  text-align: center;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid #b9a487;
  border-radius: 7px;
  background: #fff9ed;
}
.dialog textarea { display: block; margin-bottom: 13px; resize: vertical; line-height: 1.65; }
.dialog-actions { display: flex; gap: 11px; justify-content: flex-end; margin-top: 18px; }
.photo-view { margin-top: 32px; width: 100%; max-height: 64svh; object-fit: contain; }
.note-view {
  padding-top: 30px;
  font: 1.08rem / 1.9 var(--serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message {
  position: fixed;
  z-index: 8;
  left: 50%;
  top: max(12px, env(safe-area-inset-top));
  transform: translateX(-50%);
  padding: .6rem .9rem;
  border-radius: 30px;
  background: #2b2522ed;
  color: #fff9ee;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  font-size: .84rem;
  text-align: center;
}
.message.is-error { background: #764340; }

@media (min-width: 720px) {
  .dialog { inset: 0; margin: auto; border-radius: 16px; }
}
@media (max-width: 375px) {
  
  .pull-label { margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.letter-dialog {
  --letter-height: calc(100dvh - 26px);
  inset: 0;
  width: min(calc(100% - 26px), 625px);
  max-height: var(--letter-height);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f4f0e6;
}
.letter-reader {
  --letter-toolbar: 52px;
  position: relative;
  padding-top: var(--letter-toolbar);
  background: #f4f0e6 url("/assets/rice-paper.webp") center / 100% 100% no-repeat;
}
.letter-scroll {
  max-height: calc(var(--letter-height) - var(--letter-toolbar) - 2px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.letter-scroll::-webkit-scrollbar { display: none; }
.letter-scroll:focus-visible { outline: 1px solid #a3836d; outline-offset: -3px; }
.letter-reader > .modal-close {
  top: 5px;
  right: 15px;
  background: #faf3e9eb;
  border: 1px solid #92715b36;
  box-shadow: 0 1px 6px #71604a20;
}
.letter-rail {
  position: absolute;
  top: 62px;
  bottom: 20px;
  right: 7px;
  width: 11px;
  pointer-events: none;
}
.letter-rail::before {
  content: "";
  position: absolute;
  inset: 0 5px;
  background: repeating-linear-gradient(to bottom, #ae9a81 0 3px, transparent 3px 6px);
  opacity: .71;
}
.letter-rail > span {
  position: absolute;
  left: 1px;
  top: calc((100% - 25px) * var(--read-progress, 0));
  width: 9px;
  height: 25px;
  background:
    radial-gradient(circle at 50% 5px, #f5e5cb 0 1px, transparent 1.7px),
    repeating-linear-gradient(91deg, #865352 0 1px, #754442 1px 2px);
  clip-path: polygon(0 0,100% 0,100% 100%,50% 83%,0 100%);
}
.letter-dialog .letter-paper { border: 0; padding-top: 6px; background: transparent; box-shadow: none; }
.letter-dialog .letter-copy p { color: #3e3932; margin-block: 0; line-height: inherit; }
.letter-dialog .letter-copy p + p { margin-top: 1em; }
.letter-dialog .letter-copy p:last-child { color: #623b3a; }
.letter-next { display: block; width: max-content; margin: 26px auto 0; }
.kind-photo img { max-height: 49dvh; }
.kind-note { max-width: 92%; }
.item-actions {
  gap: 3px;
  margin-bottom: 1px;
  padding-bottom: 1px;
}
.item-actions button { min-height: 35px; padding: .35rem .48rem; }

@media (min-width: 850px) and (min-height: 485px) {
  .book-shell { transform: translateX(50%); }
  .book-binding {
    width: 100%;
    border-radius: 7px 0 0 7px;
    background:
      linear-gradient(270deg,#4f3a2b52,transparent 9%),
      #eee7d9 url("/assets/rice-paper.webp") left center / cover;
    box-shadow: -6px 7px #352c25, -10px 12px 23px #26171064;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closed-book, .cover-front, .open-book { transition: none; }
}

/* Small cutouts sit between the wood surface and the book. */
.cover-stage, .open-album { position: relative; isolation: isolate; }
.desk-details {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.desk-details > img {
  position: absolute;
  height: auto;
  user-select: none;
  filter: drop-shadow(2px 5px 6px #241b1552);
}
.desk-sprig {
  width: clamp(125px, 25vw, 255px);
  left: max(2%, calc(50% - 545px));
  bottom: 12%;
  transform: rotate(-12deg);
  opacity: .91;
}
.desk-offcuts {
  width: clamp(86px, 16vw, 175px);
  right: max(2%, calc(50% - 505px));
  top: 10%;
  transform: rotate(13deg);
  opacity: .85;
}
.open-album .desk-sprig { left: max(1%, calc(50% - 625px)); bottom: 7%; }
.open-album .desk-offcuts { right: max(1%, calc(50% - 610px)); top: 16%; }
.open-book, .book-header, .book-main, .book-controls { position: relative; z-index: 1; }

@media (max-width: 700px) {
  .desk-sprig { left: -2%; bottom: 11%; }
  .desk-offcuts { right: -2%; top: 6%; }
  .open-album .desk-sprig { left: -13px; bottom: 3%; }
  .open-album .desk-offcuts { right: -7px; top: 4%; }
}

@media (max-width: 480px) {
  .cover-stage .desk-sprig { bottom: 8%; }
  .open-album .desk-sprig { left: 21%; bottom: 4%; width: 108px; }
  .open-album .desk-offcuts { top: 3%; }
}
