/* MomentLoop Stories & photo-to-video Reels — mobile-first private creator studio. */
.story-feature{margin:23px 0 29px;background:linear-gradient(132deg,#fff1e5 0%,#ffdfce 90%);border:1px solid #f0d8c6;border-radius:22px;padding:26px;overflow:hidden}
.story-feature-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.story-feature-head h2,.story-feature-guest h2{font-size:clamp(28px,4.2vw,43px);line-height:1.09;letter-spacing:-1.4px;margin:10px 0}
.story-feature-head h2 i,.story-feature-guest h2 i,.reel-head h2 i{font-family:Georgia,serif;color:#e76d5a;font-weight:500}
.story-feature-head p,.story-feature-guest>p{color:#8c6c5f;font-size:12px;line-height:1.7;max-width:560px}
.story-feature-symbol{width:96px;height:96px;border-radius:26px;background:#fff8f0;color:#ef705f;display:grid;place-items:center;font-size:70px;transform:rotate(-9deg);flex:none;box-shadow:0 16px 24px #b7664e14}
.story-actions{display:flex;flex-wrap:wrap;gap:11px;margin:18px 0 0}.story-actions button{min-height:46px}
.story-small-notice{font-size:10px!important;color:#a07d70!important;margin-top:15px;line-height:1.6}
.story-studio{background:#fffdfa;border:1px solid #efdcd0;border-radius:16px;margin-top:24px;padding:22px;box-shadow:0 16px 32px #7c4d3312}
.studio-intro h3{font-size:29px;letter-spacing:-1px;margin:8px 0}.studio-intro p{font-size:12px;color:#83919b;line-height:1.7}
.story-studio label[for=storyTitle]{font-size:12px;font-weight:850;display:block;margin:22px 0 8px}
#storyTitle,.scene-caption{padding:12px 13px;width:100%;border:1px solid #e7d9cf;border-radius:11px;background:#fff;color:#223550;min-width:0;font-size:13px}
.story-theme-head{margin:24px 0 13px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.story-theme-head b{font-size:13px}.story-theme-head small{font-size:10px;color:#a17e70}
.story-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.story-theme-options label{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;background:#fff8f3;border-radius:13px;border:1px solid #f0e1d4;padding:11px 5px;font-size:11px}
.story-theme-options label:has(input:checked){outline:2px solid #f27766;background:#fff2e6}
.story-theme-options input{accent-color:#ef6d60}.theme-swatch{width:52px;height:52px;border-radius:13px;display:grid;place-items:center;font-size:29px}
.theme-swatch.sunset{background:linear-gradient(135deg,#ffdec4,#f18071);color:#f9f0e7}
.theme-swatch.cinema{background:linear-gradient(135deg,#223858,#111b30);color:#e1d29c}
.theme-swatch.minimal{background:linear-gradient(135deg,#fffefb,#e2e7e4);color:#d3756c}
.scene-chooser{display:flex;flex-direction:column;gap:11px}.scene-picker{display:grid;grid-template-columns:auto 83px minmax(0,1fr) auto;align-items:start;gap:11px;background:#fffbf7;border:1px solid #efe2d8;padding:12px;border-radius:12px}
.scene-picker.selected{border-color:#f18c7b;background:#fff4ee}.scene-picker>input[type=checkbox]{width:20px;height:20px;accent-color:#ed725e;margin:27px 0 0}
.scene-picker>img{width:83px;height:109px;object-fit:cover;border-radius:9px;background:#ecd2c2}
.scene-picker-body{min-width:0}.scene-picker-body strong{font-size:12px;display:block;line-height:1.5;overflow-wrap:anywhere}
.scene-picker-body small{font-size:10px;color:#917d73;display:block;margin:3px 0 7px}
.scene-picker-body label{font-size:10px;font-weight:800;display:block;margin-top:8px;color:#7d6f6b}
.scene-picker-body select{font-size:11px;border:1px solid #e3d4ca;background:white;border-radius:7px;padding:5px}
.scene-order{display:flex;flex-direction:column;gap:7px}.scene-order button{background:#fff;border:1px solid #e6d9ca;border-radius:8px;font-size:13px;min-width:32px;min-height:32px}.scene-order button:disabled{opacity:.35}
.studio-save-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}.studio-save-row .primary-button{min-height:45px}.story-danger-button{background:transparent;border:0;color:#b45245;font-size:12px;font-weight:800}
.story-editor-message{font-size:11px;font-weight:750;min-height:14px;line-height:1.7;color:#47795f;margin-top:14px}
.story-modal{position:fixed;z-index:80;inset:0;background:#0c1425e8;display:flex;align-items:center;justify-content:center;padding:12px;overflow-y:auto;overscroll-behavior:contain}
.story-view-shell{position:relative;height:min(94dvh,760px);max-width:min(100%,430px);aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#e69575,#132744);box-shadow:0 25px 90px #040810bb;isolation:isolate;flex:none}
.story-screen-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .24s}
.story-vignette{position:absolute;inset:0;background:linear-gradient(180deg,#0007 0%,transparent 23%,transparent 48%,#07101fd9 100%);pointer-events:none}
.story-view-top{position:absolute;top:0;left:0;right:0;padding:17px 13px;z-index:3}
.story-progress{display:flex;gap:4px;height:3px;margin-bottom:16px}.story-progress>span{flex:1;background:#ffffff5a;border-radius:3px;overflow:hidden}
.story-progress>span>i{display:block;height:100%;width:0;background:#fff;border-radius:3px}
.story-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;color:white;font-size:10px}
.story-mark{font-weight:900;font-size:17px;letter-spacing:-1px;margin-right:auto}
.story-view-toolbar button{border:0;background:#ffffff25;color:#fff;border-radius:50%;font-size:25px;line-height:1;width:34px;height:34px}
.story-view-caption{position:absolute;bottom:74px;left:25px;right:25px;z-index:3;color:white;pointer-events:none}
.story-view-caption small{font-size:10px;letter-spacing:2px;font-weight:850;text-transform:uppercase;color:#ffccb3}
.story-view-caption h2{font-size:clamp(26px,5vh,39px);line-height:1.1;letter-spacing:-1px;margin:8px 0 12px;text-shadow:0 2px 12px #0005;overflow-wrap:anywhere}
.story-view-caption>div{font-size:12px;color:#fffadd}
.story-tap{position:absolute;top:90px;bottom:135px;border:0;z-index:2;cursor:pointer;background:transparent;color:transparent;width:36%;opacity:0}
.story-tap-back{left:0}.story-tap-next{right:0}
.story-view-bottom{position:absolute;bottom:18px;left:18px;right:18px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px}
.story-view-bottom small{color:#ffffffac;font-size:9px}
.story-pause{background:#ffffff29;color:#fff;border:1px solid #ffffff44;border-radius:10px;font-size:11px;font-weight:800;padding:8px 12px}
.reel-modal-panel{background:#fff9f4;border-radius:21px;max-width:900px;width:100%;max-height:94dvh;overflow-y:auto;padding:26px}
.reel-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.reel-head h2{font-size:clamp(30px,4vw,44px);letter-spacing:-1.7px;line-height:1.1;margin:10px 0}
.reel-head>button{font-size:25px;background:#f8e9df;color:#8e6154;border:0;border-radius:50%;width:40px;height:40px;flex:none}
.reel-hint{font-size:12px;color:#7e8b95;line-height:1.7;margin-bottom:19px;max-width:720px}.reel-hint b{color:#ad7764}
.reel-layout{display:grid;grid-template-columns:minmax(180px,290px) minmax(0,1fr);gap:26px;align-items:start}
.reel-preview{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:9/16;background:#2e4054;border:3px solid #fff;box-shadow:0 13px 40px #172a3a25}
.reel-preview canvas{width:100%;height:100%;object-fit:contain;display:block}
.reel-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#fff6;background:linear-gradient(130deg,#ca816e,#344b6a);font-size:70px;pointer-events:none}
.reel-controls h3{font-size:23px;letter-spacing:-.7px;margin:12px 0}.reel-line{padding:15px 0;border-top:1px solid #efdfd4;display:flex;gap:20px;justify-content:space-between;align-items:start;font-size:12px}
.reel-line span{color:#87919a}.reel-line strong{text-align:right;font-size:12px}
.reel-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.reel-buttons button:disabled{opacity:.5;cursor:not-allowed}
.reel-export-info{font-size:11px;color:#8c756a;line-height:1.7;padding:14px;margin:17px 0;background:#fff0e6;border-radius:10px}
.extra-link{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:650px){
 .story-feature{padding:19px;border-radius:18px}.story-feature-symbol{width:58px;height:58px;font-size:38px;border-radius:14px}.story-feature-head{gap:10px}
 .story-studio{padding:13px}.story-theme-options{gap:6px}.story-theme-options label{font-size:10px}.theme-swatch{width:43px;height:43px;font-size:24px}
 .scene-picker{grid-template-columns:auto 64px minmax(0,1fr);gap:8px;padding:9px}.scene-picker img{width:64px;height:88px}.scene-order{grid-column:2/-1;flex-direction:row;margin-top:-3px}
 .scene-picker>input[type=checkbox]{margin:15px 0 0}.scene-picker-body strong{font-size:11px}
 .story-modal{padding:0;align-items:center}.story-view-shell{height:min(100dvh,800px);width:100%;max-width:440px;border-radius:0}
 .reel-modal-panel{max-height:100dvh;border-radius:0;padding:17px;height:100dvh}.reel-layout{grid-template-columns:minmax(0,1fr);gap:15px}
 .reel-preview{width:min(57%,230px);margin:auto}.reel-controls h3{font-size:20px}.reel-line{padding:10px 0}
}
@media(prefers-reduced-motion:reduce){.story-screen-image{transition:none}}
