/* Layout follows the available space; small screens can scroll naturally. */
html{background:#060811;overflow-x:hidden}body{position:relative;overflow-x:hidden;overflow-y:auto;min-width:280px}main{height:max(100svh,850px)}#universe,.vignette{position:absolute}header{position:absolute;padding-top:max(24px,env(safe-area-inset-top))}footer{position:absolute;bottom:max(24px,env(safe-area-inset-bottom))}.side-label{position:absolute}.intro{top:14%}.dedication{top:62%}.intro p{font-size:14px;line-height:1.7}.letter-button{font-size:14px;min-height:44px}.gesture{font-size:12px;color:#c6bdab}.brand span,.date{font-size:12px}.eyebrow{font-size:12px;letter-spacing:2.5px}.controls button{font-size:14px;min-height:46px}.controls{background:#14141fe8;backdrop-filter:none}.round{width:44px;height:44px}.signature{font-size:12px}.infinity{font-size:12px;letter-spacing:1px}.side-label{font-size:11px;letter-spacing:2px}#panel{width:330px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 145px);overflow:auto;overscroll-behavior:contain;backdrop-filter:none;background:#151522;right:32px;bottom:108px;padding:24px}.panel-title button,#closeNote{min-width:44px;min-height:44px}.panel-title{align-items:center;margin-bottom:12px}label{font-size:14px}input[type=range]{height:28px;margin-top:8px}#reset{font-size:14px;min-height:44px}dialog{max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain}dialog .eyebrow{font-size:12px}#toast{font-size:14px;max-width:calc(100vw - 32px);line-height:1.5}#noteBloom{font-size:14px;min-height:44px}h2{font-size:clamp(42px,4.8vw,70px)}
.design-picker{position:absolute;top:115px;left:40px;z-index:3;display:flex;flex-direction:column;gap:16px}.design-picker>span{font-size:10px;letter-spacing:2px;color:#aaa3af}.design-picker>div{display:flex;flex-direction:column;gap:8px}.design-picker button{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;border-radius:24px;min-height:44px;padding:9px 14px;font-size:13px;color:#aaa6b4;transition:background .2s,color .2s}.design-picker button:hover{color:var(--cream);background:#ffffff09}.design-picker button[aria-pressed=true]{border-color:color-mix(in srgb,var(--gold) 35%,transparent);background:color-mix(in srgb,var(--gold) 9%,transparent);color:var(--gold)}.swatch{display:block;width:13px;height:13px;border-radius:50%;flex:none;box-shadow:0 0 12px #ffffff12}.swatch.gold{background:linear-gradient(135deg,#ffdf85,#a47539)}.swatch.aurora{background:linear-gradient(135deg,#94eadd,#9589eb)}.swatch.sunset{background:linear-gradient(135deg,#ffc394,#e480a4)}
[data-design=aurora] .script{color:#b8d5da}[data-design=sunset] .script{color:#dbb7af}[data-design=aurora] .rule{width:120px}[data-design=sunset] .rule{width:100px}[data-design=aurora] dialog{background:radial-gradient(ellipse at top,#253a46,#111522 70%)}[data-design=sunset] dialog{background:radial-gradient(ellipse at top,#402832,#18121f 70%)}
@media(min-width:1600px){.design-picker{left:4vw}main{height:max(100svh,900px)}}
@media(max-width:1100px){.infinity{display:none}footer{justify-content:center}.signature{position:absolute;left:0;bottom:90px}.design-picker{left:24px;top:105px}.date{font-size:11px;letter-spacing:1px}.side-label{display:none}.controls button{padding:12px 18px}}
@media(max-width:800px){header{padding-left:24px;padding-right:24px}.date{display:none}.design-picker{top:78px;left:50%;transform:translateX(-50%);gap:0}.design-picker>span{display:none}.design-picker>div{flex-direction:row;gap:3px}.design-picker button{font-size:12px;padding:9px 12px;gap:7px;white-space:nowrap}.intro{top:17%}.intro .eyebrow{font-size:11px}.intro p{max-width:340px;margin:14px auto;font-size:14px;padding:0 18px}.gesture{top:54%;font-size:11px}.dedication{top:62%}.signature{display:none}main{height:max(100svh,900px)}h1{font-size:62px}h2{font-size:clamp(34px,8vw,54px);letter-spacing:5px}.dedication p{font-size:20px;line-height:1.45}.dedication .script{font-size:24px}footer{left:16px;right:16px;bottom:max(18px,env(safe-area-inset-bottom))}.controls{width:100%;max-width:530px;justify-content:space-between;border-radius:28px;padding:6px}.controls button{flex:1;white-space:normal;font-size:12px;line-height:1.35;padding:9px 6px;min-height:65px}.controls span{display:block;font-size:21px;margin:0 0 4px}#panel{bottom:108px;right:16px;max-height:calc(100dvh - 128px)}#toast{top:31%;font-size:13px}.letter-button{font-size:14px}.brand span{font-size:11px;letter-spacing:2px}}
@media(max-width:380px){.brand span{font-size:10px;letter-spacing:1.5px}header{padding-left:18px;padding-right:18px}.design-picker button{padding:8px 10px;font-size:12px}.intro .eyebrow{font-size:10px;letter-spacing:2px}h1{font-size:56px}h2{font-size:34px;letter-spacing:4px}.intro p{font-size:13px}.controls button{font-size:11px;padding:9px 3px}.dedication p{font-size:19px}.letter-button{font-size:13px}}
@media(max-height:550px) and (min-width:801px){main{height:850px}#panel{bottom:20px;max-height:calc(100dvh - 40px)}header{padding-top:18px}}
@media(prefers-reduced-motion:reduce){.design-picker button{transition:none}}
@media(pointer:coarse){#universe{touch-action:pan-y pinch-zoom}}
