/* ========== プログレスリング関連 ========== */
/* タイマー表示の核となるプログレスリングとアニメーション */

/* プログレスリング */
.ring {
    position: absolute;
    inset: 0;
}

.ring svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ring .track {
    stroke: var(--ring-bg);
    stroke-width: 8px;
    fill: none;
}

.ring .progress {
    stroke: var(--ring-fg);
    stroke-width: 8px;
    stroke-linecap: round;
    fill: none;
    transition: stroke-dashoffset 0.25s linear;
}

.ring .progress-glow {
    stroke: var(--rare-glow);
    stroke-width: 12px;
    stroke-linecap: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.45s ease, stroke-dashoffset 0.25s linear;
}

.ring.rare .progress-glow {
    opacity: 0.7;
}

/* 円内の表示 */
.face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.face-inner {
    width: 78%;
    text-align: center;
    transform: translateY(10%);
}

.timeText.big {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.1;
    cursor: pointer;
    color: var(--ring-fg);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edit-icon {
    font-size: 0.4em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.timeText.big:hover .edit-icon {
    opacity: 1;
}

.msg {
    margin-top: 0.5em;
    min-height: 3.2em;
    font-size: clamp(14px, 3.2vw, 18px);
    line-height: 1.4;
    color: var(--muted);
}

/* メッセージ鼓動アニメーション */
@keyframes pulseIn {
    0% {
        transform: scale(1.3);
        color: var(--ring-fg);
        opacity: 1;
    }
    100% {
        transform: scale(1.0);
        color: var(--muted);
        opacity: 1;
    }
}

.msg.pulse {
    animation: pulseIn 1s ease forwards;
}
