.stopwatch-page {
    display: grid;
    gap: 0;
    margin-top: 0;
}

.stopwatch-head h1 {
    margin-bottom: 24px;
}

.stopwatch-panel {
    margin: 0 0 16px;
    border-radius: 8px;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(120deg, #35418f, #826be3);
    box-shadow: var(--shadow);
}

.stopwatch-timebox {
    display: grid;
    grid-template-columns: minmax(2ch, auto) .42ch 2ch 1.05ch;
    grid-template-rows: auto auto;
    align-items: end;
    justify-content: center;
    column-gap: .02em;
    width: max-content;
    max-width: 100%;
    color: #fff;
    font-size: clamp(70px, 11.2vw, 124px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 2px rgba(0,0,0,.25);
}

.stopwatch-value {
    display: block;
}

.stopwatch-minutes,
.stopwatch-seconds,
.stopwatch-separator {
    text-align: center;
}

.stopwatch-centiseconds {
    align-self: end;
    padding-bottom: .05em;
    font-size: .36em;
    font-weight: 500;
}

.stopwatch-unit {
    display: block;
    padding-top: 10px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.stopwatch-unit-minutes {
    grid-column: 1;
    grid-row: 2;
}

.stopwatch-unit-seconds {
    grid-column: 3;
    grid-row: 2;
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.stopwatch-controls button {
    min-width: 150px;
    border-radius: 999px;
    padding: 13px 20px;
    font-size: 18px;
    box-shadow: 0 14px 30px rgba(27, 39, 69, .12);
}

.stopwatch-start {
    background: #43d383;
}

.stopwatch-lap {
    background: #f6c543;
}

.stopwatch-reset {
    background: #8da0c4;
}

.stopwatch-controls button:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.stopwatch-laps {
    width: 100%;
    justify-self: stretch;
    margin: 0 0 28px;
    padding: 14px 24px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stopwatch-laps table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.stopwatch-laps th,
.stopwatch-laps td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 20px;
}

.stopwatch-laps th {
    font-weight: 800;
}

.stopwatch-laps td:last-child {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.stopwatch-seo-text {
    max-width: none;
}

@media (max-width: 860px) {
    .stopwatch-controls {
            gap: 12px;
        }
}

@media (max-width: 520px) {
    .stopwatch-page {
            gap: 0;
        }

    .stopwatch-panel {
            padding: 18px;
        }

    .stopwatch-timebox {
            width: fit-content;
            margin-right: auto;
            margin-left: auto;
            grid-template-columns: minmax(2ch, auto) .42ch 2ch 1.05ch;
            justify-content: center;
            font-size: clamp(58px, 18vw, 92px);
        }

    .stopwatch-centiseconds {
            font-size: .36em;
        }

    .stopwatch-unit {
            font-size: 13px;
        }

    .stopwatch-controls button {
            min-width: 138px;
            padding: 13px 18px;
            font-size: 18px;
        }

    .stopwatch-laps th,
    .stopwatch-laps td {
            padding: 10px 8px;
            font-size: 16px;
        }
}

