#timer-config {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gen-task-stage {
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

/* Fondo del tablero dentro del SVG */
#task-background {
    fill: var(--bg-color);
    stroke: var(--border-color);
    stroke-width: 0.1;
}

/* Estilo base para las formas (piezas) en <defs> */
path.shape {
    stroke: var(--text-color);
    stroke-width: 0.1;
    fill-opacity: 1;
}

/* Colores específicos de las piezas */
#shapeL { fill: var(--blue); }
#shapeT { fill: var(--red); }
#shapeX { fill: var(--pink); }
#shapeS { fill: var(--green) } 
#shapeW { fill: var(--yellow) }

/* Estilo para las piezas una vez colocadas en el tablero (<use>) */
#task-blocks g g use {
    stroke: var(--bg-color);
    stroke-width: 0.15;
}

.timer-active-section {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 0.8rem;
}

#timer-duration-display {
    font-weight: bold;
    color: var(--text-color);
    min-width: 45px;
    text-align: right;
    font-size: 1rem;
}

.timer-time-display {
    font-family: var(--mono-font);
    font-size: clamp(2.2rem, 8vw, 2.8rem);
    font-weight: bold;
    line-height: 1.1;
    align-content: center;
}

.timer-time-display.ending,
.timer-time-display.finished {
    color: var(--warning-color);
}
.timer-time-display.finished {
    color: var(--danger-color);
    animation: pulse 0.8s infinite alternate;
}