/* ==========================================================================
   skins/watch.css — the running watch face.
   ========================================================================== */

[data-skin=watch] {
    --watch-ring-1: #14b8a6;
    --watch-ring-2: #6ee7b7;
    --chart-line: #14b8a6;
}

.hero--watch {
    max-width: 400px;
}

#watchSvg {
    display: block;
    width: 100%;
    height: auto;
}

.w-track {
    fill: none;
    stroke: var(--track-color);
    stroke-width: 12;
}

/* Rotated so the ring starts filling from twelve o'clock rather than three. */
.w-ring {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 150px 150px;
    transition: stroke-dashoffset .3s linear;
}

.w-ring.over {
    stroke: var(--error-color);
}

.w-split {
    stroke: var(--text-color-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .55;
}

.w-cap {
    fill: var(--text-color-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-anchor: middle;
}

.w-pace {
    fill: var(--text-color);
    font-family: var(--font-mono);
    font-size: 74px;
    font-weight: 500;
    text-anchor: middle;
    font-feature-settings: "tnum";
    letter-spacing: -.02em;
}

/* Standing still has no pace, so the dash is dimmed rather than shown bold. */
.w-pace.slow {
    fill: var(--text-color-secondary);
    font-size: 62px;
    letter-spacing: .02em;
}

.w-paceunit {
    fill: var(--text-color-secondary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .04em;
    text-anchor: middle;
}

/* ---------------- readouts, below the ring ---------------- */
.w-readouts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.w-cell {
    padding: 11px 8px;
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-1);
    text-align: center;
    min-width: 0;
}

.w-cell .k {
    display: block;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-color-secondary);
    margin-bottom: 4px;
}

.w-cell .v {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    font-feature-settings: "tnum";
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-status {
    width: 100%;
    margin-top: 10px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .w-ring {
        transition: none;
    }
}

/* ---------------- the page around it ---------------- */
[data-skin=watch] .stat[data-stat=pace],
[data-skin=watch] .stat[data-stat=bestpace] {
    background: linear-gradient(180deg, rgba(20, 184, 166, .16), var(--surface-raised));
}

[data-skin=watch] .stat[data-stat=pace] .v {
    color: #0d9488;
}

[data-theme=dark] [data-skin=watch] .stat[data-stat=pace] .v {
    color: #5eead4;
}

[data-skin=watch] .splits td.best {
    color: #0d9488;
}
