/* The archive uses quotes as editorial delimiters, including dialogue excerpts. */
.passages q { quotes: "“" "”" "‘" "’"; }
.leaf-passage { display: block; margin-top: 18px; }
.print-back {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  color: #393226; background: radial-gradient(ellipse at 47% 37%,#c7bea2,#a49b7e 68%,#8c8266);
  box-shadow: inset 0 0 4px #62583d, inset 9px 0 19px #84795c55, 2px 7px 19px #0006;
  transform: rotate(-.65deg); isolation: isolate;
}
.print-back::before { content: ""; position: absolute; inset: 6% 5%; border: 1px solid #554c3526; }
.print-back::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background: repeating-linear-gradient(162deg,transparent 0 2px,#51433250 3px,transparent 4px 7px); }
.print-back div:not(.paper-marks) { text-align: center; transform: rotate(-4deg); }
.print-back span,.print-back small { font: .8rem var(--mono); letter-spacing: .12em; }
.print-back i { display: block; font: italic clamp(1.9rem,4.1vw,3.2rem)/1.04 var(--serif); margin-top: 13px; }
.print-back small { position: absolute; bottom: 9%; right: 9%; }
.paper-marks { position: absolute; inset: 4%; background: linear-gradient(135deg,#4c432d45,transparent 45%) top left/7% 7% no-repeat, linear-gradient(-45deg,#4c432d45,transparent 45%) bottom right/7% 7% no-repeat; }
.unclaimed { width: 100%; max-width: 450px; }
.watchmaker,.chamber { min-height: 100vh; min-height: 100svh; padding: 108px 5vw 42px; background: radial-gradient(ellipse at 35% 40%,#25261f80,transparent 60%),#10110f; }
.watch-inner,.chamber-inner { max-width: 1040px; margin: 0 auto; }
.watch-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(34px,8vw,110px); margin: 4vh 0; }
.instrument { position: relative; isolation: isolate; }
.instrument::before { content: ""; position: absolute; z-index: -1; inset: 4%; border-radius: 50%; box-shadow: 3px 14px 40px #0009; }
#dial { display: block; width: 100%; max-width: 490px; cursor: pointer; }
.wheel { transform-origin: 200px 200px; transition: transform .42s cubic-bezier(.22,.65,.3,1); }
.watch-copy h1,.chamber h1,.record h2 { font: italic clamp(2.6rem,5.4vw,5rem)/.98 var(--display); letter-spacing: -.054em; }
.watch-copy h1 { margin: 8px 0 19px; }
.watch-copy>p:not(.overline):not(.feedback):not(.mechanism-note) { color: #c6c1b4; max-width: 35ch; line-height: 1.5; }
.ring-controls { border-top: 1px solid var(--stroke); margin: 23px 0 8px; }
.ring-controls button { display: grid; align-items: center; grid-template-columns: 1fr auto 26px; gap: 15px; width: 100%; min-height: 47px; padding: 8px 3px; text-align: left; border-bottom: 1px solid var(--stroke); }
.ring-controls button:hover { color: #f1e6ce; background: #bba87909; }
.ring-reading,.turn-symbol,.mechanism-note,.lock-hint summary { font: .85rem/1.5 var(--mono); }
.ring-reading { color: #d0bea0; }.turn-symbol { font-size: 1.45rem; color: #bcb398; text-align: right; }
.mechanism-note { color: #aaa897; margin: 11px 0 18px; }
.watch-copy .feedback { margin-left: 0; }
.lock-hint { color: #b4b2a4; margin-top: 15px; }.lock-hint summary { display: inline-block; padding: 8px 23px 8px 0; }
.lock-hint summary::after { right: 0; }.lock-hint p { font-size: 1rem; }
.chamber { background: radial-gradient(ellipse at 34% 38%,#211e1773,transparent 61%),#0d0e0c; }
.chamber-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.chamber h1 { font-size: clamp(2.4rem,5vw,4.4rem); }
.scene { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #38362d; box-shadow: 0 7px 28px #0009; background: #080908; }
.scene-space {
  --chair-x: 33.971%; --chair-light:.79; position: relative; width: max(100%,445px); aspect-ratio: 5/3; left: 50%; transform: translateX(-50%);
  isolation: isolate; user-select: none; -webkit-user-select: none;
  background: #090a09;
}
.scene-space > canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.scene-space::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 20px #0b090830; }
.candle-halo,.candle-flame { position: absolute; left: 22.826%; top: 53.556%; pointer-events: none; }
.candle-halo { width: 24%; aspect-ratio: 1; transform: translate(-50%,-50%); background: radial-gradient(closest-side,#eab07314,transparent); mix-blend-mode: screen; }
.candle-flame { width: .22%; height: .69%; border-radius: 55% 40% 44% 50%; transform: translate(-50%,-52%); background: #fff2c7; box-shadow: 0 0 4px 1px #ffca7c,0 0 9px 3px #fcb55c55; transform-origin: center bottom; }
html[data-motion="playing"] .candle-halo { animation: wick-glow 3.7s ease-in-out infinite alternate; }
html[data-motion="playing"] .candle-flame { animation: wick-dance 2.65s ease-in-out infinite alternate; }
@keyframes wick-glow { 0%,43%,100% { opacity: .94; } 32%,84% { opacity: .57; } 61%,89% { opacity: .8; } }
@keyframes wick-dance { 0%,52%,100% { transform:translate(-50%,-50%) rotate(-6deg) scaleY(.95); } 35%,79% { transform:translate(-50%,-50%) rotate(9deg) scaleY(.74); } 61%,92% { transform:translate(-50%,-50%) rotate(-11deg) scaleY(1.13); } }
#chair-prop { position:absolute; left:calc(var(--chair-x) - 5.915%); top:61.343%; width:11.527%; height:33.564%; padding:0; cursor:grab; touch-action:none; transition:left .24s ease-out; z-index:2; }
#chair-prop:disabled { cursor:default; }
#chair-prop canvas { filter:brightness(var(--chair-light)); display:block; width:100%; height:100%; pointer-events:none; }
.chair-shadow { position:absolute; left:var(--chair-x); top:91.3%; width:17%; height:4.9%; border-radius:50%; background:radial-gradient(ellipse,#070705bb,transparent 68%); transform:translateX(-41%) rotate(5deg); transition:left .24s ease-out; }
.scene.dragging #chair-prop,.scene.dragging .chair-shadow { transition:none; cursor:grabbing; }
#beam-target,#rope-prop { position:absolute; min-width:44px; min-height:44px; padding:0; border-radius:50%; transform:translate(-50%,-50%); z-index:4; touch-action:none; display:grid; place-items:center; }
#beam-target { left:66.841%; top:18.788%; width:7.1%; height:12%; }
#rope-prop { left:66.841%; top:77.327%; width:7%; height:9%; cursor:grab; }
#cast-line { position:absolute; width:100%; height:100%; inset:0; overflow:visible; pointer-events:none; z-index:5; fill:none; stroke:#c2a77b; stroke-width:2.8; stroke-linecap:round; }
.scene.casting #throw-line { stroke-dasharray:1; animation: cast-line .53s ease-out both; }
@keyframes cast-line { from {stroke-dashoffset:1;} to {stroke-dashoffset:0;} }
#fallen-print { position:absolute; left:52.5%; top:74%; width:13%; padding:0; z-index:5; transform:perspective(350px) rotateX(50deg) rotateZ(-15deg); box-shadow:0 4px 6px #090704bb; }
#fallen-print img { width:100%; filter:brightness(.59); }
.scene.falling #fallen-print { animation:fall-leaf 1s both; }
@keyframes fall-leaf {
  0% { top:13.4%; left:60.5%; opacity:0; transform:perspective(350px) rotateX(75deg) rotateZ(8deg) scale(.6); }
  12% { opacity:1; }
  39% { top:26%; left:57%; transform:perspective(350px) rotateX(-21deg) rotateZ(-17deg) scale(.85); }
  68% { top:50%; left:55.5%; transform:perspective(350px) rotateX(31deg) rotateZ(7deg); }
  90% { top:75%; left:52.5%; transform:perspective(350px) rotateX(60deg) rotateZ(-16deg); }
}
html[data-motion="paused"] :is(.candle-halo,.candle-flame,.scene.casting #throw-line,.scene.falling #fallen-print) { animation:none; }
#room-guidance { margin:12px 0 0; font:italic 1.05rem/1.5 var(--serif); color:#aaa69b; }
.record { display:grid; grid-template-columns:minmax(140px,.7fr) 1.3fr; align-items:center; gap:clamp(27px,6vw,80px); padding:36px 0; margin-top:27px; border-top:1px solid var(--stroke); }
.sleeve { padding:0; width:100%; cursor:zoom-in; box-shadow:0 5px 20px #0006; }
.sleeve img { width:100%; height:auto; }
.record h2 { font-style:normal; font-size:clamp(2.1rem,4.7vw,4rem); margin:7px 0 23px; }
.release-note { margin:-5px 0 22px; max-width:53ch; font-size:1.05rem; line-height:1.55; color:#c6c1b3; }
.record h2 i { color:#ae9d7d; }
.tracks button { display:grid; grid-template-columns:20px 1fr auto; align-items:center; gap:12px; width:100%; min-height:52px; padding:9px 3px; text-align:left; border-top:1px solid var(--stroke); font:1.2rem var(--serif); }
.tracks button:last-child { border-bottom:1px solid var(--stroke); }
.tracks small { font:.8rem var(--mono); color:#aeaa99; }.tracks .chosen { color:#e3d0ab; }
.transport-icon { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:8px solid currentColor; }
.playing .transport-icon { width:8px; height:11px; border:0; border-inline:2px solid currentColor; }
#master-player { display:block; width:100%; margin-top:20px; }
@media(max-width:680px) {
  .watchmaker,.chamber { padding:85px 6vw 32px; }
  .watch-layout { grid-template-columns:1fr; gap:15px; margin:21px 0 0; }
  .instrument { width:min(100%,285px); justify-self:center; }
  .watch-copy h1 { margin:4px 0 12px; }.ring-controls { margin-top:15px; }
  .chamber-heading { align-items:flex-start; flex-direction:column; gap:7px; margin-bottom:15px; }
  .chamber-heading .quiet-action { padding-block:4px; }
  .record { grid-template-columns:1fr; gap:22px; padding-top:24px; }.sleeve { width:min(100%,285px); }
}
