:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#23443f;background:#e9f1f0}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}[hidden]{display:none!important}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,.choose-photo:focus-within{outline:3px solid #078b9b;outline-offset:3px}
.camera-page{max-width:720px;min-height:100dvh;margin:auto;padding:0 18px max(20px,env(safe-area-inset-bottom));background:#fafbf7;box-shadow:0 0 40px #1e565123}
.camera-header{display:flex;gap:15px;align-items:center;margin:0 -18px;padding:14px 18px;background:#217e70;color:#fff}
.home-link{flex:none;padding:10px 5px;color:#fff;text-decoration:none;font-size:.87rem;font-weight:700}.camera-header h1{margin:2px 0;font-size:1.25rem;line-height:1.3}.header-caption{font-size:.8rem;letter-spacing:.025em;opacity:.9}.camera-guide{margin:12px 0;font-size:.94rem;line-height:1.55;text-align:center}
.scene-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:450px;margin:0 auto 11px}.scene-selector button{min-width:0;min-height:48px;padding:8px 4px;border:1px solid #bbd9ca;border-radius:12px;background:#fff;color:#2b7061;font-size:.875rem;font-weight:700;line-height:1.25;white-space:normal}.scene-selector button.selected{border-color:#257d67;background:#dff1e7;color:#174d40;box-shadow:inset 0 0 0 1px #257d67}
.scene-selector #scene-duo{grid-column:1/-1;border-color:#ddbf8d;background:#fff8e9}.scene-selector #scene-duo.selected{border-color:#257d67;background:#dff1e7}
.spot-scenes-panel{max-width:450px;margin:0 auto 12px;border:1px solid #a6d0bb;border-radius:14px;background:#f0f8f0;color:#235d4d}
.spot-scenes-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;cursor:pointer;font-weight:800;line-height:1.45}
.spot-scenes-panel summary span{flex:none;padding:3px 8px;border-radius:999px;background:#d6eee0;font-size:.78rem}
.spot-scenes-panel p{margin:0;padding:1px 14px 11px;color:#547369;font-size:.82rem;line-height:1.5}
.spot-scene-selector{padding:0 10px 11px;margin:0;max-width:none}
.spot-scene-selector button{min-height:54px}
.spot-scene-selector button:disabled{background:#e9efea;color:#74867d;border-style:dashed;cursor:default}
.spot-scene-selector button small{display:block;margin-top:3px;font-size:.72rem;font-weight:600}
.camera-stage{position:relative;width:min(100%,450px,42.75dvh);aspect-ratio:3/4;margin:auto;overflow:hidden;border:3px solid #2b816f;border-radius:18px;background:linear-gradient(145deg,#3b756c,#163e3d);box-shadow:0 10px 30px #173e3526;touch-action:none}
.camera-stage video,.camera-stage #chosen-photo,.photo-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-stage video{opacity:0}.camera-stage.has-camera video{opacity:1}.camera-stage #chosen-photo{display:block}.camera-stage.is-front video{transform:scaleX(-1)}
.stage-message{position:absolute;inset:0;display:grid;place-items:center;padding:15px;color:#e9f7ed;font-weight:700;text-align:center;line-height:1.6}.camera-stage.has-image .stage-message{display:none}
.character-overlay{position:absolute;left:68%;top:66%;width:42%;height:auto;transform:translate(-50%,-50%);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 3px 2px #202f293a)}.character-overlay:active{cursor:grabbing}.camera-stage.is-captured .character-overlay{display:none}
.placard-text{position:absolute;left:50%;top:75%;width:92%;aspect-ratio:3/2;transform:translate(-50%,-50%);pointer-events:none;color:#28594f;text-align:center}.placard-text-inner{position:absolute;inset:0;white-space:nowrap;text-shadow:0 1px #fff9}.placard-text strong,.placard-text span{position:absolute;left:25%;width:50%;transform:translateY(-50%);line-height:1.15}.placard-text strong{top:66.9%;font-size:clamp(.78rem,3.6vw,1.25rem);font-weight:800}.placard-text span{top:77%;font-size:clamp(.72rem,3.2vw,1.08rem);font-weight:700;letter-spacing:.07em}.camera-stage.is-captured .placard-text{display:none}
.photo-preview{z-index:2;display:block}.preview-label{position:absolute;z-index:3;top:14px;left:14px;padding:7px 12px;border-radius:999px;background:#fffaf0;color:#276755;font-weight:800;font-size:.84rem;box-shadow:0 3px 10px #102a2640}
.camera-controls{max-width:450px;margin:10px auto 0}.camera-tip{margin:0 0 10px;text-align:center;color:#536d68;font-size:.85rem;line-height:1.45}.size-control{display:grid;grid-template-columns:auto minmax(0,1fr) 3ch;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;background:#e8f3ed;font-size:.85rem;font-weight:700}.size-control input{width:100%;accent-color:#278a70;touch-action:auto}.size-control span:last-child{text-align:right;color:#527466}
.camera-buttons{display:flex;gap:9px;margin-top:10px}.camera-buttons button,.camera-buttons a{min-height:48px;display:grid;place-items:center;flex:1;min-width:0;padding:10px 11px;border-radius:13px;border:0;text-align:center;text-decoration:none;font-weight:800;font-size:.92rem;line-height:1.3}.primary-button{color:#fff;background:#dc624d}.secondary-button{color:#216b5d;background:#e3f1e9;border:1px solid #b7d9c9!important}.camera-buttons button:disabled{opacity:.55;cursor:wait}.choose-photo{display:block;width:max-content;max-width:100%;margin:10px auto 0;padding:7px 12px;color:#237467;font-size:.86rem;font-weight:700;text-align:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.camera-status{min-height:1.5em;margin:7px 0 0;color:#5b736b;font-size:.8rem;text-align:center;line-height:1.5}.camera-status.error{color:#9a4434}.camera-stage.is-captured~.camera-controls .camera-tip{display:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:360px){.camera-header{gap:8px}.camera-header h1{font-size:1.12rem}.camera-buttons button,.camera-buttons a{font-size:.85rem}}
@media(max-height:760px){.camera-guide{margin:8px 0}.scene-selector{margin-bottom:6px}.scene-selector button{min-height:43px;padding:5px 3px}.camera-stage{width:min(100%,450px,33dvh)}}
@media(min-width:700px){.camera-stage{width:min(100%,450px,55dvh)}}
