/* One frame throughout arrival, including the held final frame. */
#app[data-arrival-layout]:not([data-arrival-layout=wide]) #arrival-stage{background:radial-gradient(ellipse at 50% 45%,#42504a,#102126 74%)}
#app[data-arrival-layout]:not([data-arrival-layout=wide]) #arrival-stage #arrival-video,
#app[data-arrival-layout]:not([data-arrival-layout=wide]) #arrival-fallback{
  inset:auto;left:50%;top:var(--arrival-top,0px);width:var(--arrival-width,100%);height:var(--arrival-height,100%);
  object-fit:cover;object-position:center;filter:none;
  transform:translateX(-50%) translate(var(--arrival-x,0px),var(--arrival-y,0px)) scale(var(--arrival-scale,1));
  transform-origin:center;will-change:transform;
}
#app[data-arrival-layout=portrait] #arrival-stage #arrival-video,
#app[data-arrival-layout=portrait] #arrival-fallback{
  mask-image:linear-gradient(transparent,#000 5%,#000 95%,transparent);
}
#app[data-screen=choice]:not([data-arrival-layout=wide]) #account-open{top:86px;right:24px}
#app[data-screen=choice]:not([data-arrival-layout=wide]) #sound-open{bottom:18px;right:24px}
#app:not([data-arrival-layout=wide]) #choice .choice-content{padding-top:140px;padding-bottom:22px}
#app:not([data-arrival-layout=wide]) #choice .oracle-choices{gap:14%;margin-bottom:6px}
#app:not([data-arrival-layout=wide]) #replay{align-self:center;max-width:calc(100% - 110px);min-height:44px}
#app[data-arrival-layout=landscape] #choice .choice-content{padding-top:88px}
#app[data-arrival-layout=landscape] #choice .choice-content h1{font-size:clamp(24px,2.8vw,32px);margin:0 auto;max-width:60%}
#app[data-arrival-layout=landscape] #choice .choice-content>p{margin-top:6px;font-size:12px}

#app[data-arrival-layout=portrait][data-screen=choice] #choice{background:linear-gradient(#06131730,transparent 45%,#06131718)}
#app[data-arrival-layout=portrait] #choice .choice-content{padding:132px 18px 14px;position:relative;height:100%;}
#app[data-arrival-layout=portrait] #choice .choice-content h1{font-size:clamp(24px,4.6vw,38px);line-height:1.08;max-width:90%;margin:0 auto}
#app[data-arrival-layout=portrait] #choice .choice-content>p{font-size:clamp(12px,2.3vw,17px);margin:9px 0 0}
#app[data-arrival-layout=portrait] #choice .oracle-choices{gap:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:auto;align-items:stretch}
#app[data-arrival-layout=portrait] #choice .oracle-choice{min-width:0;display:flex;align-items:stretch}
#app[data-arrival-layout=portrait] #choice .choice-caption{display:flex;width:100%;padding:8px 0;gap:8px}
#app[data-arrival-layout=portrait] #choice .choice-caption strong{font-size:clamp(27px,5vw,38px)}
#app[data-arrival-layout=portrait] #choice .choice-caption>span:not(.choose-label){font-size:clamp(12px,2.3vw,16px);line-height:1.35;max-width:260px}
#app[data-arrival-layout=portrait] #choice .choose-label{margin-top:auto;padding:12px 10px;font-size:clamp(11px,2.3vw,14px);line-height:1.3;white-space:normal;min-height:44px;display:flex;align-items:center;justify-content:center;width:100%}
#app[data-arrival-layout=portrait] #choice #replay{font-size:12px;margin-top:8px}
#app[data-arrival-layout=portrait][data-screen=journey] #sound-open{bottom:88px}
#app[data-arrival-layout=portrait] .journey-footer{padding:18px;gap:10px}
#app[data-arrival-layout=portrait] .journey-footer button{font-size:12px;padding:12px 16px;min-height:44px}
.language select{max-width:150px}
@media(max-width:600px){
  #app[data-screen=choice]:not([data-arrival-layout=wide]) #account-open{top:82px;right:18px}
  #app[data-screen=choice]:not([data-arrival-layout=wide]) #sound-open{right:16px;bottom:15px}
  #app[data-arrival-layout=portrait] #choice .choice-content{padding-top:130px;padding-left:14px;padding-right:14px}
  .header-right .language select{max-width:112px}
}
@media(max-height:600px) and (orientation:landscape){
  #app:not([data-screen=consult]):not([data-arrival-layout=wide]) .topbar{padding:12px 20px}
  #app:not([data-screen=consult]):not([data-arrival-layout=wide]) .brand img{width:160px}
  #app[data-screen=choice]:not([data-arrival-layout=wide]) #account-open{top:68px;right:20px;font-size:10px;min-height:32px}
  #app[data-arrival-layout=landscape] #choice .choice-content{padding:72px 6% 8px}
  #app[data-arrival-layout=landscape] #choice .choice-content h1{font-size:24px;max-width:55%;margin:0 auto}
  #app[data-arrival-layout=landscape] #choice .choice-content>p{font-size:11px;margin-top:6px}
  #app[data-arrival-layout=landscape] #choice .choice-caption{padding:4px 0;gap:4px}
  #app[data-arrival-layout=landscape] #choice .choice-caption strong{font-size:26px}
  #app[data-arrival-layout=landscape] #choice .choice-caption>span:not(.choose-label){font-size:11px}
  #app[data-arrival-layout=landscape] #choice .choose-label{padding:8px 12px;font-size:11px;min-height:36px}
  #app[data-arrival-layout=landscape] #replay{min-height:30px;font-size:10px}
  #app[data-screen=choice]:not([data-arrival-layout=wide]) #sound-open{bottom:8px;right:18px}
}
@media(prefers-reduced-motion:reduce){#arrival-stage #arrival-video,#arrival-fallback{will-change:auto}}

/* Welcome copy grows gently into the space opened by the video. */
#app:not([data-arrival-layout=wide]) #choice .choice-content>h1,
#app:not([data-arrival-layout=wide]) #choice .choice-content>p,
#app:not([data-arrival-layout=wide]) #choice .oracle-choices{
  opacity:var(--arrival-copy-opacity,1);
  transform:scale(var(--arrival-copy-scale,1));transform-origin:center;
}
#app[data-arrival-reveal=true] #choice{background:transparent;pointer-events:none}
#app[data-arrival-reveal=true] #replay{visibility:hidden}
#app[data-arrival-reveal=true] .journey-footer{bottom:14px;left:18px;right:18px;padding:0;z-index:3}
#app[data-arrival-reveal=true] .journey-footer button{max-width:calc(50% - 28px);min-height:44px;white-space:normal;line-height:1.2}
#app[data-arrival-reveal=true] #journey-note{position:absolute;left:0;right:0;bottom:58px;pointer-events:none}
#app[data-screen=journey][data-arrival-reveal=true] #sound-open{bottom:14px;left:50%;right:auto;transform:translateX(-50%)}

/* In portrait views, the copy moves towards the retreating video edges. */
#app[data-arrival-layout=portrait] #choice .choice-content>h1,
#app[data-arrival-layout=portrait] #choice .choice-content>p{
  transform:translateY(var(--arrival-heading-y,0px)) scale(var(--arrival-copy-scale,1));
}
#app[data-arrival-layout=portrait] #choice .oracle-choices{
  transform:translateY(var(--arrival-choices-y,0px)) scale(var(--arrival-copy-scale,1));
}
