/* Card presentation: quiet theatrical light, engraved navy reverse, restrained verdict colours. */
.reveal-stage{position:relative;isolation:isolate;perspective:1200px}
.reveal-aura{position:absolute;z-index:-1;inset:4% -12% 8%;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 40%,#e6e3d92e,transparent 58%);transform:scale(.78)}
.reveal-stage:has(.gold) .reveal-aura{background:radial-gradient(ellipse at 50% 40%,#ddb87140,transparent 61%)}
.reveal-card.reveal-cinematic{position:relative;isolation:isolate;animation:none;transform-origin:50% 68%;backface-visibility:hidden}
.reveal-card.reveal-cinematic:after{content:'';position:absolute;z-index:3;inset:1.5%;border-radius:12px;pointer-events:none;opacity:0;background:linear-gradient(108deg,transparent 27%,#fff1ce05 37%,#fff5d777 47%,#fffdf3aa 49%,#ffefd53d 52%,transparent 64%);background-size:260% 100%;background-position:130% 0;mix-blend-mode:screen}
.reveal-stage.is-revealing .reveal-cinematic{animation:titanic-reveal 1.6s cubic-bezier(.14,.72,.2,1) both}
.reveal-stage.is-revealing .reveal-cinematic:after{animation:titanic-silver-sweep 1.6s cubic-bezier(.16,.65,.25,1) both}
.reveal-stage.is-revealing .reveal-aura{animation:titanic-halo 1.6s ease-out both}
.reveal-stage:not(.is-revealing) .reveal-cinematic{opacity:0;pointer-events:none}.reveal-stage:not(.is-revealing) h2{opacity:0}
.reveal-stage.is-revealing h2{animation:titanic-name .85s .4s both}
@keyframes titanic-reveal{0%{opacity:.05;transform:translateY(18px) rotateY(-24deg) rotateX(5deg) scale(.88)}24%{opacity:1}62%{transform:translateY(-3px) rotateY(3deg) rotateX(-1deg) scale(1.018)}100%{opacity:1;transform:none}}
@keyframes titanic-silver-sweep{0%,18%{opacity:0;background-position:130% 0}28%{opacity:.8}75%{opacity:.42}100%{opacity:0;background-position:-35% 0}}
@keyframes titanic-halo{0%{opacity:0;transform:translateY(13px) scale(.78)}48%{opacity:1}100%{opacity:.23;transform:translateY(-8px) scale(1.12)}}
@keyframes titanic-name{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.starter-heading{font:600 .9rem/1.4 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#d8cdb7}
.entry-language{display:flex;align-items:center;gap:5px}.sound-switch{min-width:44px;min-height:44px;padding:5px;background:transparent;border-color:transparent;color:var(--muted);font-size:24px}.sound-switch[aria-pressed=true]{color:#dfd2b1}.sound-switch[aria-pressed=false]{opacity:.65}.quiz-turn-shell:not(.turned) .quiz-face-back{pointer-events:none}.quiz-face-front>.card{width:min(100%,340px);height:auto;max-height:none}.quiz-face-front>.card.landscape{width:100%;height:auto}
@media(max-width:380px){header{padding-inline:12px;gap:3px}header .wordmark{font-size:20px;letter-spacing:.05em}header .language-nav a{padding-inline:5px}.sound-switch{padding-inline:2px}}

/* The back determines the flip panel's natural height. Never constrain question text to the photograph's aspect ratio. */
.quiz-turn-shell{position:relative;perspective:1400px;width:100%;max-width:520px;margin:14px auto 4px}
.quiz-turn-shell.landscape-quiz{max-width:680px}
.quiz-turn-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr);transform-style:preserve-3d;transition:transform 1.1s cubic-bezier(.2,.65,.2,1);transform:rotateY(0deg)}
.quiz-face-front,.quiz-face-back{grid-area:1/1;min-width:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.quiz-face-front{position:absolute;inset:0;display:grid;place-items:center;transform:translateZ(1px);pointer-events:none;overflow:hidden}
.quiz-face-front .card{width:auto;height:min(100%,540px);max-width:100%;max-height:none;margin:auto;pointer-events:none;box-shadow:none}
.quiz-face-front .card.landscape{width:100%;height:auto}
.quiz-face-back{position:relative;transform:rotateY(180deg);padding:26px 24px 22px;border:3px double #bac7ce;border-radius:16px;background:radial-gradient(ellipse at 50% 0%,#24425855,transparent 67%),repeating-linear-gradient(45deg,#adc2d403 0,#adc2d403 1px,transparent 1px,transparent 8px),#081b2b;box-shadow:0 14px 42px #0004;overflow-wrap:anywhere;box-sizing:border-box;isolation:isolate}
.quiz-face-back:before{content:'';position:absolute;inset:8px;border:1px solid #b4c4cc35;border-radius:9px;pointer-events:none;z-index:-1}
.quiz-turn-shell.turned .quiz-turn-inner{transform:rotateY(180deg)}
.quiz-back-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #b9c6ce55;padding-bottom:15px;color:#dce3e6;font:clamp(21px,5vw,28px)/1 Georgia,serif;letter-spacing:.12em}
.quiz-back-number{font:14px/1.2 system-ui,sans-serif;letter-spacing:.12em;color:#b2c0ca;white-space:nowrap}
.quiz-face-back .question{font:clamp(23px,5vw,30px)/1.28 Georgia,serif;margin:24px 0 22px;color:#f0eee8;text-wrap:pretty}
.quiz-face-back .choices{margin:0;gap:11px}
.quiz-face-back .choice{min-height:54px;border:1px solid #afc3cf55;border-radius:5px;background:#071623cc;color:#e5e8e9;padding:13px 14px;gap:12px;font-size:1rem;line-height:1.45;align-items:center;overflow-wrap:anywhere;transition:background .15s,border-color .15s}
.quiz-face-back .choice:hover:not(:disabled){background:#183349;border-color:#d2dce2}
.quiz-face-back .choice>span:first-child{flex:0 0 29px;display:grid;place-items:center;width:29px;height:29px;padding:0;border:1px solid #9eb1be77;border-radius:50%;color:#c7d3dc;font:16px Georgia,serif}
.gold-quiz .quiz-face-back{border-color:#d6b476;background-color:#0d202b}
.gold-quiz .quiz-face-back:before{border-color:#cfaf6d44}
.gold-quiz .quiz-back-header{color:#e6c68e;border-color:#c8a86c55}
.gold-quiz .quiz-face-back .choice>span:first-child{border-color:#c1a46677;color:#e2c793}
dialog:has(.quiz-turn-shell){max-width:740px;padding-top:30px;overflow-x:hidden}

.answer-result.result-correct,.answer-result.result-incorrect{padding:10px 0 0}
.result-banner{display:flex;align-items:center;gap:15px;padding:20px 18px;border:1px solid;border-radius:8px;margin:8px 0 24px;background:#102837}
.result-symbol{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border:1px solid currentColor;border-radius:50%;font:28px/1 Georgia,serif}
.answer-result .result-title{font:clamp(25px,6vw,36px)/1.16 Georgia,serif;margin:0;text-wrap:balance}
.result-correct .result-banner{color:#b5dbc5;border-color:#70a88c88;background:linear-gradient(120deg,#183b32,#0c2430)}
.result-incorrect .result-banner{color:#edc0b8;border-color:#ad776d88;background:linear-gradient(120deg,#432a2b,#17232e)}
.result-correct .correct-answer,.result-incorrect .correct-answer{font-size:clamp(22px,5vw,27px);line-height:1.3}
.source-note{display:block;text-align:right;margin:25px 0 0;font-size:.75rem;line-height:1.3;color:#8d9ca8}
.source-note a{font:inherit;color:inherit;text-decoration:underline;text-decoration-color:#71808b66;text-underline-offset:3px;padding:3px 0;overflow-wrap:anywhere}
.source-note a:hover{color:#d3dde3}

.journey-screen{text-align:center;max-width:550px;margin:0 auto;padding:12px 6px 8px}
.journey-screen h2{font:clamp(29px,7vw,40px)/1.15 Georgia,serif;color:#eee9dc;margin:19px 0 20px;text-wrap:balance}
.journey-screen p{font-size:1rem;line-height:1.7;color:#bfccd5;text-align:left;margin:15px 0}
.journey-mark{display:grid;place-items:center;width:66px;height:66px;border:3px double #bbc9d1;border-radius:50%;margin:0 auto;color:#d0d9df;background:radial-gradient(circle,#244359,#0c2030);font:28px/1 Georgia,serif;box-shadow:0 0 0 8px #8fa6b40c}
.journey-screen .primary{margin-top:18px;min-height:52px}
.journey-screen .setting-actions{margin-top:20px}
@media(max-width:500px){.quiz-face-back{padding:23px 17px 19px;border-radius:13px}.quiz-face-back .question{font-size:24px;margin:21px 0}.quiz-face-back .choice{padding:12px 10px;gap:10px;font-size:1rem;line-height:1.4}.quiz-back-header{padding-bottom:13px;font-size:23px}.quiz-back-number{font-size:13px}dialog:has(.quiz-turn-shell){padding-inline:12px}.result-banner{padding:17px 13px;gap:12px}.result-symbol{flex-basis:36px;width:36px;height:36px;font-size:23px}.journey-screen{padding-inline:0}.journey-screen p{line-height:1.65}}
@media(max-height:650px){.quiz-turn-shell{margin-top:8px}.quiz-face-back .question{margin-top:18px;margin-bottom:18px}.journey-mark{width:54px;height:54px}.journey-screen h2{margin-top:15px}}
@media(prefers-reduced-motion:reduce){.reveal-stage.is-revealing .reveal-cinematic,.reveal-stage.is-revealing .reveal-cinematic:after,.reveal-stage.is-revealing .reveal-aura,.reveal-stage.is-revealing h2{animation:none!important}.reveal-card.reveal-cinematic{transform:none!important;opacity:1!important}.reveal-card.reveal-cinematic:after{display:none}.reveal-aura{opacity:.16;transform:none}.quiz-turn-inner{transition:none!important}.quiz-face-back .choice{transition:none}}

/* Keep the pack title in normal flow, clear of the floating deck. */
.pack-stage,.reveal-stage{padding-top:4px}
.starter-heading{display:block;position:relative;z-index:5;font:600 clamp(1.25rem,4.8vw,1.65rem)/1.3 system-ui,sans-serif;letter-spacing:.14em;margin:0 0 32px;padding:0 8px;color:#e5dac5}
.reveal-stage>.starter-heading{margin-bottom:20px}
.pack-deck{position:relative;isolation:isolate;width:min(250px,65vw);margin:14px auto 28px;perspective:1200px}
.pack-deck>.wrapper,.pack-deck>.card-back{position:relative;z-index:5;width:100%;max-width:100%;margin:0;animation:none;box-sizing:border-box}
.deck-underlay{position:absolute;inset:0;z-index:calc(5 - var(--layer));border:3px double #97afbe;border-radius:14px;background:repeating-linear-gradient(45deg,#0b2031,#0b2031 6px,#193449 6px,#193449 7px);transform:translate(calc(var(--layer)*5px),calc(var(--layer)*3px)) rotate(calc(var(--layer)*3deg));box-shadow:0 8px 14px #0005;pointer-events:none}
.gold-underlay{border-color:#d6b476}
.pack-deck>.card-back{box-shadow:0 12px 32px #0005}
.reveal-card.reveal-cinematic .card{background:#02060a}
.reveal-card.reveal-cinematic img,.reveal-card.reveal-cinematic .english-plate,.reveal-card.reveal-cinematic .art-number{filter:brightness(0);opacity:0}
.reveal-stage.is-revealing .reveal-cinematic{animation:titanic-turn-from-dark 1.15s cubic-bezier(.2,.65,.25,1) both}
.reveal-stage.is-revealing .reveal-cinematic img,.reveal-stage.is-revealing .reveal-cinematic .english-plate,.reveal-stage.is-revealing .reveal-cinematic .art-number{animation:titanic-motif-light var(--motif-duration,4s) var(--motif-delay,.8s) ease-in-out both}
.reveal-stage.is-revealing .reveal-cinematic:after{animation-delay:2.1s}
.reveal-stage.is-revealing h2{animation-delay:2.5s}
@keyframes titanic-turn-from-dark{from{opacity:1;transform:rotateY(-90deg) scale(.94)}to{opacity:1;transform:none}}
@keyframes titanic-motif-light{0%{opacity:1;filter:brightness(0)}25%{opacity:1;filter:brightness(.08)}65%{opacity:1;filter:brightness(.5)}100%{opacity:1;filter:brightness(1)}}
@media(max-height:700px){.starter-heading{margin-bottom:24px}.reveal-stage>.starter-heading{margin-bottom:12px}dialog:has(.reveal-stage) .reveal-card .card{max-height:52dvh}.pack-deck{width:min(210px,55vw,36dvh)}}
@media(prefers-reduced-motion:reduce){.reveal-stage.is-revealing .reveal-cinematic img,.reveal-stage.is-revealing .reveal-cinematic .english-plate,.reveal-stage.is-revealing .reveal-cinematic .art-number{animation:none;filter:none;opacity:1}}
/* The light halo must not create horizontal scrolling in the dialog. */
dialog:has(.pack-stage),dialog:has(.reveal-stage){overflow-x:hidden}
.pack-deck>.card-back strong{font:28px Georgia,serif;letter-spacing:.08em}
/* Stable modal shell: swap only its contents, without flashing the backdrop. */
.modal-content{animation:modal-content-in .8s cubic-bezier(.2,.65,.25,1) both}
@keyframes modal-content-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.reveal-stage.is-placing{animation:card-place-away .5s ease-in-out both;pointer-events:none}
@keyframes card-place-away{to{opacity:0;transform:translateY(12px) scale(.97)}}
/* Preserve each illustration's full native ratio instead of cropping it into 2:3. */
dialog:has(.reveal-stage){padding:12px 16px 20px;max-height:calc(100dvh - 24px)}
.reveal-stage{padding-top:0}
.reveal-stage>.starter-heading{margin:0 0 28px}
.pack-stage>.starter-heading{margin-top:0;margin-bottom:40px}
.reveal-stage .reveal-card.reveal-cinematic{width:min(100%,290px);max-width:100%;margin:0 auto}
.reveal-stage .reveal-card.reveal-cinematic:has(.landscape){width:min(100%,640px)}
dialog:has(.reveal-stage) .reveal-card.reveal-cinematic .card{display:block;width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:auto;margin:0;padding:0}
.reveal-card.reveal-cinematic .card img{display:block;width:100%;height:auto;max-height:calc(100dvh - 220px);object-fit:contain;aspect-ratio:auto}
.reveal-card.reveal-cinematic .card{border:0;box-shadow:none;border-radius:10px;overflow:hidden}
.reveal-stage .collect-button{margin-top:18px}
@media(max-height:700px){.reveal-stage>.starter-heading{margin-bottom:20px}.pack-stage>.starter-heading{margin-bottom:32px}.reveal-card.reveal-cinematic .card img{max-height:calc(100dvh - 185px)}}
@media(prefers-reduced-motion:reduce){.modal-content,.reveal-stage.is-placing{animation:none}}
dialog:has(.reveal-stage) .reveal-card.reveal-cinematic .card{width:fit-content}
.reveal-card.reveal-cinematic .card img{width:auto;max-width:100%;height:auto;margin:auto}
/* Explicit responsive width avoids intrinsic-size collapse from container queries. */
.reveal-stage .reveal-card.reveal-cinematic{width:min(100%,290px,calc((100dvh - 220px)*.6667))}
.reveal-stage .reveal-card.reveal-cinematic:has(.landscape){width:min(100%,640px,calc((100dvh - 220px)*1.5))}
dialog:has(.reveal-stage) .reveal-card.reveal-cinematic .card{width:100%;height:auto}
.reveal-card.reveal-cinematic .card img{width:100%;height:auto;max-height:none;object-fit:contain}

.test-album-notice{margin:0 0 24px;padding:18px;border:1px solid #d6b476;border-radius:8px;background:#132a38}.test-album-notice p{color:var(--muted);line-height:1.5;margin:10px 0 16px}

.entry-content>.departure-button{display:block;margin:14px auto 0}

/* The welcome screen splits like two doors, revealing the album underneath. */
.boarding-opening{position:fixed;inset:0;z-index:1000;overflow:hidden;pointer-events:auto;background:transparent}
.boarding-wing{position:absolute;inset:0;will-change:transform;transition:transform 2.4s cubic-bezier(.45,0,.15,1);backface-visibility:hidden}
.boarding-wing>.entry{width:100%;max-width:none;margin:0;min-height:100dvh;height:100%;overflow:hidden}
.boarding-wing-left{clip-path:inset(0 50% 0 0)}
.boarding-wing-right{clip-path:inset(0 0 0 50%)}
.boarding-opening.is-opening .boarding-wing-left{transform:translateX(-52%)}
.boarding-opening.is-opening .boarding-wing-right{transform:translateX(52%)}
@media(prefers-reduced-motion:reduce){.boarding-wing{transition:none}}

.show-photos-notice,.community-album{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.show-photos-notice h2,.community-album>h2{font-size:clamp(25px,4vw,32px);margin:0 0 12px}
.show-photos-notice p,.community-album>p{color:var(--muted);line-height:1.6}
.community-section{border:1px solid var(--line);border-radius:6px;margin:12px 0;padding:0 16px}
.community-section summary{min-height:56px;cursor:pointer;padding:15px 0;font-weight:600}
.community-section summary span{color:var(--muted);font-weight:400}
.community-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,230px));gap:16px;padding:8px 0 20px}
.community-card{padding:0 0 16px;overflow:hidden;border:3px double var(--silver);border-radius:12px;display:flex;flex-direction:column;align-items:center;background:var(--navy)}
.community-card img{width:100%;height:auto}.community-position{display:block;font-size:.9rem;color:var(--muted);margin:12px 8px 4px}.community-card strong{margin:0 8px}
.community-detail{text-align:center}.community-detail img{max-width:100%;max-height:60dvh;object-fit:contain}.community-detail strong{font:26px Georgia,serif}

/* Reserve the decoded artwork's geometry before exposing the collect control. */
.reveal-stage .collect-button{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s ease}
.reveal-stage.is-revealing .collect-button{visibility:visible;opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.reveal-stage .collect-button{transition:none}}

.starter-restart{display:block;width:fit-content;margin:16px auto 0;min-height:44px;padding:10px 12px;color:var(--muted)}

.card.locked .card-number{font-variant-numeric:tabular-nums;letter-spacing:.12em}.app-update-panel{padding:12px 0 0;margin:22px 0 0;border-top:1px solid var(--line);font-size:.875rem;line-height:1.5;color:var(--muted)}.app-update-panel[hidden]{display:none!important}.app-update-panel p{margin:6px 0}.app-update-panel .text-button{display:inline-block;font-size:inherit}.app-update-panel .small{font-size:inherit}

.card.locked,.card.locked:hover{cursor:default;transform:none;transition:none}

.header-actions{display:flex;align-items:center;gap:8px}.header-shortcut{display:grid;place-items:center;min-width:44px;min-height:44px;padding:9px;border-color:transparent;background:transparent;color:var(--silver)}.header-shortcut:hover{background:#193548}.header-shortcut svg{display:block}
.sound-control{display:flex;align-items:center;gap:8px;white-space:nowrap}.sound-label{font-size:.875rem;color:var(--muted)}.sound-toggle{display:flex;align-items:center;gap:7px;padding:5px 7px;min-height:44px;min-width:52px;border-color:transparent;background:transparent}.sound-track{width:38px;height:22px;position:relative;display:block;border:1px solid #899ba7;border-radius:12px;background:#263944}.sound-knob{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#bdc6cb;transition:transform .18s ease}.sound-toggle[aria-checked=true] .sound-track{background:#567465;border-color:#b6d0bd}.sound-toggle[aria-checked=true] .sound-knob{transform:translateX(16px);background:#edf2e8}
header{flex-wrap:wrap}.entry-language{max-width:calc(100% - 32px);flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){header .wordmark{font-size:26px}header>.language-nav{margin-left:auto}.header-actions{flex-basis:100%;justify-content:flex-end;gap:8px}.header-actions .sound-control{margin-right:auto}}
@media(max-width:350px){.header-actions{gap:2px}.sound-control{gap:3px}.sound-label{font-size:.8rem}.header-shortcut{min-width:40px;padding:7px}}
@media(prefers-reduced-motion:reduce){.sound-knob{transition:none}}

.setting-tests{margin-bottom:22px}.setting-tests .test-option{color:#ffb4b4;border-color:#ce6262;background:#3a1922}.setting-tests .test-option:hover{background:#52222c}
.cast-portrait{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;aspect-ratio:2/3;overflow:hidden;border:4px double #c4ccd0;border-radius:inherit;background:#061723;color:#eee8dc}.cast-header{font:clamp(14px,2vw,28px) Georgia,serif;letter-spacing:.14em;padding:7px 3px;border-bottom:1px solid #8e9ba9}.card .cast-portrait img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.cast-plate{display:grid;gap:3px;align-content:center;padding:7px 4px;border-top:1px solid #8e9ba9;font:clamp(11px,1.3vw,18px)/1.2 Georgia,serif}.cast-plate strong{font-size:.9em}.detail-card .cast-header{font-size:26px}.detail-card .cast-plate{font-size:18px}.cast-variant .tile-caption{color:var(--muted)}
.album-section-heading{grid-column:1/-1;margin:28px 0 8px;font-family:Georgia,serif;font-size:clamp(24px,4vw,38px)}
.card img.finished-card{width:100%;height:100%;object-fit:contain;object-position:center}
/* Album rows share one card height, including mixed portrait/landscape rows. */
.album-page{position:relative;isolation:isolate;min-height:100svh}
.album-page:before{content:'';position:fixed;inset:0;width:min(100%,96.667svh);margin-inline:auto;z-index:-1;background:linear-gradient(#04101b66,#04101b99),var(--album-scene) center bottom/auto 145% no-repeat,#04101b;mask-image:linear-gradient(to right,transparent,#000 25%,#000 75%,transparent);pointer-events:none}
.album-grid{display:flex;flex-direction:column;align-items:stretch;gap:24px}.album-row{display:grid;width:100%;gap:24px;align-items:stretch;min-width:0}.album-row .tile{position:relative;min-width:0}.album-row .card{margin:0}.album-row-space{pointer-events:none}
.question-badge.question-retry{background:#30404b;color:#a8b4bd;border-color:#687780;box-shadow:none}.album-row .tile-caption{display:none}
.answer-explanation{padding:18px 20px;margin:24px 0;border:1px solid var(--line);border-radius:6px;background:#06172588}.answer-explanation .correct-answer{margin:0 0 12px}.answer-context{margin:0;color:#b9c7d0;line-height:1.6}.result-meta{display:flex;align-items:baseline;justify-content:flex-end;gap:18px;margin-top:18px}.gold-progress-note{font-size:.8rem;line-height:1.5;color:var(--muted);margin:0;flex:1}.result-meta .source-note{flex-shrink:0;max-width:100%;margin:0}.art-source{font-size:.75rem;line-height:1.5;color:var(--muted);text-align:right;margin:22px 0 0}
.reveal-title{position:relative;z-index:5;font:clamp(22px,5vw,30px)/1.2 Georgia,serif;margin:0 0 22px;text-wrap:balance}.reveal-stage>.starter-heading{margin-bottom:12px}.reveal-stage{padding:8px 6px 0}.reveal-stage.is-revealing .reveal-cinematic{animation-name:titanic-turn-stable}@keyframes titanic-turn-stable{from{opacity:1;transform:rotateY(-90deg)}to{opacity:1;transform:none}}
.reveal-stage .reveal-card.reveal-cinematic{width:min(100%,290px,calc((100dvh - 245px)*.6667))}.reveal-stage .reveal-card.reveal-cinematic:has(.landscape){width:min(100%,640px,calc((100dvh - 245px)*1.5))}
.portrait-upload-link.primary{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 22px;border:1px solid var(--silver);border-radius:4px;text-decoration:none;text-shadow:none}
.portrait-switch{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:4;padding:8px 12px;min-height:44px;background:#071825ee;color:#e5edf2;border:1px solid #bdcad3;border-radius:5px;font-size:.8rem;white-space:nowrap;opacity:0;transition:opacity .18s}.tile:hover .portrait-switch,.tile:focus-within .portrait-switch,.portrait-switch:focus-visible{opacity:1}.modal-content>.portrait-switch{position:static;display:block;transform:none;opacity:1;margin:14px auto}.portrait-default{display:grid;gap:8px;margin:0 0 22px;color:var(--muted);font-size:.9rem}.portrait-default select{font:inherit;color:var(--paper);background:#14293a;border:1px solid var(--line);border-radius:4px;padding:12px;min-height:48px}
dialog:has(.completion-screen){width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;margin:0;overflow:auto}.completion-screen{min-height:100dvh;display:grid;place-items:center;padding:48px 24px;background:linear-gradient(#04101b33,#04101b55),var(--completion-scene) center/cover no-repeat}.completion-content{width:min(100%,580px);text-align:center;padding:clamp(24px,5vw,52px);border:1px solid #b6a17277;border-radius:8px;background:#06131ee8;box-shadow:0 18px 90px #0008}.completion-content h2{font-size:clamp(36px,7vw,64px);margin:20px 0;color:#e9d9b4}.completion-mark{font-size:64px;line-height:1;color:var(--gold);margin:24px 0}.completion-count{font:32px Georgia,serif;letter-spacing:.08em;color:#d4bd87}.completion-content .primary{margin-top:24px;min-height:52px}
@media(max-width:700px){.album-row{gap:12px}.album-grid{gap:18px}.result-meta{gap:12px}.portrait-switch{font-size:.75rem;padding:7px 9px}.completion-content{padding:28px 20px}}
@media(hover:none){.portrait-switch{opacity:1}}
@media(prefers-reduced-motion:reduce){.reveal-stage.is-revealing .reveal-cinematic{animation:none}.portrait-switch{transition:none}}

/* Focus the dialog introduction without drawing an action ring on open. */
.modal-content:focus{outline:none}

.reward-available{font-size:.875rem;line-height:1.5;color:var(--muted);font-weight:400}

/* Compact album heading and question actions, with touch-friendly controls. */
.album-page>main{padding-top:22px}.album-heading h1{font-size:38px;margin:4px 0 10px}.album-heading .counter{padding-bottom:10px}.album-heading .counter strong{font-size:30px}.album-heading .eyebrow{font-size:11px;letter-spacing:.14em}.play-bar{justify-content:flex-end;gap:10px;margin:10px 0 18px;padding:0;border-bottom:0;min-height:44px}.play-bar button,.mobile-play button{width:auto;min-height:44px;padding:8px 14px;font-size:.875rem;line-height:1.35}.play-bar p{margin:0;font-size:.875rem}
@media(max-width:700px){.album-page>main{padding-top:16px}.album-heading h1{font-size:32px}.play-bar{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}.mobile-play{display:flex;justify-content:flex-end;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.mobile-play button{max-width:100%}}

/* Keep the language divider on the ship's centre line, independent of side controls. */
.album-page>header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.album-page>header>.wordmark{justify-self:start}
.album-page>header>.language-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-self:center;margin:0;transform:translateX(-6px)}
.album-page>header>.header-actions{justify-self:end}
@media(max-width:700px){.album-page>header{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.album-page>header>.wordmark{grid-column:1;grid-row:1}.album-page>header>.header-actions{grid-column:2;grid-row:1;gap:3px}.album-page>header>.header-actions .sound-control{margin:0;gap:3px}.album-page>header>.language-nav{grid-column:1/-1;grid-row:2}}
@media(max-width:350px){.album-page>header>.wordmark{font-size:20px}.album-page>header>.header-actions{gap:0}.album-page>header>.header-actions .icon-button{min-width:36px;padding-inline:6px}.album-page>header>.header-actions .header-shortcut{min-width:36px;padding-inline:6px}.album-page>header>.header-actions .sound-toggle{min-width:44px;padding-inline:3px}}

.photo-approval-heading{margin-top:32px}.album-greeting{margin:0 0 16px;color:var(--muted);font-size:.9375rem}.joke-reward-link{margin-top:24px}.entry input[name=firstName]{font-size:20px;text-align:center;letter-spacing:normal}.promenade-reward .completion-content{max-width:540px}.promenade-reward .completion-content p{line-height:1.6}

.entry input[name=firstName]{width:min(280px,80vw)}

/* Boarding controls share one centre line; the name has no code-field indentation. */
#boarding{display:grid;justify-items:center;gap:12px;margin-top:30px}
#boarding input{margin:0 auto 14px}
.entry input[name=firstName]{text-indent:0;letter-spacing:normal;text-align:center;margin-inline:auto}
#boarding>.primary{min-width:min(280px,100%);min-height:60px;margin-top:24px;padding:16px 30px;font-size:1.125rem}
.starter-photo{display:block;margin:24px auto 0}
.pack-deck .flipping{animation-duration:1.25s}
@media(prefers-reduced-motion:reduce){.pack-deck .flipping{animation:none}}

/* Reveal the title with the photograph, including the initial dark hold. */
.reveal-stage{--motif-duration:4s;--motif-delay:.8s}
.reveal-stage .reveal-title{opacity:0}
.reveal-stage.is-revealing .reveal-title{animation:titanic-title-with-motif var(--motif-duration) var(--motif-delay) ease-in-out both}
@keyframes titanic-title-with-motif{0%{opacity:0}25%{opacity:.08}65%{opacity:.5}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.reveal-stage .reveal-title,.reveal-stage.is-revealing .reveal-title{animation:none;opacity:1}}
