:root{color-scheme:dark;background:#171b11}
*{box-sizing:border-box}body{margin:0}
.stage{position:relative;isolation:isolate;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#171b11;display:grid;place-items:center}
.stage::before{content:"";position:absolute;inset:-36px;z-index:-1;background:url('/open.webp') center/cover;filter:blur(28px) brightness(.53) saturate(1.10)}
.stage.finished::before{background-image:url('/end.webp')}
video,.end-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;display:block}
.end-frame{visibility:hidden}.stage.finished .end-frame{visibility:visible}
@media(max-aspect-ratio: 4/3){video,.end-frame{object-fit:contain}}
.sound-start{
 position:absolute;z-index:3;inset:auto;
 top:max(14px,calc(env(safe-area-inset-top,0px) + 10px));
 right:max(15px,calc(env(safe-area-inset-right,0px) + 10px));
 width:56px;height:56px;padding:0;display:grid;place-items:center;
 border-radius:50%;border:1px solid #ffe6ac7a;cursor:pointer;touch-action:manipulation;
 color:#fff2d0;background:radial-gradient(circle at 31% 25%,#fff0bd4f,#392b1359 58%,#1e1c15b5);
 box-shadow:0 3px 15px #0d0e0ac0,inset 0 0 0 3px #fff1c118,inset 0 0 15px #ffe2a421;
 -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
 transition:background-color .22s,box-shadow .22s;
}
.sound-start[hidden]{display:none}
.sound-start:focus-visible{outline:2px solid #fff1bf;outline-offset:4px}
@media(hover:hover){.sound-start:hover{box-shadow:0 3px 15px #0d0e0ac0,0 0 16px #ffc7645e,inset 0 0 0 3px #fff1c127}}
.sound-start:active{background-color:#bd8f493b}
.sound-start svg{width:46px;height:46px;grid-area:1/1;overflow:visible;filter:drop-shadow(0 1px 3px #321c0a)}
.speaker-body,.sound-ripple,.replay-ring{stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.speaker-body{fill:#ffdda420}
.sound-ripple{transform-box:view-box;transform-origin:35px 32px;animation:outward 2.25s ease-out infinite}
.r2{animation-delay:.15s}.r3{animation-delay:.30s}
@keyframes outward{
 0%,65%,100%{opacity:.61;transform:scale(.97)}
 28%{opacity:1;transform:scale(1.10)}
}
.replay-play{fill:currentColor;stroke:currentColor;stroke-linejoin:round}
.replay-ring{opacity:.8}
.sound-start[data-action="sound"] .hero-replay,.sound-start[data-action="replay"] .hero-sound{display:none}
@media(prefers-reduced-motion:reduce){.sound-ripple{animation:none}.sound-start{transition:none}}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Only the phone composition gets a uniform, bottom-anchored zoom. */
.stage.portrait::before{background-image:url('/open-mobile-watch.webp')}
.stage.portrait.finished::before{background-image:url('/end-mobile-watch.webp')}
.stage.portrait video,.stage.portrait .end-frame{
 inset:auto;left:var(--film-x,0px);top:var(--film-y,0px);
 width:var(--film-w,100%);height:var(--film-h,100%);
 object-fit:contain;
}

/* Keep original proportions and fill the viewport, even in landscape desktop mode on a phone. */
.stage:not(.portrait) video,.stage:not(.portrait) .end-frame{
 object-fit:cover;object-position:50% 50%;
}
.stage:not(.portrait)::before{background-image:url('/open-stable.webp')}
.stage:not(.portrait).finished::before{background-image:url('/end-stable.webp')}

/* Fixed framing for wider displays; all pullback motion is in the video. */
@media(min-aspect-ratio:24/10){
 .stage:not(.portrait) video,.stage:not(.portrait) .end-frame{object-position:50% 8%}
}
/* Strong enough over sunlight; all motion is inside a stationary hit target. */
.sound-start{
 width:64px;height:64px;border-color:#ffeab5c9;color:#fff4d7;
 background:radial-gradient(circle at 30% 23%,#74562a88,#34271799 54%,#17180fd9);
 box-shadow:0 4px 17px #10100ac4,0 0 13px #f9c36b48,inset 0 0 0 3px #ffedba25;
}
.sound-start::after{
 content:"";position:absolute;pointer-events:none;inset:2px;border-radius:50%;
 border:1px solid #ffe5a88c;box-shadow:0 0 11px #ffd78b66,inset 0 0 8px #ffe2a13d;
 opacity:.5;
}
.sound-start[data-action="replay"]::after{animation:breathing-light 3.25s ease-in-out infinite}
.sound-start svg{width:52px;height:52px}
.speaker-body,.sound-ripple,.replay-ring{stroke-width:2.8}
.replay-ring{opacity:.95}
@keyframes breathing-light{0%,100%{opacity:.40}50%{opacity:1}}
@media(min-width:900px) and (min-aspect-ratio:4/5){
 .sound-start{width:68px;height:68px;top:20px;right:22px}
 .sound-start svg{width:55px;height:55px}
}
@media(prefers-reduced-motion:reduce){.sound-start[data-action="replay"]::after{animation:none}}
/* Scale with the viewed screen, including Android's 980px desktop-mode viewport. */
.stage.touch-layout .sound-start,.stage.portrait .sound-start{
 width:max(76px,19vmin);height:max(76px,19vmin);
 top:max(12px,2.9vmin,calc(env(safe-area-inset-top,0px) + 8px));
 right:max(13px,3.3vmin,calc(env(safe-area-inset-right,0px) + 8px));
 border-width:max(1px,.29vmin);
}
.stage.touch-layout .sound-start svg,.stage.portrait .sound-start svg{width:83%;height:83%}
/* Place both sound and replay on the upper left, clear of the subjects. */
.sound-start{left:15px;right:auto;width:78px;height:78px}
.sound-start svg{width:62px;height:62px}
@media(min-width:900px) and (min-aspect-ratio:4/5){
 .sound-start{width:clamp(78px,11.5vmin,92px);height:clamp(78px,11.5vmin,92px);left:22px}
 .sound-start svg{width:80%;height:80%}
}
.stage.touch-layout .sound-start,.stage.portrait .sound-start{
 left:max(13px,3.3vmin,calc(env(safe-area-inset-left,0px) + 8px));right:auto
}

/* Before the first decoded frame, show the matching still edge to edge. */
.boot-frame{position:absolute;inset:0;z-index:1;display:none;overflow:hidden;pointer-events:none;background:#171b11}
.stage.loading-frame .boot-frame{display:block}
.boot-frame img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.stage.portrait .boot-frame img{
 inset:auto;left:var(--film-x,0px);top:var(--film-y,0px);
 width:var(--film-w,100%);height:var(--film-h,100%);
 object-fit:cover;
}
.stage.loading-frame video{visibility:hidden}
@media(min-aspect-ratio:24/10){.stage:not(.portrait) .boot-frame img{object-position:50% 8%}}

/* An open neon mark rather than a filled control plate. */
.sound-start[data-action="replay"]{
 color:#ffefc9;border:1px solid transparent;background:transparent;
 box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
}
.sound-start[data-action="replay"]::after{
 inset:8%;border:1px solid #ffda94a8;box-shadow:
 0 0 0 1px #17150ca0,0 0 8px #ffcd776f,inset 0 0 8px #ffdd9440;
}
.sound-start[data-action="replay"] .hero-replay{
 width:87%;height:87%;filter:drop-shadow(0 1px 1px #1b160a) drop-shadow(0 0 2px #21180c) drop-shadow(0 0 5px #ffcb70b8);
}
.sound-start[data-action="replay"] .replay-ring{stroke-width:2.15;opacity:1}
.sound-start[data-action="replay"] .replay-play{fill:#fff6df}
@media(hover:hover){.sound-start[data-action="replay"]:hover::after{border-color:#fff3cf;box-shadow:0 0 13px #ffcb76a6}}
.sound-start[data-action="replay"]:active{background:#ffe5ad10}
