/* Scroll is the playback control. Keep the scene, explanation and progress visible together. */
.mobile-story-copy { display: none; }
.ride-journey { --journey-height: calc(100svh - var(--journey-header)); }
.ride-journey[data-enhanced="true"] { height: calc(var(--journey-height) + 190svh); min-height: 0; }
.ride-journey[data-enhanced="true"] .journey-stage { width: 57%; bottom: 115px; }
.ride-journey[data-enhanced="true"] .journey-copy { height: calc(100% - 120px); }
.ride-journey[data-enhanced="true"] .journey-controls { bottom: 18px; }
.ride-journey[data-enhanced="true"] .journey-instruction { bottom: 122px; font-size: 12px; color: #d2d9c8; background: #10150dde; padding: 7px 12px; border-radius: 20px; }
.ride-journey .journey-pages button, .journey-camera-tools button { min-height: 44px; }
.journey-timeline-row label, .ride-journey .journey-skip { font-size: 11px; }
.ride-journey .hero-description, .ride-journey .chapter-description { font-size: 15px; line-height: 1.7; }
.ride-lab .lab-result p { font-size: 13px; }
.ride-lab .lab-instructions, .ride-lab .lab-summary { font-size: 12px; line-height: 1.5; }
.ride-lab .lab-view-controls button { min-width: 44px; min-height: 44px; }
.ride-lab .lab-story-head { font-size: 12px; }
.ride-lab .lab-timeline label { font-size: 10px; }
/* Floating CTAs must not cover the playback controls on small screens. */

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .ride-journey { --journey-gutter: 18px; }
  .ride-journey[data-enhanced="true"] .journey-sticky { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; padding: 16px 18px max(12px, env(safe-area-inset-bottom)); height: var(--journey-height); }
  .ride-journey[data-enhanced="true"] .journey-copy { grid-row: 1; grid-column: 1; display: grid; width: 100%; height: auto; padding: 0; margin: 0; }
  .ride-journey[data-enhanced="true"] .journey-chapter { display: flex; flex-direction: column; align-self: start; width: 100%; max-width: none; gap: 0; }
  .ride-journey[data-enhanced="true"] .journey-chapter .hero-eyebrow,
  .ride-journey[data-enhanced="true"] .journey-chapter .eyebrow { order: 0; margin: 0 0 9px; font-size: 9px; }
  .ride-journey h1, .ride-journey .chapter-title { order: 1; font-size: clamp(32px, 9vw, 44px); line-height: 1.04; }
  .ride-journey[data-enhanced="true"] .mobile-story-copy { display: block; order: 2; margin: 12px 0; color: #b8c0b1; font-size: 13px; line-height: 1.55; max-width: 450px; }
  .ride-journey[data-enhanced="true"] .hero-description,
  .ride-journey[data-enhanced="true"] .chapter-description,
  .ride-journey[data-enhanced="true"] .hero-assurances,
  .ride-journey[data-enhanced="true"] .chapter-ride-rule { display: none; }
  .ride-journey[data-enhanced="true"] .hero-actions,
  .ride-journey[data-enhanced="true"] .journey-chapter > .button { order: 3; margin: 0; }
  .ride-journey .hero-actions { flex-wrap: nowrap; gap: 12px; }
  .ride-journey .hero-actions > .button, .ride-journey .journey-chapter > .button { align-self: flex-start; min-height: 44px; font-size: 11px; padding: 10px 12px; }
  .ride-journey .watch-link { font-size: 11px; line-height: 1.5; }
  .ride-journey .hero-actions .button-arrow { display: none; }
  .ride-journey[data-enhanced="true"] .journey-stage { grid-row: 2; grid-column: 1; position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
  .ride-journey[data-enhanced="true"] .journey-scene-label { display: none; }
  .ride-journey[data-enhanced="true"] .journey-instruction { display: none; }
  .ride-journey[data-enhanced="true"] .journey-controls { grid-row: 3; grid-column: 1; position: relative; inset: auto; padding-top: 9px; gap: 6px; }
  .journey-control-row { gap: 8px; }
  .ride-journey .journey-pages { flex: 1; gap: 5px; }
  .ride-journey .journey-pages button { flex: 1; padding: 8px; font-size: 11px; min-height: 44px; }
  .ride-journey .journey-pages button > span { display: none; }
  .journey-camera-tools button { min-height: 44px; min-width: 44px; }
  .journey-camera-tools > button:not(#journeyReset) { display: none; }
  .journey-camera-tools button > span { display: none; }
  .journey-timeline-row { gap: 10px; }
  .journey-timeline-row label { font-size: 9px; letter-spacing: .3px; }
  .journey-timeline-row input { min-height: 30px; }
  .ride-journey .journey-skip { font-size: 11px; }
  .ride-lab .lab-workbench { grid-template-rows: minmax(0,1fr) auto; }
  .ride-lab .lab-console { padding: 12px; gap: 10px; }
  .ride-lab .lab-result { gap: 12px; }
  .ride-lab .lab-result h3 { font-size: 22px; }
  .ride-lab .lab-result p { font-size: 12px; line-height: 1.45; }
  .ride-lab .lab-sequence { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 3px; }
  .ride-lab .lab-sequence li { flex: 1 0 40px; }
  .ride-lab .lab-sequence button { width: 100%; min-height: 44px; font-size: 12px; padding: 6px 2px; }
  .ride-lab .lab-sequence button small { font-size: 9px; }
  .ride-lab .lab-rule-chips > span { font-size: 11px; }
  .ride-lab .lab-scene-caption { padding: 8px 10px; }
  .ride-lab .lab-summary { max-height: none; font-size: 10px; line-height: 1.4; }
  .ride-lab .lab-view-controls button { min-width: 40px; min-height: 44px; }
  .ride-lab .lab-view-controls > button:not(#labResetView) { display: none; }
  .ride-lab .lab-story-head { font-size: 11px; }
  .ride-lab .lab-timeline label { font-size: 9px; }
  .ride-lab .lab-timeline input { height: 30px; }
  .ride-lab .lab-notes p { font-size: 12px; }
  .quick-dock:not([hidden]) { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .ride-journey[data-enhanced="true"] .journey-sticky { padding-top: 10px; }
  .ride-journey h1, .ride-journey .chapter-title { font-size: 32px; }
  .ride-journey[data-enhanced="true"] .mobile-story-copy { margin-block: 8px; font-size: 12px; }
  .ride-journey .hero-eyebrow, .ride-journey .eyebrow { margin-bottom: 6px; }
  .ride-lab .lab-scene-caption { display: none; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .ride-journey[data-enhanced="true"] .journey-sticky { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr) auto; gap: 8px; }
  .ride-journey[data-enhanced="true"] .journey-copy { grid-area: 1 / 1; }
  .ride-journey[data-enhanced="true"] .journey-stage { grid-area: 1 / 2; }
  .ride-journey[data-enhanced="true"] .journey-controls { grid-area: 2 / 1 / 3 / 3; }
  .ride-journey h1, .ride-journey .chapter-title { font-size: 27px; }
  .ride-journey[data-enhanced="true"] .hero-actions, .ride-journey[data-enhanced="true"] .journey-chapter > .button { display: none; }
}
.lab-motion-choice { margin-top: 18px; }
.lab-motion-choice button { min-height: 44px; padding: 10px 16px; border: 1px solid #c1ff00; border-radius: 10px; background: #c1ff00; color: #101400; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.lab-motion-choice p { margin: 9px 0 0; color: #b6bdad; font-size: 12px; line-height: 1.6; }
/* An explicit animation choice overrides the OS default for this demo only. */
@media (prefers-reduced-motion: reduce) {
  .ride-lab[data-enhanced="true"][data-reduced-motion="false"] .lab-scroll-track { height: calc(100svh + var(--lab-scroll-distance, 3600px)) !important; }
  .ride-lab[data-enhanced="true"][data-reduced-motion="false"] .lab-sticky { position: sticky !important; top: var(--lab-header, 94px) !important; height: calc(100svh - var(--lab-header, 94px) - 16px) !important; }
}
@media (max-width: 760px) {
  .ride-lab > .container { width: calc(100% - 32px); padding-inline: 0; }
}
@media (max-width: 760px) {
  .container { padding-inline: 0; }
  .header-inner { min-height: 64px; gap: 0 8px; }
  .header-inner .brand { gap: 6px; }
  .header-inner .brand img { width: 28px; height: 28px; }
  .header-inner .brand > span { font-size: 20px; letter-spacing: 1.5px; }
  .header-actions { gap: 7px; }
  .header-actions .button, .menu-toggle { min-height: 44px; }
  .header-actions .button { padding-inline: 10px; }
  .ride-journey .hero-actions .watch-link { flex: 1; }
}
@media (min-width: 761px) {
  .ride-journey { --journey-height: calc(100svh - var(--journey-header) - 36px); }
  .ride-journey h1, .ride-journey .chapter-title { font-size: clamp(46px, 5.1vw, 72px); }
}
@media (min-width: 761px) {
  .ride-journey { --journey-height: min(850px, calc(100svh - var(--journey-header) - 36px)); }
}

/* Bike-taxi diorama and its accessible no-WebGL illustration. */
.taxi-fallback { width: min(100%,440px); padding: 24px; border: 1px solid #354532; border-radius: 24px; background: radial-gradient(ellipse at center,#23301a,#0a100d); }
.taxi-fallback > span { color: #c1ff00; font-size: 11px; letter-spacing: 2px; }
.taxi-fallback svg { width: 100%; }
.taxi-fallback strong { display: block; color: #eef4e7; font-size: 27px; }
.taxi-fallback p { font-size: 14px; line-height: 1.6; color: #b9c6b4; }
.taxi-fallback a { color: #c1ff00; }
.ride-journey .journey-stage { background: radial-gradient(ellipse at 50% 60%,#16241b80,transparent 70%); }
@media(max-width:760px){ .ride-journey .journey-pages button { font-size: 10px; padding-inline: 5px; } }
@media (min-width: 761px) {
  .ride-journey h1 { font-size: clamp(42px, 4.2vw, 60px); }
}

/* Readable fare decisions stay outside WebGL, at every screen size. */
.driver-request { display: none; }
.ride-journey[data-enhanced="true"] .driver-request { display: block; position: absolute; top: 26px; left: 50%; transform: translateX(-50%); width: min(430px, 94%); z-index: 2; border: 1px solid #637344; border-radius: 18px; padding: 16px 20px; background: #182017; box-shadow: 0 14px 36px #0005; color: #eff5e8; }
.driver-request-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c4d1b7; }
.driver-request-top small { font-size: 10px; border: 1px solid #536148; padding: 3px 7px; border-radius: 5px; }
.driver-fare-row { display: flex; gap: 18px; align-items: center; margin: 12px 0; }
.driver-fare-row > strong { font-size: 42px; letter-spacing: -2px; line-height: 1.2; }
.driver-fare-row div { flex: 1; }
.driver-fare-row b { display: block; font-size: 18px; line-height: 1.5; }
.driver-fare-row div span { display: block; font-size: 12px; color: #c4d1b7; margin-top: 3px; }
#driverSymbol { font: 700 26px sans-serif; color: #c1ff00; }
.driver-route { display: flex; justify-content: space-between; border-top: 1px solid #ffffff18; padding-top: 10px; font-size: 12px; color: #b7c6ad; }
.driver-request[data-decision="skipped"] { border-color: #ff7b88; }
.driver-request[data-decision="skipped"] #driverSymbol, .driver-request[data-decision="skipped"] b { color: #ff97a0; }
.driver-request[data-decision="accepted"] { border-color: #6ce8a0; }
.driver-request[data-decision="accepted"] #driverSymbol, .driver-request[data-decision="accepted"] b { color: #8ef2b8; }
.ride-journey[data-enhanced="true"] .journey-stage canvas { margin-top: 198px; height: calc(100% - 198px); }
@media(max-width:760px) {
  .ride-journey[data-enhanced="true"] .driver-request { top: 10px; padding: 10px 14px; border-radius: 13px; width: 100%; }
  .driver-request-top { font-size: 11px; }
  .driver-fare-row { margin: 7px 0; gap: 12px; }
  .driver-fare-row > strong { font-size: 34px; }
  .driver-fare-row b { font-size: 16px; }
  .driver-fare-row div span { font-size: 11px; }
  .driver-route { padding-top: 6px; font-size: 11px; }
  .ride-journey[data-enhanced="true"] .journey-stage canvas { margin-top: 140px; height: calc(100% - 140px); }
}
@media(max-height:700px) and (max-width:760px) {
  .driver-route { display: none; }
  .ride-journey[data-enhanced="true"] .journey-stage canvas { margin-top: 112px; height: calc(100% - 112px); }
}

.ride-journey[data-enhanced="true"] .journey-scene-label { display: none; }
@media(max-width:760px) and (max-height:700px) {
  .driver-fare-row > strong { font-size: 28px; }
  .driver-fare-row b { font-size: 14px; }
  .driver-fare-row div span { font-size: 10px; }
}

/* Landmarks are controls anchored to the projected 3D buildings. */
.city-prompt,.city-viewport,.city-action,.city-gesture { display:none; }
.ride-journey[data-enhanced="true"] .journey-stage { display:flex; flex-direction:column; padding-top:16px; }
.ride-journey[data-enhanced="true"] .driver-request { position:relative; top:auto; left:auto; transform:none; align-self:center; width:min(430px,94%); flex:none; padding:12px 18px; }
.ride-journey[data-enhanced="true"] .city-prompt { display:flex; justify-content:space-between; width:88%; margin:16px auto 0; color:#e4ebda; font-size:13px; }
.city-prompt span { color:#aebb9c; font-size:11px; }
.ride-journey[data-enhanced="true"] .city-viewport { display:block; position:relative; flex:1; min-height:0; width:100%; }
.ride-journey[data-enhanced="true"] .city-viewport canvas { width:100%;height:100%;margin:0; }
.city-hotspots { position:absolute;inset:0;pointer-events:none; }
.city-hotspots button { position:absolute;transform:translate(-50%,-100%);pointer-events:auto;min-height:44px;padding:6px 10px;border:1px solid #71845a;border-radius:12px;background:#1a2218f5;color:#f0f3eb;white-space:nowrap;font:600 12px sans-serif;cursor:pointer;box-shadow:0 5px 16px #0004; }
.city-hotspots button::after { content:'';position:absolute;left:50%;top:100%;height:15px;border-left:1px dashed #a1b185; }
.city-hotspots button span { display:inline-grid;place-items:center;width:22px;height:22px;margin-right:5px;border-radius:50%;background:#38452d;color:#d9fca2; }
.city-hotspots button[aria-pressed="true"] { border-color:#c1ff00;background:#c1ff00;color:#172000; }
.city-hotspots button[aria-pressed="true"] span { background:#243016;color:#c1ff00; }
.city-hotspots button:focus-visible { outline:3px solid white;outline-offset:3px; }
.ride-journey[data-enhanced="true"] .city-action { display:block;text-align:center;margin:4px 10px;color:#d9efbd;font-size:13px;line-height:1.4;min-height:19px; }
.ride-journey[data-enhanced="true"] .city-gesture { display:block;text-align:center;margin:4px 0;color:#9eaa94;font-size:11px; }
.ride-journey[data-enhanced="true"] .journey-instruction { display:none; }
@media(max-width:760px) {
 .ride-journey[data-enhanced="true"] .journey-stage { padding-top:10px; }
 .ride-journey[data-enhanced="true"] .driver-request { width:100%;padding:8px 12px; }
 .driver-request .driver-fare-row { margin:4px 0; }
 .driver-request .driver-fare-row > strong { font-size:28px; }
 .driver-request .driver-fare-row b { font-size:14px; }
 .driver-request .driver-fare-row div span { font-size:10px; }
 .driver-request .driver-route { display:flex;padding-top:4px;font-size:10px; }
 .ride-journey[data-enhanced="true"] .city-prompt { width:100%;font-size:11px;margin-top:9px; }
 .city-prompt span { font-size:9px; }
 .city-hotspots button { font-size:10px;padding:5px;min-height:44px;border-radius:9px; }
 .city-hotspots button span { width:17px;height:17px;margin-right:3px; }
 .ride-journey[data-enhanced="true"] .city-action { font-size:11px;margin:2px 0; }
 .ride-journey[data-enhanced="true"] .city-gesture { font-size:9px;margin:0; }
}
@media(max-width:760px) and (max-height:700px) {
 .ride-journey[data-enhanced="true"] .journey-chapter .mobile-story-copy { display:none; }
 .ride-journey[data-enhanced="true"] .hero-actions,.ride-journey[data-enhanced="true"] .journey-chapter > .button { display:none; }
 .driver-request-top { display:none; }
 .ride-journey[data-enhanced="true"] .city-gesture { display:none; }
 .ride-journey[data-enhanced="true"] .city-prompt { margin-top:6px; }
}

/* Trial coupon stays next to the offer and wraps cleanly on phones. */
.announcement-offer { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px; }
.announcement-coupon { padding:5px 9px;border:1px dashed #c1ff00;border-radius:5px;color:#c1ff00;letter-spacing:1px;font-size:11px;user-select:all; }
.announcement-bar .announcement-redeem { min-height:32px;gap:6px;color:#c1ff00;font-weight:700;text-decoration:underline;text-underline-offset:3px; }
.announcement-redeem:focus-visible { outline:2px solid #c1ff00;outline-offset:4px; }
@media(max-width:480px) {
 .announcement-bar { padding:6px 12px; }
 .announcement-offer { gap:2px 12px; }
 .announcement-offer > span { flex-basis:100%;text-align:center; }
 .announcement-bar .announcement-redeem { min-height:36px; }
}
