/* Fixed-size leaves turn around one hinge. Folding never stretches the artwork. */
.wv-duo-stage { --device-scale: .58; position: relative; width: 100%; aspect-ratio: 1.48; perspective: 2200px; isolation: isolate; }
.wv-duo-center { position: absolute; left: 50%; top: 50%; width: 660px; height: 472.35px; transform: translate(-50%, -50%) scale(var(--device-scale, .7)); perspective: 2200px; }
.wv-duo-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateX(var(--recenter, 0px)) rotateX(4deg); }
.wv-leaf { position: absolute; top: 0; width: 330px; height: 100%; transform-style: preserve-3d; }
.wv-leaf-left { left: 0; transform-origin: 100% 50%; transform: translateZ(var(--gap, 0px)) rotateY(var(--fold, 0deg)); }
.wv-leaf-right { right: 0; }
.wv-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(135deg,#e0e3df,#3c4546 20%,#a1aaa9 65%,#e4e8e4); box-shadow: inset 0 0 0 1px #ffffff80; }
.wv-inner-left { border-radius: 31px 0 0 31px; }
.wv-inner-right { border-radius: 0 31px 31px 0; }
.wv-face::before { content: ''; position: absolute; inset: 3px; background: #060b0d; border-radius: inherit; }
.wv-inner-left::before { right: 0; }
.wv-inner-right::before { left: 0; }
.wv-inner-screen { position: absolute; top: 10px; width: 644px; height: 452.35px; border-radius: 23px; overflow: hidden; background: #07191d; }
.wv-inner-left .wv-inner-screen { left: 8px; }
.wv-inner-right .wv-inner-screen { right: 8px; }
.wv-inner-screen img, .wv-outer-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wv-outer { transform: rotateY(180deg) translateZ(20.8px); border-radius: 7px 31px 31px 7px; }
.wv-outer-screen { position: absolute; inset: 10px 9.5px; border-radius: 5px 23px 23px 5px; overflow: hidden; background: #07191d; }
.wv-outer-screen::after { content: ''; position: absolute; right: 15px; top: 15px; width: 17px; height: 17px; background: #03070b; border: 2px solid #26333a; border-radius: 50%; }
.wv-screen-shade { position: absolute; inset: 0; background: linear-gradient(#00131d33, transparent 45%, #00131d22); }
.wv-clock { position: absolute; inset: 27px 0 auto; color: white; text-align: center; text-shadow: 0 2px 20px #0003; font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; }
.wv-clock strong { display: block; font-size: 76px; font-weight: 550; line-height: 1.1; letter-spacing: -4px; }
.wv-inner-screen .wv-clock { top: 24px; }
.wv-home-indicator { position: absolute; bottom: 8px; left: 50%; width: 95px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #ffffffe0; }
.wv-hinge { position: absolute; top: 5px; bottom: 5px; left: 324px; width: 12px; background: linear-gradient(90deg,#334042,#c1c9c5,#253638); transform: translateZ(-10px); border-radius: 5px; }
.wv-edge { position: absolute; width: 100%; height: 20.8px; background: linear-gradient(#b2bdbb,#344546); transform-origin: top; transform: rotateX(-90deg); bottom: -20.8px; }
.wv-leaf-back { position: absolute; inset: 0; border-radius: 0 31px 31px 0; background: #344345; transform: translateZ(-20.8px); box-shadow: 0 24px 45px #0003; }
.wv-crease { position: absolute; inset: 10px auto 10px 328px; width: 4px; background: linear-gradient(90deg,#0002,#fff1,#0002); pointer-events: none; transform: translateZ(1px); }
.wv-fold-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#00101577,transparent 80%); opacity: var(--shade,0); pointer-events: none; }
.wv-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wv-controls button { font: inherit; cursor: pointer; min-height: 44px; }
.wv-controls [data-fold-toggle], .wv-controls [data-fold-play] { border: 1px solid #ffffff40; border-radius: 99px; color: #f8f7ed; background: #ffffff0d; padding: 10px 18px; font-size: 13px; }
.wv-controls [data-fold-toggle]:hover, .wv-controls [data-fold-play]:hover { background: #ffffff20; }
.wv-slider-label { font-size: 12px; color: #d1e1db; }
.wv-controls input { accent-color: #d8edb9; width: clamp(90px,15vw,180px); min-height: 44px; cursor: ew-resize; }
.wv-controls output { color: #d1e1db; font: 12px/1.4 ui-monospace, monospace; min-width: 35px; }
.wv-controls[hidden], .wv-controls [hidden] { display: none; }
@media (max-width: 600px) { .wv-duo-stage { --device-scale: .45; } }
@media (max-width: 420px) { .wv-duo-stage { --device-scale: .38; } }
@media (max-width: 360px) { .wv-duo-stage { --device-scale: .31; } }
@media (prefers-reduced-motion: reduce) { .wv-duo-rig { transform: translateX(var(--recenter, 0px)); } }
