#timestamp.timestamp {
    align-items: center;
    animation: pulse 2s ease-out infinite;
    color: #00ff00;
    display: grid;
    flex: 1 1 auto;
    font-family: "Courier New", monospace;
    gap: clamp(0.4rem, 1.4vw, 1rem);
    grid-template-columns: auto minmax(0, max-content) auto;
    justify-content: center;
    margin: 0;
    min-width: 0;
    padding: 0;
    text-align: center;
}

#timestamp .time-text {
    align-items: baseline;
    border-radius: 0.65rem;
    box-sizing: border-box;
    display: flex;
    font-size: clamp(1.35rem, 2.25vw, 2rem);
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.65rem 0.25rem;
    text-overflow: ellipsis;
    user-select: none;
    white-space: nowrap;
}

#timestamp :is(.date-calendar, .date-clock) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#timestamp .date-clock {
    flex: 0 0 auto;
}

#timestamp .date-clock::before {
    content: " at ";
    white-space: pre;
}

#timestamp .date-arrow {
    align-items: center;
    appearance: none;
    background: rgba(0, 255, 0, 0.06);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 999px;
    color: currentColor;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 clamp(1.4rem, 2.4vw, 2rem) / 1 "Courier New", monospace;
    height: clamp(2.75rem, 4.5vw, 3.5rem);
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    width: clamp(2.75rem, 4.5vw, 3.5rem);
}

#timestamp .date-arrow:is(:hover, :active) {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.62);
}

#timestamp .date-arrow:active {
    transform: scale(0.94);
}

#timestamp .date-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    #timestamp.timestamp {
        width: 100%;
    }

    #timestamp .time-text {
        font-size: clamp(1.1rem, 4vw, 1.45rem);
    }
}

@media (max-width: 480px) {
    #timestamp.timestamp {
        gap: 0.35rem;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    }

    #timestamp .time-text {
        display: grid;
        font-size: clamp(1rem, 4.6vw, 1.25rem);
        gap: 0.05rem;
        line-height: 1.05;
        padding-inline: 0.1rem;
    }

    #timestamp .date-clock {
        font-size: 0.78em;
    }

    #timestamp .date-clock::before {
        content: "";
    }

    #timestamp .date-arrow {
        font-size: 1.4rem;
        height: 2.75rem;
        width: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #timestamp.timestamp {
        animation: none;
    }

    #timestamp .date-arrow {
        transition: none;
    }
}
