:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#264c40;background:#f6f3ea;font-size:16px;line-height:1.6;color-scheme:light;--ink:#264c40;--muted:#64776c;--paper:#f6f3ea;--line:#d5dacc;--orange:#b86440}*{box-sizing:border-box}body{margin:0}.shell{max-width:1240px;margin:auto;padding:0 48px}.masthead{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.wordmark{font-size:19px;font-weight:750;letter-spacing:.16em;color:var(--ink);text-decoration:none;display:flex;gap:10px;align-items:center}.tree{font-size:32px}.wordmark-sub{font-size:9px;letter-spacing:.12em;font-weight:450;margin-left:12px;max-width:75px;line-height:1.5}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em}.quiet{font-size:13px;color:var(--muted)}h1,h2,p{margin-top:0}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,4.7vw,66px);font-weight:400;letter-spacing:-.045em;line-height:1.09;margin:18px 0 25px}h2{font-size:20px;font-weight:600;margin:30px 0 14px}.intro{font-size:17px;color:var(--muted);max-width:500px;line-height:1.85;margin-bottom:28px}.welcome{display:grid;grid-template-columns:1.07fr 1fr;gap:70px;padding:56px 0 65px;align-items:center}.welcome-copy{padding:20px 0}.welcome h1{font-size:clamp(40px,4.5vw,62px)}.welcome-note{display:flex;gap:24px;align-items:center;margin-top:55px;border-top:1px solid var(--line);padding-top:25px;font-size:13px;line-height:1.6}.welcome-note p{margin:0}.note-number{font-size:10px;font-weight:700;letter-spacing:.1em;white-space:nowrap}.scenic{position:relative;isolation:isolate;min-width:0}.scenic>img{display:block;width:100%;height:550px;object-fit:cover;border-radius:180px 180px 8px 8px}.scenic-label{position:absolute;bottom:30px;left:30px;color:#f6f3ea;font:24px/1.3 Georgia}.scenic-stamp{position:absolute;top:35px;right:-23px;background:#e9b790;width:100px;height:100px;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:11px;font-weight:750;letter-spacing:.1em;transform:rotate(13deg);box-shadow:0 0 0 7px var(--paper)}button,.button,select,input,textarea{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:24px;min-height:48px;padding:13px 21px;text-decoration:none;border:0;border-radius:6px;cursor:pointer;font-size:14px;font-weight:550}.primary{color:#f7f4e8;background:var(--ink)}.secondary{background:#e4e9df;color:var(--ink)}.text-button{background:none;color:var(--ink);padding:10px 0;font-size:12px;letter-spacing:.02em;text-decoration:underline;text-underline-offset:5px}.primary:hover{background:#35634f}button:disabled{opacity:.45;cursor:not-allowed}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.section-top{display:flex;justify-content:space-between;margin-top:38px;align-items:center}.photo-nav{display:flex;gap:12px;margin:20px 0}.photo-nav button{min-width:46px;padding:4px;border:1px solid var(--line);border-radius:50%;width:46px;height:46px;background:#efeee4;font-weight:500;color:var(--ink)}.photo-nav button[aria-current=step]{background:var(--ink);color:var(--paper);outline:4px solid #dfe4d7}.photo-nav img{width:100%;height:100%;object-fit:cover;border-radius:50%}.prompt-title{font-size:44px;max-width:780px}#capturePanel{max-width:830px;margin:30px auto 50px}.camera-card{background:#e5e8de;padding:14px;border-radius:12px}.camera-top,.camera-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;color:var(--muted);padding:0 5px}.camera-top{padding-bottom:10px}.camera-bottom{padding-top:8px}.lens-label{display:flex;gap:10px;align-items:center;margin:0}.lens-label select{font-size:12px;width:auto;padding:5px;background:transparent}video{display:block;width:100%;border-radius:6px;background:#182f29;object-fit:contain;max-height:55vh}#preview{aspect-ratio:16/10;min-height:200px}label{display:block;margin:15px 0;font-size:14px}input:not([type=checkbox]),select,textarea{display:block;width:100%;padding:12px;border:1px solid #bdcbbb;border-radius:6px;background:#faf9f3;color:var(--ink);margin-top:6px}.check{display:flex;gap:12px;align-items:flex-start;font-size:14px}.check input{flex-shrink:0;width:21px;height:21px;margin-top:4px;accent-color:var(--ink)}.shutter{display:flex;width:70px;height:70px;border:1px solid var(--ink);border-radius:50%;padding:6px;background:none;margin:22px auto 10px}.shutter span{width:100%;height:100%;border-radius:50%;background:var(--ink)}.center{text-align:center}.position-note{display:flex;gap:30px;padding:22px 0;border-bottom:1px solid var(--line)}.position-note p{font-size:14px;max-width:540px;margin:0}#arm{width:100%;margin:12px 0}#backPhotos{display:block;margin:auto}#photoReview{max-width:760px;margin:25px auto}#reviewImage{width:100%;max-height:60vh;object-fit:contain;border-radius:9px;background:#dde3d8}.stage{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 20px}.stage h1{font-size:clamp(54px,11vw,125px);max-width:900px;margin:25px 0}.stage p{max-width:400px;color:var(--muted)}#stop{margin-top:60px;opacity:.7}.assembly{display:flex;gap:9px;margin:20px}.assembly span{width:43px;height:60px;background:#a5b7a5;transform:rotate(-7deg);border:5px solid #fff9ee;animation:arrange 1.7s ease-in-out infinite}.assembly span:nth-child(even){transform:rotate(8deg);animation-delay:.3s}.assembly span:nth-child(3){animation-delay:.6s}@keyframes arrange{50%{transform:translateY(-10px) rotate(0)}}#result{padding:45px 0}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.results-grid img{width:100%;border-radius:8px}#collageDownload{margin:20px 0}.notice,.warning,#notice{padding:17px 20px;border-radius:6px;background:#e8eadb;font-size:14px;margin-top:20px}.warning{background:#f4ded2;color:#753e29}.organizer-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:25px 0 60px}#organizer{padding-top:35px}#checks,pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.7;background:#e5eade;padding:15px;border-radius:6px;max-height:330px;overflow:auto}meter{width:100%;height:20px}details{margin:20px 0}summary{cursor:pointer;font-size:14px;padding:10px 0}.preflight{font-size:14px;padding-left:22px}.preflight li{margin-bottom:12px}.recovery-card{border:1px solid var(--line);padding:16px;border-radius:6px;margin:12px 0}.recovery-card p{font-size:12px;margin:0 0 10px}.recovery-card button{min-height:40px;padding:8px 12px;font-size:12px}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:24px 0 30px;font-size:10px;letter-spacing:.06em;color:var(--muted)}[hidden]{display:none!important}:focus-visible{outline:3px solid #bc7958;outline-offset:4px}@media(max-width:800px){.shell{padding:0 22px}.masthead{height:82px}.wordmark-sub{display:none}.welcome{grid-template-columns:1fr;gap:35px;padding:35px 0}.welcome-copy{padding:0}.welcome h1{font-size:48px}.welcome .intro{font-size:16px}.scenic{max-width:500px}.scenic>img{height:380px;border-radius:150px 150px 6px 6px}.scenic-stamp{right:10px;top:16px;width:80px;height:80px}.welcome-note{margin-top:30px;padding-top:20px}.results-grid,.organizer-grid{grid-template-columns:1fr;gap:20px}.prompt-title{font-size:38px}.intro{font-size:16px}.camera-card{padding:10px}.camera-bottom{flex-wrap:wrap}.position-note{gap:18px}.stage{min-height:66vh;padding-left:0;padding-right:0}footer{flex-wrap:wrap;font-size:9px}#capturePanel{margin-top:20px}.photo-nav{gap:10px}.photo-nav button{min-width:42px;width:42px;height:42px}button,.button{min-height:48px}.scenic-label{font-size:22px}}@media(prefers-reduced-motion:reduce){.assembly span{animation:none}}@media(max-width:380px){.shell{padding:0 16px}.welcome h1{font-size:42px}.wordmark{font-size:16px}.camera-top{flex-wrap:wrap}}
/* The same video element is reused throughout the photo journey. */
#preview{aspect-ratio:auto;min-height:0;height:auto;max-height:64vh;max-height:64svh;object-fit:contain;object-position:center;background:#182f29;transform:none}
#capturePanel{width:100%;max-width:1040px;scroll-margin-top:8px}
.camera-scene .section-top{margin-top:18px}.camera-scene .photo-nav{margin:12px 0;gap:8px}.camera-scene .photo-nav button{width:36px;height:36px;min-width:36px;min-height:36px}.camera-scene .prompt-title{font-size:30px;margin:12px 0}.camera-scene #promptHint{font-size:14px;line-height:1.5;margin-bottom:12px;max-width:760px}.camera-scene #capturePanel{margin:12px auto 26px}.camera-card{padding:8px}.camera-top{padding-bottom:6px}.camera-bottom{padding-top:6px}
.countdown-preview .camera-top,.countdown-preview .camera-bottom,.countdown-preview #photoControls,.countdown-preview #finalControls{display:none!important}
.camera-scene .framing-stage{min-height:0;padding:0 0 20px;gap:4px}.framing-stage h1{font-size:clamp(64px,15vw,100px);font-variant-numeric:tabular-nums;margin:0;line-height:1.05}.framing-stage #stageHint{font-size:15px;line-height:1.4;margin:4px 0;max-width:520px}.framing-stage #stop{margin-top:4px}.framing-stage .eyebrow{font-size:12px;letter-spacing:.12em}.framing-stage #limitWarning{margin:0}
#organizerGate{max-width:520px;padding:40px 0 60px}#organizerGate input{font-size:16px}
@media(max-width:800px){.shell:has(.camera-scene){padding:0 10px}.shell:has(.camera-scene) .masthead{height:48px}.shell:has(.camera-scene) .wordmark{font-size:14px}.shell:has(.camera-scene) .tree{font-size:24px}.camera-scene .camera-bottom{gap:6px}.camera-scene #capturePanel{margin-bottom:12px}.camera-scene .camera-card{padding:4px}.camera-scene #preview{border-radius:4px}.camera-scene .position-note{padding:12px 0}.camera-scene .position-note p{font-size:13px}.camera-scene .framing-stage{padding-top:0}.camera-scene .framing-stage h1{font-size:80px}.framing-stage #stageHint{font-size:14px}}

.camera-scene #notice,.camera-scene #warning{grid-column:1/-1}

/* Short landscape viewports: keep the full camera frame, size the element to it. */
@media (orientation:landscape) and (max-height:600px){
  .shell:has(.camera-scene){padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
  .camera-scene #capturePanel{min-width:0}
  .camera-scene #preview{width:auto;max-width:100%;height:auto;max-height:76vh;max-height:76svh;margin-inline:auto}
}

/* Use the visible viewport, not the height of the page card, to frame the final photo. */
#startup,#startupError{margin:24px 0}
body:has(.expanded-frame,.framing-stage:not([hidden])){overflow:hidden}
#scene.expanded-frame,#scene:has(.framing-stage:not([hidden])){
  position:fixed;inset:0 0 auto;z-index:10;height:100vh;height:100dvh;
  display:grid;align-items:stretch;gap:6px;grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);background:var(--paper);
  padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right))
    max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
}
#scene:has(.framing-stage:not([hidden])){grid-template-rows:minmax(0,1fr) auto}
.expanded-frame #journeyView,.expanded-frame #finalControls,.expanded-frame #notice,
.expanded-frame #warning,#scene:has(.framing-stage:not([hidden])) > :is(#notice,#warning){display:none}
#scene :is(.countdown-preview),#scene.expanded-frame #capturePanel{
  width:100%;height:100%;min-width:0;min-height:0;max-width:none;margin:0;
}
.expanded-frame .camera-card,.countdown-preview .camera-card{
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  height:100%;min-height:0;padding:0;background:transparent;
}
.countdown-preview .camera-card{grid-template-rows:minmax(0,1fr)}
.expanded-frame #preview,.camera-scene .countdown-preview #preview{
  width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;
  object-fit:contain;margin:0;
}
.expanded-frame :is(.camera-top,.camera-bottom){padding:0;gap:6px;flex-wrap:nowrap}
.expanded-frame #cameraLabel{display:none}
.expanded-frame .camera-bottom #cameraHint{line-height:1.3}
#expandFrame{padding:6px 10px;min-height:44px}
.expanded-frame #connect{min-height:44px;padding:4px 10px;flex-shrink:0}
#scene .framing-stage{
  min-height:0;padding:0;gap:2px;align-self:center;line-height:1.2;
}
#scene .framing-stage h1{overflow-wrap:anywhere;font-size:clamp(34px,13vmin,78px);margin:0}
#scene .framing-stage #stageHint{font-size:12px;margin:0}
#scene .framing-stage #stop{min-height:44px;margin:0;padding:4px}
@media(orientation:landscape){
  #scene:has(.framing-stage:not([hidden])){
    grid-template-columns:minmax(0,1fr) minmax(108px,17%);grid-template-rows:minmax(0,1fr);
  }
  .expanded-frame .camera-card{grid-template-columns:minmax(0,1fr) clamp(110px,19vw,165px);grid-template-rows:minmax(0,1fr) auto}
  .expanded-frame #preview{grid-area:1/1/3/2}
  .expanded-frame .camera-top,.expanded-frame .camera-bottom{flex-direction:column;justify-content:flex-start;padding-left:4px}
  .expanded-frame .camera-bottom{text-align:center}
  .expanded-frame .lens-label select{min-height:44px}
}
/* One final setup surface: the original confirmation and Start controls remain usable. */
#scene.expanded-frame #capturePanel{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:4px}
.expanded-frame .camera-card{display:contents}
.expanded-frame #preview{grid-area:auto;min-width:0}
.expanded-frame #finalControls{display:block;min-height:0;overflow:auto}
.expanded-frame #finalControls .position-note,.expanded-frame #backPhotos{display:none}
.expanded-frame #finalControls .check{margin:4px 0;font-size:12px;line-height:1.3;gap:6px}
.expanded-frame #limitSummary{margin:2px 0;font-size:12px;line-height:1.3}
.expanded-frame #arm{margin:4px 0;min-height:44px;padding:6px;font-size:15px}
.expanded-frame #cameraHint{font-size:12px}
.expanded-frame #expandFrame,.expanded-frame .lens-label{margin:0}
#scene .framing-stage[data-capture-state=countdown] h1{font-size:clamp(64px,27vmin,110px);font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:700}
#scene .framing-stage #stageHint{display:none}
#scene .framing-stage .eyebrow{font-size:12px;letter-spacing:.04em}
#scene.presentation-stage{
 position:fixed;inset:0 0 auto;z-index:10;height:100vh;height:100dvh;
 padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right))
 max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--paper);
 display:flex;flex-direction:column;overflow:auto;
}
body:has(.presentation-stage){overflow:hidden}
.presentation-stage #stage{flex:1;min-height:0;padding:0;justify-content:center;gap:8px}
.presentation-stage #stage h1{font-size:clamp(38px,min(12vw,22dvh),110px);line-height:1.05;margin:0}
.presentation-stage #stage p{margin:0}
.presentation-stage #stop{margin:0;min-height:44px}
.presentation-stage .assembly{margin:4px}
@media(orientation:landscape){
 #scene.expanded-frame #capturePanel{grid-template-columns:minmax(0,1fr) clamp(190px,28vw,250px);grid-template-rows:auto auto minmax(0,1fr)}
 .expanded-frame #preview{grid-area:1/1/4/2}
 .expanded-frame .camera-top{grid-area:1/2;flex-direction:row;flex-wrap:wrap}
 .expanded-frame .camera-bottom{grid-area:2/2;flex-direction:row;flex-wrap:wrap}
 .expanded-frame #finalControls{grid-area:3/2}
 .expanded-frame #cameraHint{display:none}
 .expanded-frame #connect{width:100%}
 #scene:has(.framing-stage:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(145px,21%)}
}
