#time {
    min-width: 76px;
    font-variant-numeric: tabular-nums;
}

body:not(.ta) #time {
    display: none;
}

.taacts {
    display: flex;
    align-items: center;
    gap: 10px;

    & .btn:not(.big) {
        width: 52px;
        height: 44px;
        font-size: 17px;
    }
}

#endTA {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(300px, 78vw);

    &:empty {
        display: none;
    }
}

body.ta #endLv,
body.ta #endScore {
    display: none;
}

.tahead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    & span {
        display: flex;
        align-items: center;
        gap: 6px;
    }
}

.tatime {
    font-size: 30px;
    font-variant-numeric: tabular-nums;

    & svg {
        font-size: 20px;
    }
}

.taspd {
    font-size: 20px;

    & svg {
        font-size: 15px;
    }
}

.tacat svg {
    font-size: 18px;
}

.tanums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;

    & span {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    & svg {
        font-size: 12px;
    }

    & span svg+svg {
        font-size: 11px;
        margin-right: 3px;
        align-self: flex-start;
    }
}

.tacard .tanums {
    justify-content: flex-start;
}

.tadist {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tadr {
    display: grid;
    grid-template-columns: 44px 1fr 32px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.tadl {
    display: flex;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;

    & small {
        font-size: 11px;
    }

    & svg {
        font-size: 11px;
    }
}

.tadt {
    height: 14px;
}

.tadb {
    display: block;
    height: 100%;
    min-width: 2px;
    background-color: white;
}

.tadr.x .tadb {
    background-color: #8a8a8a;
}

.tadist.mark .tadr:not(.hi) .tadb {
    background-color: #3a3a3a;
}

.tadv {
    text-align: right;
}

#taStats {
    position: fixed;
    inset: 0;
    z-index: 8;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 24px;
    background-color: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;

    &.on {
        opacity: 1;
        pointer-events: auto;
    }
}

.tabar {
    max-width: 960px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tatotal {
    display: flex;
    gap: 16px;
    font-size: 20px;

    & span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    & svg {
        font-size: 16px;
    }
}

.tacards {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tacard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .35);

    & .tahead {
        justify-content: flex-start;
    }

    &.cur {
        border-color: white;
        box-shadow: 0 0 30px 2px rgba(255, 255, 255, .2);
    }
}

.tanone {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    padding: 60px 0;
    font-size: 40px;
    color: #333;
}

body.ta #hint {
    display: none;
}
