/*
 * 网球护照：深色球场名片。荧光黄只点在等级、编号和认证上。
 */

body.page-tennis_passport,
body.is-android-app.page-tennis_passport {
    min-height: 100svh;
    padding: 0;
    color: #f7fbf8;
    background:
        radial-gradient(ellipse at 14% 0%, rgba(215, 242, 63, .14), transparent 36%),
        radial-gradient(ellipse at 92% 100%, rgba(32, 140, 96, .28), transparent 42%),
        #071a15;
}

.page-tennis_passport .site-footer,
.page-tennis_passport .mobile-tabbar {
    display: none !important;
}

.page-tennis_passport .site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-tennis_passport .main-content {
    display: grid;
    min-height: 100svh;
    align-content: center;
    padding: 0;
}

.page-tennis_passport .container {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 28px;
}

.pass-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 14px;
    color: rgba(247, 251, 248, .68);
    font-size: 13px;
}

.pass-back {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.pass-back::before {
    content: "‹ ";
    color: #d7f23f;
    font-size: 22px;
    line-height: 0;
}

.pass-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pass-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7f23f;
    box-shadow: 0 0 12px rgba(215, 242, 63, .8);
}

.pass-card {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(215, 242, 63, .28);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(28, 78, 62, .98), rgba(8, 32, 26, .98) 62%),
        #09261e;
    box-shadow:
        0 0 0 1px rgba(215, 242, 63, .06),
        0 28px 70px rgba(0, 0, 0, .38);
}

.pass-card::before,
.pass-card::after {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(215, 242, 63, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.pass-card::before {
    top: -150px;
    right: -70px;
    width: 240px;
    height: 240px;
    box-shadow: 0 0 0 22px rgba(215, 242, 63, .035), 0 0 0 46px rgba(215, 242, 63, .02);
}

.pass-card::after {
    right: -120px;
    bottom: -180px;
    width: 300px;
    height: 300px;
    border-color: rgba(45, 157, 112, .22);
}

.pass-card > * {
    position: relative;
    z-index: 1;
}

.pass-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pass-mark {
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid rgba(215, 242, 63, .7);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #d7f23f 0 4px, transparent 5px),
        transparent;
    box-shadow: inset 0 0 0 7px rgba(215, 242, 63, .08);
}

.pass-brand small {
    display: block;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pass-brand strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.pass-brand strong span {
    margin-left: 6px;
    color: #d7f23f;
    font-weight: 600;
}

.pass-kicker {
    margin-left: auto;
    color: rgba(215, 242, 63, .62);
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .16em;
    text-align: right;
    text-transform: uppercase;
}

.pass-player {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px 0 18px;
}

.pass-portrait .avatar {
    width: 92px;
    height: 92px;
    border: 3px solid rgba(215, 242, 63, .8);
    border-radius: 50%;
    background: #1d6a54;
    color: #d7f23f;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.pass-who {
    min-width: 0;
}

.pass-who p,
.pass-coach,
.pass-caution,
.pass-h2h,
.pass-note {
    margin: 0;
}

.pass-who p:first-child {
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    letter-spacing: .08em;
}

.pass-who h1 {
    margin: 2px 0 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.pass-no,
.pass-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.pass-meta {
    color: rgba(255, 255, 255, .88);
}

.pass-meta span {
    color: #d7f23f;
}

.pass-no button {
    border: 0;
    padding: 0;
    color: #d7f23f;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pass-ntrp {
    display: grid;
    min-width: 92px;
    justify-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(215, 242, 63, .45);
    border-radius: 16px;
    background: rgba(215, 242, 63, .1);
}

.pass-ntrp small {
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    text-align: center;
}

.pass-ntrp strong {
    color: #d7f23f;
    font-size: 30px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.pass-scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pass-scores > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.pass-scores > div:first-child {
    padding-left: 0;
}

.pass-scores > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.pass-scores small,
.pass-facts dt {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.pass-scores strong {
    color: #fff;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pass-scores strong span {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 600;
}

.pass-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
}

.pass-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pass-form li {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.pass-form .is-win,
.pass-recent .is-win {
    color: #10281f;
    background: #d7f23f;
}

.pass-form .is-loss,
.pass-recent .is-loss {
    color: #ffd0cb;
    background: rgba(207, 63, 77, .45);
}

.pass-sparkline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.pass-spark-label {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    white-space: nowrap;
}

.pass-spark {
    display: block;
    width: 112px;
    height: 28px;
    flex: 0 0 112px;
}

.pass-spark polyline {
    fill: none;
    stroke: #d7f23f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pass-h2h,
.pass-coach,
.pass-caution {
    margin-top: 12px;
    color: rgba(215, 242, 63, .86);
    font-size: 12px;
    font-weight: 700;
}

.pass-caution {
    color: #ffb4ae;
}

.pass-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin: 16px 0 0;
}

.pass-facts div {
    min-width: 0;
}

.pass-facts dd {
    margin: 2px 0 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pass-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.pass-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid rgba(215, 242, 63, .32);
    border-radius: 999px;
    color: #d7f23f;
    background: rgba(215, 242, 63, .08);
    font-size: 12px;
    font-weight: 700;
}

.pass-chips .is-plain,
.pass-chips .is-honor {
    color: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

.pass-recent {
    margin-top: 16px;
    padding: 10px 12px 4px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(0, 0, 0, .16);
}

.pass-recent header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.pass-recent h3,
.pass-recent header span {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.pass-recent ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pass-recent li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.pass-recent li > span:first-child {
    display: grid;
    width: 28px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.pass-recent-who {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.pass-recent a,
.pass-recent b {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pass-recent small,
.pass-recent time {
    color: rgba(255, 255, 255, .46);
    font-size: 11px;
    font-weight: 600;
}

.pass-recent em {
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pass-recent time {
    min-width: 38px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pass-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pass-qr {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    padding: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.pass-qr svg {
    display: block;
    width: 56px;
    height: 56px;
}

.pass-foot strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.pass-foot p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.pass-foot > span {
    margin-left: auto;
    color: rgba(255, 255, 255, .42);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pass-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pass-btn-lime {
    border-color: transparent;
    color: #10281f;
    background: #d7f23f;
}

.pass-note {
    min-height: 22px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    text-align: center;
}

.pass a:focus-visible,
.pass button:focus-visible {
    outline: 3px solid #d7f23f;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .page-tennis_passport .main-content {
        align-content: start;
    }

    .page-tennis_passport .container {
        width: min(100% - 16px, 720px);
        padding-top: 12px;
    }

    .pass-card {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .pass-player {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0 12px;
    }

    .pass-portrait .avatar {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .pass-ntrp {
        grid-column: 1 / -1;
        grid-template-columns: auto auto 1fr;
        align-items: baseline;
        justify-items: start;
        gap: 8px;
        width: 100%;
        padding: 8px 12px;
    }

    .pass-ntrp strong {
        font-size: 24px;
    }

    .pass-ntrp small:last-child {
        justify-self: end;
        text-align: right;
    }

    .pass-scores > div {
        padding: 0 8px;
    }

    .pass-scores strong {
        font-size: 17px;
    }

    .pass-sparkline {
        flex-basis: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .pass-kicker {
        display: none;
    }

    .pass-foot > span {
        display: none;
    }
}

@media print {
    body.page-tennis_passport {
        background: #071a15 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .pass-bar,
    .pass-actions,
    .pass-note {
        display: none !important;
    }
}
