:root {
    color-scheme: dark;
    --bg: #17151b;
    --panel: rgba(36, 32, 41, 0.82);
    --panel-strong: #242029;
    --border: rgba(255, 255, 255, 0.11);
    --border-bright: rgba(255, 255, 255, 0.18);
    --text: #fffafa;
    --muted: #aaa1af;
    --pink: #ff3bbd;
    --pink-soft: #ff74d1;
    --purple: #8f4cff;
    --green: #53e49a;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -12%, rgba(255, 59, 189, 0.12), transparent 34rem),
        linear-gradient(180deg, #1a171e 0%, #121116 100%);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
}

.page-glow {
    position: fixed;
    z-index: 0;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.11;
}

.page-glow-top {
    top: -9rem;
    left: calc(50% - 19rem);
    background: var(--pink);
}

.page-glow-bottom {
    right: calc(50% - 20rem);
    bottom: -11rem;
    background: var(--purple);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: block;
    width: 148px;
    height: auto;
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(83, 228, 154, 0.2);
    border-radius: 999px;
    color: #bdf8d9;
    background: rgba(83, 228, 154, 0.07);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.official-badge i,
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(83, 228, 154, 0.09), 0 0 12px rgba(83, 228, 154, 0.6);
}

.hero {
    padding: 54px 0 26px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--pink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.26em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.hero-copy {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 29px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 59, 189, 0.13);
    border-radius: 12px;
    color: #c8c0cb;
    background: rgba(255, 59, 189, 0.055);
    font-size: 11px;
    line-height: 1.65;
}

.shield-icon {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--pink-soft);
}

.shield-icon svg,
.action-button svg,
.route-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.section-heading > span {
    color: #7f7783;
    font-size: 11px;
}

.routes-list {
    display: grid;
    gap: 10px;
}

.route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 15px 15px 15px 17px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 37, 47, 0.95), rgba(31, 28, 35, 0.95));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.route-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 59, 189, 0.42);
    background: linear-gradient(135deg, rgba(50, 40, 53, 0.98), rgba(35, 30, 39, 0.98));
}

.route-card:active {
    transform: scale(0.99);
}

.route-card:focus-visible,
.action-button:focus-visible,
.copy-button:focus-visible {
    outline: 2px solid var(--pink-soft);
    outline-offset: 3px;
}

.route-content {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.route-title-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.route-title-row strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-title-row em {
    padding: 3px 7px;
    border: 1px solid rgba(255, 59, 189, 0.24);
    border-radius: 999px;
    color: var(--pink-soft);
    background: rgba(255, 59, 189, 0.08);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.route-host {
    overflow: hidden;
    padding-left: 15px;
    color: #9c939f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-arrow {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-left: 16px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--pink-soft);
    background: rgba(255, 255, 255, 0.035);
}

.route-skeleton {
    height: 78px;
    border-radius: 16px;
    background: linear-gradient(90deg, #242027 25%, #2c2730 50%, #242027 75%);
    background-size: 200% 100%;
    animation: loading 1.2s infinite;
}

.routes-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    transition: filter 180ms ease, transform 180ms ease;
}

.action-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.action-primary {
    color: #fff;
    background: linear-gradient(115deg, #f62fb6, #9b49ff);
    box-shadow: 0 11px 28px rgba(211, 49, 185, 0.2);
}

.action-secondary {
    border-color: var(--border-bright);
    color: #eae4ec;
    background: rgba(255, 255, 255, 0.045);
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 29px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.026);
}

.contact-card p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 10px;
}

.contact-card a {
    color: var(--pink-soft);
    font-size: 14px;
    font-weight: 700;
}

.copy-button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #d9d2dc;
    background: #2b272f;
    cursor: pointer;
    font-size: 10px;
    transition: color 180ms ease, border-color 180ms ease;
}

.copy-button:hover,
.copy-button.is-copied {
    border-color: rgba(255, 59, 189, 0.38);
    color: var(--pink-soft);
}

.adult-notice {
    margin: 26px 10px 0;
    color: #777079;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #625c64;
    font-size: 9px;
}

.site-footer p {
    margin: 0;
}

.noscript-notice {
    position: fixed;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    left: 12px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 10px;
    color: white;
    background: #a52f7f;
    text-align: center;
    font-size: 12px;
}

[hidden] {
    display: none !important;
}

@keyframes loading {
    to {
        background-position: -200% 0;
    }
}

@media (max-width: 390px) {
    .site-shell {
        padding-right: 17px;
        padding-left: 17px;
    }

    .brand-logo {
        width: 132px;
    }

    .official-badge {
        padding: 6px 8px;
        font-size: 9px;
    }

    .hero {
        padding-top: 46px;
    }

    .contact-card {
        margin-top: 23px;
    }
}

@media (min-width: 720px) {
    .site-shell {
        min-height: auto;
        margin-top: 38px;
        margin-bottom: 38px;
        padding: 30px 31px;
        border: 1px solid rgba(255, 255, 255, 0.065);
        border-radius: 28px;
        background: rgba(21, 19, 24, 0.52);
        box-shadow: var(--shadow);
        backdrop-filter: blur(14px);
    }
}

@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;
    }
}
