/* One full-bleed painting, one exchange, one continuation. */
.pete-story{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:#15283a;color:#233b5b;isolation:isolate}
.pete-story[open]{display:block}
.pete-story::backdrop{background:#102334ed}
.pete-story .pete-story-picture{position:absolute;inset:0;margin:0;z-index:-2}
.pete-story .pete-story-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;visibility:hidden}
.pete-story[data-painted=true] .pete-story-picture img{visibility:visible}
.pete-story::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#10253580,transparent 25%)}
.pete-story h2{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:76px;font-family:Larken,Georgia,serif;font-weight:400;font-size:30px;line-height:1.08;letter-spacing:-1px;color:#fff9e6;text-shadow:0 2px 12px #0e1a28;margin:0;max-width:300px}
.pete-story h2:focus{outline:none}
.agency-shell .pete-story .pete-story-close{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:44px;height:44px;padding:0;border:1px solid #0054ff;background:#fff9e6;color:#233b5b;font-size:30px;line-height:1;box-shadow:3px 3px #0054ff;z-index:5;cursor:pointer}
.pete-story .pete-story-controls{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));box-sizing:border-box;padding:20px;border:1px solid #0054ff;background:#fff9e6;box-shadow:4px 4px #0054ff;max-height:calc(100% - 120px);overflow:auto;scrollbar-width:thin}
.pete-story .pete-story-dialogue{display:grid;gap:14px;margin:0}
.pete-story .pete-story-dialogue p{display:grid;gap:4px;margin:0}
.pete-story .pete-story-dialogue strong{font-size:12px;font-weight:600;line-height:1.3;color:#0054ff}
.pete-story .pete-story-dialogue span{font-size:19px;line-height:1.3}
.agency-shell .pete-story .pete-story-controls>.button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;margin-top:17px;padding:10px 14px;border:1px solid #0054ff;box-shadow:3px 3px #233b5b;background:#0054ff;color:#fff9e6;font-size:16px;line-height:1.25;text-align:center;white-space:normal}
.pete-story button:focus-visible{outline:3px solid #e3a840;outline-offset:4px}
.pete-story .pete-story-load-note{font-size:13px;line-height:1.4;margin:12px 0 0}
@media(max-height:700px) and (orientation:portrait){
 .pete-story h2{font-size:27px}
 .pete-story .pete-story-controls{padding:14px}
 .pete-story .pete-story-dialogue{gap:11px}
 .pete-story .pete-story-dialogue span{font-size:17px}
 .agency-shell .pete-story .pete-story-controls>.button{margin-top:13px}
 .pete-story:is([data-pete-story=home],[data-pete-story=stayed]) .pete-story-dialogue p{grid-template-columns:52px minmax(0,1fr);gap:8px;align-items:baseline}
}
@media(orientation:landscape){
 .pete-story h2{max-width:560px;right:45%;font-size:clamp(30px,3vw,48px)}
 .pete-story .pete-story-controls{left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:35%;max-width:480px;padding:20px;max-height:calc(100% - 78px)}
 .pete-story[data-pete-story=phone] .pete-story-controls{width:39%}
}
@media(orientation:landscape) and (max-height:520px){
 .pete-story h2{font-size:30px}
 .pete-story .pete-story-controls{padding:16px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
 .pete-story .pete-story-dialogue span{font-size:17px}
}
