.photo-booth{width:min(1040px,calc(100% - 32px - 2 * max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))));max-height:calc(100svh - 32px - 2 * max(env(safe-area-inset-top,0px),env(safe-area-inset-bottom,0px)));margin:auto;padding:30px;border:1px solid #dec8d4;border-radius:12px;background:#f2e9df;color:#3e2934;box-shadow:0 25px 130px #0f060bc0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a88f9c transparent}
.photo-booth::backdrop{background:#180a11bd;backdrop-filter:blur(8px)}
.photo-heading{position:sticky;top:-1px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px;padding-bottom:10px;background:#f2e9df}
.photo-kicker{margin:0 0 10px;color:#755b69;font:400 9px/1.5 var(--sans,Nunito,sans-serif);letter-spacing:1.7px}
.photo-heading h2{margin:0;font:400 clamp(30px,4vw,43px)/1.15 var(--serif,Fraunces,Georgia,serif);letter-spacing:-1px}
.photo-heading p:last-child{margin:10px 0 0;font-size:13px;line-height:1.6;color:#6f5b66}
.photo-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #90778455;border-radius:50%;background:#eae1d7;color:#3e2934}
.photo-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.photo-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.85fr);gap:34px;align-items:center}
.photo-preview-well{position:relative;display:grid;place-items:center;min-width:0;min-height:360px;padding:20px;border:1px solid #8664762b;border-radius:8px;background:radial-gradient(ellipse at 30% 20%,#e5d6c6,#cebbc577);overflow:hidden}
.photo-preview{display:block;max-width:100%;width:auto;height:auto;max-height:min(58svh,600px);box-shadow:0 12px 30px #321d2830;object-fit:contain;transform:rotate(-1deg)}
.photo-preview[hidden],.photo-developing[hidden],.photo-retry[hidden]{display:none}
.photo-developing{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;background:#e8dfd5ec;padding:25px;text-align:center;color:#604654;font-size:13px}
.photo-loading-leaf{font:400 42px/1.4 var(--serif,Fraunces,Georgia,serif);color:#8d697c;animation:photo-breathe 1.4s ease-in-out infinite}
.photo-options{min-width:0}.photo-options fieldset{min-width:0;border:0;padding:0;margin:0 0 26px}
.photo-options legend{padding:0;margin-bottom:12px;color:#4b3842;font:400 18px/1.3 var(--serif,Fraunces,Georgia,serif)}
.photo-format-options,.photo-palette-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.photo-choice{position:relative;display:block;min-width:0;cursor:pointer;font-family:var(--sans,Nunito,sans-serif)}
.photo-choice input{position:absolute;width:1px;height:1px;opacity:0;inset:50%;margin:0}
.photo-choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:107px;padding:12px 5px;border:1px solid #936b8055;border-radius:7px;background:#f9f3ed;transition:background .15s,border-color .15s,box-shadow .15s}
.photo-choice b{font-size:12px;font-weight:400}.photo-choice small{font-size:9px;line-height:1.4;color:#7c6772;white-space:nowrap}
.photo-choice input:checked+span{border-color:#725062;background:#e8dbce;box-shadow:inset 0 0 0 1px #725062}
.photo-choice input:focus-visible+span{outline:2px solid #664557;outline-offset:3px}
.photo-choice input:disabled+span{opacity:.6;cursor:wait}
.photo-shape{display:block;border:1.5px solid #7f5c6f;border-radius:2px;width:20px;height:20px;margin-bottom:2px}
.photo-shape-story{width:13px;height:23px}.photo-shape-landscape{width:27px;height:16px;margin-top:4px;margin-bottom:5px}
.photo-palette>span{min-height:68px;flex-direction:row;gap:6px;padding:10px 4px}
.photo-palette i{width:18px;height:18px;flex:0 0 18px;border-radius:50%;background:var(--swatch);border:4px solid var(--swatch-edge)}
.photo-small-note{font-size:12px;line-height:1.7;color:#755f6b;margin:0 0 20px;max-width:290px}
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.photo-actions button{min-height:48px;padding:12px 9px;border:1px solid #472e3b;border-radius:6px;font:400 12px/1.4 var(--sans,Nunito,sans-serif);transition:background .15s;touch-action:manipulation}
.photo-primary{color:#f3e9df;background:#472e3b}.photo-secondary{color:#472e3b;background:transparent}
.photo-primary:hover{background:#5b424f}.photo-secondary:hover{background:#e8dbce}
.photo-actions button:disabled{opacity:.45;cursor:wait}
.photo-status{min-height:38px;margin:12px 0 6px;color:#6a4d5c;font-size:11px;line-height:1.65}
.photo-retake{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:8px;padding:8px 0;border:0;border-bottom:1px solid #7b5b6c45;color:#68495a;background:none;font-size:11px}
.photo-retake span{font-size:16px}.photo-retry{min-height:44px;padding:8px 13px;border:1px solid #725364;border-radius:5px;color:#4f3543;font-size:12px}
.photo-booth button:focus-visible{outline:2px solid #664557;outline-offset:4px}
@keyframes photo-breathe{50%{opacity:.4;transform:scale(.9)}}
@media(max-width:700px){.photo-booth{width:calc(100% - 20px - 2 * max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)));max-height:calc(100svh - 20px - 2 * max(env(safe-area-inset-top,0px),env(safe-area-inset-bottom,0px)));padding:20px 16px}.photo-heading{margin-bottom:8px;gap:12px}.photo-layout{grid-template-columns:minmax(0,1fr);gap:24px}.photo-preview-well{min-height:220px;padding:15px}.photo-preview{max-height:39svh;transform:none}.photo-options fieldset{margin-bottom:20px}.photo-choice>span{min-height:96px}.photo-palette>span{min-height:55px}.photo-small-note{max-width:none;font-size:11px}.photo-status{min-height:32px}.photo-actions button{font-size:13px}}
@media(min-width:701px) and (max-height:700px){.photo-booth{padding:20px}.photo-heading{margin-bottom:16px}.photo-preview-well{min-height:260px}.photo-preview{max-height:55svh}.photo-options fieldset{margin-bottom:17px}.photo-choice>span{min-height:90px}.photo-palette>span{min-height:52px}}
@media(prefers-reduced-motion:reduce){.photo-loading-leaf{animation:none}.photo-choice>span,.photo-actions button{transition:none}}
.photo-roll[hidden]{display:none}
.photo-roll-options{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#a88f9c transparent;padding:6px 6px 8px;margin:-6px -6px 0}
.photo-shot{flex:0 0 auto;scroll-snap-align:start}
.photo-shot>span{width:62px;height:62px;min-height:0;padding:3px;border-radius:9px}
.photo-shot img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}
/* Short landscape screens: picture beside the choices, both starting at the top, the whole card in view
   and the moment strip visible without scrolling. Narrow ones switch to two equal columns. */
@media(max-height:500px) and (orientation:landscape){.photo-layout{gap:16px;align-items:start}.photo-preview-well{min-height:0;padding:10px}.photo-preview{max-height:calc(100svh - 180px)}.photo-heading h2{font-size:24px}.photo-heading p:last-child{margin-top:4px;font-size:11px}.photo-kicker{margin-bottom:4px}}
@media(max-width:700px) and (max-height:500px) and (orientation:landscape){.photo-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.photo-preview{max-height:calc(100svh - 150px)}}
