.home-demo {
    padding-block: clamp(24px, 4vw, 64px);
    border-block: 1px solid var(--line);
    background: #faf6f4;
}
.ride-demo {
    max-width: 1230px; margin: auto; padding: clamp(28px, 4vw, 64px) clamp(18px, 4vw, 56px);
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 6vw, 92px); align-items: center;
}
.demo-copy .demo-heading {
    margin: 0 0 20px; font-size: clamp(2.8rem, 5.3vw, 5rem); font-weight: 800;
    line-height: 1; letter-spacing: -.055em;
}
.demo-intro { max-width: 38ch; margin: 0 0 24px; color: var(--muted); }
.demo-launch [aria-hidden] { margin-inline-start: 9px; }
.galata-map-label {
    font: 750 13.5px "Manrope", sans-serif; fill: #38332f;
    stroke: #f8f4e9; stroke-width: 5px; stroke-linejoin: round; paint-order: stroke;
}
.galata-stop-label { font-size: 14.5px; fill: #87222a; }
.galata-stop-ring { opacity: 0; }
.galata-water-label { display: none; }
.demo-player {
    position: relative; isolation: isolate; overflow: hidden; display: grid;
    justify-items: center; gap: 16px; padding: 28px 20px 18px; border-radius: var(--radius);
    background: radial-gradient(ellipse at 32% 16%, #a73a35, #731916 65%, #430f10);
    box-shadow: var(--shadow);
}
.demo-player::before {
    content: ""; position: absolute; z-index: -1; width: 150%; height: 45%; top: 28%;
    border: 1px solid #ffffff2b; border-radius: 50%; transform: rotate(-38deg); box-shadow: 0 24px 0 -1px #ffffff0b;
}
.demo-toolbar { position: absolute; z-index: 3; inset: 12px 12px auto; display: flex; pointer-events: none; }
.demo-toolbar > :is(a,button) {
    pointer-events: auto; display: grid; place-content: center; width: 40px; height: 40px;
    border-radius: 50%; color: white; background: #50100f; border: 1px solid #ffffff60; font-size: 1.2rem;
}
.demo-toolbar [data-close] { display: none; margin-inline-start: auto; }
.demo-toolbar .demo-progress, .demo-toolbar .demo-toolbar-brand, .demo-toolbar progress, .mobile-ride-step { display: none; }
.demo-device {
    width: clamp(220px, 31vh, 302px); max-width: 100%; aspect-ratio: 9 / 20;
    box-sizing: content-box; container-type: inline-size; position: relative; overflow: hidden;
    border: 6px solid #221e20; border-radius: 32px; background: #fff;
    box-shadow: 0 0 0 1px #ecc3ad95, 0 18px 40px #39090970;
}
.demo-scene, .demo-shot { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-shot { object-fit: fill; }
.receipt-fare, .demo-screen-fares { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.demo-scene { background: #fff; color: #1f1b1b; }
.demo-outgoing { z-index: 2; pointer-events: none; }
.ride-splash { display: none; }
.demo-device.is-loading::after {
    content: ""; position: absolute; z-index: 3; top: calc(50% - 10px); left: calc(50% - 10px);
    width: 20px; height: 20px; border-radius: 50%; pointer-events: none;
    background: #fff; border: 2px solid #ead5d3; border-top-color: var(--primary-color);
    box-shadow: 0 0 0 4px #fffffff0;
    animation: ride-loader-appear 1ms 160ms backwards;
}
@keyframes ride-loader-appear { from { opacity: 0; } to { opacity: 1; } }
.demo-hint { margin: 0; min-height: 2.8em; max-width: 42ch; text-align: center; color: white; font-size: .95rem; font-weight: 650; line-height: 1.4; }
.demo-player [hidden] { display: none; }
.demo-map {
    position: absolute; inset: 0 0 40%;
    background: #ece9df url('../img/home/save-address.jpg') center 30% / auto 580% no-repeat;
}
.demo-start-sheet, .demo-time-sheet {
    position: absolute; inset: auto 0 0; padding: 10% 7%; border-radius: 8cqw 8cqw 0 0;
    background: white; box-shadow: 0 -3px 18px #251a1112;
}
.demo-start-sheet { min-height: 48%; }
.demo-start-sheet::before, .demo-time-sheet::before {
    content: ""; position: absolute; top: 3cqw; left: 42%; width: 16%; height: 3px; border-radius: 2px; background: #ddd7d7;
}
.demo-start-sheet img { width: 12%; height: auto; border-radius: 22%; margin-bottom: 6%; }
.demo-scene h3 { font: 700 8cqw/1.07 Georgia, serif; letter-spacing: -.025em; margin: 0 0 6%; }
.demo-start-sheet p { margin: 0 0 8%; font-size: 4.3cqw; color: #5b5252; }
.demo-start-sheet p i { color: var(--primary-color); margin-right: 3px; }
.demo-search, .demo-time {
    position: relative;
    display: flex; align-items: center; gap: .65em; padding: 5% 4%; border-radius: 3cqw;
    color: #4f3939; background: #fff9f8; border: 1px solid #c99b97; font-size: 4.8cqw; font-weight: 700;
}
.demo-search i, .demo-time i { color: var(--primary-color); }
.demo-time span { margin-inline-start: auto; }
.demo-target {
    position: absolute; z-index: 1; border: 2px solid var(--primary-color); background: #a6202008; border-radius: 3cqw;
    box-shadow: 0 0 0 2px white;
    touch-action: manipulation;
}
.demo-target::after {
    content: ""; position: absolute; inset-inline: 0; top: 50%; height: 100%; min-height: 44px; transform: translateY(-50%);
}
.demo-cue {
    position: absolute; z-index: 2; bottom: calc(100% + 5px); right: 2px;
    display: block; padding: 3px 8px; color: white; background: #801513;
    border: 1px solid white; border-radius: 7px; box-shadow: 0 2px 5px #38090728;
    font-size: clamp(11px, 4cqw, 14px); font-weight: 750; line-height: 1.35;
    white-space: nowrap;
}
.demo-cue::after {
    content: ""; position: absolute; right: 12px; top: 100%;
    border: 5px solid transparent; border-top-color: #801513;
}
.demo-search .demo-cue, .demo-time .demo-cue, .scene-galata .demo-cue, .scene-stop .demo-cue {
    top: calc(100% + 5px); bottom: auto;
}
:is(.demo-search, .demo-time, .scene-galata, .scene-stop) .demo-cue::after {
    top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #801513;
}
.demo-player.needs-hint .demo-scene:not([hidden]) :is(.demo-target, .demo-time, .demo-search) {
    outline: 3px solid #b92b20; outline-offset: 3px;
}
.demo-target:active, .demo-search:active, .demo-time:active { background: #97111120; }
.scene-destination .demo-target { left: 4%; width: 92%; top: 24.8%; height: 8.5%; }
.scene-route .demo-target { left: 7%; width: 41%; top: 24.7%; height: 5%; }
.scene-galata .demo-target { left: 4%; width: 92%; top: 16.8%; height: 8.5%; }
.scene-stop .demo-target { left: 61%; width: 30%; top: 35.8%; height: 5.8%; }
.scene-summary .demo-target { left: 5%; width: 90%; top: 88%; height: 7%; }
.demo-change {
    position: absolute; top: 65%; left: 5%; right: 5%; padding: 4% 5%;
    border: 1px solid #e1c2bd; border-radius: 4cqw; background: #fffaf8;
    box-shadow: 0 4px 15px #300f1321; font-size: clamp(11px, 4.3cqw, 15px);
}
.demo-change strong { color: var(--primary-color); }
.demo-change ul { display: flex; gap: 3px 9px; flex-wrap: wrap; margin: 5px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.demo-change li { white-space: nowrap; }
.demo-updated-stop, .demo-updated-estimate, .demo-updated-fare {
    position: absolute; pointer-events: none; border-radius: 5px; background: #9711110a; border-left: 2px solid #ae5750;
}
.demo-updated-stop { left: 14%; top: 19%; width: 51%; height: 5.5%; }
.demo-updated-estimate { left: 7%; top: 36%; width: 49%; height: 5.5%; }
.demo-updated-fare { right: 18%; top: 53.9%; width: 14%; height: 4%; }
.demo-scrim { position: absolute; inset: 0; background: #17111366; }
.demo-time-sheet { padding-bottom: 13%; }
.ride-confirmed .scene-summary .demo-target { background: var(--primary-color); border-color: var(--primary-color); }
.ride-confirmed .scene-summary .demo-target::before {
    content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
    color: white; font-size: 7cqw; font-weight: 800; line-height: 1;
}
.ride-confirmed .scene-summary .demo-cue { visibility: hidden; }
.scene-done {
    display: flex; flex-direction: column; justify-content: safe center; align-items: center;
    padding: 6%; overflow-y: auto; background: #f4eeea;
}
.demo-ticket {
    position: relative; flex: none; width: 100%; padding: 8% 7% 9%; border-radius: 4cqw 4cqw 0 0;
    background: white; box-shadow: 0 7px 18px #46120f13;
}
.demo-ticket::after {
    content: ""; position: absolute; inset: 100% 0 auto; height: 5px;
    background: linear-gradient(135deg, white 25%, transparent 25%) 0 0 / 10px 10px repeat-x,
                linear-gradient(225deg, white 25%, transparent 25%) 0 0 / 10px 10px repeat-x;
}
.demo-ticket-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12%; font-size: 4.5cqw; font-weight: 800; }
.demo-ticket-head img { width: 10cqw; height: 10cqw; border-radius: 2.5cqw; }
.demo-ticket h3 { color: var(--primary-color); font-size: 8.6cqw; }
.demo-ticket-time { margin: 0; font-size: 4.9cqw; font-weight: 750; }
.demo-ticket-time i { color: var(--primary-color); }
.demo-itinerary { list-style: none; padding: 0; margin: 11% 0 5%; width: 100%; }
.demo-itinerary li { position: relative; padding: 0 0 8% 10%; font-size: 4.9cqw; }
.demo-itinerary li:not(:last-child)::before { content: ""; position: absolute; left: 3px; top: .8em; height: 100%; border-left: 1px solid #caa7a4; }
.demo-itinerary li::after { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--primary-color); border-radius: 50%; }
.demo-ticket-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 6px; margin: 0; padding-top: 6%; border-top: 1px dashed #caaaa4; font-size: 4.6cqw; font-weight: 700; }
.demo-restart { flex: none; margin-top: 6%; color: var(--primary-color); font-weight: 800; font-size: 4.8cqw; padding: 10px; }
.ride-demo :is(a,button):focus-visible { outline: 3px solid #ed9e27; outline-offset: 2px; }
.demo-dialog { border: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
    .is-launching .ride-splash {
        --splash-duration: 660ms;
        position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
        pointer-events: none; background: #faf6ef;
        animation: ride-splash-reveal var(--splash-duration) ease-out both;
    }
    .ride-splash-mark {
        position: relative; display: grid; place-items: center;
        width: clamp(84px, 30cqw, 108px); aspect-ratio: 1;
    }
    .ride-splash-mark img { width: 62%; height: auto; border-radius: 22%; }
    .ride-splash-mark::before {
        content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e6d9ce;
        border-top-color: var(--primary-color); border-right-color: var(--primary-color);
        animation: ride-splash-orbit var(--splash-duration) cubic-bezier(.35, 0, .25, 1) both;
    }
    @keyframes ride-splash-orbit { from { transform: rotate(-45deg); } to { transform: rotate(315deg); } }
    @keyframes ride-splash-reveal { 0%, 68% { opacity: 1; } 100% { opacity: 0; } }
    .demo-player.needs-hint .demo-scene:not([hidden]) :is(.demo-target, .demo-time, .demo-search) { animation: ride-tap 1.25s ease-out 2; }
    .scene-start:not([hidden]) .demo-search { animation: ride-tap 1s ease-out 1; }
    .scene-stop:not([hidden]) .demo-updated-stop { animation: ride-change .6s ease-out; }
    .scene-stop:not([hidden]) :is(.demo-updated-estimate, .demo-updated-fare) { animation: ride-change .8s .45s ease-out backwards; }
    .scene-stop:not([hidden]) .demo-change { animation: ride-sheet .25s .45s ease-out backwards; }
    .demo-time-sheet { animation: ride-sheet .24s ease-out; }
    .demo-device.is-loading::after { animation: ride-loader-appear .12s 160ms backwards, ride-loader-turn .8s linear infinite; }
    @keyframes ride-loader-turn { to { transform: rotate(1turn); } }
    @keyframes ride-tap { 65% { box-shadow: 0 0 0 9px #97111155; } }
    @keyframes ride-change { from { opacity: 0; } 45% { opacity: 1; background: #b7242436; } }
    @keyframes ride-sheet { from { transform: translateY(5%); opacity: .6; } }
}
@media (min-width: 768px) {
    .home-demo { padding-block: clamp(48px, 5.4vw, 84px); }
    .home-demo .ride-demo {
        max-width: 1440px; padding: 0 clamp(24px, 3.8vw, 56px);
        grid-template-columns: minmax(0, .78fr) minmax(0, 1.72fr);
        gap: clamp(24px, 3.75vw, 60px);
    }
    .home-demo .demo-heading { font-size: clamp(2.8rem, 4vw, 3.95rem); text-wrap: balance; }
    .home-demo .demo-intro { max-width: 34ch; font-size: 1.06rem; }
    .home-demo .demo-stage {
        --phone-width: clamp(210px, min(20vw, 31vh), 258px);
        --frame-gap: clamp(18px, 2vw, 32px);
        position: relative; isolation: isolate; display: grid; align-items: center;
        grid-template-columns: minmax(0, 1fr) calc(var(--phone-width) + 2 * var(--frame-gap));
        overflow: hidden; border: 1px solid #d9d1c2; border-radius: var(--radius);
        background: #f8f4e9; box-shadow: 0 18px 48px #4d3d2d14;
    }
    .home-demo .galata-map {
        grid-area: 1 / 1; width: 100%; height: auto; overflow: visible; pointer-events: none;
        margin-bottom: 24px;
    }
    .galata-map:not(.has-stop) .galata-cab { transform: translate(-166px, 20px); }
    .galata-map.has-stop .galata-stop-ring { opacity: 1; }
    .galata-water-label {
        display: inline; font: italic 10px Georgia, serif; letter-spacing: .08em;
        fill: #4b6a6b; stroke: #c5dbd7; stroke-width: 3px; paint-order: stroke;
    }
    .home-demo .demo-player {
        grid-area: 1 / 1 / 2 / -1; grid-template-columns: inherit; gap: var(--frame-gap) 0;
        padding: var(--frame-gap) 0 0; background: none; border-radius: 0; box-shadow: none;
    }
    .home-demo .demo-player::before { content: none; }
    .home-demo .demo-device {
        grid-column: 2; width: calc(var(--phone-width) - 12px);
        box-shadow: 0 2px 4px #493a3426, 0 15px 28px #493a3436;
    }
    .home-demo .demo-toolbar { inset: var(--frame-gap) auto auto var(--frame-gap); }
    .home-demo .demo-hint {
        grid-column: 1 / -1; width: 100%; max-width: none; min-height: 0; padding: 12px 20px;
        color: #563e34; background: #fffcf5; border-top: 1px solid #d9d1c2;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .home-demo .ride-demo { grid-template-columns: minmax(0, 1fr); }
    .home-demo .demo-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; }
    .home-demo .demo-copy > :not(.demo-launch) { grid-column: 1; }
    .home-demo .eyebrow, .home-demo .demo-heading { margin-bottom: 12px; }
    .home-demo .demo-intro { margin: 0; max-width: 46ch; }
    .home-demo .demo-launch { grid-area: 2 / 2 / 4; align-self: center; }
}
@media (max-width: 767px) {
    .ride-demo { display: block; padding: 28px 20px; }
    .demo-copy .demo-heading { font-size: clamp(2.4rem, 10vw, 3.8rem); }
    .demo-stage > .demo-player { margin-top: 20px; }
    .ride-demo.is-ready .demo-stage > .demo-player { display: none; }
    .home-demo { padding-block: 12px; }
    .home-demo .ride-demo { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 560px; }
    .home-demo .demo-copy, .home-demo .demo-stage { display: contents; }
    .home-demo .demo-intro { display: none; }
    .home-demo .eyebrow { margin-bottom: 12px; }
    .home-demo .demo-heading {
        margin-bottom: 18px; font-size: clamp(2rem, 8.8vw, 3rem); line-height: 1.08; text-wrap: balance;
    }
    .galata-map {
        order: 1; width: 100%; height: auto; margin-bottom: 16px; overflow: hidden;
        border: 1px solid #ded5c6; border-radius: 18px; background: #f8f4e9;
    }
    .home-demo .demo-launch { order: 2; width: 100%; }
    .home-demo .demo-stage > .demo-player { order: 3; }
}
.demo-dialog[open] {
    position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
    background: white; overscroll-behavior: contain;
}
body:has(.demo-dialog[open]) { overflow: hidden; }
.demo-dialog .demo-player {
    height: 100%; border-radius: 0; background: white; box-shadow: none; gap: 0;
    grid-template-rows: auto minmax(0, 1fr); align-items: stretch;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.demo-dialog .demo-player::before { display: none; }
.demo-dialog [data-close] { display: grid; }
.demo-dialog .demo-device {
    width: 100%; height: 100%; min-height: 0; aspect-ratio: auto;
    border: none; border-radius: 0; box-shadow: none;
}
@media (max-width: 767px) {
    .demo-player .demo-toolbar {
        position: static; width: 100%; display: grid; align-items: center;
        grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 7px 10px;
        padding: 8px max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
        background: #fffcf9; border-bottom: 1px solid #e6dad3;
    }
    .demo-toolbar :is(a,button) {
        width: 44px; height: 44px; font-size: 1rem; color: #653633;
        border: 1px solid #e5d7cf; border-radius: 14px; background: #fff;
    }
    .demo-toolbar :is(a,button):active { background: #f2e5df; }
    .demo-toolbar [data-back] { grid-area: 1 / 1; }
    .demo-toolbar [data-close] { grid-area: 1 / 3; background: #f6efeb; }
    .demo-toolbar [data-back][hidden] + .demo-toolbar-brand {
        grid-area: 1 / 1; display: block; place-self: center; border-radius: 10px;
    }
    .demo-toolbar .demo-progress {
        grid-area: 1 / 2; display: grid; grid-template-columns: minmax(0, 1fr) auto;
        align-items: center; gap: 2px 6px; line-height: 1.2;
    }
    .demo-progress-label { grid-area: 1 / 1; color: #795650; font-size: .7rem; font-weight: 650; letter-spacing: .035em; }
    #demo-step-title { grid-area: 2 / 1; color: #302323; font-size: 1rem; overflow-wrap: anywhere; }
    .demo-progress [data-step-count] {
        grid-area: 1 / 2 / 3; padding: 4px 7px; border-radius: 8px; background: #f5e7e2;
        color: #782a28; font-size: .76rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap;
    }
    .demo-toolbar progress {
        grid-area: 2 / 1 / 3 / -1; display: block; width: 100%; height: 4px; border: 0; border-radius: 4px;
        overflow: hidden; mask: linear-gradient(to right, #000 calc(100% - 3px), transparent 0) 0 0 / calc(100% / var(--steps)) 100% repeat-x;
        appearance: none; background: #eadcda; color: var(--primary-color);
    }
    .demo-toolbar progress::-webkit-progress-bar { background: #eadcda; }
    .demo-toolbar progress::-webkit-progress-value { background: var(--primary-color); }
    .demo-toolbar progress::-moz-progress-bar { background: var(--primary-color); }
    .demo-stage > .demo-player { padding: 12px; background: #faf6f4; }
    .demo-stage > .demo-player .demo-device {
        width: 100%; height: clamp(440px, 80svh, 680px); aspect-ratio: auto; border: 0; border-radius: 16px;
    }
    .demo-player .demo-hint, .demo-player .demo-cue,
    .demo-scene:has(> .mobile-ride-step) > :not(.mobile-ride-step) { display: none; }
    .mobile-ride-step { display: flex; flex-direction: column; height: 100%; overflow-y: auto; background: #eee9e1; }
    .ride-step-map { position: relative; flex: 1 0 110px; overflow: hidden; }
    .ride-step-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .ride-step-sheet {
        position: relative; flex: none; margin-top: -14px; padding: 22px clamp(16px, 5vw, 28px) 24px;
        background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -4px 16px #3e281914;
    }
    .ride-step-sheet h3, .demo-start-sheet h3 { font-size: clamp(1.45rem, 6.2vw, 1.9rem); margin: 0 0 16px; }
    .ride-query, .ride-result, .ride-step-action { display: flex; align-items: center; gap: 12px; }
    .ride-query {
        padding: 11px 14px; border: 1px solid #ded7d4; border-radius: 12px;
        background: #faf8f7; color: #645b57; font-size: 1rem;
    }
    .ride-result {
        min-height: 68px; padding: 12px; margin-top: 12px; border: 1px solid #dcb4af; border-radius: 14px;
        background: #fcf1ee; color: #402b29;
    }
    .ride-place-icon { flex: none; display: grid; place-items: center; width: 34px; height: 38px; color: var(--primary-color); }
    .ride-result strong, .ride-result small { display: block; line-height: 1.35; }
    .ride-result small { margin-top: 3px; color: #6c5750; font-size: .83rem; }
    .ride-result-mark { margin-inline-start: auto; color: var(--primary-color); font-size: 1.2rem; }
    .ride-result-mark::before { content: "→"; }
    .place-selected .ride-result-mark::before { content: "✓"; }
    .place-selected .ride-result { background: #f2e0da; }
    .ride-stops { list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 650; }
    .ride-stops li { position: relative; padding: 0 0 9px 22px; line-height: 1.4; }
    .ride-stops li:not(:last-child)::before { content: ""; position: absolute; top: .65em; bottom: -.65em; left: 4px; border-left: 1px solid #c6b5b0; }
    .ride-stops li::after { content: ""; position: absolute; top: .45em; left: 0; width: 9px; height: 9px; border: 2px solid #755a54; border-radius: 50%; background: white; }
    .ride-stops .ride-stop-added::after, .ride-stops li:last-child::after { background: var(--primary-color); border-color: var(--primary-color); }
    .ride-stops li:last-child::after { border-radius: 2px; }
    .ride-stop-feedback, .ride-booking { margin: 0 0 14px; color: #753936; font-size: .88rem; font-weight: 650; }
    .ride-estimate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0 13px; border-top: 1px solid var(--line); font-size: .92rem; }
    .ride-estimate strong { font-size: 1.1rem; }
    .ride-step-action {
        min-height: 48px; padding: 12px 16px; justify-content: space-between; border-radius: 12px;
        font-size: 1rem; font-weight: 750; color: white; background: var(--primary-color);
    }
    .ride-step-action:hover { color: white; }
    .demo-start-sheet { min-height: 0; padding: 24px 5%; }
    .demo-start-sheet img { width: 38px; margin-bottom: 14px; }
    .demo-start-sheet p { font-size: .95rem; margin-bottom: 16px; }
    .demo-player .demo-start-sheet .demo-search { min-height: 48px; padding: 12px 14px; font-size: 1rem; animation: none; }
    .demo-player.needs-hint .scene-start:not([hidden]) .demo-search:not(:focus-visible) { outline: 0; }
    .demo-start-sheet .demo-search::after { content: "→"; margin-inline-start: auto; }
    .scene-start .demo-map { bottom: 0; }
    .scene-done .demo-ticket { max-width: 420px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .demo-dialog[open]:has(.is-launching) {
        transform-origin: center bottom;
        animation: demo-open 340ms cubic-bezier(.2, .75, .2, 1);
    }
    .demo-dialog[open]:has(.is-launching)::backdrop { animation: demo-backdrop-in 260ms ease-out; }
    @keyframes demo-open {
        from { opacity: 0; transform: translateY(min(10dvh, 72px)) scale(.985); }
        to { opacity: 1; transform: none; }
    }
    @keyframes demo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
}
