﻿
.tp-rail {
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgba(17,24,39,.08);
}

.tp-rail__inner {
    max-width: var(--tp-max);
    margin: 0 auto;
    padding: 12px var(--tp-gutter);
    display: grid;
    grid-template-columns: repeat(var(--tp-rail-cols, 5), minmax(0, 1fr));
    gap: 14px;
    align-items: center;
}

@media (max-width: 900px) {
    .tp-rail__inner {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .tp-rail__inner::-webkit-scrollbar {
            display: none;
        }
}

.tp-rail__link {
    --a1: rgba(34,211,238,.95);
    --a2: rgba(249,115,22,.95);
    --tx1: #ef4444;
    --tx2: #fb7185;
    --tx3: #f97316;
    --tx4: #f59e0b;
    position: relative;
    height: 56px;
    padding: 0 16px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600; 
    letter-spacing: .10em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #0b1220;
    transform: translateZ(0);
    transition: transform .14s ease, filter .18s ease;
    isolation: isolate;
}

@media (max-width: 900px) {
    .tp-rail__link {
        width: auto;
        min-width: 170px;
    }
}

.tp-rail__link::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: radial-gradient(140px 70px at 26% 45%, var(--a1), rgba(0,0,0,0) 70%), radial-gradient(160px 80px at 74% 60%, var(--a2), rgba(0,0,0,0) 72%);
    filter: blur(11px);
    opacity: .50;
    z-index: -2;
}

.tp-rail__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.76)), radial-gradient(160px 80px at 28% 35%, rgba(34,211,238,.16), rgba(0,0,0,0) 70%), radial-gradient(180px 90px at 72% 60%, rgba(249,115,22,.14), rgba(0,0,0,0) 72%);
    border: 1px solid rgba(17,24,39,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 14px 34px rgba(17,24,39,.10);
    z-index: -1;
}

.tp-rail__ic {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.10));
}

.tp-rail__tx {
    display: inline-block;
    line-height: 1;
    color: #0b1220;
}

@supports (-webkit-background-clip: text) {
    .tp-rail__tx {
        background-image: linear-gradient( 90deg, var(--tx1) 0%, var(--tx2) 35%, var(--tx3) 70%, var(--tx4) 100% );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 1px 0 rgba(0,0,0,.10));
    }
}

.tp-rail__link:hover {
    transform: translateY(-2px) scale(1.01);
    filter: saturate(1.10);
}

    .tp-rail__link:hover::before {
        opacity: .70;
        filter: blur(12px);
    }

.tp-rail__link.is-active::before {
    opacity: .90;
    filter: blur(13px);
}

.tp-rail__link.is-active::after {
    border-color: rgba(17,24,39,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 44px rgba(17,24,39,.14);
}

.tp-rail__link--camp {
    --a1: rgba(249,115,22,.95);
    --a2: rgba(239,68,68,.90);
    --tx1: #ef4444;
    --tx2: #fb7185;
    --tx3: #f97316;
    --tx4: #f59e0b;
}

.tp-rail__link--new {
    --a1: rgba(56,189,248,.95);
    --a2: rgba(167,139,250,.90);
    --tx1: #38bdf8;
    --tx2: #60a5fa;
    --tx3: #a78bfa;
    --tx4: #22d3ee;
}

.tp-rail__link--best {
    --a1: rgba(16,185,129,.95);
    --a2: rgba(245,158,11,.92);
    --tx1: #10b981;
    --tx2: #22c55e;
    --tx3: #f59e0b;
    --tx4: #f97316;
}

.tp-rail__link--disc {
    --a1: rgba(236,72,153,.92);
    --a2: rgba(249,115,22,.95);
    --tx1: #fb7185;
    --tx2: #f472b6;
    --tx3: #f97316;
    --tx4: #a855f7;
}

.tp-rail__link--brand {
    --a1: rgba(59,130,246,.95);
    --a2: rgba(34,211,238,.92);
    --tx1: #1d4ed8;
    --tx2: #3b82f6;
    --tx3: #38bdf8;
    --tx4: #22d3ee;
}
