/* Coastal Earth Tones: supplied key visual; supplied Signature by Wyndham logo. */
:root{--ivory:#eee9dc;--gold:#d2bc9d;--muted:#aebbb1;--ocean:#19363b;--teal:#78877b;--wood:#92745e}body{background:#19363b;color:var(--ivory);background-image:radial-gradient(ellipse at top left,#3e5756,transparent 70%)}header{height:98px;background:#e0dbcf;border-bottom:1px solid #78877b24;max-width:none;padding:19px 5vw}.brand{width:330px;max-width:55vw;display:block;letter-spacing:normal}.brand .logo-crop{display:block;position:relative;width:100%;aspect-ratio:1300/175;overflow:hidden;margin:0}.logo-crop img{position:absolute;width:123.077%;max-width:none;left:-11.538%;top:-634.286%;filter:grayscale(1) contrast(2);mix-blend-mode:multiply}.edition{color:#43564f}.edition span{color:#66756c}header button{border-color:#63726766;color:#425c56;background:transparent}.intro-mode header{background:#e0dbcfef;backdrop-filter:blur(10px)}.intro-mode .edition{color:#4b6059}.intro-mode header button{color:#425c56;background:transparent}#intro{background:#19363b}#cityCanvas{background:#343f40;overflow:hidden}#cityCanvas .city-photo{width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:saturate(.55) brightness(.68);animation:streetApproach 14s ease-out both;transform-origin:60% 42%}.street-tone{position:absolute;inset:0;background:linear-gradient(90deg,#142b30ac,transparent 85%)}#intro:after{background:linear-gradient(0deg,#112f35b3,transparent 75%)}.photo-portal{position:absolute;width:200px;height:360px;left:65%;top:26%;background:linear-gradient(100deg,#546359,#243c39);border:9px solid #a48a6e;box-shadow:0 22px 35px #1119,inset 0 0 0 2px #d0bf9a70;transform:scale(.85);animation:doorApproach 14s ease-out both;transition:transform 2.7s,opacity .5s}.portal-line{position:absolute;inset:12px;border:1px solid #b7a78d55}.portal-lock{position:absolute;left:47%;top:48%;font-size:13px;color:#e4d1ac;text-shadow:0 0 14px #d2bc9d}.entering #cityCanvas .city-photo{animation:none;transform:scale(1.38);transition:transform 3s}.entering .photo-portal{animation:none;transform:scale(3.5);opacity:0}.by-sea .photo-portal{display:none}#keyhole{left:71%;top:48%}.introCopy h1,.coastCopy h1{letter-spacing:-1px;font-weight:normal}.introCopy{max-width:620px;right:40%}.introCopy em,.coastCopy em{color:#d2bc9d}.introCopy .eyebrow{color:#ddd5bc}.primary{background:#d2bc9d;border:1px solid #d9c9af;color:#234047;border-radius:1px}.primary:hover{background:#e2d2b8}.introCopy small{color:#b5c2b8}.introNote{max-width:85%;color:#bdc9be}#passForm{background:#1c3b3eea;border-color:#8da39377;border-radius:2px}#passForm h2 em{color:#d2bc9d}.passwordRow{border-color:#97ab9e70}.passwordRow input{background:#142e31a8}.passwordRow button{background:#556d64;color:#e2d7c0}#passForm small{color:#afc3b5}.brand-mark{font:italic 30px Georgia;color:#d2bc9d;margin:10px auto;width:42px;text-align:center;border-bottom:1px solid #d2bc9d55;line-height:1.5}.frame{border-color:#a3b7a44d;background:#18393e;box-shadow:0 20px 60px #0c222655;min-height:640px}.door,.right{background:linear-gradient(115deg,#486661,#203e42 55%,#16353b);border-color:#92ab9c33;box-shadow:inset 0 0 70px #0a242766}.right{background:linear-gradient(245deg,#486661,#203e42 55%,#16353b)}.inlay{border-color:#a6bfa133;outline-color:#a6bfa11a;inset:25px;border-radius:44% 44% 0 0 / 12% 12% 0 0}.door:after{content:'';position:absolute;width:130%;height:150%;border:1px solid #b1c5b41c;border-radius:50%;left:-48%;top:-25%;transform:rotate(35deg)}.right:after{left:15%;transform:rotate(-35deg)}.handle{background:linear-gradient(90deg,#9a7d60,#d5c5a9,#92745e);box-shadow:0 3px 10px #0003}.seam{background:#b3c5af30;box-shadow:none}.answer{background:#17373d88;border-color:#91aa9866;color:#eee8d9;min-height:54px}.answer:hover{background:#506d63;border-color:#c6c6a8}.answer .letter{color:#d2bc9d;border-color:#a0b4a54d}.answer.correct{background:#607969;border-color:#d5ddbd}.answer.wrong{background:#725747;border-color:#b39173}#question{color:#d0dbcf;font-size:13px;line-height:1.65}.eyebrow{color:#c5d2bc}.hint{color:#c3cbb9;min-height:40px}.micro{color:#9ab0a0}.feedback{height:auto;min-height:34px}.question h1{font-size:36px}.question{padding:25px 30px 30px;max-width:690px}.answers{max-width:520px}.frame:after{border-color:#a8bda426}.envelope{background:linear-gradient(130deg,#687c6d,#24464a);border-color:#adbca080}.envelope .brand-mark{margin-top:13px}.invitation{background:#153b3bdc}.final-gate h2 em,.invitation h2 em{color:#d2bc9d}.keys{color:#ccdbc3}.keys span{color:#809a85}footer small{color:#a6b7a9}footer button{color:#c9ccb5}#progress{color:#8ca595}#progress .active{color:#e0d6bd}#progress .done{color:#bdcfb7}#progress i{background:#b2c5a544}.scene-shade{background:linear-gradient(0deg,#12373cf0,transparent 75%)}.revealed .quiet{color:#eee9dc}.revealed p{color:#e4ebde}#viewer{background:#173238fa}
@keyframes streetApproach{from{transform:scale(1)}to{transform:scale(1.12)}}@keyframes doorApproach{from{transform:scale(.65);opacity:.3}to{transform:scale(1);opacity:1}}
/* Phone layout: natural document height, safe insets and generous touch targets. */
@media(max-width:700px){header{height:82px;padding:17px 18px;gap:12px}.brand{width:255px;max-width:63vw}header button{font-size:9px;padding:10px;white-space:nowrap}.intro-mode{overflow:auto}#intro{position:relative;min-height:100svh;height:auto;overflow:hidden;padding-top:82px;display:flex;flex-direction:column;justify-content:flex-end}.intro-mode header{position:absolute}#cityCanvas,#seaIntro{position:absolute;inset:0}#cityCanvas .city-photo{object-position:53% center;filter:saturate(.6) brightness(.72)}.photo-portal{width:116px;height:210px;top:19%;left:calc(50% - 58px);border-width:6px}#keyhole{left:50%;top:34%}.introCopy,.coastCopy{position:relative;left:auto;right:auto;bottom:auto;max-width:none;margin:0;padding:0 24px 68px;z-index:4;padding-top:45svh}.introCopy h1,.coastCopy h1{font-size:clamp(29px,8.1vw,40px);line-height:1.18;letter-spacing:-.6px;margin:15px 0}.introCopy p,.coastCopy p{font-size:12px;line-height:1.8;max-width:350px}.introCopy small{font-size:9px;margin-top:15px}.introCopy .primary,.coastCopy .primary{width:100%;min-height:49px;max-width:360px}.introCopy .eyebrow{font-size:7px;letter-spacing:1.5px}.coastCopy{padding-top:47svh}#intro:after{background:linear-gradient(0deg,#123339ed 0%,#123339a8 35%,transparent 70%)}.introNote{position:absolute;bottom:12px;left:24px;right:24px;font-size:6px;max-width:none}#passForm{position:relative;left:auto;top:auto;transform:none;width:calc(100% - 36px);margin:100px 18px 65px;padding:26px;z-index:6}#passForm .primary{min-width:0;min-height:49px}.passwordRow input{min-height:50px}.intro-mode:has(#passForm:not([hidden])) #intro{justify-content:center;min-height:100svh}main{padding:0 10px}.frame{height:auto;min-height:calc(100svh - 170px);overflow:hidden}.question{padding:24px 22px 28px;min-height:620px;max-width:none;position:relative}.question h1{font-size:29px;margin:12px 0;line-height:1.2}#question{font-size:12px;line-height:1.7;margin:13px auto 18px}.question .eyebrow{font-size:7px;letter-spacing:1.5px}.answers{grid-template-columns:1fr;gap:9px;width:100%}.answer{font-size:13px;min-height:50px;padding:12px 15px}.answer .letter{font-size:18px;padding-right:14px}.feedback{font-size:11px;min-height:34px;margin-top:12px}.hint{padding:10px;min-height:44px}.brand-mark{margin:8px auto;font-size:27px}.micro{font-size:6px;margin:7px 0}.inlay{inset:14px}.frame.opening{min-height:calc(100svh - 170px)}.revealed{position:relative;bottom:auto;left:auto;right:auto;padding:44svh 25px 32px;min-height:650px}.revealed h2{font-size:56px}.revealed .primary{width:100%;min-width:0;min-height:50px}.revealed .quiet{margin:12px 0 0;padding:12px 0;min-height:44px}.final-gate,.invitation{position:relative;inset:auto;min-height:650px;padding:35px 24px}.final-gate h2,.invitation h2{font-size:29px}.keys{font-size:14px;line-height:1.8}.keys span{margin:0 4px}.final-gate .primary{min-width:0;width:100%}footer{padding:15px 20px 20px}#progress{font-size:6px;letter-spacing:.2px;gap:5px}#progress i{width:7px}footer button{min-height:36px}.scene img{object-position:center}#viewer{padding:55px 10px 30px}#viewer img{max-height:calc(100svh - 100px)}#closeViewer{min-width:44px;min-height:44px}}
@media(max-height:600px) and (orientation:landscape){.intro-mode{overflow:auto}#intro{position:relative;min-height:650px}.introCopy,.coastCopy{bottom:65px}.photo-portal{top:21%;height:270px;width:155px}.introCopy{max-width:55%}#passForm{top:55%}.frame{height:auto;min-height:620px}.question{min-height:620px}}@media(prefers-reduced-motion:reduce){.city-photo,.photo-portal{animation:none!important;transition:none!important}.photo-portal{transform:scale(1);opacity:1}}

/* Supplied portrait footage: keep the whole scene visible on wide screens. */
#cityCanvas{background:#243434 url('city-poster-v4.jpg') center/cover no-repeat}
#cityCanvas:before{content:'';position:absolute;inset:-25px;background:inherit;filter:blur(25px) brightness(.38)}
#cityCanvas #cityVideo{position:relative;object-fit:contain;object-position:center;filter:brightness(.85);animation:none;transform:none;transform-origin:50% 50%}
.entering #cityCanvas #cityVideo{transform:scale(1.38);transition:transform 3s ease-in}
#keyhole{left:50%;top:50%}
@media(min-width:701px){.introCopy{right:auto;left:5%;max-width:440px}.introCopy h1{font-size:clamp(30px,3.2vw,48px)}}
@media(max-width:700px){#cityCanvas #cityVideo{object-fit:cover;object-position:center}.introCopy{padding-top:48svh}.street-tone{background:linear-gradient(0deg,#142b3070,transparent 80%)}}

#journeyLayer{position:absolute;inset:0;z-index:8;background:#263435}#journeyVideo{width:100%;height:100%;object-fit:contain}#retryJourney{position:absolute;bottom:15%;left:50%;transform:translateX(-50%)}.playing-journey #keyhole,.playing-journey .introNote{display:none}.playing-journey:after{display:none}@media(max-width:700px){#journeyVideo{object-fit:cover}.playing-journey{min-height:100svh!important}}

#seaIntro{transform:none;transition:opacity 1s ease;background:#568f9b url('sea-poster-v3.jpg') center/cover no-repeat}#seaVideo{width:100%;height:100%;object-fit:cover;object-position:center}#journeyLayer{opacity:1;transition:opacity 1s ease;will-change:opacity}.sea-dissolve #journeyLayer{opacity:0;pointer-events:none}.by-sea #seaIntro{transform:none}.coastCopy:not([hidden]){animation:coastTextIn .8s ease both}@keyframes coastTextIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#journeyLayer,#seaIntro{transition:none}.coastCopy:not([hidden]){animation:none}}

@font-face{font-family:Megante;src:url('SVN-Megante.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Manrope;src:url('Manrope.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
body,button,input,small,p,.eyebrow,.answer,.answer .letter,.keys,.brand-mark,.edition{font-family:Manrope,sans-serif}
h1,h2,h3,h1 em,h2 em,.question h1,.introCopy h1,.coastCopy h1,#passForm h2{font-family:Megante,Georgia,serif;font-weight:400;font-style:normal}
.doors{background:url('question-door-v3.jpg') center/cover no-repeat;transition:opacity .7s ease}.doors:after{content:'';position:absolute;inset:0;background:#100e0c48}.door,.seam{display:none}.opening .doors{opacity:0;pointer-events:none}
.question{position:relative;z-index:3;text-shadow:0 2px 9px #0008}.answer{background:#201a16b8;border-color:#ccb49288}.answer:hover{background:#594333dd}.question h1{line-height:1.25}.question .eyebrow{color:#e1ccb0}#quizMotion{position:absolute;inset:0;z-index:7;opacity:1;transition:opacity .7s ease;background:#211a14}#quizVideo{width:100%;height:100%;object-fit:cover}#quizMotion.fade-out{opacity:0;pointer-events:none}#retryQuizVideo{position:absolute;left:50%;bottom:10%;transform:translateX(-50%)}
@media(max-width:700px){.question h1{font-size:27px}.question{padding-top:38px}.introCopy h1,.coastCopy h1{font-size:30px}}

header,.intro-mode header{background:#243c3cf2}.brand{display:block}.solina-logo{display:block;width:100%;height:auto;object-fit:contain}.edition,.intro-mode .edition{color:#e1d9cb}.edition span{color:#b7c1b5}#sound{display:none!important}

/* Review: centered identity, quiet controls and contained door composition. */
header,.intro-mode header{justify-content:center;background:transparent!important;backdrop-filter:none;border:0;position:relative;z-index:10}.edition{display:none}.brand{margin:0 auto;width:300px;max-width:68vw}.primary,.answer{border-radius:24px}.primary{background:#92745e;color:#fff6e8;border-color:#b2977b;box-shadow:0 5px 18px #0003;width:auto!important;min-width:0!important;padding:12px 22px;min-height:44px}.primary:hover{background:#a4866c}.introCopy,.coastCopy,.revealed,#passForm{text-align:left}.introCopy .primary,.coastCopy .primary,.revealed .primary{display:inline-flex;gap:20px;justify-content:space-between}.question #chapter,.question .brand-mark,.micro{display:none}#hintText{font-size:11px;font-style:italic;line-height:1.65;min-height:36px;margin:2px 0 0;color:#e4d7bf}.hint{display:block;margin:4px 0;text-align:left}.question{text-align:left;width:76%;max-width:480px;padding:0;min-height:0;margin:0 auto;padding-top:130px;padding-bottom:90px}.question h1{font-size:29px}#question{font-size:12px;margin:16px 0}.answers{grid-template-columns:1fr;max-width:none}.answer{font-size:12px;padding:10px 16px;min-height:44px}.frame{height:auto;min-height:760px;max-width:620px;margin:auto}.doors{background-size:cover;background-position:center}.feedback{min-height:20px;font-size:11px}.frame:after{display:none}#quizVideo{object-fit:cover;object-position:center}.scene-shade{background:linear-gradient(0deg,#19363be0,transparent 60%)}.seaOverlay{background:linear-gradient(0deg,#19363b80,transparent 65%)!important}.by-sea:after{background:linear-gradient(0deg,#19363b66,transparent 60%)!important}.viewerTools{position:absolute;bottom:20px;left:16px;right:16px;display:flex;gap:12px;justify-content:center;align-items:center;z-index:5}.viewerTools button{color:#eee9dc;background:#365452;border:1px solid #a9b6a5;border-radius:20px;padding:10px 16px;min-height:44px}.viewerTools button:disabled{opacity:.3}#viewer{overflow:hidden;align-items:center;justify-content:center}#fullImage{object-fit:contain;transition:transform .35s ease;flex:none}#history{border:1px solid #b7b9a766;border-radius:22px;padding:9px 16px;margin:10px}footer{background:#19363b}.final-gate{background:#19363b}
@media(max-width:700px){.question{width:76%;padding-top:105px;padding-bottom:70px;min-height:650px}.question h1{font-size:24px;line-height:1.3}#question{font-size:11px;line-height:1.7}.answer{font-size:11px;min-height:44px}.frame{min-height:760px}.introCopy .primary,.coastCopy .primary{max-width:100%}.brand{width:265px}#hintText{font-size:10px}.coastCopy{padding-top:48svh}.revealed{padding-top:45svh}.viewerTools{gap:6px}.viewerTools button{font-size:11px;padding:9px 12px}}

/* Full-bleed garden, compact page height, and single-line seafront heading. */
body{background:#19363b}body:not(.intro-mode) header{position:absolute;top:0;left:0;right:0;z-index:8;background:transparent!important;pointer-events:none}body:not(.intro-mode) header a{pointer-events:auto}main#game{padding:0;max-width:none;width:100%;margin:0}.frame{width:100%;max-width:none;border:0;box-shadow:none;min-height:calc(100svh - 66px);height:auto}.doors{background-size:cover;background-position:center}.question{width:min(76%,520px);min-height:calc(100svh - 66px);padding-top:clamp(145px,20svh,210px);padding-bottom:35px;display:flex;flex-direction:column;justify-content:center}.question h1{margin:0 0 8px}#hintText{min-height:0}.feedback{min-height:24px;margin-top:6px}.hint{margin-top:4px}.revealed{min-height:calc(100svh - 66px)}#gameFooter{min-height:66px;margin:0;padding:12px 20px;max-width:none;width:100%;background:#19363b}#gameFooter #history{margin:0 8px}.frame.opening{min-height:calc(100svh - 66px)}#revealedChapter:empty{display:none}.seafront-title h2{display:flex;align-items:baseline;gap:.22em;white-space:nowrap;font-size:clamp(24px,7vw,72px);line-height:1.25}.seafront-title #metric:after{content:'M'}.seafront-title h2 small{display:inline;font:inherit;letter-spacing:0}.seafront-title h2 small{font-size:0}.seafront-title h2 small:after{content:'MẶT BIỂN';font-size:clamp(24px,7vw,72px)}
@media(max-width:700px){.frame,.frame.opening{min-height:calc(100svh - 66px)}.question{width:76%;min-height:calc(100svh - 66px);padding-top:145px;padding-bottom:25px;justify-content:center}.question h1{font-size:25px}#question{margin:10px 0 14px}.revealed{min-height:calc(100svh - 66px);padding-top:50svh;padding-bottom:25px}.final-gate,.invitation{min-height:calc(100svh - 66px);padding-top:120px}.doors{background-position:center}.seafront-title h2{font-size:7vw}.seafront-title h2 small:after{font-size:7vw}}
.invitation{text-align:center}.invitation h2,.invitation-copy,.invitation-copy p{text-align:center}.invitation-copy{width:min(100%,590px);margin:20px auto 8px;color:#e6e7d9}.invitation-copy p{font-size:clamp(13px,1.3vw,16px);line-height:1.65;margin:0 auto 16px;max-width:55ch}.invitation-copy p:last-child{margin-bottom:0}@media(max-width:700px){.invitation{padding:55px 22px 36px}.invitation-copy{margin:22px auto 8px}.invitation-copy p{font-size:13px;margin-bottom:15px}}
.invitation-copy{width:min(100%,1000px);margin:18px auto 8px}.invitation-copy p{font-family:Megante,Georgia,serif;font-weight:400;font-style:normal;font-size:38px;line-height:1.3;max-width:none;margin:0 auto 25px;color:var(--ivory)}.invitation-copy p:last-child{margin-bottom:0}@media(max-width:700px){.invitation-copy{margin:18px auto 8px}.invitation-copy p{font-size:29px;line-height:1.3;margin-bottom:22px}}
#cityCanvas #cityVideo,#journeyVideo{width:100%;height:100%;object-fit:cover;object-position:50% 50%}#journeyLayer{background:#253735}@media(max-width:700px){#cityCanvas #cityVideo,#journeyVideo{object-fit:cover;object-position:50% 50%}}

#quizVideo{object-fit:cover;object-position:center}
/* Keep the complete quiz in one compact block inside the timber panels. */
.frame:has(#questionPanel:not([hidden])){display:grid;grid-template-rows:minmax(155px,23svh) auto minmax(110px,18svh);min-height:calc(100svh - 66px)}
.frame:has(#questionPanel:not([hidden])) .doors{background-size:cover;background-position:50% 50%}
#questionPanel.question{grid-row:2;display:block;align-self:center;width:76%;max-width:520px;min-height:0;height:auto;margin:0 auto;padding:0;}
#questionPanel h1{margin:0 0 14px;line-height:1.25}
#questionPanel #question{margin:0 0 18px;max-width:none}
#questionPanel .answers{margin:0;width:100%;max-width:none;gap:9px}
#questionPanel .feedback{height:auto;min-height:0;margin:8px 0 0;line-height:1.5}
#questionPanel .feedback:empty{display:none}
#questionPanel .hint{margin:14px 0 0;padding:5px 0;min-height:32px;line-height:1.5}
#questionPanel #hintText{margin:5px 0 0;padding:0;min-height:0;line-height:1.6}
#questionPanel #hintText:empty{display:none}
@media(max-width:700px){#questionPanel.question{width:76%;min-height:0;padding:0;margin:0 auto}#questionPanel h1{font-size:24px}#questionPanel #question{font-size:11px;line-height:1.65}#questionPanel .answer{min-height:44px}#questionPanel #hintText{font-size:10px}.frame:has(#questionPanel:not([hidden])){grid-template-rows:minmax(150px,22svh) auto minmax(100px,17svh)}}

/* Intro copy sits in the lower third of the city frame. */
#cityCopy{position:absolute;top:61svh;bottom:auto;left:5%;right:auto;width:90%;max-width:560px;margin:0;padding:0;}
#cityCopy h1{margin:0 0 26px;text-shadow:0 2px 18px #0007;}
#cityCopy .primary{max-width:100%;font-size:13px;gap:14px;}
@media(max-width:700px){#cityCopy{top:61svh;left:24px;width:calc(100% - 48px);max-width:none;}#cityCopy h1{font-size:clamp(25px,7.5vw,30px);line-height:1.25;margin-bottom:24px;}#cityCopy .primary{font-size:12px;padding:12px 18px;}}
@media(max-height:600px) and (orientation:landscape){#cityCopy{top:390px;}}

/* Sea frame: full headline and entry in the lower third. */
#coastCopy{position:absolute;top:56svh;bottom:auto;left:5%;right:auto;width:90%;max-width:780px;margin:0;padding:0;z-index:4;}
#coastCopy h1{font-family:Megante,Georgia,serif;font-weight:400;font-style:normal;font-size:clamp(28px,3.4vw,46px);line-height:1.2;margin:0 0 24px;text-shadow:0 2px 18px #0008;}
#coastCopy .primary{max-width:100%;}
@media(max-width:700px){#coastCopy{top:54svh;left:24px;width:calc(100% - 48px);max-width:none;}#coastCopy h1{font-size:clamp(23px,6.5vw,29px);line-height:1.22;margin-bottom:20px;}}
@media(max-height:600px) and (orientation:landscape){#coastCopy{top:330px;}}

/* Scene caption and paired navigation controls. */
#revealed #caption{font-size:16px;line-height:1.55;max-width:620px;margin:16px 0 18px;}
#revealed .revealActions{display:flex;align-items:center;justify-content:flex-start;gap:10px;max-width:650px;}
#revealed .revealActions button{margin:0;min-height:46px;white-space:nowrap;}
#revealed .revealActions #next{flex:0 0 auto;width:max-content!important;min-width:0!important;max-width:none;padding:10px 16px;gap:12px;justify-content:center;font-size:12px;}
#revealed .revealActions #view{flex:0 0 auto;border:1px solid #e5d7c295;border-radius:24px;text-decoration:none;color:#fff6e8;background:#19363b88;padding:10px 15px;font-size:11px;}
@media(max-width:700px){#revealed #caption{font-size:14px;line-height:1.6;max-width:100%;}#revealed .revealActions{width:100%;gap:7px;}#revealed .revealActions #next{flex:0 0 auto;width:max-content!important;font-size:clamp(9px,2.5vw,12px);padding:10px 12px;gap:8px;}#revealed .revealActions #view{font-size:clamp(8px,2.2vw,11px);padding:10px 10px;}}
@media(max-width:360px){#revealed .revealActions #next,#revealed .revealActions #view{padding-inline:8px;}#revealed .revealActions{gap:6px;}}

#revealed #unit:empty{display:none;}
#revealed.arrival-title h2{font-size:clamp(40px,5vw,68px);line-height:1.12;}
@media(max-width:700px){#revealed.arrival-title h2{font-size:clamp(38px,8vw,56px);}}

#revealed.water-title h2{display:flex;align-items:baseline;gap:.22em;white-space:nowrap;font-size:clamp(22px,4.4vw,60px);line-height:1.25;}
#revealed.water-title h2 small{display:inline;margin:0;font:inherit;letter-spacing:0;white-space:nowrap;}
@media(max-width:700px){#revealed.water-title h2{font-size:clamp(19px,5.1vw,31px);}}

#revealed.green-title h2{display:flex;align-items:baseline;gap:.22em;white-space:nowrap;font-size:clamp(22px,4.4vw,60px);line-height:1.25;}
#revealed.green-title h2 small{display:inline;margin:0;font:inherit;letter-spacing:0;white-space:nowrap;}
@media(max-width:700px){#revealed.green-title h2{font-size:clamp(18px,4.9vw,31px);}}

/* Preserve the 16:9 source geometry; crop from the centre for portrait screens. */
#cityCanvas #cityVideo,#journeyVideo,#seaVideo,#quizVideo{object-fit:cover;object-position:50% 50%}.doors{background-size:cover;background-position:50% 50%}@media(max-width:700px) and (orientation:portrait){#cityCanvas #cityVideo,#journeyVideo,#seaVideo,#quizVideo{object-fit:cover;object-position:center center}.doors,.frame:has(#questionPanel:not([hidden])) .doors{background-size:cover;background-position:center center}}

/* Reveal the final message one thought at a time. */
.frame #revealed{box-sizing:border-box}
@media(min-width:701px){
  .frame #revealed{position:absolute;left:5%;right:auto;top:auto;bottom:clamp(42px,8svh,100px);width:min(90%,900px);min-height:0;padding:0;margin:0}
  .frame #revealed h2{margin:10px 0 0}
  .frame #revealed #caption{margin:12px 0 16px}
  #cityCopy,#coastCopy{top:auto;bottom:clamp(60px,11svh,135px)}
}
@media(max-width:700px){
  .frame #revealed{position:relative;top:auto;bottom:auto;left:auto;right:auto;width:auto;min-height:calc(100svh - 66px);padding:50svh 25px 25px}
}
.invitation{animation:none}.invitation h2 .invitation-line{display:block}.invitation .invitation-line,.invitation .invitation-copy p,.invitation #replay{animation:invitationReveal .9s cubic-bezier(.22,1,.36,1) both}.invitation h2 .invitation-line:first-child{animation-delay:.15s}.invitation h2 .invitation-line:nth-child(2){animation-delay:.9s}.invitation .invitation-copy p:nth-child(1){animation-delay:1.75s}.invitation .invitation-copy p:nth-child(2){animation-delay:2.75s}.invitation .invitation-copy p:nth-child(3){animation-delay:4.1s}.invitation .invitation-copy p:nth-child(4){animation-delay:5.2s}.invitation #replay{animation-delay:6.2s}@keyframes invitationReveal{from{opacity:0;transform:translateY(12px);filter:blur(4px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@media(prefers-reduced-motion:reduce){.invitation .invitation-line,.invitation .invitation-copy p,.invitation #replay{animation:none;opacity:1;transform:none;filter:none}}

/* A personal salutation appears only for recipient-specific links. */
.guest-greeting{font:600 clamp(10px,1vw,13px)/1.5 Manrope,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#f0e4cd;text-shadow:0 2px 12px #0009;margin:0 0 18px}
#cityCopy .guest-greeting{margin-bottom:18px}
#invitation .guest-greeting{text-align:center;margin:0 auto 28px}
@media(max-width:700px){.guest-greeting{font-size:10px;letter-spacing:.12em}#cityCopy .guest-greeting{margin-bottom:12px}#invitation .guest-greeting{margin-bottom:18px}}

/* Keep the sea motion in-page on iPhone WebViews that force video into a native player. */
#seaAnimation{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Invitation copy replaces the quiz inside each gate. */
#questionPanel.question{width:min(76%,480px)}
#questionPanel h1{font-size:clamp(28px,2.7vw,38px);line-height:1.14;margin:0 0 18px;white-space:nowrap}
#questionPanel #question{font-size:clamp(13px,1.15vw,17px);line-height:1.6;margin:0 0 25px;color:#f3e9d9}
#questionPanel .doorInvitation{display:inline-flex;align-items:center;gap:18px;max-width:100%;font-size:13px;white-space:normal;text-align:left}
#revealed .revealActions{max-width:none;flex-wrap:wrap}
#revealed .revealActions #view{order:1}
#revealed .revealActions #next{order:2}
#revealed.green-title h2{font-size:clamp(18px,3.7vw,52px)}
#viewer{inset:0;width:100vw;height:100dvh;padding:0;background:#111;overflow:hidden}
#viewer #fullImage{position:absolute;top:50%;left:50%;width:100vw;height:100dvh;max-width:none;max-height:none;object-fit:cover;object-position:center;transition:transform .35s ease}
#viewer #closeViewer{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:8;width:44px;height:44px;border-radius:50%;background:#16353bcc;color:#fff;line-height:1}
#viewer .viewerTools{position:absolute;left:0;right:0;bottom:max(16px,env(safe-area-inset-bottom));z-index:8;display:flex;justify-content:center;pointer-events:none}
#viewer .viewerTools button{position:static;pointer-events:auto;background:#16353bcc;color:#fff;border:1px solid #ffffff75}
@media(max-width:700px){#questionPanel.question{width:76%}#questionPanel h1{font-size:clamp(18px,5.8vw,31px)}#questionPanel #question{font-size:clamp(12px,3.4vw,15px);line-height:1.55}#questionPanel .doorInvitation{font-size:12px;padding:11px 16px}#revealed.green-title h2{font-size:clamp(17px,4.2vw,28px)}}

/* One typography system: SVN for titles, Manrope for all supporting copy. */
@font-face{font-family:'SVN';src:url('SVN-Megante.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
body,button,input,label,p,small,.eyebrow,.edition,.guest-greeting,.keys{font-family:Manrope,Arial,sans-serif}
h1,h2,h3,.introCopy h1,.coastCopy h1,#passForm h2,#questionPanel h1,#revealed h2,#invitation h2,.final-gate h2{font-family:'SVN',Georgia,serif;font-weight:400;font-style:normal}
#revealed h2 small,#revealed h2 span,#invitation h2 span,#invitation h2 em{font-family:inherit}
.invitation-copy p{font-family:Manrope,Arial,sans-serif;font-weight:400;font-style:normal;line-height:1.45}
/* The closing message is entirely set in SVN, including its salutation and replay label. */
#invitation,#invitation .invitation-copy p,#invitation .guest-greeting,#invitation button{font-family:'SVN',Georgia,serif;font-weight:400;font-style:normal}

/* iPhone WebViews: animated frames stay inside the page rather than opening a native player. */
#cityAnimation,#journeyAnimation,#quizAnimation{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

#journeyLayer{background:#253735 url('journey-poster-v5.jpg') center/cover no-repeat}
#cityCanvas{background:#343f40 url('city-poster-v4.jpg') center/cover no-repeat}

/* Landscape phones display the complete wide scene using the actual viewport. */
#viewer #fullImage{object-fit:contain;transform:translate(-50%,-50%);transition:none}
@media(orientation:landscape){#viewer{width:100vw;height:100dvh;max-height:100dvh}#viewer #fullImage{width:100vw;height:100dvh;object-fit:contain}}

/* Updated transparent Solina Signature wordmark. */
header .brand{width:min(260px,34vw);max-width:none}
header .solina-logo{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:700px){header .brand{width:min(210px,55vw)}}

/* Position each invitation near the top of its door, just below the wordmark. */
.frame:has(#questionPanel:not([hidden])) #questionPanel.question{
  position:absolute;
  top:clamp(12px,2svh,28px);
  left:50%;
  transform:translateX(-50%);
  margin:0;
  align-self:auto;
}
@media(max-width:700px){
  .frame:has(#questionPanel:not([hidden])) #questionPanel.question{
    top:12px;
  }
}

/* The personalized salutation leads the opening frame. */
#cityCopy #guestGreeting{font:400 clamp(27px,2.7vw,39px)/1.18 'SVN',Georgia,serif;letter-spacing:-.025em;text-transform:none;color:#fff8eb;max-width:620px;margin:0 0 17px;text-shadow:0 2px 18px #0009;overflow-wrap:break-word}
#cityCopy #guestGreeting span{display:block}
#cityCopy #guestGreeting .greetingDestination{font-size:.78em;line-height:1.25;margin-top:.32em}
#cityCopy #guestGreeting strong{display:block;font:inherit;margin-top:.15em}
#cityCopy .city-subline{font:400 clamp(16px,1.5vw,21px)/1.5 Manrope,Arial,sans-serif;max-width:none;margin:0 0 22px;color:#f3ede3;text-shadow:0 2px 12px #000a}
#cityCopy .city-subline{white-space:nowrap}
@media(max-width:700px){
  #cityCopy #guestGreeting{font-size:clamp(23px,5.8vw,29px);line-height:1.18;margin-bottom:14px}
  #cityCopy .city-subline{font-size:14px;line-height:1.5;margin-bottom:18px}
}

/* Each chapter occupies exactly one viewport, including its progress bar. */
:root{--chapter-footer:58px}
html,body{width:100%;height:100%;overflow:hidden}
body{height:100svh;height:100dvh}
.intro-mode{overflow:hidden!important}
.intro-mode header{position:absolute;top:0;left:0;right:0}
#intro,#intro:has(#passForm:not([hidden])){height:100svh;height:100dvh;min-height:0!important;overflow:hidden}
#cityCopy,#coastCopy{top:auto;bottom:clamp(28px,7dvh,88px)}
#passForm{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;max-height:calc(100dvh - 100px)}
main#game{height:calc(100dvh - var(--chapter-footer));overflow:hidden}
.frame,.frame.opening,.frame:has(#questionPanel:not([hidden])){height:100%;min-height:0}
#gameFooter{height:var(--chapter-footer);min-height:0;padding:8px 18px;display:flex;flex-wrap:nowrap;align-items:center;gap:12px}
#gameFooter #progress{min-width:0;white-space:nowrap}
.frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:clamp(105px,14dvh,160px)}
.frame #revealed{position:absolute;top:auto;bottom:clamp(22px,5dvh,55px);left:5%;right:auto;width:min(90%,900px);min-height:0;padding:0}
.frame .invitation{position:absolute;inset:0;min-height:0;height:100%;overflow:hidden;display:flex;justify-content:center;padding:clamp(70px,12dvh,115px) 24px 22px}
.frame .invitation h2,.frame .invitation-copy p{font-size:clamp(17px,min(3vw,2.8dvh),30px);line-height:1.22}
.frame .invitation h2{margin:0}
.frame .invitation-copy{margin:clamp(8px,1.5dvh,16px) auto}
.frame .invitation-copy p{margin-bottom:clamp(7px,1.2dvh,13px)}
@media(max-width:700px){
  :root{--chapter-footer:54px}
  #intro{padding-top:0}
  #cityCopy,#coastCopy{top:auto;bottom:clamp(24px,6dvh,60px);left:20px;width:calc(100% - 40px);padding:0}
  #cityCopy #guestGreeting{font-size:clamp(20px,min(5.8vw,3.6dvh),29px)}
  #cityCopy .city-subline{font-size:clamp(12px,1.9dvh,14px);margin-bottom:12px}
  #coastCopy h1{font-size:clamp(20px,min(6vw,3.4dvh),29px)}
  #passForm{width:calc(100% - 36px);padding:22px}
  #gameFooter{padding:7px 12px;gap:6px}
  #gameFooter #progress{gap:3px;font-size:clamp(5px,1.5vw,7px);letter-spacing:0}
  #gameFooter #progress i{display:none}
  #gameFooter #restart{flex:none;font-size:8px;padding:6px 0}
  .frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:clamp(98px,13dvh,125px)}
  .frame #revealed{bottom:clamp(16px,4dvh,36px);left:20px;width:calc(100% - 40px)}
  .frame #revealed #caption{margin:8px 0 12px}
  .frame .invitation{padding:clamp(58px,10dvh,85px) 18px 14px}
  .frame .invitation h2,.frame .invitation-copy p{font-size:clamp(16px,min(4.5vw,2.7dvh),23px);line-height:1.18}
  .frame .invitation-copy p{margin-bottom:clamp(5px,1dvh,10px)}
}
@media(max-height:600px) and (orientation:landscape){
  #intro{min-height:0}
  #cityCopy,#coastCopy{bottom:16px;max-width:56%}
  #cityCopy #guestGreeting{font-size:clamp(18px,3dvh,25px)}
  #cityCopy .city-subline{font-size:12px;margin-bottom:8px}
  #passForm{max-height:calc(100dvh - 48px);padding:14px}
  .frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:56px}
  .frame .invitation{padding:48px 16px 8px}
  .frame .invitation h2,.frame .invitation-copy p{font-size:clamp(14px,3.5dvh,19px)}
}

/* Fixed scene shells prevent mobile browser chrome from creating a second page. */
@media(max-width:700px){
  html,body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none}
  #intro{position:fixed!important;inset:0;width:100%;height:100%!important;min-height:0!important;overflow:hidden!important}
  main#game{position:fixed;inset:0 0 var(--chapter-footer);width:100%;height:auto!important;overflow:hidden!important}
  main#game .frame{height:100%!important;min-height:0!important;overflow:hidden}
  #gameFooter{position:fixed;left:0;right:0;bottom:0;height:var(--chapter-footer);min-height:0}
  #viewer{position:fixed;inset:0;overflow:hidden}
}

/* Keep the invitation above the door handles and turn only the picture. */
.frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:100px}
#questionPanel h1{margin-bottom:10px}
#questionPanel #question{margin-bottom:14px}
@media(max-width:700px){
  #cityCopy .city-subline{font-size:clamp(11px,4.35vw,15px);line-height:1.4}
  .frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:76px}
  #questionPanel h1{margin-bottom:9px}
  #questionPanel #question{font-size:clamp(11px,3vw,13px);line-height:1.38;margin-bottom:12px}
  #viewer:not([hidden]) #fullImage{width:100dvh;height:100vw;max-width:none;max-height:none;object-fit:contain;transform:translate(-50%,-50%) rotate(90deg)}
}
@media(max-width:700px) and (orientation:landscape){
  #viewer:not([hidden]) #fullImage{width:100vw;height:100dvh;transform:translate(-50%,-50%)}
}
@media(max-height:600px) and (orientation:landscape){
  header .brand{width:min(170px,28vw)}
  .frame:has(#questionPanel:not([hidden])) #questionPanel.question{top:38px}
  #questionPanel h1{font-size:23px;margin-bottom:6px}
  #questionPanel #question{font-size:11px;line-height:1.25;margin-bottom:8px}
  #questionPanel .doorInvitation{min-height:38px;padding:7px 14px}
}

/* Direct positioning works even in mobile browsers without :has support. */
#frame #questionPanel.question{
  position:absolute!important;
  top:96px!important;
  bottom:auto!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  align-self:start!important;
  grid-row:auto!important;
  width:min(76%,480px);
  height:auto;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:700px){
  #frame #questionPanel.question{
    position:fixed!important;
    top:clamp(88px,11dvh,112px)!important;
    left:12%!important;
    transform:none!important;
    width:76%;
    z-index:9;
  }
}
@media(max-height:600px) and (orientation:landscape){
  #frame #questionPanel.question{top:38px!important}
}

/* Keep both scene actions centered inside their own content-width pills. */
#revealed .revealActions #next,#revealed .revealActions #view{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;vertical-align:middle;width:max-content!important;
  min-width:0!important;max-width:100%;box-sizing:border-box;gap:0!important;
  padding-inline:16px!important;line-height:1.35;
}
@media(max-width:700px){#revealed .revealActions #next,#revealed .revealActions #view{padding-inline:12px!important}}
/* Personal salutation remains one line while longer names scale to the available viewport. */
#cityCopy #guestAddress{display:block;width:max-content;max-width:none;white-space:nowrap;overflow-wrap:normal}

/* The first seafront scene has a true portrait composition on mobile. */
@media(max-width:700px) and (orientation:portrait){
  #frame.seafront-scene .scene{background:url("scene-seafront-mobile-v77.jpg") center/cover no-repeat}
  #frame.seafront-scene .scene img{opacity:0}
}
/* The film covers the handoff; the closed-door backdrop must never flash through it. */
#frame.scene-revealing .doors{opacity:0!important;transition:none!important}
/* Both supplied door films end on black. Cover any browser poster/frame reset
   while the film dissolves to the revealed scene. */
#quizMotion.ending:after{content:'';position:absolute;inset:0;z-index:2;background:#000;pointer-events:none}
/* A new chapter starts behind an opaque door only after its scene is ready. */
#frame.chapter-switching .doors{opacity:1!important;transition:none!important}
#frame.chapter-switching .scene{visibility:hidden}
/* The city film cuts straight to the already playing sea, without a dissolve. */
#journeyLayer{transition:none!important;will-change:auto}
/* Keep the sea fully visible below the journey film and hide the city before
   the cut; older city/sea fade rules must not expose an intermediate frame. */
#intro #cityCanvas,#intro #seaIntro{transition:none!important}
#intro.playing-journey #seaIntro,#intro.by-sea #seaIntro{opacity:1!important;transform:none!important}
#intro.playing-journey #cityCanvas,#intro.by-sea #cityCanvas{opacity:0!important;visibility:hidden!important}
@media(max-width:700px){
  /* Avoid full-screen blur and filtered video layers on mobile GPUs. */
  #cityCanvas:before{inset:0;filter:none;background:#25383a}
  #cityCanvas .city-photo,#cityCanvas #cityVideo{filter:none}
  #journeyLayer{will-change:auto}
  #quizMotion{transition-duration:.5s}
}
