:root { color-scheme: light; font-family: system-ui, sans-serif; color: #253d33; background: #edf0e9; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #fffdf4, #e2e8dc); }
header { text-align: center; padding: max(25px, env(safe-area-inset-top)) 16px 0; z-index: 2; pointer-events: none; }
.eyebrow { font-size: 10px; letter-spacing: .22em; font-weight: 650; }
h1 { font: 44px/1.1 Georgia, serif; letter-spacing: -.04em; margin: 10px 0; }
h1 span { color: #a44358; }
header > p:last-child { font-size: 13px; margin: 0; }
#stage { position: relative; flex: 1; min-height: 120px; z-index: 1; }
a-scene { display: block; height: 100% !important; width: 100%; }
#camera-feed { display: none; position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; }
footer { z-index: 2; text-align: center; padding: 0 20px max(16px, env(safe-area-inset-bottom)); }
#status { font-size: 13px; margin: 0 0 10px; min-height: 18px; }
.gesture-hint { display: grid; place-items: center; min-height: 44px; font-size: 11px; margin: 0 0 14px; }
button { font: inherit; cursor: pointer; border: none; color: inherit; }
button:focus-visible { outline: 3px solid #ab405c; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: wait; }
.primary { display: block; margin: 0 auto; width: min(100%, 350px); min-height: 52px; border-radius: 28px; background: #294b3b; color: #fffdf4; font-weight: 600; }
.trick { display: inline-block; margin: 8px 4px 0; min-height: 44px; padding: 0 20px; border-radius: 24px; background: #e2cfb3; font-weight: 600; }
.camera-on .trick { margin: 0; padding: 0 14px; font-size: 13px; }
.note { font-size: 10px; line-height: 1.5; margin: 10px 0 0; color: #526358; }
body.camera-on { background: transparent; }
.camera-on #camera-feed { display: block; }
.camera-on header { display: none; }
.camera-on #stage { position: fixed; inset: 0; }
.camera-on footer { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.camera-on footer button { pointer-events: auto; box-shadow: 0 2px 12px #0003; }
.camera-on .gesture-hint, .camera-on .note { display: none; }
.camera-on .primary { margin: 0; width: auto; min-height: 44px; padding: 0 12px; font-size: 13px; background: #294b3bef; }
#rose-button:disabled { cursor: default; }
/* Keep live announcements accessible without covering the camera image. */
.camera-on #status { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); }
.camera-on.motion-unavailable #status { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; height: auto; clip-path: none; padding: 8px 12px; border-radius: 12px; background: #fffdf4e6; font-size: 11px; }
@media (min-width: 700px) { h1 { font-size: 52px; } header { padding-top: 30px; } }
@media (max-height: 620px) { header { padding-top: 10px; } h1 { font-size: 28px; margin: 4px 0; } .eyebrow { margin: 4px 0; } .note { margin-top: 4px; } .gesture-hint { margin-bottom: 6px; } footer { padding-bottom: 8px; } }
