/* Customer revision: a single consistent content column, sized to the aperture. */
#aperture { background: radial-gradient(ellipse at 30% 28%, #fffdf8, #d8e9f5 42%, #8dbbd8 100%); }
#aperture [hidden], #next-button, #standby-mascot { display: none !important; }
#cloud-bridge.cloud-fallback video { background: radial-gradient(ellipse at center, #fffdf8 20%, #d9e9f3 75%); }
#aperture #brand-lockup { top: 12%; width: 66%; padding: clamp(10px, 1.7vh, 24px); border-radius: 18px; background: rgba(255,253,249,.96); }
#aperture #brand-lockup img { width: 100%; max-height: 86px; }
#aperture #standby-screen { top: 27%; bottom: 23%; width: 72%; padding: 0; overflow: visible; justify-content: flex-start; container-type: inline-size; }
#aperture .standby-copy { width: 100%; padding: clamp(20px, 5cqw, 40px); }
#aperture #standby-title { font-size: clamp(27px, 7.4cqw, 56px); line-height: 1.15; letter-spacing: 0; }
#aperture #standby-title span { white-space: normal; text-wrap: balance; }
#aperture .standby-promise { font-size: clamp(16px, 3.4cqw, 25px); line-height: 1.4; }
#aperture #start-button { position: fixed; top: 38vh; left: 50%; transform: translateX(-50%); width: 88%; min-width: 0; margin: 0; min-height: clamp(54px, 5.5vh, 96px); font-size: clamp(13px, 2.8cqw, 22px); }
#aperture #quiz-screen { top: 25%; bottom: 12%; width: 74%; max-width: none; padding: 0; overflow: visible; justify-content: center; container-type: inline-size; }
#aperture #question-title { width: 100%; height: auto; min-height: 0; max-height: none; flex: 0 0 auto; margin: 0 0 clamp(18px, 2.5vh, 40px); font-size: clamp(28px, 7.2cqw, 60px); line-height: 1.12; text-wrap: balance; }
#aperture #question-title .question-line { display: inline; white-space: normal; }
#aperture #answer-options { width: 100%; gap: clamp(10px, 1.1vh, 20px); }
#aperture .answer-button { height: auto; min-height: clamp(56px, 5.8vh, 110px); padding: 14px 20px; font-size: clamp(16px, 3.5cqw, 30px); line-height: 1.3; border-radius: 22px; }
#aperture .answer-button:disabled { opacity: 1; cursor: default; }
.quiz-progress { margin: 20px 0 0; font-size: clamp(11px, 1.2vh, 18px); font-weight: 700; letter-spacing: .12em; }
#aperture #back-button { margin-top: 12px; min-height: 44px; padding: 10px 30px; }
#aperture #recommendation-screen { container-type: inline-size; top: 52%; bottom: auto; width: 72%; max-width: none; height: auto; max-height: 70%; padding: clamp(18px, 2.8vh, 42px); transform: translate(-50%, -50%); overflow: visible; border-radius: 28px; justify-content: center; }
#aperture #recommendation-screen > * { min-width: 0; max-width: 100%; flex: 0 0 auto; }
#aperture #recommendation-screen .recommendation-kicker { font-size: clamp(10px, 2.5cqw, 16px); margin: 0 0 10px; }
#aperture #recommendation-persona-en { font-size: clamp(24px, 8cqw, 52px); line-height: 1.08; }
#aperture #recommendation-definition { font-size: clamp(13px, 3cqw, 21px); line-height: 1.4; margin-top: 14px; }
#aperture #recommendation-answers { margin-top: 18px; gap: 7px; }
#aperture #recommendation-screen .answer-chip { width: 100%; }
#aperture #recommendation-screen :is(.answer-chip, .reason-chip) { font-size: clamp(11px, 2.7cqw, 18px); padding: 7px 10px; line-height: 1.25; }
#aperture #recommendation-why { margin: 20px 0 0; font-size: clamp(10px, 2.4cqw, 16px); }
#aperture #recommendation-reasons { margin-top: 8px; gap: 6px; }
#aperture #recommendation-city { margin-top: 16px; font-size: clamp(23px, 7.5cqw, 50px); line-height: 1.08; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
#aperture #recommendation-route { margin: 12px 0 0; font-size: clamp(12px, 2.8cqw, 19px); }
#aperture :is(#keepsake-screen, #booking-screen) { top: 12%; bottom: 10%; width: 74%; max-width: none; padding: 0; overflow: visible; justify-content: center; container-type: inline-size; }
#aperture #keepsake-card { display: grid; grid-template-rows: auto auto; flex: 0 0 auto; overflow: visible; border-radius: 24px; }
#aperture .card-main { padding: clamp(18px, 4cqw, 34px); }
#aperture .card-main > img, #aperture #booking-panel > img { max-height: 64px; width: 100%; }
#aperture .card-label { font-size: clamp(10px, 2cqw, 15px); margin: 18px 0 10px; }
#aperture :is(#keepsake-city, #booking-city) { margin: 0; font-size: clamp(28px, 8.3cqw, 66px); line-height: 1.08; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
#aperture :is(#keepsake-persona, #booking-persona) { margin-top: 12px; font-size: clamp(13px, 2.5cqw, 21px); letter-spacing: .02em; }
#aperture :is(#keepsake-match, #booking-match) { font-size: clamp(11px, 2.2cqw, 18px); margin-top: 7px; }
#aperture :is(#keepsake-route, #booking-route) { font-size: clamp(14px, 3cqw, 24px); letter-spacing: .06em; margin: 12px 0 8px; }
#aperture :is(#keepsake-serial, #keepsake-date, .not-ticket) { font-size: clamp(9px, 1.9cqw, 15px); line-height: 1.3; letter-spacing: .02em; overflow-wrap: anywhere; margin: 6px 0; }
#aperture .card-stub { padding: 18px 20px; border-radius: 0 0 24px 24px; }
#aperture #qr-code { width: clamp(140px, 29cqw, 240px); }
#aperture .card-stub p { font-size: clamp(10px, 2.2cqw, 17px); line-height: 1.3; letter-spacing: .06em; margin-top: 7px; }
#aperture .keepsake-hint { font-size: clamp(11px, 2.4cqw, 18px); margin-top: 16px; }
.share-hint { text-align: center; line-height: 1.4; }
#aperture .share-hint { font-size: clamp(11px, 2.4cqw, 18px); margin: 10px 0 0; text-shadow: 0 2px 10px #17317f; }
.keepsake-actions { display: flex; width: 100%; gap: 10px; justify-content: center; }
#aperture .keepsake-actions .secondary-action { flex: 1; min-width: 0; min-height: 48px; padding: 12px 8px; font-size: clamp(10px, 2.2cqw, 18px); }
#aperture #booking-panel { padding: clamp(20px, 4cqw, 36px); overflow: visible; }
#aperture #booking-country { font-size: clamp(13px, 2.7cqw, 20px); margin-top: 20px; }
#aperture #booking-helper { font-size: clamp(11px, 2.4cqw, 17px); }
#aperture .booking-action { font-size: clamp(13px, 2.8cqw, 22px); min-height: 58px; }
body[data-occlusion="1"] #aperture :is(#standby-screen, #quiz-screen, #recommendation-screen, #keepsake-screen, #booking-screen) { width: 56%; }
body[data-occlusion="1"] #aperture #brand-lockup { width: 58%; top: 16%; }
@media (max-height: 900px) {
  #aperture #brand-lockup { top: 7%; padding: 10px 14px; }
  #aperture #brand-lockup img { max-height: 44px; }
  #aperture #standby-screen { top: 23%; }
  #aperture #start-button { top: 42vh; }
  #aperture .standby-copy { padding: 20px 16px; }
  #aperture #standby-title { font-size: clamp(23px, 7.2cqw, 38px); }
  #aperture .eyebrow { font-size: 10px; margin-bottom: 12px; }
  #aperture #standby-origin-badge { font-size: 10px; margin-bottom: 12px; }
  #aperture .standby-promise { font-size: 15px; }
  #aperture #quiz-screen { top: 22%; bottom: 9%; width: 84%; }
  #aperture #question-title { font-size: clamp(25px, 7.5cqw, 38px); margin-bottom: 18px; }
  #aperture .answer-button { min-height: 54px; padding: 11px 13px; font-size: clamp(14px, 4.5cqw, 18px); }
  #aperture .quiz-progress { margin-top: 12px; }
  #aperture #recommendation-screen { top: 53%; width: 84%; padding: 20px 18px; max-height: 74%; }
  #aperture #recommendation-definition { margin-top: 10px; }
  #aperture #recommendation-answers { margin-top: 12px; }
  #aperture #recommendation-why { margin-top: 14px; }
  #aperture #recommendation-city { margin-top: 12px; }
  #aperture :is(#keepsake-screen, #booking-screen) { top: 6%; bottom: 6%; width: 84%; }
  #aperture .card-main { padding: 16px 18px 12px; }
  #aperture .card-main > img { max-height: 30px; }
  #aperture .card-label { margin: 12px 0 7px; }
  #aperture :is(#keepsake-city, #booking-city) { font-size: clamp(25px, 9cqw, 40px); }
  #aperture #keepsake-persona { margin-top: 9px; }
  #aperture #keepsake-route { margin: 8px 0 6px; }
  #aperture .card-stub { padding: 10px 12px 12px; }
  #aperture #qr-code { width: 140px; }
  #aperture .card-stub p { margin-top: 5px; }
  #aperture .keepsake-hint { margin-top: 10px; }
  #aperture .share-hint { margin-top: 6px; }
  #aperture .keepsake-actions .secondary-action { margin-top: 10px; }
}
@media (max-width: 700px) {
  body[data-channel="online"] #aperture { width: min(100vw, 640px); }
  body[data-channel="online"] #aperture #brand-lockup { top: max(18px, env(safe-area-inset-top)); }
}

/* Keep touch targets in flow: wrapped copy must move the button down. */
#aperture #standby-screen { bottom: 24%; justify-content: space-between; gap: clamp(16px, 2.5vh, 40px); }
#aperture .standby-copy { flex: 0 0 auto; }
#aperture #start-button { position: relative; top: auto; left: auto; transform: none; flex: 0 0 auto; }
/* The recommendation owns its logo, so long content cannot slide behind it. */
body[data-route70-state="RECOMMENDATION"] #aperture #brand-lockup { visibility: hidden; }
#aperture #recommendation-screen .recommendation-brand {
  display: block; width: 100%; max-height: 48px; object-fit: contain;
  padding: 9px 12px; margin: 0 0 16px; background: #fffdf9; border-radius: 12px;
}
body[data-channel] #aperture #recommendation-screen { max-height: none; }
@media (max-height: 900px) {
  #aperture #standby-screen { bottom: 15%; }
  #aperture #recommendation-screen .recommendation-brand { max-height: 38px; margin-bottom: 12px; }
}
@media (max-width: 500px) {
  body[data-occlusion="1"] #aperture #standby-screen { width: 72%; }
  body[data-occlusion="1"] #aperture #recommendation-screen { width: 68%; }
  body[data-occlusion="1"] #aperture :is(#keepsake-screen, #booking-screen) { width: 72%; }
}
.instagram-guide { font-size: clamp(11px, 2.4cqw, 18px); line-height: 1.4; text-align: center; }
.instagram-guide a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.instagram-guide a:focus-visible { outline: 3px solid #d7b785; outline-offset: 4px; border-radius: 3px; }
#booking-panel .instagram-guide { margin: 16px 0 4px; color: #17317f; }
@media (max-height: 600px) {
  #aperture .standby-copy { padding: 16px; }
  #aperture #standby-title { font-size: 23px; margin-bottom: 12px; }
  #aperture #standby-origin-badge { margin-bottom: 10px; }
  #aperture #recommendation-screen { padding: 14px 16px; }
  #aperture #recommendation-screen .recommendation-brand { max-height: 32px; margin-bottom: 8px; padding: 6px 10px; }
  #aperture #recommendation-screen .recommendation-kicker { margin-bottom: 6px; }
  #aperture #recommendation-persona-en { font-size: 24px; }
  #aperture #recommendation-definition { font-size: 12px; margin-top: 8px; }
  #aperture #recommendation-answers { margin-top: 9px; gap: 5px; }
  #aperture #recommendation-screen :is(.answer-chip, .reason-chip) { padding: 5px 8px; }
  #aperture #recommendation-why { margin-top: 10px; }
  #aperture #recommendation-city { margin-top: 10px; font-size: 23px; }
  #aperture #recommendation-route { margin-top: 8px; }
  #aperture .card-main { padding: 8px 12px; }
  #aperture .card-main > img { display: block; max-height: 20px; }
  #aperture .card-label { font-size: 9px; margin: 7px 0 5px; }
  #aperture #keepsake-city { font-size: 24px; line-height: 1.06; }
  #aperture #keepsake-persona { font-size: 12px; margin-top: 6px; }
  #aperture #keepsake-match { font-size: 10px; line-height: 1.25; margin-top: 4px; }
  #aperture #keepsake-route { font-size: 13px; line-height: 1.2; margin: 6px 0 4px; }
  #aperture :is(#keepsake-serial, #keepsake-date, .not-ticket) { font-size: 8px; margin: 3px 0; }
  #aperture .card-stub { padding: 8px 10px; }
  #aperture .card-stub p { font-size: 9px; margin: 3px 0 0; }
  #aperture .keepsake-hint { margin: 6px 0 0; }
  #aperture .keepsake-actions .secondary-action { margin-top: 6px; min-height: 48px; }
}

/* Keep the quiz logo and every wrapped question in the same layout flow. */
body[data-route70-state="QUIZ"] #aperture #brand-lockup { display: none; }
#aperture #quiz-screen { top: 10%; bottom: 8%; }
#aperture #quiz-screen > .quiz-brand {
  display: block; flex: 0 0 auto; width: 100%; max-height: 64px;
  object-fit: contain; background: #fffdf9; border-radius: 14px;
  padding: 10px 14px; margin: 0 0 clamp(14px, 1.5vh, 28px);
}
@media (max-width: 500px) {
  body[data-occlusion="1"] #aperture #quiz-screen { width: 72%; }
}
@media (max-height: 900px) {
  #aperture #quiz-screen > .quiz-brand { max-height: 38px; padding: 8px 12px; }
}
@media (max-height: 600px) {
  #aperture #quiz-screen > .quiz-brand { max-height: 28px; padding: 6px 10px; margin-bottom: 10px; }
  #aperture #question-title { font-size: 24px; line-height: 1.12; margin-bottom: 12px; }
  #aperture #answer-options { gap: 8px; }
  #aperture .answer-button { min-height: 50px; padding: 9px 11px; font-size: 14px; line-height: 1.25; }
  #aperture #quiz-progress { margin-top: 10px; }
  #aperture #back-button { flex: 0 0 auto; margin-top: 8px; min-height: 44px; padding: 8px 24px; }
}

@media (max-height: 600px) {
  #aperture #booking-panel { padding: 14px 16px; }
  #aperture #booking-country { margin-top: 12px; }
  #aperture #booking-route { margin: 8px 0 6px; }
  #aperture #booking-panel .instagram-guide { margin-top: 12px; }
}

/* Keep transient share preparation copy inside the shortest phone viewport. */
@media (max-height: 600px) {
  #aperture #booking-helper { margin-top: 9px; }
  #aperture #booking-country { margin-top: 9px; }
  #aperture #booking-panel .instagram-guide { margin-top: 9px; }
}

/* Small touch devices keep one scene decoder and avoid full-screen backdrop
   repainting. The same owned cloud art still carries every transition. */
body[data-rendering="light"] #cloud-bridge.cloud-fallback video { background: #d9e9f3 url("assets/flow-base/standby-clouds.jpg") center / cover no-repeat; }
body[data-rendering="light"] .story-video { filter: none !important; }
body[data-rendering="light"] #standby-screen .standby-copy,
body[data-rendering="light"] #quiz-screen,
body[data-rendering="light"] #recommendation-screen,
body[data-rendering="light"] #stage-copy { backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-rendering="light"] #film-grade { box-shadow: none; }
