:root {
    color-scheme: dark;
    --navy-950: #020b18;
    --navy-900: #031226;
    --navy-850: #061a33;
    --ink-950: #06142b;
    --ink-700: #34445d;
    --ink-500: #69778c;
    --paper: #f7f9fc;
    --paper-strong: #ffffff;
    --line: #d7dfeb;
    --line-strong: #c4cedd;
    --blue: #0874f9;
    --blue-deep: #005de7;
    --blue-soft: #eaf3ff;
    --mint: #079b59;
    --mint-soft: #eefaf5;
    --danger: #c7444e;
    --page-max: 1500px;
    --radius-panel: 26px;
    --radius-control: 13px;
    --shadow-panel: 0 34px 90px rgba(0, 5, 16, 0.34), 0 7px 22px rgba(0, 9, 25, 0.12);
    --font-sans: Inter, "SF Pro Display", "SF Pro Text", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--navy-900);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #fff;
    background-color: var(--navy-900);
    background-image:
        linear-gradient(90deg, rgba(2, 12, 28, 0.06), rgba(2, 12, 28, 0.18)),
        url("route-atlas-desktop.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

[hidden] {
    display: none !important;
}

.page {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 63% 35%, rgba(24, 111, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(1, 10, 23, 0.03), rgba(1, 10, 23, 0.18));
}

.shell {
    width: min(var(--page-max), calc(100% - 88px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 112, 255, 0.3));
}

.brand::before {
    content: none;
}

.brand span {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 760;
    letter-spacing: -0.035em;
}

main {
    flex: 1;
    display: flex;
}

.route-hero {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: clamp(52px, 4.5vw, 72px);
    padding-block: 10px 54px;
}

.hero-copy {
    min-width: 0;
    align-self: start;
    margin-top: 112px;
    padding: 0 0 0 4px;
}

.hero-copy h1 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 4.15vw, 70px);
    line-height: 1.06;
    font-weight: 790;
    letter-spacing: -0.065em;
    text-wrap: balance;
    text-shadow: 0 8px 38px rgba(0, 7, 21, 0.28);
}

.hero-title-line {
    display: block;
}

.hero-title-line + .hero-title-line {
    margin-top: 8px;
}

.hero-lead {
    max-width: 510px;
    margin: 32px 0 0;
    color: rgba(225, 235, 250, 0.78);
    font-size: 18px;
    line-height: 1.9;
    font-weight: 420;
    letter-spacing: 0.005em;
}

.route-stack {
    min-width: 0;
    align-self: start;
}

.route-panel {
    min-height: 0;
    padding: 30px 34px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--radius-panel);
    background:
        radial-gradient(circle at 96% 0%, rgba(48, 124, 255, 0.05), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 252, 0.98));
    color: var(--ink-950);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(20px);
}

.panel-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.panel-head h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 770;
    letter-spacing: -0.035em;
}

.icon-button {
    min-height: 42px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    color: var(--blue-deep);
    background: transparent;
    font-size: 15px;
    font-weight: 680;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.icon-button:hover:not(:disabled) {
    color: #004fc8;
    background: var(--blue-soft);
}

.icon-button:active:not(:disabled) {
    transform: translateY(1px);
}

.icon-button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.scan-line {
    position: relative;
    height: 1px;
    margin: 18px 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--line);
}

.scan-line span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 36%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--blue), #54aaff, transparent);
    animation: route-scan 1.25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.route-panel[data-state="complete"] .scan-line span {
    width: 100%;
    background: linear-gradient(90deg, var(--blue), #2bb77c);
    animation: none;
}

.route-panel[data-state="failed"] .scan-line span {
    width: 100%;
    background: var(--danger);
    animation: none;
}

@keyframes route-scan {
    from { transform: translateX(-105%); }
    to { transform: translateX(385%); }
}

.route-list {
    margin-top: 10px;
}

.route-row {
    position: relative;
    min-height: 120px;
    padding: 0 12px 0 4px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto 70px;
    align-items: center;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink-950);
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.route-row::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: transparent;
}

.route-row:hover {
    z-index: 1;
    background: rgba(232, 240, 252, 0.7);
}

.route-row.is-fastest {
    margin-inline: -18px;
    padding-inline: 22px 30px;
    border-bottom-color: transparent;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(238, 250, 245, 0.98), rgba(239, 248, 249, 0.76));
    box-shadow: inset 0 0 0 1px rgba(19, 157, 95, 0.26);
}

.route-row.is-fastest::before {
    inset-block: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--blue), #18a66a);
}

.route-row.is-unreachable {
    opacity: 0.58;
}

.route-number {
    min-width: 0;
    color: #657187;
    font-size: 30px;
    line-height: 1;
    font-weight: 730;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.route-row.is-fastest .route-number {
    color: var(--mint);
}

.route-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.route-dot {
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 0;
    border-radius: 50%;
    background: #8995a8;
    box-shadow: 0 0 0 5px rgba(137, 149, 168, 0.12);
}

.route-row .route-dot::before,
.route-row .route-dot::after {
    content: none;
    display: none;
}

.route-row.is-testing .route-dot {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(8, 116, 249, 0.12);
    animation: pulse-dot 1.2s ease-in-out infinite;
}

.route-row.is-reachable .route-dot {
    background: #52637a;
    box-shadow: none;
}

.route-row.is-fastest .route-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(7, 155, 89, 0.11);
}

.route-row.is-unreachable .route-dot {
    background: var(--danger);
    box-shadow: none;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(0.88); opacity: 0.58; }
    50% { transform: scale(1); opacity: 1; }
}

.route-name-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.route-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink-950);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 720;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-label,
.fastest-label {
    min-height: 25px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    font-weight: 680;
    white-space: nowrap;
}

.route-label {
    color: #0963d6;
    background: #e5f0ff;
}

.fastest-label {
    color: #087f4d;
    border: 1px solid rgba(7, 155, 89, 0.22);
    background: rgba(238, 250, 245, 0.84);
}

.route-metric {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.route-latency {
    color: #4b5b72;
    font-size: 17px;
    line-height: 1;
    font-weight: 680;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.route-row.is-fastest .route-latency {
    color: var(--mint);
}

.signal {
    width: 24px;
    height: 22px;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.signal i {
    width: 4px;
    border-radius: 3px 3px 1px 1px;
    background: #9aa6b7;
}

.signal i:nth-child(1) { height: 6px; }
.signal i:nth-child(2) { height: 10px; }
.signal i:nth-child(3) { height: 15px; }
.signal i:nth-child(4) { height: 20px; }

.route-row[data-quality="fast"] .signal i,
.route-row[data-quality="good"] .signal i:nth-child(-n + 3) {
    background: var(--mint);
}

.route-row[data-quality="slow"] .signal i:nth-child(-n + 2) {
    background: #e0a111;
}

.route-availability {
    justify-self: end;
    color: #445269;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.result-area {
    min-height: 210px;
    margin-top: 18px;
    padding: 22px 0 0;
    display: grid;
    grid-template-columns: 146px minmax(0, 1fr);
    gap: 26px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.countdown {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.countdown-ring {
    --countdown-progress: 100%;
    position: relative;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ink-950);
    background: conic-gradient(var(--blue) var(--countdown-progress), #dfe4eb 0);
    box-shadow: 0 8px 24px rgba(8, 48, 94, 0.08);
}

.countdown-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    width: auto;
    height: auto;
    display: block;
    grid-area: auto;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(210, 220, 233, 0.72);
}

.countdown-ring::after {
    content: "秒";
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    color: #283852;
    font-size: 13px;
    line-height: 1;
    font-weight: 680;
}

.countdown-ring strong {
    position: relative;
    z-index: 1;
    transform: translateY(-7px);
    color: var(--ink-950);
    font-size: 47px;
    line-height: 1;
    font-weight: 790;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.result-body {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-copy {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.result-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--mint);
    box-shadow: 0 8px 20px rgba(7, 155, 89, 0.22);
}

.result-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.4;
}

.result-text {
    min-width: 0;
    padding-top: 1px;
}

.result-copy h3 {
    margin: 0;
    color: var(--ink-950);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 780;
    letter-spacing: -0.035em;
}

.result-copy p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: #53637a;
    font-size: 14px;
    line-height: 1.5;
}

.countdown-copyline {
    color: #53637a !important;
}

.countdown-copyline strong {
    color: var(--ink-950);
    font-variant-numeric: tabular-nums;
}

.countdown[hidden] + .result-body .countdown-copyline {
    display: none;
}

.countdown[hidden] + .result-body {
    grid-column: 1 / -1;
    padding-left: 4px;
}

@media (min-width: 681px) {
    .result-area:has(.countdown[hidden]) {
        min-height: 144px;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
    }

    .countdown[hidden] + .result-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 28px;
        padding: 0 4px;
    }

    .countdown[hidden] + .result-body .panel-actions {
        justify-self: end;
        margin-top: 0;
    }
}

.panel-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.button {
    min-height: 52px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    font-size: 15px;
    line-height: 1;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button-primary {
    min-width: 158px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0063ed);
    box-shadow: 0 12px 26px rgba(0, 101, 237, 0.23);
}

.button-primary:hover:not(.is-disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(0, 101, 237, 0.3);
}

.button-secondary {
    min-width: 158px;
    color: #22324a;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.62);
}

.button-secondary:hover:not(:disabled) {
    border-color: #aab9cd;
    background: #fff;
}

.button.button-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 116, 249, 0.24);
}

.button:active:not(.is-disabled):not(:disabled) {
    transform: translateY(1px);
}

.button.is-disabled,
.button:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
}

.support-links {
    margin-top: 18px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(250, 252, 255, 0.97);
    color: var(--ink-950);
    box-shadow: 0 18px 46px rgba(0, 5, 16, 0.22);
    backdrop-filter: blur(16px);
}

.support-link {
    min-width: 0;
    min-height: 94px;
    padding: 10px 18px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    color: var(--ink-950);
    background: transparent;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.support-link + .support-link {
    border-left: 1px solid var(--line);
}

.support-link:hover {
    background: var(--blue-soft);
}

.support-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-deep);
    background: #e6f0ff;
}

.support-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.support-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-copy strong {
    color: var(--ink-950);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;
}

.support-copy span {
    overflow: hidden;
    color: #5d6b7f;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-arrow {
    width: 18px;
    height: 18px;
    color: #8390a4;
    stroke-width: 2;
}

.site-footer {
    border: 0;
    background: transparent;
}

.footer-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    color: rgba(205, 217, 236, 0.67);
    font-size: 12px;
    line-height: 1.5;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: rgba(225, 234, 247, 0.78);
    text-decoration: none;
}

.footer-inner a:hover {
    color: #fff;
}

.footer-divider {
    color: var(--blue);
}

.brand:focus-visible,
.icon-button:focus-visible,
.route-row:focus-visible,
.button:focus-visible,
.support-link:focus-visible,
.footer-inner a:focus-visible {
    outline: 3px solid rgba(83, 161, 255, 0.72);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .shell {
        width: min(1040px, calc(100% - 56px));
    }

    .route-hero {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: 38px;
    }

    .hero-copy h1 {
        font-size: clamp(44px, 5vw, 57px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .route-panel {
        padding-inline: 28px;
    }

    .route-row {
        grid-template-columns: 54px minmax(0, 1fr) auto 58px;
        gap: 12px;
    }

    .route-name {
        font-size: 15px;
    }

    .signal {
        display: none;
    }
}

@media (max-width: 980px) {
    body {
        background-image:
            linear-gradient(180deg, rgba(2, 12, 28, 0.08), rgba(2, 12, 28, 0.2)),
            url("route-atlas-mobile.webp");
        background-position: center top;
        background-size: cover;
        background-attachment: scroll;
    }

    .shell {
        width: min(720px, calc(100% - 44px));
    }

    .header-inner {
        min-height: 82px;
    }

    .route-hero {
        display: block;
        padding-block: 30px 46px;
    }

    .hero-copy {
        margin-top: 0;
        padding: 0 0 42px;
    }

    .hero-copy h1 {
        max-width: 650px;
        font-size: clamp(48px, 8.2vw, 66px);
    }

    .hero-lead {
        max-width: 590px;
        margin-top: 24px;
    }

    .route-panel {
        padding: 26px 30px 30px;
    }
}

@media (max-width: 680px) {
    :root {
        --radius-panel: 22px;
    }

    .shell {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 72px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 30px;
        height: 30px;
    }

    .brand::before {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .brand span {
        font-size: 18px;
    }

    .route-hero {
        padding-block: 22px 36px;
    }

    .hero-copy {
        padding-bottom: 32px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 12.8vw, 56px);
        line-height: 1.04;
        letter-spacing: -0.07em;
    }

    .hero-title-line + .hero-title-line {
        margin-top: 5px;
    }

    .hero-lead {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.78;
    }

    .route-panel {
        padding: 20px 18px 22px;
    }

    .panel-head {
        min-height: 42px;
        gap: 12px;
    }

    .panel-head h2 {
        font-size: 18px;
    }

    .icon-button {
        width: auto;
        min-height: 38px;
        padding-inline: 9px;
        gap: 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .icon-button span {
        display: inline;
    }

    .icon-button svg {
        width: 18px;
        height: 18px;
    }

    .scan-line {
        margin-top: 12px;
    }

    .route-list {
        margin-top: 4px;
    }

    .route-row,
    .route-row.is-fastest {
        min-height: 104px;
        margin-inline: 0;
        padding: 11px 4px;
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        gap: 5px 9px;
        border-radius: 0;
        box-shadow: none;
    }

    .route-row.is-fastest {
        margin-top: 4px;
        padding-inline: 9px 4px;
        border-radius: 11px;
        box-shadow: inset 0 0 0 1px rgba(19, 157, 95, 0.24);
    }

    .route-row::before {
        inset-block: 8px;
    }

    .route-number {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
        font-size: 21px;
    }

    .route-identity {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        align-self: end;
    }

    .route-dot,
    .route-row.is-fastest .route-dot {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }

    .route-name-wrap {
        display: block;
    }

    .route-name {
        display: block;
        overflow: visible;
        font-size: clamp(12px, 3.55vw, 14px);
        text-overflow: clip;
    }

    .route-label,
    .fastest-label {
        min-height: 0;
        padding: 0;
        margin-top: 5px;
        color: #617087;
        border: 0;
        background: transparent;
        font-size: 10px;
    }

    .fastest-label {
        margin-left: 7px;
        color: var(--mint);
    }

    .route-metric {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        justify-self: start;
        margin-left: 17px;
    }

    .route-latency {
        font-size: 13px;
    }

    .route-availability {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        justify-self: end;
        font-size: 10px;
    }

    .result-area {
        min-height: 0;
        margin-top: 14px;
        padding-top: 20px;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 16px;
    }

    .result-body {
        display: contents;
    }

    .result-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .countdown-ring {
        width: 88px;
        height: 88px;
    }

    .countdown-ring::before {
        inset: 7px;
    }

    .countdown-ring::after {
        bottom: 17px;
        font-size: 10px;
    }

    .countdown-ring strong {
        transform: translateY(-5px);
        font-size: 34px;
    }

    .result-copy {
        gap: 9px;
    }

    .result-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .result-icon svg {
        width: 16px;
        height: 16px;
    }

    .result-copy h3 {
        font-size: 17px;
        line-height: 1.35;
    }

    .result-copy p {
        margin-top: 4px;
        font-size: 11px;
    }

    .panel-actions {
        margin-top: 13px;
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .button {
        min-width: 0;
        min-height: 46px;
        padding-inline: 10px;
        border-radius: 11px;
        font-size: 12px;
    }

    .countdown[hidden] + .result-body .result-copy {
        grid-column: 1 / -1;
    }

    .support-links {
        margin-top: 14px;
        padding: 5px 12px;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .support-link {
        min-height: 72px;
        padding-inline: 4px;
        grid-template-columns: 38px minmax(0, 1fr) 16px;
        gap: 12px;
    }

    .support-link + .support-link {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .support-icon {
        width: 38px;
        height: 38px;
    }

    .support-icon svg {
        width: 19px;
        height: 19px;
    }

    .support-copy strong {
        font-size: 14px;
    }

    .support-copy span {
        overflow: visible;
        font-size: 11px;
        text-overflow: clip;
        white-space: normal;
    }

    .footer-inner {
        min-height: 74px;
        flex-wrap: wrap;
        align-content: center;
        gap: 4px 11px;
        padding-block: 16px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .route-panel {
        padding-inline: 14px;
    }

    .route-row,
    .route-row.is-fastest {
        grid-template-columns: 29px minmax(0, 1fr);
        gap-inline: 6px;
    }

    .route-name {
        font-size: 11px;
    }

    .result-area {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .countdown-ring {
        width: 74px;
        height: 74px;
    }

    .countdown-ring::after {
        bottom: 13px;
    }

    .countdown-ring strong {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
