/* v0.69 - native-feeling mobile gameplay, personal endings and share sheet */
:root{--cookie-paper:#fffaf0;--cookie-milk:#f7f0e2;--cookie-forest:#385e4b;--cookie-ink:#3c584b;--cookie-caramel:#bd9471}
html,body{max-width:100%;overflow-x:hidden}
#endOverlay.ep69-ending{background:rgba(23,42,36,.82)!important;backdrop-filter:blur(9px)!important;padding:18px!important;align-items:center!important}
#endOverlay.ep69-ending .end-card{display:block!important;position:relative!important;width:min(910px,96vw)!important;max-width:910px!important;min-height:0!important;max-height:95dvh!important;overflow-y:auto!important;overscroll-behavior:contain;background:var(--cookie-paper)!important;border:1px solid #ead6b7!important;border-radius:13px!important;box-shadow:0 22px 85px #1b34284a!important;padding:0!important}
#endOverlay.ep69-ending .epf-banner{padding:25px clamp(22px,4vw,48px) 28px!important;background:linear-gradient(160deg,#fbf2e2,#f6f5e9)!important;border-bottom:1px solid #e4d9c8!important;color:var(--cookie-forest)!important;min-height:0!important}
#endOverlay.ep69-ending .epf-banner::after{display:none!important}
.ep69-mast{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:16px}
.ep69-mast .ep68-finale-logo{display:block;width:190px;height:auto;max-height:85px;object-fit:contain;margin:0}
.ep69-chapter{color:#9b8166;font-size:10px;font-weight:800;letter-spacing:.11em;text-align:right}
.ep69-kicker{display:block;margin-bottom:8px;color:#9f7554;font-size:11px;font-weight:800;letter-spacing:.15em}
#endOverlay.ep69-ending .epf-banner h2{margin:0 0 11px!important;font-family:Georgia,serif;color:#3b5f4c!important;font-size:clamp(33px,4.6vw,52px)!important;font-weight:500!important;letter-spacing:-.038em;line-height:1.1}
#endOverlay.ep69-ending .epf-banner p{font-size:14px!important;color:#6d786b!important;line-height:1.65!important;max-width:730px}
.ep69-signature-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:17px}
#endOverlay.ep69-ending .epf-signature{display:inline-block!important;background:#fff8eb!important;color:#7d654c!important;font-size:11px!important;border:1px solid #deccb0!important;border-radius:4px!important;padding:6px 9px!important;margin:0!important}
.ep69-signature-row>span:last-child{font-size:12px;color:#8b8b79}
.ep69-final-content{padding:20px clamp(17px,3.5vw,40px) 25px!important}
.ep69-coda{display:flex;align-items:center;gap:8px;padding:14px 18px;background:#ecf2e8;border-left:3px solid #87a985;border-radius:3px;margin-bottom:18px}
.ep69-coda-quote{align-self:flex-start;font:42px Georgia,serif;color:#92a68f;line-height:.9}
#endOverlay.ep69-ending #epHook67{font-family:Georgia,serif;color:#4c6856!important;font-size:clamp(16px,2.2vw,19px)!important;line-height:1.45!important;margin:0!important}
#endOverlay.ep69-ending .epf-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 23px!important;gap:10px}
#endOverlay.ep69-ending .epf-stat{min-height:68px;border-radius:6px!important;padding:11px!important;background:#fffefa!important}
.ep69-subheading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 13px}
.ep69-subheading .eyebrow{font-size:9px!important;color:#a17b5c!important}
.ep69-subheading h3{font:500 clamp(23px,3vw,28px) Georgia,serif;color:#486650;margin:4px 0 0}
.ep69-subheading>span{font-size:12px;color:#909183;text-align:right}
#endOverlay.ep69-ending .end-people{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;flex:none!important;min-height:0!important;overflow:visible!important;max-height:none!important;margin:0 0 16px!important}
#endOverlay.ep69-ending .end-person{min-height:160px!important;border:1px solid #e7dbc9!important;border-left:4px solid var(--fate,#9aaf9e)!important;border-radius:6px!important;background:#fffefa!important;box-shadow:none!important}
#endOverlay.ep69-ending .end-person:last-child{grid-column:1 / -1}
#endOverlay.ep69-ending .end-person strong{font-size:20px!important}
#endOverlay.ep69-ending .end-person p{line-height:1.55!important}
.ep69-consequences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:3px 0 8px}
#endOverlay.ep69-ending .epf-featured{margin:0!important;background:#f7f4e9;border-left:3px solid #d3bc95;padding:12px!important;line-height:1.55!important;color:#6b7367}
.ep69-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:21px 0 10px}
#endOverlay.ep69-ending .ep69-primary-actions button{min-height:55px;padding:13px 17px!important;font-size:14px!important;font-weight:750!important;border-radius:7px!important;display:flex;justify-content:space-between;align-items:center;gap:8px}
#endOverlay.ep69-ending #shareFinal68{background:#527a5e!important;border:1px solid #527a5e!important;color:#fffdf3!important;box-shadow:0 4px 10px #4974591f!important}
#endOverlay.ep69-ending #openTree{background:#fffaf0!important;border:1px solid #9baf9b!important;color:#41624d!important}
#endOverlay.ep69-ending #shareFinal68:hover{background:#42674e!important}
#endOverlay.ep69-ending .ep69-close-line{text-align:center;color:#839082;font-size:12px;margin:12px 0 6px!important}
#endOverlay.ep69-ending .epf-bottom{padding:6px 0 0!important;margin:0!important;border:0!important;background:transparent!important}
#endOverlay.ep69-ending .end-actions.ep69-secondary-actions{display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;margin:0!important;padding:10px 0!important;border-top:1px solid #e5dfd3}
#endOverlay.ep69-ending .ep69-secondary-actions button{border:0!important;background:transparent!important;color:#748575!important;text-decoration:underline;font-size:12px!important;padding:6px 9px!important}
#endOverlay.ep69-ending #videoStatus{color:#59765a!important;text-align:center;font-size:12px!important;min-height:0}
/* A single export/share panel, not a mockup inside the ending. */
.ep69-share-overlay[hidden]{display:none!important}
.ep69-share-overlay{position:fixed;inset:0;z-index:250;background:rgba(21,44,35,.78);backdrop-filter:blur(6px);padding:16px;display:grid;place-items:center;overscroll-behavior:contain}
.ep69-share-panel{position:relative;max-height:94dvh;overflow-y:auto;width:min(805px,100%);background:#fffaf0;border:1px solid #e7dccb;border-radius:12px;padding:clamp(20px,3vw,32px);box-shadow:0 22px 70px #122d2490}
.ep69-share-close{position:absolute;top:13px;right:14px;border:0!important;background:transparent!important;color:#576f5c;font-size:26px;padding:4px 10px}
.ep69-share-panel>.eyebrow{font-size:10px;color:#a17c5a}
.ep69-share-panel h2{font:500 34px Georgia,serif;color:#40634c;margin:7px 0 10px;max-width:88%}
.ep69-share-panel>p{line-height:1.55;font-size:14px;color:#6d7469;margin:0 0 19px}
.ep69-share-feature{display:grid;grid-template-columns:minmax(170px,.72fr) minmax(0,1.28fr);gap:21px}
.ep69-share-art{background:linear-gradient(160deg,#d9e8d6,#f7ebd8);border:1px solid #dfd9c5;border-radius:9px;padding:16px 12px;align-self:start}
.ep69-share-art>img{display:block;width:min(100%,190px);margin:auto auto 13px}
.ep69-share-fates{display:grid;gap:7px}
.ep69-share-fate{display:flex;flex-direction:column;gap:2px;background:#fffaf3c9;border-left:3px solid #a6b99f;border-radius:3px;padding:7px 9px}
.ep69-share-fate span{font-size:10px;color:#7e937a}
.ep69-share-fate strong{font:500 15px Georgia,serif;color:#385d4b}
.ep69-share-quick{min-width:0}
.ep69-share-quick label{display:block;font-size:12px;font-weight:750;color:#52725d;margin:0 0 7px}
.ep69-copy-row{display:flex;align-items:stretch;gap:6px}
.ep69-copy-row input{flex:1;min-width:0;max-width:100%;font-size:12px;color:#546b5a;border:1px solid #d6ddcd;border-radius:4px;padding:10px;background:#fffdf7}
.ep69-copy-row button{border-radius:5px;min-height:42px;font-size:12px;padding:7px 10px}
.ep69-share-hint{margin:8px 0 15px;font-size:11px;color:#819080;line-height:1.45}
.ep69-share-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 13px}
.ep69-share-platforms button{border:1px solid #c9d4c6;border-radius:7px;background:#fffefa;color:#41644c;padding:11px 8px;min-height:48px;font-weight:650;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px}
.ep69-share-platforms button span{font-size:19px}
.ep69-share-platforms button:hover{background:#edf4e9}
.ep69-share-help{padding:10px 12px;border-left:3px solid #c7ae8e;background:#f6f2e7;color:#6b725f;font-size:12px;line-height:1.55;min-height:50px}
.ep69-share-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:13px 0}
.ep69-share-resources button{min-height:51px;padding:8px;font-size:12px;line-height:1.3;border:1px solid #cdd8ca;color:#51715b;background:#fffcf6}
.ep69-native-share{width:100%;min-height:45px;background:#557e61!important;border:1px solid #557e61!important;color:#fff!important;border-radius:6px;font-size:13px}
.ep69-share-status{margin:10px 0 0;background:#eff5e9;padding:9px 13px;border-radius:5px;color:#52745b;font-size:12px}
/* Non-cluttered diary on mobile: panoramic horizontal exploration + natural page reading */
#moreDiary69{background:#ecf3e9;color:#3c6448;border:1px solid #d1dfcc;border-radius:4px;font-size:12px;padding:7px 10px;min-height:36px}
@media(max-width:680px){
 html,body{height:auto!important;min-height:100dvh;overflow-x:hidden!important;overflow-y:auto!important;-webkit-text-size-adjust:100%}
 :root{--header-h:57px;--city-h:165px}
 header.app-header{position:relative!important;min-height:57px!important;height:57px!important;padding:8px 12px!important;gap:6px!important}
 header.app-header .brand{min-width:0;flex:1}
 header.app-header .brand-logo{width:min(38vw,145px)!important;height:auto!important;max-height:48px!important;object-fit:contain}
 header.app-header .tools{flex:0 0 auto!important;display:flex!important;gap:2px!important}
 header.app-header .tools button{font-size:0!important;min-width:33px!important;min-height:39px!important;padding:7px!important;display:grid;place-items:center}
 header.app-header .tools button#soundBtn::after,header.app-header .tools button#fatesBtn::after{font-size:20px!important}
 header.app-header .tools button#helpBtn{font-size:18px!important}
 .story-layout{display:flex!important;flex-direction:column!important;gap:0!important;height:auto!important;min-height:calc(100dvh - 57px)!important;overflow:visible!important}
 .story-layout .city{height:165px!important;min-height:165px!important;max-height:165px!important;flex:0 0 165px!important;position:relative!important;width:100%!important;overflow:hidden!important}
 .story-layout .city .map{position:absolute!important;inset:0!important;width:100%!important;height:165px!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important;touch-action:pan-x!important;scroll-behavior:auto}
 .story-layout .city .map::-webkit-scrollbar{display:none}
 .story-layout .city .map svg#citySVG{position:relative!important;inset:auto!important;left:0!important;top:0!important;transform:none!important;max-width:none!important;min-width:1378px!important;width:1378px!important;height:165px!important;object-fit:contain!important;mask:none!important;clip-path:none!important}
 .story-layout .city .map-caption,.story-layout .city .scene-ribbon{display:none!important}
 .story-layout .clock{height:auto!important;min-height:0!important;flex:0 0 auto!important;padding:9px 11px 9px!important;background:#faf7ef!important}
 .story-layout .clock .clock-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 6px!important}
 .clock-head .clock-primary{min-width:0!important;display:flex!important;align-items:center;gap:6px!important}
 .clock-head .date-label{font-size:11px!important}
 .clock-head .elapsed-clock{padding-left:8px!important}
 .clock-head .elapsed-clock strong{font-size:13px!important}
 .clock-actions{gap:2px!important}
 .clock-actions #pauseBtn,.clock-actions #resetBtn{min-width:29px!important}
 .clock-actions .speed-control button{min-width:28px!important}
 .clock-weekline{grid-column:1/-1!important;grid-row:2!important;min-height:20px!important}
 .story-layout .diary{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;width:100%!important;max-width:100%!important;margin:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-shadow:none!important;border-top:1px solid #e2dacb!important;background:#fffdf7!important}
 .story-layout .diary .diary-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;min-height:72px!important;padding:13px 15px!important}
 .story-layout .diary .diary-header>div:first-child{grid-column:1}
 .diary-header .eyebrow{font-size:10px!important}
 .diary-header h2{font-size:clamp(22px,6vw,27px)!important;white-space:normal!important;line-height:1.06!important}
 .diary-header .feed-filters{grid-column:2!important;min-width:0!important}
 .diary-header .feed-filters select{width:130px!important;max-width:130px!important;min-height:40px!important;font-size:13px!important;padding:7px!important}
 .story-layout .diary .feed{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:none!important;padding:0 15px 10px!important}
 .story-layout .diary .feed .entry.episode{display:flex!important;flex-direction:column!important;gap:0!important;padding:17px 2px!important;margin:0!important;background:transparent!important}
 .story-layout .diary .feed .entry.episode .meta{display:flex!important;flex-wrap:wrap!important;gap:7px!important;padding:0 0 8px!important;font-size:12px!important}
 .story-layout .diary .feed .entry.episode h3{font:500 23px/1.22 Georgia,serif!important;color:#41634e!important;margin:4px 0 9px!important}
 .story-layout .diary .feed .entry.episode p{font-size:15px!important;line-height:1.67!important;color:#606b60!important}
 .story-layout .diary .feed .entry.episode .episode-person{font-size:12px!important}
 .story-layout .diary .diary-footer{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;padding:11px 15px!important;min-height:54px!important;border-top:1px solid #e5dfd5}
 .diary-footer #exportBtn{font-size:11px!important;padding:7px 8px!important}
 .diary-footer #count{font-size:11px!important;white-space:nowrap}
 .choice-backdrop,.micro-overlay,.welcome-overlay{position:fixed!important;inset:0!important;padding:10px!important}
 #endOverlay.ep69-ending{padding:0!important;align-items:stretch!important}
 #endOverlay.ep69-ending .end-card{width:100vw!important;max-width:100vw!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important;border:0!important}
 #endOverlay.ep69-ending .epf-banner{padding:18px 18px 20px!important}
 .ep69-mast{margin-bottom:17px;align-items:start}
 .ep69-mast .ep68-finale-logo{width:135px!important}
 .ep69-chapter{font-size:9px;line-height:1.4;max-width:140px}
 #endOverlay.ep69-ending .epf-banner h2{font-size:35px!important}
 #endOverlay.ep69-ending .epf-banner p{font-size:13px!important}
 .ep69-final-content{padding:15px 13px 24px!important}
 .ep69-coda{padding:12px!important}
 .ep69-signature-row>span:last-child{display:none}
 #endOverlay.ep69-ending .epf-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
 .ep69-subheading{align-items:start!important;flex-direction:column;gap:3px}
 .ep69-subheading>span{font-size:11px}
 #endOverlay.ep69-ending .end-people{grid-template-columns:1fr!important;gap:9px!important}
 #endOverlay.ep69-ending .end-person:last-child{grid-column:auto}
 #endOverlay.ep69-ending .end-person{min-height:133px!important}
 .ep69-consequences{grid-template-columns:1fr;gap:8px}
 .ep69-primary-actions{grid-template-columns:1fr;gap:9px}
 #endOverlay.ep69-ending .ep69-primary-actions button{min-height:54px!important}
 .ep69-share-overlay{padding:0!important;align-items:stretch!important}
 .ep69-share-panel{width:100vw!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important;border:0!important;padding:21px 14px 28px!important}
 .ep69-share-panel h2{font-size:28px}
 .ep69-share-feature{grid-template-columns:1fr;gap:13px}
 .ep69-share-art{display:none}
 .ep69-share-quick .ep69-copy-row input{font-size:11px}
 .ep69-share-platforms button{min-height:53px}
 .ep69-share-resources{grid-template-columns:1fr 1fr;gap:7px}
 .ep69-share-resources button{min-height:43px}
 #treeOverlay.epf-tree .tree-card{padding-bottom:env(safe-area-inset-bottom)!important}
}
@media(max-width:380px){header.app-header .brand-logo{width:127px!important}.diary-header .feed-filters select{width:111px!important;max-width:111px!important}.ep69-chapter{max-width:116px}}
@media(prefers-reduced-motion:reduce){.story-layout .city .map{scroll-behavior:auto!important}}
/* City choices are a first-class chapter in the decision map. */
.ep69-events{margin:18px 0 10px;padding:16px;border:1px solid #e0d8c9;border-radius:8px;background:#fffcf5;max-width:100%;min-width:0}
.ep69-events-head .eyebrow{color:#9e7e58!important;font-size:10px!important;letter-spacing:.13em}
.ep69-events-head h3{font:500 25px Georgia,serif;color:#456550;margin:5px 0 5px}
.ep69-events-head p{font-size:13px;color:#879080;margin:0 0 12px;line-height:1.5}
.ep69-see-city{background:#ecf3e6!important;color:#3e634b!important;border:1px solid #c4d4bf!important;border-radius:5px;padding:10px 13px!important;font-size:13px!important;margin-bottom:10px}
.ep69-events-recent{display:flex;gap:7px;flex-wrap:wrap}
.ep69-events-recent span{font-size:12px;padding:7px 10px;border:1px solid #e0dccd;background:#faf5eb;border-radius:4px;color:#64725d}
.ep69-events-weeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:100%;min-width:0}
.ep69-event-week{border:1px solid #e4ddce;border-radius:7px;padding:12px;background:#fffdf8;min-width:0;max-width:100%}
.ep69-event-week-title{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #e2e4d9;padding-bottom:9px;margin-bottom:8px}
.ep69-event-week-title strong{font:500 20px Georgia,serif;color:#4a6a53}
.ep69-event-week-title span{font-size:11px;color:#9b9687}
button.ep69-event-item{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:5px;min-height:60px;width:100%;max-width:100%;padding:10px 11px!important;margin:0 0 7px!important;border:1px solid #d7dfd0!important;border-left:3px solid #86ad8f!important;border-radius:5px!important;background:#f9fbf5!important;overflow-wrap:anywhere!important;white-space:normal!important}
button.ep69-event-item:last-child{margin-bottom:0!important}
button.ep69-event-item.is-skipped{background:#faf8f2!important;border-left-color:#cac5b6!important;opacity:.74}
button.ep69-event-item.active{background:#e8f2e3!important;border-color:#80a781!important;box-shadow:inset 0 0 0 1px #a3cba5!important}
.ep69-event-item small{color:#9c8063;font-size:10px;font-weight:800;letter-spacing:.05em}
.ep69-event-item strong{font-size:14px;line-height:1.35;font-weight:650;color:#3e614c}
.ep69-event-empty{font-size:12px;color:#a6a898}
.ep69-event-detail{margin:12px 0 0;padding:15px;background:#eff5eb;border-left:3px solid #88a888;border-radius:4px;color:#5d705e;line-height:1.55}
.ep69-event-detail small{font-size:10px;letter-spacing:.12em;color:#9d765b}
.ep69-event-detail h4{font:500 24px Georgia,serif;color:#486b52;margin:6px 0 12px}
.ep69-event-detail strong{font-size:14px;color:#466a53}
.ep69-event-detail p{font-size:13px;line-height:1.55}
@media(max-width:700px){.ep69-events{padding:11px}.ep69-events-weeks{grid-template-columns:1fr;gap:9px}.ep69-event-week{padding:11px}.ep69-events-head h3{font-size:22px}}

/* Header is a vertical composition, not the generic horizontal site header. */
#endOverlay.ep69-ending .epf-banner{display:block!important;flex:none!important;overflow:visible!important;}
.ep69-chapter{display:block!important;max-width:none!important;text-align:left!important;margin:4px 0 17px!important;color:#a17f5e!important;line-height:1.4!important}
.ep69-mast{display:flex!important;align-items:center!important;justify-content:space-between!important;}
#endOverlay.ep69-ending .ep69-quick-share{min-height:42px!important;display:inline-flex!important;align-items:center;justify-content:center;padding:10px 16px!important;background:#537b60!important;color:#fffefa!important;border:1px solid #537b60!important;border-radius:6px!important;font-size:13px!important;font-weight:750!important;white-space:nowrap}
#endOverlay.ep69-ending .ep69-quick-share:hover{background:#446a4f!important}
@media(max-width:680px){body{background:#fffdf7!important}.ep69-chapter{font-size:9px!important;margin:4px 0 12px!important}.ep69-mast .ep68-finale-logo{width:145px!important}.ep69-mast{margin-bottom:5px!important}#endOverlay.ep69-ending .ep69-quick-share{font-size:12px!important;padding:9px 11px!important;min-height:39px!important}}

.ep69-pan-hint{display:none}
@media(max-width:680px){.story-layout .city .map .ep69-pan-hint{display:block!important;position:sticky!important;left:calc(100vw - 135px);bottom:10px;z-index:9;float:right;background:#fffaf1de;color:#5d7560;padding:5px 9px;border:1px solid #e2d9c9;border-radius:5px;font:700 11px system-ui,sans-serif;pointer-events:none;width:123px;max-height:28px;white-space:nowrap}}
