/* Timer display shared by /time/countdown/ and its fixed-date countdown pages. */

.cd-display {
    margin-bottom: 1.5rem;
}
.cd-event-name {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

/* Fullscreen button */
.cd-fs-btn-row { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.cd-fs-btn {
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.15s, color 0.15s;
}
.cd-fs-btn:hover { border-color: #bbb; color: #555; }

/* Fullscreen overlay */
.cd-fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 9999;
    padding: 2rem;
    box-sizing: border-box;
}
.cd-fs-overlay.active { display: flex; }
.cd-fs-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}
.cd-fs-units {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.cd-fs-units[hidden] { display: none; }
.cd-fs-unit { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cd-fs-val {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    line-height: 1;
}
.cd-fs-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
}
.cd-fs-passed-msg { font-size: 1.25rem; color: #999; text-align: center; }
.cd-fs-exit {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: #999;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cd-fs-exit:hover { border-color: #bbb; color: #555; }
.cd-units {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.cd-unit {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 1rem 0.5rem 0.75rem;
    text-align: center;
}
.cd-unit-val {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    line-height: 1;
    display: block;
}
.cd-unit-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
    display: block;
    margin-top: 0.35rem;
}
@media (max-width: 400px) {
    .cd-unit-val { font-size: 5.5vw; }
    .cd-unit { padding: 0.75rem 0.25rem 0.6rem; }
}

.cd-passed {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f7;
    border: 1.5px solid #eee;
    border-radius: 10px;
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
