@font-face {
    font-family: "Sue Ellen Francisco";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("sue-ellen-francisco.ttf") format("truetype");
}

:root {
    --paper: #fffdf8;
    --ink: #161411;
    --muted: #726d65;
    --line: rgba(22, 20, 17, 0.16);
    --font-hand: "Sue Ellen Francisco", "Helvetica Neue", Arial, sans-serif;
    --font-ui: "Helvetica Neue", Arial, sans-serif;
    --motion-art-width: min(480px, 64vw);
    --motion-whim-width: min(112px, 18vw);
    --motion-whim-offset: clamp(20px, 3.3vw, 42px);
    --motion-vehicle-width: min(232px, 30vw);
    --motion-car-width: min(172px, 23vw);
    --motion-line-height: clamp(18px, 2.25vw, 34px);
    --motion-mobile-art-width: 72vw;
    --motion-mobile-whim-width: min(82px, 21vw);
    --motion-mobile-vehicle-width: min(168px, 38vw);
    --motion-mobile-line-height: clamp(16px, 3.6vw, 28px);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
    background: var(--paper);
}

body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-hand);
    letter-spacing: 0;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.app-shell {
    height: 100svh;
    min-height: 0;
    padding: 8px clamp(14px, 2.6vw, 34px) 12px;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}

.primary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink);
    line-height: 1;
    white-space: nowrap;
    padding: 9px 24px 10px;
    background: var(--ink);
    color: var(--paper);
    font-size: 31px;
}


.app-main {
    width: min(1160px, 100%);
    min-height: 0;
    height: 100%;
    margin: 0 auto;
    display: grid;
}

.screen {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    animation: fade-in 220ms ease both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1,
h2,
p {
    margin: 0;
    font-weight: 400;
}

.hero-copy,
.screen-title {
    margin-bottom: clamp(8px, 2vh, 18px);
    padding-top: clamp(8px, 1.2vh, 16px);
    text-align: center;
}

.hero-copy h1,
.screen-title h1 {
    font-size: clamp(34px, 5.2vw, 68px);
    line-height: 1.08;
}

.hero-note {
    margin-top: 8px;
    color: rgba(22, 20, 17, 0.58);
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 0.95;
}

.home-screen {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.home-layout {
    isolation: isolate;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 0.88fr) minmax(360px, 0.82fr) minmax(250px, 0.72fr);
    gap: clamp(6px, 1.1vw, 18px);
    align-items: center;
}

.ride-carousel {
    position: relative;
    z-index: 10;
    min-height: 0;
    display: grid;
    gap: 0;
}

.ride-card,
.choice-card {
    background: transparent;
    color: var(--ink);
    transition: transform 150ms ease, opacity 150ms ease;
}

.ride-card {
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: end;
    gap: 0;
    padding: 0;
    text-align: right;
    opacity: 0.68;
}

.ride-card.is-selected {
    opacity: 1;
}

.ferry-ticket-link {
    justify-self: center;
    margin-top: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
}

.ferry-ticket-link img {
    width: min(170px, 38vw);
    max-height: 120px;
    object-fit: contain;
}

.ride-card img {
    width: 132px;
    max-height: 132px;
    object-fit: contain;
    justify-self: end;
}


.ride-card img.ride-icon-ferry {
    width: 160px;
    max-height: 150px;
}

.ride-card img.ride-icon-plane {
    width: 178px;
    max-height: 150px;
}

.ride-title {
    display: none;
}

.choice-title {
    display: block;
    font-size: clamp(22px, 2.45vw, 32px);
    line-height: 1.18;
}

.ride-action {
    display: none;
}

.mobile-swipe-dots {
    display: none;
}

.journey-stage {
    pointer-events: none;
    position: relative;
    min-height: 0;
    height: min(100%, 330px);
    display: grid;
    place-items: center;
}

.journey-stage::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 57%;
    border-top: 2px dashed rgba(22, 20, 17, 0.17);
    transform: rotate(-3deg);
}

.stage-vehicle,
.stage-traveller,
.stage-destination {
    position: absolute;
    object-fit: contain;
    filter: none;
}

.stage-vehicle {
    left: 6%;
    top: 14%;
    width: min(31%, 190px);
}

.stage-traveller {
    position: relative;
    width: min(35vw, 250px);
    z-index: 1;
}

.stage-destination {
    right: 5%;
    bottom: 14%;
    width: min(34%, 220px);
}

.journey-stage .primary-button {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    transform: translateX(-50%);
}

.journey-stage .primary-button:hover {
    transform: translateX(-50%) translateY(-1px);
}

.quick-panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(12px, 2.2vw, 26px);
    justify-items: center;
    text-align: center;
    transform: translateX(clamp(-150px, -7vw, -70px));
}

.destination-link {
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.14;
}

.destination-link img {
    width: min(72%, 150px);
}


.detail-screen {
    min-height: 0;
    height: 100%;
    display: grid;
    align-content: center;
}

.station-choice-screen {
    min-height: 0;
    height: 100%;
    align-content: start;
    row-gap: clamp(14px, 2.4vh, 26px);
}

.station-choice-screen .screen-title {
    align-self: start;
    margin-bottom: 0;
}

.station-choice-screen .choice-grid {
    align-self: start;
}

.station-choice-screen .ferry-ticket-link {
    align-self: start;
    margin-top: -4px;
    margin-bottom: 6px;
}

.content-card {
    width: min(900px, 100%);
    margin: 0 auto;
}

.route-card,
.image-card,
.ferry-card,
.airport-card,
.soon-card {
    display: grid;
    gap: clamp(18px, 3vw, 34px);
    justify-items: center;
    text-align: center;
}

.route-strip {
    width: min(660px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 4vw, 52px);
    align-items: end;
}

.route-strip img {
    width: min(100%, 190px);
    max-height: 205px;
    object-fit: contain;
    margin: 0 auto;
}

.instruction-copy,
.soon-card p,
.train-connection {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
}

.instruction-copy {
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.34;
    display: grid;
    gap: 5px;
}

.instruction-copy strong {
    color: var(--ink);
    font-weight: 700;
}

.choice-grid {
    width: min(920px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(24px, 4vw, 58px);
    align-items: end;
}

.choice-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.choice-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.choice-card {
    min-height: 165px;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 11px;
    text-align: center;
}

.choice-card img {
    width: min(70%, 165px);
    max-height: 125px;
    object-fit: contain;
}

.choice-note {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 14px;
}

.direction-map {
    width: min(100%, 760px);
    margin: 0 auto;
}

.direction-map.is-narrow {
    width: min(100%, 520px);
}

.ferry-stations {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: clamp(16px, 3vw, 36px);
    align-items: end;
}

.station-tile,
.ticket-tile {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.86;
}

.station-tile img {
    width: min(88%, 260px);
}

.ticket-tile img {
    width: min(78%, 160px);
}

.ferry-map {
    width: min(100%, 760px);
}

.airport-flow,
.train-connection {
    width: min(920px, 100%);
    display: grid;
    align-items: center;
    justify-items: center;
}

.airport-flow {
    grid-template-columns: 1fr 0.85fr 0.75fr;
    gap: clamp(16px, 4vw, 44px);
}

.flow-item {
    display: grid;
    justify-items: center;
    gap: 7px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 0.86;
}

.airport-plane {
    width: min(100%, 290px);
}

.airport-destination {
    width: min(100%, 150px);
}

.flow-arrow {
    display: grid;
    justify-items: center;
}

.flow-arrow img:first-child {
    width: min(62%, 135px);
}

.flow-arrow img:last-child {
    width: min(88%, 220px);
}

.train-connection {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    margin-top: -8px;
}

.train-connection div img {
    width: min(24vw, 135px);
    margin: 0 auto 3px;
}

.angle-arrow {
    width: min(20vw, 150px);
}

.angle-arrow.left {
    transform: rotate(41deg);
}

.angle-arrow.right {
    transform: rotate(312deg);
}

.soon-card img {
    width: min(80vw, 340px);
}

.floating-back-button {
    left: clamp(14px, 2.4vw, 34px);
    top: clamp(14px, 2.4vw, 34px);
}

.floating-call-button {
    bottom: clamp(14px, 2.4vw, 34px);
}

.floating-map-button {
    top: clamp(14px, 2.4vw, 34px);
    bottom: auto;
    text-decoration: none;
}

.floating-back-button,
.floating-map-button,
.floating-credits-button,
.floating-call-button {
    position: fixed;
    right: clamp(14px, 2.4vw, 34px);
    z-index: 55;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 11px 8px 13px;
    border: 1px solid rgba(22, 20, 17, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--ink);
    font-size: 22px;
    line-height: 1.16;
    box-shadow: 0 14px 34px rgba(22, 20, 17, 0.12);
    overflow: visible;
}

.floating-credits-button {
    top: auto;
    bottom: clamp(14px, 2.4vw, 34px);
    right: clamp(154px, 11vw, 202px);
}

.floating-back-button {
    right: auto;
    width: 52px;
    padding: 0;
    justify-content: center;
}

.floating-back-arrow {
    width: 15px;
    aspect-ratio: 1;
    border-left: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    border-radius: 3px;
    transform: translateX(3px) rotate(45deg);
}

.floating-call-button img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}


.credits-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(255, 253, 248, 0.72);
}

.credits-modal {
    position: relative;
    width: min(430px, calc(100vw - 40px));
    padding: 28px 32px 30px;
    border: 1px solid rgba(22, 20, 17, 0.16);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(22, 20, 17, 0.18);
    text-align: center;
}

.credits-modal h2 {
    margin: 0 0 12px;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 0.9;
}

.credits-modal p {
    margin: 8px 0;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.35;
}

.credits-modal a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.credits-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 32px;
    line-height: 1;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 40;
    width: min(540px, calc(100% - 24px));
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--ink);
    color: var(--paper);
    transform: translateX(-50%);
}

.bottom-nav button {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 2px 4px;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    line-height: 0.9;
}

.bottom-nav button.is-active {
    color: var(--ink);
    background: rgba(22, 20, 17, 0.04);
}

.bottom-nav img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

@media (max-width: 920px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ride-carousel {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ride-card {
        flex: 0 0 130px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 7px;
        text-align: center;
        scroll-snap-align: center;
    }

    .ride-card img {
        width: 78px;
    }

    .ride-title {
        font-size: 34px;
    }

    .quick-panel {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .journey-stage {
        min-height: min(320px, 45vh);
    }
}

@media (max-width: 680px) {
    .station-choice-screen {
        min-height: 0;
        height: 100%;
        align-content: start;
        row-gap: 12px;
    }

    .station-choice-screen .screen-title {
        margin-bottom: 0;
    }

    .station-choice-screen .choice-grid {
        align-self: start;
    }

    .app-shell {
        padding: 10px 16px 18px;
    }

    .floating-back-button,
    .floating-map-button,
    .floating-call-button {
        right: 12px;
        bottom: 12px;
    }



    .floating-back-button,
    .floating-map-button {
        top: 12px;
        bottom: auto;
    }

    .floating-credits-button {
        top: auto;
        right: 136px;
        bottom: 12px;
        min-height: 50px;
        padding: 5px 12px 7px;
        font-size: 21px;
    }


    .floating-call-button {
        min-height: 50px;
        gap: 8px;
        padding: 5px 9px 7px 12px;
        font-size: 21px;
    }

    .floating-call-button img {
        width: 40px;
        height: 40px;
    }


    .hero-copy h1,
    .screen-title h1 {
        font-size: clamp(34px, 11vw, 54px);
    }

    .journey-stage {
        min-height: 0;
        height: 100%;
    }

    .stage-vehicle {
        left: 2%;
        top: 12%;
        width: 37%;
    }

    .stage-traveller {
        width: 43%;
    }

    .stage-destination {
        right: 0;
        bottom: 18%;
        width: 37%;
    }

    .quick-panel,
    .choice-grid.two,
    .choice-grid.three,
    .ferry-stations,
    .airport-flow {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 170px;
    }

    .home-screen {
        min-height: 0;
        height: 100%;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .home-screen .hero-copy {
        margin-bottom: 14px;
    }

    .home-layout {
        position: relative;
        min-height: 0;
        display: block;
    }

    .home-layout .journey-stage,
    .home-layout .quick-panel {
        display: none;
    }

    .ride-carousel {
        position: relative;
        width: calc(100vw - 16px);
        margin-inline: -8px;
        padding: 6px 8px 18px;
        gap: 4px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ride-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-swipe-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 6px;
    }

    .mobile-swipe-dots button {
        width: 9px;
        padding: 0;
        height: 9px;
        border-radius: 50%;
        border: 1px solid rgba(22, 20, 17, 0.36);
        background: rgba(22, 20, 17, 0.08);
    }

    .mobile-swipe-dots button.is-active {
        background: var(--ink);
        border-color: var(--ink);
    }

    .ride-card img,
    .ride-card .single-vehicle {
        width: min(205px, 58vw);
        max-height: 205px;
        justify-self: center;
    }


    .ride-card img.ride-icon-ferry,
    .ride-card img.ride-icon-plane {
        width: min(205px, 58vw);
        max-height: 205px;
        justify-self: center;
    }

    .ride-title {
        display: none;
    }

    .ride-action {
        display: none;
        min-width: 138px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 8px 24px 10px;
        border-radius: 999px;
        background: var(--ink);
        color: var(--paper);
        font-size: 2rem;
        line-height: 0.9;
    }

    .car-card {
        grid-template-rows: minmax(0, 1fr);
    }

    .car-vehicle-options {
        width: min(200px, 60vw);
        grid-template-columns: 1fr;
        align-self: center;
        gap: 14px;
    }

    .car-vehicle-button {
        min-height: 92px;
        border: 1px solid rgba(22, 20, 17, 0.1);
        border-radius: 20px;
        background: rgba(255, 253, 248, 0.72);
    }

    .car-card .ride-title {
        display: none;
        padding-left: 0;
    }

    .car-card .car-vehicle-options {
        width: min(200px, 60vw);
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 14px;
    }

    .car-card .car-vehicle-button {
        width: 100%;
        min-height: 92px;
    }

    .car-vehicle-button img {
        width: min(118px, 34vw);
    }

    .route-strip {
        gap: 8px;
    }

    .airport-flow {
        gap: 25px;
    }

    .train-connection {
        grid-template-columns: 0.8fr 1fr 0.8fr;
        margin-top: 0;
    }

}

.travel-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(255, 253, 248, 0.96);
    animation: overlay-in 180ms ease both;
}

.travel-scene {
    width: min(560px, 86vw);
    min-height: 330px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.travel-scene p {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    font-size: clamp(38px, 8vw, 64px);
    line-height: 0.9;
    white-space: nowrap;
}

.car-destination-screen {
    align-content: center;
    padding-top: clamp(42px, 8vh, 76px);
    padding-bottom: clamp(12px, 2vh, 22px);
}

.car-arrival {
    width: min(720px, 100%);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: clamp(7px, 1.5vh, 15px);
    text-align: center;
}

.arrival-house {
    width: min(52vw, 38vh, 330px);
}

.car-copy {
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.34;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}


@media (max-width: 680px) {
    .travel-scene {
        min-height: 290px;
    }

    .arrival-house {
        width: min(82vw, 360px);
    }
}

.stage-traveller {
    display: none;
}

.stage-whim,
.stage-arrow,
.travel-whim,
.travel-arrow {
    position: absolute;
    object-fit: contain;
    filter: none;
}

.stage-whim {
    left: 39%;
    top: 34%;
    z-index: 2;
    width: min(18vw, 118px);
    animation: soft-bob 2.8s ease-in-out infinite;
}

.stage-arrow {
    left: 31%;
    top: 54%;
    z-index: 1;
    width: min(34vw, 260px);
}

.travel-whim {
    left: 50%;
    top: 22%;
    width: min(118px, 24vw);
    transform: translateX(-50%);
    animation: travel-whim 2.05s ease-in-out both;
}

.travel-arrow {
    left: 50%;
    top: 54%;
    width: min(360px, 72vw);
    transform: translateX(-50%);
    animation: travel-arrow 2.05s ease-in-out both;
}

@keyframes soft-bob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes travel-whim {
    0% { opacity: 0; transform: translateX(-58vw) translateY(20px) rotate(-8deg) scale(0.88); }
    16% { opacity: 1; }
    45% { transform: translateX(-16vw) translateY(-4px) rotate(3deg) scale(1); }
    72% { opacity: 1; transform: translateX(14vw) translateY(4px) rotate(-2deg) scale(1.03); }
    100% { opacity: 0; transform: translateX(58vw) translateY(16px) rotate(8deg) scale(0.9); }
}

@keyframes travel-arrow {
    0% { opacity: 0; transform: translateX(-58vw) scaleX(0.82); }
    14% { opacity: 1; }
    50% { transform: translateX(-50%) scaleX(1); }
    82% { opacity: 1; }
    100% { opacity: 0; transform: translateX(18vw) scaleX(0.9); }
}

@media (max-width: 680px) {
    .stage-whim {
        left: 38%;
        top: 31%;
        width: min(25vw, 96px);
    }

    .stage-arrow {
        left: 25%;
        top: 54%;
        width: min(50vw, 220px);
    }
}

.vehicle-cluster {
    display: grid;
    justify-items: center;
    align-items: center;
}

.vehicle-cluster img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ride-icon.vehicle-cluster {
    width: 76px;
    gap: 1px;
}

.ride-icon.vehicle-cluster img:nth-child(1) {
    width: 58px;
}

.ride-icon.vehicle-cluster img:nth-child(2) {
    width: 54px;
}

.ride-icon.vehicle-cluster img:nth-child(3) {
    width: 66px;
}

.stage-vehicle.vehicle-cluster {
    position: absolute;
    left: 6%;
    top: 11%;
    width: min(31%, 190px);
    gap: 5px;
}

.stage-vehicle.vehicle-cluster img:nth-child(1) {
    width: 70%;
}

.stage-vehicle.vehicle-cluster img:nth-child(2) {
    width: 66%;
}

.stage-vehicle.vehicle-cluster img:nth-child(3) {
    width: 82%;
}

.nav-icon.vehicle-cluster {
    width: 31px;
    height: 31px;
    gap: 0;
    overflow: visible;
}

.nav-icon.vehicle-cluster img:nth-child(1) {
    width: 25px;
}

.nav-icon.vehicle-cluster img:nth-child(2) {
    width: 24px;
    margin-top: -3px;
}

.nav-icon.vehicle-cluster img:nth-child(3) {
    width: 28px;
    margin-top: -3px;
}

@media (max-width: 680px) {
    .ride-icon.vehicle-cluster {
        width: 78px;
    }

    .stage-vehicle.vehicle-cluster {
        left: 2%;
        top: 10%;
        width: 37%;
    }
}

.travel-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(28px, 7vw, 88px);
    background: var(--paper);
}

.travel-fullscreen-scene {
    width: min(900px, 92vw);
    min-height: min(620px, 78vh);
    display: grid;
    grid-template-rows: 1fr auto 0.55fr;
    align-items: center;
    justify-items: center;
}

.travel-top-row {
    width: min(760px, 86vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: clamp(22px, 8vw, 96px);
}

.travel-whim,
.travel-arrow {
    position: static;
    transform: none;
}

.travel-whim {
    justify-self: end;
    width: min(180px, 30vw);
    animation: loading-whim 2.2s ease-in-out both;
}

.travel-vehicle {
    justify-self: start;
    width: min(230px, 34vw);
    animation: loading-vehicle 2.2s ease-in-out both;
}

.travel-vehicle.vehicle-cluster {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.travel-vehicle.vehicle-cluster img:nth-child(1) {
    width: 72%;
}

.travel-vehicle.vehicle-cluster img:nth-child(2) {
    width: 68%;
}

.travel-vehicle.vehicle-cluster img:nth-child(3) {
    width: 84%;
}

.travel-arrow {
    grid-row: 2;
    width: min(620px, 82vw);
    animation: loading-arrow 2.2s ease-in-out both;
}

.travel-scene,
.travel-scene p {
    display: none;
}

@keyframes loading-whim {
    0% { opacity: 0; transform: translateX(-12vw) translateY(18px) rotate(-7deg) scale(0.9); }
    18% { opacity: 1; }
    50% { transform: translateX(0) translateY(-10px) rotate(2deg) scale(1.03); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translateX(8vw) translateY(-18px) rotate(5deg) scale(0.96); }
}

@keyframes loading-vehicle {
    0% { opacity: 0; transform: translateX(-8vw) translateY(22px) rotate(-3deg) scale(0.92); }
    18% { opacity: 1; }
    48% { transform: translateX(0) translateY(-4px) rotate(1deg) scale(1); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translateX(12vw) translateY(8px) rotate(3deg) scale(0.96); }
}

@keyframes loading-arrow {
    0% { opacity: 0; transform: translateX(-18vw) scaleX(0.78); }
    20% { opacity: 1; }
    50% { transform: translateX(0) scaleX(1); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translateX(16vw) scaleX(0.92); }
}

@media (max-width: 680px) {
    .travel-fullscreen-scene {
        width: 100%;
        min-height: 74vh;
        grid-template-rows: 1fr auto 0.45fr;
    }

    .travel-top-row {
        width: 100%;
        gap: 18px;
    }

    .travel-whim {
        width: min(138px, 36vw);
    }

    .travel-vehicle {
        width: min(170px, 40vw);
    }

    .travel-arrow {
        width: min(420px, 88vw);
    }
}

.car-card {
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 8px;
}

.car-card .ride-title {
    padding-left: 4px;
}

.car-vehicle-options {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 2px;
}

.car-vehicle-button {
    width: 82px;
    min-height: 68px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    opacity: 0.72;
    transition: opacity 150ms ease, transform 150ms ease;
}

.car-vehicle-button:hover,
.car-vehicle-button.is-selected {
    opacity: 1;
    transform: translateY(-1px);
}

.car-vehicle-button img {
    max-width: 100%;
    max-height: 82px;
    object-fit: contain;
}

.single-vehicle {
    object-fit: contain;
}

.stage-vehicle.single-vehicle {
    position: absolute;
    left: 6%;
    top: 14%;
    width: min(31%, 190px);
}

.travel-vehicle.single-vehicle {
    width: min(230px, 34vw);
}

.nav-icon.single-vehicle {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

@media (max-width: 920px) {
    .car-card {
        align-content: center;
        justify-items: center;
        min-width: 170px;
    }

    .car-card .ride-title {
        padding-left: 0;
    }

    .car-vehicle-options {
        gap: 8px;
    }

    .car-vehicle-button {
        width: 46px;
        min-height: 40px;
    }
}

@media (max-width: 680px) {
    .stage-vehicle.single-vehicle {
        left: 2%;
        top: 12%;
        width: 37%;
    }

    .travel-vehicle.single-vehicle {
        width: min(170px, 40vw);
    }
}

.travel-fullscreen-scene {
    width: 100vw;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: end;
    justify-items: center;
    overflow: hidden;
}

.travel-top-row,
.travel-arrow {
    display: none;
}

.travel-rider {
    grid-row: 1;
    width: min(520px, 82vw);
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: end;
    justify-items: center;
    gap: clamp(12px, 5vw, 54px);
    transform-origin: 50% 100%;
    animation: rider-drive 2.2s ease-in-out both, rider-rattle 210ms steps(2, end) infinite;
}

.travel-rider .travel-whim,
.travel-rider .travel-vehicle {
    position: static;
    transform: none;
    animation: none;
}

.travel-rider .travel-whim {
    justify-self: end;
    width: min(145px, 28vw);
    margin-bottom: clamp(22px, 5vw, 42px);
}

.travel-rider .travel-vehicle {
    justify-self: start;
    width: min(220px, 36vw);
}

.travel-rider .travel-vehicle.vehicle-cluster {
    width: min(230px, 38vw);
}

.travel-rider .travel-vehicle.vehicle-cluster img:nth-child(1) {
    width: 72%;
}

.travel-rider .travel-vehicle.vehicle-cluster img:nth-child(2) {
    width: 68%;
}

.travel-rider .travel-vehicle.vehicle-cluster img:nth-child(3) {
    width: 84%;
}

.travel-road-image {
    grid-row: 2;
    width: max(1280px, 112vw);
    max-width: none;
    height: auto;
    margin-top: clamp(8px, 2vw, 20px);
    animation: road-slide 2.2s linear both;
}

@keyframes rider-drive {
    0% { opacity: 0; transform: translateX(-28vw) translateY(14px) rotate(-2deg); }
    12% { opacity: 1; }
    48% { transform: translateX(0) translateY(-2px) rotate(0deg); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translateX(30vw) translateY(10px) rotate(2deg); }
}

@keyframes rider-rattle {
    0% { filter: none; }
    25% { filter: none; transform: translateY(-1px); }
    50% { filter: none; transform: translateY(1px); }
    75% { filter: none; transform: translateY(-0.5px); }
    100% { filter: none; transform: translateY(0); }
}

@keyframes road-slide {
    0% { opacity: 0; transform: translateX(10vw); }
    12% { opacity: 1; }
    50% { transform: translateX(0); }
    88% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-10vw); }
}

@media (max-width: 680px) {
    .travel-rider {
        width: 92vw;
        gap: 10px;
    }

    .travel-rider .travel-whim {
        width: min(118px, 33vw);
        margin-bottom: 28px;
    }

    .travel-rider .travel-vehicle,
    .travel-rider .travel-vehicle.vehicle-cluster {
        width: min(170px, 42vw);
    }

    .travel-road-image {
        width: max(1120px, 160vw);
    }
}

.travel-rider-drive {
    grid-row: 1;
    width: min(520px, 82vw);
    display: grid;
    justify-items: center;
    align-items: end;
    animation: rider-drive 2.2s ease-in-out both;
}

.travel-rider {
    grid-row: auto;
    width: 100%;
    animation: rider-rattle 180ms steps(2, end) infinite;
}

@media (max-width: 680px) {
    .travel-rider-drive {
        width: 92vw;
    }
}

.travel-overlay {
    overflow: hidden;
}

.travel-fullscreen-scene {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    grid-template-rows: 1fr;
}

.travel-rider-drive {
    position: relative;
    z-index: 2;
    align-self: center;
    margin-bottom: clamp(70px, 13vh, 140px);
}

.travel-road-image {
    position: fixed;
    left: 50%;
    top: 56%;
    z-index: 1;
    width: 140vw;
    max-width: none;
    min-width: 140vw;
    height: clamp(22px, 2.8vw, 42px);
    object-fit: fill;
    object-position: center;
    margin: 0;
    transform: translateX(-50%);
    animation: road-full-slide 2.2s linear both;
}

@keyframes road-full-slide {
    0% { opacity: 0; transform: translateX(-42%) scaleX(1.04); }
    12% { opacity: 1; }
    50% { transform: translateX(-50%) scaleX(1.08); }
    88% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-58%) scaleX(1.04); }
}

@media (max-width: 680px) {
    .travel-road-image {
        width: 180vw;
        min-width: 180vw;
        height: clamp(20px, 5vw, 36px);
    }

    .travel-rider-drive {
        margin-bottom: clamp(55px, 11vh, 100px);
    }
}

.travel-rider-drive {
    align-self: center;
    margin-bottom: 0;
    transform: translateY(clamp(48px, 10vh, 120px));
}

.travel-rider {
    width: var(--motion-art-width);
}

.travel-rider .travel-whim {
    width: var(--motion-whim-width);
    margin-bottom: var(--motion-whim-offset);
}

.travel-rider .travel-vehicle,
.travel-rider .travel-vehicle.single-vehicle {
    width: var(--motion-vehicle-width);
}

.travel-rider .travel-vehicle.vehicle-cluster {
    width: var(--motion-art-width);
}

.travel-road-image {
    top: calc(50% + clamp(96px, 17vh, 178px));
    height: var(--motion-line-height);
}

@media (max-width: 680px) {
    .travel-rider-drive {
        transform: translateY(clamp(38px, 9vh, 78px));
    }

    .travel-rider {
        width: var(--motion-mobile-art-width);
    }

    .travel-rider .travel-whim {
        width: var(--motion-mobile-whim-width);
        margin-bottom: 22px;
    }

    .travel-rider .travel-vehicle,
    .travel-rider .travel-vehicle.single-vehicle,
    .travel-rider .travel-vehicle.vehicle-cluster {
        width: var(--motion-mobile-vehicle-width);
    }

    .travel-road-image {
        top: calc(50% + clamp(72px, 15vh, 118px));
        height: var(--motion-mobile-line-height);
    }
}

.travel-road-image.is-tracks {
    height: clamp(24px, 3vw, 44px);
}

.travel-rider .travel-vehicle.single-vehicle[src$="train_without_tracks.png"] {
    width: min(360px, 48vw);
}

@media (max-width: 680px) {
    .travel-rider .travel-vehicle.single-vehicle[src$="train_without_tracks.png"] {
        width: min(270px, 58vw);
    }
}

.journey-stage {
    min-height: min(32vw, 330px);
}

.journey-stage::before,
.journey-stage .stage-vehicle,
.journey-stage .stage-destination,
.journey-stage .primary-button {
    display: none;
}

.journey-stage .stage-whim {
    left: 50%;
    top: 30%;
    width: min(96px, 15vw);
    transform: translateX(-50%);
}

.journey-stage .stage-arrow {
    left: 50%;
    top: 52%;
    width: min(270px, 43vw);
    transform: translateX(-50%);
}

@media (max-width: 680px) {
    .journey-stage {
        min-height: 250px;
    }

    .journey-stage .stage-whim {
        width: min(120px, 30vw);
    }

    .journey-stage .stage-arrow {
        width: min(330px, 74vw);
    }
}

.route-app-shell {
    height: 100svh;
    min-height: 0;
    padding: 10px 0 0;
}

.route-app-shell .app-main {
    width: 100%;
    margin: 0;
}

.route-app-shell .bottom-nav {
    display: none;
}

.route-player-screen {
    min-height: 0;
    height: 100%;
    display: grid;
    align-items: stretch;
}

.route-player-shell {
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(10px, 1.6vh, 18px);
}

.route-player-stage {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-block: 1px solid rgba(22, 20, 17, 0.08);
    border-inline: 0;
    border-radius: 0;
    background: #fffdf8;
}

.route-player-copy {
    position: absolute;
    left: 50%;
    top: clamp(18px, 4vh, 38px);
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 5px;
    width: min(1120px, 88vw);
    text-align: center;
    transform: translateX(-50%);
    animation: route-copy-in 420ms ease both;
}

.route-player-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 14px);
    width: 100%;
    color: var(--ink);
    font-size: 2.35rem;
    line-height: 0.9;
}

.route-player-place {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
    text-wrap: balance;
}

.route-player-place.from {
    justify-self: end;
    text-align: right;
}

.route-player-place.to {
    justify-self: start;
    text-align: left;
}

.route-player-route.is-arrival {
    grid-template-columns: 1fr;
}

.route-player-place.arrival {
    justify-self: center;
    text-align: center;
}

.route-player-stage.ferry .route-player-route,
.route-player-stage.pickup .route-player-route {
    font-size: 2.12rem;
}

.route-player-arrow-image {
    width: clamp(42px, 5vw, 82px);
    max-height: clamp(14px, 1.8vw, 24px);
    object-fit: contain;
    align-self: center;
    justify-self: center;
    opacity: 0.72;
}

.route-player-time {
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: clamp(-10px, -1vh, -4px);
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.05;
}

.route-player-copy h1 {
    font-size: clamp(38px, 5.2vw, 72px);
    line-height: 0.82;
}

.route-player-art {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 3;
    width: var(--motion-art-width);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: auto auto;
    align-items: end;
    justify-items: center;
    gap: clamp(8px, 2.7vw, 36px);
    transform: translate(-50%, -50%);
    animation: route-art-in 460ms ease both, route-art-bob 1.5s ease-in-out 480ms infinite;
}

.route-player-whim {
    grid-row: 2;
    justify-self: end;
    width: var(--motion-whim-width);
    margin-bottom: var(--motion-whim-offset);
}

.route-player-vehicle {
    grid-row: 2;
    justify-self: start;
    width: var(--motion-vehicle-width);
    object-fit: contain;
}

.route-player-stage.walk .route-player-art {
    grid-template-columns: 1fr;
    width: min(285px, 54vw);
}

.route-player-stage.walk .route-player-vehicle {
    justify-self: center;
    width: min(162px, 29vw);
}

.route-player-stage.ferry .route-player-vehicle {
    width: min(218px, 28vw);
}

.route-player-stage.pickup .route-player-vehicle {
    width: var(--motion-car-width);
}

.route-player-stage.arrival .route-player-art {
    grid-template-columns: 1fr;
    top: 52%;
}

.route-player-stage.arrival .route-player-whim {
    display: none;
}

.route-player-stage.arrival .route-player-vehicle {
    justify-self: center;
    width: min(180px, 29vw);
}

.route-player-line {
    position: absolute;
    left: 50%;
    top: calc(52% + clamp(36px, 6vh, 78px));
    z-index: 1;
    width: 165vw;
    min-width: 165vw;
    max-width: none;
    height: var(--motion-line-height);
    object-fit: fill;
    transform: translateX(-50%);
    animation: route-line-run 2.1s linear infinite;
}


.route-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: clamp(58px, 5vw, 76px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(22, 20, 17, 0.18);
}

.route-arrow-mark {
    width: clamp(16px, 1.6vw, 24px);
    aspect-ratio: 1;
    border-top: 5px solid currentColor;
    border-right: 5px solid currentColor;
    border-radius: 3px;
}

.route-arrow.prev .route-arrow-mark {
    transform: translateX(4px) rotate(-135deg);
}

.route-arrow.next .route-arrow-mark {
    transform: translateX(-4px) rotate(45deg);
}

.route-arrow.prev { left: clamp(14px, 2.5vw, 34px); }
.route-arrow.next { right: clamp(14px, 2.5vw, 34px); }

.route-arrow:disabled {
    opacity: 0.22;
    cursor: default;
}

.route-player-controls {
    display: grid;
    align-items: center;
    padding: 0 0 clamp(14px, 2.2vh, 26px);
}

.route-player-dots {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 7vw, 96px);
}

.route-player-dot {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    color: rgba(22, 20, 17, 0.45);
    font-size: clamp(17px, 1.9vw, 25px);
    line-height: 1.16;
}

.route-player-dot .dot-label {
    display: block;
    padding-bottom: 2px;
}

.route-player-dot .dot-pin {
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--paper);
}

.route-player-dot.is-active {
    color: var(--ink);
}

@keyframes route-copy-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes route-art-in {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes route-art-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes route-line-run {
    0% { transform: translateX(-42%) scaleX(1.02); }
    100% { transform: translateX(-58%) scaleX(1.02); }
}

@media (max-width: 1100px) {
    .route-player-route {
        font-size: 2.65rem;
    }

    .route-player-stage.ferry .route-player-route,
    .route-player-stage.pickup .route-player-route {
        font-size: 2.35rem;
    }
}
@media (max-width: 760px) {
    .route-player-route {
        grid-template-columns: 1fr;
        gap: 2px;
        font-size: 2.35rem;
        line-height: 0.88;
    }

    .route-player-arrow-image {
        width: clamp(34px, 13vw, 54px);
        max-height: clamp(12px, 4vw, 18px);
        transform: rotate(90deg);
    }

    .route-player-place.from,
    .route-player-place.to {
        justify-self: center;
        text-align: center;
    }

    .route-player-copy {
        top: 18px;
        width: min(560px, 88vw);
    }

    .route-player-stage.ferry .route-player-route,
    .route-player-stage.pickup .route-player-route {
        font-size: 2.05rem;
    }

    .route-player-screen {
        min-height: 0;
        height: 100%;
    }

    .route-player-shell {
        height: 100%;
        gap: 6px;
    }

    .route-player-stage {
        min-height: 0;
        height: 100%;
        border-radius: 0;
        border-inline: 0;
    }

    .route-player-copy h1 {
        font-size: clamp(42px, 13vw, 66px);
    }

    .route-player-art {
        top: 52%;
        width: var(--motion-mobile-art-width);
        gap: 10px;
    }

    .route-player-whim {
        width: var(--motion-mobile-whim-width);
        margin-bottom: 22px;
    }

    .route-player-vehicle {
        width: var(--motion-mobile-vehicle-width);
    }

    .route-player-line {
        height: var(--motion-mobile-line-height);
    }

    .route-arrow {
        width: 54px;
        font-size: 58px;
    }
}

@media (max-width: 680px) {
    .home-screen {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .home-layout {
        height: 100%;
        min-height: 0;
        display: block;
        overflow: hidden;
    }

    .home-layout .journey-stage,
    .home-layout .quick-panel {
        display: none;
    }

    .ride-carousel {
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 4px 2px 12px;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ride-card {
        flex: 0 0 calc(100vw - 44px);
        width: auto;
        min-height: 0;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
        justify-items: center;
        text-align: center;
        padding: 22px 18px;
        border: 1px solid rgba(22, 20, 17, 0.1);
        border-radius: 24px;
        background: rgba(255, 253, 248, 0.78);
        opacity: 1;
        scroll-snap-align: center;
    }

    .ride-card img,
    .ride-card .single-vehicle,
    .ride-card img.ride-icon-ferry,
    .ride-card img.ride-icon-plane {
        width: min(210px, 58vw);
        max-height: 210px;
        justify-self: center;
    }

    .car-card {
        align-content: center;
        justify-items: center;
        min-width: 0;
    }

    .car-card .car-vehicle-options {
        width: min(210px, 60vw);
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: center;
        gap: 13px;
    }

    .car-card .car-vehicle-button {
        width: 100%;
        min-height: 92px;
        border: 1px solid rgba(22, 20, 17, 0.1);
        border-radius: 20px;
        background: rgba(255, 253, 248, 0.72);
    }

    .car-card .car-vehicle-button img {
        width: min(122px, 36vw);
        max-height: 88px;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .station-choice-screen .screen-title {
        width: min(100%, calc(100vw - 92px));
        margin-inline: auto;
        padding-top: 8px;
    }

    .station-choice-screen .screen-title h1 {
        font-size: clamp(32px, 9vw, 46px);
        line-height: 0.96;
        text-wrap: balance;
    }

    .station-choice-screen .ferry-ticket-link img {
        width: min(190px, 44vw);
    }

    .floating-back-button,
    .floating-map-button {
        min-height: 48px;
        height: 48px;
        padding: 4px 11px 7px;
        font-size: 24px;
    }

    .floating-back-button {
        width: 48px;
        padding: 0;
    }

    .floating-back-arrow {
        width: 13px;
        border-left-width: 4px;
        border-bottom-width: 4px;
    }
}

@media (max-width: 680px) {
    .floating-back-button {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: auto;
    }
}

@media (max-width: 760px) {
    .route-player-copy {
        top: 14px;
        width: calc(100vw - 32px);
        gap: 3px;
    }

    .route-player-route,
    .route-player-stage.ferry .route-player-route,
    .route-player-stage.pickup .route-player-route {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: clamp(30px, 7.8vw, 42px);
        line-height: 0.92;
    }

    .route-player-place {
        width: 100%;
        max-width: min(520px, 86vw);
        justify-self: center;
        text-align: center;
        overflow-wrap: break-word;
    }

    .route-player-place.from,
    .route-player-place.to {
        justify-self: center;
        text-align: center;
    }

    .route-player-arrow-image {
        width: clamp(28px, 9vw, 42px);
        max-height: none;
        margin: -2px 0 -1px;
        transform: rotate(90deg);
        opacity: 0.68;
    }

    .route-player-route.is-arrival {
        font-size: clamp(38px, 10vw, 56px);
    }
}

@media (max-width: 760px) {
    .route-player-route,
    .route-player-stage.ferry .route-player-route,
    .route-player-stage.pickup .route-player-route {
        row-gap: 14px;
        line-height: 1.02;
    }

    .route-player-arrow-image {
        display: block;
        width: clamp(28px, 9vw, 42px);
        height: clamp(28px, 9vw, 42px);
        margin: 0;
        object-fit: contain;
        transform: rotate(90deg);
    }
}

@media (max-width: 680px) {
    .plane-choice-screen {
        align-content: start;
        row-gap: 6px;
        padding-top: 4px;
    }

    .plane-choice-screen .screen-title {
        margin-bottom: 2px;
        padding-top: 0;
    }

    .plane-choice-screen .screen-title h1 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 0.92;
    }

    .plane-choice-screen .choice-grid.three {
        width: min(100%, 360px);
        gap: 6px;
        align-items: center;
    }

    .plane-choice-screen .choice-card {
        min-height: 124px;
        gap: 4px;
        align-content: center;
    }

    .plane-choice-screen .choice-card img {
        width: min(78vw, 225px);
        max-height: 78px;
        object-fit: contain;
    }

    .plane-choice-screen .choice-card h2 {
        font-size: clamp(28px, 8.2vw, 36px);
        line-height: 0.92;
    }
}

@media (max-width: 680px) and (max-height: 700px) {
    .plane-choice-screen .screen-title h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .plane-choice-screen .choice-card {
        min-height: 108px;
    }

    .plane-choice-screen .choice-card img {
        max-height: 66px;
    }

    .plane-choice-screen .choice-card h2 {
        font-size: clamp(25px, 7.5vw, 32px);
    }
}

@media (max-width: 680px) {
    .plane-choice-screen .choice-title {
        font-size: clamp(28px, 8.2vw, 36px);
        line-height: 0.92;
    }
}

@media (max-width: 680px) and (max-height: 700px) {
    .plane-choice-screen .choice-title {
        font-size: clamp(25px, 7.5vw, 32px);
    }

    .plane-choice-screen .choice-note {
        font-size: 11px;
        line-height: 1;
    }
}

@media (max-width: 680px) {
    .plane-choice-screen {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        row-gap: 10px;
        padding-top: 10px;
    }

    .plane-choice-screen .choice-grid.three {
        align-self: center;
        width: min(100%, 360px);
        gap: clamp(12px, 2.4vh, 22px);
    }

    .plane-choice-screen .choice-card {
        min-height: clamp(126px, 18vh, 158px);
        align-content: center;
        gap: 5px;
    }

    .plane-choice-screen .choice-card img {
        max-height: clamp(72px, 11vh, 96px);
    }
}

@media (max-width: 680px) and (max-height: 700px) {
    .plane-choice-screen {
        row-gap: 6px;
        padding-top: 4px;
    }

    .plane-choice-screen .choice-grid.three {
        gap: 8px;
    }

    .plane-choice-screen .choice-card {
        min-height: 108px;
    }

    .plane-choice-screen .choice-card img {
        max-height: 66px;
    }
}
