/* ============================================
    TIMER - BASE (Container e Estrutura)
    ============================================ */

/* CONTAINER */
.st-timer-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s var(--ease-out);
}

@media (min-width: 600px) {
    .st-timer-container {
        left: 50% !important;
        transform: translateX(-50%);
        max-width: 480px;
    }
}

/* SCROLL */
.st-timer-scroll-content {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 20px));
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.st-timer-scroll-content::-webkit-scrollbar { width: 6px; }
.st-timer-scroll-content::-webkit-scrollbar-track { background: transparent; }
.st-timer-scroll-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* HEADER */
.st-timer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.st-timer-back {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--metal) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border-strong);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.st-timer-back:hover {
    background: var(--accent);
    color: var(--bg-void);
    box-shadow: 0 0 20px var(--accent-glow);
}

.st-timer-back:active { transform: scale(0.92); }

/* BADGE DO VÍCIO */
.st-timer-vice-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--border-strong);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.st-timer-vice-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.st-timer-vice-icon {
    display: flex;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.st-timer-vice-badge span { text-shadow: 0 0 10px var(--accent-glow); }

/* MAIN TIMER */
.st-timer-main {
    text-align: center;
    padding: 30px 0;
    position: relative;
    flex-shrink: 0;
}

.st-timer-display-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.st-timer-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
}