/* Four equal bays keep the countdown steady as individual digits tick. */
.countdown {
    --clock-edge: rgba(222, 192, 139, .3);
    isolation: isolate;
    position: relative;
    flex: none;
    width: 195px;
    padding: 10px 12px 9px;
    overflow: hidden;
    border: 1px solid var(--clock-edge);
    border-radius: 10px;
    background: radial-gradient(ellipse at top left, #b09b6221, transparent 70%),
        linear-gradient(125deg, #172a32ed, #0b1821eb);
    box-shadow: inset 0 1px 0 #ffe8b31c, 0 4px 16px #02081029;
    text-shadow: none;
}
.countdown::after {
    content: "";
    position: absolute;
    inset: auto 18% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8bf7880, transparent);
}
.countdown > small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
    color: #e5cc9f;
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .1em;
}
.countdown > small::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 2px;
    background: linear-gradient(90deg, var(--clock-edge), transparent);
}
.countdown small .icon { width: 12px; height: 12px; color: #eed598; }
.countdown > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.countdown > div > div { position: relative; min-width: 0; display: grid; gap: 1px; }
.countdown > div > div + div::before {
    content: "";
    position: absolute;
    inset: 5px auto 3px 0;
    width: 1px;
    background: linear-gradient(transparent, var(--clock-edge), transparent);
}
.countdown strong {
    color: #ffebc9;
    font: 600 29px/.96 var(--serif);
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.015em;
}
.countdown span { font-size: 9px; line-height: 1.25; color: #b7c9c8; }

#sheet-settings .segmented { gap: 7px; margin: 7px 0; }
#sheet-settings .segmented button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 8px;
    padding: 7px;
    border-color: #69818a55;
    border-radius: 7px;
    color: #becfce;
    background: #081924a8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .035em;
    transition: background .18s, border-color .18s, color .18s;
}
#sheet-settings .segmented button .icon { width: 16px; height: 16px; color: #9eafa9; }
#sheet-settings .segmented button[aria-pressed="true"] {
    border-color: #d5b47491;
    color: #f4dfbb;
    background: linear-gradient(125deg, #3d4236, #293536);
    box-shadow: inset 0 1px 0 #fbe8c212;
}
#sheet-settings .segmented button[aria-pressed="true"] .icon { color: #edc484; }
#sheet-settings .segmented button:hover { border-color: #c8ad809c; }
#sheet-settings .setting-range {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
}
#sheet-settings .setting-range output {
    justify-self: end;
    font: 500 12px/1.5 "DM Sans", sans-serif;
    font-variant-numeric: tabular-nums;
    color: #f5d5a2;
}
#sheet-settings .setting-range input {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    min-height: 22px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .countdown { width: min(165px, 52vw); padding: 7px 8px; border-radius: 8px; }
    .countdown > small { font-size: 9px; margin-bottom: 5px; }
    .countdown small .icon { width: 11px; height: 11px; }
    .countdown strong { font-size: 23px; }
    .countdown span { font-size: 8px; }
    #sheet-settings .segmented button { min-height: 42px; }
}

