/* v4 mobile feedback fixes, loaded after all earlier art direction. */
.opening-progress-track{display:none}
body[data-scene=loading] .loading-film{opacity:.75}
body[data-theme] #ticket-dialog{width:calc(100vw - 24px);max-width:1000px;max-height:calc(100dvh - 24px);padding:50px 12px 16px;overflow:hidden;border-radius:20px}
body #ticket-dialog .ticket-zoom-scroll{width:100%;height:calc(100dvh - 110px);max-height:800px;overflow:hidden!important;display:grid;place-items:center;padding:0}
body #ticket-large{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;min-width:0!important;margin:0!important}
#hall-welcome{width:min(90vw,490px);max-height:calc(100dvh - 32px);padding:38px 26px 25px;overflow:hidden;isolation:isolate;line-height:1.9;color:#264843!important;background:#e8e9dbed!important;border-radius:24px}
#hall-welcome::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#f2efdfc7,#eeeadbdc),url('assets/hall/welcome.jpg') center/cover;pointer-events:none}
#hall-welcome h2{font:24px 'Eesta Serif',serif;margin:0 0 8px}#hall-welcome small{font-size:10px;opacity:.75}#hall-welcome p{font-size:13px;line-height:1.9;margin:15px 0}#hall-welcome p:last-child{font:italic 16px Georgia;margin-bottom:0}#hall-welcome .close-button{position:absolute;top:5px;right:8px;color:inherit}#hall-welcome[open]{animation:v4-dialog-in .65s ease both}#hall-welcome::backdrop{background:#102b2b66;backdrop-filter:blur(6px)}
body[data-theme] #exit-confirm{background:#e7e8d9c9!important;color:#254943!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);overflow:hidden;border-radius:24px}
body[data-theme=dark] #exit-confirm{background:#173334c9!important;color:#f0edde!important}
body[data-theme=light] .planning-scene{--planner-card-fill:rgba(255,252,237,.78);--planner-card-edge:rgba(96,123,104,.32)}
body[data-theme=dark] .planning-scene{--planner-card-fill:rgba(91,119,104,.62);--planner-card-edge:rgba(228,237,215,.34)}
body[data-theme] .planning-scene .timeline-card{background:var(--planner-card-fill)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;border-color:var(--planner-card-edge)!important;box-shadow:0 8px 26px #10292218,inset 0 1px #ffffef24!important}
body[data-theme] .planning-scene .timeline-card:not(.revealed){opacity:1}
body[data-theme] .bridge-dialog,body[data-theme] .bridge-organizations button,body[data-theme] .bridge-pa{overflow:hidden;clip-path:inset(0 round 24px);border-radius:24px!important;background-clip:padding-box;transform:translateZ(0)}
body[data-theme] .bridge-dialog::before,body[data-theme] .bridge-organizations button::before,body[data-theme] .bridge-pa::before{inset:0!important;border-radius:inherit!important}
.bridge-ribbon,.bridge-gallery{display:block!important;min-height:180px;overflow:hidden!important;contain:layout paint;touch-action:pan-y}
.bridge-gallery{min-height:280px}.bridge-marquee-track{display:flex!important;width:max-content!important;will-change:transform;animation:v4-bridge-scroll 65s linear infinite!important}.bridge-gallery .bridge-marquee-track{animation-direction:reverse!important;animation-duration:95s!important}.bridge-marquee-group{display:flex;flex:none;gap:16px;padding-right:16px}.bridge-ribbon .bridge-marquee-group img{width:260px!important;height:180px!important;object-fit:cover!important;border-radius:12px}.bridge-gallery .bridge-marquee-group img{width:320px!important;height:280px!important;object-fit:cover!important;border-radius:12px}.bridge-marquee-group img{opacity:0;transition:opacity .4s}.bridge-marquee-group img.media-ready{opacity:1}body:not([data-scene=bridge]) .bridge-marquee-track{animation-play-state:paused!important}@keyframes v4-bridge-scroll{to{transform:translate3d(-50%,0,0)}}
body .upside-bulbs,body .upside-firelight,body .upside-window-shimmer{display:none!important}
.upside-weather{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1;mask-image:linear-gradient(#000b,transparent 38%,transparent 68%,#000);-webkit-mask-image:linear-gradient(#000b,transparent 38%,transparent 68%,#000)}
.upside-weather i{display:none;position:absolute;left:var(--x);top:-8%;animation:v4-weather-fall var(--speed) var(--delay) linear infinite}
body[data-weather=sun] .upside-art{filter:brightness(1.04) saturate(.88) sepia(.12)}body[data-weather=wind] .upside-art{filter:brightness(.96) saturate(.74) hue-rotate(8deg)}body[data-weather=snow] .upside-art{filter:brightness(.88) saturate(.4) hue-rotate(12deg)}body[data-weather=rain] .upside-art{filter:brightness(.67) saturate(.58) hue-rotate(17deg)}body[data-theme=dark] .upside-art{filter:brightness(.58) saturate(.65)}
body[data-weather=snow] .upside-weather i{display:block;width:3px;height:3px;border-radius:50%;background:#f8fbffb3}body[data-weather=rain] .upside-weather i{display:block;width:1px;height:15px;background:#c9d7e780;animation-duration:1.2s}body[data-weather=wind] .upside-weather i{display:block;width:6px;height:2px;background:#b7c5a877;animation-duration:7s}@keyframes v4-weather-fall{to{translate:-20px 100vh}}body:not([data-scene=upside]) .upside-weather i{animation-play-state:paused}
body .upside-print-hit img{width:100%;height:100%;object-fit:cover;display:block;box-shadow:0 1px 4px #0006}.upside-print-spots.photo-grid{inset:13% 10% 14%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:7%;pointer-events:auto;background:#b19a7d;box-shadow:0 0 0 8px #b19a7d}
body .upside-memory-thumb{position:relative;display:block;min-width:0;min-height:0;padding:4px!important;border:0;background:#eee6d4;box-shadow:0 2px 5px #0005;cursor:zoom-in;overflow:hidden;pointer-events:auto;border-radius:0}body .upside-memory-thumb img{display:block;width:100%;height:100%;object-fit:cover}.upside-memory-thumb span{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;color:white;text-shadow:0 2px 10px #000}
body[data-theme] .postcard-editor{width:min(94vw,660px);height:auto;max-height:calc(100dvh - 24px);padding:18px 18px 14px;overflow:hidden;border-radius:22px}
body .postcard-editor:before{position:absolute;inset:0;border-radius:inherit}
body .postcard-editor h2{font-size:22px;margin:6px 0 16px}body .postcard-compose{height:clamp(185px,34dvh,300px);aspect-ratio:auto;grid-template-columns:1.2fr 1fr;padding:12px;gap:10px}
body .postcard-editor #card-text{font-size:14px;line-height:1.7}body .postcard-editor #card-name{font-size:11px;min-height:36px}body .postcard-editor label{margin:10px 0 5px;font-size:12px}body .postcard-editor #card-visibility{padding:8px;min-height:40px}body .postcard-editor #card-submit{margin:12px auto 0;padding:10px;min-height:42px}body .postcard-editor #card-status{margin:5px 0 0;font-size:11px;line-height:1.4}body .card-swatches{margin:5px 0;gap:10px;display:flex;justify-content:center}body .card-swatches button{width:25px;height:25px;min-height:25px;border-radius:50%}
#open-drawing{position:relative;width:100%;padding:0;display:block;height:auto;aspect-ratio:1;background:#fff3;border-radius:12px!important;overflow:hidden}#card-preview{display:block;width:100%;height:100%}#open-drawing span{position:absolute;bottom:6px;left:0;right:0;font-size:10px;opacity:.75}body .postcard-drawing{align-self:center}
body[data-theme] .drawing-dialog{width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;padding:calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));background:var(--ui-bg)!important;color:var(--ui-ink)!important;overflow:hidden}
.drawing-dialog header{display:flex;align-items:center;justify-content:space-between}.drawing-dialog h2{font-size:21px;font-weight:400;margin:8px 0}.drawing-dialog header button{padding:10px 18px;background:var(--ui-panel);color:inherit;border-radius:20px}.drawing-dialog p{font-size:11px;line-height:1.7;margin:8px 0 14px}.drawing-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px}.drawing-tools label{display:flex;align-items:center;gap:6px}.drawing-tools input[type=color]{width:34px;height:34px;padding:2px}.drawing-tools input[type=range]{width:90px}.drawing-tools button{background:var(--ui-panel);color:inherit;padding:10px 12px;border-radius:20px}.drawing-tools button[aria-pressed=true]{background:#8aa79b;color:#102b2b}
.drawing-surface{margin:18px auto 0;width:min(100%,600px,calc(100dvh - 230px));aspect-ratio:1;background:#fff8;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px #78968b55}body #card-canvas{display:block;width:100%;height:100%;border:0;background:transparent;touch-action:none}
@keyframes v4-dialog-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:680px){#hall-welcome{padding:30px 20px 18px}#hall-welcome p{font-size:12px;line-height:1.75;margin:10px 0}.postcard-editor h2{margin-bottom:10px!important}body .postcard-compose{height:29dvh;min-height:150px}body .postcard-editor label{margin:7px 0 4px}body .postcard-editor #card-submit{margin-top:9px}}
@media(prefers-reduced-motion:reduce){.upside-weather i{animation:none!important}}
body[data-theme] .postcard-editor{height:fit-content!important;min-height:0!important;margin:auto!important;bottom:auto;top:50%;transform:translateY(-50%)}

body .upside-print-close{background:var(--ui-panel)!important;color:var(--ui-ink)!important}

/* Five supplied photographs, one per matching timeline entry. Geometry stays unchanged. */
body[data-theme] .planning-scene .timeline-card[data-photo]{position:relative;isolation:isolate;background:var(--planner-card-fill)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden}
body[data-theme] .planning-scene .timeline-card[data-photo]::before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--timeline-photo);background-position:center;background-size:cover;background-repeat:no-repeat;opacity:.9;filter:blur(1px) saturate(.76);border-radius:inherit;pointer-events:none}
body[data-theme] .planning-scene .timeline-card[data-photo]::after{content:'';position:absolute;inset:0;z-index:-1;background:rgba(248,247,229,.42);border-radius:inherit;pointer-events:none}
body[data-theme=dark] .planning-scene .timeline-card[data-photo]::before{opacity:.9;filter:blur(1px) saturate(.78)}
body[data-theme=dark] .planning-scene .timeline-card[data-photo]::after{background:rgba(12,32,29,.56)}
body[data-theme] .planning-scene .timeline-card[data-photo]>*{position:relative;z-index:1}
body .planning-scene .timeline-card[data-photo=timeline-into20]::before{background-position:center 54%}
body .planning-scene .timeline-card[data-photo=timeline-gimc]::before{background-position:center 24%}
body .planning-scene .timeline-card[data-photo=timeline-happy]::before{background-position:center 40%}

/* Floo confirmation keeps the actual room photo visible underneath the copy. */
body[data-theme] #exit-confirm{background:transparent!important;isolation:isolate;backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-theme] #exit-confirm::before{content:'';position:absolute;inset:0;z-index:-2;background:url('assets/hall/day.webp') center 45%/cover!important;filter:blur(1px);opacity:1!important;pointer-events:none;border-radius:inherit}
body[data-theme] #exit-confirm::after{content:'';position:absolute;inset:0;z-index:-1;background:rgba(239,239,220,.44);border-radius:inherit;pointer-events:none}
body[data-theme=dark] #exit-confirm::after{background:rgba(10,30,28,.52)}
body[data-theme] #exit-confirm p,body[data-theme] #exit-confirm button{position:relative;z-index:1}

/* Keep regular and emphasized invitation notice text in one font family. */
body[data-theme] #hall-welcome,body[data-theme] #hall-welcome .welcome-copy p{font-family:'Eesta Serif','Songti SC',SimSun,serif!important;font-weight:400!important;font-synthesis:weight;font-style:normal}
body[data-theme] #hall-welcome strong{font-family:inherit!important;font-weight:700!important;font-style:normal;letter-spacing:inherit;line-height:inherit;color:inherit}
body[data-theme] #hall-welcome h2{font-family:inherit!important;font-weight:600!important}
body[data-theme] #hall-welcome small{font-family:inherit!important;font-weight:400!important}

/* One DOM card per postcard; no repeated clones used for scrolling. */
#postcard-wall .postcard-track{width:max-content;min-width:100%;gap:0}
#postcard-wall .postcard-group{display:flex;flex:none;min-width:100%;justify-content:center;gap:18px;padding:0}
#postcard-wall .memory-card{display:grid;grid-template-columns:minmax(0,1fr) 88px;grid-template-rows:1fr auto;gap:8px;padding:18px 16px;overflow:hidden}
#postcard-wall .memory-card p{grid-column:1;grid-row:1;margin:0;line-height:1.8;align-self:center;overflow-wrap:anywhere}
#postcard-wall .memory-card canvas{grid-column:2;grid-row:1 / span 2;width:88px;height:88px;align-self:center}
#postcard-wall .memory-card small{grid-column:1;grid-row:2;font-size:8px;line-height:1.6}
#postcard-wall .memory-card:not(:has(canvas)){grid-template-columns:1fr}

/* A fixed one-screen postcard wall; full messages open in a separate reader. */
#guest-scene .guest-scroll{height:100%;height:100svh;overflow:hidden;overscroll-behavior:none;padding:clamp(76px,12svh,104px) 20px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;box-sizing:border-box}
#guest-scene .guest-scroll header{margin:0;flex:none}
#guest-scene .guest-scroll header>p:last-child{font-size:clamp(20px,5.5vw,28px);line-height:1.4;margin:0}
#guest-scene #write-card{flex:none;margin:3px auto;padding:10px 24px;font-size:12px}
#guest-scene #postcard-wall{flex:1 1 0;min-height:0;width:calc(100% + 40px);max-height:350px;margin:0 -20px;overflow:hidden;justify-content:center;gap:8px}
#postcard-wall .postcard-lane{flex:1 1 0;min-height:0;max-height:171px;display:flex;align-items:center;touch-action:pan-x}
#postcard-wall .postcard-track,#postcard-wall .postcard-group{height:100%;align-items:center}
#postcard-wall .memory-card{flex:0 0 auto;box-sizing:border-box;width:clamp(220px,68vw,280px);height:calc(100% - 12px);max-height:158px;min-height:0;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:minmax(0,1fr) auto;gap:8px;padding:14px;margin:6px 0;cursor:pointer}
#postcard-wall .memory-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;max-height:6.4em;font-size:9px;line-height:1.6;align-self:center;min-height:0;white-space:pre-wrap}
#postcard-wall .memory-card canvas{width:72px;height:72px;max-height:100%;object-fit:contain}
#postcard-wall .memory-card small{font-size:7px;line-height:1.5;max-height:3em;overflow:hidden;overflow-wrap:anywhere}
#postcard-wall .memory-card:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
#guest-scene .guest-end{flex:none;margin:0 auto;padding:10px 22px;min-height:36px}
#guest-scene .guest-note{flex:none;margin:0;font-size:10px;line-height:1.5}
#guest-scene #guest-mode:empty{display:none}
body[data-theme] .postcard-reader{width:min(94vw,760px);max-height:90svh;padding:0;overflow:hidden;background:var(--ui-panel);color:var(--ui-ink);border-radius:22px}
.postcard-reader>header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.postcard-reader>header span{font:italic 26px Georgia,serif;display:block}
.postcard-reader>header small{font:8px Georgia,serif;letter-spacing:.16em;opacity:.6}
.postcard-reader>header button{flex:none;width:42px;height:42px;font-size:25px;background:none;color:inherit;border:0;box-shadow:none}
.postcard-reader-scroll{max-height:calc(90svh - 84px);overflow-y:auto;overscroll-behavior:contain;padding:0 16px 18px}
.postcard-full{background:var(--card-paper);color:var(--card-ink);padding:28px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;border-radius:8px;box-shadow:inset 0 0 0 1px #34565822}
.postcard-full-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.95 'Eesta Serif',serif}
.postcard-full canvas{width:100%;height:auto;align-self:center}
.postcard-full footer{grid-column:1 / -1;border-top:1px solid #34565833;padding-top:18px;font-size:11px;line-height:1.7;letter-spacing:.06em;overflow-wrap:anywhere}
.postcard-full:not(:has(canvas:not([hidden]))) .postcard-full-text{grid-column:1 / -1}
.postcard-reader::backdrop{background:#102b2bcc;backdrop-filter:blur(9px)}
@media(max-width:500px){.postcard-full{grid-template-columns:1fr;gap:20px;padding:23px}.postcard-full-text{font-size:14px;line-height:1.95}.postcard-full canvas{width:min(100%,240px);justify-self:center}}
@media(max-height:600px){#guest-scene .guest-scroll{padding-top:65px;gap:5px}#guest-scene .guest-scroll header>p:last-child{font-size:18px}#postcard-wall .memory-card{padding:10px;grid-template-columns:minmax(0,1fr) 56px}#postcard-wall .memory-card canvas{width:56px;height:56px}}
