body[data-page=journey]{background:#100d0c}body[data-page=journey] .header,body[data-page=journey] .footer{display:none}.journey-wrap{--ink:#171310;--gold:#c4a16f;--paper:#f2e5d1;min-height:100svh;color:var(--paper);background:radial-gradient(ellipse at 25% 30%,#4c281c55,transparent 70%),#100d0c;padding:0 28px 24px}.journey-top{max-width:1120px;margin:auto;height:68px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#baa58e}.journey-top>span{letter-spacing:4px;color:#dfc398}.journey-top button{background:none;border:0;color:inherit;font:inherit;cursor:pointer}.journey-stage{max-width:1120px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:660px;border:1px solid #c4a16f33;background:#1b1411;box-shadow:0 25px 100px #0005;overflow:hidden}.journey-film{position:relative;min-width:0;background:#110c08;overflow:hidden}.journey-film video{display:block;width:100%;height:100%;max-height:850px;object-fit:cover;object-position:50% 35%}.journey-film:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#130e0bea,transparent 25%),linear-gradient(90deg,transparent 80%,#1b141170)}.journey-film-caption{position:absolute;bottom:30px;left:32px;z-index:1;font:28px/1.5 Georgia,'Songti SC',serif;letter-spacing:5px}.journey-film-caption small{display:block;font:11px/2 var(--sans);letter-spacing:2px;color:#d6b99c}.journey-dialog{padding:38px 44px 25px;align-self:center;min-width:0}.journey-progress{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#bfa98d;margin-bottom:65px}.journey-progress>div{display:flex;align-items:center;gap:5px}.journey-progress i{width:13px;height:2px;background:#ffffff22}.journey-progress i.passed{background:var(--gold)}.journey-speaker{color:#c4a16f;font-size:12px;letter-spacing:2px;margin:0 0 17px}.journey-dialog h1{font:500 clamp(25px,2.5vw,34px)/1.5 'Songti SC','Noto Serif SC',serif;color:var(--paper);letter-spacing:1px;outline:0}.journey-copy{color:#bfae9c;font-size:13px;line-height:1.9;margin:15px 0 28px}.journey-primary{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:50px;padding:13px 18px;margin-top:20px;background:#b79665;color:#1a120d;border:1px solid #d3b786;font:600 14px/1.5 var(--sans);cursor:pointer}.journey-primary:hover{background:#cfad7a}.journey-secondary{display:block;text-align:center;margin-top:20px;font-size:12px;color:#baa58e}.journey-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.journey-choices button,.journey-questions button{border:1px solid #bca17a4d;background:#ffffff03;color:#d6c4ac;cursor:pointer}.journey-choices button{padding:20px 4px}.journey-choices strong{display:block;font:22px/1.4 'Songti SC',serif}.journey-choices small{display:block;margin-top:8px;font-size:10px}.journey-choices button[aria-pressed=true],.journey-questions button[aria-pressed=true]{border-color:#dab889;background:#b7966526;color:#ffe1b4}.journey-questions{display:grid;gap:9px;margin-bottom:18px}.journey-questions button{text-align:left;padding:12px;font-size:13px;line-height:1.5}.journey-dialog label{display:block;font-size:12px;color:#cab499;margin-bottom:9px}.journey-dialog input,.journey-dialog textarea,.journey-dialog select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px;background:#100c09aa;color:#f2e5d1;border:1px solid #bca17a66;border-radius:0;font:15px/1.6 var(--sans);color-scheme:dark}.journey-dialog textarea{height:78px;resize:vertical}.journey-dialog :is(button,input,textarea,select,a):focus-visible{outline:2px solid #f1d2a3;outline-offset:4px}.journey-hint{font-size:11px;line-height:1.8;color:#aa9782;margin-top:12px}.journey-back{margin-top:18px;padding:8px 0;color:#bca78e;background:none;border:0;font-size:12px;cursor:pointer}.journey-footnote{margin-top:36px;font-size:10px;color:#897764}.journey-review{margin:0;border-top:1px solid #c4a16f30}.journey-review>div{display:grid;grid-template-columns:45px 1fr;gap:16px;padding:15px 0;border-bottom:1px solid #c4a16f30;font-size:13px;line-height:1.8}.journey-review dt{color:#b49b7b}.journey-review dd{margin:0;overflow-wrap:anywhere}.journey-play{position:absolute;top:20px;left:20px;z-index:2;background:#17100ccc;color:#f2e5d1;border:1px solid #c4a16f88;padding:10px 16px;cursor:pointer}.journey-play[hidden]{display:none}
@media(max-width:700px){.journey-wrap{padding:0}.journey-top{height:50px;padding:0 18px;font-size:11px}.journey-top>span{letter-spacing:2px}.journey-stage{display:block;border:0;min-height:calc(100svh - 50px);position:relative;background:#1b1411}.journey-film{height:46svh;min-height:270px;max-height:440px}.journey-film video{height:100%;object-fit:cover;object-position:center 33%}.journey-film:after{background:linear-gradient(0deg,#1b1411,transparent 35%)}.journey-film-caption{bottom:28px;left:24px;font-size:20px}.journey-film-caption small{font-size:9px}.journey-dialog{position:relative;padding:0 24px 22px;margin-top:-8px;z-index:2}.journey-progress{margin-bottom:18px;font-size:10px}.journey-dialog h1{font-size:25px}.journey-speaker{margin-bottom:9px;font-size:11px}.journey-copy{margin:10px 0 20px;font-size:12px}.journey-choices button{padding:13px 4px}.journey-primary{margin-top:16px}.journey-footnote{margin-top:22px}.step-2 .journey-film,.step-6 .journey-film{height:35svh;min-height:230px}.step-7 .journey-film{height:58svh;max-height:none}.step-7 .journey-film video{object-fit:contain}.journey-film-caption{pointer-events:none}}
@media(min-width:701px){.journey-stage{height:calc(100svh - 92px);min-height:610px;max-height:800px}.journey-film video{position:absolute;inset:0;height:100%;max-height:none;object-fit:contain}.journey-dialog{padding-top:24px;padding-bottom:20px}.journey-progress{margin-bottom:42px}}
.journey-dialog h1{text-wrap:balance}
@media(max-width:700px){.step-2 .journey-film video,.step-6 .journey-film video{object-position:center 20%}}
/* Immersive dialogue: one line and its current action, inside the film. */
.journey-wrap{padding:0;background:#100b08}.journey-top{height:48px;max-width:540px;padding:0 18px;font-size:11px}.journey-stage{display:block;position:relative;width:min(100%,540px);height:calc(100svh - 48px);min-height:690px;max-height:920px;margin:auto;border:0;background:#100b08;isolation:isolate}.journey-film{position:absolute;inset:0;height:100%;max-height:none;min-height:0}.journey-film video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 25%}.journey-film:after{background:linear-gradient(0deg,#100b08f5 0%,#100b08dd 18%,#100b0880 38%,transparent 65%)}.journey-film-caption,.journey-progress,.journey-speaker,.journey-copy,.journey-footnote{display:none}.journey-dialog{position:absolute;bottom:25px;left:0;right:0;z-index:2;margin:0;padding:0 28px;min-width:0}.journey-dialog h1{font:500 26px/1.5 'Songti SC','Noto Serif SC',serif;text-align:center;text-shadow:0 2px 14px #000;margin:0 0 22px;letter-spacing:1px}.journey-choices button{padding:13px 4px;background:#160f0c8c;backdrop-filter:blur(8px)}.journey-choices small{display:none}.journey-choices strong{font-size:21px}.journey-primary{min-height:48px;margin-top:14px;background:#b79665e8}.journey-secondary{margin-top:14px;font-size:11px}.journey-questions{gap:8px;margin-bottom:12px}.journey-questions button{padding:11px 13px;background:#160f0ca6;backdrop-filter:blur(8px)}.journey-dialog label{font-size:11px;margin-bottom:6px}.journey-dialog textarea{height:58px;min-height:58px}.journey-dialog input,.journey-dialog select{background:#160f0cb5}.journey-back{margin-top:10px;padding:5px 0;font-size:11px}.journey-review{background:#160f0c88;padding:0 12px;backdrop-filter:blur(8px)}.journey-review>div{padding:9px 0}.step-2 .journey-film,.step-6 .journey-film,.step-7 .journey-film{height:100%;min-height:0;max-height:none}.step-2 .journey-film video,.step-6 .journey-film video,.step-7 .journey-film video{object-fit:cover;object-position:center 25%}.step-7 .journey-dialog{bottom:22px}.step-7 .journey-film:after{background:linear-gradient(0deg,#100b08ed,transparent 40%)}
@media(max-width:700px){.journey-stage{min-height:650px;max-height:none}.journey-dialog{padding:0 22px;bottom:22px}.journey-dialog h1{font-size:24px;margin-bottom:18px}.journey-film video,.step-2 .journey-film video,.step-6 .journey-film video{object-position:center 22%}}
/* Compact scene actions. */
.journey-dialog .journey-primary{width:min(100%,240px);margin-left:auto;margin-right:auto;min-height:44px;padding:10px 20px;justify-content:center;gap:18px}.journey-dialog .journey-primary>span{font-size:16px}.journey-dialog .journey-choices{max-width:330px;margin-inline:auto}
@media(max-width:700px){.journey-dialog .journey-primary{width:210px;min-height:44px}}
.journey-tools{display:flex;gap:16px;align-items:center}.journey-tools button{padding:8px 0;font-size:11px}.journey-tools button[aria-pressed=true]{color:#dfc398}
.journey-letter{opacity:0;transition:opacity .16s ease}.journey-letter.shown{opacity:1}.journey-music-credit{display:block;text-align:center;font-size:10px;color:#9c8975;padding:10px;margin:0 auto;width:max-content}@media(prefers-reduced-motion:reduce){.journey-letter{opacity:1;transition:none}}
.journey-dialog #journey-form,.journey-dialog .journey-back{opacity:1;visibility:visible;transition:opacity .45s ease,visibility .45s}.journey-dialog.is-speaking #journey-form,.journey-dialog.is-speaking .journey-back{opacity:0;visibility:hidden;pointer-events:none;transition:none}@media(prefers-reduced-motion:reduce){.journey-dialog #journey-form,.journey-dialog .journey-back{transition:none}}
.journey-sound-hint{position:absolute;top:52px;left:50%;transform:translateX(-50%);z-index:5;width:max-content;max-width:90%;padding:5px 10px;margin:0;background:#100b0877;border-radius:3px;color:#e3ceb0;font-size:10px;pointer-events:none}
.calendar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.calendar-tabs button{padding:10px;background:#160f0ca6;border:1px solid #bca17a66;color:#e8d6bd}.calendar-tabs small{display:block;font-size:10px;margin-top:4px}.calendar-tabs [aria-pressed=true]{border-color:#dab889;background:#b7966544}.lunar-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;margin-bottom:12px}.birth-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.journey-dialog .unknown-hour{display:flex;align-items:center;gap:8px;margin:12px 0}.journey-dialog .unknown-hour input{width:16px;min-height:16px;height:16px}.journey-dialog #journey-error{color:#ffd0af;font-size:12px;line-height:1.6;margin-top:10px}.journey-primary:disabled{opacity:.5;cursor:wait}.step-4 .journey-dialog,.step-5 .journey-dialog,.step-6 .journey-dialog{max-height:75%;overflow-y:auto}.step-4 .journey-film:after,.step-5 .journey-film:after,.step-6 .journey-film:after{background:linear-gradient(0deg,#100b08fa 0%,#100b08d9 28%,transparent 75%)}

/* Four compact topics remain together within the animated scene. */
.journey-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:420px){.journey-choices{gap:7px}.journey-choices strong{font-size:20px}}

.journey-audio-start{position:absolute;z-index:8;inset:0;width:100%;height:100%;border:0;background:#100c0970;backdrop-filter:blur(2px);color:#f2e5d1;font:30px/1.8 'Songti SC',serif;cursor:pointer}.journey-audio-start small{display:block;font:13px/2 var(--sans);color:#dbc39e}.journey-audio-start[hidden]{display:none}

.journey-audio-start>span{display:inline-flex;align-items:center;gap:12px}.tap-hand{width:32px;height:32px;overflow:visible;color:#dbc39e}

/* Lift mobile dialogue above the bottom edge while keeping actions together. */
@media(max-width:700px){
 .journey-stage .journey-dialog{bottom:calc(clamp(54px,8svh,82px) + env(safe-area-inset-bottom,0px))}
 .step-4 .journey-dialog,.step-5 .journey-dialog,.step-6 .journey-dialog{max-height:calc(100% - 130px - env(safe-area-inset-bottom,0px))}
}

.journey-top>span{letter-spacing:1px;white-space:nowrap}@media(max-width:420px){.journey-top{padding-inline:10px;gap:8px}.journey-tools{gap:8px}}

.birth-date-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.birth-date-fields>div{min-width:0}.birth-date-fields input{width:100%;min-width:0;padding-inline:12px;font-variant-numeric:tabular-nums}.birth-date-fields label{margin-bottom:6px}html[lang="vi"] .birth-date-fields{grid-template-columns:1fr 1fr 1.35fr}html[lang="zh-CN"] .birth-date-fields{grid-template-columns:1.35fr 1fr 1fr}@media(max-width:600px){.birth-date-fields{gap:8px}.birth-date-fields input{font-size:16px;padding:10px 8px;min-height:46px}.birth-date-fields label{font-size:12px}}
/* Clear topic names need space in both languages. */
.step-1 .journey-choices{grid-template-columns:repeat(2,minmax(0,1fr));max-width:400px;gap:10px}
.step-1 .journey-choices button{min-height:68px;padding:12px 10px;min-width:0}
.step-1 .journey-choices strong{font-size:18px;line-height:1.5;word-break:normal;text-wrap:balance}
.restart-link{display:block;min-height:44px;margin:8px auto 0;padding:10px 16px;border:0;background:transparent;color:inherit;font:400 14px/1.5 var(--sans);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.restart-link:hover{text-decoration-thickness:2px}
.restart-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.journey-step-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px}
.journey-step-nav .journey-back,.journey-step-nav .restart-link{min-height:44px;margin:0;padding:10px 0;font:400 12px/1.5 var(--sans);color:#dbc6a9}
.flow-restart{max-width:1120px;margin:0 auto;padding:6px 20px 20px;text-align:right}
.flow-restart .restart-link{margin:0 0 0 auto}
body[data-page=journey] .step-7 .journey-dialog{bottom:calc(clamp(48px,7svh,72px) + env(safe-area-inset-bottom,0px))}
@media print{.flow-restart,.restart-link{display:none!important}}

/* Keep a decoded image behind every scene; iOS need not seek a paused video. */
.journey-film .journey-scene-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.journey-film #journey-video{opacity:0}
.journey-film #journey-video.is-playing{opacity:1}
@media(max-width:700px){.journey-film .journey-scene-poster{object-position:center 22%}}
