*{box-sizing:border-box}
html{height:100%;overflow:hidden;color-scheme:dark}
body{margin:0;background:#000;color:#fff;font-family:Arial,'Hiragino Kaku Gothic ProN',sans-serif;height:100vh;height:100svh;overflow:hidden;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
header{flex:0 0 auto;display:flex;justify-content:center;padding:8px 16px 6px}
header a{display:block}header .handwritten-title{display:block;width:auto;height:60px;max-width:76vw;object-fit:contain;filter:brightness(0) invert(1)}
main{flex:1;min-height:0;width:100%;max-width:440px;margin:0 auto;padding:0 16px 8px}
.camera{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
.stage{position:relative;overflow:hidden;background:#000;height:100%;width:auto;max-width:100%;max-height:100%;min-height:0;margin:0 auto;justify-self:center;align-self:center}
.stage canvas{display:block;width:100%;height:100%;object-fit:contain}
#welcome{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}
#welcome img{width:100%;height:100%;object-fit:contain}
#status{position:absolute;bottom:14px;left:12px;right:12px;text-align:center;color:#fff;background:#000b;border-radius:4px;padding:8px;font-size:11px;line-height:1.6;margin:0}
#status:empty,#save-status:empty{display:none}
#video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
button,#download{border:1px solid #fff;border-radius:6px;background:#fff;color:#000;padding:12px 10px;min-height:44px;font-family:inherit;font-size:11px;font-weight:700;letter-spacing:1px;cursor:pointer;text-align:center;text-decoration:none}
button:disabled{opacity:.5;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:4px}
#start{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;font-size:15px;font-weight:500;letter-spacing:0}
.controls{padding-top:7px;width:100%}
.settings{display:flex;align-items:center;gap:15px;margin:0 0 7px;min-height:22px;font-size:11px}
input{flex:1;accent-color:#fff;min-width:0}
.sound{display:flex;gap:6px;align-items:center;font-size:10px;letter-spacing:1px;margin:0 0 7px;min-height:18px}.sound input{flex:0}
.actions{display:flex;gap:7px}.actions button{flex:1}
#record.recording{background:#000;color:#fff;box-shadow:inset 0 0 0 1px #fff}
#timer{position:absolute;top:15px;right:15px;padding:8px 12px;background:#000b;color:#fff;font-size:12px;border:1px solid #fff;border-radius:4px}
dialog{border:1px solid #444;background:#000;color:#fff;width:min(90vw,450px);padding:18px;border-radius:8px;max-height:calc(100svh - 24px);overflow-y:auto}
dialog::backdrop{background:#000c}
#result{display:block;max-height:calc(100svh - 205px);width:auto;max-width:100%;margin:15px auto;object-fit:contain}
#recording-preview{position:static;opacity:1;pointer-events:auto;width:100%;height:auto;max-height:calc(100svh - 205px);display:block;margin:15px 0;background:#000;object-fit:contain}
dialog p{font-size:11px;text-align:center}#share{width:100%;margin-bottom:10px}#download{display:block}
.album-copy p{margin:0;font-size:17px;line-height:1.3}
.album-copy h1{font-size:clamp(46px,12.8vw,64px);letter-spacing:-2.5px;line-height:1.06;margin:6px 0 10px;font-weight:700}
.album-copy .release-date{font-size:19px;font-weight:400;letter-spacing:.2px}
.album-copy{margin-bottom:24px}
.sun-emojis{text-align:center;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:16px;line-height:22px;margin-top:12px;letter-spacing:3px;padding-left:3px}
body:not(.camera-on) header{display:none}
body:not(.camera-on) main{padding:0 22px 20px}
body:not(.camera-on) .stage{width:calc(100% + 44px);max-width:none;margin-left:-22px;justify-self:start;align-self:stretch}
body:not(.camera-on) .stage canvas{visibility:hidden}
body:not(.camera-on) #welcome img{width:112%;max-width:none;height:112%;flex-shrink:0}
body:not(.camera-on) .controls{padding-top:12px}
body.camera-on .album-copy,body.camera-on .sun-emojis{display:none}
[hidden]{display:none!important}
@media(max-height:640px){.album-copy{margin-bottom:16px}.album-copy h1{font-size:46px;margin:4px 0 6px}.album-copy p{font-size:14px}.album-copy .release-date{font-size:16px}body:not(.camera-on) main{padding-bottom:12px}.sun-emojis{margin-top:8px}#start{min-height:46px}}
@media(max-height:540px){header .handwritten-title{height:34px}header{padding:4px 12px}main{padding-bottom:4px}.controls{padding-top:3px}.settings,.sound{margin-bottom:3px}.actions button,button,#download{min-height:36px;padding:9px}.album-copy{margin-bottom:12px}.album-copy h1{font-size:38px}.sun-emojis{font-size:14px;line-height:18px}}
