:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #0c0921;
    color: #fff;
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd, ul { margin: 0; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.page {
    container-type: inline-size;
    width: min(100%, 41rem);
    min-height: 100svh;
    margin-inline: auto;
    overflow: clip;
    background: #100c2a url("backdrop.webp") center bottom / 100% auto no-repeat;
}

.topbar {
    min-height: 3.2rem;
    min-height: max(3rem, 11.55cqw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5cqw 3.4cqw 0.5cqw 5.35cqw;
    border-bottom: 1px solid #302251;
    background: #0d0921;
}

.brand { display: grid; place-items: center; }
.brand img { display: block; width: 23.25cqw; height: auto; mix-blend-mode: lighten; }

.account-actions { display: flex; gap: 1.15cqw; }
.account-button {
    width: 19cqw;
    min-height: max(2rem, 7.2cqw);
    padding: 0 0.25rem;
    border: 0;
    border-radius: 2.3cqw;
    background: #171638;
    font-size: clamp(0.72rem, 2.9cqw, 1.19rem);
    font-weight: 700;
}

.account-button--primary {
    background: linear-gradient(116deg, #db45f3, #7630f8 46%, #1679fa 78%, #21c7f3);
    box-shadow: inset 0 1px 0 #ffffff30;
}

.hero {
    position: relative;
    isolation: isolate;
    aspect-ratio: 856 / 484;
    margin: 2.6cqw 1.95cqw 0;
    border: 1px solid #6429d4;
    border-radius: 4.05cqw;
    overflow: hidden;
    background: #130640;
    box-shadow: 0 0 2cqw #6e22fa30;
}

.hero-image {
    position: absolute;
    z-index: -1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    width: 53%;
    padding: 4cqw 0 0 5.75cqw;
    text-align: center;
}

.hero-kicker, .hero h1 {
    color: #fff9ff;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 0 0 0.6cqw #ff6bdb, 0 0 2.1cqw #f500ba;
}

.hero-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1cqw;
    font-size: 2.48cqw;
    font-weight: 700;
    white-space: nowrap;
}

.hero-kicker::before, .hero-kicker::after {
    content: "";
    width: 4cqw;
    height: 1px;
    background: #ffd9f7;
    box-shadow: 0 0 0.65cqw #ff5fd4;
}

.hero h1 {
    margin-top: 0.9cqw;
    font-size: 6.25cqw;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.hero h1 span { display: block; font-size: 1.11em; }

.offer-details {
    display: grid;
    grid-template-columns: 0.94fr 1.06fr;
    margin-top: 2.45cqw;
    margin-inline: -0.75cqw;
    color: #fff;
    text-transform: uppercase;
}

.offer-details > div { position: relative; }
.offer-details > div + div::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 12.85cqw;
    inset: 0.25cqw auto auto 0;
    background: #ffd8fa;
    box-shadow: 0 0 0.8cqw #e272e5;
}

.offer-details dt {
    font-size: 5.15cqw;
    font-weight: 800;
    line-height: 1.03;
    text-shadow: 0 0 1.1cqw #f76eec;
}

.offer-details dd { margin-top: 0.3cqw; font-size: 2.6cqw; font-weight: 700; line-height: 1.08; }
.offer-details small { display: block; margin-top: 0.7cqw; font-size: 1.7cqw; font-weight: 500; line-height: 1.15; }

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.15cqw;
    width: 100%;
    min-height: max(1.9rem, 8.45cqw);
    margin-top: 2.55cqw;
    padding: 0 0.25rem;
    border: 1px solid #f8a7ffad;
    border-radius: 99px;
    background: linear-gradient(105deg, #fa9adb 0%, #f91cc4 24%, #bb28f9 63%, #5315e9 100%);
    box-shadow: inset 0 0 1.45cqw #ffffff70, 0 0 2.55cqw #fa34d49c;
    font-size: 3.3cqw;
    font-weight: 700;
    white-space: nowrap;
}

.icon { display: block; flex: none; background: currentColor; }
.icon--download { width: 4.65cqw; height: 4.65cqw; mask: url("download.svg") center / contain no-repeat; }
.icon--chevron { width: 3.05cqw; height: 3.05cqw; mask: url("chevron-right.svg") center / contain no-repeat; }

.access { margin: 3.9cqw 5.65cqw 0; padding-bottom: max(3rem, 12cqw); }
.access-header { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 2.2cqw; }
.access-header h2 {
    display: flex;
    align-items: center;
    gap: 2.5cqw;
    font-size: clamp(0.66rem, 3cqw, 1.25rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.access-header h2::before {
    content: "";
    width: 1.15cqw;
    height: 3.85cqw;
    border-radius: 0.4cqw;
    background: linear-gradient(180deg, #731af7, #ac30fb);
}

.connection, .route-caption { display: flex; align-items: center; gap: 0.95cqw; }
.connection { flex: none; font-size: clamp(0.65rem, 2.48cqw, 0.975rem); color: #beb6dc; }
.connection[data-state="online"] { color: #16eb30; }
.status-dot { flex: none; width: 1.72cqw; height: 1.72cqw; border-radius: 100%; background: #14ed29; }
.connection[data-state="loading"] .status-dot { background: #a894e6; }
.connection[data-state="offline"] .status-dot { background: #ae9ead; }

.routes, .entry-links { list-style: none; padding: 0; }
.routes { display: grid; gap: 1.03cqw; }

.route {
    display: grid;
    grid-template-columns: 9.1cqw minmax(0, 1fr) 4.55cqw;
    align-items: center;
    gap: 3.55cqw;
    min-height: max(2.75rem, 10.95cqw);
    padding: 1cqw 3.35cqw 1cqw 3.55cqw;
    border: 1px solid transparent;
    border-radius: 3.3cqw;
    background:
        linear-gradient(108deg, #1c173d, #1a1a43 67%, #191b40) padding-box,
        linear-gradient(112deg, #713ad0, #5840c2 39%, #38297d) border-box;
    box-shadow: inset 0 0 0 1px #7d61ee21, 0 0.15cqw 0.8cqw #0704166b;
    text-decoration: none;
}

.route-number, .route-arrow { display: grid; place-items: center; }
.route-number {
    min-height: 6.65cqw;
    border-radius: 1.82cqw;
    background: linear-gradient(126deg, #b029f9 4%, #8e40fc 52%, #226bd7 100%);
    box-shadow: inset 0 0 2cqw #ffb5ff47;
    font-size: 3.6cqw;
    font-weight: 800;
}

.route-content { min-width: 0; }
.route-name { display: block; font-size: clamp(0.81rem, 3.05cqw, 1.25rem); line-height: 1; }
.route-caption { margin-top: 1.05cqw; color: #ded6fa; font-size: clamp(0.67rem, 2.21cqw, 0.96rem); line-height: 1.1; }
.route-arrow { width: 4.55cqw; height: 4.55cqw; border-radius: 50%; background: #352e8d; }

.route-message, .action-dialog {
    border: 1px solid #6951b9;
    border-radius: 0.9rem;
    background: #1b173c;
    color: #fff;
}

.route-message { padding: 1rem; font-size: 0.85rem; }
.route-message p { margin-bottom: 0.65rem; }
.small-button { padding: 0.5rem 0.8rem; border: 1px solid #8570e1; border-radius: 0.6rem; background: #362273; font-weight: 700; }
.action-dialog { width: min(90%, 23rem); padding: 0; }
.action-dialog::backdrop { background: #080419bf; }
.dialog-body { padding: 1.25rem; }
.dialog-body h2 { font-size: 1.25rem; }
.dialog-body p { margin-block: 0.6rem 1rem; color: #ddd4f5; font-size: 0.92rem; line-height: 1.4; }
.entry-links { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.entry-links a { display: block; padding: 0.65rem; border-radius: 0.5rem; background: #332565; overflow-wrap: anywhere; }

a:focus-visible, button:focus-visible { outline: 2px solid #81ddff; outline-offset: 3px; }

@media (min-width: 48rem) {
    body { background: #100c2a url("backdrop.webp") center bottom / cover no-repeat; }
    .page { width: min(100%, 74rem); background: transparent; }
    .topbar { min-height: 5.1rem; padding: 0.35rem 4.9cqw; }
    .brand img { width: clamp(8rem, 15cqw, 10.25rem); }
    .account-actions { gap: 0.7rem; }
    .account-button { width: 8.3rem; min-height: 2.75rem; border-radius: 0.75rem; font-size: 1rem; }

    .hero { aspect-ratio: 2.05; margin: 1.25rem 2.1cqw 0; border-radius: clamp(1.3rem, 3cqw, 2rem); }
    .hero-image { object-position: center 12%; }
    .hero-content { padding: 4.2cqw 0 0 5.8cqw; }
    .hero-kicker { font-size: clamp(0.82rem, 1.8cqw, 1.27rem); }
    .hero-kicker::before, .hero-kicker::after { width: 3.3cqw; }
    .hero h1 { margin-top: 0.65cqw; font-size: clamp(2.15rem, 5.3cqw, 3.8rem); }
    .offer-details { margin-top: 1.8cqw; }
    .offer-details > div + div::before { height: 9.5cqw; }
    .offer-details dt { font-size: 4cqw; }
    .offer-details dd { font-size: 2cqw; }
    .offer-details small { font-size: clamp(0.63rem, 1.26cqw, 0.9rem); }
    .download-button { width: 93%; min-height: 5.9cqw; margin: 1.85cqw auto 0; gap: 1.3cqw; font-size: 2.55cqw; }
    .icon--download { width: 2.9cqw; height: 2.9cqw; }

    .access { margin: 2.2rem 4.9cqw 0; padding-bottom: 5rem; }
    .access-header { margin-bottom: 1rem; }
    .access-header h2 { gap: 0.65rem; font-size: 1.25rem; }
    .access-header h2::before { width: 0.36rem; height: 1.35rem; border-radius: 0.16rem; }
    .connection, .route-caption { gap: 0.45rem; }
    .status-dot { width: 0.53rem; height: 0.53rem; }
    .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .route {
        grid-template-columns: 3.85rem minmax(0, 1fr) 1.9rem;
        min-height: 4.5rem;
        gap: 1rem;
        padding: 0.65rem 0.95rem;
        border-radius: 1rem;
    }
    .route-number { min-height: 2.7rem; border-radius: 0.65rem; font-size: 1.4rem; }
    .route-caption { margin-top: 0.35rem; }
    .route-arrow { width: 1.9rem; height: 1.9rem; }
    .icon--chevron { width: 1.12rem; height: 1.12rem; }
}

@media (hover: hover) {
    .route:hover, .account-button:hover, .download-button:hover, .small-button:hover { filter: brightness(1.14); }
}
@media (prefers-reduced-motion: no-preference) {
    .route, .account-button, .download-button, .small-button { transition: filter 160ms ease; }
}
