/* Download page countdown – matches the white download card. */

.kd-gate {
    margin: 4px 0 8px;
    text-align: center;
}

.kd-gate [hidden] {
    display: none !important;
}

/* ---------- Button ---------- */
.kd-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    padding: 17px 28px;
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.kd-gate-btn:hover {
    transform: translateY(-2px);
    background: #1f2937;
    box-shadow: 0 14px 32px rgba(17, 24, 39, .28);
}

.kd-gate-btn:active {
    transform: translateY(0);
}

.kd-gate-btn:focus-visible,
.kd-gate-retry:focus-visible {
    outline: 3px solid #818cf8;
    outline-offset: 3px;
}

.kd-gate-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    font-size: 18px;
    line-height: 1;
}

/* ---------- Circular countdown ---------- */
.kd-gate-wait {
    padding: 8px 0 6px;
}

.kd-gate-ring {
    position: relative;
    display: inline-block;
    width: 112px;
    height: 112px;
}

.kd-gate-ring svg {
    display: block;
}

.kd-gate-track {
    stroke: #e5e7eb;
}

.kd-gate-bar {
    stroke: #4338ca;
}

.kd-gate-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.kd-gate-msg {
    margin: 12px 0 0;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.kd-gate.is-done .kd-gate-bar {
    stroke: #16a34a;
}

.kd-gate.is-done .kd-gate-num {
    color: #16a34a;
}

.kd-gate.is-done .kd-gate-msg {
    color: #166534;
}

/* ---------- Links appearing ---------- */
.kd-gate-list.kd-gate-in {
    animation: kdGateIn .45s ease both;
}

@keyframes kdGateIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.kd-gate-list {
    text-align: left;
}

/* ---------- Error / no-JS ---------- */
.kd-gate-error,
.kd-gate-noscript {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.6;
}

.kd-gate-retry {
    margin-left: 6px;
    padding: 4px 12px;
    border: 0;
    border-radius: 8px;
    background: #991b1b;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .kd-gate-btn {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kd-gate-btn,
    .kd-gate-list.kd-gate-in {
        transition: none;
        animation: none;
    }
}
