/* Responsive layout corrections: all dimensions include padding and borders. */
*,*::before,*::after{box-sizing:border-box}html,body{max-width:100%;margin:0}#site{width:100%;min-width:0}main,.view,section,form,fieldset,label{min-width:0}img,video,iframe{max-width:100%}input,select,textarea{max-width:100%;min-width:0}button{max-width:100%}.view>div,.view aside{min-width:0}dialog{position:fixed;inset:0;margin:auto;width:min(630px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.letter-dialog,.mood-dialog,.gift-dialog,.studio-dialog,.photo-dialog,.chapters-dialog{max-width:calc(100vw - 32px)}dialog .close{position:sticky;top:0;float:right;margin:-20px -12px 0 8px;background:#fff5fbea;border-radius:50%;width:38px;height:38px}#letter-content,.mood-dialog p{overflow-wrap:anywhere;white-space:pre-line}.finale-scroll-track{height:calc(145svh + 100px)}.scroll-love-footer .love-finale{height:560px;min-height:0;padding:25px 25px 18px;top:88px}.names-union{min-height:205px}.scroll-love-footer .footer-controls{margin-top:5px}.scroll-love-footer .footer-signature{padding:6px 0}.finale-intro{margin-bottom:5px!important}.finale-vow{margin:0 0 8px}.footer-action-pair{padding-bottom:8px}.scroll-love-footer .footer-bottom{padding-top:0;padding-bottom:12px}.footer-controls #footer-player-slot{max-width:100%}
@media(max-width:1050px){
 html{scroll-padding-top:120px}header{display:grid!important;grid-template-columns:minmax(0,1fr) 42px 42px;grid-template-rows:50px 40px;height:auto!important;min-height:108px!important;padding:8px 20px!important;gap:4px 10px!important;align-items:center;position:sticky;top:0;width:100%;max-width:100%}header>.brand{grid-column:1;grid-row:1;max-width:100%;min-width:0;margin:0}header>.brand strong{min-width:0;font-size:22px}header .brand strong>#brand-couple{max-width:100%;overflow-wrap:anywhere}header>.music-toggle,header>.rain-toggle,body.playing header>.rain-toggle{position:static!important;inset:auto!important;width:40px;height:40px;min-width:0;margin:0;grid-row:1}header>.rain-toggle{grid-column:2}header>.music-toggle{grid-column:3}header>nav{grid-column:1/-1;grid-row:2;display:flex;order:0;width:100%;min-width:0;max-width:100%;margin:0!important;padding:0 0 3px;gap:20px!important;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;font-size:12px}header>nav>*{flex-shrink:0}header>nav a{padding:7px 0}header .nav-more{font-size:11px;padding:7px 10px}main{padding-left:20px;padding-right:20px;gap:22px}.view{padding:30px 25px;width:100%;min-width:0;scroll-margin-top:120px}.romantic-spread,.music-layout,.mailbox-layout,.capsule-layout,.postcard-layout,.dream-layout,.puzzle-layout{grid-template-columns:minmax(0,1fr)!important}.mailbox-portrait{display:none}.open-when-list{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}.mood-envelope{width:100%;min-width:0;overflow-wrap:anywhere}.together{display:block;text-align:center}.together .counter{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:10px;max-width:520px;width:100%;margin:22px auto}.counter>i{display:none}.counter>div{min-width:0;width:100%;gap:5px}.counter strong,.counter div:first-child strong{font-size:clamp(28px,4.5vw,44px);letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}.counter span{margin:0;font-size:10px;letter-spacing:.5px}.cassette-wrap{width:100%;max-width:440px;padding:20px 12px;margin:auto}.cassette{width:100%;min-width:0;min-height:0;aspect-ratio:1.6;transform:rotate(-2deg);padding:18px 15px 34px}.playing .cassette{transform:rotate(-1deg)}.cassette-label{padding:8px 11px}.tape-window{min-width:0}.tape-title{font-size:clamp(22px,4vw,30px)}.track-panel{width:100%;min-width:0}.envelope{width:min(360px,90%);height:220px;margin:140px auto 28px}.journey-form-top,.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.distance-banner>*{min-width:0}.scroll-love-footer .love-finale{top:108px;height:540px}.finale-scroll-track{height:calc(145svh + 100px)}
}
@media(max-width:620px){
 body:before{border-width:3px}header{grid-template-columns:minmax(0,1fr) 36px 36px;grid-template-rows:46px 35px;min-height:97px!important;padding:6px 14px!important;gap:3px 8px!important}header>.brand{gap:7px}header>.brand strong{font-size:18px;line-height:1.2}.brand .brand-heart{width:31px;height:34px;flex-shrink:0}.brand small{font-size:6px;letter-spacing:.7px}header>.music-toggle,header>.rain-toggle,body.playing header>.rain-toggle{width:34px;height:34px;min-height:34px}header>nav{gap:18px!important;font-size:11px}header .nav-more{font-size:10px;padding:6px 9px}main{width:100%;padding:0 12px 25px;gap:20px}.view{padding:26px 17px 30px;border-radius:23px;scroll-margin-top:108px}#home{padding:0 8px}.romantic-spread{min-height:0}.home-hero{padding:32px 0 20px}.home-hero h1{font-size:clamp(43px,11vw,62px);letter-spacing:-1.8px}.home-hero p{font-size:14px}.hero-actions{gap:10px}.hero-actions a{font-size:12px!important;padding:12px 14px!important}.page-heading h2{font-size:clamp(28px,7.5vw,36px);overflow-wrap:anywhere}.page-heading>p{font-size:14px}.together{width:100%;padding:20px 12px}.together .counter{gap:7px;margin:16px auto}.counter strong,.counter div:first-child strong{font-size:clamp(24px,7vw,35px);letter-spacing:-1px}.together>.eyebrow{font-size:9px;letter-spacing:.7px}.together p{font-size:12px}.anniversary{width:100%;padding:14px;gap:9px}.anniversary>span{min-width:0}.anniversary p{font-size:11px}.photo-constellation{max-width:100%;width:100%}
 #gate{position:fixed;inset:0;width:100%;height:100dvh;overflow-y:auto;overflow-x:hidden;padding:14px 12px;display:flex;align-items:flex-start;justify-content:center}.gate-card{width:100%;max-width:390px;min-width:0;min-height:0;margin:auto;padding:20px 18px 24px;flex-shrink:0}.gate-top{margin-bottom:17px;padding-bottom:14px;gap:15px}.gate-top b{font-size:32px}.gate-top>span{font-size:13px}.gate-card h1{font-size:clamp(32px,9vw,41px);margin:13px 0 16px;line-height:1.13}.gate-card>p{font-size:12px;margin-bottom:14px}.gate-card>.eyebrow{font-size:9px}.pin-slots{gap:6px;justify-content:center;max-width:100%;margin-bottom:13px}.pin-slot{width:32px;height:36px;flex-shrink:1}.keypad{width:min(250px,100%);padding:11px;gap:8px;margin-left:auto;margin-right:auto}.keypad button{height:44px;min-width:0;font-size:22px}.gate-card .unlock-button{width:100%;max-width:100%;margin-top:17px;padding:12px;font-size:13px}.gate-names{font-size:22px;margin-top:13px}.gate-bottom{display:none}.gate-card p.gate-hint{font-size:10px}.gate-sweetheart{max-width:100%}
 dialog,.letter-dialog,.mood-dialog,.gift-dialog,.studio-dialog,.photo-dialog,.chapters-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:32px 20px 25px;margin:auto;border-radius:20px}dialog .close{margin:-22px -10px 4px 8px;top:0}dialog h2,.letter-dialog h2{font-size:30px}#letter-content,.mood-dialog p{font-size:16px;line-height:1.75}.envelope{width:calc(100% - 20px);max-width:320px;height:195px;margin:125px auto 25px}.env-paper-slot .env-paper{left:18px;right:18px}.env-paper{font-size:13px}.envelope.opening .env-paper{transform:translateY(-115px) rotate(-1deg)}.envelope.closing .env-paper{transform:translateY(0)}
 .cassette-wrap{padding:15px 10px 0;max-width:360px}.cassette{padding:14px 11px 29px;aspect-ratio:auto;min-height:190px;border-radius:15px}.cassette-label{padding:7px 8px}.tape-title{font-size:clamp(20px,6vw,27px)}.tape-sub{font-size:8px;letter-spacing:1px;overflow-wrap:anywhere}.tape-window{height:52px;padding:0 5px;border-width:3px;gap:6px}.reel{width:38px;height:38px;min-width:38px;border-width:4px}.reel i{left:11px;top:2px;width:5px;height:25px}.reel b{left:8px;top:8px;width:12px;height:12px}.tape-middle{width:32%;min-width:0;height:24px}.cassette-base{height:24px}.cassette-caption{font-size:18px;margin:23px 0 16px}.track-panel{padding:20px 15px}.open-when-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.mood-envelope{min-height:160px;padding:30px 8px 16px}.mood-envelope b{font-size:17px;line-height:1.25;overflow-wrap:anywhere}.mood-envelope small{font-size:8px;letter-spacing:0}.letter-footer-note{font-size:18px;overflow-wrap:anywhere}.form-row,.journey-form-top{grid-template-columns:minmax(0,1fr)!important}.paper-form{min-width:0;padding:20px 15px}.personalize-panel{padding:14px 11px}input[type=file]{width:100%;font-size:11px}.map-tabs{width:100%;display:flex;gap:4px}.map-tabs button{flex:1;min-width:0;font-size:10px;padding:10px 5px;white-space:normal}.distance-banner{gap:8px;padding:15px 10px}.distance-banner>span{font-size:12px;overflow-wrap:anywhere}.distance-center b{font-size:19px}.distance-center small{font-size:7px}.scratch-ticket,.capsule-card,.dream-notebook,.quiz-card,.puzzle-board{width:100%;max-width:100%;min-width:0}.game-tabs{flex-wrap:wrap}.journey-map{width:100%;min-width:0}.mini-player{max-width:calc(100vw - 30px)!important;bottom:17px!important;right:15px!important}.footer-in-view .mini-player{inset:auto!important}
 .finale-scroll-track{height:calc(140svh + 100px)}.scroll-love-footer .love-finale{top:97px;height:510px;min-height:0;padding:20px 14px 15px}.finale-eyebrow{font-size:7px;letter-spacing:1px}.love-finale .finale-intro{font-size:15px;margin:8px 0!important}.names-union{min-height:215px;grid-template-rows:auto 70px auto;margin:0 auto 6px}.names-union .ribbon-heart{width:185px;height:80px}.finale-name{font-size:clamp(34px,11vw,48px)!important}.finale-vow{font-size:11px;margin:3px 0 5px}.scroll-love-footer .footer-controls{margin:0;gap:3px}.scroll-love-footer .footer-signature{padding:4px 0}.footer-action-pair{padding:4px 0}.footer-action-pair .finale-return{width:36px;height:36px;min-width:36px;font-size:20px}.finale-photo.photo-left{top:28%;width:53px;height:70px}.finale-photo.photo-right{width:50px;height:66px}.scroll-love-footer .footer-bottom{padding:6px 15px 15px}.scroll-love-footer{margin-top:10px}
}
@media(max-width:360px){.view{padding-left:13px;padding-right:13px}header>.brand strong{font-size:16px}.brand small{font-size:5px}.counter strong,.counter div:first-child strong{font-size:24px}.together .counter{gap:5px}.mood-envelope b{font-size:15px}.tape-title{font-size:21px}.cassette{min-height:177px;padding:12px 9px 27px}.tape-window{height:47px}.reel{width:34px;height:34px;min-width:34px}.reel i{left:9px;height:22px}.reel b{left:6px;top:6px}.gate-card{padding:17px 13px}.gate-top b{font-size:29px}}
@media(max-height:680px) and (max-width:620px){.gate-card{margin:0 auto}.scroll-love-footer .love-finale{height:470px;padding-top:14px}.names-union{min-height:180px;grid-template-rows:auto 60px auto}.names-union .ribbon-heart{height:65px}.finale-name{font-size:36px!important}}
@media(prefers-reduced-motion:reduce){.finale-scroll-track{height:auto}.scroll-love-footer .love-finale{position:relative;top:auto}}
.view :where(div,aside,article){min-width:0}
@media(max-width:1050px){.music-room{grid-template-columns:minmax(0,1fr)!important;gap:25px;max-width:100%}.music-room>*{max-width:100%;min-width:0}.mailbox-layout{width:100%;max-width:100%}}
@media(max-width:620px){.label-top{font-size:8px;gap:5px}.player-controls{gap:12px}.track-list{width:100%;min-width:0}.track-list button{min-width:0;max-width:100%}.track-list button>*{min-width:0}.track-list strong{overflow-wrap:anywhere}}
/* Compact footer and a menu that fits the mobile viewport. */
html,body{overflow-x:clip}#site{overflow-x:clip}.nav-short{display:none}header nav a span{color:inherit}.scroll-love-footer .finale-scroll-track{height:auto}.scroll-love-footer .love-finale{position:relative;top:auto;height:510px;min-height:0;padding-top:22px;padding-bottom:18px}.scroll-love-footer .footer-action-pair{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}.scroll-love-footer .footer-action-pair .footer-bottom{display:flex;align-items:center;justify-content:flex-end;gap:12px 22px;padding:0;margin:0;width:auto;font-size:9px;flex-wrap:wrap;text-align:right}.scroll-love-footer .footer-action-pair .footer-bottom>span{width:auto;font-size:9px}.footer-action-pair #footer-studio-slot{white-space:nowrap}.scroll-love-footer .footer-controls{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px}.scroll-love-footer .footer-signature{grid-column:2;grid-row:1}.scroll-love-footer .footer-action-pair{grid-column:3;grid-row:1}.scroll-love-footer #footer-player-slot{grid-column:1;grid-row:1}.photo-constellation{isolation:isolate}
@media(max-width:1050px){.scroll-love-footer .footer-controls{grid-template-columns:1fr auto}.scroll-love-footer .footer-signature{grid-column:1;justify-self:center}.scroll-love-footer .footer-action-pair{grid-column:2;max-width:240px}.scroll-love-footer #footer-player-slot{grid-column:1/-1;grid-row:2;justify-self:center}.scroll-love-footer .love-finale{height:510px}.nav-wide{display:none}.nav-short{display:inline}header>nav{gap:clamp(7px,2vw,18px)!important;justify-content:space-between}header>nav a{font-size:11px}header .nav-more{font-size:11px;white-space:nowrap}}
@media(max-width:620px){header>nav{overflow-x:auto;overscroll-behavior-x:contain;gap:6px!important}header>nav a{font-size:clamp(9px,2.65vw,11px)}header .nav-more{font-size:10px;padding:6px 7px}.scroll-love-footer .love-finale{height:auto;min-height:470px;padding:20px 14px 14px}.scroll-love-footer .footer-controls{grid-template-columns:1fr;gap:6px}.scroll-love-footer .footer-signature{grid-column:1;grid-row:1}.scroll-love-footer .footer-action-pair{grid-column:1;grid-row:2;max-width:100%;width:100%;justify-content:flex-end;gap:12px}.scroll-love-footer .footer-action-pair .footer-bottom{gap:4px 12px;max-width:calc(100% - 48px)}.scroll-love-footer .footer-action-pair .footer-bottom>span{font-size:8px}.scroll-love-footer .footer-action-pair .footer-bottom button{font-size:9px!important}.scroll-love-footer #footer-player-slot{grid-column:1;grid-row:3}.photo-constellation:before{max-width:100%}.home-hero,.hero-actions,.romantic-spread{max-width:100%;min-width:0}}

/* Stable street maps: scoped Leaflet tiles, fixed mobile height and explicit pan mode. */
#places .journey-shell{position:relative;isolation:isolate;min-width:0;max-width:100%;overflow:hidden}#places .journey-map{position:relative!important;display:block;width:100%!important;min-width:0;height:380px!important;min-height:0!important;max-height:none!important;overflow:hidden!important;isolation:isolate;contain:layout paint;background:#e8edf0;touch-action:pan-y!important;z-index:0}#places .journey-map.map-interactive{touch-action:none!important}#places .leaflet-tile{max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;mix-blend-mode:normal!important}#places .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}#places .leaflet-control-container{font:11px/1.4 Arial,sans-serif}#places .leaflet-control-attribution{white-space:normal;max-width:100%;color:#333;background:#ffffffed}#places .leaflet-control-attribution a{color:#07528d}#places .map-tabs{display:flex;flex-wrap:wrap;gap:6px}#places .map-tabs button{min-height:42px;flex:1;min-width:85px}#places .map-interact-button,#places .map-message button{font:inherit;font-size:12px;font-weight:700;cursor:pointer;border:1px solid var(--t-line,#eab1ca);border-radius:12px;background:var(--t-paper,#fff6fa);color:var(--t-ink,#702440);padding:10px 14px;margin:10px}#places .map-interact-button[aria-pressed=true]{background:var(--t-accent,#d6266b);color:#fff}#places .map-message{padding:4px 14px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}#places .map-message:empty{display:none}#places .distance-banner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:20px 14px}#places .distance-banner>span{font-size:16px;overflow-wrap:anywhere;min-width:0}#places .map-love-quote{font-size:clamp(20px,4vw,28px);line-height:1.5;padding:0 14px;overflow-wrap:anywhere}#places .love-pin>div>b{white-space:normal;max-width:130px;width:max-content;text-align:center}#places .place-layout{min-width:0}#places .journey-card{min-width:0;max-width:100%;overflow:hidden}#places .map-service-links{display:flex;flex-wrap:wrap;padding:4px 14px;gap:10px}
@media(max-width:700px){#places .journey-map{height:300px!important}#places .place-layout{grid-template-columns:minmax(0,1fr)!important}#places .place-photo{height:240px;max-width:100%;margin:0}#places .place-photo img{width:100%;height:100%;object-fit:cover}#places .place-info{padding:22px 16px;min-width:0}#places .map-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}#places .distance-banner{gap:8px;padding:15px 10px}#places .distance-banner>span{font-size:13px}#places .distance-center b{font-size:22px}#places .distance-center small{font-size:8px}#places .journey-cards{display:grid;grid-template-columns:minmax(0,1fr);padding:12px}#places .love-route{animation:none!important}#places .love-pin>div>b{font-size:10px;max-width:95px}#places .leaflet-control-zoom a{width:36px;height:36px;line-height:36px}}


/* Direct street map, with photo cards independent from map sizing and animation. */
#places #map-external,#places #map-service-links,#places #map-interact,#places #map-message[hidden]{display:none!important}
#places .journey-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:start;gap:14px;padding:0 16px 18px}
#places .journey-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:190px auto;align-items:start;align-content:start;min-height:0;height:auto;min-width:0;max-width:100%;padding:0;overflow:hidden;transform:none;white-space:normal;text-align:left}
#places .journey-card>img{display:block;position:static;width:100%;height:190px;min-height:0;max-height:none;max-width:100%;margin:0;padding:8px;box-sizing:border-box;object-fit:contain;object-position:center;background:var(--t-paper,#fff8fc);transform:none;border:0;border-radius:0;filter:none;box-shadow:none}
#places .journey-card>div{position:static;min-width:0;padding:14px;transform:none;overflow-wrap:anywhere}
#places .journey-card.no-photo{display:block;min-height:0}
#places .journey-card strong{font-size:18px;line-height:1.35}
#places .journey-card p{font-size:13px;line-height:1.5;margin:6px 0}
#places .journey-card small{font-size:11px;line-height:1.5}
@media(max-width:700px){#places .journey-cards{grid-template-columns:minmax(0,1fr);padding:0 12px 14px}#places .journey-card{grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto;align-items:center}#places .journey-card>img{width:100px;height:120px;min-height:0;align-self:center;padding:6px}#places .journey-card>div{padding:12px}#places .journey-card.no-photo{display:block}}
