/* Whole-site cinema structure, including the film frame and brand copy confirmed by the user. */
:root{--paper:#fbf9f5;--ink:#25221e;--muted:#6c655c;--line:#ded8ce;--gold:#f2bb38}
.header{min-height:74px;border-bottom:0}
.header .brand{font-weight:700}
.header .brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-block:10px;line-height:1.2}
.header .brand-name{font-family:var(--serif);font-size:25px;letter-spacing:.12em}
.header .brand-description{font-family:var(--sans);font-size:12px;font-weight:400;line-height:1.5;letter-spacing:.04em;color:var(--muted)}
main{min-height:calc(100dvh - 156px)}
.gold-button,.outline-button{font-weight:700;border-radius:2px}
.screen a.account-start{text-decoration:underline;text-underline-offset:4px}
.home-screen{max-width:1288px;padding:24px 0 30px}
.home-screen h1{font-size:clamp(38px,4.5vw,64px);line-height:1.3;letter-spacing:.015em;margin:10px 0 12px;font-weight:700}
.hero-break{display:inline}
.home-screen .intro-copy{font-family:var(--serif);font-size:21px;color:#514b43;line-height:1.6;margin:0}
.storyboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 0;text-align:left}
.storyboard figure{margin:0;min-width:0}
.storyboard img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center}
.storyboard figcaption{display:flex;gap:22px;align-items:flex-start;padding-top:10px;min-height:74px}
.frame-number{flex:none;font-family:Georgia,serif;font-size:26px;line-height:1}
.storyboard figcaption p{margin:0;font-family:var(--serif);font-size:15px;line-height:1.65;color:#675f54}
.home-actions{gap:22px;margin:28px 0 0}
.home-actions>a{min-width:250px;min-height:54px;font-size:19px}
.home-screen>.quiet-note{margin:18px 0 0}

/* The same three stills accompany the form; the existing fields and IDs remain intact. */
.create-screen{max-width:1120px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:72px;padding:44px 0 52px;align-items:start}
.creation-stills{min-width:0;margin:0;padding-top:5px}
.creation-stills img{display:block;width:100%;height:auto;object-fit:cover}
.creation-stills>.lead-still{aspect-ratio:4/3}
.creation-stills>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.creation-stills>div img{aspect-ratio:2/1}
.creation-stills>p{font-family:var(--serif);font-size:23px;line-height:1.7;margin:26px 0 0;text-align:center;letter-spacing:.12em}
.creation-form{min-width:0}
.creation-form h1{font-size:42px;line-height:1.45;margin:6px 0 14px}
.creation-form .eyebrow{margin-bottom:4px}
.creation-form .section-desc{font-family:var(--serif);font-size:16px;margin-bottom:28px}
.creation-form .primary-button{font-family:var(--serif);font-weight:700;min-height:50px}
.creation-form .field-help{line-height:1.7}

/* The reading belongs to the same story without turning into a caption about the pictures. */
.reading-screen{max-width:1110px;display:grid;grid-template-columns:240px minmax(0,1fr);column-gap:56px;text-align:center;padding:30px 0 44px}
.reading-screen>.eyebrow,.reading-screen>h1{grid-column:1/-1}
.reading-screen>.eyebrow{margin-bottom:0}
.reading-screen>h1{font-size:43px;margin:12px 0 32px}
.reading-stills{grid-column:1;grid-row:3;display:grid;gap:12px;align-content:start}
.reading-stills img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.reading-content{grid-column:2;grid-row:3;min-width:0}
.reading-content .calendar-caption{margin-bottom:22px}
.reading-content .birth-columns strong{font-size:33px}
.reading-content .birth-columns strong.long-value{font-size:28px;line-height:1.59}
.reading-content .birth-phrase{font-size:18px}
.reading-content .reading-caption{margin:26px 0 16px;font-size:15px;color:#524b42}
.reading-content .personality-copy{font-size:20px;line-height:1.9;margin-bottom:10px}
.reading-content .quiet-note{font-size:12px;line-height:1.8;margin:10px 0 0}
.reading-content .reading-actions{margin-top:12px}

/* Keep a full 3:4 poster. Story stills sit outside both the artwork and the downloaded PNG. */
.poster-screen{padding:12px 0 24px}
.poster-screen>.eyebrow{margin-bottom:14px}
.poster-stage{--poster-width:min(510px,calc((100dvh - 234px)*.75));display:grid;grid-template-columns:136px minmax(0,var(--poster-width));column-gap:20px;row-gap:0;width:max-content;max-width:100%;margin:0 auto}
.poster-stage>.movie-poster{grid-column:2;grid-row:1;width:100%;max-width:none;margin:0;aspect-ratio:3/4}
.story-rail{grid-column:1;grid-row:1;align-self:center;display:grid;gap:12px}
.story-rail img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.poster-controls{grid-column:2;grid-row:2;min-width:0}
.poster-controls>.text-link{font-size:14px;padding:9px 12px;min-height:38px}
.poster-controls .poster-actions{max-width:none;gap:12px}
.poster-controls .quiet-note{font-size:11px;margin:10px 0 0}
.wide-panel{border-top:1px solid var(--line)}
footer{padding-block:20px}

@media(min-width:761px) and (max-width:1100px){
  .header,main{padding-inline:28px}
  .home-screen{padding-top:22px}
  .home-screen h1{font-size:46px}
  .storyboard figcaption{gap:12px;min-height:74px}
  .storyboard figcaption p{font-size:13px}
  .create-screen{gap:36px}
  .creation-form h1{font-size:36px}
  .reading-screen{grid-template-columns:170px minmax(0,1fr);gap:0 26px}
  .reading-screen>h1{font-size:37px}
  .reading-content .birth-columns>div{padding-inline:5px}
  .reading-content .birth-columns strong{font-size:28px}
  .reading-content .birth-columns strong.long-value{font-size:20px;line-height:1.89}
  .reading-content .birth-phrase{font-size:14px}
  .reading-content .personality-copy{font-size:18px}
  .poster-stage{grid-template-columns:110px minmax(0,var(--poster-width));column-gap:16px}
}
@media(max-width:760px){
  .header{min-height:70px;padding-inline:20px}
  .header .brand{padding-block:10px}
  .header .brand-name{font-size:22px}
  .brand{font-size:18px}
  .header nav{top:100%}
  main{padding-inline:20px;min-height:calc(100dvh - 144px)}
  .home-screen{padding:16px 0 26px}
  .home-screen h1{font-size:clamp(23px,6.4vw,33px);line-height:1.45;letter-spacing:0;margin:0 0 8px;white-space:nowrap}
  .home-screen .intro-copy{font-size:13px;line-height:1.7}
  .storyboard{grid-template-columns:1fr;gap:12px;margin-top:20px}
  .storyboard img{aspect-ratio:3.35/1;object-position:50% 50%}
  .storyboard figure:nth-child(1) img{object-position:50% 40%}
  .storyboard figure:nth-child(2) img{object-position:50% 32%}
  .storyboard figure:nth-child(3) img{object-position:50% 30%}
  .storyboard figcaption{padding-top:5px;gap:15px;min-height:0}
  .frame-number{font-size:20px;line-height:1.15}
  .storyboard figcaption p{font-size:12px;line-height:1.45}
  .home-actions{flex-direction:row;gap:12px;margin-top:23px}
  .home-actions>a{min-width:0;min-height:46px;width:auto;flex:1;font-size:16px;padding:10px 6px}
  .home-screen>.quiet-note{font-size:10px;margin-top:13px}
  .create-screen{display:flex;flex-direction:column;gap:24px;padding:12px 0 30px}
  .creation-stills{display:grid;grid-template-columns:1fr 2fr;gap:6px;padding:0;width:100%}
  .creation-stills>div{margin:0;gap:6px}
  .creation-stills>.lead-still,.creation-stills>div img{aspect-ratio:1.2/1;height:100%}
  .creation-stills>p{display:none}
  .creation-form{width:100%}
  .creation-form h1{font-size:30px;line-height:1.5;margin-bottom:12px}
  .creation-form .section-desc{font-size:15px;margin-bottom:24px}
  .reading-screen{display:flex;flex-direction:column;padding:24px 0 28px;text-align:left}
  .reading-screen>.eyebrow{font-size:11px}
  .reading-screen>h1{font-size:30px;margin:8px 0 18px;line-height:1.45}
  .reading-stills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 22px}
  .reading-stills img{aspect-ratio:1.7/1}
  .reading-content{text-align:center}
  .reading-content .calendar-caption{margin-bottom:18px}
  .reading-content .birth-columns strong{font-size:25px}
  .reading-content .birth-columns strong.long-value{font-size:18px;line-height:1.88}
  .reading-content .birth-phrase{font-size:12px}
  .reading-content .reading-caption{font-size:14px;margin:22px 0 15px}
  .reading-content .personality-copy{font-size:17px;line-height:1.8}
  .reading-content .quiet-note{font-size:11px}
  .poster-screen{padding:8px 0 24px}
  .poster-screen>.eyebrow{font-size:11px;margin-bottom:10px}
  .poster-stage{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:460px;gap:0}
  .poster-stage>.movie-poster{grid-column:1;grid-row:1;width:100%;max-width:none}
  .poster-stage>.story-rail{grid-column:1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
  .story-rail img{aspect-ratio:1.6/1}
  .poster-controls{grid-column:1;grid-row:3}
  .poster-controls>.text-link{min-height:40px;padding:8px}
  .poster-controls .poster-actions{gap:12px}
  .poster-controls .poster-actions>*{font-size:16px;min-height:46px}
  footer{margin-inline:20px;padding-block:18px}
}
@media(max-width:360px){
  main,.header{padding-inline:16px}
  .home-screen h1{font-size:22px}
  .home-screen .intro-copy{font-size:12px}
  .home-actions>a{font-size:14px}
  .storyboard img{aspect-ratio:3.2/1}
  .reading-screen>h1{font-size:27px}
  .reading-content .birth-columns strong{font-size:22px}
  .reading-content .birth-columns strong.long-value{font-size:15px;line-height:1.98}
  .reading-content .birth-phrase{font-size:11px}
  .reading-content .personality-copy{font-size:16px}
}

/* Shared film frame. Decorative rails stay outside the interactive paper surface. */
body{background:#141411}
.film-shell{position:relative;max-width:1600px;min-height:100dvh;margin:0 auto;padding:0 34px;color:var(--ink)}
.film-edge{--rail-width:22px;position:absolute;top:0;bottom:0;width:var(--rail-width);background:url("assets/cinema-film-rail.png") center top / calc(var(--rail-width) * 8) calc(var(--rail-width) * 18) repeat-y;pointer-events:none}
.film-edge-left{left:3px}
.film-edge-right{right:3px;transform:scaleX(-1)}
.film-masthead{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:102px;padding:18px 28px;color:#d8d2c4;border-bottom:1px solid #6b6354;margin-bottom:15px}
.film-masthead p{margin:0}
.film-opening{font-family:"KaiTi","STKaiti",var(--serif);font-size:21px;line-height:1.55;letter-spacing:.12em}
.film-english{font-family:var(--sans);font-size:10px;line-height:2;letter-spacing:.32em;color:#b8b1a2}
.film-masthead .film-english{text-align:right}
.film-paper{background:var(--paper);border:1px solid #655f51}
.film-paper main{min-height:0}
.film-colophon{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:32px;max-width:none;margin:0;padding:38px 28px 42px;border:0;color:#d8d2c4}
.film-colophon p{margin:0}
.film-colophon .film-closing{font-family:var(--serif);font-size:24px;line-height:1.75;letter-spacing:.12em;color:inherit}
.film-colophon .film-belief{font-family:var(--serif);font-size:18px;line-height:1.9;letter-spacing:.08em;color:inherit}
.film-colophon .film-english{font-size:10px;line-height:2;letter-spacing:.32em;border-top:1px solid #8d8370;padding-top:18px;align-self:end;margin-bottom:8px}
@media(min-width:761px) and (max-width:1100px){
  .film-shell{padding-inline:28px}
  .film-edge{--rail-width:18px}
  .film-masthead{padding-inline:24px}
  .film-colophon{grid-template-columns:1fr 1.2fr;gap:22px;padding-inline:24px}
  .film-colophon .film-closing{font-size:21px}
  .film-colophon .film-belief{font-size:17px}
  .film-colophon .film-english{grid-column:1/-1;justify-self:end}
}
@media(max-width:760px){
  .film-shell{padding-inline:18px}
  .film-edge{--rail-width:11px}
  .film-edge-left{left:2px}
  .film-edge-right{right:2px}
  .film-masthead{gap:12px;min-height:88px;padding:16px 8px;margin-bottom:10px}
  .film-opening{font-size:14px;line-height:1.75;letter-spacing:.04em}
  .film-masthead .film-english{font-size:10px;letter-spacing:.12em;line-height:2.1}
  .film-paper .header,.film-paper main{padding-inline:14px}
  .film-paper .home-screen h1{font-size:clamp(20px,6vw,33px)}
  .film-colophon{grid-template-columns:1fr;gap:23px;padding:30px 14px 34px}
  .film-colophon .film-closing{font-size:21px;line-height:1.8;letter-spacing:.1em}
  .film-colophon .film-belief{font-size:16px;line-height:1.9;letter-spacing:.05em}
  .film-colophon .film-english{justify-self:start;margin:0;padding-top:15px}
  .film-paper .reading-content .birth-columns strong.long-value{font-size:16px;line-height:2.12}
  .film-paper .reading-content .birth-phrase{font-size:11px}
}
@media(max-width:360px){
  .film-masthead{padding-inline:4px;gap:8px}
  .film-opening{font-size:13px;letter-spacing:0}
  .film-masthead .film-english{font-size:10px;letter-spacing:.08em}
  .film-paper .header,.film-paper main{padding-inline:10px}
  .film-paper .home-screen h1{font-size:20px;letter-spacing:0}
  .film-paper .home-screen .intro-copy{font-size:11px}
  .film-paper .reading-content .birth-columns strong.long-value{font-size:14px;line-height:2.12}
  .film-paper .reading-content .birth-columns>div{padding-inline:2px}
  .film-paper .reading-content .birth-phrase{font-size:10px}
}

/* Server-rendered private PNGs retain the existing gallery geometry. */
.saved-card img,.detail-art img{display:block;width:100%;height:auto;border-radius:6px}

