/* Coordinates measured in the original 1504 × 1248 bitmap. No resampled asset. */
.camera-rig{width:340px;height:auto;aspect-ratio:1504 / 1248;top:26px;transition:transform 110ms ease-out}
.camera-rig.pressed{transform:translateY(.7px) rotate(.15deg)}
.camera-shell{width:100%;height:auto;aspect-ratio:1504 / 1248;filter:drop-shadow(0 9px 7px #332e261c);z-index:3}
.camera-shadow{display:none}
/* Inner glass only: x657 y160 w264 h264. Lettering and lens ribs stay untouched. */
.lens{left:43.68351%;top:12.82051%;width:17.55319%;height:21.15385%;aspect-ratio:1;background:transparent;box-shadow:none}
.lens-glass{opacity:0;box-shadow:inset 0 0 9px 2px #0009;background:radial-gradient(ellipse at var(--glint-x,28%) var(--glint-y,18%),#e4f8ff40,transparent 27%),linear-gradient(135deg,#7899aa18,transparent 45%,#001a2730)}
.scene:not([data-state=off]):not([data-state=requesting]) .lens-glass{opacity:1}
/* Physical red disk isolated by an image viewport, not a red replacement circle. */
.shutter{left:13.16489%;top:38.54167%;width:10.37234%;height:12.5%;padding:0;background:#682c22;box-shadow:inset 0 2px 4px #0008;isolation:isolate}
.shutter span{position:absolute;inset:0;overflow:hidden;background:none;box-shadow:0 1px 1px #0006;transition:transform 100ms ease,box-shadow 100ms ease;will-change:transform}
.shutter span img{position:absolute;max-width:none;width:964.10256%;height:800%;left:-126.92308%;top:-308.33333%;pointer-events:none}
.shutter:active span,.shutter.pressed span{transform:translateY(1.4px) scale(.95);box-shadow:inset 0 3px 5px #27110ed9}
.shutter:not(:disabled):hover span{filter:brightness(1.035)}
/* The actual luminous horizontal tube: x114 y174 w324 h99. */
.flash{left:7.57979%;top:13.94231%;width:21.54255%;height:7.93269%;border-radius:3px}
/* Ejection begins inside the black slot at source y1024. Paper is above the
   lower housing, but a duplicate of the ORIGINAL upper shell occludes it.
   Its edge is within the black slot, never on the white exterior. */
.output{top:82.05128%;left:0;width:100%;height:310px;overflow:hidden;z-index:4}
.slot-occluder{position:absolute;inset:0;width:100%;height:auto;aspect-ratio:1504 / 1248;clip-path:inset(0 0 16.98718% 0);pointer-events:none;z-index:5}
.lens,.shutter{z-index:6}.flash{z-index:7}.countdown{z-index:8}
.output .paper{width:194px;height:234.42px}.paper.ejecting{margin-left:-97px}
.scene{height:600px}
.scene:is([data-state=off],[data-state=requesting],[data-state=ready],[data-state=countdown]){height:355px}
@media(max-width:600px){.camera-rig{width:min(300px,90%);height:auto;top:30px}.scene{height:570px}.scene:is([data-state=off],[data-state=requesting],[data-state=ready],[data-state=countdown]){height:320px}.output .paper{width:178px;height:215.08px}.paper.ejecting{margin-left:-89px}}
@media(prefers-reduced-motion:reduce){.camera-rig.pressed{transform:none}}
@media(pointer:coarse){.shutter::before{content:'';position:absolute;inset:-9px;border-radius:50%;background:transparent}}
.scene.has-photos{height:600px}
.scene.has-photos .status{bottom:51px}
@media(max-width:600px){.scene.has-photos{height:570px}}

/* The finished image is the complete high-resolution print, so native Save Image includes its border and caption. */
.paper .finished-print{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2;object-fit:fill;-webkit-touch-callout:default;user-select:none}

/* Editable caption stays above the native-save image. Dragging starts outside the input. */
.paper-caption{position:relative;z-index:3;background:#faf8ed;display:flex;align-items:baseline;justify-content:center;white-space:nowrap;gap:5px}
.print-name{font:inherit;color:inherit;width:29px;min-width:0;max-width:none;flex:0 0 auto;padding:0;border:0;border-bottom:1px dotted #786f6055;border-radius:0;background:#faf8ed;text-align:left;outline-offset:2px;user-select:text;touch-action:auto}
.print-name::placeholder{color:inherit;opacity:1}
.paper:has(.finished-print)::after{content:"";position:absolute;left:0;right:0;top:77.6%;bottom:0;background:#faf8ed;z-index:3;pointer-events:none}
.paper-caption,.paper-date{position:relative;z-index:4}.paper-date{pointer-events:none}
.paper:has(.finished-print)::after{opacity:1}

.paper-caption span{flex:0 0 auto}

/* Landed prints can be placed anywhere in the visible browser area. */
.photo-desk{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:visible}
.photo-desk>.paper{pointer-events:auto}
.print-name:focus,.print-name:focus-visible{outline:none;box-shadow:none}
